Skip to content

Commit b5af4c4

Browse files
committed
DISCO_F413ZH: Add include of LL timer file
1 parent 9e7c9e8 commit b5af4c4

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F413xH/device/cmsis_nvic.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
// MCU Peripherals: 102 vectors = 408 bytes from 0x40 to 0x1D7
3838
// Total: 118 vectors = 472 bytes (0x1D8) to be reserved in RAM
3939
#define NVIC_NUM_VECTORS 118
40-
#define NVIC_USER_IRQ_OFFSET 16
40+
#define NVIC_RAM_VECTOR_ADDRESS (0x20000000) // Vectors positioned at start of RAM
4141

4242

4343
#endif

targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F413xH/device/hal_tick.h

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,15 @@
4040
#endif
4141

4242
#include "stm32f4xx.h"
43+
#include "stm32f4xx_ll_tim.h"
4344
#include "cmsis_nvic.h"
4445

4546
#define TIM_MST TIM5
4647
#define TIM_MST_IRQ TIM5_IRQn
47-
#define TIM_MST_RCC __TIM5_CLK_ENABLE()
48+
#define TIM_MST_RCC __HAL_RCC_TIM5_CLK_ENABLE()
4849

49-
#define TIM_MST_RESET_ON __TIM5_FORCE_RESET()
50-
#define TIM_MST_RESET_OFF __TIM5_RELEASE_RESET()
50+
#define TIM_MST_RESET_ON __HAL_RCC_TIM5_FORCE_RESET()
51+
#define TIM_MST_RESET_OFF __HAL_RCC_TIM5_RELEASE_RESET()
5152

5253
#define TIM_MST_16BIT 0 // 1=16-bit timer, 0=32-bit timer
5354

0 commit comments

Comments
 (0)