change mc1322x rtimers to 32-bit

hardcode a close default value for the RTC
This commit is contained in:
Mariano Alvira 2011-09-02 12:32:47 -04:00
parent c773920d6e
commit 6c0bbc492b
3 changed files with 10 additions and 1 deletions

View file

@ -53,7 +53,7 @@
#if USE_32KHZ_XTAL #if USE_32KHZ_XTAL
#define RTIMER_ARCH_SECOND 32768 #define RTIMER_ARCH_SECOND 32768
#else #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 #endif
#define rtimer_arch_now() (*CRM_RTC_COUNT) #define rtimer_arch_now() (*CRM_RTC_COUNT)

View file

@ -89,6 +89,11 @@
/* end of mc1322x specific config. */ /* end of mc1322x specific config. */
/* start of conitki 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 #define RIMEADDR_CONF_SIZE 8
/* EUI64 generation */ /* EUI64 generation */

View file

@ -100,6 +100,10 @@
#define PLATFORM_HAS_LEDS 1 #define PLATFORM_HAS_LEDS 1
#define PLATFORM_HAS_BUTTON 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 #define RIMEADDR_CONF_SIZE 8
/* EUI64 generation */ /* EUI64 generation */