431void timer_shutdown(
void);
void timer_disable_ints(int channel)
Disable timer interrupts.
int timer_prime(int channel, uint32_t speed, int interrupts)
Pre-initialize a timer channel, but do not start it.
int timer_running(int channel)
Checks whether a timer channel is running.
uint32_t timer_count(int channel)
Obtain the count of a timer channel.
int timer_start(int channel)
Start a timer channel.
int timer_stop(int channel)
Stop a timer channel.
void timer_enable_ints(int channel)
Enable high-priority timer interrupts.
int timer_ints_enabled(int channel)
Check whether interrupts are enabled on a timer channel.
int timer_clear(int channel)
Clear the underflow bit of a timer channel.
timer_primary_callback_t timer_primary_set_callback(timer_primary_callback_t callback)
Set the primary timer callback.
void timer_primary_wakeup(uint32_t millis)
Request a primary timer wakeup.
void(* timer_primary_callback_t)(irq_context_t *)
Primary timer callback type.
Definition timer.h:397
void timer_spin_delay_us(unsigned short us)
Spin-loop delay function with microsecond granularity.
void timer_spin_sleep(int ms)
Spin-loop sleep function.
void timer_spin_delay_ns(unsigned short ns)
Spin-loop delay function with nanosecond granularity.
uint64_t timer_us_gettime64(void)
Get the current uptime of the system (in microseconds).
uint64_t timer_ms_gettime64(void)
Get the current uptime of the system (in milliseconds).
void timer_ms_disable(void)
Disable the millisecond timer.
void timer_ms_enable(void)
Enable the millisecond timer.
uint64_t timer_ns_gettime64(void)
Get the current uptime of the system (in nanoseconds).
void timer_ns_gettime(uint32_t *secs, uint32_t *nsecs)
Get the current uptime of the system (in secs and nanosecs).
void timer_us_gettime(uint32_t *secs, uint32_t *usecs)
Get the current uptime of the system (in secs and microsecs).
void timer_ms_gettime(uint32_t *secs, uint32_t *msecs)
Get the current uptime of the system (in secs and millisecs).
Interrupt and exception handling.
Architecture-specific structure for holding the processor state.
Definition irq.h:86