36#include "nordic_common.h"
38#include "sdk_config.h"
39#include "nrfx_gpiote.h"
42#include "contiki-net.h"
44#include "lib/sensors.h"
49#include "usb/usb-serial.h"
60#define LOG_MODULE "NRF52DK"
61#define LOG_LEVEL LOG_LEVEL_MAIN
64#define NORDIC_SEMI_VENDOR_OUI 0xF4CE36
69 uint8_t device_address[8];
70 uint32_t device_address_low;
77 device_address[0] = (NORDIC_SEMI_VENDOR_OUI) >> 16 & 0xFF;
78 device_address[1] = (NORDIC_SEMI_VENDOR_OUI) >> 8 & 0xFF;
79 device_address[2] = NORDIC_SEMI_VENDOR_OUI & 0xFF;
80 device_address[3] = NRF_FICR->DEVICEADDR[1] & 0xFF;
82 device_address_low = NRF_FICR->DEVICEADDR[0];
83 memcpy(&device_address[4], &device_address_low, 4);
99#ifdef PLATFORM_HAS_BUTTON
114#if NRF52840_NATIVE_USB
122#if NRF52840_USB_DFU_TRIGGER
void random_init(unsigned short seed)
Seed the cc2538 random number generator.
void usb_serial_set_input(int(*input)(unsigned char c))
Set an input hook for bytes received over USB.
void usb_serial_init()
Initialise the Serial-over-USB process.
void platform_init_stage_three()
Final stage of platform driver initialisation.
void platform_init_stage_one(void)
Basic (Stage 1) platform driver initialisation.
void platform_idle()
The platform's idle/sleep function.
void platform_init_stage_two()
Stage 2 of platform driver initialisation.
void lpm_drop()
Drop the cortex to sleep / deep sleep and shut down peripherals.
void leds_init(void)
Initialise the LED HAL.
void populate_link_address(void)
Populates the link address using factory information.
void gpio_hal_init()
Initialise the GPIO HAL.
linkaddr_t linkaddr_node_addr
The link-layer address of the node.
void uart0_init(unsigned long ubr)
Initalize the RS232 port.
void dfu_trigger_usb_init(void)
Initialise the DFU trigger library.
void process_start(struct process *p, process_data_t data)
Start a process.
Header file for the LED HAL.
Header file for the logging system.
Generic serial I/O process header filer.
int serial_line_input_byte(unsigned char c)
Get one byte of input from the serial driver.
Header file for the nRF52840 Dongle DFU trigger library.