University of Plymouth - Stages 1, 2 and 3 / Mbed OS Task341Solution

Fork of Task341Solution by Nicholas Outram

Files at this revision

API Documentation at this revision

Comitter:
noutram
Date:
Wed Sep 18 12:04:05 2019 +0000
Parent:
1:dbb3a9fe720d
Commit message:
2019

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed-os.lib Show annotated file Show diff for this revision Revisions of this file
mbed_app.json Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Thu Jul 13 14:50:14 2017 +0000
+++ b/main.cpp	Wed Sep 18 12:04:05 2019 +0000
@@ -1,8 +1,17 @@
 #include "mbed.h"
 
+#ifdef TARGET_NUCLEO_F429ZI
+//#define ONBOARD
+#endif
+
+#ifdef ONBOARD
+BusOut binaryOutput(LED1, LED2, LED3);
+DigitalIn SW1(USER_BUTTON);
+#else
 //Global objects
 BusOut binaryOutput(D5, D6, D7);
 DigitalIn SW1(D4);
+#endif
 
 //Function prototypes
 void waitForButtonPress();
--- a/mbed-os.lib	Thu Jul 13 14:50:14 2017 +0000
+++ b/mbed-os.lib	Wed Sep 18 12:04:05 2019 +0000
@@ -1,1 +1,1 @@
-https://github.com/ARMmbed/mbed-os/#8828635da469162cf2854b5287561c663fb96e72
+https://github.com/ARMmbed/mbed-os/#1bf6b20df9d3cd5f29f001ffc6f0d0fcbbb96118
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed_app.json	Wed Sep 18 12:04:05 2019 +0000
@@ -0,0 +1,3 @@
+{
+    "requires": ["bare-metal"]
+}
\ No newline at end of file