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.
Revision 4:cae45e2ca73a, committed 2016-12-22
- Comitter:
- shliu1
- Date:
- Thu Dec 22 15:18:23 2016 +0800
- Parent:
- 3:59536611f5af
- Child:
- 5:89a21aae7abe
- Commit message:
- Support M453, target is numaker_pfm_m453
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Thu Dec 15 11:11:02 2016 +0800
+++ b/main.cpp Thu Dec 22 15:18:23 2016 +0800
@@ -1,7 +1,11 @@
// NuMaker-PFM-NUC472 : PWM1 output to drive DC servo motor
#include "mbed.h"
+#if defined(TARGET_NUMAKER_PFM_NUC472)
PwmOut pwm1(PF_10); // PWM1 pinname
+#elif defined(TARGET_NUMAKER_PFM_M453)
+PwmOut pwm1(PC_7);
+#endif
int main() {