#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            USART0            
#define _MMODBUS_RXSIZE           64  
#define _MMODBUS_TXDMA            0   

#define _MMODBUS_CTRL_GPIO        DE485_GPIO_PORT
#define _MMODBUS_CTRL_PIN         DE485_PIN
#define gettick( )                           ( xTaskGetTickCount() )

#if (_MMODBUS_RTU == 1) && (_MMODBUS_ASCII == 1)
#error please select _MMODBUS_RTU or _MMODBUS_ASCII
#endif
#endif
