firmware defines
This commit is contained in:
38
firmware/include/lemon-pepper.h
Normal file
38
firmware/include/lemon-pepper.h
Normal file
@@ -0,0 +1,38 @@
|
||||
#pragma once
|
||||
|
||||
// MOTOR DRIVER L6226Q
|
||||
#define U_PWM PA10
|
||||
#define V_PWM PA9
|
||||
#define W_PWM PA1
|
||||
|
||||
#define A1 PA0
|
||||
#define A2 PA1
|
||||
#define B1 PA9
|
||||
#define B2 PA10
|
||||
|
||||
#define MOT_EN PB12
|
||||
|
||||
// ENCODER MT6835
|
||||
#define ENC_A PB4
|
||||
#define ENC_B PB5
|
||||
#define ENC_Z PB3
|
||||
|
||||
#define ENC_COPI PA7
|
||||
#define ENC_CIPO PA6
|
||||
#define ENC_SCK PA5
|
||||
#define ENC_CS PC4
|
||||
#define ENC_CAL PA4
|
||||
|
||||
// CURRENT SENSE
|
||||
#define ISENSE_U PA3
|
||||
#define ISENSE_V PB13
|
||||
#define ISENSE_W PB0
|
||||
|
||||
// COMMUNICATION
|
||||
#define CAN_TX PB8
|
||||
#define CAN_RX PB9
|
||||
|
||||
// AUX
|
||||
#define LED_GOOD PB10
|
||||
#define LED_FAULT PB11
|
||||
|
||||
Reference in New Issue
Block a user