Solution to the blocking task - do not expect this to work well however!
Fork of Task330_blocking by
demo-self-test.hpp@6:2050203fd22b, 2019-09-18 (annotated)
- Committer:
- noutram
- Date:
- Wed Sep 18 10:49:18 2019 +0000
- Revision:
- 6:2050203fd22b
2019
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| noutram | 6:2050203fd22b | 1 | #ifndef __DEMO_SELF_TEST__ |
| noutram | 6:2050203fd22b | 2 | #define __DEMO_SELF_TEST__ |
| noutram | 6:2050203fd22b | 3 | |
| noutram | 6:2050203fd22b | 4 | #include "mbed.h" |
| noutram | 6:2050203fd22b | 5 | extern void POST(); |
| noutram | 6:2050203fd22b | 6 | |
| noutram | 6:2050203fd22b | 7 | //Hardware objects |
| noutram | 6:2050203fd22b | 8 | extern DigitalOut red_led; //CountUp is in its critical section |
| noutram | 6:2050203fd22b | 9 | extern DigitalOut yellow_led; //CountDown is in its critical section |
| noutram | 6:2050203fd22b | 10 | extern DigitalOut green_led; //counter != 0 |
| noutram | 6:2050203fd22b | 11 | extern DigitalOut onboardLED; |
| noutram | 6:2050203fd22b | 12 | |
| noutram | 6:2050203fd22b | 13 | extern DigitalIn button; |
| noutram | 6:2050203fd22b | 14 | extern DigitalIn sw1; |
| noutram | 6:2050203fd22b | 15 | extern DigitalIn sw2; |
| noutram | 6:2050203fd22b | 16 | |
| noutram | 6:2050203fd22b | 17 | #endif |
