用定时器获取数据效率很高

This commit is contained in:
2021-08-24 21:47:31 +08:00
parent 4c7ca7215e
commit 78f7d1c23a
43 changed files with 18086 additions and 15792 deletions
+1 -1
View File
@@ -63,7 +63,7 @@
/*#define HAL_SMARTCARD_MODULE_ENABLED */
/*#define HAL_SPI_MODULE_ENABLED */
#define HAL_SRAM_MODULE_ENABLED
/*#define HAL_TIM_MODULE_ENABLED */
#define HAL_TIM_MODULE_ENABLED
/*#define HAL_UART_MODULE_ENABLED */
/*#define HAL_USART_MODULE_ENABLED */
/*#define HAL_WWDG_MODULE_ENABLED */
+1
View File
@@ -56,6 +56,7 @@ void SVC_Handler(void);
void DebugMon_Handler(void);
void PendSV_Handler(void);
void SysTick_Handler(void);
void TIM6_IRQHandler(void);
/* USER CODE BEGIN EFP */
/* USER CODE END EFP */
+42
View File
@@ -42,6 +42,8 @@
/* Private variables ---------------------------------------------------------*/
I2C_HandleTypeDef hi2c2;
TIM_HandleTypeDef htim6;
SRAM_HandleTypeDef hsram1;
/* USER CODE BEGIN PV */
@@ -53,6 +55,7 @@ void SystemClock_Config(void);
static void MX_GPIO_Init(void);
static void MX_FSMC_Init(void);
static void MX_I2C2_Init(void);
static void MX_TIM6_Init(void);
/* USER CODE BEGIN PFP */
/* USER CODE END PFP */
@@ -92,6 +95,7 @@ int main(void)
MX_GPIO_Init();
MX_FSMC_Init();
MX_I2C2_Init();
MX_TIM6_Init();
/* USER CODE BEGIN 2 */
main_app();
/* USER CODE END 2 */
@@ -179,6 +183,44 @@ static void MX_I2C2_Init(void)
}
/**
* @brief TIM6 Initialization Function
* @param None
* @retval None
*/
static void MX_TIM6_Init(void)
{
/* USER CODE BEGIN TIM6_Init 0 */
/* USER CODE END TIM6_Init 0 */
TIM_MasterConfigTypeDef sMasterConfig = {0};
/* USER CODE BEGIN TIM6_Init 1 */
/* USER CODE END TIM6_Init 1 */
htim6.Instance = TIM6;
htim6.Init.Prescaler = 72-1;
htim6.Init.CounterMode = TIM_COUNTERMODE_UP;
htim6.Init.Period = 10000-1;
htim6.Init.AutoReloadPreload = TIM_AUTORELOAD_PRELOAD_DISABLE;
if (HAL_TIM_Base_Init(&htim6) != HAL_OK)
{
Error_Handler();
}
sMasterConfig.MasterOutputTrigger = TIM_TRGO_RESET;
sMasterConfig.MasterSlaveMode = TIM_MASTERSLAVEMODE_DISABLE;
if (HAL_TIMEx_MasterConfigSynchronization(&htim6, &sMasterConfig) != HAL_OK)
{
Error_Handler();
}
/* USER CODE BEGIN TIM6_Init 2 */
/* USER CODE END TIM6_Init 2 */
}
/**
* @brief GPIO Initialization Function
* @param None
+50
View File
@@ -146,6 +146,56 @@ void HAL_I2C_MspDeInit(I2C_HandleTypeDef* hi2c)
}
/**
* @brief TIM_Base MSP Initialization
* This function configures the hardware resources used in this example
* @param htim_base: TIM_Base handle pointer
* @retval None
*/
void HAL_TIM_Base_MspInit(TIM_HandleTypeDef* htim_base)
{
if(htim_base->Instance==TIM6)
{
/* USER CODE BEGIN TIM6_MspInit 0 */
/* USER CODE END TIM6_MspInit 0 */
/* Peripheral clock enable */
__HAL_RCC_TIM6_CLK_ENABLE();
/* TIM6 interrupt Init */
HAL_NVIC_SetPriority(TIM6_IRQn, 0, 0);
HAL_NVIC_EnableIRQ(TIM6_IRQn);
/* USER CODE BEGIN TIM6_MspInit 1 */
/* USER CODE END TIM6_MspInit 1 */
}
}
/**
* @brief TIM_Base MSP De-Initialization
* This function freeze the hardware resources used in this example
* @param htim_base: TIM_Base handle pointer
* @retval None
*/
void HAL_TIM_Base_MspDeInit(TIM_HandleTypeDef* htim_base)
{
if(htim_base->Instance==TIM6)
{
/* USER CODE BEGIN TIM6_MspDeInit 0 */
/* USER CODE END TIM6_MspDeInit 0 */
/* Peripheral clock disable */
__HAL_RCC_TIM6_CLK_DISABLE();
/* TIM6 interrupt DeInit */
HAL_NVIC_DisableIRQ(TIM6_IRQn);
/* USER CODE BEGIN TIM6_MspDeInit 1 */
/* USER CODE END TIM6_MspDeInit 1 */
}
}
static uint32_t FSMC_Initialized = 0;
static void HAL_FSMC_MspInit(void){
+15 -1
View File
@@ -56,7 +56,7 @@
/* USER CODE END 0 */
/* External variables --------------------------------------------------------*/
extern TIM_HandleTypeDef htim6;
/* USER CODE BEGIN EV */
/* USER CODE END EV */
@@ -199,6 +199,20 @@ void SysTick_Handler(void)
/* please refer to the startup file (startup_stm32f1xx.s). */
/******************************************************************************/
/**
* @brief This function handles TIM6 global interrupt.
*/
void TIM6_IRQHandler(void)
{
/* USER CODE BEGIN TIM6_IRQn 0 */
/* USER CODE END TIM6_IRQn 0 */
HAL_TIM_IRQHandler(&htim6);
/* USER CODE BEGIN TIM6_IRQn 1 */
/* USER CODE END TIM6_IRQn 1 */
}
/* USER CODE BEGIN 1 */
/* USER CODE END 1 */
+6
View File
@@ -24,6 +24,8 @@ Core/Src/main.o: ../Core/Src/main.c ../Core/Inc/main.h \
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_ll_fsmc.h \
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_i2c.h \
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_pwr.h \
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h \
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h \
/Users/wuwenfeng/STM32CubeIDE/workspace_1.7.0/m3s/SW_APPs/Main_APP.h
../Core/Inc/main.h:
@@ -78,4 +80,8 @@ Core/Src/main.o: ../Core/Src/main.c ../Core/Inc/main.h \
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_pwr.h:
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h:
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h:
/Users/wuwenfeng/STM32CubeIDE/workspace_1.7.0/m3s/SW_APPs/Main_APP.h:
+7 -6
View File
@@ -1,6 +1,7 @@
main.c:69:5:main 8 static
main.c:114:6:SystemClock_Config 72 static
main.c:153:13:MX_I2C2_Init 8 static
main.c:187:13:MX_GPIO_Init 48 static
main.c:256:13:MX_FSMC_Init 40 static
main.c:320:6:Error_Handler 4 static,ignoring_inline_asm
main.c:72:5:main 8 static
main.c:118:6:SystemClock_Config 72 static
main.c:157:13:MX_I2C2_Init 8 static
main.c:191:13:MX_TIM6_Init 16 static
main.c:229:13:MX_GPIO_Init 48 static
main.c:298:13:MX_FSMC_Init 40 static
main.c:362:6:Error_Handler 4 static,ignoring_inline_asm
+7 -1
View File
@@ -23,7 +23,9 @@ Core/Src/stm32f1xx_hal_msp.o: ../Core/Src/stm32f1xx_hal_msp.c \
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_sram.h \
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_ll_fsmc.h \
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_i2c.h \
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_pwr.h
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_pwr.h \
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h \
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h
../Core/Inc/main.h:
@@ -76,3 +78,7 @@ Core/Src/stm32f1xx_hal_msp.o: ../Core/Src/stm32f1xx_hal_msp.c \
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_i2c.h:
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_pwr.h:
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h:
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h:
+6 -4
View File
@@ -1,7 +1,9 @@
stm32f1xx_hal_msp.c:64:6:HAL_MspInit 24 static
stm32f1xx_hal_msp.c:90:6:HAL_I2C_MspInit 40 static
stm32f1xx_hal_msp.c:124:6:HAL_I2C_MspDeInit 16 static
stm32f1xx_hal_msp.c:151:13:HAL_FSMC_MspInit 32 static
stm32f1xx_hal_msp.c:210:6:HAL_SRAM_MspInit 16 static
stm32f1xx_hal_msp.c:222:13:HAL_FSMC_MspDeInit 8 static
stm32f1xx_hal_msp.c:270:6:HAL_SRAM_MspDeInit 16 static
stm32f1xx_hal_msp.c:155:6:HAL_TIM_Base_MspInit 24 static
stm32f1xx_hal_msp.c:180:6:HAL_TIM_Base_MspDeInit 16 static
stm32f1xx_hal_msp.c:201:13:HAL_FSMC_MspInit 32 static
stm32f1xx_hal_msp.c:260:6:HAL_SRAM_MspInit 16 static
stm32f1xx_hal_msp.c:272:13:HAL_FSMC_MspDeInit 8 static
stm32f1xx_hal_msp.c:320:6:HAL_SRAM_MspDeInit 16 static
+6
View File
@@ -24,6 +24,8 @@ Core/Src/stm32f1xx_it.o: ../Core/Src/stm32f1xx_it.c ../Core/Inc/main.h \
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_ll_fsmc.h \
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_i2c.h \
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_pwr.h \
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h \
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h \
../Core/Inc/stm32f1xx_it.h
../Core/Inc/main.h:
@@ -78,4 +80,8 @@ Core/Src/stm32f1xx_it.o: ../Core/Src/stm32f1xx_it.c ../Core/Inc/main.h \
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_pwr.h:
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h:
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h:
../Core/Inc/stm32f1xx_it.h:
+1
View File
@@ -7,3 +7,4 @@ stm32f1xx_it.c:145:6:SVC_Handler 4 static
stm32f1xx_it.c:158:6:DebugMon_Handler 4 static
stm32f1xx_it.c:171:6:PendSV_Handler 4 static
stm32f1xx_it.c:184:6:SysTick_Handler 8 static
stm32f1xx_it.c:205:6:TIM6_IRQHandler 8 static
+7 -1
View File
@@ -23,7 +23,9 @@ Core/Src/system_stm32f1xx.o: ../Core/Src/system_stm32f1xx.c \
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_sram.h \
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_ll_fsmc.h \
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_i2c.h \
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_pwr.h
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_pwr.h \
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h \
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f1xx.h:
@@ -74,3 +76,7 @@ Core/Src/system_stm32f1xx.o: ../Core/Src/system_stm32f1xx.c \
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_i2c.h:
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_pwr.h:
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h:
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h:
@@ -24,7 +24,9 @@ Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.o: \
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_sram.h \
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_ll_fsmc.h \
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_i2c.h \
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_pwr.h
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_pwr.h \
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h \
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal.h:
@@ -75,3 +77,7 @@ Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.o: \
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_i2c.h:
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_pwr.h:
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h:
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h:
@@ -24,7 +24,9 @@ Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.o: \
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_sram.h \
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_ll_fsmc.h \
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_i2c.h \
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_pwr.h
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_pwr.h \
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h \
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal.h:
@@ -75,3 +77,7 @@ Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.o: \
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_i2c.h:
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_pwr.h:
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h:
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h:
@@ -24,7 +24,9 @@ Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_dma.o: \
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_sram.h \
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_ll_fsmc.h \
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_i2c.h \
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_pwr.h
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_pwr.h \
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h \
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal.h:
@@ -75,3 +77,7 @@ Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_dma.o: \
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_i2c.h:
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_pwr.h:
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h:
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h:
@@ -24,7 +24,9 @@ Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.o: \
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_sram.h \
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_ll_fsmc.h \
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_i2c.h \
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_pwr.h
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_pwr.h \
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h \
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal.h:
@@ -75,3 +77,7 @@ Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.o: \
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_i2c.h:
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_pwr.h:
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h:
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h:
@@ -24,7 +24,9 @@ Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.o: \
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_sram.h \
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_ll_fsmc.h \
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_i2c.h \
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_pwr.h
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_pwr.h \
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h \
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal.h:
@@ -75,3 +77,7 @@ Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.o: \
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_i2c.h:
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_pwr.h:
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h:
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h:
@@ -24,7 +24,9 @@ Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash_ex.o: \
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_sram.h \
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_ll_fsmc.h \
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_i2c.h \
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_pwr.h
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_pwr.h \
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h \
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal.h:
@@ -75,3 +77,7 @@ Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash_ex.o: \
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_i2c.h:
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_pwr.h:
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h:
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h:
@@ -24,7 +24,9 @@ Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio.o: \
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_sram.h \
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_ll_fsmc.h \
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_i2c.h \
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_pwr.h
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_pwr.h \
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h \
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal.h:
@@ -75,3 +77,7 @@ Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio.o: \
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_i2c.h:
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_pwr.h:
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h:
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h:
@@ -24,7 +24,9 @@ Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio_ex.o: \
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_sram.h \
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_ll_fsmc.h \
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_i2c.h \
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_pwr.h
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_pwr.h \
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h \
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal.h:
@@ -75,3 +77,7 @@ Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio_ex.o: \
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_i2c.h:
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_pwr.h:
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h:
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h:
@@ -24,7 +24,9 @@ Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o: \
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_sram.h \
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_ll_fsmc.h \
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_i2c.h \
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_pwr.h
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_pwr.h \
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h \
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal.h:
@@ -75,3 +77,7 @@ Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o: \
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_i2c.h:
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_pwr.h:
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h:
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h:
@@ -24,7 +24,9 @@ Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_pwr.o: \
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_sram.h \
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_ll_fsmc.h \
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_i2c.h \
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_pwr.h
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_pwr.h \
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h \
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal.h:
@@ -75,3 +77,7 @@ Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_pwr.o: \
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_i2c.h:
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_pwr.h:
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h:
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h:
@@ -24,7 +24,9 @@ Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.o: \
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_sram.h \
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_ll_fsmc.h \
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_i2c.h \
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_pwr.h
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_pwr.h \
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h \
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal.h:
@@ -75,3 +77,7 @@ Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.o: \
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_i2c.h:
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_pwr.h:
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h:
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h:
@@ -24,7 +24,9 @@ Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc_ex.o: \
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_sram.h \
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_ll_fsmc.h \
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_i2c.h \
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_pwr.h
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_pwr.h \
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h \
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal.h:
@@ -75,3 +77,7 @@ Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc_ex.o: \
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_i2c.h:
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_pwr.h:
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h:
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h:
@@ -24,7 +24,9 @@ Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_sram.o: \
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_sram.h \
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_ll_fsmc.h \
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_i2c.h \
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_pwr.h
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_pwr.h \
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h \
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal.h:
@@ -75,3 +77,7 @@ Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_sram.o: \
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_i2c.h:
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_pwr.h:
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h:
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h:
@@ -24,7 +24,9 @@ Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim.o: \
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_sram.h \
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_ll_fsmc.h \
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_i2c.h \
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_pwr.h
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_pwr.h \
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h \
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal.h:
@@ -75,3 +77,7 @@ Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim.o: \
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_i2c.h:
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_pwr.h:
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h:
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h:
@@ -0,0 +1,119 @@
stm32f1xx_hal_tim.c:266:19:HAL_TIM_Base_Init 16 static
stm32f1xx_hal_tim.c:325:19:HAL_TIM_Base_DeInit 16 static
stm32f1xx_hal_tim.c:368:13:HAL_TIM_Base_MspInit 16 static
stm32f1xx_hal_tim.c:383:13:HAL_TIM_Base_MspDeInit 16 static
stm32f1xx_hal_tim.c:399:19:HAL_TIM_Base_Start 24 static
stm32f1xx_hal_tim.c:438:19:HAL_TIM_Base_Stop 16 static
stm32f1xx_hal_tim.c:458:19:HAL_TIM_Base_Start_IT 24 static
stm32f1xx_hal_tim.c:500:19:HAL_TIM_Base_Stop_IT 16 static
stm32f1xx_hal_tim.c:525:19:HAL_TIM_Base_Start_DMA 32 static
stm32f1xx_hal_tim.c:594:19:HAL_TIM_Base_Stop_DMA 16 static
stm32f1xx_hal_tim.c:649:19:HAL_TIM_OC_Init 16 static
stm32f1xx_hal_tim.c:708:19:HAL_TIM_OC_DeInit 16 static
stm32f1xx_hal_tim.c:751:13:HAL_TIM_OC_MspInit 16 static
stm32f1xx_hal_tim.c:766:13:HAL_TIM_OC_MspDeInit 16 static
stm32f1xx_hal_tim.c:787:19:HAL_TIM_OC_Start 24 static
stm32f1xx_hal_tim.c:841:19:HAL_TIM_OC_Stop 16 static
stm32f1xx_hal_tim.c:876:19:HAL_TIM_OC_Start_IT 24 static
stm32f1xx_hal_tim.c:964:19:HAL_TIM_OC_Stop_IT 16 static
stm32f1xx_hal_tim.c:1035:19:HAL_TIM_OC_Start_DMA 32 static
stm32f1xx_hal_tim.c:1193:19:HAL_TIM_OC_Stop_DMA 16 static
stm32f1xx_hal_tim.c:1290:19:HAL_TIM_PWM_Init 16 static
stm32f1xx_hal_tim.c:1349:19:HAL_TIM_PWM_DeInit 16 static
stm32f1xx_hal_tim.c:1392:13:HAL_TIM_PWM_MspInit 16 static
stm32f1xx_hal_tim.c:1407:13:HAL_TIM_PWM_MspDeInit 16 static
stm32f1xx_hal_tim.c:1428:19:HAL_TIM_PWM_Start 24 static
stm32f1xx_hal_tim.c:1482:19:HAL_TIM_PWM_Stop 16 static
stm32f1xx_hal_tim.c:1517:19:HAL_TIM_PWM_Start_IT 24 static
stm32f1xx_hal_tim.c:1604:19:HAL_TIM_PWM_Stop_IT 16 static
stm32f1xx_hal_tim.c:1675:19:HAL_TIM_PWM_Start_DMA 32 static
stm32f1xx_hal_tim.c:1832:19:HAL_TIM_PWM_Stop_DMA 16 static
stm32f1xx_hal_tim.c:1929:19:HAL_TIM_IC_Init 16 static
stm32f1xx_hal_tim.c:1988:19:HAL_TIM_IC_DeInit 16 static
stm32f1xx_hal_tim.c:2031:13:HAL_TIM_IC_MspInit 16 static
stm32f1xx_hal_tim.c:2046:13:HAL_TIM_IC_MspDeInit 16 static
stm32f1xx_hal_tim.c:2067:19:HAL_TIM_IC_Start 24 static
stm32f1xx_hal_tim.c:2119:19:HAL_TIM_IC_Stop 16 static
stm32f1xx_hal_tim.c:2149:19:HAL_TIM_IC_Start_IT 24 static
stm32f1xx_hal_tim.c:2234:19:HAL_TIM_IC_Stop_IT 16 static
stm32f1xx_hal_tim.c:2300:19:HAL_TIM_IC_Start_DMA 32 static
stm32f1xx_hal_tim.c:2456:19:HAL_TIM_IC_Stop_DMA 16 static
stm32f1xx_hal_tim.c:2555:19:HAL_TIM_OnePulse_Init 16 static
stm32f1xx_hal_tim.c:2623:19:HAL_TIM_OnePulse_DeInit 16 static
stm32f1xx_hal_tim.c:2668:13:HAL_TIM_OnePulse_MspInit 16 static
stm32f1xx_hal_tim.c:2683:13:HAL_TIM_OnePulse_MspDeInit 16 static
stm32f1xx_hal_tim.c:2703:19:HAL_TIM_OnePulse_Start 24 static
stm32f1xx_hal_tim.c:2760:19:HAL_TIM_OnePulse_Stop 16 static
stm32f1xx_hal_tim.c:2803:19:HAL_TIM_OnePulse_Start_IT 24 static
stm32f1xx_hal_tim.c:2866:19:HAL_TIM_OnePulse_Stop_IT 16 static
stm32f1xx_hal_tim.c:2945:19:HAL_TIM_Encoder_Init 32 static
stm32f1xx_hal_tim.c:3058:19:HAL_TIM_Encoder_DeInit 16 static
stm32f1xx_hal_tim.c:3103:13:HAL_TIM_Encoder_MspInit 16 static
stm32f1xx_hal_tim.c:3118:13:HAL_TIM_Encoder_MspDeInit 16 static
stm32f1xx_hal_tim.c:3138:19:HAL_TIM_Encoder_Start 24 static
stm32f1xx_hal_tim.c:3232:19:HAL_TIM_Encoder_Stop 16 static
stm32f1xx_hal_tim.c:3292:19:HAL_TIM_Encoder_Start_IT 24 static
stm32f1xx_hal_tim.c:3392:19:HAL_TIM_Encoder_Stop_IT 16 static
stm32f1xx_hal_tim.c:3457:19:HAL_TIM_Encoder_Start_DMA 32 static
stm32f1xx_hal_tim.c:3669:19:HAL_TIM_Encoder_Stop_DMA 16 static
stm32f1xx_hal_tim.c:3746:6:HAL_TIM_IRQHandler 16 static
stm32f1xx_hal_tim.c:3961:19:HAL_TIM_OC_ConfigChannel 24 static
stm32f1xx_hal_tim.c:4037:19:HAL_TIM_IC_ConfigChannel 24 static
stm32f1xx_hal_tim.c:4130:19:HAL_TIM_PWM_ConfigChannel 24 static
stm32f1xx_hal_tim.c:4241:19:HAL_TIM_OnePulse_ConfigChannel 56 static
stm32f1xx_hal_tim.c:4380:19:HAL_TIM_DMABurst_WriteStart 32 static
stm32f1xx_hal_tim.c:4426:19:HAL_TIM_DMABurst_MultiWriteStart 24 static
stm32f1xx_hal_tim.c:4603:19:HAL_TIM_DMABurst_WriteStop 16 static
stm32f1xx_hal_tim.c:4698:19:HAL_TIM_DMABurst_ReadStart 32 static
stm32f1xx_hal_tim.c:4744:19:HAL_TIM_DMABurst_MultiReadStart 24 static
stm32f1xx_hal_tim.c:4922:19:HAL_TIM_DMABurst_ReadStop 16 static
stm32f1xx_hal_tim.c:4999:19:HAL_TIM_GenerateEvent 16 static
stm32f1xx_hal_tim.c:5036:19:HAL_TIM_ConfigOCrefClear 24 static
stm32f1xx_hal_tim.c:5160:19:HAL_TIM_ConfigClockSource 24 static
stm32f1xx_hal_tim.c:5312:19:HAL_TIM_ConfigTI1Input 24 static
stm32f1xx_hal_tim.c:5344:19:HAL_TIM_SlaveConfigSynchro 16 static
stm32f1xx_hal_tim.c:5384:19:HAL_TIM_SlaveConfigSynchro_IT 16 static
stm32f1xx_hal_tim.c:5427:10:HAL_TIM_ReadCapturedValue 24 static
stm32f1xx_hal_tim.c:5511:13:HAL_TIM_PeriodElapsedCallback 16 static
stm32f1xx_hal_tim.c:5526:13:HAL_TIM_PeriodElapsedHalfCpltCallback 16 static
stm32f1xx_hal_tim.c:5541:13:HAL_TIM_OC_DelayElapsedCallback 16 static
stm32f1xx_hal_tim.c:5556:13:HAL_TIM_IC_CaptureCallback 16 static
stm32f1xx_hal_tim.c:5571:13:HAL_TIM_IC_CaptureHalfCpltCallback 16 static
stm32f1xx_hal_tim.c:5586:13:HAL_TIM_PWM_PulseFinishedCallback 16 static
stm32f1xx_hal_tim.c:5601:13:HAL_TIM_PWM_PulseFinishedHalfCpltCallback 16 static
stm32f1xx_hal_tim.c:5616:13:HAL_TIM_TriggerCallback 16 static
stm32f1xx_hal_tim.c:5631:13:HAL_TIM_TriggerHalfCpltCallback 16 static
stm32f1xx_hal_tim.c:5646:13:HAL_TIM_ErrorCallback 16 static
stm32f1xx_hal_tim.c:6204:22:HAL_TIM_Base_GetState 16 static
stm32f1xx_hal_tim.c:6214:22:HAL_TIM_OC_GetState 16 static
stm32f1xx_hal_tim.c:6224:22:HAL_TIM_PWM_GetState 16 static
stm32f1xx_hal_tim.c:6234:22:HAL_TIM_IC_GetState 16 static
stm32f1xx_hal_tim.c:6244:22:HAL_TIM_OnePulse_GetState 16 static
stm32f1xx_hal_tim.c:6254:22:HAL_TIM_Encoder_GetState 16 static
stm32f1xx_hal_tim.c:6264:23:HAL_TIM_GetActiveChannel 16 static
stm32f1xx_hal_tim.c:6282:29:HAL_TIM_GetChannelState 24 static
stm32f1xx_hal_tim.c:6299:30:HAL_TIM_DMABurstState 16 static
stm32f1xx_hal_tim.c:6324:6:TIM_DMAError 24 static
stm32f1xx_hal_tim.c:6367:13:TIM_DMADelayPulseCplt 24 static
stm32f1xx_hal_tim.c:6426:6:TIM_DMADelayPulseHalfCplt 24 static
stm32f1xx_hal_tim.c:6465:6:TIM_DMACaptureCplt 24 static
stm32f1xx_hal_tim.c:6528:6:TIM_DMACaptureHalfCplt 24 static
stm32f1xx_hal_tim.c:6567:13:TIM_DMAPeriodElapsedCplt 24 static
stm32f1xx_hal_tim.c:6588:13:TIM_DMAPeriodElapsedHalfCplt 24 static
stm32f1xx_hal_tim.c:6604:13:TIM_DMATriggerCplt 24 static
stm32f1xx_hal_tim.c:6625:13:TIM_DMATriggerHalfCplt 24 static
stm32f1xx_hal_tim.c:6642:6:TIM_Base_SetConfig 24 static
stm32f1xx_hal_tim.c:6690:13:TIM_OC1_SetConfig 32 static
stm32f1xx_hal_tim.c:6765:6:TIM_OC2_SetConfig 32 static
stm32f1xx_hal_tim.c:6841:13:TIM_OC3_SetConfig 32 static
stm32f1xx_hal_tim.c:6915:13:TIM_OC4_SetConfig 32 static
stm32f1xx_hal_tim.c:6975:26:TIM_SlaveTimer_SetConfig 32 static
stm32f1xx_hal_tim.c:7106:6:TIM_TI1_SetConfig 32 static
stm32f1xx_hal_tim.c:7153:13:TIM_TI1_ConfigInputStage 32 static
stm32f1xx_hal_tim.c:7196:13:TIM_TI2_SetConfig 32 static
stm32f1xx_hal_tim.c:7236:13:TIM_TI2_ConfigInputStage 32 static
stm32f1xx_hal_tim.c:7278:13:TIM_TI3_SetConfig 32 static
stm32f1xx_hal_tim.c:7325:13:TIM_TI4_SetConfig 32 static
stm32f1xx_hal_tim.c:7368:13:TIM_ITRx_SetConfig 24 static
stm32f1xx_hal_tim.c:7398:6:TIM_ETR_SetConfig 32 static
stm32f1xx_hal_tim.c:7428:6:TIM_CCxChannelCmd 32 static
@@ -24,7 +24,9 @@ Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim_ex.o: \
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_sram.h \
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_ll_fsmc.h \
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_i2c.h \
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_pwr.h
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_pwr.h \
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h \
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal.h:
@@ -75,3 +77,7 @@ Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim_ex.o: \
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_i2c.h:
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_pwr.h:
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h:
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h:
@@ -0,0 +1,42 @@
stm32f1xx_hal_tim_ex.c:138:19:HAL_TIMEx_HallSensor_Init 48 static
stm32f1xx_hal_tim_ex.c:239:19:HAL_TIMEx_HallSensor_DeInit 16 static
stm32f1xx_hal_tim_ex.c:284:13:HAL_TIMEx_HallSensor_MspInit 16 static
stm32f1xx_hal_tim_ex.c:299:13:HAL_TIMEx_HallSensor_MspDeInit 16 static
stm32f1xx_hal_tim_ex.c:314:19:HAL_TIMEx_HallSensor_Start 24 static
stm32f1xx_hal_tim_ex.c:368:19:HAL_TIMEx_HallSensor_Stop 16 static
stm32f1xx_hal_tim_ex.c:396:19:HAL_TIMEx_HallSensor_Start_IT 24 static
stm32f1xx_hal_tim_ex.c:453:19:HAL_TIMEx_HallSensor_Stop_IT 16 static
stm32f1xx_hal_tim_ex.c:486:19:HAL_TIMEx_HallSensor_Start_DMA 32 static
stm32f1xx_hal_tim_ex.c:562:19:HAL_TIMEx_HallSensor_Stop_DMA 16 static
stm32f1xx_hal_tim_ex.c:624:19:HAL_TIMEx_OCN_Start 24 static
stm32f1xx_hal_tim_ex.c:675:19:HAL_TIMEx_OCN_Stop 16 static
stm32f1xx_hal_tim_ex.c:707:19:HAL_TIMEx_OCN_Start_IT 24 static
stm32f1xx_hal_tim_ex.c:789:19:HAL_TIMEx_OCN_Stop_IT 24 static
stm32f1xx_hal_tim_ex.c:858:19:HAL_TIMEx_OCN_Start_DMA 32 static
stm32f1xx_hal_tim_ex.c:990:19:HAL_TIMEx_OCN_Stop_DMA 16 static
stm32f1xx_hal_tim_ex.c:1085:19:HAL_TIMEx_PWMN_Start 24 static
stm32f1xx_hal_tim_ex.c:1135:19:HAL_TIMEx_PWMN_Stop 16 static
stm32f1xx_hal_tim_ex.c:1167:19:HAL_TIMEx_PWMN_Start_IT 24 static
stm32f1xx_hal_tim_ex.c:1248:19:HAL_TIMEx_PWMN_Stop_IT 24 static
stm32f1xx_hal_tim_ex.c:1318:19:HAL_TIMEx_PWMN_Start_DMA 32 static
stm32f1xx_hal_tim_ex.c:1450:19:HAL_TIMEx_PWMN_Stop_DMA 16 static
stm32f1xx_hal_tim_ex.c:1535:19:HAL_TIMEx_OnePulseN_Start 24 static
stm32f1xx_hal_tim_ex.c:1584:19:HAL_TIMEx_OnePulseN_Stop 24 static
stm32f1xx_hal_tim_ex.c:1623:19:HAL_TIMEx_OnePulseN_Start_IT 24 static
stm32f1xx_hal_tim_ex.c:1678:19:HAL_TIMEx_OnePulseN_Stop_IT 24 static
stm32f1xx_hal_tim_ex.c:1757:19:HAL_TIMEx_ConfigCommutEvent 24 static
stm32f1xx_hal_tim_ex.c:1813:19:HAL_TIMEx_ConfigCommutEvent_IT 24 static
stm32f1xx_hal_tim_ex.c:1870:19:HAL_TIMEx_ConfigCommutEvent_DMA 24 static
stm32f1xx_hal_tim_ex.c:1919:19:HAL_TIMEx_MasterConfigSynchronization 24 static
stm32f1xx_hal_tim_ex.c:1980:19:HAL_TIMEx_ConfigBreakDeadTime 24 static
stm32f1xx_hal_tim_ex.c:2027:19:HAL_TIMEx_RemapConfig 16 static
stm32f1xx_hal_tim_ex.c:2061:13:HAL_TIMEx_CommutCallback 16 static
stm32f1xx_hal_tim_ex.c:2075:13:HAL_TIMEx_CommutHalfCpltCallback 16 static
stm32f1xx_hal_tim_ex.c:2090:13:HAL_TIMEx_BreakCallback 16 static
stm32f1xx_hal_tim_ex.c:2123:22:HAL_TIMEx_HallSensor_GetState 16 static
stm32f1xx_hal_tim_ex.c:2138:29:HAL_TIMEx_GetChannelNState 24 static
stm32f1xx_hal_tim_ex.c:2167:6:TIMEx_DMACommutationCplt 24 static
stm32f1xx_hal_tim_ex.c:2186:6:TIMEx_DMACommutationHalfCplt 24 static
stm32f1xx_hal_tim_ex.c:2206:13:TIM_DMADelayPulseNCplt 24 static
stm32f1xx_hal_tim_ex.c:2265:13:TIM_DMAErrorCCxN 24 static
stm32f1xx_hal_tim_ex.c:2310:13:TIM_CCxNChannelCmd 32 static
@@ -24,7 +24,9 @@ Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_fsmc.o: \
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_sram.h \
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_ll_fsmc.h \
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_i2c.h \
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_pwr.h
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_pwr.h \
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h \
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal.h:
@@ -75,3 +77,7 @@ Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_fsmc.o: \
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_i2c.h:
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_pwr.h:
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h:
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h:
+7 -1
View File
@@ -23,7 +23,9 @@ HW_Devices/LCD.o: ../HW_Devices/LCD.c ../HW_Devices/LCD.h \
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_sram.h \
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_ll_fsmc.h \
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_i2c.h \
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_pwr.h
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_pwr.h \
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h \
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h
../HW_Devices/LCD.h:
@@ -78,3 +80,7 @@ HW_Devices/LCD.o: ../HW_Devices/LCD.c ../HW_Devices/LCD.h \
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_i2c.h:
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_pwr.h:
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h:
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h:
+6
View File
@@ -24,6 +24,8 @@ HW_Devices/eeprom.o: ../HW_Devices/eeprom.c ../HW_Devices/eeprom.h \
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_ll_fsmc.h \
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_i2c.h \
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_pwr.h \
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h \
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h \
../HW_Devices/iic.h
../HW_Devices/eeprom.h:
@@ -80,4 +82,8 @@ HW_Devices/eeprom.o: ../HW_Devices/eeprom.c ../HW_Devices/eeprom.h \
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_pwr.h:
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h:
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h:
../HW_Devices/iic.h:
+7 -1
View File
@@ -23,7 +23,9 @@ HW_Devices/iic.o: ../HW_Devices/iic.c ../HW_Devices/iic.h \
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_sram.h \
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_ll_fsmc.h \
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_i2c.h \
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_pwr.h
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_pwr.h \
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h \
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h
../HW_Devices/iic.h:
@@ -78,3 +80,7 @@ HW_Devices/iic.o: ../HW_Devices/iic.c ../HW_Devices/iic.h \
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_i2c.h:
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_pwr.h:
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h:
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h:
+6
View File
@@ -24,6 +24,8 @@ HW_Devices/touch.o: ../HW_Devices/touch.c ../HW_Devices/touch.h \
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_ll_fsmc.h \
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_i2c.h \
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_pwr.h \
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h \
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h \
../HW_Devices/LCD.h ../HW_Devices/eeprom.h
../HW_Devices/touch.h:
@@ -80,6 +82,10 @@ HW_Devices/touch.o: ../HW_Devices/touch.c ../HW_Devices/touch.h \
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_pwr.h:
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h:
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h:
../HW_Devices/LCD.h:
../HW_Devices/eeprom.h:
+6
View File
@@ -24,6 +24,8 @@ SW_APPs/APP_blood.o: ../SW_APPs/APP_blood.c ../SW_APPs/APP_blood.h \
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_ll_fsmc.h \
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_i2c.h \
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_pwr.h \
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h \
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h \
../SW_APPs/windows.h \
/Users/wuwenfeng/STM32CubeIDE/workspace_1.7.0/m3s/HW_Devices/lcd.h \
/Users/wuwenfeng/STM32CubeIDE/workspace_1.7.0/m3s/HW_Devices/LCD.h \
@@ -84,6 +86,10 @@ SW_APPs/APP_blood.o: ../SW_APPs/APP_blood.c ../SW_APPs/APP_blood.h \
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_pwr.h:
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h:
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h:
../SW_APPs/windows.h:
/Users/wuwenfeng/STM32CubeIDE/workspace_1.7.0/m3s/HW_Devices/lcd.h:
+2 -1
View File
@@ -11,4 +11,5 @@ APP_blood.c:272:14:EE 40 static
APP_blood.c:284:6:FFT 104 static
APP_blood.c:341:5:find_max_num_index 32 static
APP_blood.c:360:6:blood_data_translate 64 static
APP_blood.c:432:6:APP_blood_loop 24 static
APP_blood.c:436:6:APP_blood_loop 16 static
APP_blood.c:501:6:HAL_TIM_PeriodElapsedCallback 24 static
+6
View File
@@ -25,6 +25,8 @@ SW_APPs/Main_APP.o: ../SW_APPs/Main_APP.c ../SW_APPs/Main_APP.h \
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_ll_fsmc.h \
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_i2c.h \
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_pwr.h \
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h \
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h \
../SW_APPs/windows.h \
/Users/wuwenfeng/STM32CubeIDE/workspace_1.7.0/m3s/HW_Devices/lcd.h \
/Users/wuwenfeng/STM32CubeIDE/workspace_1.7.0/m3s/HW_Devices/touch.h \
@@ -87,6 +89,10 @@ SW_APPs/Main_APP.o: ../SW_APPs/Main_APP.c ../SW_APPs/Main_APP.h \
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_pwr.h:
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h:
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h:
../SW_APPs/windows.h:
/Users/wuwenfeng/STM32CubeIDE/workspace_1.7.0/m3s/HW_Devices/lcd.h:
+6
View File
@@ -24,6 +24,8 @@ SW_APPs/windows.o: ../SW_APPs/windows.c ../SW_APPs/windows.h \
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_ll_fsmc.h \
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_i2c.h \
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_pwr.h \
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h \
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h \
/Users/wuwenfeng/STM32CubeIDE/workspace_1.7.0/m3s/HW_Devices/lcd.h \
/Users/wuwenfeng/STM32CubeIDE/workspace_1.7.0/m3s/HW_Devices/touch.h
@@ -81,6 +83,10 @@ SW_APPs/windows.o: ../SW_APPs/windows.c ../SW_APPs/windows.h \
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_pwr.h:
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h:
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h:
/Users/wuwenfeng/STM32CubeIDE/workspace_1.7.0/m3s/HW_Devices/lcd.h:
/Users/wuwenfeng/STM32CubeIDE/workspace_1.7.0/m3s/HW_Devices/touch.h:
BIN
View File
Binary file not shown.
+16057 -14655
View File
File diff suppressed because it is too large Load Diff
+1507 -1094
View File
File diff suppressed because it is too large Load Diff
+43 -7
View File
@@ -8,12 +8,12 @@
#include "APP_blood.h"
#include "iic.h"
#include "FFT.h"
extern TIM_HandleTypeDef htim6;
window *blood_win;
uint16_t fifo_red;
uint16_t fifo_ir;
char blood_str[64];
uint16_t g_fft_index = 0; //fft输入输出下标
uint8_t Max30102_reset(void)
{
@@ -95,7 +95,7 @@ void APP_blood_init(window *a_window)
blood_win=a_window;
HAL_GPIO_WritePin(MAX_RD_GPIO_Port, MAX_RD_Pin, 0);
HAL_GPIO_WritePin(MAX_IRD_GPIO_Port, MAX_IRD_Pin, 0);
//HAL_TIM_Base_Start_IT(&htim6);
Max30102_reset();
MAX30102_Config();
@@ -397,7 +397,7 @@ void blood_data_translate(void)
s2[i].real= n_denom/8.00;
}
//开始变换显示
g_fft_index = 0;
//快速傅里叶变换
FFT(s1);
FFT(s2);
@@ -429,12 +429,28 @@ void blood_data_translate(void)
}
char get_data_lock=0;;
char get_data_flag=0;
uint16_t g_fft_index = 0; //fft输入输出下标
void APP_blood_loop()
{
//标志位被使能时 读取FIFO
if(get_data_lock==0)
{
get_data_lock=1;
get_data_flag=0;
g_fft_index = 0;
HAL_TIM_Base_Start_IT(&htim6);
}
if(get_data_flag==1)
{
blood_data_translate();
get_data_lock=0;
}
//标志位被使能时 读取FIFO
/*
while(g_fft_index < FFT_N)
{
while(MAX30102_INTPin_Read()==0)
@@ -453,7 +469,7 @@ void APP_blood_loop()
}
}
}
*/
/* for(int a=0;a<FFT_N;a++)
{
while(MAX30102_INTPin_Read());
@@ -465,7 +481,7 @@ void APP_blood_loop()
}
*/
//max30102_read_fifo();
blood_data_translate();
//blood_data_translate();
sprintf(blood_str,"fifo_red:%d",fifo_red);
LCD_ShowString(blood_win->x, blood_win->y+16, &blood_str, 16, WHITE, RED);
@@ -481,3 +497,23 @@ void APP_blood_loop()
}
void HAL_TIM_PeriodElapsedCallback(TIM_HandleTypeDef *htim)//10us
{
if (htim == (&htim6))
{
max30102_read_fifo(); //read from MAX30102 FIFO2
//将数据写入fft输入并清除输出
s1[g_fft_index].real = fifo_red;
s1[g_fft_index].imag= 0;
s2[g_fft_index].real = fifo_ir;
s2[g_fft_index].imag= 0;
g_fft_index++;
if(g_fft_index>FFT_N)
{
get_data_flag=1;
HAL_TIM_Base_Stop_IT(&htim6);
}
}
}
+10 -2
View File
@@ -11,7 +11,8 @@ Mcu.IP1=I2C2
Mcu.IP2=NVIC
Mcu.IP3=RCC
Mcu.IP4=SYS
Mcu.IPNb=5
Mcu.IP5=TIM6
Mcu.IPNb=6
Mcu.Name=STM32F103Z(C-D-E)Tx
Mcu.Package=LQFP144
Mcu.Pin0=PF8
@@ -43,13 +44,14 @@ Mcu.Pin31=PD5
Mcu.Pin32=PG12
Mcu.Pin33=VP_SYS_VS_ND
Mcu.Pin34=VP_SYS_VS_Systick
Mcu.Pin35=VP_TIM6_VS_ClockSourceINT
Mcu.Pin4=OSC_OUT
Mcu.Pin5=PB0
Mcu.Pin6=PB1
Mcu.Pin7=PB2
Mcu.Pin8=PG0
Mcu.Pin9=PE7
Mcu.PinsNb=35
Mcu.PinsNb=36
Mcu.ThirdPartyNb=0
Mcu.UserConstants=
Mcu.UserName=STM32F103ZETx
@@ -65,6 +67,7 @@ NVIC.PendSV_IRQn=true\:0\:0\:false\:false\:true\:false\:false
NVIC.PriorityGroup=NVIC_PRIORITYGROUP_4
NVIC.SVCall_IRQn=true\:0\:0\:false\:false\:true\:false\:false
NVIC.SysTick_IRQn=true\:15\:0\:false\:false\:true\:false\:true
NVIC.TIM6_IRQn=true\:0\:0\:false\:false\:true\:true\:true
NVIC.UsageFault_IRQn=true\:0\:0\:false\:false\:true\:false\:false
OSC_IN.Mode=HSE-External-Oscillator
OSC_IN.Signal=RCC_OSC_IN
@@ -238,9 +241,14 @@ SH.FSMC_NOE.0=FSMC_NOE,Lcd1
SH.FSMC_NOE.ConfNb=1
SH.FSMC_NWE.0=FSMC_NWE,Lcd1
SH.FSMC_NWE.ConfNb=1
TIM6.IPParameters=Prescaler,Period
TIM6.Period=10000-1
TIM6.Prescaler=72-1
VP_SYS_VS_ND.Mode=No_Debug
VP_SYS_VS_ND.Signal=SYS_VS_ND
VP_SYS_VS_Systick.Mode=SysTick
VP_SYS_VS_Systick.Signal=SYS_VS_Systick
VP_TIM6_VS_ClockSourceINT.Mode=Enable_Timer
VP_TIM6_VS_ClockSourceINT.Signal=TIM6_VS_ClockSourceINT
board=custom
isbadioc=false