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.
Fork of mbed-src by
Diff: targets/hal/TARGET_NXP/TARGET_LPC11UXX/pwmout_api.c
- Revision:
- 274:6937b19af361
- Parent:
- 227:7bd0639b8911
diff -r 92da1fd309d2 -r 6937b19af361 targets/hal/TARGET_NXP/TARGET_LPC11UXX/pwmout_api.c
--- a/targets/hal/TARGET_NXP/TARGET_LPC11UXX/pwmout_api.c Wed Aug 06 07:45:07 2014 +0100
+++ b/targets/hal/TARGET_NXP/TARGET_LPC11UXX/pwmout_api.c Wed Aug 06 08:15:07 2014 +0100
@@ -17,38 +17,11 @@
#include "pwmout_api.h"
#include "cmsis.h"
#include "pinmap.h"
+#include "PeripheralPins.h" // For the Peripheral to Pin Definitions found in the individual Target's Platform
#define TCR_CNT_EN 0x00000001
#define TCR_RESET 0x00000002
-/* To have a PWM where we can change both the period and the duty cycle,
- * we need an entire timer. With the following conventions:
- * * MR3 is used for the PWM period
- * * MR0, MR1, MR2 are used for the duty cycle
- */
-static const PinMap PinMap_PWM[] = {
- /* CT16B0 */
- {P0_8 , PWM_1, 2}, {P1_13, PWM_1, 2}, /* MR0 */
- {P0_9 , PWM_2, 2}, {P1_14, PWM_2, 2}, /* MR1 */
- {P0_10, PWM_3, 3}, {P1_15, PWM_3, 2}, /* MR2 */
-
- /* CT16B1 */
- {P0_21, PWM_4, 1}, /* MR0 */
- {P0_22, PWM_5, 2}, {P1_23, PWM_5, 1}, /* MR1 */
-
- /* CT32B0 */
- {P0_18, PWM_6, 2}, {P1_24, PWM_6, 1}, /* MR0 */
- {P0_19, PWM_7, 2}, {P1_25, PWM_7, 1}, /* MR1 */
- {P0_1 , PWM_8, 2}, {P1_26, PWM_8, 1}, /* MR2 */
-
- /* CT32B1 */
- {P0_13, PWM_9 , 3}, {P1_0, PWM_9 , 1}, /* MR0 */
- {P0_14, PWM_10, 3}, {P1_1, PWM_10, 1}, /* MR1 */
- {P0_15, PWM_11, 3}, {P1_2, PWM_11, 1}, /* MR2 */
-
- {NC, NC, 0}
-};
-
typedef struct {
uint8_t timer;
uint8_t mr;
