move places RS485 and TX_EN in example
This commit is contained in:
@@ -20,10 +20,10 @@
|
||||
#define MODBUS_LED_OFF LL_GPIO_ResetOutputPin(Modbus_LED, Modbus_LED_Pin);
|
||||
|
||||
#ifdef CURRENT_OPERATION_MODE_UART
|
||||
#define MODBUS_TX_EN GPIO_WriteBit(RS485_GPIO, RS485_GPIO_Pin, Bit_SET);
|
||||
#define MODBUS_TX_DIS GPIO_WriteBit(RS485_GPIO, RS485_GPIO_Pin, Bit_RESET);
|
||||
#define RS485_GPIO GPIOB
|
||||
#define RS485_GPIO_Pin GPIO_Pin_6
|
||||
#define MODBUS_TX_EN GPIO_WriteBit(RS485_GPIO, RS485_GPIO_Pin, Bit_SET);
|
||||
#define MODBUS_TX_DIS GPIO_WriteBit(RS485_GPIO, RS485_GPIO_Pin, Bit_RESET);
|
||||
#define Modbus_UART USART2
|
||||
#define Modbus_TIM TIM2
|
||||
#define Modbus_UART_IRQHandler USART2_IRQHandler
|
||||
|
||||
Reference in New Issue
Block a user