26 lines
442 B
C
26 lines
442 B
C
|
|
#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 */
|