thread to manage driver-facing LCD, buttons, LEDs
More...
#include "driver_interface.h"
#include "can_library/faults_common.h"
#include "can_library/generated/DASHBOARD.h"
#include "can_library/generated/can_types.h"
#include "common/rtos/rtos.h"
#include "common/heartbeat/heartbeat.h"
#include "common/phal_G4/gpio/gpio.h"
#include "common/watchdog/watchdog.h"
#include "lcd.h"
#include "main.h"
#include "pages/vcu.h"
thread to manage driver-facing LCD, buttons, LEDs
- Author
- Irving Wang (irvin.nosp@m.gw@p.nosp@m.urdue.nosp@m..edu)
◆ ACTION_QUEUE_LENGTH
| #define ACTION_QUEUE_LENGTH (10) |
◆ BUTTON_EXTI_MASK
Value: (EXTI_IMR1_IM0 | EXTI_IMR1_IM1 | \
EXTI_IMR1_IM4 | EXTI_IMR1_IM5 | \
EXTI_IMR1_IM6 | EXTI_IMR1_IM7 | \
EXTI_IMR1_IM8 | EXTI_IMR1_IM9 | \
EXTI_IMR1_IM11 | EXTI_IMR1_IM13 | \
EXTI_IMR1_IM14 | EXTI_IMR1_IM15)
◆ action_dispatcher()
| void action_dispatcher |
( |
void | | ) |
|
◆ driver_interface_periodic()
| void driver_interface_periodic |
( |
void | | ) |
|
◆ EXTI0_IRQHandler()
| void EXTI0_IRQHandler |
( |
void | | ) |
|
◆ EXTI15_10_IRQHandler()
| void EXTI15_10_IRQHandler |
( |
void | | ) |
|
◆ EXTI1_IRQHandler()
| void EXTI1_IRQHandler |
( |
void | | ) |
|
◆ EXTI4_IRQHandler()
| void EXTI4_IRQHandler |
( |
void | | ) |
|
◆ EXTI9_5_IRQHandler()
| void EXTI9_5_IRQHandler |
( |
void | | ) |
|
◆ init_buttons()
| static void init_buttons |
( |
| ) |
|
|
static |
◆ RTOS_DEFINE_QUEUE()
◆ set_external_leds()
| void set_external_leds |
( |
void | | ) |
|
◆ data_mark_index
| volatile uint16_t data_mark_index = 0 |
◆ di_state
◆ INTERRUPT_DEBOUNCE_MS
| uint32_t INTERRUPT_DEBOUNCE_MS = 150 |
|
staticconstexpr |
◆ next_di_state
◆ status_leds