diff --git a/.mxproject b/.mxproject index 3174a0e..d29b12c 100644 --- a/.mxproject +++ b/.mxproject @@ -1,5 +1,5 @@ [PreviousLibFiles] -LibFiles=Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_adc.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_ll_adc.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_adc_ex.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_rcc.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_rcc_ex.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_ll_bus.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_ll_rcc.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_ll_system.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_ll_utils.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_flash.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_flash_ex.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_gpio.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_gpio_ex.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_ll_gpio.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_dma.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_dma_ex.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_ll_dma.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_ll_dmamux.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_pwr.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_pwr_ex.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_ll_pwr.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_cortex.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_ll_cortex.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_def.h;Drivers/STM32F7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_i2c.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_i2c_ex.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_exti.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_ll_exti.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_ll_sdmmc.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_sd.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_ll_spi.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_tim.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_tim_ex.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_ll_tim.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_ll_usart.h;Middlewares/Third_Party/FatFs/src/diskio.h;Middlewares/Third_Party/FatFs/src/ff.h;Middlewares/Third_Party/FatFs/src/ff_gen_drv.h;Middlewares/Third_Party/FatFs/src/integer.h;Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_adc.c;Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_adc_ex.c;Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_rcc.c;Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_rcc_ex.c;Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_flash.c;Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_flash_ex.c;Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_gpio.c;Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_dma.c;Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_dma_ex.c;Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_pwr.c;Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_pwr_ex.c;Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_cortex.c;Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal.c;Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_i2c.c;Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_i2c_ex.c;Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_exti.c;Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_ll_rcc.c;Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_ll_utils.c;Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_ll_exti.c;Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_ll_gpio.c;Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_ll_dma.c;Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_ll_sdmmc.c;Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_sd.c;Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_ll_spi.c;Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_tim.c;Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_tim_ex.c;Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_ll_tim.c;Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_ll_usart.c;Middlewares/Third_Party/FatFs/src/diskio.c;Middlewares/Third_Party/FatFs/src/ff.c;Middlewares/Third_Party/FatFs/src/ff_gen_drv.c;Middlewares/Third_Party/FatFs/src/option/syscall.c;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_adc.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_ll_adc.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_adc_ex.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_rcc.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_rcc_ex.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_ll_bus.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_ll_rcc.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_ll_system.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_ll_utils.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_flash.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_flash_ex.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_gpio.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_gpio_ex.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_ll_gpio.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_dma.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_dma_ex.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_ll_dma.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_ll_dmamux.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_pwr.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_pwr_ex.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_ll_pwr.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_cortex.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_ll_cortex.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_def.h;Drivers/STM32F7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_i2c.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_i2c_ex.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_exti.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_ll_exti.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_ll_sdmmc.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_sd.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_ll_spi.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_tim.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_tim_ex.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_ll_tim.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_ll_usart.h;Middlewares/Third_Party/FatFs/src/diskio.h;Middlewares/Third_Party/FatFs/src/ff.h;Middlewares/Third_Party/FatFs/src/ff_gen_drv.h;Middlewares/Third_Party/FatFs/src/integer.h;Drivers/CMSIS/Device/ST/STM32F7xx/Include/stm32f767xx.h;Drivers/CMSIS/Device/ST/STM32F7xx/Include/stm32f7xx.h;Drivers/CMSIS/Device/ST/STM32F7xx/Include/system_stm32f7xx.h;Drivers/CMSIS/Device/ST/STM32F7xx/Include/system_stm32f7xx.h;Drivers/CMSIS/Device/ST/STM32F7xx/Source/Templates/system_stm32f7xx.c;Drivers/CMSIS/Include/cmsis_gcc.h;Drivers/CMSIS/Include/cmsis_version.h;Drivers/CMSIS/Include/core_cm23.h;Drivers/CMSIS/Include/core_sc300.h;Drivers/CMSIS/Include/core_sc000.h;Drivers/CMSIS/Include/tz_context.h;Drivers/CMSIS/Include/core_cm3.h;Drivers/CMSIS/Include/core_cm4.h;Drivers/CMSIS/Include/core_cm0.h;Drivers/CMSIS/Include/core_cm0plus.h;Drivers/CMSIS/Include/core_armv8mml.h;Drivers/CMSIS/Include/core_cm1.h;Drivers/CMSIS/Include/mpu_armv8.h;Drivers/CMSIS/Include/mpu_armv7.h;Drivers/CMSIS/Include/cmsis_iccarm.h;Drivers/CMSIS/Include/core_cm7.h;Drivers/CMSIS/Include/cmsis_armcc.h;Drivers/CMSIS/Include/core_cm33.h;Drivers/CMSIS/Include/cmsis_compiler.h;Drivers/CMSIS/Include/cmsis_armclang.h;Drivers/CMSIS/Include/core_armv8mbl.h; +LibFiles=Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_adc.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_ll_adc.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_adc_ex.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_rcc.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_rcc_ex.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_ll_bus.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_ll_rcc.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_ll_system.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_ll_utils.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_flash.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_flash_ex.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_gpio.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_gpio_ex.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_ll_gpio.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_dma.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_dma_ex.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_ll_dma.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_ll_dmamux.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_pwr.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_pwr_ex.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_ll_pwr.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_cortex.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_ll_cortex.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_def.h;Drivers/STM32F7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_i2c.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_i2c_ex.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_exti.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_ll_exti.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_ll_sdmmc.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_sd.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_mmc.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_ll_spi.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_ll_tim.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_tim.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_tim_ex.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_uart.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_ll_usart.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_uart_ex.h;Middlewares/Third_Party/FatFs/src/diskio.h;Middlewares/Third_Party/FatFs/src/ff.h;Middlewares/Third_Party/FatFs/src/ff_gen_drv.h;Middlewares/Third_Party/FatFs/src/integer.h;Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_adc.c;Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_adc_ex.c;Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_rcc.c;Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_rcc_ex.c;Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_flash.c;Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_flash_ex.c;Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_gpio.c;Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_dma.c;Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_dma_ex.c;Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_pwr.c;Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_pwr_ex.c;Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_cortex.c;Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal.c;Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_i2c.c;Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_i2c_ex.c;Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_exti.c;Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_ll_rcc.c;Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_ll_utils.c;Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_ll_exti.c;Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_ll_gpio.c;Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_ll_dma.c;Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_ll_sdmmc.c;Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_sd.c;Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_mmc.c;Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_ll_spi.c;Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_ll_tim.c;Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_tim.c;Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_tim_ex.c;Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_uart.c;Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_uart_ex.c;Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_ll_usart.c;Middlewares/Third_Party/FatFs/src/diskio.c;Middlewares/Third_Party/FatFs/src/ff.c;Middlewares/Third_Party/FatFs/src/ff_gen_drv.c;Middlewares/Third_Party/FatFs/src/option/syscall.c;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_adc.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_ll_adc.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_adc_ex.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_rcc.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_rcc_ex.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_ll_bus.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_ll_rcc.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_ll_system.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_ll_utils.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_flash.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_flash_ex.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_gpio.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_gpio_ex.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_ll_gpio.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_dma.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_dma_ex.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_ll_dma.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_ll_dmamux.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_pwr.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_pwr_ex.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_ll_pwr.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_cortex.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_ll_cortex.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_def.h;Drivers/STM32F7xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_i2c.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_i2c_ex.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_exti.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_ll_exti.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_ll_sdmmc.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_sd.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_mmc.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_ll_spi.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_ll_tim.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_tim.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_tim_ex.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_uart.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_ll_usart.h;Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_uart_ex.h;Middlewares/Third_Party/FatFs/src/diskio.h;Middlewares/Third_Party/FatFs/src/ff.h;Middlewares/Third_Party/FatFs/src/ff_gen_drv.h;Middlewares/Third_Party/FatFs/src/integer.h;Drivers/CMSIS/Device/ST/STM32F7xx/Include/stm32f767xx.h;Drivers/CMSIS/Device/ST/STM32F7xx/Include/stm32f7xx.h;Drivers/CMSIS/Device/ST/STM32F7xx/Include/system_stm32f7xx.h;Drivers/CMSIS/Device/ST/STM32F7xx/Include/system_stm32f7xx.h;Drivers/CMSIS/Device/ST/STM32F7xx/Source/Templates/system_stm32f7xx.c; [PreviousUsedKeilFiles] SourceFiles=..\Src\main.c;..\Src\bsp_driver_sd.c;..\Src\sd_diskio.c;..\Src\fatfs.c;..\Src\fatfs_platform.c;..\Src\stm32f7xx_it.c;..\Src\stm32f7xx_hal_msp.c;..\Drivers\STM32F7xx_HAL_Driver\Src\stm32f7xx_hal_adc.c;..\Drivers\STM32F7xx_HAL_Driver\Src\stm32f7xx_hal_adc_ex.c;..\Drivers\STM32F7xx_HAL_Driver\Src\stm32f7xx_hal_rcc.c;..\Drivers\STM32F7xx_HAL_Driver\Src\stm32f7xx_hal_rcc_ex.c;..\Drivers\STM32F7xx_HAL_Driver\Src\stm32f7xx_hal_flash.c;..\Drivers\STM32F7xx_HAL_Driver\Src\stm32f7xx_hal_flash_ex.c;..\Drivers\STM32F7xx_HAL_Driver\Src\stm32f7xx_hal_gpio.c;..\Drivers\STM32F7xx_HAL_Driver\Src\stm32f7xx_hal_dma.c;..\Drivers\STM32F7xx_HAL_Driver\Src\stm32f7xx_hal_dma_ex.c;..\Drivers\STM32F7xx_HAL_Driver\Src\stm32f7xx_hal_pwr.c;..\Drivers\STM32F7xx_HAL_Driver\Src\stm32f7xx_hal_pwr_ex.c;..\Drivers\STM32F7xx_HAL_Driver\Src\stm32f7xx_hal_cortex.c;..\Drivers\STM32F7xx_HAL_Driver\Src\stm32f7xx_hal.c;..\Drivers\STM32F7xx_HAL_Driver\Src\stm32f7xx_hal_i2c.c;..\Drivers\STM32F7xx_HAL_Driver\Src\stm32f7xx_hal_i2c_ex.c;..\Drivers\STM32F7xx_HAL_Driver\Src\stm32f7xx_hal_exti.c;..\Drivers\STM32F7xx_HAL_Driver\Src\stm32f7xx_ll_rcc.c;..\Drivers\STM32F7xx_HAL_Driver\Src\stm32f7xx_ll_utils.c;..\Drivers\STM32F7xx_HAL_Driver\Src\stm32f7xx_ll_exti.c;..\Drivers\STM32F7xx_HAL_Driver\Src\stm32f7xx_ll_gpio.c;..\Drivers\STM32F7xx_HAL_Driver\Src\stm32f7xx_ll_dma.c;..\Drivers\STM32F7xx_HAL_Driver\Src\stm32f7xx_ll_sdmmc.c;..\Drivers\STM32F7xx_HAL_Driver\Src\stm32f7xx_hal_sd.c;..\Drivers\STM32F7xx_HAL_Driver\Src\stm32f7xx_ll_spi.c;..\Drivers\STM32F7xx_HAL_Driver\Src\stm32f7xx_hal_tim.c;..\Drivers\STM32F7xx_HAL_Driver\Src\stm32f7xx_hal_tim_ex.c;..\Drivers\STM32F7xx_HAL_Driver\Src\stm32f7xx_ll_tim.c;..\Drivers\STM32F7xx_HAL_Driver\Src\stm32f7xx_ll_usart.c;..\Middlewares\Third_Party\FatFs\src\diskio.c;..\Middlewares\Third_Party\FatFs\src\ff.c;..\Middlewares\Third_Party\FatFs\src\ff_gen_drv.c;..\Middlewares\Third_Party\FatFs\src\option\syscall.c;..\Drivers\CMSIS\Device\ST\STM32F7xx\Source\Templates\system_stm32f7xx.c;..\\Src\system_stm32f7xx.c;..\Drivers\STM32F7xx_HAL_Driver\Src\stm32f7xx_hal_adc.c;..\Drivers\STM32F7xx_HAL_Driver\Src\stm32f7xx_hal_adc_ex.c;..\Drivers\STM32F7xx_HAL_Driver\Src\stm32f7xx_hal_rcc.c;..\Drivers\STM32F7xx_HAL_Driver\Src\stm32f7xx_hal_rcc_ex.c;..\Drivers\STM32F7xx_HAL_Driver\Src\stm32f7xx_hal_flash.c;..\Drivers\STM32F7xx_HAL_Driver\Src\stm32f7xx_hal_flash_ex.c;..\Drivers\STM32F7xx_HAL_Driver\Src\stm32f7xx_hal_gpio.c;..\Drivers\STM32F7xx_HAL_Driver\Src\stm32f7xx_hal_dma.c;..\Drivers\STM32F7xx_HAL_Driver\Src\stm32f7xx_hal_dma_ex.c;..\Drivers\STM32F7xx_HAL_Driver\Src\stm32f7xx_hal_pwr.c;..\Drivers\STM32F7xx_HAL_Driver\Src\stm32f7xx_hal_pwr_ex.c;..\Drivers\STM32F7xx_HAL_Driver\Src\stm32f7xx_hal_cortex.c;..\Drivers\STM32F7xx_HAL_Driver\Src\stm32f7xx_hal.c;..\Drivers\STM32F7xx_HAL_Driver\Src\stm32f7xx_hal_i2c.c;..\Drivers\STM32F7xx_HAL_Driver\Src\stm32f7xx_hal_i2c_ex.c;..\Drivers\STM32F7xx_HAL_Driver\Src\stm32f7xx_hal_exti.c;..\Drivers\STM32F7xx_HAL_Driver\Src\stm32f7xx_ll_rcc.c;..\Drivers\STM32F7xx_HAL_Driver\Src\stm32f7xx_ll_utils.c;..\Drivers\STM32F7xx_HAL_Driver\Src\stm32f7xx_ll_exti.c;..\Drivers\STM32F7xx_HAL_Driver\Src\stm32f7xx_ll_gpio.c;..\Drivers\STM32F7xx_HAL_Driver\Src\stm32f7xx_ll_dma.c;..\Drivers\STM32F7xx_HAL_Driver\Src\stm32f7xx_ll_sdmmc.c;..\Drivers\STM32F7xx_HAL_Driver\Src\stm32f7xx_hal_sd.c;..\Drivers\STM32F7xx_HAL_Driver\Src\stm32f7xx_ll_spi.c;..\Drivers\STM32F7xx_HAL_Driver\Src\stm32f7xx_hal_tim.c;..\Drivers\STM32F7xx_HAL_Driver\Src\stm32f7xx_hal_tim_ex.c;..\Drivers\STM32F7xx_HAL_Driver\Src\stm32f7xx_ll_tim.c;..\Drivers\STM32F7xx_HAL_Driver\Src\stm32f7xx_ll_usart.c;..\Middlewares\Third_Party\FatFs\src\diskio.c;..\Middlewares\Third_Party\FatFs\src\ff.c;..\Middlewares\Third_Party\FatFs\src\ff_gen_drv.c;..\Middlewares\Third_Party\FatFs\src\option\syscall.c;..\Drivers\CMSIS\Device\ST\STM32F7xx\Source\Templates\system_stm32f7xx.c;..\\Src\system_stm32f7xx.c;;;..\Middlewares\Third_Party\FatFs\src\diskio.c;..\Middlewares\Third_Party\FatFs\src\ff.c;..\Middlewares\Third_Party\FatFs\src\ff_gen_drv.c;..\Middlewares\Third_Party\FatFs\src\option\syscall.c; @@ -16,6 +16,9 @@ SourceFiles=Src/main.c;Src/bsp_driver_sd.c;Src/sd_diskio.c;Src/fatfs.c;Src/fatfs HeaderPath=Drivers/STM32F7xx_HAL_Driver/Inc;Drivers/STM32F7xx_HAL_Driver/Inc/Legacy;Middlewares/Third_Party/FatFs/src;Drivers/CMSIS/Device/ST/STM32F7xx/Include;Drivers/CMSIS/Include;Inc; CDefines=USE_FULL_LL_DRIVER;USE_HAL_DRIVER;STM32F767xx;USE_FULL_LL_DRIVER;USE_HAL_DRIVER;USE_HAL_DRIVER; +[] +SourceFiles=;; + [PreviousGenFiles] HeaderPath=../Inc HeaderFiles=ffconf.h;bsp_driver_sd.h;sd_diskio.h;fatfs.h;fatfs_platform.h;stm32f7xx_it.h;stm32_assert.h;stm32f7xx_hal_conf.h;main.h; diff --git a/For_stm32.ioc b/For_stm32.ioc index 8e0b12d..303897d 100644 --- a/For_stm32.ioc +++ b/For_stm32.ioc @@ -65,15 +65,16 @@ Mcu.IP10=SPI5 Mcu.IP11=SPI6 Mcu.IP12=SYS Mcu.IP13=TIM2 -Mcu.IP14=TIM5 -Mcu.IP15=TIM6 -Mcu.IP16=TIM7 -Mcu.IP17=TIM8 -Mcu.IP18=TIM10 -Mcu.IP19=TIM11 +Mcu.IP14=TIM4 +Mcu.IP15=TIM5 +Mcu.IP16=TIM6 +Mcu.IP17=TIM7 +Mcu.IP18=TIM8 +Mcu.IP19=TIM10 Mcu.IP2=CORTEX_M7 -Mcu.IP20=UART8 -Mcu.IP21=USART1 +Mcu.IP20=TIM11 +Mcu.IP21=UART8 +Mcu.IP22=USART1 Mcu.IP3=DMA Mcu.IP4=FATFS Mcu.IP5=NVIC @@ -81,7 +82,7 @@ Mcu.IP6=RCC Mcu.IP7=SDMMC1 Mcu.IP8=SPI2 Mcu.IP9=SPI4 -Mcu.IPNb=22 +Mcu.IPNb=23 Mcu.Name=STM32F767ZITx Mcu.Package=LQFP144 Mcu.Pin0=PF3 @@ -157,20 +158,21 @@ Mcu.Pin71=PE1 Mcu.Pin72=VP_FATFS_VS_SDIO Mcu.Pin73=VP_SYS_VS_Systick Mcu.Pin74=VP_TIM2_VS_ClockSourceINT -Mcu.Pin75=VP_TIM5_VS_ClockSourceINT -Mcu.Pin76=VP_TIM6_VS_ClockSourceINT -Mcu.Pin77=VP_TIM7_VS_ClockSourceINT -Mcu.Pin78=VP_TIM8_VS_ClockSourceINT -Mcu.Pin79=VP_TIM10_VS_ClockSourceINT +Mcu.Pin75=VP_TIM4_VS_ClockSourceINT +Mcu.Pin76=VP_TIM5_VS_ClockSourceINT +Mcu.Pin77=VP_TIM6_VS_ClockSourceINT +Mcu.Pin78=VP_TIM7_VS_ClockSourceINT +Mcu.Pin79=VP_TIM8_VS_ClockSourceINT Mcu.Pin8=PH0/OSC_IN -Mcu.Pin80=VP_TIM11_VS_ClockSourceINT +Mcu.Pin80=VP_TIM10_VS_ClockSourceINT +Mcu.Pin81=VP_TIM11_VS_ClockSourceINT Mcu.Pin9=PH1/OSC_OUT -Mcu.PinsNb=81 +Mcu.PinsNb=82 Mcu.ThirdPartyNb=0 Mcu.UserConstants= Mcu.UserName=STM32F767ZITx -MxCube.Version=6.12.1 -MxDb.Version=DB.6.0.121 +MxCube.Version=6.14.0 +MxDb.Version=DB.6.0.140 NVIC.ADC_IRQn=true\:0\:0\:false\:false\:true\:true\:true\:true NVIC.BusFault_IRQn=true\:0\:0\:false\:false\:true\:false\:false\:false NVIC.DMA2_Stream7_IRQn=true\:0\:0\:false\:false\:true\:false\:true\:true @@ -279,10 +281,8 @@ PB7.GPIOParameters=GPIO_Label PB7.GPIO_Label=OUT_9 PB7.Locked=true PB7.Signal=GPIO_Output -PB8.GPIOParameters=GPIO_Label -PB8.GPIO_Label=OUT_10 PB8.Locked=true -PB8.Signal=GPIO_Output +PB8.Signal=S_TIM4_CH3 PB9.Locked=true PB9.Signal=S_TIM11_CH1 PC0.Locked=true @@ -437,6 +437,7 @@ PH1/OSC_OUT.Signal=RCC_OSC_OUT PinOutPanel.RotationAngle=0 ProjectManager.AskForMigrate=true ProjectManager.BackupPrevious=false +ProjectManager.CompilerLinker=GCC ProjectManager.CompilerOptimize=6 ProjectManager.ComputerToolchain=false ProjectManager.CoupleFile=false @@ -465,7 +466,7 @@ ProjectManager.ToolChainLocation= ProjectManager.UAScriptAfterPath= ProjectManager.UAScriptBeforePath= ProjectManager.UnderRoot=false -ProjectManager.functionlistsort=1-MX_GPIO_Init-GPIO-false-HAL-true,2-SystemClock_Config-RCC-false-HAL-false,3-MX_DMA_Init-DMA-false-LL-true,4-MX_SPI4_Init-SPI4-false-LL-true,5-MX_FATFS_Init-FATFS-false-HAL-false,6-MX_TIM2_Init-TIM2-false-LL-true,7-MX_TIM5_Init-TIM5-false-LL-true,8-MX_ADC1_Init-ADC1-false-HAL-true,9-MX_ADC3_Init-ADC3-false-HAL-true,10-MX_SPI2_Init-SPI2-false-LL-true,11-MX_SPI5_Init-SPI5-false-LL-true,12-MX_SPI6_Init-SPI6-false-LL-true,13-MX_USART1_UART_Init-USART1-false-LL-true,14-MX_SDMMC1_SD_Init-SDMMC1-false-HAL-true,15-MX_TIM7_Init-TIM7-false-LL-true,16-MX_TIM6_Init-TIM6-false-LL-true,17-MX_TIM10_Init-TIM10-false-HAL-true,18-MX_UART8_Init-UART8-false-HAL-true,19-MX_TIM8_Init-TIM8-false-HAL-true,0-MX_CORTEX_M7_Init-CORTEX_M7-false-HAL-true +ProjectManager.functionlistsort=1-MX_GPIO_Init-GPIO-false-HAL-true,2-SystemClock_Config-RCC-false-HAL-false,3-MX_DMA_Init-DMA-false-LL-true,4-MX_SPI4_Init-SPI4-false-LL-true,5-MX_FATFS_Init-FATFS-false-HAL-false,6-MX_TIM2_Init-TIM2-false-LL-true,7-MX_TIM5_Init-TIM5-false-LL-true,8-MX_ADC1_Init-ADC1-false-HAL-true,9-MX_ADC3_Init-ADC3-false-HAL-true,10-MX_SPI2_Init-SPI2-false-LL-true,11-MX_SPI5_Init-SPI5-false-LL-true,12-MX_SPI6_Init-SPI6-false-LL-true,13-MX_USART1_UART_Init-USART1-false-LL-true,14-MX_SDMMC1_SD_Init-SDMMC1-false-HAL-true,15-MX_TIM7_Init-TIM7-false-LL-true,16-MX_TIM6_Init-TIM6-false-LL-true,17-MX_TIM10_Init-TIM10-false-HAL-true,18-MX_UART8_Init-UART8-false-HAL-true,19-MX_TIM8_Init-TIM8-false-HAL-true,20-MX_TIM11_Init-TIM11-false-HAL-true,21-MX_TIM4_Init-TIM4-false-HAL-true,0-MX_CORTEX_M7_Init-CORTEX_M7-false-HAL-true RCC.AHBFreq_Value=184000000 RCC.APB1CLKDivider=RCC_HCLK_DIV4 RCC.APB1Freq_Value=46000000 @@ -548,6 +549,8 @@ SH.ADCx_IN9.0=ADC1_IN9,IN9 SH.ADCx_IN9.ConfNb=1 SH.S_TIM11_CH1.0=TIM11_CH1,PWM Generation1 CH1 SH.S_TIM11_CH1.ConfNb=1 +SH.S_TIM4_CH3.0=TIM4_CH3,PWM Generation3 CH3 +SH.S_TIM4_CH3.ConfNb=1 SPI2.BaudRatePrescaler=SPI_BAUDRATEPRESCALER_8 SPI2.CLKPhase=SPI_PHASE_2EDGE SPI2.CLKPolarity=SPI_POLARITY_HIGH @@ -590,8 +593,7 @@ TIM10.Period=9 TIM10.Prescaler=183 TIM11.AutoReloadPreload=TIM_AUTORELOAD_PRELOAD_ENABLE TIM11.Channel=TIM_CHANNEL_1 -TIM11.IPParameters=Channel,Prescaler,Period,Pulse,OCFastMode_PWM,AutoReloadPreload -TIM11.OCFastMode_PWM=TIM_OCFAST_ENABLE +TIM11.IPParameters=Prescaler,Period,AutoReloadPreload,Channel,Pulse TIM11.Period=183 TIM11.Prescaler=0 TIM11.Pulse=91 @@ -599,6 +601,10 @@ TIM2.ClockDivision=TIM_CLOCKDIVISION_DIV1 TIM2.IPParameters=Period,ClockDivision,Prescaler TIM2.Period=840000 TIM2.Prescaler=1000 +TIM4.Channel-PWM\ Generation3\ CH3=TIM_CHANNEL_3 +TIM4.IPParameters=Channel-PWM Generation3 CH3,Period,Pulse-PWM Generation3 CH3 +TIM4.Period=45 +TIM4.Pulse-PWM\ Generation3\ CH3=22 TIM5.ClockDivision=TIM_CLOCKDIVISION_DIV1 TIM5.IPParameters=ClockDivision,Prescaler,Period TIM5.Period=560 @@ -625,6 +631,8 @@ VP_TIM11_VS_ClockSourceINT.Mode=Enable_Timer VP_TIM11_VS_ClockSourceINT.Signal=TIM11_VS_ClockSourceINT VP_TIM2_VS_ClockSourceINT.Mode=Internal VP_TIM2_VS_ClockSourceINT.Signal=TIM2_VS_ClockSourceINT +VP_TIM4_VS_ClockSourceINT.Mode=Internal +VP_TIM4_VS_ClockSourceINT.Signal=TIM4_VS_ClockSourceINT VP_TIM5_VS_ClockSourceINT.Mode=Internal VP_TIM5_VS_ClockSourceINT.Signal=TIM5_VS_ClockSourceINT VP_TIM6_VS_ClockSourceINT.Mode=Enable_Timer diff --git a/Inc/main.h b/Inc/main.h index b6b1f37..aa94f73 100644 --- a/Inc/main.h +++ b/Inc/main.h @@ -151,8 +151,6 @@ void Set_LTEC(uint8_t, uint16_t); #define OUT_8_GPIO_Port GPIOB #define OUT_9_Pin GPIO_PIN_7 #define OUT_9_GPIO_Port GPIOB -#define OUT_10_Pin GPIO_PIN_8 -#define OUT_10_GPIO_Port GPIOB /* USER CODE BEGIN Private defines */ #define CL_16 15 diff --git a/Inc/stm32f7xx_it.h b/Inc/stm32f7xx_it.h index f88ec54..2efb81c 100644 --- a/Inc/stm32f7xx_it.h +++ b/Inc/stm32f7xx_it.h @@ -22,7 +22,7 @@ #define __STM32F7xx_IT_H #ifdef __cplusplus - extern "C" { +extern "C" { #endif /* Private includes ----------------------------------------------------------*/ diff --git a/Src/main.c b/Src/main.c index ff6b947..b4060f7 100644 --- a/Src/main.c +++ b/Src/main.c @@ -47,6 +47,7 @@ ADC_HandleTypeDef hadc3; SD_HandleTypeDef hsd1; +TIM_HandleTypeDef htim4; TIM_HandleTypeDef htim8; TIM_HandleTypeDef htim10; TIM_HandleTypeDef htim11; @@ -93,6 +94,7 @@ static void MX_TIM10_Init(void); static void MX_UART8_Init(void); static void MX_TIM8_Init(void); static void MX_TIM11_Init(void); +static void MX_TIM4_Init(void); /* USER CODE BEGIN PFP */ static void Init_params(void); static void Decode_uart(uint16_t *Command, LDx_SetupTypeDef *LD1_curr_setup, LDx_SetupTypeDef *LD2_curr_setup, Work_SetupTypeDef *Curr_setup); @@ -166,6 +168,7 @@ int main(void) MX_UART8_Init(); MX_TIM8_Init(); MX_TIM11_Init(); + MX_TIM4_Init(); /* USER CODE BEGIN 2 */ Init_params(); HAL_TIM_Base_Start(&htim11); @@ -383,12 +386,14 @@ int main(void) uint16_t trigger_step = (uint8_t )((task.max_param - task.current_param)/task.delta_param * 10); uint16_t task_sheduler = 0; HAL_TIM_PWM_Start(&htim11, TIM_CHANNEL_1); //start modulating by Mach-Zander modulator + HAL_TIM_PWM_Start(&htim4, TIM_CHANNEL_3); //start modulating by Mach-Zander modulator while (task.current_param < task.max_param) { if (TIM10_coflag) { Set_LTEC(TT_CHANGE_CURR_1, task.current_param); TIM11 -> CNT = 0; // to link modulator phase + TIM4 -> CNT = 0; // to link ADC clock phase task.current_param += task.delta_param; TO10 = 0; TIM10_coflag = 0; @@ -426,8 +431,10 @@ int main(void) } } HAL_TIM_PWM_Stop(&htim11, TIM_CHANNEL_1); //start modulating by Mach-Zander modulator + HAL_TIM_PWM_Stop(&htim4, TIM_CHANNEL_3); //start modulating by Mach-Zander modulator Stop_TIM10(); + task.current_param = task.min_param; Set_LTEC(TT_CHANGE_CURR_1, task.current_param); if (task.tau > 3) @@ -456,8 +463,8 @@ int main(void) //LD_blinker.param = task.current_param; LD_blinker.param = 0; LD_blinker.param = 1000; // LD2 current (in unspecified units) - LD_blinker.signal_port = OUT_10_GPIO_Port; - LD_blinker.signal_pin = OUT_10_Pin; + LD_blinker.signal_port = OUT_9_GPIO_Port; + LD_blinker.signal_pin = OUT_9_Pin; TIM8->ARR = 10000; //zero to LD_blinker.param change frequency (also in unspecified units). //When it is too low -- Desktop app crashes (there is not so much compute sources on MCU to anwser to desktop`s questions) @@ -1197,6 +1204,65 @@ static void MX_TIM2_Init(void) } +/** + * @brief TIM4 Initialization Function + * @param None + * @retval None + */ +static void MX_TIM4_Init(void) +{ + + /* USER CODE BEGIN TIM4_Init 0 */ + + /* USER CODE END TIM4_Init 0 */ + + TIM_ClockConfigTypeDef sClockSourceConfig = {0}; + TIM_MasterConfigTypeDef sMasterConfig = {0}; + TIM_OC_InitTypeDef sConfigOC = {0}; + + /* USER CODE BEGIN TIM4_Init 1 */ + + /* USER CODE END TIM4_Init 1 */ + htim4.Instance = TIM4; + htim4.Init.Prescaler = 0; + htim4.Init.CounterMode = TIM_COUNTERMODE_UP; + htim4.Init.Period = 45; + htim4.Init.ClockDivision = TIM_CLOCKDIVISION_DIV1; + htim4.Init.AutoReloadPreload = TIM_AUTORELOAD_PRELOAD_DISABLE; + if (HAL_TIM_Base_Init(&htim4) != HAL_OK) + { + Error_Handler(); + } + sClockSourceConfig.ClockSource = TIM_CLOCKSOURCE_INTERNAL; + if (HAL_TIM_ConfigClockSource(&htim4, &sClockSourceConfig) != HAL_OK) + { + Error_Handler(); + } + if (HAL_TIM_PWM_Init(&htim4) != HAL_OK) + { + Error_Handler(); + } + sMasterConfig.MasterOutputTrigger = TIM_TRGO_RESET; + sMasterConfig.MasterSlaveMode = TIM_MASTERSLAVEMODE_DISABLE; + if (HAL_TIMEx_MasterConfigSynchronization(&htim4, &sMasterConfig) != HAL_OK) + { + Error_Handler(); + } + sConfigOC.OCMode = TIM_OCMODE_PWM1; + sConfigOC.Pulse = 22; + sConfigOC.OCPolarity = TIM_OCPOLARITY_HIGH; + sConfigOC.OCFastMode = TIM_OCFAST_DISABLE; + if (HAL_TIM_PWM_ConfigChannel(&htim4, &sConfigOC, TIM_CHANNEL_3) != HAL_OK) + { + Error_Handler(); + } + /* USER CODE BEGIN TIM4_Init 2 */ + + /* USER CODE END TIM4_Init 2 */ + HAL_TIM_MspPostInit(&htim4); + +} + /** * @brief TIM5 Initialization Function * @param None @@ -1422,7 +1488,7 @@ static void MX_TIM11_Init(void) sConfigOC.OCMode = TIM_OCMODE_PWM1; sConfigOC.Pulse = 91; sConfigOC.OCPolarity = TIM_OCPOLARITY_HIGH; - sConfigOC.OCFastMode = TIM_OCFAST_ENABLE; + sConfigOC.OCFastMode = TIM_OCFAST_DISABLE; if (HAL_TIM_PWM_ConfigChannel(&htim11, &sConfigOC, TIM_CHANNEL_1) != HAL_OK) { Error_Handler(); @@ -1588,8 +1654,8 @@ static void MX_DMA_Init(void) static void MX_GPIO_Init(void) { GPIO_InitTypeDef GPIO_InitStruct = {0}; -/* USER CODE BEGIN MX_GPIO_Init_1 */ -/* USER CODE END MX_GPIO_Init_1 */ + /* USER CODE BEGIN MX_GPIO_Init_1 */ + /* USER CODE END MX_GPIO_Init_1 */ /* GPIO Ports Clock Enable */ __HAL_RCC_GPIOF_CLK_ENABLE(); @@ -1621,7 +1687,7 @@ static void MX_GPIO_Init(void) /*Configure GPIO pin Output Level */ HAL_GPIO_WritePin(GPIOB, REF0_EN_Pin|TEC1_PD_Pin|DAC_LD1_CS_Pin|OUT_6_Pin - |OUT_7_Pin|OUT_8_Pin|OUT_9_Pin|OUT_10_Pin, GPIO_PIN_RESET); + |OUT_7_Pin|OUT_8_Pin|OUT_9_Pin, GPIO_PIN_RESET); /*Configure GPIO pin Output Level */ HAL_GPIO_WritePin(DAC_TEC1_CS_GPIO_Port, DAC_TEC1_CS_Pin, GPIO_PIN_SET); @@ -1690,11 +1756,9 @@ static void MX_GPIO_Init(void) HAL_GPIO_Init(SPI4_CNV_GPIO_Port, &GPIO_InitStruct); /*Configure GPIO pins : REF0_EN_Pin TEC1_PD_Pin DAC_TEC1_CS_Pin DAC_LD1_CS_Pin - OUT_6_Pin OUT_7_Pin OUT_8_Pin OUT_9_Pin - OUT_10_Pin */ + OUT_6_Pin OUT_7_Pin OUT_8_Pin OUT_9_Pin */ GPIO_InitStruct.Pin = REF0_EN_Pin|TEC1_PD_Pin|DAC_TEC1_CS_Pin|DAC_LD1_CS_Pin - |OUT_6_Pin|OUT_7_Pin|OUT_8_Pin|OUT_9_Pin - |OUT_10_Pin; + |OUT_6_Pin|OUT_7_Pin|OUT_8_Pin|OUT_9_Pin; GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP; GPIO_InitStruct.Pull = GPIO_NOPULL; GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW; @@ -1728,8 +1792,8 @@ static void MX_GPIO_Init(void) GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW; HAL_GPIO_Init(GPIOG, &GPIO_InitStruct); -/* USER CODE BEGIN MX_GPIO_Init_2 */ -/* USER CODE END MX_GPIO_Init_2 */ + /* USER CODE BEGIN MX_GPIO_Init_2 */ + /* USER CODE END MX_GPIO_Init_2 */ } /* USER CODE BEGIN 4 */ diff --git a/Src/stm32f7xx_hal_msp.c b/Src/stm32f7xx_hal_msp.c index 1c42ab9..caaa490 100644 --- a/Src/stm32f7xx_hal_msp.c +++ b/Src/stm32f7xx_hal_msp.c @@ -1,4 +1,3 @@ - /* USER CODE BEGIN Header */ /** ****************************************************************************** @@ -60,7 +59,7 @@ /* USER CODE END 0 */ void HAL_TIM_MspPostInit(TIM_HandleTypeDef *htim); - /** + /** * Initializes the Global MSP. */ void HAL_MspInit(void) @@ -81,19 +80,19 @@ void HAL_MspInit(void) } /** -* @brief ADC MSP Initialization -* This function configures the hardware resources used in this example -* @param hadc: ADC handle pointer -* @retval None -*/ + * @brief ADC MSP Initialization + * This function configures the hardware resources used in this example + * @param hadc: ADC handle pointer + * @retval None + */ void HAL_ADC_MspInit(ADC_HandleTypeDef* hadc) { GPIO_InitTypeDef GPIO_InitStruct = {0}; if(hadc->Instance==ADC1) { - /* USER CODE BEGIN ADC1_MspInit 0 */ + /* USER CODE BEGIN ADC1_MspInit 0 */ - /* USER CODE END ADC1_MspInit 0 */ + /* USER CODE END ADC1_MspInit 0 */ /* Peripheral clock enable */ __HAL_RCC_ADC1_CLK_ENABLE(); @@ -125,15 +124,15 @@ void HAL_ADC_MspInit(ADC_HandleTypeDef* hadc) /* ADC1 interrupt Init */ HAL_NVIC_SetPriority(ADC_IRQn, 0, 0); HAL_NVIC_EnableIRQ(ADC_IRQn); - /* USER CODE BEGIN ADC1_MspInit 1 */ + /* USER CODE BEGIN ADC1_MspInit 1 */ - /* USER CODE END ADC1_MspInit 1 */ + /* USER CODE END ADC1_MspInit 1 */ } else if(hadc->Instance==ADC3) { - /* USER CODE BEGIN ADC3_MspInit 0 */ + /* USER CODE BEGIN ADC3_MspInit 0 */ - /* USER CODE END ADC3_MspInit 0 */ + /* USER CODE END ADC3_MspInit 0 */ /* Peripheral clock enable */ __HAL_RCC_ADC3_CLK_ENABLE(); @@ -149,26 +148,26 @@ void HAL_ADC_MspInit(ADC_HandleTypeDef* hadc) /* ADC3 interrupt Init */ HAL_NVIC_SetPriority(ADC_IRQn, 0, 0); HAL_NVIC_EnableIRQ(ADC_IRQn); - /* USER CODE BEGIN ADC3_MspInit 1 */ + /* USER CODE BEGIN ADC3_MspInit 1 */ - /* USER CODE END ADC3_MspInit 1 */ + /* USER CODE END ADC3_MspInit 1 */ } } /** -* @brief ADC MSP De-Initialization -* This function freeze the hardware resources used in this example -* @param hadc: ADC handle pointer -* @retval None -*/ + * @brief ADC MSP De-Initialization + * This function freeze the hardware resources used in this example + * @param hadc: ADC handle pointer + * @retval None + */ void HAL_ADC_MspDeInit(ADC_HandleTypeDef* hadc) { if(hadc->Instance==ADC1) { - /* USER CODE BEGIN ADC1_MspDeInit 0 */ + /* USER CODE BEGIN ADC1_MspDeInit 0 */ - /* USER CODE END ADC1_MspDeInit 0 */ + /* USER CODE END ADC1_MspDeInit 0 */ /* Peripheral clock disable */ __HAL_RCC_ADC1_CLK_DISABLE(); @@ -186,23 +185,23 @@ void HAL_ADC_MspDeInit(ADC_HandleTypeDef* hadc) HAL_GPIO_DeInit(GPIOB, GPIO_PIN_0|GPIO_PIN_1); /* ADC1 interrupt DeInit */ - /* USER CODE BEGIN ADC1:ADC_IRQn disable */ + /* USER CODE BEGIN ADC1:ADC_IRQn disable */ /** * Uncomment the line below to disable the "ADC_IRQn" interrupt * Be aware, disabling shared interrupt may affect other IPs */ /* HAL_NVIC_DisableIRQ(ADC_IRQn); */ - /* USER CODE END ADC1:ADC_IRQn disable */ + /* USER CODE END ADC1:ADC_IRQn disable */ - /* USER CODE BEGIN ADC1_MspDeInit 1 */ + /* USER CODE BEGIN ADC1_MspDeInit 1 */ - /* USER CODE END ADC1_MspDeInit 1 */ + /* USER CODE END ADC1_MspDeInit 1 */ } else if(hadc->Instance==ADC3) { - /* USER CODE BEGIN ADC3_MspDeInit 0 */ + /* USER CODE BEGIN ADC3_MspDeInit 0 */ - /* USER CODE END ADC3_MspDeInit 0 */ + /* USER CODE END ADC3_MspDeInit 0 */ /* Peripheral clock disable */ __HAL_RCC_ADC3_CLK_DISABLE(); @@ -212,36 +211,36 @@ void HAL_ADC_MspDeInit(ADC_HandleTypeDef* hadc) HAL_GPIO_DeInit(GPIOF, GPIO_PIN_5); /* ADC3 interrupt DeInit */ - /* USER CODE BEGIN ADC3:ADC_IRQn disable */ + /* USER CODE BEGIN ADC3:ADC_IRQn disable */ /** * Uncomment the line below to disable the "ADC_IRQn" interrupt * Be aware, disabling shared interrupt may affect other IPs */ /* HAL_NVIC_DisableIRQ(ADC_IRQn); */ - /* USER CODE END ADC3:ADC_IRQn disable */ + /* USER CODE END ADC3:ADC_IRQn disable */ - /* USER CODE BEGIN ADC3_MspDeInit 1 */ + /* USER CODE BEGIN ADC3_MspDeInit 1 */ - /* USER CODE END ADC3_MspDeInit 1 */ + /* USER CODE END ADC3_MspDeInit 1 */ } } /** -* @brief SD MSP Initialization -* This function configures the hardware resources used in this example -* @param hsd: SD handle pointer -* @retval None -*/ + * @brief SD MSP Initialization + * This function configures the hardware resources used in this example + * @param hsd: SD handle pointer + * @retval None + */ void HAL_SD_MspInit(SD_HandleTypeDef* hsd) { GPIO_InitTypeDef GPIO_InitStruct = {0}; RCC_PeriphCLKInitTypeDef PeriphClkInitStruct = {0}; if(hsd->Instance==SDMMC1) { - /* USER CODE BEGIN SDMMC1_MspInit 0 */ + /* USER CODE BEGIN SDMMC1_MspInit 0 */ - /* USER CODE END SDMMC1_MspInit 0 */ + /* USER CODE END SDMMC1_MspInit 0 */ /** Initializes the peripherals clock */ @@ -281,27 +280,27 @@ void HAL_SD_MspInit(SD_HandleTypeDef* hsd) GPIO_InitStruct.Alternate = GPIO_AF12_SDMMC1; HAL_GPIO_Init(GPIOD, &GPIO_InitStruct); - /* USER CODE BEGIN SDMMC1_MspInit 1 */ + /* USER CODE BEGIN SDMMC1_MspInit 1 */ - /* USER CODE END SDMMC1_MspInit 1 */ + /* USER CODE END SDMMC1_MspInit 1 */ } } /** -* @brief SD MSP De-Initialization -* This function freeze the hardware resources used in this example -* @param hsd: SD handle pointer -* @retval None -*/ + * @brief SD MSP De-Initialization + * This function freeze the hardware resources used in this example + * @param hsd: SD handle pointer + * @retval None + */ void HAL_SD_MspDeInit(SD_HandleTypeDef* hsd) { if(hsd->Instance==SDMMC1) { - /* USER CODE BEGIN SDMMC1_MspDeInit 0 */ + /* USER CODE BEGIN SDMMC1_MspDeInit 0 */ - /* USER CODE END SDMMC1_MspDeInit 0 */ + /* USER CODE END SDMMC1_MspDeInit 0 */ /* Peripheral clock disable */ __HAL_RCC_SDMMC1_CLK_DISABLE(); @@ -318,59 +317,70 @@ void HAL_SD_MspDeInit(SD_HandleTypeDef* hsd) HAL_GPIO_DeInit(GPIOD, GPIO_PIN_2); - /* USER CODE BEGIN SDMMC1_MspDeInit 1 */ + /* USER CODE BEGIN SDMMC1_MspDeInit 1 */ - /* USER CODE END SDMMC1_MspDeInit 1 */ + /* USER CODE END SDMMC1_MspDeInit 1 */ } } /** -* @brief TIM_Base MSP Initialization -* This function configures the hardware resources used in this example -* @param htim_base: TIM_Base handle pointer -* @retval None -*/ + * @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==TIM8) + if(htim_base->Instance==TIM4) { - /* USER CODE BEGIN TIM8_MspInit 0 */ + /* USER CODE BEGIN TIM4_MspInit 0 */ - /* USER CODE END TIM8_MspInit 0 */ + /* USER CODE END TIM4_MspInit 0 */ + /* Peripheral clock enable */ + __HAL_RCC_TIM4_CLK_ENABLE(); + /* USER CODE BEGIN TIM4_MspInit 1 */ + + /* USER CODE END TIM4_MspInit 1 */ + } + else if(htim_base->Instance==TIM8) + { + /* USER CODE BEGIN TIM8_MspInit 0 */ + + /* USER CODE END TIM8_MspInit 0 */ /* Peripheral clock enable */ __HAL_RCC_TIM8_CLK_ENABLE(); /* TIM8 interrupt Init */ HAL_NVIC_SetPriority(TIM8_UP_TIM13_IRQn, 0, 0); HAL_NVIC_EnableIRQ(TIM8_UP_TIM13_IRQn); - /* USER CODE BEGIN TIM8_MspInit 1 */ + /* USER CODE BEGIN TIM8_MspInit 1 */ - /* USER CODE END TIM8_MspInit 1 */ + /* USER CODE END TIM8_MspInit 1 */ } else if(htim_base->Instance==TIM10) { - /* USER CODE BEGIN TIM10_MspInit 0 */ + /* USER CODE BEGIN TIM10_MspInit 0 */ - /* USER CODE END TIM10_MspInit 0 */ + /* USER CODE END TIM10_MspInit 0 */ /* Peripheral clock enable */ __HAL_RCC_TIM10_CLK_ENABLE(); /* TIM10 interrupt Init */ HAL_NVIC_SetPriority(TIM1_UP_TIM10_IRQn, 0, 0); HAL_NVIC_EnableIRQ(TIM1_UP_TIM10_IRQn); - /* USER CODE BEGIN TIM10_MspInit 1 */ + /* USER CODE BEGIN TIM10_MspInit 1 */ - /* USER CODE END TIM10_MspInit 1 */ + /* USER CODE END TIM10_MspInit 1 */ } else if(htim_base->Instance==TIM11) { - /* USER CODE BEGIN TIM11_MspInit 0 */ + /* USER CODE BEGIN TIM11_MspInit 0 */ - /* USER CODE END TIM11_MspInit 0 */ + /* USER CODE END TIM11_MspInit 0 */ /* Peripheral clock enable */ __HAL_RCC_TIM11_CLK_ENABLE(); - /* USER CODE BEGIN TIM11_MspInit 1 */ + /* USER CODE BEGIN TIM11_MspInit 1 */ - /* USER CODE END TIM11_MspInit 1 */ + /* USER CODE END TIM11_MspInit 1 */ } } @@ -378,11 +388,31 @@ void HAL_TIM_Base_MspInit(TIM_HandleTypeDef* htim_base) void HAL_TIM_MspPostInit(TIM_HandleTypeDef* htim) { GPIO_InitTypeDef GPIO_InitStruct = {0}; - if(htim->Instance==TIM11) + if(htim->Instance==TIM4) { - /* USER CODE BEGIN TIM11_MspPostInit 0 */ + /* USER CODE BEGIN TIM4_MspPostInit 0 */ - /* USER CODE END TIM11_MspPostInit 0 */ + /* USER CODE END TIM4_MspPostInit 0 */ + __HAL_RCC_GPIOB_CLK_ENABLE(); + /**TIM4 GPIO Configuration + PB8 ------> TIM4_CH3 + */ + GPIO_InitStruct.Pin = GPIO_PIN_8; + GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; + GPIO_InitStruct.Pull = GPIO_NOPULL; + GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW; + GPIO_InitStruct.Alternate = GPIO_AF2_TIM4; + HAL_GPIO_Init(GPIOB, &GPIO_InitStruct); + + /* USER CODE BEGIN TIM4_MspPostInit 1 */ + + /* USER CODE END TIM4_MspPostInit 1 */ + } + else if(htim->Instance==TIM11) + { + /* USER CODE BEGIN TIM11_MspPostInit 0 */ + + /* USER CODE END TIM11_MspPostInit 0 */ __HAL_RCC_GPIOB_CLK_ENABLE(); /**TIM11 GPIO Configuration @@ -395,77 +425,88 @@ void HAL_TIM_MspPostInit(TIM_HandleTypeDef* htim) GPIO_InitStruct.Alternate = GPIO_AF3_TIM11; HAL_GPIO_Init(GPIOB, &GPIO_InitStruct); - /* USER CODE BEGIN TIM11_MspPostInit 1 */ + /* USER CODE BEGIN TIM11_MspPostInit 1 */ - /* USER CODE END TIM11_MspPostInit 1 */ + /* USER CODE END TIM11_MspPostInit 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 -*/ + * @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==TIM8) + if(htim_base->Instance==TIM4) { - /* USER CODE BEGIN TIM8_MspDeInit 0 */ + /* USER CODE BEGIN TIM4_MspDeInit 0 */ - /* USER CODE END TIM8_MspDeInit 0 */ + /* USER CODE END TIM4_MspDeInit 0 */ + /* Peripheral clock disable */ + __HAL_RCC_TIM4_CLK_DISABLE(); + /* USER CODE BEGIN TIM4_MspDeInit 1 */ + + /* USER CODE END TIM4_MspDeInit 1 */ + } + else if(htim_base->Instance==TIM8) + { + /* USER CODE BEGIN TIM8_MspDeInit 0 */ + + /* USER CODE END TIM8_MspDeInit 0 */ /* Peripheral clock disable */ __HAL_RCC_TIM8_CLK_DISABLE(); /* TIM8 interrupt DeInit */ HAL_NVIC_DisableIRQ(TIM8_UP_TIM13_IRQn); - /* USER CODE BEGIN TIM8_MspDeInit 1 */ + /* USER CODE BEGIN TIM8_MspDeInit 1 */ - /* USER CODE END TIM8_MspDeInit 1 */ + /* USER CODE END TIM8_MspDeInit 1 */ } else if(htim_base->Instance==TIM10) { - /* USER CODE BEGIN TIM10_MspDeInit 0 */ + /* USER CODE BEGIN TIM10_MspDeInit 0 */ - /* USER CODE END TIM10_MspDeInit 0 */ + /* USER CODE END TIM10_MspDeInit 0 */ /* Peripheral clock disable */ __HAL_RCC_TIM10_CLK_DISABLE(); /* TIM10 interrupt DeInit */ HAL_NVIC_DisableIRQ(TIM1_UP_TIM10_IRQn); - /* USER CODE BEGIN TIM10_MspDeInit 1 */ + /* USER CODE BEGIN TIM10_MspDeInit 1 */ - /* USER CODE END TIM10_MspDeInit 1 */ + /* USER CODE END TIM10_MspDeInit 1 */ } else if(htim_base->Instance==TIM11) { - /* USER CODE BEGIN TIM11_MspDeInit 0 */ + /* USER CODE BEGIN TIM11_MspDeInit 0 */ - /* USER CODE END TIM11_MspDeInit 0 */ + /* USER CODE END TIM11_MspDeInit 0 */ /* Peripheral clock disable */ __HAL_RCC_TIM11_CLK_DISABLE(); - /* USER CODE BEGIN TIM11_MspDeInit 1 */ + /* USER CODE BEGIN TIM11_MspDeInit 1 */ - /* USER CODE END TIM11_MspDeInit 1 */ + /* USER CODE END TIM11_MspDeInit 1 */ } } /** -* @brief UART MSP Initialization -* This function configures the hardware resources used in this example -* @param huart: UART handle pointer -* @retval None -*/ + * @brief UART MSP Initialization + * This function configures the hardware resources used in this example + * @param huart: UART handle pointer + * @retval None + */ void HAL_UART_MspInit(UART_HandleTypeDef* huart) { GPIO_InitTypeDef GPIO_InitStruct = {0}; RCC_PeriphCLKInitTypeDef PeriphClkInitStruct = {0}; if(huart->Instance==UART8) { - /* USER CODE BEGIN UART8_MspInit 0 */ + /* USER CODE BEGIN UART8_MspInit 0 */ - /* USER CODE END UART8_MspInit 0 */ + /* USER CODE END UART8_MspInit 0 */ /** Initializes the peripherals clock */ @@ -491,27 +532,27 @@ void HAL_UART_MspInit(UART_HandleTypeDef* huart) GPIO_InitStruct.Alternate = GPIO_AF8_UART8; HAL_GPIO_Init(GPIOE, &GPIO_InitStruct); - /* USER CODE BEGIN UART8_MspInit 1 */ + /* USER CODE BEGIN UART8_MspInit 1 */ - /* USER CODE END UART8_MspInit 1 */ + /* USER CODE END UART8_MspInit 1 */ } } /** -* @brief UART MSP De-Initialization -* This function freeze the hardware resources used in this example -* @param huart: UART handle pointer -* @retval None -*/ + * @brief UART MSP De-Initialization + * This function freeze the hardware resources used in this example + * @param huart: UART handle pointer + * @retval None + */ void HAL_UART_MspDeInit(UART_HandleTypeDef* huart) { if(huart->Instance==UART8) { - /* USER CODE BEGIN UART8_MspDeInit 0 */ + /* USER CODE BEGIN UART8_MspDeInit 0 */ - /* USER CODE END UART8_MspDeInit 0 */ + /* USER CODE END UART8_MspDeInit 0 */ /* Peripheral clock disable */ __HAL_RCC_UART8_CLK_DISABLE(); @@ -521,9 +562,9 @@ void HAL_UART_MspDeInit(UART_HandleTypeDef* huart) */ HAL_GPIO_DeInit(GPIOE, GPIO_PIN_0|GPIO_PIN_1); - /* USER CODE BEGIN UART8_MspDeInit 1 */ + /* USER CODE BEGIN UART8_MspDeInit 1 */ - /* USER CODE END UART8_MspDeInit 1 */ + /* USER CODE END UART8_MspDeInit 1 */ } } diff --git a/Src/stm32f7xx_it.c b/Src/stm32f7xx_it.c index bbe0301..b4fcbe4 100644 --- a/Src/stm32f7xx_it.c +++ b/Src/stm32f7xx_it.c @@ -362,7 +362,6 @@ void TIM6_DAC_IRQHandler(void) /* USER CODE BEGIN TIM6_DAC_IRQn 0 */ /* USER CODE END TIM6_DAC_IRQn 0 */ - /* USER CODE BEGIN TIM6_DAC_IRQn 1 */ if(LL_TIM_IsActiveFlag_UPDATE(TIM6)) { @@ -410,7 +409,6 @@ void DMA2_Stream7_IRQHandler(void) LL_DMA_ClearFlag_TE7(DMA2); } /* USER CODE END DMA2_Stream7_IRQn 0 */ - /* USER CODE BEGIN DMA2_Stream7_IRQn 1 */ /* USER CODE END DMA2_Stream7_IRQn 1 */