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.
9 years, 5 months ago.
USBSerial Problem and USB examples
Hello!
I had to change library from Serial to USBSerial. I am having small problems here. Does anbody have more examples to send me?
The program I made is blocking when receiving data from the attach interrupt, as follows:
pc.attach(&serialCallback);
...
void serialCallback(void){ while(pc.readable()){ pc._putc(pc._getc()); } }
Some examples would help me a lot!
Thanks,
OF COURSE! you cant use those functions inside an interrupt!!!
posted by Thiago . 25 Jun 2015