|
PER Firmware
|
"Main Module" node source code More...
#include "main.h"#include "can_library/faults_common.h"#include "can_library/generated/MAIN_MODULE.h"#include "common/rtos/rtos.h"#include "common/heartbeat/heartbeat.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/pin_defs/g474ret6.h"#include "common/utils/countof.h"#include "common/watchdog/watchdog.h"#include "sdc.h"#include "telemetry.h"#include "powertrain.h"#include "vehicle_fsm.h"Functions | |
| void | HardFault_Handler (void) |
| DEFINE_CAN_TASKS () | |
| RTOS_DEFINE_TASK (vehicle_fsm_periodic, VEHICLE_FSM_PERIOD_MS, TASK_PRIORITY_NORMAL, STACK_2048) | |
| RTOS_DEFINE_TASK (fault_library_periodic, MAIN_MODULE_FAULT_SYNC_PERIOD_MS, TASK_PRIORITY_NORMAL, STACK_1024) | |
| RTOS_DEFINE_TASK (SDC_task_periodic, SDC_TASK_PERIOD_MS, TASK_PRIORITY_NORMAL, STACK_512) | |
| RTOS_DEFINE_TASK (report_telemetry_50hz, TELEMETRY_50HZ_PERIOD_MS, TASK_PRIORITY_LOW, STACK_512) | |
| RTOS_DEFINE_TASK (report_telemetry_1hz, TELEMETRY_1HZ_PERIOD_MS, TASK_PRIORITY_LOW, STACK_512) | |
| RTOS_DEFINE_TASK (report_telemetry_02hz, TELEMETRY_02HZ_PERIOD_MS, TASK_PRIORITY_LOW, STACK_512) | |
| DEFINE_WATCHDOG_TASK () | |
| DEFINE_HEARTBEAT_TASK (nullptr) | |
| int | main (void) |
Variables | |
| PHAL_GPIO_InitConfig_t | gpio_config [] |
"Main Module" node source code
| DEFINE_CAN_TASKS | ( | ) |
| DEFINE_HEARTBEAT_TASK | ( | nullptr | ) |
| DEFINE_WATCHDOG_TASK | ( | ) |
|
extern |
| int main | ( | void | ) |
| RTOS_DEFINE_TASK | ( | fault_library_periodic | , |
| MAIN_MODULE_FAULT_SYNC_PERIOD_MS | , | ||
| TASK_PRIORITY_NORMAL | , | ||
| STACK_1024 | ) |
| RTOS_DEFINE_TASK | ( | report_telemetry_02hz | , |
| TELEMETRY_02HZ_PERIOD_MS | , | ||
| TASK_PRIORITY_LOW | , | ||
| STACK_512 | ) |
| RTOS_DEFINE_TASK | ( | report_telemetry_1hz | , |
| TELEMETRY_1HZ_PERIOD_MS | , | ||
| TASK_PRIORITY_LOW | , | ||
| STACK_512 | ) |
| RTOS_DEFINE_TASK | ( | report_telemetry_50hz | , |
| TELEMETRY_50HZ_PERIOD_MS | , | ||
| TASK_PRIORITY_LOW | , | ||
| STACK_512 | ) |
| RTOS_DEFINE_TASK | ( | SDC_task_periodic | , |
| SDC_TASK_PERIOD_MS | , | ||
| TASK_PRIORITY_NORMAL | , | ||
| STACK_512 | ) |
| RTOS_DEFINE_TASK | ( | vehicle_fsm_periodic | , |
| VEHICLE_FSM_PERIOD_MS | , | ||
| TASK_PRIORITY_NORMAL | , | ||
| STACK_2048 | ) |
| PHAL_GPIO_InitConfig_t gpio_config[] |