#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 USART3 #define _MMODBUS_RXSIZE 64 #define _MMODBUS_TXDMA 0 #define _MMODBUS_CTRL_GPIO USART_485_DE_GPIO_PORT #define _MMODBUS_CTRL_PIN USART_485_DE_PIN #define gettick( ) ( OSTimeGet() ) #if (_MMODBUS_RTU == 1) && (_MMODBUS_ASCII == 1) #error please select _MMODBUS_RTU or _MMODBUS_ASCII #endif #endif