libopencm3
A free/libre/open-source firmware library for various ARM Cortex-M3 microcontrollers.
|
Defined Constants and Types for the LPC43xx timer More...
Functions | |
void | timer_reset (uint32_t timer_peripheral) |
void | timer_enable_counter (uint32_t timer_peripheral) |
void | timer_disable_counter (uint32_t timer_peripheral) |
uint32_t | timer_get_counter (uint32_t timer_peripheral) |
void | timer_set_counter (uint32_t timer_peripheral, uint32_t count) |
uint32_t | timer_get_prescaler (uint32_t timer_peripheral) |
void | timer_set_prescaler (uint32_t timer_peripheral, uint32_t prescaler) |
void | timer_set_mode (uint32_t timer_peripheral, uint32_t mode) |
void | timer_set_count_input (uint32_t timer_peripheral, uint32_t input) |
Defined Constants and Types for the LPC43xx timer
LGPL License Terms libopencm3 License
#define TIMER0 TIMER0_BASE |
#define TIMER0_CTCR TIMER_CTCR(TIMER0) |
#define TIMER1 TIMER1_BASE |
#define TIMER1_CTCR TIMER_CTCR(TIMER1) |
#define TIMER2 TIMER2_BASE |
#define TIMER2_CTCR TIMER_CTCR(TIMER2) |
#define TIMER3 TIMER3_BASE |
#define TIMER3_CTCR TIMER_CTCR(TIMER3) |
#define TIMER_EMR_EMC0_MASK (0x3 << TIMER_EMR_EMC0_SHIFT) |
#define TIMER_EMR_EMC1_MASK (0x3 << TIMER_EMR_EMC1_SHIFT) |
#define TIMER_EMR_EMC2_MASK (0x3 << TIMER_EMR_EMC2_SHIFT) |
#define TIMER_EMR_EMC3_MASK (0x3 << TIMER_EMR_EMC3_SHIFT) |
void timer_disable_counter | ( | uint32_t | timer_peripheral | ) |
void timer_enable_counter | ( | uint32_t | timer_peripheral | ) |
uint32_t timer_get_counter | ( | uint32_t | timer_peripheral | ) |
uint32_t timer_get_prescaler | ( | uint32_t | timer_peripheral | ) |
void timer_reset | ( | uint32_t | timer_peripheral | ) |
void timer_set_count_input | ( | uint32_t | timer_peripheral, |
uint32_t | input | ||
) |
void timer_set_counter | ( | uint32_t | timer_peripheral, |
uint32_t | count | ||
) |
void timer_set_mode | ( | uint32_t | timer_peripheral, |
uint32_t | mode | ||
) |
void timer_set_prescaler | ( | uint32_t | timer_peripheral, |
uint32_t | prescaler | ||
) |