Basic_Frame_TypeC_2023_Omni
Loading...
Searching...
No Matches
timers_handler.h
1#ifndef __TIMERS_H
2#define __TIMERS_H
3
4#ifdef __cplusplus
5extern "C" {
6#endif
7
8#include "stm32f407xx.h"
9#include "stm32f4xx_hal.h"
10#include "tim.h"
11
12typedef enum {
13 AMMO_LID,
14} Timer_t;
15
16typedef enum {
17 CHANNEL_1,
18 CHANNEL_2,
19 CHANNEL_3,
20 CHANNEL_4,
21 ALL_CHANNELS,
22} Timer_Channel_t;
23
24void start_pwm(Timer_t timer, Timer_Channel_t channel);
25void set_pwm_compare_value(Timer_t timer, Timer_Channel_t channel,
26 uint16_t compare_value);
27
28#ifdef __cplusplus
29}
30#endif
31
32#endif