day08/ex04/include/timer_global.h
2026-04-24 16:46:10 +02:00

25 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 */