sorry, miss out other two parts.
add macro to aviod compile error with: rt_pin_mode(MODBUS_MASTER_RT_CONTROL_PIN_INDEX, PIN_MODE_OUTPUT);