EE445M RTOS
Taken at the University of Texas Spring 2015
Main Page
Related Pages
Modules
Data Structures
Files
File List
Globals
timer.h
Go to the documentation of this file.
1
/* -*- mode: c; c-basic-offset: 4; -*- */
2
#ifndef __TIMER__
3
#define __TIMER__
4
5
#include <stdint.h>
6
#include <stdbool.h>
7
8
#include "
libhw/hardware.h
"
9
11
#define timer_metadata_init_(_name, _base, _frequency, _interrupt, _periodic) \
12
hw_metadata _name; \
13
_name.timer = (hw_timer_metadata) { \
14
.base = (memory_address_t) _base, \
15
.frequency = (uint32_t) _frequency, \
16
.interrupt = (uint32_t) _interrupt, \
17
.periodic = (uint32_t) _periodic \
18
}
19
21
#define timer_metadata_init(_base, _frequency, _interrupt, _periodic) \
22
timer_metadata_init_(timer_metadata, _base, _frequency, _interrupt, _periodic)
23
27
void
timer_add_interrupt
(
hw_metadata
metadata);
28
29
#endif
/* __TIMER__ */
timer_add_interrupt
void timer_add_interrupt(hw_metadata metadata)
Definition:
timer.c:18
hardware.h
hw_metadata
Definition:
hardware.h:96
lib
libtimer
timer.h
Generated on Fri Mar 13 2015 21:18:37 for EE445M RTOS by
1.8.9.1