The presence of rtos library, and line 294 in RF12B.cpp causes a crash when ISR occurs on falling edge on pin 9.
main.cpp@0:b4c2aa657754, 2012-03-25 (annotated)
- Committer:
- narshu
- Date:
- Sun Mar 25 20:14:41 2012 +0000
- Revision:
- 0:b4c2aa657754
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
narshu | 0:b4c2aa657754 | 1 | #include "mbed.h" |
narshu | 0:b4c2aa657754 | 2 | #include "RF12B.h" |
narshu | 0:b4c2aa657754 | 3 | |
narshu | 0:b4c2aa657754 | 4 | DigitalOut myled(LED1); |
narshu | 0:b4c2aa657754 | 5 | RF12B rflol2(p5,p6,p7,p8,p9); |
narshu | 0:b4c2aa657754 | 6 | |
narshu | 0:b4c2aa657754 | 7 | int main() { |
narshu | 0:b4c2aa657754 | 8 | |
narshu | 0:b4c2aa657754 | 9 | printf("We got to maintst! ;D\r\n"); |
narshu | 0:b4c2aa657754 | 10 | |
narshu | 0:b4c2aa657754 | 11 | while(1) { |
narshu | 0:b4c2aa657754 | 12 | myled = 1; |
narshu | 0:b4c2aa657754 | 13 | wait(0.2); |
narshu | 0:b4c2aa657754 | 14 | myled = 0; |
narshu | 0:b4c2aa657754 | 15 | wait(0.2); |
narshu | 0:b4c2aa657754 | 16 | } |
narshu | 0:b4c2aa657754 | 17 | } |