firmware
IEM Firmware Documentation
|
: Header for main.c file. This file contains the common defines of the application. More...
#include "stm32f4xx_hal.h"
#include <stdbool.h>
Go to the source code of this file.
Data Structures | |
struct | manual_balancing_t |
Functions | |
void | HAL_TIM_MspPostInit (TIM_HandleTypeDef *htim) |
void | Error_Handler (void) |
This function is executed in case of error occurrence. | |
void | send_can_msg_from_irq () |
void | send_cell_vals_polling () |
Variables | |
SPI_HandleTypeDef * | ltc_spi |
int16_t | poll_cell_temps |
int16_t | poll_cell_voltages |
TIM_HandleTypeDef | htim1 |
TIM_HandleTypeDef | htim7 |
TIM_HandleTypeDef | htim13 |
int32_t | fault_timer |
: Header for main.c file. This file contains the common defines of the application.
Copyright (c) 2024 STMicroelectronics. All rights reserved.
This software is licensed under terms that can be found in the LICENSE file in the root directory of this software component. If no LICENSE file comes with this software, it is provided AS-IS.
#define ADC_CLKIN_GPIO_Port GPIOC |
#define ADC_CLKIN_Pin GPIO_PIN_6 |
#define ADC_DRDY_GPIO_Port GPIOC |
#define ADC_DRDY_Pin GPIO_PIN_7 |
#define ADC_RST_GPIO_Port GPIOC |
#define ADC_RST_Pin GPIO_PIN_8 |
#define BMS_FLT_EN_GPIO_Port GPIOC |
#define BMS_FLT_EN_Pin GPIO_PIN_13 |
#define CAN1_RX_FIF0_IRQ CAN1_RX0_IRQn |
#define CAN_TX_TIMER_IRQ TIM7_IRQn |
#define CHARGE_EN_GPIO_Port GPIOA |
#define CHARGE_EN_Pin GPIO_PIN_8 |
#define DEBUG_LED_GPIO_Port GPIOA |
#define DEBUG_LED_Pin GPIO_PIN_2 |
#define DISABLE_ALL_CAN_IRQS |
#define DISABLE_ALL_IRQS |
#define DISABLE_CAN1_RX_FIF0_IRQ HAL_NVIC_DisableIRQ(CAN_TX_TIMER_IRQ) |
#define DISABLE_CAN_TX_TIMER_IRQ HAL_NVIC_DisableIRQ(CAN_TX_TIMER_IRQ) |
#define ENABLE_ALL_CAN_IRQS |
#define ENABLE_ALL_IRQS |
#define ENABLE_CAN1_RX_FIF0_IRQ HAL_NVIC_EnableIRQ(CAN_TX_TIMER_IRQ) |
#define ENABLE_CAN_TX_TIMER_IRQ HAL_NVIC_EnableIRQ(CAN_TX_TIMER_IRQ) |
#define HSE_IN_GPIO_Port GPIOH |
#define HSE_IN_Pin GPIO_PIN_0 |
#define HSE_OUT_GPIO_Port GPIOH |
#define HSE_OUT_Pin GPIO_PIN_1 |
#define IMD_DIAGNOSTIC_GPIO_Port GPIOB |
#define IMD_DIAGNOSTIC_Pin GPIO_PIN_3 |
#define ISOADC_TIMER_IRQ TIM1_UP_TIM10_IRQn |
#define LSE_IN_GPIO_Port GPIOC |
#define LSE_IN_Pin GPIO_PIN_14 |
#define LSE_OUT_GPIO_Port GPIOC |
#define LSE_OUT_Pin GPIO_PIN_15 |
#define LV_PWR_MONITOR_GPIO_Port GPIOC |
#define LV_PWR_MONITOR_Pin GPIO_PIN_4 |
#define PRECHARGE_COMPLETE_GPIO_Port GPIOA |
#define PRECHARGE_COMPLETE_Pin GPIO_PIN_1 |
#define SHUTDOWN_ACTIVE_GPIO_Port GPIOC |
#define SHUTDOWN_ACTIVE_Pin GPIO_PIN_3 |
#define SPI_ADC_CS_GPIO_Port GPIOB |
#define SPI_ADC_CS_Pin GPIO_PIN_12 |
#define SPI_ADC_MISO_GPIO_Port GPIOB |
#define SPI_ADC_MISO_Pin GPIO_PIN_14 |
#define SPI_ADC_MOSI_GPIO_Port GPIOB |
#define SPI_ADC_MOSI_Pin GPIO_PIN_15 |
#define SPI_ADC_SCK_GPIO_Port GPIOB |
#define SPI_ADC_SCK_Pin GPIO_PIN_13 |
#define SPI_FERAM_CS_GPIO_Port GPIOA |
#define SPI_FERAM_CS_Pin GPIO_PIN_15 |
#define SPI_FERAM_MISO_GPIO_Port GPIOC |
#define SPI_FERAM_MISO_Pin GPIO_PIN_11 |
#define SPI_FERAM_MOSI_GPIO_Port GPIOC |
#define SPI_FERAM_MOSI_Pin GPIO_PIN_12 |
#define SPI_FERAM_SCK_GPIO_Port GPIOC |
#define SPI_FERAM_SCK_Pin GPIO_PIN_10 |
#define SPI_UCOMM_CS_GPIO_Port GPIOA |
#define SPI_UCOMM_CS_Pin GPIO_PIN_4 |
#define SPI_UCOMM_MISO_GPIO_Port GPIOA |
#define SPI_UCOMM_MISO_Pin GPIO_PIN_6 |
#define SPI_UCOMM_MOSI_GPIO_Port GPIOA |
#define SPI_UCOMM_MOSI_Pin GPIO_PIN_7 |
#define SPI_UCOMM_SCK_GPIO_Port GPIOA |
#define SPI_UCOMM_SCK_Pin GPIO_PIN_5 |
#define SWCLK_TC_GPIO_Port GPIOA |
#define SWCLK_TC_Pin GPIO_PIN_14 |
#define SWDIO_TC_GPIO_Port GPIOA |
#define SWDIO_TC_Pin GPIO_PIN_13 |
void Error_Handler | ( | void | ) |
This function is executed in case of error occurrence.
None |
This function is executed in case of error occurrence.
void HAL_TIM_MspPostInit | ( | TIM_HandleTypeDef * | htim | ) |
TIM3 GPIO Configuration PC6 ------> TIM3_CH1
void send_can_msg_from_irq | ( | ) |
void send_cell_vals_polling | ( | ) |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |