#include <iostream>
#include <iomanip>
#include <roboard>
using namespace std;
int main()
{
roboio_SetRBVer(RB_110);
if(com3_Init(COM_HDUPLEX))
{
com3_SetBaud(COMBAUD_499200BPS);
com3_SetFormat(COM_BYTESIZE8,COM_STOPBIT1,COM_NOPARITY);
com3_EnableTurboMode();
// ....
com3_Close();
}
else
{
std::cout << "Unable to initialize com3 port" << std::endl;
std::cout << roboio_GetErrMsg() << std::endl;
}
return 0;
}
Unable to initialize com3 port
cannot open COM2 device driver