Contiki-NG
Files

Files

file  nrf52840-board-def.h
 Platform features configuration.
 

Leds configurations

On nRF52dk all leds are green.

#define PLATFORM_HAS_LEDS   1
 
#define LEDS_CONF_COUNT   4
 
#define LEDS_CONF_RED   2
 
#define LEDS_CONF_GREEN   4
 
#define LEDS_CONF_BLUE   8
 

Button configurations

#define PLATFORM_HAS_BUTTON   1
 
#define PLATFORM_SUPPORTS_BUTTON_HAL   1
 
#define PLATFORM_RTC_INSTANCE_ID   0
 nRF52 RTC instance to be used for Contiki clock driver.
 
#define PLATFORM_TIMER_INSTANCE_ID   0
 nRF52 timer instance to be used for Contiki rtimer driver.
 

UART0 Pin configurations

#define NRF_UART0_TX_PIN   29
 
#define NRF_UART0_RX_PIN   31
 

Detailed Description