move RS-485 DE/RE pin to PB12

This commit is contained in:
King Kévin 2017-01-22 16:50:53 +01:00
parent dc776f4ebe
commit 7d7b18985c
2 changed files with 3 additions and 3 deletions

View File

@ -88,8 +88,8 @@ Connections 3xSDM120 <-> board:
- VCC; +5V
- GND; ground
- DI; PB10, USART3_TX
- DE; PB1 (shared with RE since one is active low while the other is active high)
- RE; PB1 (shared with DE since one is active low while the other is active high)
- DE; PB12 (shared with RE since one is active low while the other is active high)
- RE; PB12 (shared with DE since one is active low while the other is active high)
- RO; PB11, USART3_RX
ESP8266

View File

@ -45,7 +45,7 @@
* @{
*/
#define SENSOR_SDM120_REDE_PORT B /**< GPIO port for RS-485 receiver and driver output enable signal */
#define SENSOR_SDM120_REDE_PIN 1 /**< GPIO pin for RS-485 receiver and driver output enable signal */
#define SENSOR_SDM120_REDE_PIN 12 /**< GPIO pin for RS-485 receiver and driver output enable signal */
/** @} */
/** @defgroup sensor_sdm120_timer timer peripheral to enforce waiting time between messages