Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of Task328 by
Revision 3:25b67e69f6fc, committed 2019-09-12
- Comitter:
- noutram
- Date:
- Thu Sep 12 15:12:04 2019 +0000
- Parent:
- 2:52faa20a51b4
- Commit message:
- 2019
Changed in this revision
diff -r 52faa20a51b4 -r 25b67e69f6fc main.cpp --- a/main.cpp Tue Oct 10 17:05:48 2017 +0000 +++ b/main.cpp Thu Sep 12 15:12:04 2019 +0000 @@ -2,9 +2,20 @@ #define N 100000 #define RELEASED 0 #define PRESSED 1 + +#ifdef TARGET_NUCLEO_F429ZI +//#define ONBOARD +#endif + +#ifdef ONBOARD +DigitalOut red_led(LED3); //CountUp is in its critical section +DigitalOut yellow_led(LED2); //CountDown is in its critical section +DigitalOut green_led(LED1); //counter != 0 +#else DigitalOut red_led(D7); //CountUp is in its critical section DigitalOut yellow_led(D6); //CountDown is in its critical section DigitalOut green_led(D5); //counter != 0 +#endif DigitalIn button(USER_BUTTON); //Shared mutable state @@ -62,6 +73,7 @@ int main() { green_led = 1; + wait(2); Timeout t1; // TRY EACH OF THESE LINES IN TURN.
diff -r 52faa20a51b4 -r 25b67e69f6fc mbed-os.lib --- a/mbed-os.lib Tue Oct 10 17:05:48 2017 +0000 +++ b/mbed-os.lib Thu Sep 12 15:12:04 2019 +0000 @@ -1,1 +1,1 @@ -https://github.com/ARMmbed/mbed-os/#8828635da469162cf2854b5287561c663fb96e72 +https://github.com/ARMmbed/mbed-os/#1bf6b20df9d3cd5f29f001ffc6f0d0fcbbb96118
diff -r 52faa20a51b4 -r 25b67e69f6fc mbed_app.json --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed_app.json Thu Sep 12 15:12:04 2019 +0000 @@ -0,0 +1,3 @@ +{ + "requires": ["bare-metal"] +} \ No newline at end of file