Functions | |
void | timer2_config (uint8_t config) |
void | timer2_enable (void) |
void | timer2_disable (void) |
uint8_t | timer2_read (void) |
void | timer2_set (uint8_t val) |
void timer2_config | ( | uint8_t | config | ) |
Determine the clock source for timer 2
config | One of: TIMER2_NOCLK: no input clock TIMER2_NOPRE: No prescalar TIMER2_PRE_8: Prescalar of 8 TIMER2_PRE_32: Prescalar of 32 TIMER2_PRE_64: Prescalar of 64 TIMER2_PRE_128: Prescalar of 128 TIMER2_PRE_256: Prescalar of 256 TIMER2_PRE_1024: Prescalar of 1024 |
void timer2_disable | ( | void | ) | [inline] |
Disable the timer 2 overflow interrupt.
void timer2_enable | ( | void | ) | [inline] |
Enable the timer 2 overflow interrupt.
uint8_t timer2_read | ( | void | ) | [inline] |
Read the state of the timer 2 counter
void timer2_set | ( | uint8_t | val | ) | [inline] |
Set the state of the timer 2 counter
val | The new value of the timer 2 counter. |