PER Firmware
Loading...
Searching...
No Matches
main.h File Reference

"Abox" node source code More...

#include "common/phal/gpio.h"
#include "adbms.h"

Go to the source code of this file.

Classes

struct  adc1_dma_buffer_t
 

Macros

#define HEARTBEAT_LED_PORT   (GPIOB)
 
#define HEARTBEAT_LED_PIN   (5)
 
#define ERROR_LED_PORT   (GPIOB)
 
#define ERROR_LED_PIN   (9)
 
#define CONNECTION_LED_PORT   (GPIOB)
 
#define CONNECTION_LED_PIN   (4)
 
#define SPI1_SCK_PORT   (GPIOA)
 
#define SPI1_MISO_PORT   (GPIOA)
 
#define SPI1_MOSI_PORT   (GPIOA)
 
#define SPI1_SCK_PIN   (5)
 
#define SPI1_MISO_PIN   (6)
 
#define SPI1_MOSI_PIN   (7)
 
#define SPI1_CS_PORT   (GPIOB)
 
#define SPI1_CS_PIN   (0)
 
#define ISENSE_GPIO_PORT   (GPIOA)
 
#define ISENSE_GPIO_PIN   (0)
 
#define ISENSE_ADC_CHANNEL   (1)
 
#define VBATT_GPIO_PORT   (GPIOA)
 
#define VBATT_GPIO_PIN   (1)
 
#define VBATT_ADC_CHANNEL   (2)
 
#define CHARGER_CONNECTED_PORT   (GPIOB)
 
#define CHARGER_CONNECTED_PIN   (2)
 
#define NOT_PRECHARGE_COMPLETE_PORT   (GPIOB)
 
#define NOT_PRECHARGE_COMPLETE_PIN   (11)
 
#define IMD_STATUS_PORT   (GPIOA)
 
#define IMD_STATUS_PIN   (9)
 
#define BMS_SDC_CTRL_PORT   (GPIOA)
 
#define BMS_SDC_CTRL_PIN   (10)
 

Variables

volatile adc1_dma_buffer_t adc1_dma_buffer
 
adbms_bms_t g_bms
 

Detailed Description