@@ -6,7 +6,7 @@
|
|||||||
<provider-reference id="org.eclipse.cdt.core.ReferencedProjectsLanguageSettingsProvider" ref="shared-provider"/>
|
<provider-reference id="org.eclipse.cdt.core.ReferencedProjectsLanguageSettingsProvider" ref="shared-provider"/>
|
||||||
<provider-reference id="org.eclipse.cdt.managedbuilder.core.MBSLanguageSettingsProvider" ref="shared-provider"/>
|
<provider-reference id="org.eclipse.cdt.managedbuilder.core.MBSLanguageSettingsProvider" ref="shared-provider"/>
|
||||||
<provider copy-of="extension" id="org.eclipse.cdt.managedbuilder.core.GCCBuildCommandParser"/>
|
<provider copy-of="extension" id="org.eclipse.cdt.managedbuilder.core.GCCBuildCommandParser"/>
|
||||||
<provider class="com.st.stm32cube.ide.mcu.toolchain.armnone.setup.CrossBuiltinSpecsDetector" console="false" env-hash="-163613034853778878" id="com.st.stm32cube.ide.mcu.toolchain.armnone.setup.CrossBuiltinSpecsDetector" keep-relative-paths="false" name="MCU ARM GCC Built-in Compiler Settings" parameter="${COMMAND} ${FLAGS} -E -P -v -dD "${INPUTS}"" prefer-non-shared="true">
|
<provider class="com.st.stm32cube.ide.mcu.toolchain.armnone.setup.CrossBuiltinSpecsDetector" console="false" env-hash="1463492114488212853" id="com.st.stm32cube.ide.mcu.toolchain.armnone.setup.CrossBuiltinSpecsDetector" keep-relative-paths="false" name="MCU ARM GCC Built-in Compiler Settings" parameter="${COMMAND} ${FLAGS} -E -P -v -dD "${INPUTS}"" prefer-non-shared="true">
|
||||||
<language-scope id="org.eclipse.cdt.core.gcc"/>
|
<language-scope id="org.eclipse.cdt.core.gcc"/>
|
||||||
<language-scope id="org.eclipse.cdt.core.g++"/>
|
<language-scope id="org.eclipse.cdt.core.g++"/>
|
||||||
</provider>
|
</provider>
|
||||||
@@ -18,7 +18,7 @@
|
|||||||
<provider-reference id="org.eclipse.cdt.core.ReferencedProjectsLanguageSettingsProvider" ref="shared-provider"/>
|
<provider-reference id="org.eclipse.cdt.core.ReferencedProjectsLanguageSettingsProvider" ref="shared-provider"/>
|
||||||
<provider-reference id="org.eclipse.cdt.managedbuilder.core.MBSLanguageSettingsProvider" ref="shared-provider"/>
|
<provider-reference id="org.eclipse.cdt.managedbuilder.core.MBSLanguageSettingsProvider" ref="shared-provider"/>
|
||||||
<provider copy-of="extension" id="org.eclipse.cdt.managedbuilder.core.GCCBuildCommandParser"/>
|
<provider copy-of="extension" id="org.eclipse.cdt.managedbuilder.core.GCCBuildCommandParser"/>
|
||||||
<provider class="com.st.stm32cube.ide.mcu.toolchain.armnone.setup.CrossBuiltinSpecsDetector" console="false" env-hash="-163613034853778878" id="com.st.stm32cube.ide.mcu.toolchain.armnone.setup.CrossBuiltinSpecsDetector" keep-relative-paths="false" name="MCU ARM GCC Built-in Compiler Settings" parameter="${COMMAND} ${FLAGS} -E -P -v -dD "${INPUTS}"" prefer-non-shared="true">
|
<provider class="com.st.stm32cube.ide.mcu.toolchain.armnone.setup.CrossBuiltinSpecsDetector" console="false" env-hash="1463492114488212853" id="com.st.stm32cube.ide.mcu.toolchain.armnone.setup.CrossBuiltinSpecsDetector" keep-relative-paths="false" name="MCU ARM GCC Built-in Compiler Settings" parameter="${COMMAND} ${FLAGS} -E -P -v -dD "${INPUTS}"" prefer-non-shared="true">
|
||||||
<language-scope id="org.eclipse.cdt.core.gcc"/>
|
<language-scope id="org.eclipse.cdt.core.gcc"/>
|
||||||
<language-scope id="org.eclipse.cdt.core.g++"/>
|
<language-scope id="org.eclipse.cdt.core.g++"/>
|
||||||
</provider>
|
</provider>
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
66BE74F758C12D739921AEA421D593D3=3
|
66BE74F758C12D739921AEA421D593D3=3
|
||||||
8DF89ED150041C4CBC7CB9A9CAA90856=49D03C461CB58C358FC38377BBF9225B
|
8DF89ED150041C4CBC7CB9A9CAA90856=F46B32B5BAB702A632C55EDACF07DC3A
|
||||||
DC22A860405A8BF2F2C095E5B6529F12=49D03C461CB58C358FC38377BBF9225B
|
DC22A860405A8BF2F2C095E5B6529F12=F10B3BB9AE74C7F02862DDE67690A377
|
||||||
eclipse.preferences.version=1
|
eclipse.preferences.version=1
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ Core/Src/main.o: ../Core/Src/main.c ../Core/Inc/main.h \
|
|||||||
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_spi.h \
|
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_spi.h \
|
||||||
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.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_tim_ex.h \
|
||||||
/Users/wuwenfeng/STM32CubeIDE/workspace_1.7.0/m3s/SW_APPs/Main_APP.h
|
C:/Users/wuwen/Desktop/M3s_stm32/SW_APPs/Main_APP.h
|
||||||
|
|
||||||
../Core/Inc/main.h:
|
../Core/Inc/main.h:
|
||||||
|
|
||||||
@@ -87,4 +87,4 @@ Core/Src/main.o: ../Core/Src/main.c ../Core/Inc/main.h \
|
|||||||
|
|
||||||
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h:
|
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h:
|
||||||
|
|
||||||
/Users/wuwenfeng/STM32CubeIDE/workspace_1.7.0/m3s/SW_APPs/Main_APP.h:
|
C:/Users/wuwen/Desktop/M3s_stm32/SW_APPs/Main_APP.h:
|
||||||
|
|||||||
@@ -31,5 +31,12 @@ C_DEPS += \
|
|||||||
|
|
||||||
# Each subdirectory must supply rules for building sources it contributes
|
# Each subdirectory must supply rules for building sources it contributes
|
||||||
Core/Src/%.o: ../Core/Src/%.c Core/Src/subdir.mk
|
Core/Src/%.o: ../Core/Src/%.c Core/Src/subdir.mk
|
||||||
arm-none-eabi-gcc "$<" -mcpu=cortex-m3 -std=gnu11 -g3 -DDEBUG -DUSE_HAL_DRIVER -DSTM32F103xE -c -I../Core/Inc -I"/Users/wuwenfeng/STM32CubeIDE/workspace_1.7.0/m3s/SW_APPs" -I"/Users/wuwenfeng/STM32CubeIDE/workspace_1.7.0/m3s/HW_Devices" -I../Drivers/STM32F1xx_HAL_Driver/Inc -I../Drivers/STM32F1xx_HAL_Driver/Inc/Legacy -I../Drivers/CMSIS/Device/ST/STM32F1xx/Include -I../Drivers/CMSIS/Include -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -MMD -MP -MF"$(@:%.o=%.d)" -MT"$@" --specs=nano.specs -mfloat-abi=soft -mthumb -o "$@"
|
arm-none-eabi-gcc "$<" -mcpu=cortex-m3 -std=gnu11 -g3 -DDEBUG -DUSE_HAL_DRIVER -DSTM32F103xE -c -I../Core/Inc -I"C:/Users/wuwen/Desktop/M3s_stm32/SW_APPs" -I"C:/Users/wuwen/Desktop/M3s_stm32/HW_Devices" -I../Drivers/STM32F1xx_HAL_Driver/Inc -I../Drivers/STM32F1xx_HAL_Driver/Inc/Legacy -I../Drivers/CMSIS/Device/ST/STM32F1xx/Include -I../Drivers/CMSIS/Include -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -MMD -MP -MF"$(@:%.o=%.d)" -MT"$@" --specs=nano.specs -mfloat-abi=soft -mthumb -o "$@"
|
||||||
|
|
||||||
|
clean: clean-Core-2f-Src
|
||||||
|
|
||||||
|
clean-Core-2f-Src:
|
||||||
|
-$(RM) ./Core/Src/main.d ./Core/Src/main.o ./Core/Src/stm32f1xx_hal_msp.d ./Core/Src/stm32f1xx_hal_msp.o ./Core/Src/stm32f1xx_it.d ./Core/Src/stm32f1xx_it.o ./Core/Src/syscalls.d ./Core/Src/syscalls.o ./Core/Src/sysmem.d ./Core/Src/sysmem.o ./Core/Src/system_stm32f1xx.d ./Core/Src/system_stm32f1xx.o
|
||||||
|
|
||||||
|
.PHONY: clean-Core-2f-Src
|
||||||
|
|
||||||
|
|||||||
@@ -18,3 +18,10 @@ S_DEPS += \
|
|||||||
Core/Startup/%.o: ../Core/Startup/%.s Core/Startup/subdir.mk
|
Core/Startup/%.o: ../Core/Startup/%.s Core/Startup/subdir.mk
|
||||||
arm-none-eabi-gcc -mcpu=cortex-m3 -g3 -DDEBUG -c -x assembler-with-cpp -MMD -MP -MF"$(@:%.o=%.d)" -MT"$@" --specs=nano.specs -mfloat-abi=soft -mthumb -o "$@" "$<"
|
arm-none-eabi-gcc -mcpu=cortex-m3 -g3 -DDEBUG -c -x assembler-with-cpp -MMD -MP -MF"$(@:%.o=%.d)" -MT"$@" --specs=nano.specs -mfloat-abi=soft -mthumb -o "$@" "$<"
|
||||||
|
|
||||||
|
clean: clean-Core-2f-Startup
|
||||||
|
|
||||||
|
clean-Core-2f-Startup:
|
||||||
|
-$(RM) ./Core/Startup/startup_stm32f103zetx.d ./Core/Startup/startup_stm32f103zetx.o
|
||||||
|
|
||||||
|
.PHONY: clean-Core-2f-Startup
|
||||||
|
|
||||||
|
|||||||
@@ -64,5 +64,12 @@ C_DEPS += \
|
|||||||
|
|
||||||
# Each subdirectory must supply rules for building sources it contributes
|
# Each subdirectory must supply rules for building sources it contributes
|
||||||
Drivers/STM32F1xx_HAL_Driver/Src/%.o: ../Drivers/STM32F1xx_HAL_Driver/Src/%.c Drivers/STM32F1xx_HAL_Driver/Src/subdir.mk
|
Drivers/STM32F1xx_HAL_Driver/Src/%.o: ../Drivers/STM32F1xx_HAL_Driver/Src/%.c Drivers/STM32F1xx_HAL_Driver/Src/subdir.mk
|
||||||
arm-none-eabi-gcc "$<" -mcpu=cortex-m3 -std=gnu11 -g3 -DDEBUG -DUSE_HAL_DRIVER -DSTM32F103xE -c -I../Core/Inc -I"/Users/wuwenfeng/STM32CubeIDE/workspace_1.7.0/m3s/SW_APPs" -I"/Users/wuwenfeng/STM32CubeIDE/workspace_1.7.0/m3s/HW_Devices" -I../Drivers/STM32F1xx_HAL_Driver/Inc -I../Drivers/STM32F1xx_HAL_Driver/Inc/Legacy -I../Drivers/CMSIS/Device/ST/STM32F1xx/Include -I../Drivers/CMSIS/Include -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -MMD -MP -MF"$(@:%.o=%.d)" -MT"$@" --specs=nano.specs -mfloat-abi=soft -mthumb -o "$@"
|
arm-none-eabi-gcc "$<" -mcpu=cortex-m3 -std=gnu11 -g3 -DDEBUG -DUSE_HAL_DRIVER -DSTM32F103xE -c -I../Core/Inc -I"C:/Users/wuwen/Desktop/M3s_stm32/SW_APPs" -I"C:/Users/wuwen/Desktop/M3s_stm32/HW_Devices" -I../Drivers/STM32F1xx_HAL_Driver/Inc -I../Drivers/STM32F1xx_HAL_Driver/Inc/Legacy -I../Drivers/CMSIS/Device/ST/STM32F1xx/Include -I../Drivers/CMSIS/Include -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -MMD -MP -MF"$(@:%.o=%.d)" -MT"$@" --specs=nano.specs -mfloat-abi=soft -mthumb -o "$@"
|
||||||
|
|
||||||
|
clean: clean-Drivers-2f-STM32F1xx_HAL_Driver-2f-Src
|
||||||
|
|
||||||
|
clean-Drivers-2f-STM32F1xx_HAL_Driver-2f-Src:
|
||||||
|
-$(RM) ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.d ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.o ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.d ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.o ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_dma.d ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_dma.o ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.d ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.o ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.d ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.o ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash_ex.d ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash_ex.o ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio.d ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio.o ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio_ex.d ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio_ex.o ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.d ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_pwr.d ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_pwr.o ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.d ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.o ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc_ex.d ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc_ex.o ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.d ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_sram.d ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_sram.o ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim.d ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim.o ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim_ex.d ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim_ex.o ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_fsmc.d ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_fsmc.o
|
||||||
|
|
||||||
|
.PHONY: clean-Drivers-2f-STM32F1xx_HAL_Driver-2f-Src
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,89 @@
|
|||||||
|
HW_Devices/key.o: ../HW_Devices/key.c ../HW_Devices/key.h \
|
||||||
|
../Core/Inc/main.h ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal.h \
|
||||||
|
../Core/Inc/stm32f1xx_hal_conf.h \
|
||||||
|
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_rcc.h \
|
||||||
|
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_def.h \
|
||||||
|
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f1xx.h \
|
||||||
|
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xe.h \
|
||||||
|
../Drivers/CMSIS/Include/core_cm3.h \
|
||||||
|
../Drivers/CMSIS/Include/cmsis_version.h \
|
||||||
|
../Drivers/CMSIS/Include/cmsis_compiler.h \
|
||||||
|
../Drivers/CMSIS/Include/cmsis_gcc.h \
|
||||||
|
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/system_stm32f1xx.h \
|
||||||
|
../Drivers/STM32F1xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h \
|
||||||
|
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_rcc_ex.h \
|
||||||
|
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_gpio.h \
|
||||||
|
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_gpio_ex.h \
|
||||||
|
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_exti.h \
|
||||||
|
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_dma.h \
|
||||||
|
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_dma_ex.h \
|
||||||
|
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_cortex.h \
|
||||||
|
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_flash.h \
|
||||||
|
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_flash_ex.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_spi.h \
|
||||||
|
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h \
|
||||||
|
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h
|
||||||
|
|
||||||
|
../HW_Devices/key.h:
|
||||||
|
|
||||||
|
../Core/Inc/main.h:
|
||||||
|
|
||||||
|
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal.h:
|
||||||
|
|
||||||
|
../Core/Inc/stm32f1xx_hal_conf.h:
|
||||||
|
|
||||||
|
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_rcc.h:
|
||||||
|
|
||||||
|
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_def.h:
|
||||||
|
|
||||||
|
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f1xx.h:
|
||||||
|
|
||||||
|
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xe.h:
|
||||||
|
|
||||||
|
../Drivers/CMSIS/Include/core_cm3.h:
|
||||||
|
|
||||||
|
../Drivers/CMSIS/Include/cmsis_version.h:
|
||||||
|
|
||||||
|
../Drivers/CMSIS/Include/cmsis_compiler.h:
|
||||||
|
|
||||||
|
../Drivers/CMSIS/Include/cmsis_gcc.h:
|
||||||
|
|
||||||
|
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/system_stm32f1xx.h:
|
||||||
|
|
||||||
|
../Drivers/STM32F1xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h:
|
||||||
|
|
||||||
|
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_rcc_ex.h:
|
||||||
|
|
||||||
|
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_gpio.h:
|
||||||
|
|
||||||
|
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_gpio_ex.h:
|
||||||
|
|
||||||
|
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_exti.h:
|
||||||
|
|
||||||
|
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_dma.h:
|
||||||
|
|
||||||
|
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_dma_ex.h:
|
||||||
|
|
||||||
|
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_cortex.h:
|
||||||
|
|
||||||
|
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_flash.h:
|
||||||
|
|
||||||
|
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_flash_ex.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_spi.h:
|
||||||
|
|
||||||
|
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h:
|
||||||
|
|
||||||
|
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h:
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
key.c:13:6:GEI_BUTTON_CODE 16 static
|
||||||
@@ -8,6 +8,7 @@ C_SRCS += \
|
|||||||
../HW_Devices/LCD.c \
|
../HW_Devices/LCD.c \
|
||||||
../HW_Devices/eeprom.c \
|
../HW_Devices/eeprom.c \
|
||||||
../HW_Devices/iic.c \
|
../HW_Devices/iic.c \
|
||||||
|
../HW_Devices/key.c \
|
||||||
../HW_Devices/rs522.c \
|
../HW_Devices/rs522.c \
|
||||||
../HW_Devices/touch.c
|
../HW_Devices/touch.c
|
||||||
|
|
||||||
@@ -15,6 +16,7 @@ OBJS += \
|
|||||||
./HW_Devices/LCD.o \
|
./HW_Devices/LCD.o \
|
||||||
./HW_Devices/eeprom.o \
|
./HW_Devices/eeprom.o \
|
||||||
./HW_Devices/iic.o \
|
./HW_Devices/iic.o \
|
||||||
|
./HW_Devices/key.o \
|
||||||
./HW_Devices/rs522.o \
|
./HW_Devices/rs522.o \
|
||||||
./HW_Devices/touch.o
|
./HW_Devices/touch.o
|
||||||
|
|
||||||
@@ -22,11 +24,19 @@ C_DEPS += \
|
|||||||
./HW_Devices/LCD.d \
|
./HW_Devices/LCD.d \
|
||||||
./HW_Devices/eeprom.d \
|
./HW_Devices/eeprom.d \
|
||||||
./HW_Devices/iic.d \
|
./HW_Devices/iic.d \
|
||||||
|
./HW_Devices/key.d \
|
||||||
./HW_Devices/rs522.d \
|
./HW_Devices/rs522.d \
|
||||||
./HW_Devices/touch.d
|
./HW_Devices/touch.d
|
||||||
|
|
||||||
|
|
||||||
# Each subdirectory must supply rules for building sources it contributes
|
# Each subdirectory must supply rules for building sources it contributes
|
||||||
HW_Devices/%.o: ../HW_Devices/%.c HW_Devices/subdir.mk
|
HW_Devices/%.o: ../HW_Devices/%.c HW_Devices/subdir.mk
|
||||||
arm-none-eabi-gcc "$<" -mcpu=cortex-m3 -std=gnu11 -g3 -DDEBUG -DUSE_HAL_DRIVER -DSTM32F103xE -c -I../Core/Inc -I"/Users/wuwenfeng/STM32CubeIDE/workspace_1.7.0/m3s/SW_APPs" -I"/Users/wuwenfeng/STM32CubeIDE/workspace_1.7.0/m3s/HW_Devices" -I../Drivers/STM32F1xx_HAL_Driver/Inc -I../Drivers/STM32F1xx_HAL_Driver/Inc/Legacy -I../Drivers/CMSIS/Device/ST/STM32F1xx/Include -I../Drivers/CMSIS/Include -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -MMD -MP -MF"$(@:%.o=%.d)" -MT"$@" --specs=nano.specs -mfloat-abi=soft -mthumb -o "$@"
|
arm-none-eabi-gcc "$<" -mcpu=cortex-m3 -std=gnu11 -g3 -DDEBUG -DUSE_HAL_DRIVER -DSTM32F103xE -c -I../Core/Inc -I"C:/Users/wuwen/Desktop/M3s_stm32/SW_APPs" -I"C:/Users/wuwen/Desktop/M3s_stm32/HW_Devices" -I../Drivers/STM32F1xx_HAL_Driver/Inc -I../Drivers/STM32F1xx_HAL_Driver/Inc/Legacy -I../Drivers/CMSIS/Device/ST/STM32F1xx/Include -I../Drivers/CMSIS/Include -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -MMD -MP -MF"$(@:%.o=%.d)" -MT"$@" --specs=nano.specs -mfloat-abi=soft -mthumb -o "$@"
|
||||||
|
|
||||||
|
clean: clean-HW_Devices
|
||||||
|
|
||||||
|
clean-HW_Devices:
|
||||||
|
-$(RM) ./HW_Devices/LCD.d ./HW_Devices/LCD.o ./HW_Devices/eeprom.d ./HW_Devices/eeprom.o ./HW_Devices/iic.d ./HW_Devices/iic.o ./HW_Devices/key.d ./HW_Devices/key.o ./HW_Devices/rs522.d ./HW_Devices/rs522.o ./HW_Devices/touch.d ./HW_Devices/touch.o
|
||||||
|
|
||||||
|
.PHONY: clean-HW_Devices
|
||||||
|
|
||||||
|
|||||||
@@ -27,9 +27,8 @@ SW_APPs/APP_IDcard.o: ../SW_APPs/APP_IDcard.c ../SW_APPs/APP_IDcard.h \
|
|||||||
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_spi.h \
|
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_spi.h \
|
||||||
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.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_tim_ex.h \
|
||||||
../SW_APPs/windows.h \
|
../SW_APPs/windows.h C:/Users/wuwen/Desktop/M3s_stm32/HW_Devices/lcd.h \
|
||||||
/Users/wuwenfeng/STM32CubeIDE/workspace_1.7.0/m3s/HW_Devices/lcd.h \
|
C:/Users/wuwen/Desktop/M3s_stm32/HW_Devices/rs522.h
|
||||||
/Users/wuwenfeng/STM32CubeIDE/workspace_1.7.0/m3s/HW_Devices/rs522.h
|
|
||||||
|
|
||||||
../SW_APPs/APP_IDcard.h:
|
../SW_APPs/APP_IDcard.h:
|
||||||
|
|
||||||
@@ -93,6 +92,6 @@ SW_APPs/APP_IDcard.o: ../SW_APPs/APP_IDcard.c ../SW_APPs/APP_IDcard.h \
|
|||||||
|
|
||||||
../SW_APPs/windows.h:
|
../SW_APPs/windows.h:
|
||||||
|
|
||||||
/Users/wuwenfeng/STM32CubeIDE/workspace_1.7.0/m3s/HW_Devices/lcd.h:
|
C:/Users/wuwen/Desktop/M3s_stm32/HW_Devices/lcd.h:
|
||||||
|
|
||||||
/Users/wuwenfeng/STM32CubeIDE/workspace_1.7.0/m3s/HW_Devices/rs522.h:
|
C:/Users/wuwen/Desktop/M3s_stm32/HW_Devices/rs522.h:
|
||||||
|
|||||||
@@ -27,11 +27,9 @@ SW_APPs/APP_blood.o: ../SW_APPs/APP_blood.c ../SW_APPs/APP_blood.h \
|
|||||||
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_spi.h \
|
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_spi.h \
|
||||||
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.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_tim_ex.h \
|
||||||
../SW_APPs/windows.h \
|
../SW_APPs/windows.h C:/Users/wuwen/Desktop/M3s_stm32/HW_Devices/lcd.h \
|
||||||
/Users/wuwenfeng/STM32CubeIDE/workspace_1.7.0/m3s/HW_Devices/lcd.h \
|
C:/Users/wuwen/Desktop/M3s_stm32/HW_Devices/LCD.h \
|
||||||
/Users/wuwenfeng/STM32CubeIDE/workspace_1.7.0/m3s/HW_Devices/LCD.h \
|
C:/Users/wuwen/Desktop/M3s_stm32/HW_Devices/iic.h ../SW_APPs/FFT.h
|
||||||
/Users/wuwenfeng/STM32CubeIDE/workspace_1.7.0/m3s/HW_Devices/iic.h \
|
|
||||||
../SW_APPs/FFT.h
|
|
||||||
|
|
||||||
../SW_APPs/APP_blood.h:
|
../SW_APPs/APP_blood.h:
|
||||||
|
|
||||||
@@ -95,10 +93,10 @@ SW_APPs/APP_blood.o: ../SW_APPs/APP_blood.c ../SW_APPs/APP_blood.h \
|
|||||||
|
|
||||||
../SW_APPs/windows.h:
|
../SW_APPs/windows.h:
|
||||||
|
|
||||||
/Users/wuwenfeng/STM32CubeIDE/workspace_1.7.0/m3s/HW_Devices/lcd.h:
|
C:/Users/wuwen/Desktop/M3s_stm32/HW_Devices/lcd.h:
|
||||||
|
|
||||||
/Users/wuwenfeng/STM32CubeIDE/workspace_1.7.0/m3s/HW_Devices/LCD.h:
|
C:/Users/wuwen/Desktop/M3s_stm32/HW_Devices/LCD.h:
|
||||||
|
|
||||||
/Users/wuwenfeng/STM32CubeIDE/workspace_1.7.0/m3s/HW_Devices/iic.h:
|
C:/Users/wuwen/Desktop/M3s_stm32/HW_Devices/iic.h:
|
||||||
|
|
||||||
../SW_APPs/FFT.h:
|
../SW_APPs/FFT.h:
|
||||||
|
|||||||
@@ -0,0 +1,98 @@
|
|||||||
|
SW_APPs/APP_morsecode.o: ../SW_APPs/APP_morsecode.c \
|
||||||
|
../SW_APPs/APP_morsecode.h ../Core/Inc/main.h \
|
||||||
|
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal.h \
|
||||||
|
../Core/Inc/stm32f1xx_hal_conf.h \
|
||||||
|
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_rcc.h \
|
||||||
|
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_def.h \
|
||||||
|
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f1xx.h \
|
||||||
|
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xe.h \
|
||||||
|
../Drivers/CMSIS/Include/core_cm3.h \
|
||||||
|
../Drivers/CMSIS/Include/cmsis_version.h \
|
||||||
|
../Drivers/CMSIS/Include/cmsis_compiler.h \
|
||||||
|
../Drivers/CMSIS/Include/cmsis_gcc.h \
|
||||||
|
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/system_stm32f1xx.h \
|
||||||
|
../Drivers/STM32F1xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h \
|
||||||
|
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_rcc_ex.h \
|
||||||
|
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_gpio.h \
|
||||||
|
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_gpio_ex.h \
|
||||||
|
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_exti.h \
|
||||||
|
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_dma.h \
|
||||||
|
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_dma_ex.h \
|
||||||
|
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_cortex.h \
|
||||||
|
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_flash.h \
|
||||||
|
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_flash_ex.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_spi.h \
|
||||||
|
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h \
|
||||||
|
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h \
|
||||||
|
../SW_APPs/windows.h C:/Users/wuwen/Desktop/M3s_stm32/HW_Devices/lcd.h \
|
||||||
|
C:/Users/wuwen/Desktop/M3s_stm32/HW_Devices/key.h
|
||||||
|
|
||||||
|
../SW_APPs/APP_morsecode.h:
|
||||||
|
|
||||||
|
../Core/Inc/main.h:
|
||||||
|
|
||||||
|
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal.h:
|
||||||
|
|
||||||
|
../Core/Inc/stm32f1xx_hal_conf.h:
|
||||||
|
|
||||||
|
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_rcc.h:
|
||||||
|
|
||||||
|
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_def.h:
|
||||||
|
|
||||||
|
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f1xx.h:
|
||||||
|
|
||||||
|
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xe.h:
|
||||||
|
|
||||||
|
../Drivers/CMSIS/Include/core_cm3.h:
|
||||||
|
|
||||||
|
../Drivers/CMSIS/Include/cmsis_version.h:
|
||||||
|
|
||||||
|
../Drivers/CMSIS/Include/cmsis_compiler.h:
|
||||||
|
|
||||||
|
../Drivers/CMSIS/Include/cmsis_gcc.h:
|
||||||
|
|
||||||
|
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/system_stm32f1xx.h:
|
||||||
|
|
||||||
|
../Drivers/STM32F1xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h:
|
||||||
|
|
||||||
|
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_rcc_ex.h:
|
||||||
|
|
||||||
|
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_gpio.h:
|
||||||
|
|
||||||
|
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_gpio_ex.h:
|
||||||
|
|
||||||
|
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_exti.h:
|
||||||
|
|
||||||
|
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_dma.h:
|
||||||
|
|
||||||
|
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_dma_ex.h:
|
||||||
|
|
||||||
|
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_cortex.h:
|
||||||
|
|
||||||
|
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_flash.h:
|
||||||
|
|
||||||
|
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_flash_ex.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_spi.h:
|
||||||
|
|
||||||
|
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h:
|
||||||
|
|
||||||
|
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h:
|
||||||
|
|
||||||
|
../SW_APPs/windows.h:
|
||||||
|
|
||||||
|
C:/Users/wuwen/Desktop/M3s_stm32/HW_Devices/lcd.h:
|
||||||
|
|
||||||
|
C:/Users/wuwen/Desktop/M3s_stm32/HW_Devices/key.h:
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
APP_morsecode.c:140:6:APP_morsecode_init 24 static
|
||||||
|
APP_morsecode.c:151:6:getmorsecode 24 static
|
||||||
|
APP_morsecode.c:164:6:APP_morsecode_loop 40 static
|
||||||
+11
-17
@@ -1,6 +1,6 @@
|
|||||||
SW_APPs/Main_APP.o: ../SW_APPs/Main_APP.c ../SW_APPs/Main_APP.h \
|
SW_APPs/Main_APP.o: ../SW_APPs/Main_APP.c ../SW_APPs/Main_APP.h \
|
||||||
/Users/wuwenfeng/STM32CubeIDE/workspace_1.7.0/m3s/HW_Devices/LCD.h \
|
C:/Users/wuwen/Desktop/M3s_stm32/HW_Devices/LCD.h ../Core/Inc/main.h \
|
||||||
../Core/Inc/main.h ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal.h \
|
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal.h \
|
||||||
../Core/Inc/stm32f1xx_hal_conf.h \
|
../Core/Inc/stm32f1xx_hal_conf.h \
|
||||||
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_rcc.h \
|
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_rcc.h \
|
||||||
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_def.h \
|
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_def.h \
|
||||||
@@ -28,16 +28,14 @@ SW_APPs/Main_APP.o: ../SW_APPs/Main_APP.c ../SW_APPs/Main_APP.h \
|
|||||||
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_spi.h \
|
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_spi.h \
|
||||||
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.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_tim_ex.h \
|
||||||
../SW_APPs/windows.h \
|
../SW_APPs/windows.h C:/Users/wuwen/Desktop/M3s_stm32/HW_Devices/lcd.h \
|
||||||
/Users/wuwenfeng/STM32CubeIDE/workspace_1.7.0/m3s/HW_Devices/lcd.h \
|
C:/Users/wuwen/Desktop/M3s_stm32/HW_Devices/touch.h \
|
||||||
/Users/wuwenfeng/STM32CubeIDE/workspace_1.7.0/m3s/HW_Devices/touch.h \
|
C:/Users/wuwen/Desktop/M3s_stm32/HW_Devices/eeprom.h \
|
||||||
/Users/wuwenfeng/STM32CubeIDE/workspace_1.7.0/m3s/HW_Devices/eeprom.h \
|
C:/Users/wuwen/Desktop/M3s_stm32/HW_Devices/key.h
|
||||||
../SW_APPs/APP_blood.h ../SW_APPs/APP_IDcard.h \
|
|
||||||
/Users/wuwenfeng/STM32CubeIDE/workspace_1.7.0/m3s/HW_Devices/rs522.h
|
|
||||||
|
|
||||||
../SW_APPs/Main_APP.h:
|
../SW_APPs/Main_APP.h:
|
||||||
|
|
||||||
/Users/wuwenfeng/STM32CubeIDE/workspace_1.7.0/m3s/HW_Devices/LCD.h:
|
C:/Users/wuwen/Desktop/M3s_stm32/HW_Devices/LCD.h:
|
||||||
|
|
||||||
../Core/Inc/main.h:
|
../Core/Inc/main.h:
|
||||||
|
|
||||||
@@ -99,14 +97,10 @@ SW_APPs/Main_APP.o: ../SW_APPs/Main_APP.c ../SW_APPs/Main_APP.h \
|
|||||||
|
|
||||||
../SW_APPs/windows.h:
|
../SW_APPs/windows.h:
|
||||||
|
|
||||||
/Users/wuwenfeng/STM32CubeIDE/workspace_1.7.0/m3s/HW_Devices/lcd.h:
|
C:/Users/wuwen/Desktop/M3s_stm32/HW_Devices/lcd.h:
|
||||||
|
|
||||||
/Users/wuwenfeng/STM32CubeIDE/workspace_1.7.0/m3s/HW_Devices/touch.h:
|
C:/Users/wuwen/Desktop/M3s_stm32/HW_Devices/touch.h:
|
||||||
|
|
||||||
/Users/wuwenfeng/STM32CubeIDE/workspace_1.7.0/m3s/HW_Devices/eeprom.h:
|
C:/Users/wuwen/Desktop/M3s_stm32/HW_Devices/eeprom.h:
|
||||||
|
|
||||||
../SW_APPs/APP_blood.h:
|
C:/Users/wuwen/Desktop/M3s_stm32/HW_Devices/key.h:
|
||||||
|
|
||||||
../SW_APPs/APP_IDcard.h:
|
|
||||||
|
|
||||||
/Users/wuwenfeng/STM32CubeIDE/workspace_1.7.0/m3s/HW_Devices/rs522.h:
|
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
Main_APP.c:24:6:main_app 96 static
|
Main_APP.c:21:6:main_app 96 static
|
||||||
|
|||||||
+11
-1
@@ -7,23 +7,33 @@
|
|||||||
C_SRCS += \
|
C_SRCS += \
|
||||||
../SW_APPs/APP_IDcard.c \
|
../SW_APPs/APP_IDcard.c \
|
||||||
../SW_APPs/APP_blood.c \
|
../SW_APPs/APP_blood.c \
|
||||||
|
../SW_APPs/APP_morsecode.c \
|
||||||
../SW_APPs/Main_APP.c \
|
../SW_APPs/Main_APP.c \
|
||||||
../SW_APPs/windows.c
|
../SW_APPs/windows.c
|
||||||
|
|
||||||
OBJS += \
|
OBJS += \
|
||||||
./SW_APPs/APP_IDcard.o \
|
./SW_APPs/APP_IDcard.o \
|
||||||
./SW_APPs/APP_blood.o \
|
./SW_APPs/APP_blood.o \
|
||||||
|
./SW_APPs/APP_morsecode.o \
|
||||||
./SW_APPs/Main_APP.o \
|
./SW_APPs/Main_APP.o \
|
||||||
./SW_APPs/windows.o
|
./SW_APPs/windows.o
|
||||||
|
|
||||||
C_DEPS += \
|
C_DEPS += \
|
||||||
./SW_APPs/APP_IDcard.d \
|
./SW_APPs/APP_IDcard.d \
|
||||||
./SW_APPs/APP_blood.d \
|
./SW_APPs/APP_blood.d \
|
||||||
|
./SW_APPs/APP_morsecode.d \
|
||||||
./SW_APPs/Main_APP.d \
|
./SW_APPs/Main_APP.d \
|
||||||
./SW_APPs/windows.d
|
./SW_APPs/windows.d
|
||||||
|
|
||||||
|
|
||||||
# Each subdirectory must supply rules for building sources it contributes
|
# Each subdirectory must supply rules for building sources it contributes
|
||||||
SW_APPs/%.o: ../SW_APPs/%.c SW_APPs/subdir.mk
|
SW_APPs/%.o: ../SW_APPs/%.c SW_APPs/subdir.mk
|
||||||
arm-none-eabi-gcc "$<" -mcpu=cortex-m3 -std=gnu11 -g3 -DDEBUG -DUSE_HAL_DRIVER -DSTM32F103xE -c -I../Core/Inc -I"/Users/wuwenfeng/STM32CubeIDE/workspace_1.7.0/m3s/SW_APPs" -I"/Users/wuwenfeng/STM32CubeIDE/workspace_1.7.0/m3s/HW_Devices" -I../Drivers/STM32F1xx_HAL_Driver/Inc -I../Drivers/STM32F1xx_HAL_Driver/Inc/Legacy -I../Drivers/CMSIS/Device/ST/STM32F1xx/Include -I../Drivers/CMSIS/Include -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -MMD -MP -MF"$(@:%.o=%.d)" -MT"$@" --specs=nano.specs -mfloat-abi=soft -mthumb -o "$@"
|
arm-none-eabi-gcc "$<" -mcpu=cortex-m3 -std=gnu11 -g3 -DDEBUG -DUSE_HAL_DRIVER -DSTM32F103xE -c -I../Core/Inc -I"C:/Users/wuwen/Desktop/M3s_stm32/SW_APPs" -I"C:/Users/wuwen/Desktop/M3s_stm32/HW_Devices" -I../Drivers/STM32F1xx_HAL_Driver/Inc -I../Drivers/STM32F1xx_HAL_Driver/Inc/Legacy -I../Drivers/CMSIS/Device/ST/STM32F1xx/Include -I../Drivers/CMSIS/Include -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -MMD -MP -MF"$(@:%.o=%.d)" -MT"$@" --specs=nano.specs -mfloat-abi=soft -mthumb -o "$@"
|
||||||
|
|
||||||
|
clean: clean-SW_APPs
|
||||||
|
|
||||||
|
clean-SW_APPs:
|
||||||
|
-$(RM) ./SW_APPs/APP_IDcard.d ./SW_APPs/APP_IDcard.o ./SW_APPs/APP_blood.d ./SW_APPs/APP_blood.o ./SW_APPs/APP_morsecode.d ./SW_APPs/APP_morsecode.o ./SW_APPs/Main_APP.d ./SW_APPs/Main_APP.o ./SW_APPs/windows.d ./SW_APPs/windows.o
|
||||||
|
|
||||||
|
.PHONY: clean-SW_APPs
|
||||||
|
|
||||||
|
|||||||
@@ -27,8 +27,8 @@ SW_APPs/windows.o: ../SW_APPs/windows.c ../SW_APPs/windows.h \
|
|||||||
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_spi.h \
|
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_spi.h \
|
||||||
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.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_tim_ex.h \
|
||||||
/Users/wuwenfeng/STM32CubeIDE/workspace_1.7.0/m3s/HW_Devices/lcd.h \
|
C:/Users/wuwen/Desktop/M3s_stm32/HW_Devices/lcd.h \
|
||||||
/Users/wuwenfeng/STM32CubeIDE/workspace_1.7.0/m3s/HW_Devices/touch.h
|
C:/Users/wuwen/Desktop/M3s_stm32/HW_Devices/touch.h
|
||||||
|
|
||||||
../SW_APPs/windows.h:
|
../SW_APPs/windows.h:
|
||||||
|
|
||||||
@@ -90,6 +90,6 @@ SW_APPs/windows.o: ../SW_APPs/windows.c ../SW_APPs/windows.h \
|
|||||||
|
|
||||||
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h:
|
../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h:
|
||||||
|
|
||||||
/Users/wuwenfeng/STM32CubeIDE/workspace_1.7.0/m3s/HW_Devices/lcd.h:
|
C:/Users/wuwen/Desktop/M3s_stm32/HW_Devices/lcd.h:
|
||||||
|
|
||||||
/Users/wuwenfeng/STM32CubeIDE/workspace_1.7.0/m3s/HW_Devices/touch.h:
|
C:/Users/wuwen/Desktop/M3s_stm32/HW_Devices/touch.h:
|
||||||
|
|||||||
Binary file not shown.
+10509
-12830
File diff suppressed because it is too large
Load Diff
+1611
-1292
File diff suppressed because it is too large
Load Diff
+4
-5
@@ -14,7 +14,6 @@ RM := rm -rf
|
|||||||
-include Drivers/STM32F1xx_HAL_Driver/Src/subdir.mk
|
-include Drivers/STM32F1xx_HAL_Driver/Src/subdir.mk
|
||||||
-include Core/Startup/subdir.mk
|
-include Core/Startup/subdir.mk
|
||||||
-include Core/Src/subdir.mk
|
-include Core/Src/subdir.mk
|
||||||
-include subdir.mk
|
|
||||||
-include objects.mk
|
-include objects.mk
|
||||||
|
|
||||||
ifneq ($(MAKECMDGOALS),clean)
|
ifneq ($(MAKECMDGOALS),clean)
|
||||||
@@ -63,8 +62,8 @@ all: main-build
|
|||||||
main-build: m3s.elf secondary-outputs
|
main-build: m3s.elf secondary-outputs
|
||||||
|
|
||||||
# Tool invocations
|
# Tool invocations
|
||||||
m3s.elf: $(OBJS) $(USER_OBJS) /Users/wuwenfeng/STM32CubeIDE/workspace_1.7.0/m3s/STM32F103ZETX_FLASH.ld makefile objects.list $(OPTIONAL_TOOL_DEPS)
|
m3s.elf: $(OBJS) $(USER_OBJS) C:\Users\wuwen\Desktop\M3s_stm32\STM32F103ZETX_FLASH.ld makefile objects.list $(OPTIONAL_TOOL_DEPS)
|
||||||
arm-none-eabi-gcc -o "m3s.elf" @"objects.list" $(USER_OBJS) $(LIBS) -mcpu=cortex-m3 -T"/Users/wuwenfeng/STM32CubeIDE/workspace_1.7.0/m3s/STM32F103ZETX_FLASH.ld" --specs=nosys.specs -Wl,-Map="m3s.map" -Wl,--gc-sections -static --specs=nano.specs -mfloat-abi=soft -mthumb -u _printf_float -Wl,--start-group -lc -lm -Wl,--end-group
|
arm-none-eabi-gcc -o "m3s.elf" @"objects.list" $(USER_OBJS) $(LIBS) -mcpu=cortex-m3 -T"C:\Users\wuwen\Desktop\M3s_stm32\STM32F103ZETX_FLASH.ld" --specs=nosys.specs -Wl,-Map="m3s.map" -Wl,--gc-sections -static --specs=nano.specs -mfloat-abi=soft -mthumb -u _printf_float -Wl,--start-group -lc -lm -Wl,--end-group
|
||||||
@echo 'Finished building target: $@'
|
@echo 'Finished building target: $@'
|
||||||
@echo ' '
|
@echo ' '
|
||||||
|
|
||||||
@@ -85,7 +84,7 @@ m3s.bin: $(EXECUTABLES) makefile objects.list $(OPTIONAL_TOOL_DEPS)
|
|||||||
|
|
||||||
# Other Targets
|
# Other Targets
|
||||||
clean:
|
clean:
|
||||||
-$(RM) $(SIZE_OUTPUT)$(OBJDUMP_LIST)$(EXECUTABLES)$(OBJS)$(S_DEPS)$(S_UPPER_DEPS)$(C_DEPS)$(OBJCOPY_BIN) m3s.elf
|
-$(RM) default.size.stdout m3s.bin m3s.elf m3s.list
|
||||||
-@echo ' '
|
-@echo ' '
|
||||||
|
|
||||||
secondary-outputs: $(SIZE_OUTPUT) $(OBJDUMP_LIST) $(OBJCOPY_BIN)
|
secondary-outputs: $(SIZE_OUTPUT) $(OBJDUMP_LIST) $(OBJCOPY_BIN)
|
||||||
@@ -97,6 +96,6 @@ fail-specified-linker-script-missing:
|
|||||||
warn-no-linker-script-specified:
|
warn-no-linker-script-specified:
|
||||||
@echo 'Warning: No linker script specified. Check the linker settings in the build configuration.'
|
@echo 'Warning: No linker script specified. Check the linker settings in the build configuration.'
|
||||||
|
|
||||||
.PHONY: all clean dependents fail-specified-linker-script-missing warn-no-linker-script-specified
|
.PHONY: all clean dependents main-build fail-specified-linker-script-missing warn-no-linker-script-specified
|
||||||
|
|
||||||
-include ../makefile.targets
|
-include ../makefile.targets
|
||||||
|
|||||||
@@ -25,9 +25,11 @@
|
|||||||
"./HW_Devices/LCD.o"
|
"./HW_Devices/LCD.o"
|
||||||
"./HW_Devices/eeprom.o"
|
"./HW_Devices/eeprom.o"
|
||||||
"./HW_Devices/iic.o"
|
"./HW_Devices/iic.o"
|
||||||
|
"./HW_Devices/key.o"
|
||||||
"./HW_Devices/rs522.o"
|
"./HW_Devices/rs522.o"
|
||||||
"./HW_Devices/touch.o"
|
"./HW_Devices/touch.o"
|
||||||
"./SW_APPs/APP_IDcard.o"
|
"./SW_APPs/APP_IDcard.o"
|
||||||
"./SW_APPs/APP_blood.o"
|
"./SW_APPs/APP_blood.o"
|
||||||
|
"./SW_APPs/APP_morsecode.o"
|
||||||
"./SW_APPs/Main_APP.o"
|
"./SW_APPs/Main_APP.o"
|
||||||
"./SW_APPs/windows.o"
|
"./SW_APPs/windows.o"
|
||||||
|
|||||||
@@ -0,0 +1,62 @@
|
|||||||
|
/*
|
||||||
|
* key.c
|
||||||
|
*
|
||||||
|
* Created on: 2022Äê3ÔÂ5ÈÕ
|
||||||
|
* Author: wuwen
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
#include "key.h"
|
||||||
|
|
||||||
|
struct button k1,k2,k3;
|
||||||
|
|
||||||
|
void GEI_BUTTON_CODE(struct button *bt,uint8_t in)
|
||||||
|
{
|
||||||
|
#define t 250
|
||||||
|
bt->code=0;
|
||||||
|
if(in==0)
|
||||||
|
{
|
||||||
|
if(bt->lock==0)
|
||||||
|
{
|
||||||
|
if(HAL_GetTick()<bt->time+t)
|
||||||
|
{
|
||||||
|
bt->times++;
|
||||||
|
bt->time=HAL_GetTick();
|
||||||
|
bt->lock=1;
|
||||||
|
|
||||||
|
}else
|
||||||
|
{
|
||||||
|
bt->times=1;
|
||||||
|
bt->time=HAL_GetTick();
|
||||||
|
bt->lock=1;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
if(bt->lock==1)
|
||||||
|
{
|
||||||
|
if(HAL_GetTick()>bt->time+t)
|
||||||
|
{
|
||||||
|
bt->code=-1;
|
||||||
|
bt->times=-1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
if(in==1)
|
||||||
|
{
|
||||||
|
if(bt->lock==1)
|
||||||
|
{
|
||||||
|
if(bt->code==-1)
|
||||||
|
{
|
||||||
|
|
||||||
|
}else
|
||||||
|
{
|
||||||
|
bt->code=bt->times;
|
||||||
|
}
|
||||||
|
bt->lock=0;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,30 @@
|
|||||||
|
/*
|
||||||
|
* key.h
|
||||||
|
*
|
||||||
|
* Created on: 2022Äê3ÔÂ5ÈÕ
|
||||||
|
* Author: wuwen
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef KEY_H_
|
||||||
|
#define KEY_H_
|
||||||
|
|
||||||
|
#include "main.h"
|
||||||
|
|
||||||
|
#define KEY0 HAL_GPIO_ReadPin(KEY0_GPIO_Port, KEY0_Pin)
|
||||||
|
#define KEY1 HAL_GPIO_ReadPin(KEY1_GPIO_Port, KEY1_Pin)
|
||||||
|
#define KEY2 HAL_GPIO_ReadPin(KEY2_GPIO_Port, KEY2_Pin)
|
||||||
|
#define KEY3 HAL_GPIO_ReadPin(KEY3_GPIO_Port, KEY3_Pin)
|
||||||
|
|
||||||
|
extern struct button k1,k2,k3;
|
||||||
|
|
||||||
|
struct button
|
||||||
|
{
|
||||||
|
int code;
|
||||||
|
uint8_t lock;
|
||||||
|
uint32_t time;
|
||||||
|
int times;
|
||||||
|
};
|
||||||
|
|
||||||
|
void GEI_BUTTON_CODE(struct button *bt,uint8_t in);
|
||||||
|
|
||||||
|
#endif /* KEY_H_ */
|
||||||
@@ -0,0 +1,352 @@
|
|||||||
|
/*
|
||||||
|
* APP_morsecode.c
|
||||||
|
*
|
||||||
|
* Created on: 2022Äê3ÔÂ5ÈÕ
|
||||||
|
* Author: wuwen
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include "APP_morsecode.h"
|
||||||
|
|
||||||
|
#define morse_t1 250
|
||||||
|
#define morse_t2 (morse_t1*3)
|
||||||
|
|
||||||
|
char push_key=0,last_key=1;
|
||||||
|
uint32_t morse_t=0;
|
||||||
|
uint32_t morse_time_out=0;
|
||||||
|
uint16_t morse_temp;
|
||||||
|
char morse_input_buff[65]={0};
|
||||||
|
int morse_input_flag=0;
|
||||||
|
int morse_char_flag=0;
|
||||||
|
int morse_x,morse_y;
|
||||||
|
char morse_flah=0;
|
||||||
|
uint8_t morse_letter_temp=0;
|
||||||
|
uint8_t morse_letter_flag=0;
|
||||||
|
|
||||||
|
const struct morsecode morsecodes[36]=
|
||||||
|
{
|
||||||
|
{
|
||||||
|
2,0b01000000,'A'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
4,0b10000000,'B'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
4,0b10100000,'C'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
3,0b10000000,'D'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
1,0b00000000,'E'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
4,0b00100000,'F'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
3,0b11000000,'G'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
4,0b00000000,'H'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
2,0b00000000,'I'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
4,0b01110000,'J'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
3,0b10100000,'K'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
4,0b01000000,'L'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
2,0b11000000,'M'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
2,0b10000000,'N'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
3,0b11100000,'O'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
4,0b01100000,'P'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
4,0b11010000,'Q'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
3,0b01000000,'R'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
3,0b00000000,'S'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
1,0b10000000,'T'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
3,0b00100000,'U'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
4,0b00010000,'V'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
3,0b01100000,'W'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
4,0b10010000,'X'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
4,0b10110000,'Y'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
4,0b11000000,'Z'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
5,0b01111000,'1'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
5,0b00111000,'2'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
5,0b00011000,'3'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
5,0b00001000,'4'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
5,0b00000000,'5'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
5,0b10000000,'6'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
5,0b11000000,'7'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
5,0b11100000,'8'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
5,0b11110000,'9'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
5,0b11111000,'0'
|
||||||
|
},
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
window *morsecode_window;
|
||||||
|
|
||||||
|
void APP_morsecode_init(window *a_window)
|
||||||
|
{
|
||||||
|
morsecode_window=a_window;
|
||||||
|
|
||||||
|
for(int a=0;a<65;a++)
|
||||||
|
{
|
||||||
|
morse_input_buff[a]='\0';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
char getmorsecode(uint8_t len,uint8_t code)
|
||||||
|
{
|
||||||
|
for(int a=0;a<36;a++)
|
||||||
|
{
|
||||||
|
if((morsecodes[a].len==len)&&(morsecodes[a].code==code))
|
||||||
|
{
|
||||||
|
return morsecodes[a].letter;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
void APP_morsecode_loop()
|
||||||
|
{
|
||||||
|
/*
|
||||||
|
char str[64],get_char_temp;
|
||||||
|
sprintf(str,"%d %d ",morse_input_flag,morse_char_flag);
|
||||||
|
LCD_ShowString(morsecode_window->x, morsecode_window->y+100, str, 16, GREEN, RED);
|
||||||
|
*/
|
||||||
|
|
||||||
|
if(k2.code==1)
|
||||||
|
{
|
||||||
|
morse_x=morsecode_window->x;
|
||||||
|
morse_y=morsecode_window->y+16;
|
||||||
|
|
||||||
|
for(int a=0;a<64;a++)
|
||||||
|
{
|
||||||
|
morse_input_buff[a]='\0';
|
||||||
|
if(morse_x>=(morsecode_window->x+morsecode_window->width))
|
||||||
|
{
|
||||||
|
morse_x=morsecode_window->x;
|
||||||
|
morse_y+=16;
|
||||||
|
if(morse_y>=(morsecode_window->y+morsecode_window->high))
|
||||||
|
{
|
||||||
|
morse_y=morsecode_window->y+16;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
LCD_ShowChar(morse_x,morse_y,' ',16,CYAN,RED);
|
||||||
|
|
||||||
|
morse_x+=8;
|
||||||
|
}
|
||||||
|
morse_input_flag=0;
|
||||||
|
morse_char_flag=0;
|
||||||
|
morse_flah=0;
|
||||||
|
}
|
||||||
|
|
||||||
|
char get_char_temp;
|
||||||
|
push_key=KEY1;
|
||||||
|
|
||||||
|
if(push_key!=last_key)
|
||||||
|
{
|
||||||
|
|
||||||
|
if(push_key==0)
|
||||||
|
{
|
||||||
|
morse_t=HAL_GetTick();
|
||||||
|
}else
|
||||||
|
{
|
||||||
|
morse_temp=HAL_GetTick()-morse_t;
|
||||||
|
if(morse_temp>morse_t2)
|
||||||
|
{
|
||||||
|
//time out error
|
||||||
|
}else if(morse_temp>morse_t1)
|
||||||
|
{
|
||||||
|
//-
|
||||||
|
morse_input_buff[morse_input_flag]='-';
|
||||||
|
morse_letter_temp|=(0x80>>morse_letter_flag);
|
||||||
|
}else
|
||||||
|
{
|
||||||
|
//.
|
||||||
|
morse_input_buff[morse_input_flag]='.';
|
||||||
|
}
|
||||||
|
morse_input_flag++;
|
||||||
|
morse_letter_flag++;
|
||||||
|
if(morse_input_flag>=morse_char_flag+8){morse_input_flag=morse_char_flag;morse_letter_flag=0;}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
last_key=push_key;
|
||||||
|
morse_time_out=HAL_GetTick();
|
||||||
|
}
|
||||||
|
|
||||||
|
if(push_key==1)
|
||||||
|
{
|
||||||
|
//Get cursor on the screen
|
||||||
|
if((HAL_GetTick()-morse_time_out)>morse_t1)
|
||||||
|
{
|
||||||
|
if((morse_input_flag-morse_char_flag)>0)
|
||||||
|
{
|
||||||
|
|
||||||
|
get_char_temp=getmorsecode(morse_letter_flag,morse_letter_temp);
|
||||||
|
|
||||||
|
morse_x=morsecode_window->x;
|
||||||
|
morse_y=morsecode_window->y+16;
|
||||||
|
for(int a=0;a<morse_char_flag;a++)
|
||||||
|
{
|
||||||
|
|
||||||
|
if(morse_x>=(morsecode_window->x+morsecode_window->width))
|
||||||
|
{
|
||||||
|
morse_x=morsecode_window->x;
|
||||||
|
morse_y+=16;
|
||||||
|
if(morse_y>=(morsecode_window->y+morsecode_window->high))
|
||||||
|
{
|
||||||
|
morse_y=morsecode_window->y+16;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
morse_x+=8;
|
||||||
|
}
|
||||||
|
|
||||||
|
for(int a=morse_char_flag;a<morse_input_flag;a++)
|
||||||
|
{
|
||||||
|
|
||||||
|
if(morse_x>=(morsecode_window->x+morsecode_window->width))
|
||||||
|
{
|
||||||
|
morse_x=morsecode_window->x;
|
||||||
|
morse_y+=16;
|
||||||
|
if(morse_y>=(morsecode_window->y+morsecode_window->high))
|
||||||
|
{
|
||||||
|
morse_y=morsecode_window->y+16;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if((a==morse_char_flag)&&(get_char_temp!=0))
|
||||||
|
{
|
||||||
|
|
||||||
|
LCD_ShowChar(morse_x,morse_y,get_char_temp,16,CYAN,RED);
|
||||||
|
morse_input_buff[a]=get_char_temp;
|
||||||
|
|
||||||
|
}else
|
||||||
|
{
|
||||||
|
LCD_ShowChar(morse_x,morse_y,' ',16,CYAN,RED);
|
||||||
|
morse_input_buff[a]='\0';
|
||||||
|
}
|
||||||
|
|
||||||
|
morse_x+=8;
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
morse_letter_flag=0;
|
||||||
|
morse_letter_temp=0;
|
||||||
|
if(get_char_temp!=0){morse_flah=1;morse_char_flag+=1;}
|
||||||
|
|
||||||
|
morse_input_flag=morse_char_flag;
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if((HAL_GetTick()-morse_time_out)>morse_t2)
|
||||||
|
{
|
||||||
|
if(morse_flah==1)
|
||||||
|
{
|
||||||
|
morse_input_buff[morse_char_flag]=' ';
|
||||||
|
morse_x=morsecode_window->x;
|
||||||
|
morse_y=morsecode_window->y+16;
|
||||||
|
for(int a=0;a<morse_char_flag;a++)
|
||||||
|
{
|
||||||
|
|
||||||
|
if(morse_x>=(morsecode_window->x+morsecode_window->width))
|
||||||
|
{
|
||||||
|
morse_x=morsecode_window->x;
|
||||||
|
morse_y+=16;
|
||||||
|
if(morse_y>=(morsecode_window->y+morsecode_window->high))
|
||||||
|
{
|
||||||
|
morse_y=morsecode_window->y+16;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
morse_x+=8;
|
||||||
|
}
|
||||||
|
LCD_ShowChar(morse_x,morse_y,morse_input_buff[morse_char_flag],16,CYAN,RED);
|
||||||
|
morse_char_flag+=1;
|
||||||
|
morse_input_flag=morse_char_flag;
|
||||||
|
morse_flah=0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
morse_x=morsecode_window->x;
|
||||||
|
morse_y=morsecode_window->y+16;
|
||||||
|
|
||||||
|
for(int a=0;a<64;a++)
|
||||||
|
{
|
||||||
|
|
||||||
|
if(morse_input_buff[a]=='\0')
|
||||||
|
{
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
if(morse_x>=(morsecode_window->x+morsecode_window->width))
|
||||||
|
{
|
||||||
|
morse_x=morsecode_window->x;
|
||||||
|
morse_y+=16;
|
||||||
|
if(morse_y>=(morsecode_window->y+morsecode_window->high))
|
||||||
|
{
|
||||||
|
morse_y=morsecode_window->y+16;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
LCD_ShowChar(morse_x,morse_y,morse_input_buff[a],16,CYAN,RED);
|
||||||
|
|
||||||
|
morse_x+=8;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,25 @@
|
|||||||
|
/*
|
||||||
|
* APP_morsecode.h
|
||||||
|
*
|
||||||
|
* Created on: 2022Äê3ÔÂ5ÈÕ
|
||||||
|
* Author: wuwen
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef APP_MORSECODE_H_
|
||||||
|
#define APP_MORSECODE_H_
|
||||||
|
#include "main.h"
|
||||||
|
#include "windows.h"
|
||||||
|
#include "key.h"
|
||||||
|
|
||||||
|
struct morsecode
|
||||||
|
{
|
||||||
|
uint8_t len;
|
||||||
|
uint8_t code;
|
||||||
|
char letter;
|
||||||
|
};
|
||||||
|
|
||||||
|
void APP_morsecode_init(window *a_window);
|
||||||
|
void APP_morsecode_loop();
|
||||||
|
|
||||||
|
|
||||||
|
#endif /* APP_MORSECODE_H_ */
|
||||||
+10
-7
@@ -9,10 +9,7 @@
|
|||||||
#include "windows.h"
|
#include "windows.h"
|
||||||
#include "touch.h"
|
#include "touch.h"
|
||||||
#include "eeprom.h"
|
#include "eeprom.h"
|
||||||
|
#include "key.h"
|
||||||
|
|
||||||
#include "APP_blood.h"
|
|
||||||
#include "APP_IDcard.h"
|
|
||||||
|
|
||||||
extern touch_device t0;
|
extern touch_device t0;
|
||||||
|
|
||||||
@@ -27,7 +24,7 @@ void main_app()
|
|||||||
LCDx_Init();
|
LCDx_Init();
|
||||||
EPPROM_SLOWWRITE_INIT();
|
EPPROM_SLOWWRITE_INIT();
|
||||||
|
|
||||||
if(HAL_GPIO_ReadPin(KEY3_GPIO_Port, KEY3_Pin)==0)
|
if(KEY1==0&&KEY3==0)
|
||||||
{
|
{
|
||||||
TP_adjustment(1);
|
TP_adjustment(1);
|
||||||
}else
|
}else
|
||||||
@@ -41,10 +38,12 @@ void main_app()
|
|||||||
|
|
||||||
//APP_blood_init(New_Window(ui,10,10,128,128,WHITE,"MAX30102"));
|
//APP_blood_init(New_Window(ui,10,10,128,128,WHITE,"MAX30102"));
|
||||||
|
|
||||||
APP_IDcard_init(New_Window(ui,25,30,150,100,GREEN,"IDcard"));
|
//APP_IDcard_init(New_Window(ui,25,30,150,100,GREEN,"IDcard"));
|
||||||
//New_Window(ui,80,80,60,90,YELLOW,"YELLOW");
|
//New_Window(ui,80,80,60,90,YELLOW,"YELLOW");
|
||||||
//New_Window(ui,120,90,70,60,MAGENTA,"MAGENTA");
|
//New_Window(ui,120,90,70,60,MAGENTA,"MAGENTA");
|
||||||
|
|
||||||
|
APP_morsecode_init(New_Window(ui,25,30,200,150,CYAN,"Morse code"));
|
||||||
|
|
||||||
ui->refresh_ui_flag=1;
|
ui->refresh_ui_flag=1;
|
||||||
|
|
||||||
while(1)
|
while(1)
|
||||||
@@ -63,8 +62,12 @@ void main_app()
|
|||||||
|
|
||||||
// 交叉编译测试
|
// 交叉编译测试
|
||||||
//APP_blood_loop();
|
//APP_blood_loop();
|
||||||
APP_IDcard_loop();
|
//APP_IDcard_loop();
|
||||||
|
APP_morsecode_loop();
|
||||||
|
|
||||||
|
GEI_BUTTON_CODE(&k1,KEY1);
|
||||||
|
GEI_BUTTON_CODE(&k2,KEY2);
|
||||||
|
GEI_BUTTON_CODE(&k3,KEY3);
|
||||||
UI_Server(ui);
|
UI_Server(ui);
|
||||||
TP_Server();
|
TP_Server();
|
||||||
EEPROM_SLOWWRITE_SERVER();
|
EEPROM_SLOWWRITE_SERVER();
|
||||||
|
|||||||
+2
-2
@@ -38,7 +38,7 @@
|
|||||||
<stringAttribute key="com.st.stm32cube.ide.mcu.debug.stlink.stlink_txt_serial_number" value=""/>
|
<stringAttribute key="com.st.stm32cube.ide.mcu.debug.stlink.stlink_txt_serial_number" value=""/>
|
||||||
<stringAttribute key="com.st.stm32cube.ide.mcu.debug.stlink.watchdog_config" value="none"/>
|
<stringAttribute key="com.st.stm32cube.ide.mcu.debug.stlink.watchdog_config" value="none"/>
|
||||||
<booleanAttribute key="com.st.stm32cube.ide.mcu.debug.stlinkenable_rtos" value="false"/>
|
<booleanAttribute key="com.st.stm32cube.ide.mcu.debug.stlinkenable_rtos" value="false"/>
|
||||||
<stringAttribute key="com.st.stm32cube.ide.mcu.debug.stlinkrestart_configurations" value="{"fItems":[{"fDisplayName":"Reset","fIsSuppressible":false,"fResetAttribute":"Software system reset","fResetStrategies":[{"fDisplayName":"Software system reset","fLaunchAttribute":"system_reset","fGdbCommands":["monitor reset\n"],"fCmdOptions":["-g"]},{"fDisplayName":"Hardware reset","fLaunchAttribute":"hardware_reset","fGdbCommands":["monitor reset hardware\n"],"fCmdOptions":["-g"]},{"fDisplayName":"Core reset","fLaunchAttribute":"core_reset","fGdbCommands":["monitor reset core\n"],"fCmdOptions":["-g"]},{"fDisplayName":"None","fLaunchAttribute":"no_reset","fGdbCommands":[],"fCmdOptions":["-g"]}],"fGdbCommandGroup":{"name":"Additional commands","commands":[]}}]}"/>
|
<stringAttribute key="com.st.stm32cube.ide.mcu.debug.stlinkrestart_configurations" value="{"fItems":[{"fDisplayName":"Reset","fIsSuppressible":false,"fResetAttribute":"Software system reset","fResetStrategies":[{"fDisplayName":"Software system reset","fLaunchAttribute":"system_reset","fGdbCommands":["monitor reset\r\n"],"fCmdOptions":["-g"]},{"fDisplayName":"Hardware reset","fLaunchAttribute":"hardware_reset","fGdbCommands":["monitor reset hardware\r\n"],"fCmdOptions":["-g"]},{"fDisplayName":"Core reset","fLaunchAttribute":"core_reset","fGdbCommands":["monitor reset core\r\n"],"fCmdOptions":["-g"]},{"fDisplayName":"None","fLaunchAttribute":"no_reset","fGdbCommands":[],"fCmdOptions":["-g"]}],"fGdbCommandGroup":{"name":"Additional commands","commands":[]}}]}"/>
|
||||||
<stringAttribute key="com.st.stm32cube.ide.mcu.debug.swv.datatrace_0" value="Enabled=true:Address=0x0:Access=Read/Write:Size=Word:Function=Data Value"/>
|
<stringAttribute key="com.st.stm32cube.ide.mcu.debug.swv.datatrace_0" value="Enabled=true:Address=0x0:Access=Read/Write:Size=Word:Function=Data Value"/>
|
||||||
<stringAttribute key="com.st.stm32cube.ide.mcu.debug.swv.datatrace_1" value="Enabled=false:Address=0x0:Access=Read/Write:Size=Word:Function=Data Value"/>
|
<stringAttribute key="com.st.stm32cube.ide.mcu.debug.swv.datatrace_1" value="Enabled=false:Address=0x0:Access=Read/Write:Size=Word:Function=Data Value"/>
|
||||||
<stringAttribute key="com.st.stm32cube.ide.mcu.debug.swv.datatrace_2" value="Enabled=false:Address=0x0:Access=Read/Write:Size=Word:Function=Data Value"/>
|
<stringAttribute key="com.st.stm32cube.ide.mcu.debug.swv.datatrace_2" value="Enabled=false:Address=0x0:Access=Read/Write:Size=Word:Function=Data Value"/>
|
||||||
@@ -67,7 +67,7 @@
|
|||||||
<booleanAttribute key="org.eclipse.cdt.debug.gdbjtag.core.setStopAt" value="true"/>
|
<booleanAttribute key="org.eclipse.cdt.debug.gdbjtag.core.setStopAt" value="true"/>
|
||||||
<stringAttribute key="org.eclipse.cdt.debug.gdbjtag.core.stopAt" value="main"/>
|
<stringAttribute key="org.eclipse.cdt.debug.gdbjtag.core.stopAt" value="main"/>
|
||||||
<stringAttribute key="org.eclipse.cdt.dsf.gdb.DEBUG_NAME" value="arm-none-eabi-gdb"/>
|
<stringAttribute key="org.eclipse.cdt.dsf.gdb.DEBUG_NAME" value="arm-none-eabi-gdb"/>
|
||||||
<booleanAttribute key="org.eclipse.cdt.dsf.gdb.NON_STOP" value="true"/>
|
<booleanAttribute key="org.eclipse.cdt.dsf.gdb.NON_STOP" value="false"/>
|
||||||
<booleanAttribute key="org.eclipse.cdt.dsf.gdb.UPDATE_THREADLIST_ON_SUSPEND" value="false"/>
|
<booleanAttribute key="org.eclipse.cdt.dsf.gdb.UPDATE_THREADLIST_ON_SUSPEND" value="false"/>
|
||||||
<intAttribute key="org.eclipse.cdt.launch.ATTR_BUILD_BEFORE_LAUNCH_ATTR" value="2"/>
|
<intAttribute key="org.eclipse.cdt.launch.ATTR_BUILD_BEFORE_LAUNCH_ATTR" value="2"/>
|
||||||
<stringAttribute key="org.eclipse.cdt.launch.COREFILE_PATH" value=""/>
|
<stringAttribute key="org.eclipse.cdt.launch.COREFILE_PATH" value=""/>
|
||||||
|
|||||||
Reference in New Issue
Block a user