|
PER Firmware
|
"PDU" node source code More...
#include "main.h"#include "fault_library/faults_common.h"#include "can_library/generated/PDU.h"#include "rtos/rtos.h"#include "phal_G4/gpio/gpio.h"#include "phal_G4/pin_defs/g474ret6.h"#include "phal_G4/rcc/rcc.h"#include "phal_G4/adc/adc.h"#include "utils/countof.h"#include "watchdog/watchdog.h"#include "heartbeat/heartbeat.h"#include "cooling_fsm.h"#include "current_sense.h"#include "lv_batt.h"#include "telemetry.h"Variables | |
| PHAL_GPIO_InitConfig_t | gpio_config [] |
| static const PHAL_ADC_ChannelConfig_t | adc1_channels [] |
| static const PHAL_ADC_ChannelConfig_t | adc2_channels [] |
| static const PHAL_ADC_ChannelConfig_t | adc3_channels [] |
| static const PHAL_ADC_Config_t | adc1_config |
| static const PHAL_ADC_Config_t | adc2_config |
| static const PHAL_ADC_Config_t | adc3_config |
| volatile raw_adc1_values_t | raw_adc1_values |
| volatile raw_adc2_values_t | raw_adc2_values |
| volatile raw_adc3_values_t | raw_adc3_values |
| static PHAL_ADC_Handle_t | adc1_handle |
| static PHAL_ADC_Handle_t | adc2_handle |
| static PHAL_ADC_Handle_t | adc3_handle |
"PDU" node source code
| DEFINE_CAN_TASKS | ( | ) |
| DEFINE_HEARTBEAT_TASK | ( | nullptr | ) |
| DEFINE_WATCHDOG_TASK | ( | ) |
| void HardFault_Handler | ( | void | ) |
| int main | ( | void | ) |
| RTOS_DEFINE_TASK | ( | cooling_fsm_periodic | , |
| COOLING_FSM_PERIOD_MS | , | ||
| TASK_PRIORITY_LOW | , | ||
| STACK_1024 | ) |
| RTOS_DEFINE_TASK | ( | current_sense_periodic | , |
| CURRENT_SENSE_TASK_PERIOD_MS | , | ||
| TASK_PRIORITY_LOW | , | ||
| STACK_512 | ) |
| RTOS_DEFINE_TASK | ( | fault_library_periodic | , |
| PDU_FAULT_SYNC_PERIOD_MS | , | ||
| TASK_PRIORITY_NORMAL | , | ||
| STACK_1024 | ) |
| RTOS_DEFINE_TASK | ( | lv_batt_periodic | , |
| LV_BATT_TASK_PERIOD_MS | , | ||
| TASK_PRIORITY_NORMAL | , | ||
| STACK_2048 | ) |
| RTOS_DEFINE_TASK | ( | report_telemetry_02hz | , |
| TELEMETRY_02HZ_PERIOD_MS | , | ||
| TASK_PRIORITY_LOW | , | ||
| STACK_512 | ) |
| RTOS_DEFINE_TASK | ( | SWITCH_enable_all | , |
| 0 | , | ||
| TASK_PRIORITY_LOW | , | ||
| STACK_512 | ) |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
| PHAL_GPIO_InitConfig_t gpio_config[] |
| volatile raw_adc1_values_t raw_adc1_values |
| volatile raw_adc2_values_t raw_adc2_values |
| volatile raw_adc3_values_t raw_adc3_values |