Lazuli
timer_counter_1.h
Go to the documentation of this file.
1 /*
2  * SPDX-License-Identifier: GPL-3.0-only
3  * This file is part of Lazuli.
4  */
5 
15 #ifndef LAZULI_SYS_ARCH_AVR_TIMER_COUNTER_1_H
16 #define LAZULI_SYS_ARCH_AVR_TIMER_COUNTER_1_H
17 
18 #include <stdint.h>
19 
20 #include <Lazuli/common.h>
21 
23 
32 #define TCCR1A DIRECT(0x80)
33 
35 #define TCCR1B DIRECT(0x81)
36 
38 #define TCCR1C DIRECT(0x82)
39 
41 #define TCNT1L DIRECT(0x84)
42 
44 #define TCNT1H DIRECT(0x85)
45 
47 #define TCNT1 DIRECT_T(0x84, uint16_t)
48 
50 #define ICR1L DIRECT(0x86)
51 
53 #define ICR1H DIRECT(0x87)
54 
56 #define OCR1AL DIRECT(0x88)
57 
59 #define OCR1AH DIRECT(0x89)
60 
62 #define OCR1BL DIRECT(0x8a)
63 
65 #define OCR1BH DIRECT(0x8b)
66 
68 #define TIMSK1 DIRECT(0x6f)
69 
71 #define TIFR1 DIRECT(0x36)
72 
84 enum {
91 };
92 
96 enum {
104 };
105 
109 enum {
112 };
113 
117 enum {
122 };
123 
127 enum {
132 };
133 
137 
138 #endif /* LAZULI_SYS_ARCH_AVR_TIMER_COUNTER_1_H */
Clock select.
Input capture noise canceller.
#define _EXTERN_C_DECL_BEGIN
Open C++ header file declarations.
Definition: common.h:37
Waveform generation mode.
Output compare A match interrupt enable.
Waveform generation mode.
Output compare A match flag.
Output compare B match interrupt enable.
Input capture flag.
Compare output mode for Channel B.
#define POSITION(X)
Define a constant bit at position X, starting from index 0.
Definition: common.h:174
Waveform generation mode.
Compare output mode for Channel A.
Waveform generation mode.
Force output compare for channel B.
Output compare B match flag.
Input capture edge select.
Input capture enable.
Overflow flag.
Basic type definitions and useful macros.
#define _EXTERN_C_DECL_END
Close C++ header file declarations.
Definition: common.h:42
Clock select.
Force output compare for channel A.
Compare output mode for Channel B.
Overflow interrupt enable.
Compare output mode for Channel A.
Clock select.