初始代码
This commit is contained in:
@@ -0,0 +1,187 @@
|
||||
TEMPLATE = app
|
||||
CONFIG += console
|
||||
CONFIG -= app_bundle
|
||||
CONFIG -= qt
|
||||
|
||||
#Auto generated by mdk2qt tool V1.0
|
||||
#2023-09-15 16:24:20
|
||||
#mdk2qt tool author:@Go for it
|
||||
|
||||
DEFINES += \
|
||||
USE_HAL_DRIVER \
|
||||
STM32G030xx \
|
||||
|
||||
INCLUDEPATH += \
|
||||
../../Core/Inc \
|
||||
../../Drivers/STM32G0xx_HAL_Driver/Inc \
|
||||
../../Drivers/STM32G0xx_HAL_Driver/Inc/Legacy \
|
||||
../../Drivers/CMSIS/Device/ST/STM32G0xx/Include \
|
||||
../../Drivers/CMSIS/Include \
|
||||
../../Core/modbus/modebus_H \
|
||||
|
||||
SOURCES += \
|
||||
../startup_stm32g030xx.s \
|
||||
../../Core/Src/main.c \
|
||||
../../Core/Src/gpio.c \
|
||||
../../Core/Src/adc.c \
|
||||
../../Core/Src/dma.c \
|
||||
../../Core/Src/usart.c \
|
||||
../../Core/Src/stm32g0xx_it.c \
|
||||
../../Core/Src/stm32g0xx_hal_msp.c \
|
||||
../../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_adc.c \
|
||||
../../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_adc_ex.c \
|
||||
../../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_ll_adc.c \
|
||||
../../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_rcc.c \
|
||||
../../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_rcc_ex.c \
|
||||
../../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_ll_rcc.c \
|
||||
../../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_flash.c \
|
||||
../../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_flash_ex.c \
|
||||
../../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_gpio.c \
|
||||
../../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_dma.c \
|
||||
../../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_dma_ex.c \
|
||||
../../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_ll_dma.c \
|
||||
../../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_pwr.c \
|
||||
../../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_pwr_ex.c \
|
||||
../../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_cortex.c \
|
||||
../../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal.c \
|
||||
../../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_exti.c \
|
||||
../../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_tim.c \
|
||||
../../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_tim_ex.c \
|
||||
../../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_uart.c \
|
||||
../../Drivers/STM32G0xx_HAL_Driver/Src/stm32g0xx_hal_uart_ex.c \
|
||||
../../Core/Src/system_stm32g0xx.c \
|
||||
../../Core/modbus/modebus_C/modbus_core.c \
|
||||
../../Core/modbus/modebus_C/modbus_core_crc.c \
|
||||
../../Core/modbus/modebus_C/slave_rtu.c \
|
||||
|
||||
HEADERS += \
|
||||
../../Core/Inc/adc.h \
|
||||
../../Core/Inc/dma.h \
|
||||
../../Core/Inc/gpio.h \
|
||||
../../Core/Inc/main.h \
|
||||
../../Core/Inc/stm32g0xx_hal_conf.h \
|
||||
../../Core/Inc/stm32g0xx_it.h \
|
||||
../../Core/Inc/usart.h \
|
||||
../../Drivers/STM32G0xx_HAL_Driver/Inc/stm32_assert_template.h \
|
||||
../../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal.h \
|
||||
../../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_adc.h \
|
||||
../../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_adc_ex.h \
|
||||
../../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_cec.h \
|
||||
../../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_comp.h \
|
||||
../../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_conf_template.h \
|
||||
../../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_cortex.h \
|
||||
../../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_crc.h \
|
||||
../../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_crc_ex.h \
|
||||
../../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_cryp.h \
|
||||
../../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_cryp_ex.h \
|
||||
../../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_dac.h \
|
||||
../../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_dac_ex.h \
|
||||
../../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_def.h \
|
||||
../../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_dma.h \
|
||||
../../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_dma_ex.h \
|
||||
../../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_exti.h \
|
||||
../../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_fdcan.h \
|
||||
../../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_flash.h \
|
||||
../../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_flash_ex.h \
|
||||
../../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_gpio.h \
|
||||
../../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_gpio_ex.h \
|
||||
../../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_hcd.h \
|
||||
../../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_i2c.h \
|
||||
../../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_i2c_ex.h \
|
||||
../../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_i2s.h \
|
||||
../../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_irda.h \
|
||||
../../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_irda_ex.h \
|
||||
../../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_iwdg.h \
|
||||
../../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_lptim.h \
|
||||
../../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_pcd.h \
|
||||
../../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_pcd_ex.h \
|
||||
../../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_pwr.h \
|
||||
../../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_pwr_ex.h \
|
||||
../../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_rcc.h \
|
||||
../../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_rcc_ex.h \
|
||||
../../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_rng.h \
|
||||
../../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_rtc.h \
|
||||
../../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_rtc_ex.h \
|
||||
../../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_smartcard.h \
|
||||
../../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_smartcard_ex.h \
|
||||
../../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_smbus.h \
|
||||
../../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_smbus_ex.h \
|
||||
../../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_spi.h \
|
||||
../../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_spi_ex.h \
|
||||
../../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_tim.h \
|
||||
../../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_tim_ex.h \
|
||||
../../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_uart.h \
|
||||
../../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_uart_ex.h \
|
||||
../../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_usart.h \
|
||||
../../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_usart_ex.h \
|
||||
../../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_hal_wwdg.h \
|
||||
../../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_adc.h \
|
||||
../../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_bus.h \
|
||||
../../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_comp.h \
|
||||
../../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_cortex.h \
|
||||
../../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_crc.h \
|
||||
../../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_crs.h \
|
||||
../../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_dac.h \
|
||||
../../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_dma.h \
|
||||
../../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_dmamux.h \
|
||||
../../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_exti.h \
|
||||
../../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_gpio.h \
|
||||
../../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_i2c.h \
|
||||
../../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_iwdg.h \
|
||||
../../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_lptim.h \
|
||||
../../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_lpuart.h \
|
||||
../../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_pwr.h \
|
||||
../../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_rcc.h \
|
||||
../../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_rng.h \
|
||||
../../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_rtc.h \
|
||||
../../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_spi.h \
|
||||
../../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_system.h \
|
||||
../../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_tim.h \
|
||||
../../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_ucpd.h \
|
||||
../../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_usart.h \
|
||||
../../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_usb.h \
|
||||
../../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_utils.h \
|
||||
../../Drivers/STM32G0xx_HAL_Driver/Inc/stm32g0xx_ll_wwdg.h \
|
||||
../../Drivers/STM32G0xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h \
|
||||
../../Drivers/CMSIS/Device/ST/STM32G0xx/Include/stm32g030xx.h \
|
||||
../../Drivers/CMSIS/Device/ST/STM32G0xx/Include/stm32g031xx.h \
|
||||
../../Drivers/CMSIS/Device/ST/STM32G0xx/Include/stm32g041xx.h \
|
||||
../../Drivers/CMSIS/Device/ST/STM32G0xx/Include/stm32g050xx.h \
|
||||
../../Drivers/CMSIS/Device/ST/STM32G0xx/Include/stm32g051xx.h \
|
||||
../../Drivers/CMSIS/Device/ST/STM32G0xx/Include/stm32g061xx.h \
|
||||
../../Drivers/CMSIS/Device/ST/STM32G0xx/Include/stm32g070xx.h \
|
||||
../../Drivers/CMSIS/Device/ST/STM32G0xx/Include/stm32g071xx.h \
|
||||
../../Drivers/CMSIS/Device/ST/STM32G0xx/Include/stm32g081xx.h \
|
||||
../../Drivers/CMSIS/Device/ST/STM32G0xx/Include/stm32g0b0xx.h \
|
||||
../../Drivers/CMSIS/Device/ST/STM32G0xx/Include/stm32g0b1xx.h \
|
||||
../../Drivers/CMSIS/Device/ST/STM32G0xx/Include/stm32g0c1xx.h \
|
||||
../../Drivers/CMSIS/Device/ST/STM32G0xx/Include/stm32g0xx.h \
|
||||
../../Drivers/CMSIS/Device/ST/STM32G0xx/Include/system_stm32g0xx.h \
|
||||
../../Drivers/CMSIS/Include/cmsis_armcc.h \
|
||||
../../Drivers/CMSIS/Include/cmsis_armclang.h \
|
||||
../../Drivers/CMSIS/Include/cmsis_armclang_ltm.h \
|
||||
../../Drivers/CMSIS/Include/cmsis_compiler.h \
|
||||
../../Drivers/CMSIS/Include/cmsis_gcc.h \
|
||||
../../Drivers/CMSIS/Include/cmsis_iccarm.h \
|
||||
../../Drivers/CMSIS/Include/cmsis_version.h \
|
||||
../../Drivers/CMSIS/Include/core_armv81mml.h \
|
||||
../../Drivers/CMSIS/Include/core_armv8mbl.h \
|
||||
../../Drivers/CMSIS/Include/core_armv8mml.h \
|
||||
../../Drivers/CMSIS/Include/core_cm0.h \
|
||||
../../Drivers/CMSIS/Include/core_cm0plus.h \
|
||||
../../Drivers/CMSIS/Include/core_cm1.h \
|
||||
../../Drivers/CMSIS/Include/core_cm23.h \
|
||||
../../Drivers/CMSIS/Include/core_cm3.h \
|
||||
../../Drivers/CMSIS/Include/core_cm33.h \
|
||||
../../Drivers/CMSIS/Include/core_cm35p.h \
|
||||
../../Drivers/CMSIS/Include/core_cm4.h \
|
||||
../../Drivers/CMSIS/Include/core_cm7.h \
|
||||
../../Drivers/CMSIS/Include/core_sc000.h \
|
||||
../../Drivers/CMSIS/Include/core_sc300.h \
|
||||
../../Drivers/CMSIS/Include/mpu_armv7.h \
|
||||
../../Drivers/CMSIS/Include/mpu_armv8.h \
|
||||
../../Drivers/CMSIS/Include/tz_context.h \
|
||||
../../Core/modbus/modebus_H/modbus_core.h \
|
||||
../../Core/modbus/modebus_H/modbus_core_crc.h \
|
||||
../../Core/modbus/modebus_H/modbus_core_define.h \
|
||||
../../Core/modbus/modebus_H/slave_rtu.h \
|
||||
Reference in New Issue
Block a user