15#ifndef LAZULI_SYS_ARCH_AVR_TIMER_COUNTER_0_H
16#define LAZULI_SYS_ARCH_AVR_TIMER_COUNTER_0_H
30#define TIFR0 DIRECT(0x35)
33#define TCCR0A DIRECT(0x44)
36#define TCCR0B DIRECT(0x45)
39#define TCNT0 DIRECT(0x46)
42#define OCR0A DIRECT(0x47)
45#define OCR0B DIRECT(0x48)
48#define TIMSK0 DIRECT(0x6e)
unsigned char uint8_t
Represents a unsigned integer type with width of exactly 8 bits.
Basic type definitions and useful macros.
#define _EXTERN_C_DECL_BEGIN
Open C++ header file declarations.
#define _EXTERN_C_DECL_END
Close C++ header file declarations.
#define POSITION(X)
Define a constant bit at position X, starting from index 0.
Describes the memory mapping for timer/counter 0.
volatile uint8_t ocr0b
Output Compare register B
volatile uint8_t tcnt0
Timer/Counter Register
volatile uint8_t tccr0b
Timer/Counter Control Register B
volatile uint8_t tccr0a
Timer/Counter Control Register A
volatile uint8_t ocr0a
Output Compare register A
@ TCCR0B_WGM02
Waveform Generation Mode.
@ TCCR0B_FOC0A
Force Output Compare A
@ TCCR0B_CS02
Clock Select
@ TCCR0B_CS01
Clock Select
@ TCCR0B_CS00
Clock Select
@ TCCR0B_FOC0B
Force Output Compare B
@ TIMSK0_OCIE0B
Timer/Counter 0 Output Compare Match B Interrupt Enable.
@ TIMSK0_TOIE0
Timer/Counter 0 Overflow Interrupt enable.
@ TIMSK0_OCIE0A
Timer/Counter 0 Output Compare Match A Interrupt Enable.
@ TIFR0_OCF0B
Timer/Counter 0 Output Compare B Match Flag
@ TIFR0_OCF0A
Timer/Counter 0 Output Compare A Match Flag
@ TIFR0_TOV0
Timer/Counter 0 Overflow Flag
@ TCCR0A_COM0B0
Compare Match Output B Mode.
@ TCCR0A_COM0A1
Compare Match Output A Mode.
@ TCCR0A_WGM01
Waveform Generation Mode
@ TCCR0A_COM0A0
Compare Match Output A Mode.
@ TCCR0A_WGM00
Waveform Generation Mode
@ TCCR0A_COM0B1
Compare Match Output B Mode.