78 s_millis = usec / 1000L;
96 s_micros = ms * 1000L;
107 static uint32_t
since(uint32_t start)
108 __attribute__((always_inline))
111 return (now - start);
119 static void delay(uint32_t ms);
125 __attribute__((always_inline))
141 RTT::s_scheduler =
this;
162 virtual uint32_t
time();
180 return (s_scheduler);
216 static bool s_initiated;
217 static uint32_t s_micros;
218 static uint32_t s_millis;
221 static Clock* s_clock;
229 #if defined(TIMER2_COMPA_vect)
void TIMER2_COMPA_vect(void)
static RTT::Scheduler * scheduler()
static void delay(uint32_t ms)
#define TIMER0_COMPB_vect
virtual bool start(Job *job)
static void millis(uint32_t ms)
static uint32_t since(uint32_t start)
static uint16_t us_per_tick()
void TIMER2_COMPB_vect(void)
static void wall(Clock *clock)
static uint16_t us_per_timer_cycle()
static void job(RTT::Scheduler *scheduler)
static void micros(uint32_t usec)
#define TIMER0_COMPA_vect