Skip to content
Snippets Groups Projects
Commit 6c0bbc49 authored by Mariano Alvira's avatar Mariano Alvira
Browse files

change mc1322x rtimers to 32-bit

hardcode a close default value for the RTC
parent c773920d
No related branches found
No related tags found
No related merge requests found
......@@ -53,7 +53,7 @@
#if USE_32KHZ_XTAL
#define RTIMER_ARCH_SECOND 32768
#else
#define RTIMER_ARCH_SECOND 2000 /* bogus value --- you should set xmac_config after calibration */
#define RTIMER_ARCH_SECOND 18778 /* close --- should get calibrated */
#endif
#define rtimer_arch_now() (*CRM_RTC_COUNT)
......
......@@ -89,6 +89,11 @@
/* end of mc1322x specific config. */
/* start of conitki config. */
/* Core rtimer.h defaults to 16 bit timer unless RTIMER_CLOCK_LT is defined */
typedef unsigned long rtimer_clock_t;
#define RTIMER_CLOCK_LT(a,b) ((signed long)((a)-(b)) < 0)
#define RIMEADDR_CONF_SIZE 8
/* EUI64 generation */
......
......@@ -100,6 +100,10 @@
#define PLATFORM_HAS_LEDS 1
#define PLATFORM_HAS_BUTTON 1
/* Core rtimer.h defaults to 16 bit timer unless RTIMER_CLOCK_LT is defined */
typedef unsigned long rtimer_clock_t;
#define RTIMER_CLOCK_LT(a,b) ((signed long)((a)-(b)) < 0)
#define RIMEADDR_CONF_SIZE 8
/* EUI64 generation */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment