15#ifndef LAZULI_SYS_ARCH_AVR_TIMER_COUNTER_1_H
16#define LAZULI_SYS_ARCH_AVR_TIMER_COUNTER_1_H
32#define TCCR1A DIRECT(0x80)
35#define TCCR1B DIRECT(0x81)
38#define TCCR1C DIRECT(0x82)
41#define TCNT1L DIRECT(0x84)
44#define TCNT1H DIRECT(0x85)
47#define TCNT1 DIRECT_T(0x84, uint16_t)
50#define ICR1L DIRECT(0x86)
53#define ICR1H DIRECT(0x87)
56#define OCR1AL DIRECT(0x88)
59#define OCR1AH DIRECT(0x89)
62#define OCR1BL DIRECT(0x8a)
65#define OCR1BH DIRECT(0x8b)
68#define TIMSK1 DIRECT(0x6f)
71#define TIFR1 DIRECT(0x36)
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.
@ TCCR1C_FOC1A
Force output compare for channel B.
@ TCCR1C_FOC1B
Force output compare for channel A.
@ TCCR1A_COM1A0
Compare output mode for Channel A.
@ TCCR1A_COM1B0
Compare output mode for Channel B.
@ TCCR1A_WGM11
Waveform generation mode
@ TCCR1A_WGM10
Waveform generation mode
@ TCCR1A_COM1B1
Compare output mode for Channel B.
@ TCCR1A_COM1A1
Compare output mode for Channel A.
@ TCCR1B_CS11
Clock select
@ TCCR1B_CS12
Clock select
@ TCCR1B_WGM12
Waveform generation mode
@ TCCR1B_CS10
Clock select
@ TCCR1B_ICES1
Input capture edge select
@ TCCR1B_WGM13
Waveform generation mode
@ TCCR1B_ICNC1
Input capture noise canceller.
@ TIFR1_TOV1
Overflow flag
@ TIFR1_OCF1B
Output compare B match flag.
@ TIFR1_ICF1
Input capture flag
@ TIFR1_OCF1A
Output compare A match flag.
@ TIMSK1_ICIE1
Input capture enable
@ TIMSK1_OCIE1A
Output compare A match interrupt enable.
@ TIMSK1_TOIE1
Overflow interrupt enable
@ TIMSK1_OCIE1B
Output compare B match interrupt enable.