Timer based PWM output for MAX32630FTHR platform

This library provides PWM output using the MAX32630 32-bit timers.

The mbed PwmOut API implementation uses the MAX32630 Pulse Train peripherals.

The table below contains the available GPIO pins that can be connected to the six 32-bit timers (TMR0-5). Timer 0 is used for the microsecond ticker API and is not available for PWM output. Timer 5 is used by the BLE API and will not be available for PWM output if the BLE API is used.

TimerGPIO Port and Pin
TMR1P3_1, P5_3
TMR2P2_4, P3_2, P4_0, P5_4
TMR3P2_5, P3_3, P5_5
TMR4P2_6, P3_4, P5_0, P5_6
TMR5P3_5, P5_1

Note GPIO P2_4, P2_5 and P2_6 are connected to onboard LEDs 1, 2 and 3.

Revision:
2:77d9bb2fa44e
Parent:
1:27721b0d390b
Child:
3:717258c64304
--- a/MAX32630FTHR_PwmOut.h	Fri Apr 20 17:27:50 2018 +0000
+++ b/MAX32630FTHR_PwmOut.h	Fri Apr 20 17:40:46 2018 +0000
@@ -1,4 +1,4 @@
-/* Original files PwmOut.h and pwmout_api.h contined the following copyright */
+/* Original files PwmOut.h and pwmout_api.h contained the following copyright */
 /* mbed Microcontroller Library
  * Copyright (c) 2006-2013 ARM Limited
  *
@@ -38,11 +38,11 @@
  * not be available for PWM output if the BLE API is used.
  * 
  * Timer | GPIO Port and Pin<br>
- * TMR1  | P3_1              P5_3<br>
- * TMR2  | P3_2  P4_0        P5_4<br>
- * TMR3  | P3_3              P5_5<br>
- * TMR4  | P3_4        P5_0  P5_6<br>
- * TMR5  | P3.5        P5.1<br>
+ * TMR1  | P3_1,              P5_3<br>
+ * TMR2  | P3_2,  P4_0,        P5_4<br>
+ * TMR3  | P3_3,              P5_5<br>
+ * TMR4  | P3_4,        P5_0,  P5_6<br>
+ * TMR5  | P3_5,        P5_1<br>
  *
  * @code
  * #include "mbed.h"