48static volatile rtimer_clock_t next_trigger;
80 if(!RTIMER_CLOCK_LT(now, t - RTIMER_GUARD_TIME)) {
81 t = now + RTIMER_GUARD_TIME;
Header file with prototypes for interrupt control on the cc2538 Cortex-M3 micro.
@ SMT_IRQn
SM Timer Interrupt.
#define INTERRUPTS_DISABLE()
Disables all CPU interrupts.
#define INTERRUPTS_ENABLE()
Enables all CPU interrupts.
rtimer_clock_t rtimer_arch_next_trigger()
Get the time of the next scheduled rtimer trigger.
void rtimer_isr()
The rtimer ISR.
void rtimer_arch_init(void)
We don't need to explicitly initialise anything but this routine is required by the API.
rtimer_clock_t rtimer_arch_now()
Returns the current real-time clock time.
void rtimer_arch_schedule(rtimer_clock_t t)
Schedules an rtimer task to be triggered at time t.
#define SMWDTHROSC_ST0
ST count/compare value 0.
#define SMWDTHROSC_ST3
ST count/compare value 3.
#define SMWDTHROSC_ST1
ST count/compare value 1.
#define SMWDTHROSC_ST2
ST count/compare value 2.
#define SMWDTHROSC_STLOAD
Compare value load status.
#define SMWDTHROSC_STLOAD_STLOAD
STx upload status signal.
void rtimer_run_next(void)
Execute the next real-time task and schedule the next task, if any.
#define RTIMER_NOW()
Get the current clock time.
Header file for the ARM Nested Vectored Interrupt Controller.
Header file for the real-time timer module.
Header file with register declarations and bit masks for the cc2538 Sleep Timer and Watchdog.