Nuvoton / Mbed OS NuMaker-mbed-PWM1_DCservo

Files at this revision

API Documentation at this revision

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() {