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.
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.
Timer | GPIO Port and Pin |
TMR1 | P3_1, P5_3 |
TMR2 | P2_4, P3_2, P4_0, P5_4 |
TMR3 | P2_5, P3_3, P5_5 |
TMR4 | P2_6, P3_4, P5_0, P5_6 |
TMR5 | P3_5, P5_1 |
Note GPIO P2_4, P2_5 and P2_6 are connected to onboard LEDs 1, 2 and 3.
Revision 4:bd1c27ca31e8, committed 2019-01-29
- Comitter:
- MuratAslan
- Date:
- Tue Jan 29 07:44:10 2019 +0000
- Parent:
- 3:717258c64304
- Commit message:
- Free PWM timer in destructor
Changed in this revision
MAX32630FTHR_PwmOut.h | Show annotated file Show diff for this revision Revisions of this file |
diff -r 717258c64304 -r bd1c27ca31e8 MAX32630FTHR_PwmOut.h --- a/MAX32630FTHR_PwmOut.h Fri Apr 20 22:36:02 2018 +0000 +++ b/MAX32630FTHR_PwmOut.h Tue Jan 29 07:44:10 2019 +0000 @@ -90,6 +90,7 @@ ~MAX32630FTHR_PwmOut() { core_util_critical_section_enter(); unlock_deep_sleep(); + pwmout_free(); core_util_critical_section_exit(); }