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.
Dependencies: mbed DirectSPI FastPWM
Revision 8:e35c1f3add8c, committed 2019-01-19
- 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);
}
}