Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
Hello All,
I am trying to use MODSERIAL in one of my drivers and cant seem to get the attach to happen when setting up a callback to a member method
void Driver::uartRead(MODSERIAL_IRQ_INFO *) { _pc->putc(_uart.getc()); rxLed =! rxLed; } Driver::Driver(PinName tx, PinName rx, Serial* pc) : _uart(tx, rx) { _pc = pc; _uart.baud(DEFAULT_BAUD); _uart.attach(this, &Driver::uartRead, MODSERIAL::RxIrq); // make sure we are not in config mode! _uart.printf("Q%s",LINE_END); }Which gives me the compile time error. "No instance of overloaded function "AjK::MODSERIAL::attach" matches the argument list (E304)
Since I am new to CPP I am having a hard time locating the issue or is it simply a bug in MODSERIAL?
Thanks for any pointers, Serge