binary Clock
|
Functions and data structures for interfacing with the ATtiny4313 timers. More...
Data Structures | |
struct | timer_status_t |
Structure for all important timer variables. More... | |
Functions | |
void | timer_counter_init (volatile uint8_t *counter_var_ptr) |
void | timer_millis_init (void) |
void | timer_init (volatile uint8_t *counter_var_ptr) |
uint32_t | timer_millis_get (void) |
ISR (TIMER1_COMPA_vect) | |
ISR (TIMER0_COMPA_vect) | |
Variables | |
timer_status_t | timer_status |
timer status structure instance More... | |
timer_status_t * | t_status_ptr |
pointer to the timer status structure More... | |
Functions and data structures for interfacing with the ATtiny4313 timers.
ISR | ( | TIMER1_COMPA_vect | ) |
Interrupt service routine for the millisecond counter.
ISR | ( | TIMER0_COMPA_vect | ) |
Interrupt service routine for the multiplexer counter.
void timer_counter_init | ( | volatile uint8_t * | counter_var_ptr | ) |
Initializes the multiplexer timer and requisite interrupts.
[in] | counter_var_ptr | (volatile uint8_t *): pointer to the counter's count variable. |
void timer_init | ( | volatile uint8_t * | counter_var_ptr | ) |
Initializes the timer structure variables and individual timers.
[in] | counter_var_ptr | (volatile uint8_t *): pointer to the counter's count variable. |
uint32_t timer_millis_get | ( | void | ) |
Returns the current value of the millisecond counter.
[out] | millis_count | (uint32_t): current value of the millis counter. |
void timer_millis_init | ( | void | ) |
Initializes the millisecond timer and requisite interrupts.
timer_status_t* t_status_ptr |
pointer to the timer status structure
timer_status_t timer_status |
timer status structure instance