File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F413xH/device Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 37
37
// MCU Peripherals: 102 vectors = 408 bytes from 0x40 to 0x1D7
38
38
// Total: 118 vectors = 472 bytes (0x1D8) to be reserved in RAM
39
39
#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
41
41
42
42
43
43
#endif
Original file line number Diff line number Diff line change 40
40
#endif
41
41
42
42
#include "stm32f4xx.h"
43
+ #include "stm32f4xx_ll_tim.h"
43
44
#include "cmsis_nvic.h"
44
45
45
46
#define TIM_MST TIM5
46
47
#define TIM_MST_IRQ TIM5_IRQn
47
- #define TIM_MST_RCC __TIM5_CLK_ENABLE ()
48
+ #define TIM_MST_RCC __HAL_RCC_TIM5_CLK_ENABLE ()
48
49
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 ()
51
52
52
53
#define TIM_MST_16BIT 0 // 1=16-bit timer, 0=32-bit timer
53
54
You can’t perform that action at this time.
0 commit comments