Solution to the blocking task - do not expect this to work well however!
Fork of Task330_blocking by
Diff: main.cpp
- Revision:
- 6:2050203fd22b
- Parent:
- 5:a9a9d3b7f62a
--- a/main.cpp Tue Oct 24 13:27:27 2017 +0000
+++ b/main.cpp Wed Sep 18 10:49:18 2019 +0000
@@ -2,6 +2,8 @@
#define N 1000000
#define RELEASED 0
#define PRESSED 1
+#include "demo-self-test.hpp"
+
//Hardware objects
DigitalOut red_led(PE_15); //CountUp is in its critical section
@@ -17,11 +19,8 @@
//illustrate the problem of blocking hardware
int main() {
- //Light up
- red_led = 1;
- yellow_led = 1;
- green_led = 1;
- onboardLED = 1;
+ //Power On Self Test (POST)
+ POST();
//Now loop forever
while(1) {
@@ -43,4 +42,3 @@
wait(0.5);
};
}
-
