22 #define TIMER_COUNTER_1_PRESCALER (8) 27 #define COMPARE_MATCH_REGISTER_VALUE \ 28 ((uint16_t)((LZ_CONFIG_MACHINE_CLOCK_FREQUENCY / \ 29 (TIMER_COUNTER_1_PRESCALER * \ 30 LZ_CONFIG_SYSTEM_CLOCK_RESOLUTION_FREQUENCY)) - 1)) \ #define OCR1AL
Output Compare Register 1 A (Low register)
#define LO8(X)
Take the low byte of a 16-bit value.
Waveform generation mode.
Output compare A match interrupt enable.
#define TCCR1A
Timer/Counter1 Control Register A.
Include appropriate config file.
#define TCCR1B
Timer/Counter1 Control Register B.
#define TCNT1L
Timer/Counter1 (Low register)
unsigned int uint16_t
Represents a unsigned integer type with width of exactly 16 bits.
#define OCR1AH
Output Compare Register 1 A (High register)
#define COMPARE_MATCH_REGISTER_VALUE
Value of the compare match register with the desired clock settings.
#define TCNT1H
Timer/Counter1 (High register)
#define HI8(X)
Take the high byte of a 16-bit value.
#define TIMSK1
Timer/Counter 1 Interrupt Mask Register.
void Arch_InitSystemTimer(void)
Initialize the system timer.
Interface for Timer/Counter 1 of the ATMega328p.
void Arch_StartSystemTimer(void)
Start the system timer.
#define TIFR1
Timer/Counter 1 Interrupt Flag Register.