Add 1wire support to MOTOLAB target on UART1
This commit is contained in:
parent
b8c5a2c7e2
commit
2a9aba7026
|
@ -62,6 +62,15 @@ const escHardware_t escHardware[ESC_COUNT] = {
|
|||
{ GPIOB, 9 },
|
||||
{ GPIOA, 2 },
|
||||
{ GPIOA, 3 }
|
||||
#elif MOTOLAB
|
||||
{ GPIOA, 4 },
|
||||
{ GPIOA, 6 },
|
||||
{ GPIOB, 0 },
|
||||
{ GPIOB, 1 },
|
||||
{ GPIOA, 1 },
|
||||
{ GPIOA, 2 },
|
||||
{ GPIOA, 3 },
|
||||
{ GPIOA, 8 }
|
||||
#endif
|
||||
};
|
||||
|
||||
|
|
|
@ -176,3 +176,10 @@
|
|||
#define BIND_PORT GPIOB
|
||||
#define BIND_PIN Pin_4
|
||||
|
||||
#define USE_SERIAL_1WIRE
|
||||
#define ESC_COUNT 8
|
||||
#define S1W_TX_GPIO GPIOB
|
||||
#define S1W_TX_PIN GPIO_Pin_6
|
||||
#define S1W_RX_GPIO GPIOB
|
||||
#define S1W_RX_PIN GPIO_Pin_7
|
||||
|
||||
|
|
Loading…
Reference in New Issue