PER Firmware
Loading...
Searching...
No Matches
driver_interface.h
1#ifndef DRIVER_INTERFACE_H
2#define DRIVER_INTERFACE_H
3
4#include <stdint.h>
5
6typedef enum {
7 UPDATE_PAGE,
8 MENU_UP,
9 MENU_DOWN,
10 BACK_PAGE,
11 FORWARD_PAGE,
12 SELECT_BUTTON,
13 START_BUTTON,
14 MARK_DATA,
15 TOGGLE_REGEN,
16 RIGHT_WHEEL_MINUS,
17 RIGHT_WHEEL_PLUS,
18 LEFT_WHEEL_MINUS,
19 LEFT_WHEEL_PLUS
20} interface_action_t;
21
22static constexpr uint32_t DRIVER_INTERFACE_PERIOD_MS = 50;
23void driver_interface_periodic(void);
24
25void driver_interface_init(void);
26
27// Button EXTI handlers
28void EXTI9_5_IRQHandler();
29void EXTI15_10_IRQHandler();
30
31#endif // DRIVER_INTERFACE_H