feat(ex01): done

This commit is contained in:
Maix0 2026-04-22 23:42:44 +02:00
parent 19a4f34b55
commit e62f4ea7b1
No known key found for this signature in database
20 changed files with 1371 additions and 0 deletions

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