The presence of rtos library, and line 294 in RF12B.cpp causes a crash when ISR occurs on falling edge on pin 9.
Diff: main.cpp
- Revision:
- 0:b4c2aa657754
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Sun Mar 25 20:14:41 2012 +0000 @@ -0,0 +1,17 @@ +#include "mbed.h" +#include "RF12B.h" + +DigitalOut myled(LED1); +RF12B rflol2(p5,p6,p7,p8,p9); + +int main() { + + printf("We got to maintst! ;D\r\n"); + + while(1) { + myled = 1; + wait(0.2); + myled = 0; + wait(0.2); + } +}