1234567891011121314151617181920 |
- #ifndef _MMODBUS_CONFIG_H_
- #define _MMODBUS_CONFIG_H_
- #define _MMODBUS_FREERTOS 0
- #define _MMODBUS_RTU 1
- #define _MMODBUS_ASCII 0 // not implemented yet
- #define _MMODBUS_USART USART1
- #define _MMODBUS_RXSIZE 64
- #define _MMODBUS_TXDMA 0
- #define RS485_CTRL_GPIO_Port GPIOA
- #define RS485_CTRL_Pin GPIO_PIN_8
- #define _MMODBUS_CTRL_GPIO RS485_CTRL_GPIO_Port
- #define _MMODBUS_CTRL_PIN RS485_CTRL_Pin
- #if (_MMODBUS_RTU == 1) && (_MMODBUS_ASCII == 1)
- #error please select _MMODBUS_RTU or _MMODBUS_ASCII
- #endif
- #endif
|