|
PER Firmware
|
"Driveline" node source code More...
#include "can_library/generated/DRIVELINE.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/pin_defs/g474ret6.h"#include "common/utils/countof.h"#include "common/watchdog/watchdog.h"#include "config.h"#include "oil_temps_table.h"#include "pin_defs.h"Classes | |
| struct | raw_adc1_values_t |
| struct | raw_adc2_values_t |
| struct | raw_adc3_values_t |
| struct | raw_adc4_values_t |
Functions | |
| void | HardFault_Handler () |
| void | shockpots_periodic () |
| void | oil_temps_periodic () |
| DEFINE_CAN_TASKS () | |
| RTOS_DEFINE_TASK (shockpots_periodic, FRONT_SHOCKPOTS_PERIOD_MS, TASK_PRIORITY_NORMAL, STACK_512) | |
| RTOS_DEFINE_TASK (oil_temps_periodic, FRONT_OIL_TEMPS_PERIOD_MS, TASK_PRIORITY_NORMAL, STACK_512) | |
| DEFINE_WATCHDOG_TASK () | |
| DEFINE_HEARTBEAT_TASK (nullptr) | |
| int | main (void) |
Variables | |
| PHAL_GPIO_InitConfig_t | gpio_config [] |
| static const PHAL_ADC_ChannelConfig_t | adc1_channels [] |
| static const PHAL_ADC_Config_t | adc1_config |
| volatile raw_adc1_values_t | raw_adc1_values |
| static PHAL_ADC_Handle_t | adc1_handle |
| static const PHAL_ADC_ChannelConfig_t | adc2_channels [] |
| static const PHAL_ADC_Config_t | adc2_config |
| volatile raw_adc2_values_t | raw_adc2_values |
| static PHAL_ADC_Handle_t | adc2_handle |
| static const PHAL_ADC_ChannelConfig_t | adc3_channels [] |
| static const PHAL_ADC_Config_t | adc3_config |
| volatile raw_adc3_values_t | raw_adc3_values |
| static PHAL_ADC_Handle_t | adc3_handle |
| static const PHAL_ADC_ChannelConfig_t | adc4_channels [] |
| static const PHAL_ADC_Config_t | adc4_config |
| volatile raw_adc4_values_t | raw_adc4_values |
| static PHAL_ADC_Handle_t | adc4_handle |
| uint16_t | left_length_scaled = 0 |
| uint16_t | right_length_scaled = 0 |
| int16_t | left_celsius_scaled = 0 |
| int16_t | right_celsius_scaled = 0 |
"Driveline" node source code
| DEFINE_CAN_TASKS | ( | ) |
| DEFINE_HEARTBEAT_TASK | ( | nullptr | ) |
| DEFINE_WATCHDOG_TASK | ( | ) |
|
extern |
| int main | ( | void | ) |
| void oil_temps_periodic | ( | ) |
| RTOS_DEFINE_TASK | ( | oil_temps_periodic | , |
| FRONT_OIL_TEMPS_PERIOD_MS | , | ||
| TASK_PRIORITY_NORMAL | , | ||
| STACK_512 | ) |
| RTOS_DEFINE_TASK | ( | shockpots_periodic | , |
| FRONT_SHOCKPOTS_PERIOD_MS | , | ||
| TASK_PRIORITY_NORMAL | , | ||
| STACK_512 | ) |
| void shockpots_periodic | ( | ) |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
| PHAL_GPIO_InitConfig_t gpio_config[] |
| int16_t left_celsius_scaled = 0 |
| uint16_t left_length_scaled = 0 |
| volatile raw_adc1_values_t raw_adc1_values |
| volatile raw_adc2_values_t raw_adc2_values |
| volatile raw_adc3_values_t raw_adc3_values |
| volatile raw_adc4_values_t raw_adc4_values |
| int16_t right_celsius_scaled = 0 |
| uint16_t right_length_scaled = 0 |