|
PER Firmware
|
"Dashboard" node source code More...
#include "main.h"#include "can_library/faults_common.h"#include "can_library/generated/DASHBOARD.h"#include "common/rtos/rtos.h"#include "common/heartbeat/heartbeat.h"#include "common/phal_G4/adc/adc.h"#include "common/phal_G4/fdcan/fdcan.h"#include "common/phal_G4/gpio/gpio.h"#include "common/phal_G4/rcc/rcc.h"#include "common/phal_G4/usart/usart.h"#include "common/phal_G4/pin_defs/g474ret6.h"#include "common/utils/countof.h"#include "common/watchdog/watchdog.h"#include "driver_interface.h"#include "lcd.h"#include "pedals.h"#include "telemetry.h"Functions | |
| void | sweep_external_leds () |
| void | service_start_button () |
| void | HardFault_Handler () |
| void | calibrate_LWS () |
| DEFINE_CAN_TASKS () | |
| RTOS_DEFINE_TASK (pedals_periodic, PEDALS_PERIOD_MS, TASK_PRIORITY_HIGH, STACK_1024) | |
| RTOS_DEFINE_TASK (fault_library_periodic, DASHBOARD_FAULT_SYNC_PERIOD_MS, TASK_PRIORITY_NORMAL, STACK_1024) | |
| RTOS_DEFINE_TASK (driver_interface_periodic, DRIVER_INTERFACE_PERIOD_MS, TASK_PRIORITY_LOW, STACK_1024) | |
| RTOS_DEFINE_TASK (report_telemetry_02hz, TELEMETRY_02HZ_PERIOD_MS, TASK_PRIORITY_LOW, STACK_512) | |
| DEFINE_WATCHDOG_TASK () | |
| DEFINE_HEARTBEAT_TASK (sweep_external_leds) | |
| int | main (void) |
Variables | |
| PHAL_GPIO_InitConfig_t | gpio_config [] |
| static const PHAL_ADC_ChannelConfig_t | adc_channels [] |
| static const PHAL_ADC_Config_t | adc_config |
| volatile raw_adc_values_t | raw_adc_values |
| PHAL_ADC_Handle_t | adc_handle |
"Dashboard" node source code
| void calibrate_LWS | ( | ) |
| DEFINE_CAN_TASKS | ( | ) |
| DEFINE_HEARTBEAT_TASK | ( | sweep_external_leds | ) |
| DEFINE_WATCHDOG_TASK | ( | ) |
|
extern |
| int main | ( | void | ) |
| RTOS_DEFINE_TASK | ( | driver_interface_periodic | , |
| DRIVER_INTERFACE_PERIOD_MS | , | ||
| TASK_PRIORITY_LOW | , | ||
| STACK_1024 | ) |
| RTOS_DEFINE_TASK | ( | fault_library_periodic | , |
| DASHBOARD_FAULT_SYNC_PERIOD_MS | , | ||
| TASK_PRIORITY_NORMAL | , | ||
| STACK_1024 | ) |
| RTOS_DEFINE_TASK | ( | pedals_periodic | , |
| PEDALS_PERIOD_MS | , | ||
| TASK_PRIORITY_HIGH | , | ||
| STACK_1024 | ) |
| RTOS_DEFINE_TASK | ( | report_telemetry_02hz | , |
| TELEMETRY_02HZ_PERIOD_MS | , | ||
| TASK_PRIORITY_LOW | , | ||
| STACK_512 | ) |
| void service_start_button | ( | ) |
| void sweep_external_leds | ( | ) |
|
static |
|
static |
| PHAL_ADC_Handle_t adc_handle |
| PHAL_GPIO_InitConfig_t gpio_config[] |
| volatile raw_adc_values_t raw_adc_values |