Hello,
I have a program working well in SDK 2.9.1 on nrf52840DK. I want to port it over to nrf54L15DK.
Please help me identify corresponding ports I can use on nrf54L15. I am just listing the relevant ports, the code I am showing is incomplete.
Your help would be much appreciated.
I am using the following ports:
Overlay file
SPI display:
dc-gpios = <&gpio0 30 GPIO_ACTIVE_HIGH>;
reset-gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
spi-dev = <&spi3>;
&spi3_default {
group1 {
psels = <NRF_PSEL(SPIM_SCK, 0, 28)>,
<NRF_PSEL(SPIM_MISO, 0, 4)>,
<NRF_PSEL(SPIM_MOSI, 0, 29)>;
nordic,drive-mode = <NRF_DRIVE_H0H1>;
};
};watchdog
// Watchdog
&wdt {
status = "okay";
};
/{
aliases {
sw0 = &button_left;
sw1 = &button_right;
sw2 = &button_select;
sw3 = &button_select2;
};
};
/{
buttons {
compatible = "gpio-keys";
button_left: button_0 {
gpios = <&gpio0 11 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
label = "Button Up";
};
button_right: button_1 {
gpios = <&gpio0 12 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
label = "Button Down";
};
button_select: button_2 {
gpios = <&gpio0 24 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
label = "Button Select";
};
button_select2: button_3 {
gpios = <&gpio0 25 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
label = "Button Select2";
};
};
};LED / PWM:
#define PIN_R 13 #define PIN_G 14 #define PIN_B 15 static NRF_PWM_Type *pwm = NRF_PWM0;
Display backlight / PWM:
#define DISPLAY_PWM_INSTANCE NRF_PWM1
#define NVS_PARTITION storage_partition
#define WAKEUP_PIN 24
void configure_wakeup_pin(void) {
nrf_gpio_cfg_input(WAKEUP_PIN, NRF_GPIO_PIN_PULLUP);
nrf_gpio_cfg_sense_set(WAKEUP_PIN, NRF_GPIO_PIN_SENSE_LOW);
}