Board configuration for the VCU (Vehicle Control Unit) More...
Go to the source code of this file.
Macros | |
| #define | USE_VCU_V3_2 |
| #define | OUT_4 PIN_PB0 |
| #define | OUT_5 PIN_PC2 |
| #define | OUT_6 PIN_PC3 |
| #define | OUT_7 PIN_PC4 |
| #define | CS_CAN_DL PIN_PD1 |
| #define | CS_CAN_BMS PIN_PB2 |
| #define | CS_CAN_MOTOR PIN_PB1 |
| #define | APPS_5V PIN_A6 |
| #define | APPS_3V3 PIN_A7 |
| #define | BRAKE_IN PIN_PC0 |
| #define | HALL_SENSOR PIN_PC1 |
| #define | BRAKE_LIGHT PIN_PD5 |
| #define | FRG PIN_PD7 |
| #define | DRIVE_MODE_BTN PIN_PC5 |
| #define | BUZZER PIN_PD6 |
| #define | BUTTON_ACTIVE HIGH |
| #define | MCP2515_CRYSTAL_FREQ MCP_20MHZ |
| #define | CAN_RATE CAN_500KBPS |
Board configuration for the VCU (Vehicle Control Unit)
This file defines the board configuration and pin mappings for different versions of the VCU and for Arduino Uno. Define the appropriate macro to select the desired board configuration.
USE_ARDUINO_PINS: Use Arduino Uno pin numbersUSE_VCU_V2: Use VCU V2 pin numbersUSE_VCU_V3: Use VCU V3 pin numbersUSE_3CH_CAN: Use 3 channel CAN dev board pin numbersUSE_VCU_V3_2: Use VCU V3.2 pin numbersDefinition in file BoardConfig.h.
| #define APPS_3V3 PIN_A7 |
Definition at line 43 of file BoardConfig.h.
| #define APPS_5V PIN_A6 |
Definition at line 42 of file BoardConfig.h.
| #define BRAKE_IN PIN_PC0 |
Definition at line 44 of file BoardConfig.h.
| #define BRAKE_LIGHT PIN_PD5 |
Definition at line 48 of file BoardConfig.h.
| #define BUTTON_ACTIVE HIGH |
Definition at line 58 of file BoardConfig.h.
| #define BUZZER PIN_PD6 |
Definition at line 55 of file BoardConfig.h.
| #define CAN_RATE CAN_500KBPS |
Definition at line 205 of file BoardConfig.h.
| #define CS_CAN_BMS PIN_PB2 |
Definition at line 38 of file BoardConfig.h.
| #define CS_CAN_DL PIN_PD1 |
Definition at line 37 of file BoardConfig.h.
| #define CS_CAN_MOTOR PIN_PB1 |
Definition at line 39 of file BoardConfig.h.
| #define DRIVE_MODE_BTN PIN_PC5 |
Definition at line 52 of file BoardConfig.h.
| #define FRG PIN_PD7 |
Definition at line 51 of file BoardConfig.h.
| #define HALL_SENSOR PIN_PC1 |
Definition at line 45 of file BoardConfig.h.
| #define MCP2515_CRYSTAL_FREQ MCP_20MHZ |
Definition at line 61 of file BoardConfig.h.
| #define OUT_4 PIN_PB0 |
Definition at line 31 of file BoardConfig.h.
| #define OUT_5 PIN_PC2 |
Definition at line 32 of file BoardConfig.h.
| #define OUT_6 PIN_PC3 |
Definition at line 33 of file BoardConfig.h.
| #define OUT_7 PIN_PC4 |
Definition at line 34 of file BoardConfig.h.
| #define USE_VCU_V3_2 |
Definition at line 25 of file BoardConfig.h.