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.
4 years, 1 month ago.
Strange compiler Error 147 and 135 in InterruptIn
I have declared an interrupt like this:-
My main() looks like this:-
tone.mode(PullUp); . . . tone.fall(&tone_isr);
this is the same as for all other inrterrupts I am using, but when I compile, I get the following:-
Error: Declaration is incompatible with "mbed::InterruptIn tone_isr" (declared at <a href="#" onmousedown="mbed_doc_goto('/RC5_AndrewR/Pindef1114.h', '24'); return false;">Pindef1114.h:24</a>) in "main.cpp", Line: 199, Col: 7
and a bit further down nin the compile error report
Error: Class "mbed::DigitalIn" has no member "fall" in "main.cpp", Line: 430, Col: 11
Any pointers as to what I am doing wrong?