Red Bird Racing VCU v2
 
Loading...
Searching...
No Matches
BoardConfig.h File Reference

Board configuration for the VCU (Vehicle Control Unit) More...

This graph shows which files directly or indirectly include this file:

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
 

Detailed Description

Board configuration for the VCU (Vehicle Control Unit)

Author
Planeson, Red Bird Racing
Date
2026-01-15
Version
2.0.1

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.

Options
  • USE_ARDUINO_PINS: Use Arduino Uno pin numbers
  • USE_VCU_V2: Use VCU V2 pin numbers
  • USE_VCU_V3: Use VCU V3 pin numbers
  • USE_3CH_CAN: Use 3 channel CAN dev board pin numbers
  • USE_VCU_V3_2: Use VCU V3.2 pin numbers
  • Undefined: no pins defined, intentional compilation error
Note
Only one option should be uncommented at a time.

Definition in file BoardConfig.h.

Macro Definition Documentation

◆ APPS_3V3

#define APPS_3V3   PIN_A7

Definition at line 43 of file BoardConfig.h.

◆ APPS_5V

#define APPS_5V   PIN_A6

Definition at line 42 of file BoardConfig.h.

◆ BRAKE_IN

#define BRAKE_IN   PIN_PC0

Definition at line 44 of file BoardConfig.h.

◆ BRAKE_LIGHT

#define BRAKE_LIGHT   PIN_PD5

Definition at line 48 of file BoardConfig.h.

◆ BUTTON_ACTIVE

#define BUTTON_ACTIVE   HIGH

Definition at line 58 of file BoardConfig.h.

◆ BUZZER

#define BUZZER   PIN_PD6

Definition at line 55 of file BoardConfig.h.

◆ CAN_RATE

#define CAN_RATE   CAN_500KBPS

Definition at line 205 of file BoardConfig.h.

◆ CS_CAN_BMS

#define CS_CAN_BMS   PIN_PB2

Definition at line 38 of file BoardConfig.h.

◆ CS_CAN_DL

#define CS_CAN_DL   PIN_PD1

Definition at line 37 of file BoardConfig.h.

◆ CS_CAN_MOTOR

#define CS_CAN_MOTOR   PIN_PB1

Definition at line 39 of file BoardConfig.h.

◆ DRIVE_MODE_BTN

#define DRIVE_MODE_BTN   PIN_PC5

Definition at line 52 of file BoardConfig.h.

◆ FRG

#define FRG   PIN_PD7

Definition at line 51 of file BoardConfig.h.

◆ HALL_SENSOR

#define HALL_SENSOR   PIN_PC1

Definition at line 45 of file BoardConfig.h.

◆ MCP2515_CRYSTAL_FREQ

#define MCP2515_CRYSTAL_FREQ   MCP_20MHZ

Definition at line 61 of file BoardConfig.h.

◆ OUT_4

#define OUT_4   PIN_PB0

Definition at line 31 of file BoardConfig.h.

◆ OUT_5

#define OUT_5   PIN_PC2

Definition at line 32 of file BoardConfig.h.

◆ OUT_6

#define OUT_6   PIN_PC3

Definition at line 33 of file BoardConfig.h.

◆ OUT_7

#define OUT_7   PIN_PC4

Definition at line 34 of file BoardConfig.h.

◆ USE_VCU_V3_2

#define USE_VCU_V3_2

Definition at line 25 of file BoardConfig.h.