|
PER Firmware
|
"Torque Vector" node source code More...
#include "main.h"#include "can_library/generated/TORQUE_VECTOR.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/usart/usart.h"#include "common/phal_G4/pin_defs/g474ret6.h"#include "common/utils/countof.h"#include "common/watchdog/watchdog.h"#include "control_loop.h"#include "sensors.h"#include "telemetry.h"Variables | |
| PHAL_GPIO_InitConfig_t | gpio_config [] |
| static constexpr uint32_t | GPS_BAUD_RATE = 460'800 |
| static constexpr PHAL_USART_Idx_t | GPS_USART = USART3_IDX |
"Torque Vector" node source code
| DEFINE_CAN_TASKS | ( | ) |
| DEFINE_HEARTBEAT_TASK | ( | nullptr | ) |
| DEFINE_WATCHDOG_TASK | ( | ) |
|
extern |
| int main | ( | void | ) |
| RTOS_DEFINE_TASK | ( | control_loop | , |
| CONTROL_LOOP_PERIOD_MS | , | ||
| TASK_PRIORITY_NORMAL | , | ||
| STACK_4096 | ) |
| RTOS_DEFINE_TASK | ( | gps_periodic | , |
| GPS_THREAD_PERIOD_MS | , | ||
| TASK_PRIORITY_LOW | , | ||
| STACK_1024 | ) |
| RTOS_DEFINE_TASK | ( | report_telemetry_1hz | , |
| TELEMETRY_1HZ_PERIOD_MS | , | ||
| TASK_PRIORITY_LOW | , | ||
| STACK_512 | ) |
| RTOS_DEFINE_TASK | ( | report_telemetry_25hz | , |
| TELEMETRY_25HZ_PERIOD_MS | , | ||
| TASK_PRIORITY_LOW | , | ||
| STACK_512 | ) |
| PHAL_GPIO_InitConfig_t gpio_config[] |
|
staticconstexpr |
|
staticconstexpr |