PER Firmware
Loading...
Searching...
No Matches
pindefs.h
Go to the documentation of this file.
1#ifndef PINDEFS_H
2#define PINDEFS_H
3
11#include <stdint.h>
12
13#include "common/phal/gpio.h"
14
15// Status LEDs
16#define HEARTBEAT_LED_PORT (GPIOA)
17#define HEARTBEAT_LED_PIN (0)
18#define ERROR_LED_PORT (GPIOA)
19#define ERROR_LED_PIN (5)
20#define CONNECTION_LED_PORT (GPIOB)
21#define CONNECTION_LED_PIN (2)
22
23// TSAL
24#define TSAL_RED_CTRL_PORT (GPIOC)
25#define TSAL_RED_CTRL_PIN (15)
26#define TSAL_GREEN_CTRL_PORT (GPIOA)
27#define TSAL_GREEN_CTRL_PIN (3)
28#define TSAL_RTM_ENABLE_PORT (GPIOB)
29#define TSAL_RTM_ENABLE_PIN (0)
30#define TSAL_FAULT_PORT (GPIOB)
31#define TSAL_FAULT_PIN (1)
32
33// Brake and Buzzer
34#define BRAKE_LIGHT_PORT (GPIOA)
35#define BRAKE_LIGHT_PIN (1)
36#define BUZZER_PORT (GPIOA)
37#define BUZZER_PIN (2)
38
39// SDC
40#define ECU_SDC_CTRL_PORT (GPIOC)
41#define ECU_SDC_CTRL_PIN (14)
42#define SDC_MUX_PORT (GPIOB)
43#define SDC_MUX_PIN (9)
44#define SDC_MUX_S3_PORT (GPIOB)
45#define SDC_MUX_S3_PIN (7)
46#define SDC_MUX_S2_PORT (GPIOB)
47#define SDC_MUX_S2_PIN (6)
48#define SDC_MUX_S1_PORT (GPIOB)
49#define SDC_MUX_S1_PIN (5)
50#define SDC_MUX_S0_PORT (GPIOB)
51#define SDC_MUX_S0_PIN (4)
52
53// Input status pins
54#define BMS_STATUS_PORT (GPIOC)
55#define BMS_STATUS_PIN (13)
56#define VBATT_ECU_PORT (GPIOA)
57#define VBATT_ECU_PIN (4)
58#define VMC_ECU_PORT (GPIOA)
59#define VMC_ECU_PIN (6)
60#define PRECHARGE_COMPLETE_PORT (GPIOB)
61#define PRECHARGE_COMPLETE_PIN (10)
62
63#endif // PINDEFS_H