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, I need to understands how it works a serial.attach. For exemple I have a module gsm and he send 5 characteres. the first char active my interrupt (.attach) the Mbed makes a jump to the funtion and I execute some code. but in de midlle of execution (function of attach) arrived the second char. What´s append? I terminate the function of .attach "interrupt" or mbed restart the interrupted and i lost the execution of first char? many thanks from Portugal.
void comm(){ pc.putc(gsm.getc()); ...my code;}
int main(){
gsm.attach(&comm, Serial::RxIrq); while (1){ ....normal code}}