Pull CPU-related constants from the CPU header (nrf52dk)
This commit is contained in:
parent
fb9c0beb37
commit
ba8f37bef4
@ -49,6 +49,7 @@
|
||||
/*---------------------------------------------------------------------------*/
|
||||
/* Include platform peripherals configuration */
|
||||
#include "platform-conf.h"
|
||||
#include "nrf52832-def.h"
|
||||
/*---------------------------------------------------------------------------*/
|
||||
/**
|
||||
* \name Network Stack Configuration
|
||||
|
@ -107,35 +107,6 @@
|
||||
*/
|
||||
#define PLATFORM_TIMER_INSTANCE_ID 1
|
||||
|
||||
/** @} */
|
||||
/*---------------------------------------------------------------------------*/
|
||||
/**
|
||||
* \name Compiler configuration and platform-specific type definitions
|
||||
*
|
||||
* Those values are not meant to be modified by the user
|
||||
* @{
|
||||
*/
|
||||
#define CLOCK_CONF_SECOND 128
|
||||
|
||||
/* Compiler configurations */
|
||||
#define CCIF
|
||||
#define CLIF
|
||||
|
||||
/* Platform typedefs */
|
||||
typedef uint32_t clock_time_t;
|
||||
typedef uint32_t uip_stats_t;
|
||||
|
||||
/* Clock (time) comparison macro */
|
||||
#define CLOCK_LT(a, b) ((signed long)((a) - (b)) < 0)
|
||||
|
||||
#define RTIMER_ARCH_SECOND 62500
|
||||
/*
|
||||
* rtimer.h typedefs rtimer_clock_t as unsigned short. We need to define
|
||||
* RTIMER_CLOCK_DIFF to override this
|
||||
*/
|
||||
typedef uint32_t rtimer_clock_t;
|
||||
#define RTIMER_CLOCK_DIFF(a,b) ((int32_t)((a)-(b)))
|
||||
|
||||
/** @} */
|
||||
/*---------------------------------------------------------------------------*/
|
||||
/** @}
|
||||
|
Loading…
Reference in New Issue
Block a user