|
@@ -39,7 +39,7 @@
|
|
#define UPS_USART_STOP_BIT USART_StopBits_1
|
|
#define UPS_USART_STOP_BIT USART_StopBits_1
|
|
|
|
|
|
#ifdef PORTGW_ENABLE
|
|
#ifdef PORTGW_ENABLE
|
|
-#define RS485_USART UART3
|
|
|
|
|
|
+#define RS485_USART USART3
|
|
#define RS485_USART_BAUD 115200
|
|
#define RS485_USART_BAUD 115200
|
|
#define RS485_USART_WORD_LEN 8
|
|
#define RS485_USART_WORD_LEN 8
|
|
#define RS485_USART_PARITY USART_Parity_No
|
|
#define RS485_USART_PARITY USART_Parity_No
|
|
@@ -49,6 +49,8 @@
|
|
QueueHandle_t rs485TxQ, rs485RxQ;
|
|
QueueHandle_t rs485TxQ, rs485RxQ;
|
|
/* RS485 mutex */
|
|
/* RS485 mutex */
|
|
SemaphoreHandle_t rs485mutex;
|
|
SemaphoreHandle_t rs485mutex;
|
|
|
|
+
|
|
|
|
+void rs485_enable_tx(void);
|
|
#endif
|
|
#endif
|
|
|
|
|
|
#ifdef DALLAS_SENSOR_ENABLE
|
|
#ifdef DALLAS_SENSOR_ENABLE
|