mirror of
https://github.com/dalathegreat/Battery-Emulator.git
synced 2025-10-03 17:59:27 +02:00
add devboard folder
This commit is contained in:
parent
8a1d3c1da5
commit
606f49d548
33 changed files with 32 additions and 32 deletions
35
Software/src/devboard/config.h
Normal file
35
Software/src/devboard/config.h
Normal file
|
@ -0,0 +1,35 @@
|
|||
#ifndef __CONFIG_H__
|
||||
#define __CONFIG_H__
|
||||
|
||||
// PIN mappings, do not change these unless you are adding on extra hardware to the PCB
|
||||
#define PIN_5V_EN 16
|
||||
#define CAN_TX_PIN 27
|
||||
#define CAN_RX_PIN 26
|
||||
#define CAN_SE_PIN 23
|
||||
|
||||
#define RS485_EN_PIN 17 // 17 /RE
|
||||
#define RS485_TX_PIN 22 // 21
|
||||
#define RS485_RX_PIN 21 // 22
|
||||
#define RS485_SE_PIN 19 // 22 /SHDN
|
||||
|
||||
#ifdef DUAL_CAN
|
||||
#define MCP2515_SCK 12 // SCK input of MCP2515
|
||||
#define MCP2515_MOSI 5 // SDI input of MCP2515
|
||||
#define MCP2515_MISO 34 // SDO output of MCP2515 | Pin 34 is input only, without pullup/down resistors
|
||||
#define MCP2515_CS 18 // CS input of MCP2515
|
||||
#define MCP2515_INT 35 // INT output of MCP2515 | | Pin 35 is input only, without pullup/down resistors
|
||||
#endif
|
||||
|
||||
#ifdef CONTACTOR_CONTROL
|
||||
#define POSITIVE_CONTACTOR_PIN 32
|
||||
#define NEGATIVE_CONTACTOR_PIN 33
|
||||
#define PRECHARGE_PIN 25
|
||||
#endif
|
||||
|
||||
#define SD_MISO_PIN 2
|
||||
#define SD_MOSI_PIN 15
|
||||
#define SD_SCLK_PIN 14
|
||||
#define SD_CS_PIN 13
|
||||
#define WS2812_PIN 4
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue