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.
Dependents: SPIne CH_Communicatuin_Test CH_Communicatuin_Test2 MCP_SPIne ... more
Fork of mbed-dev-f303 by
Revision 177:0209671cddf5, committed 2017-12-13
- 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)
