OpenWSN Firmware
Sctimer

A timer module with only a single compare value. Can be used to replace the "bsp_timer" and "radiotimer" modules with the help of abstimer. More...

Macros

#define SCTIMER_TICS_MS   33
 

Typedefs

typedef kick_scheduler_t(* sctimer_cbt )(void)
 

Functions

void sctimer_init (void)
 
void sctimer_stop (void)
 
void sctimer_schedule (PORT_TIMER_WIDTH val)
 
PORT_TIMER_WIDTH sctimer_getValue (void)
 
void sctimer_setCb (sctimer_cbt cb)
 
void sctimer_clearISR (void)
 
void sctimer_reset (void)
 

Detailed Description

A timer module with only a single compare value. Can be used to replace the "bsp_timer" and "radiotimer" modules with the help of abstimer.

Author
Xavi Vilajosana xvila.nosp@m.josa.nosp@m.na@ee.nosp@m.cs.b.nosp@m.erkel.nosp@m.ey.e.nosp@m.du, May 2012.
Thomas Watteyne watte.nosp@m.yne@.nosp@m.eecs..nosp@m.berk.nosp@m.eley..nosp@m.edu, May 2012.

Macro Definition Documentation

#define SCTIMER_TICS_MS   33

Typedef Documentation

typedef kick_scheduler_t(* sctimer_cbt)(void)

Function Documentation

void sctimer_clearISR ( void  )
PORT_TIMER_WIDTH sctimer_getValue ( void  )
void sctimer_init ( void  )
void sctimer_reset ( void  )
void sctimer_schedule ( PORT_TIMER_WIDTH  val)
void sctimer_setCb ( sctimer_cbt  cb)
void sctimer_stop ( void  )