EE445M RTOS
Taken at the University of Texas Spring 2015
|
Go to the source code of this file.
Macros | |
#define | timer_metadata_init_(_name, _base, _frequency, _interrupt, _periodic) |
#define | timer_metadata_init(_base, _frequency, _interrupt, _periodic) timer_metadata_init_(timer_metadata, _base, _frequency, _interrupt, _periodic) |
Functions | |
void | timer_add_interrupt (hw_metadata metadata) |
#define timer_metadata_init | ( | _base, | |
_frequency, | |||
_interrupt, | |||
_periodic | |||
) | timer_metadata_init_(timer_metadata, _base, _frequency, _interrupt, _periodic) |
Create a struct named `timer_metadata'.
Definition at line 21 of file timer.h.
Referenced by button_debounce_start(), main(), sA_Handler(), TIMER0A_Handler(), TIMER1A_Handler(), and TIMER2A_Handler().
#define timer_metadata_init_ | ( | _name, | |
_base, | |||
_frequency, | |||
_interrupt, | |||
_periodic | |||
) |
Create a struct named _name.
void timer_add_interrupt | ( | hw_metadata | metadata | ) |
Schedule a task (function) to be invoked periodically.
Metadata | regarding the timer peripheral and isr to use. |
Definition at line 18 of file timer.c.
References hw_timer_metadata::base, hw_timer_metadata::frequency, IntEnable(), hw_timer_metadata::interrupt, hw_timer_metadata::periodic, SysCtlClockGet(), hw_metadata::timer, TIMER_A, TIMER_DEFAULT_PRIORITY, TIMER_TIMA_TIMEOUT, TimerConfigure(), TimerEnable(), TimerIntEnable(), and TimerLoadSet().
Referenced by hw_channel_init().