Contiki 3.x
platform-conf.h File Reference

Platform features configuration. More...

#include "boards.h"

Go to the source code of this file.

Macros

Leds configurations

On nRF52dk all leds are green.

#define PLATFORM_HAS_LEDS   1
 
#define LEDS_1   (1 << (LED_1 - LED_START))
 
#define LEDS_2   (1 << (LED_2 - LED_START))
 
#define LEDS_3   (1 << (LED_3 - LED_START))
 
#define LEDS_4   (1 << (LED_4 - LED_START))
 
#define LEDS_GREEN   LEDS_1
 
#define LEDS_YELLOW   LEDS_2
 
#define LEDS_RED   LEDS_3
 
#define LEDS_BLUE   LEDS_4
 
#define LEDS_CONF_ALL   (LEDS_1 | LEDS_2 | LEDS_3 | LEDS_4)
 
#define PLATFORM_INDICATE_BLE_STATE   1
 If set to 1 then LED1 and LED2 are used by the platform to indicate BLE connection state.
 
Button configurations
#define PLATFORM_HAS_BUTTON   1
 
#define button_sensor   button_1
 
#define button_sensor2   button_2
 
#define PLATFORM_RTC_INSTANCE_ID   1
 nRF52 RTC instance to be used for Contiki clock driver. More...
 
#define PLATFORM_TIMER_INSTANCE_ID   1
 nRF52 timer instance to be used for Contiki rtimer driver. More...
 

Compiler configuration and platform-specific type definitions

Those values are not meant to be modified by the user

#define CLOCK_CONF_SECOND   128
 
#define CCIF
 
#define CLIF
 
#define CLOCK_LT(a, b)   ((signed long)((a) - (b)) < 0)
 
#define RTIMER_ARCH_SECOND   62500
 
#define RTIMER_CLOCK_DIFF(a, b)   ((int32_t)((a)-(b)))
 
typedef uint32_t clock_time_t
 
typedef uint32_t uip_stats_t
 
typedef uint32_t rtimer_clock_t
 

Detailed Description

Platform features configuration.

Author
Wojciech Bober wojci.nosp@m.ech..nosp@m.bober.nosp@m.@nor.nosp@m.dicse.nosp@m.mi.n.nosp@m.o

Definition in file platform-conf.h.