samples: blink_led: make it work for nrf52840-mdk
Add support for nRF52840-MDK to blink_led sample. Signed-off-by: Jean-Paul Saman <jpsaman@videolan.org>
This commit is contained in:
parent
c6acdd4b3e
commit
4324333611
6
samples/basic/blink_led/prj_nrf52840_mdk.conf
Normal file
6
samples/basic/blink_led/prj_nrf52840_mdk.conf
Normal file
|
@ -0,0 +1,6 @@
|
|||
CONFIG_STDOUT_CONSOLE=y
|
||||
CONFIG_PRINTK=y
|
||||
CONFIG_PWM=y
|
||||
CONFIG_LOG=y
|
||||
CONFIG_PWM_LOG_LEVEL_DBG=y
|
||||
CONFIG_PWM_NRF5_SW_0_CLOCK_PRESCALER=9
|
|
@ -5,6 +5,6 @@ tests:
|
|||
# FIXME: We should remove those and just rely on depends_on
|
||||
platform_whitelist: arduino_101 quark_d2000_crb
|
||||
nucleo_f103rb nucleo_f302r8 nucleo_f401re nucleo_l476rg stm32f4_disco
|
||||
hexiwear_k64 colibri_imx7d_m4
|
||||
hexiwear_k64 colibri_imx7d_m4 nrf52840_mdk
|
||||
tags: drivers pwm
|
||||
depends_on: pwm
|
||||
|
|
|
@ -36,6 +36,9 @@
|
|||
#elif defined(CONFIG_BOARD_COLIBRI_IMX7D_M4)
|
||||
#define PWM_DRIVER PWM_1_LABEL
|
||||
#define PWM_CHANNEL 0
|
||||
#elif defined(CONFIG_SOC_FAMILY_NRF)
|
||||
#define PWM_DRIVER CONFIG_PWM_NRF5_SW_0_DEV_NAME
|
||||
#define PWM_CHANNEL LED0_GPIO_PIN
|
||||
#else
|
||||
#error "Choose supported PWM driver"
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue