update firmware defines to support pcb rev 2

This commit is contained in:
2023-10-28 17:28:08 -04:00
parent 387b8aa31f
commit 4e71a6c509
2 changed files with 17 additions and 1 deletions

View File

@@ -32,6 +32,20 @@
#define CAN_TX PB8
#define CAN_RX PB9
// CONTROL INPUTS
#ifdef PCB_REV1
#define STEP_PIN PB14
#define DIR_PIN PB15
#endif
#ifdef PCB_REV2
#define STEP_PIN PC11
#define DIR_PIN PA8
#define I2C_SDA PC11
#define I2C_SCL PA8
#endif
// AUX
#define LED_GOOD PB10
#define LED_FAULT PB11