Lazuli
Loading...
Searching...
No Matches
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.
 

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

◆ TIMER_COUNTER_1_PRESCALER

#define TIMER_COUNTER_1_PRESCALER   (8)

The Timer/Counter 1 clock prescaler.

Definition at line 22 of file timer_counter_1.c.

◆ COMPARE_MATCH_REGISTER_VALUE

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

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

Definition at line 27 of file timer_counter_1.c.

Function Documentation

◆ Arch_InitSystemTimer()

void Arch_InitSystemTimer ( void  )

Initialize the system timer.

Definition at line 33 of file timer_counter_1.c.

◆ Arch_StartSystemTimer()

void Arch_StartSystemTimer ( void  )

Start the system timer.

Definition at line 48 of file timer_counter_1.c.