EE445M RTOS
Taken at the University of Texas Spring 2015
|
#include "timer.h"
#include "libhw/hardware.h"
#include "libnotify/notify.h"
#include "inc/hw_memmap.h"
#include "inc/hw_ints.h"
#include <stdlib.h>
#include "driverlib/pin_map.h"
#include "driverlib/timer.h"
#include "driverlib/sysctl.h"
Go to the source code of this file.
Macros | |
#define | TIMER_DEFAULT_PRIORITY 0 |
Functions | |
void | timer_add_interrupt (hw_metadata metadata) |
#define TIMER_DEFAULT_PRIORITY 0 |
Definition at line 16 of file timer.c.
Referenced by timer_add_interrupt().
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().