Task 5.2.3 Solution

Files at this revision

API Documentation at this revision

Comitter:
noutram
Date:
Fri Sep 20 13:39:27 2019 +0000
Parent:
2:df9c87ac7704
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.bld 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	Mon Nov 12 14:14:47 2018 +0000
+++ b/main.cpp	Fri Sep 20 13:39:27 2019 +0000
@@ -1,7 +1,11 @@
 #include "mbed.h"
 
 //Global PWM object
-PwmOut pwmRed(D6);
+#ifdef TARGET_NUCLEO_F429ZI
+PwmOut pwmRed(D6);  //D7 is not a PWM output on the F429, so use D6 instead
+#else
+PwmOut pwmRed(D7);
+#endif
 
 int T = 100;    //100uS
 volatile int Tmark = 0; //0us
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed-os.lib	Fri Sep 20 13:39:27 2019 +0000
@@ -0,0 +1,1 @@
+https://github.com/ARMmbed/mbed-os/#1bf6b20df9d3cd5f29f001ffc6f0d0fcbbb96118
--- a/mbed.bld	Mon Nov 12 14:14:47 2018 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,1 +0,0 @@
-https://os.mbed.com/users/mbed_official/code/mbed/builds/7130f322cb7e
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed_app.json	Fri Sep 20 13:39:27 2019 +0000
@@ -0,0 +1,3 @@
+{
+    "requires": ["bare-metal"]
+}
\ No newline at end of file