Merge pull request #1705 from simonduq/pr/nrf52dk-rtimer-diff

Platform nrf52dk: use RTIMER_CLOCK_DIFF instead of RTIMER_CLOCK_LT
This commit is contained in:
Antonio Lignan 2016-06-03 21:59:25 +02:00
commit c746ca105a
2 changed files with 5 additions and 4 deletions

View file

@ -131,10 +131,10 @@ typedef uint32_t uip_stats_t;
#define RTIMER_ARCH_SECOND 62500
/*
* rtimer.h typedefs rtimer_clock_t as unsigned short. We need to define
* RTIMER_CLOCK_LT to override this
typedef uint32_t rtimer_clock_t;
#define RTIMER_CLOCK_LT(a, b) ((int32_t)((a) - (b)) < 0)
* RTIMER_CLOCK_DIFF to override this
*/
typedef uint32_t rtimer_clock_t;
#define RTIMER_CLOCK_DIFF(a,b) ((int32_t)((a)-(b)))
/** @} */
/*---------------------------------------------------------------------------*/

View file

@ -11,7 +11,8 @@ hello-world/nrf52dk \
nrf52dk/coap-demo/nrf52dk:coap-server \
nrf52dk/coap-demo/nrf52dk:coap-client:SERVER_IPV6_ADDR=ffff \
nrf52dk/mqtt-demo/nrf52dk \
nrf52dk/blink-hello/nrf52dk
nrf52dk/blink-hello/nrf52dk \
nrf52dk/timer-test/nrf52dk
TOOLS=