DISCO_F413ZH: Add include of LL timer file

pull/4410/head
arostm 2017-06-15 13:51:29 +02:00
parent 9e7c9e8b4a
commit b5af4c40ec
2 changed files with 5 additions and 4 deletions

View File

@ -37,7 +37,7 @@
// MCU Peripherals: 102 vectors = 408 bytes from 0x40 to 0x1D7
// Total: 118 vectors = 472 bytes (0x1D8) to be reserved in RAM
#define NVIC_NUM_VECTORS 118
#define NVIC_USER_IRQ_OFFSET 16
#define NVIC_RAM_VECTOR_ADDRESS (0x20000000) // Vectors positioned at start of RAM
#endif

View File

@ -40,14 +40,15 @@
#endif
#include "stm32f4xx.h"
#include "stm32f4xx_ll_tim.h"
#include "cmsis_nvic.h"
#define TIM_MST TIM5
#define TIM_MST_IRQ TIM5_IRQn
#define TIM_MST_RCC __TIM5_CLK_ENABLE()
#define TIM_MST_RCC __HAL_RCC_TIM5_CLK_ENABLE()
#define TIM_MST_RESET_ON __TIM5_FORCE_RESET()
#define TIM_MST_RESET_OFF __TIM5_RELEASE_RESET()
#define TIM_MST_RESET_ON __HAL_RCC_TIM5_FORCE_RESET()
#define TIM_MST_RESET_OFF __HAL_RCC_TIM5_RELEASE_RESET()
#define TIM_MST_16BIT 0 // 1=16-bit timer, 0=32-bit timer