mi mi / Mbed 2 deprecated wave_player_super_lite

Dependencies:   mbed DirectSPI FastPWM

Files at this revision

API Documentation at this revision

Comitter:
mimi3
Date:
Sat Jan 19 19:33:56 2019 +0900
Parent:
7:0ea766ea5ee9
Child:
9:413df92b5409
Commit message:
only refactor

Changed in this revision

wave_player_main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/wave_player_main.cpp	Sat Jan 19 19:04:52 2019 +0900
+++ b/wave_player_main.cpp	Sat Jan 19 19:33:56 2019 +0900
@@ -39,7 +39,7 @@
  **********************/
 /* HAL callback for PWM Timer Intrrupt * */
 void OPT_SPEED pwmPeriodIntr( void ){
-    if(TIM3->SR & TIM_SR_UIF){
+    if(TIM_PWM->SR & TIM_SR_UIF){
         #if TEST_PORT_ENABLE
             test_port =1;
         #endif
@@ -116,7 +116,7 @@
             test_port =0;
         #endif
 
-        TIM3->SR &= (~TIM_SR_UIF);
+        TIM_PWM->SR &= (~TIM_SR_UIF);
     }
 }