feat(ex04)
This commit is contained in:
parent
9c2a7d7573
commit
5e18ca5a6d
31 changed files with 1791 additions and 0 deletions
25
ex04/include/lib/timer_global.h
Normal file
25
ex04/include/lib/timer_global.h
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
#ifndef TIMER_GLOBAL_H
|
||||
#define TIMER_GLOBAL_H
|
||||
|
||||
typedef enum e_timer_prescaler {
|
||||
PRESCALER_OFF = 0,
|
||||
PRESCALER_1 = 1,
|
||||
PRESCALER_8 = 8,
|
||||
PRESCALER_64 = 64,
|
||||
PRESCALER_256 = 256,
|
||||
PRESCALER_1024 = 1024,
|
||||
} e_timer_prescaler;
|
||||
|
||||
typedef enum e_timer_output {
|
||||
TO_A = (1 << 0),
|
||||
TO_B = (1 << 1),
|
||||
} e_timer_output;
|
||||
|
||||
typedef enum e_timer_output_mode {
|
||||
TOM_00,
|
||||
TOM_01,
|
||||
TOM_10,
|
||||
TOM_11,
|
||||
} e_timer_output_mode;
|
||||
|
||||
#endif /* TIMER_GLOBAL_H */
|
||||
Loading…
Add table
Add a link
Reference in a new issue