Functions | |
void | timer0_config (uint8_t config) |
void | timer0_enable (void) |
void | timer0_disable (void) |
uint8_t | timer0_read (void) |
void | timer0_set (uint8_t val) |
void timer0_config | ( | uint8_t | config | ) |
Determine the clock source for timer 0
config | One of: TIMER0_NOCLK: no input clock TIMER0_NOPRE: No prescalar TIMER0_PRE_8: Prescalar of 8 TIMER0_PRE_64: Prescalar of 64 TIMER0_PRE_256: Prescalar of 256 TIMER0_PRE_1024: Prescalar of 1024 TIMER0_EXT_FALLING: Count on falling edge of external pin T0 TIMER0_EXT_RISING: Count on rising edge of external pin T0 |
void timer0_disable | ( | void | ) | [inline] |
Disable the timer 0 overflow interrupt.
void timer0_enable | ( | void | ) | [inline] |
Enable the timer 0 overflow interrupt.
uint8_t timer0_read | ( | void | ) | [inline] |
Read the state of the timer 0 counter
void timer0_set | ( | uint8_t | val | ) | [inline] |
Set the state of the timer 0 counter
val | The new value of the timer 0 counter. |