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:
33:2ca2e47f9650
--- a/Device/FastPWM_KSDK.cpp	Sun Sep 03 19:40:01 2017 +0000
+++ b/Device/FastPWM_KSDK.cpp	Wed Oct 30 03:00:00 2019 +0000
@@ -20,7 +20,7 @@
 static FTM_Type *const ftm_addrs[] = FTM_BASE_PTRS;
 
 void FastPWM::initFastPWM( void ) {
-    fast_obj = new fastpwm_struct;
+    fast_obj = malloc(sizeof(fastpwm_struct));
     bits = 16;
 
     pwm_prescaler = SystemCoreClock / CLOCK_GetFreq(kCLOCK_BusClk);;