mbed library sources. Supersedes mbed-src.

Dependents:   Hobbyking_Cheetah_Compact Hobbyking_Cheetah_Compact_DRV8323_14bit Hobbyking_Cheetah_Compact_DRV8323_V51_201907 HKC_MiniCheetah ... more

Fork of mbed-dev by mbed official

Files at this revision

API Documentation at this revision

Comitter:
benkatz
Date:
Wed Dec 13 05:04:19 2017 +0000
Parent:
176:228ca553fefb
Child:
178:9f17883fb9b6
Commit message:
changed mbed timer to tim3;

Changed in this revision

targets/TARGET_STM/TARGET_STM32F3/TARGET_STM32F303x8/device/hal_tick.h Show annotated file Show diff for this revision Revisions of this file
--- a/targets/TARGET_STM/TARGET_STM32F3/TARGET_STM32F303x8/device/hal_tick.h	Fri Oct 27 19:21:09 2017 +0000
+++ b/targets/TARGET_STM/TARGET_STM32F3/TARGET_STM32F303x8/device/hal_tick.h	Wed Dec 13 05:04:19 2017 +0000
@@ -43,15 +43,15 @@
 #include "stm32f3xx_ll_tim.h"
 #include "cmsis_nvic.h"
    
-#define TIM_MST      TIM2
-#define TIM_MST_IRQ  TIM2_IRQn
-#define TIM_MST_RCC  __TIM2_CLK_ENABLE()
-#define TIM_MST_DBGMCU_FREEZE  __HAL_DBGMCU_FREEZE_TIM2()
+#define TIM_MST      TIM3
+#define TIM_MST_IRQ  TIM3_IRQn
+#define TIM_MST_RCC  __TIM3_CLK_ENABLE()
+#define TIM_MST_DBGMCU_FREEZE  __HAL_DBGMCU_FREEZE_TIM3()
 
-#define TIM_MST_RESET_ON   __TIM2_FORCE_RESET()
-#define TIM_MST_RESET_OFF  __TIM2_RELEASE_RESET()
+#define TIM_MST_RESET_ON   __TIM3_FORCE_RESET()
+#define TIM_MST_RESET_OFF  __TIM3_RELEASE_RESET()
 
-#define TIM_MST_16BIT  0 // 1=16-bit timer, 0=32-bit timer
+#define TIM_MST_16BIT  1 // 1=16-bit timer, 0=32-bit timer
 
 #define TIM_MST_PCLK  1 // Select the peripheral clock number (1 or 2)