Lazuli
Macros | Functions
timer_counter_1.c File Reference

ATMega328p Timer/Counter 1 driver. More...

#include <stdint.h>
#include <Lazuli/config.h>
#include <Lazuli/sys/arch/AVR/timer_counter_1.h>

Go to the source code of this file.

Macros

#define TIMER_COUNTER_1_PRESCALER   (8)
 The Timer/Counter 1 clock prescaler.
 
#define COMPARE_MATCH_REGISTER_VALUE
 Value of the compare match register with the desired clock settings. More...
 

Functions

void Arch_InitSystemTimer (void)
 Initialize the system timer.
 
void Arch_StartSystemTimer (void)
 Start the system timer.
 

Detailed Description

ATMega328p Timer/Counter 1 driver.

This file describes the driver implementation for the "16-bit timer counter 1" of the ATMega328p.

Definition in file timer_counter_1.c.

Macro Definition Documentation

◆ COMPARE_MATCH_REGISTER_VALUE

#define COMPARE_MATCH_REGISTER_VALUE
Value:
const unsigned int LZ_CONFIG_SYSTEM_CLOCK_RESOLUTION_FREQUENCY
The operating system clock resolution frequency, in Hertz.
unsigned int uint16_t
Represents a unsigned integer type with width of exactly 16 bits.
Definition: stdint.h:94
#define TIMER_COUNTER_1_PRESCALER
The Timer/Counter 1 clock prescaler.
const unsigned int LZ_CONFIG_MACHINE_CLOCK_FREQUENCY
The clock frequency of the machine, in Hertz.

Value of the compare match register with the desired clock settings.

Definition at line 27 of file timer_counter_1.c.