Library that allows for higher resolution and speed than standard mbed PWM library using same syntax (drop-in replacement).

Dependencies:   RGBLed

Dependents:   Widgets

Revision:
35:d6c2b73d71f5
Parent:
23:ed690a19dc55
--- a/Device/FastPWM_LPC11XX.cpp	Sun Sep 03 19:40:01 2017 +0000
+++ b/Device/FastPWM_LPC11XX.cpp	Wed Oct 30 03:00:00 2019 +0000
@@ -51,7 +51,7 @@
 
 
 void FastPWM::initFastPWM( void ) {
-    fast_obj = new fastpwm_struct;
+    fast_obj = malloc(sizeof(fastpwm_struct));
     timer_mr tid = pwm_timer_map[_pwm.pwm];
     PWM_TIMER = Timers[tid.timer];
     (((fastpwm_struct*)fast_obj)->MR) = &PWM_TIMER->MR[tid.mr];