/

Fork of FastPWM by Erik -

Files at this revision

API Documentation at this revision

Comitter:
Sissors
Date:
Sat Jun 20 20:03:16 2015 +0000
Parent:
23:ed690a19dc55
Child:
25:8b1bf34c72aa
Commit message:
Changed F103 registers to 32-bit from 16-bit

Changed in this revision

Device/FastPWM_STM_TIM.cpp Show annotated file Show diff for this revision Revisions of this file
Device/FastPWM_STM_TIM_PinOut.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/Device/FastPWM_STM_TIM.cpp	Sun Apr 19 19:35:50 2015 +0000
+++ b/Device/FastPWM_STM_TIM.cpp	Sat Jun 20 20:03:16 2015 +0000
@@ -4,11 +4,7 @@
 
 #include "FastPWM.h"
 
-#if defined TARGET_NUCLEO_F103RB
-typedef __IO uint16_t* CHANNEL_P_T;
-#else
 typedef __IO uint32_t* CHANNEL_P_T;
-#endif
 
 #define PWM_CHANNEL     (**(CHANNEL_P_T*)fast_obj)
 #define PWM_TIMER       ((TIM_TypeDef*)_pwm.pwm)
--- a/Device/FastPWM_STM_TIM_PinOut.cpp	Sun Apr 19 19:35:50 2015 +0000
+++ b/Device/FastPWM_STM_TIM_PinOut.cpp	Sat Jun 20 20:03:16 2015 +0000
@@ -47,7 +47,7 @@
 #endif
 
 #if defined TARGET_NUCLEO_F103RB
-__IO uint16_t* getChannel(TIM_TypeDef* pwm, PinName pin) {
+__IO uint32_t* getChannel(TIM_TypeDef* pwm, PinName pin) {
     switch (pin) {
         // Channels 1 : PWMx/1
         case PA_6: case PA_8: case PA_15: case PB_4: case PC_6: case PB_13: