Merge pull request #5 from sblakemore/motolab-1wire

Add 1wire support to MOTOLAB target on UART1
This commit is contained in:
borisbstyle 2015-09-14 11:19:24 +02:00
commit c1afeafee8
2 changed files with 16 additions and 0 deletions

View File

@ -62,6 +62,15 @@ const escHardware_t escHardware[ESC_COUNT] = {
{ GPIOB, 9 }, { GPIOB, 9 },
{ GPIOA, 2 }, { GPIOA, 2 },
{ GPIOA, 3 } { GPIOA, 3 }
#elif MOTOLAB
{ GPIOA, 4 },
{ GPIOA, 6 },
{ GPIOB, 0 },
{ GPIOB, 1 },
{ GPIOA, 1 },
{ GPIOA, 2 },
{ GPIOA, 3 },
{ GPIOA, 8 }
#endif #endif
}; };

View File

@ -176,3 +176,10 @@
#define BIND_PORT GPIOB #define BIND_PORT GPIOB
#define BIND_PIN Pin_4 #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