按键功能完成 上机测试成功

This commit is contained in:
2021-09-18 15:05:53 +08:00
parent 061acbf55d
commit 04dddf88d1
9 changed files with 5065 additions and 3657 deletions
+2 -2
View File
@@ -223,14 +223,14 @@ static void MX_GPIO_Init(void)
/*Configure GPIO pins : HC595_DCK_Pin HC595_RCK_Pin HC595_SCK_Pin */ /*Configure GPIO pins : HC595_DCK_Pin HC595_RCK_Pin HC595_SCK_Pin */
GPIO_InitStruct.Pin = HC595_DCK_Pin|HC595_RCK_Pin|HC595_SCK_Pin; GPIO_InitStruct.Pin = HC595_DCK_Pin|HC595_RCK_Pin|HC595_SCK_Pin;
GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP; GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP;
GPIO_InitStruct.Pull = GPIO_NOPULL; GPIO_InitStruct.Pull = GPIO_PULLDOWN;
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_HIGH; GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_HIGH;
HAL_GPIO_Init(GPIOA, &GPIO_InitStruct); HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);
/*Configure GPIO pins : KEY1_Pin KEY2_Pin KEY3_Pin KEY4_Pin */ /*Configure GPIO pins : KEY1_Pin KEY2_Pin KEY3_Pin KEY4_Pin */
GPIO_InitStruct.Pin = KEY1_Pin|KEY2_Pin|KEY3_Pin|KEY4_Pin; GPIO_InitStruct.Pin = KEY1_Pin|KEY2_Pin|KEY3_Pin|KEY4_Pin;
GPIO_InitStruct.Mode = GPIO_MODE_INPUT; GPIO_InitStruct.Mode = GPIO_MODE_INPUT;
GPIO_InitStruct.Pull = GPIO_NOPULL; GPIO_InitStruct.Pull = GPIO_PULLDOWN;
HAL_GPIO_Init(GPIOA, &GPIO_InitStruct); HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);
} }
Binary file not shown.
+4643 -3434
View File
File diff suppressed because it is too large Load Diff
+219 -199
View File
@@ -12,19 +12,21 @@ Archive member included to satisfy reference by file (symbol)
/Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.macos64_2.0.0.202105311346/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/nofp/crt0.o (memset) /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.macos64_2.0.0.202105311346/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/nofp/crt0.o (memset)
/Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.macos64_2.0.0.202105311346/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/thumb/v6-m/nofp/libgcc.a(_udivsi3.o) /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.macos64_2.0.0.202105311346/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/thumb/v6-m/nofp/libgcc.a(_udivsi3.o)
./Core/Src/system_stm32f0xx.o (__aeabi_uidiv) ./Core/Src/system_stm32f0xx.o (__aeabi_uidiv)
/Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.macos64_2.0.0.202105311346/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/thumb/v6-m/nofp/libgcc.a(_divsi3.o)
./My_Soul/my_main.o (__aeabi_idiv)
/Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.macos64_2.0.0.202105311346/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/thumb/v6-m/nofp/libgcc.a(_dvmd_tls.o) /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.macos64_2.0.0.202105311346/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/thumb/v6-m/nofp/libgcc.a(_dvmd_tls.o)
/Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.macos64_2.0.0.202105311346/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/thumb/v6-m/nofp/libgcc.a(_udivsi3.o) (__aeabi_idiv0) /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.macos64_2.0.0.202105311346/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/thumb/v6-m/nofp/libgcc.a(_udivsi3.o) (__aeabi_idiv0)
Allocating common symbols Allocating common symbols
Common symbol size file Common symbol size file
key4 0xc ./My_Soul/my_main.o key4 0x10 ./My_Soul/my_main.o
uwTick 0x4 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.o uwTick 0x4 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.o
pFlash 0x20 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.o pFlash 0x20 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.o
dis_buff 0x5 ./My_Soul/my_main.o dis_buff 0x5 ./My_Soul/my_main.o
key1 0xc ./My_Soul/my_main.o key1 0x10 ./My_Soul/my_main.o
key3 0xc ./My_Soul/my_main.o key3 0x10 ./My_Soul/my_main.o
key2 0xc ./My_Soul/my_main.o key2 0x10 ./My_Soul/my_main.o
hadc 0x40 ./Core/Src/main.o hadc 0x40 ./Core/Src/main.o
Discarded input sections Discarded input sections
@@ -2661,6 +2663,8 @@ Discarded input sections
.bss 0x0000000000000000 0x0 /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.macos64_2.0.0.202105311346/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/nofp/libc_nano.a(lib_a-memset.o) .bss 0x0000000000000000 0x0 /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.macos64_2.0.0.202105311346/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/nofp/libc_nano.a(lib_a-memset.o)
.data 0x0000000000000000 0x0 /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.macos64_2.0.0.202105311346/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/thumb/v6-m/nofp/libgcc.a(_udivsi3.o) .data 0x0000000000000000 0x0 /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.macos64_2.0.0.202105311346/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/thumb/v6-m/nofp/libgcc.a(_udivsi3.o)
.bss 0x0000000000000000 0x0 /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.macos64_2.0.0.202105311346/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/thumb/v6-m/nofp/libgcc.a(_udivsi3.o) .bss 0x0000000000000000 0x0 /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.macos64_2.0.0.202105311346/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/thumb/v6-m/nofp/libgcc.a(_udivsi3.o)
.data 0x0000000000000000 0x0 /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.macos64_2.0.0.202105311346/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/thumb/v6-m/nofp/libgcc.a(_divsi3.o)
.bss 0x0000000000000000 0x0 /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.macos64_2.0.0.202105311346/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/thumb/v6-m/nofp/libgcc.a(_divsi3.o)
.data 0x0000000000000000 0x0 /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.macos64_2.0.0.202105311346/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/thumb/v6-m/nofp/libgcc.a(_dvmd_tls.o) .data 0x0000000000000000 0x0 /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.macos64_2.0.0.202105311346/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/thumb/v6-m/nofp/libgcc.a(_dvmd_tls.o)
.bss 0x0000000000000000 0x0 /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.macos64_2.0.0.202105311346/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/thumb/v6-m/nofp/libgcc.a(_dvmd_tls.o) .bss 0x0000000000000000 0x0 /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.macos64_2.0.0.202105311346/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/thumb/v6-m/nofp/libgcc.a(_dvmd_tls.o)
.text 0x0000000000000000 0x0 /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.macos64_2.0.0.202105311346/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/thumb/v6-m/nofp/crtend.o .text 0x0000000000000000 0x0 /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.macos64_2.0.0.202105311346/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/thumb/v6-m/nofp/crtend.o
@@ -2742,7 +2746,7 @@ LOAD /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.id
0x0000000008000000 g_pfnVectors 0x0000000008000000 g_pfnVectors
0x00000000080000c0 . = ALIGN (0x4) 0x00000000080000c0 . = ALIGN (0x4)
.text 0x00000000080000c0 0x1cf4 .text 0x00000000080000c0 0x2564
0x00000000080000c0 . = ALIGN (0x4) 0x00000000080000c0 . = ALIGN (0x4)
*(.text) *(.text)
.text 0x00000000080000c0 0x48 /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.macos64_2.0.0.202105311346/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/thumb/v6-m/nofp/crtbegin.o .text 0x00000000080000c0 0x48 /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.macos64_2.0.0.202105311346/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/thumb/v6-m/nofp/crtbegin.o
@@ -2750,217 +2754,224 @@ LOAD /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.id
0x0000000008000108 __udivsi3 0x0000000008000108 __udivsi3
0x0000000008000108 __aeabi_uidiv 0x0000000008000108 __aeabi_uidiv
0x0000000008000214 __aeabi_uidivmod 0x0000000008000214 __aeabi_uidivmod
.text 0x000000000800021c 0x4 /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.macos64_2.0.0.202105311346/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/thumb/v6-m/nofp/libgcc.a(_dvmd_tls.o) .text 0x000000000800021c 0x1d4 /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.macos64_2.0.0.202105311346/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/thumb/v6-m/nofp/libgcc.a(_divsi3.o)
0x000000000800021c __aeabi_ldiv0 0x000000000800021c __aeabi_idiv
0x000000000800021c __aeabi_idiv0 0x000000000800021c __divsi3
0x00000000080003e8 __aeabi_idivmod
.text 0x00000000080003f0 0x4 /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.macos64_2.0.0.202105311346/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/thumb/v6-m/nofp/libgcc.a(_dvmd_tls.o)
0x00000000080003f0 __aeabi_ldiv0
0x00000000080003f0 __aeabi_idiv0
*(.text*) *(.text*)
.text.main 0x0000000008000220 0x1a ./Core/Src/main.o .text.main 0x00000000080003f4 0x1a ./Core/Src/main.o
0x0000000008000220 main 0x00000000080003f4 main
.text.SystemClock_Config .text.SystemClock_Config
0x000000000800023a 0xa0 ./Core/Src/main.o 0x000000000800040e 0xa0 ./Core/Src/main.o
0x000000000800023a SystemClock_Config 0x000000000800040e SystemClock_Config
*fill* 0x00000000080002da 0x2 *fill* 0x00000000080004ae 0x2
.text.MX_ADC_Init .text.MX_ADC_Init
0x00000000080002dc 0xb8 ./Core/Src/main.o 0x00000000080004b0 0xb8 ./Core/Src/main.o
.text.MX_GPIO_Init .text.MX_GPIO_Init
0x0000000008000394 0xe8 ./Core/Src/main.o 0x0000000008000568 0xe8 ./Core/Src/main.o
.text.Error_Handler .text.Error_Handler
0x000000000800047c 0xa ./Core/Src/main.o 0x0000000008000650 0xa ./Core/Src/main.o
0x000000000800047c Error_Handler 0x0000000008000650 Error_Handler
*fill* 0x0000000008000486 0x2 *fill* 0x000000000800065a 0x2
.text.HAL_MspInit .text.HAL_MspInit
0x0000000008000488 0x48 ./Core/Src/stm32f0xx_hal_msp.o 0x000000000800065c 0x48 ./Core/Src/stm32f0xx_hal_msp.o
0x0000000008000488 HAL_MspInit 0x000000000800065c HAL_MspInit
.text.HAL_ADC_MspInit .text.HAL_ADC_MspInit
0x00000000080004d0 0x8c ./Core/Src/stm32f0xx_hal_msp.o 0x00000000080006a4 0x8c ./Core/Src/stm32f0xx_hal_msp.o
0x00000000080004d0 HAL_ADC_MspInit 0x00000000080006a4 HAL_ADC_MspInit
.text.NMI_Handler .text.NMI_Handler
0x000000000800055c 0x6 ./Core/Src/stm32f0xx_it.o 0x0000000008000730 0x6 ./Core/Src/stm32f0xx_it.o
0x000000000800055c NMI_Handler 0x0000000008000730 NMI_Handler
.text.HardFault_Handler .text.HardFault_Handler
0x0000000008000562 0x6 ./Core/Src/stm32f0xx_it.o 0x0000000008000736 0x6 ./Core/Src/stm32f0xx_it.o
0x0000000008000562 HardFault_Handler 0x0000000008000736 HardFault_Handler
.text.SVC_Handler .text.SVC_Handler
0x0000000008000568 0xa ./Core/Src/stm32f0xx_it.o 0x000000000800073c 0xa ./Core/Src/stm32f0xx_it.o
0x0000000008000568 SVC_Handler 0x000000000800073c SVC_Handler
.text.PendSV_Handler .text.PendSV_Handler
0x0000000008000572 0xa ./Core/Src/stm32f0xx_it.o 0x0000000008000746 0xa ./Core/Src/stm32f0xx_it.o
0x0000000008000572 PendSV_Handler 0x0000000008000746 PendSV_Handler
.text.SysTick_Handler .text.SysTick_Handler
0x000000000800057c 0xe ./Core/Src/stm32f0xx_it.o 0x0000000008000750 0xe ./Core/Src/stm32f0xx_it.o
0x000000000800057c SysTick_Handler 0x0000000008000750 SysTick_Handler
.text.SystemInit .text.SystemInit
0x000000000800058a 0xa ./Core/Src/system_stm32f0xx.o 0x000000000800075e 0xa ./Core/Src/system_stm32f0xx.o
0x000000000800058a SystemInit 0x000000000800075e SystemInit
.text.Reset_Handler .text.Reset_Handler
0x0000000008000594 0x50 ./Core/Startup/startup_stm32f030f4px.o 0x0000000008000768 0x50 ./Core/Startup/startup_stm32f030f4px.o
0x0000000008000594 Reset_Handler 0x0000000008000768 Reset_Handler
.text.Default_Handler .text.Default_Handler
0x00000000080005e4 0x2 ./Core/Startup/startup_stm32f030f4px.o 0x00000000080007b8 0x2 ./Core/Startup/startup_stm32f030f4px.o
0x00000000080005e4 TIM1_BRK_UP_TRG_COM_IRQHandler 0x00000000080007b8 TIM1_BRK_UP_TRG_COM_IRQHandler
0x00000000080005e4 I2C1_IRQHandler 0x00000000080007b8 I2C1_IRQHandler
0x00000000080005e4 SPI1_IRQHandler 0x00000000080007b8 SPI1_IRQHandler
0x00000000080005e4 EXTI2_3_IRQHandler 0x00000000080007b8 EXTI2_3_IRQHandler
0x00000000080005e4 ADC1_IRQHandler 0x00000000080007b8 ADC1_IRQHandler
0x00000000080005e4 TIM17_IRQHandler 0x00000000080007b8 TIM17_IRQHandler
0x00000000080005e4 RTC_IRQHandler 0x00000000080007b8 RTC_IRQHandler
0x00000000080005e4 TIM16_IRQHandler 0x00000000080007b8 TIM16_IRQHandler
0x00000000080005e4 TIM3_IRQHandler 0x00000000080007b8 TIM3_IRQHandler
0x00000000080005e4 EXTI4_15_IRQHandler 0x00000000080007b8 EXTI4_15_IRQHandler
0x00000000080005e4 RCC_IRQHandler 0x00000000080007b8 RCC_IRQHandler
0x00000000080005e4 DMA1_Channel1_IRQHandler 0x00000000080007b8 DMA1_Channel1_IRQHandler
0x00000000080005e4 Default_Handler 0x00000000080007b8 Default_Handler
0x00000000080005e4 TIM14_IRQHandler 0x00000000080007b8 TIM14_IRQHandler
0x00000000080005e4 DMA1_Channel4_5_IRQHandler 0x00000000080007b8 DMA1_Channel4_5_IRQHandler
0x00000000080005e4 EXTI0_1_IRQHandler 0x00000000080007b8 EXTI0_1_IRQHandler
0x00000000080005e4 WWDG_IRQHandler 0x00000000080007b8 WWDG_IRQHandler
0x00000000080005e4 DMA1_Channel2_3_IRQHandler 0x00000000080007b8 DMA1_Channel2_3_IRQHandler
0x00000000080005e4 FLASH_IRQHandler 0x00000000080007b8 FLASH_IRQHandler
0x00000000080005e4 USART1_IRQHandler 0x00000000080007b8 USART1_IRQHandler
0x00000000080005e4 TIM1_CC_IRQHandler 0x00000000080007b8 TIM1_CC_IRQHandler
*fill* 0x00000000080005e6 0x2 *fill* 0x00000000080007ba 0x2
.text.HAL_Init .text.HAL_Init
0x00000000080005e8 0x28 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.o 0x00000000080007bc 0x28 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.o
0x00000000080005e8 HAL_Init 0x00000000080007bc HAL_Init
.text.HAL_InitTick .text.HAL_InitTick
0x0000000008000610 0x68 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.o 0x00000000080007e4 0x68 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.o
0x0000000008000610 HAL_InitTick 0x00000000080007e4 HAL_InitTick
.text.HAL_IncTick .text.HAL_IncTick
0x0000000008000678 0x24 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.o 0x000000000800084c 0x24 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.o
0x0000000008000678 HAL_IncTick 0x000000000800084c HAL_IncTick
.text.HAL_GetTick .text.HAL_GetTick
0x000000000800069c 0x14 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.o 0x0000000008000870 0x14 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.o
0x000000000800069c HAL_GetTick 0x0000000008000870 HAL_GetTick
.text.HAL_ADC_Init .text.HAL_ADC_Init
0x00000000080006b0 0x280 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.o 0x0000000008000884 0x280 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.o
0x00000000080006b0 HAL_ADC_Init 0x0000000008000884 HAL_ADC_Init
.text.HAL_ADC_ConfigChannel .text.HAL_ADC_ConfigChannel
0x0000000008000930 0x1ec ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.o 0x0000000008000b04 0x1ec ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.o
0x0000000008000930 HAL_ADC_ConfigChannel 0x0000000008000b04 HAL_ADC_ConfigChannel
.text.__NVIC_SetPriority .text.__NVIC_SetPriority
0x0000000008000b1c 0xdc ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.o 0x0000000008000cf0 0xdc ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.o
.text.SysTick_Config .text.SysTick_Config
0x0000000008000bf8 0x48 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.o 0x0000000008000dcc 0x48 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.o
.text.HAL_NVIC_SetPriority .text.HAL_NVIC_SetPriority
0x0000000008000c40 0x2a ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.o 0x0000000008000e14 0x2a ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.o
0x0000000008000c40 HAL_NVIC_SetPriority 0x0000000008000e14 HAL_NVIC_SetPriority
.text.HAL_SYSTICK_Config .text.HAL_SYSTICK_Config
0x0000000008000c6a 0x1a ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.o 0x0000000008000e3e 0x1a ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.o
0x0000000008000c6a HAL_SYSTICK_Config 0x0000000008000e3e HAL_SYSTICK_Config
.text.HAL_GPIO_Init .text.HAL_GPIO_Init
0x0000000008000c84 0x2e0 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.o 0x0000000008000e58 0x2e0 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.o
0x0000000008000c84 HAL_GPIO_Init 0x0000000008000e58 HAL_GPIO_Init
.text.HAL_GPIO_ReadPin .text.HAL_GPIO_ReadPin
0x0000000008000f64 0x3a ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.o 0x0000000008001138 0x3a ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.o
0x0000000008000f64 HAL_GPIO_ReadPin 0x0000000008001138 HAL_GPIO_ReadPin
.text.HAL_GPIO_WritePin .text.HAL_GPIO_WritePin
0x0000000008000f9e 0x3a ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.o 0x0000000008001172 0x3a ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.o
0x0000000008000f9e HAL_GPIO_WritePin 0x0000000008001172 HAL_GPIO_WritePin
.text.HAL_RCC_OscConfig .text.HAL_RCC_OscConfig
0x0000000008000fd8 0x634 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.o 0x00000000080011ac 0x634 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.o
0x0000000008000fd8 HAL_RCC_OscConfig 0x00000000080011ac HAL_RCC_OscConfig
.text.HAL_RCC_ClockConfig .text.HAL_RCC_ClockConfig
0x000000000800160c 0x19c ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.o 0x00000000080017e0 0x19c ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.o
0x000000000800160c HAL_RCC_ClockConfig 0x00000000080017e0 HAL_RCC_ClockConfig
.text.HAL_RCC_GetSysClockFreq .text.HAL_RCC_GetSysClockFreq
0x00000000080017a8 0xc8 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.o 0x000000000800197c 0xc8 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.o
0x00000000080017a8 HAL_RCC_GetSysClockFreq 0x000000000800197c HAL_RCC_GetSysClockFreq
.text.GEI_BUTTON_CODE .text.GEI_BUTTON_CODE
0x0000000008001870 0xba ./My_Soul/button.o 0x0000000008001a44 0xbc ./My_Soul/button.o
0x0000000008001870 GEI_BUTTON_CODE 0x0000000008001a44 GEI_BUTTON_CODE
.text.Send_to_595 .text.Send_to_595
0x000000000800192a 0xee ./My_Soul/my_main.o 0x0000000008001b00 0xee ./My_Soul/my_main.o
0x000000000800192a Send_to_595 0x0000000008001b00 Send_to_595
.text.display 0x0000000008001a18 0x1fc ./My_Soul/my_main.o *fill* 0x0000000008001bee 0x2
0x0000000008001a18 display .text.display 0x0000000008001bf0 0x22c ./My_Soul/my_main.o
.text.mymain 0x0000000008001c14 0x130 ./My_Soul/my_main.o 0x0000000008001bf0 display
0x0000000008001c14 mymain .text.mymain 0x0000000008001e1c 0x798 ./My_Soul/my_main.o
0x0000000008001e1c mymain
.text.__libc_init_array .text.__libc_init_array
0x0000000008001d44 0x48 /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.macos64_2.0.0.202105311346/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/nofp/libc_nano.a(lib_a-init.o) 0x00000000080025b4 0x48 /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.macos64_2.0.0.202105311346/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/nofp/libc_nano.a(lib_a-init.o)
0x0000000008001d44 __libc_init_array 0x00000000080025b4 __libc_init_array
.text.memset 0x0000000008001d8c 0x10 /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.macos64_2.0.0.202105311346/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/nofp/libc_nano.a(lib_a-memset.o) .text.memset 0x00000000080025fc 0x10 /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.macos64_2.0.0.202105311346/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/nofp/libc_nano.a(lib_a-memset.o)
0x0000000008001d8c memset 0x00000000080025fc memset
*(.glue_7) *(.glue_7)
.glue_7 0x0000000008001d9c 0x0 linker stubs .glue_7 0x000000000800260c 0x0 linker stubs
*(.glue_7t) *(.glue_7t)
.glue_7t 0x0000000008001d9c 0x0 linker stubs .glue_7t 0x000000000800260c 0x0 linker stubs
*(.eh_frame) *(.eh_frame)
.eh_frame 0x0000000008001d9c 0x0 /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.macos64_2.0.0.202105311346/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/thumb/v6-m/nofp/crtbegin.o .eh_frame 0x000000000800260c 0x0 /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.macos64_2.0.0.202105311346/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/thumb/v6-m/nofp/crtbegin.o
*(.init) *(.init)
.init 0x0000000008001d9c 0x4 /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.macos64_2.0.0.202105311346/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/thumb/v6-m/nofp/crti.o .init 0x000000000800260c 0x4 /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.macos64_2.0.0.202105311346/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/thumb/v6-m/nofp/crti.o
0x0000000008001d9c _init 0x000000000800260c _init
.init 0x0000000008001da0 0x8 /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.macos64_2.0.0.202105311346/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/thumb/v6-m/nofp/crtn.o .init 0x0000000008002610 0x8 /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.macos64_2.0.0.202105311346/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/thumb/v6-m/nofp/crtn.o
*(.fini) *(.fini)
.fini 0x0000000008001da8 0x4 /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.macos64_2.0.0.202105311346/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/thumb/v6-m/nofp/crti.o .fini 0x0000000008002618 0x4 /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.macos64_2.0.0.202105311346/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/thumb/v6-m/nofp/crti.o
0x0000000008001da8 _fini 0x0000000008002618 _fini
.fini 0x0000000008001dac 0x8 /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.macos64_2.0.0.202105311346/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/thumb/v6-m/nofp/crtn.o .fini 0x000000000800261c 0x8 /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.macos64_2.0.0.202105311346/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/thumb/v6-m/nofp/crtn.o
0x0000000008001db4 . = ALIGN (0x4) 0x0000000008002624 . = ALIGN (0x4)
0x0000000008001db4 _etext = . 0x0000000008002624 _etext = .
.vfp11_veneer 0x0000000008001db4 0x0 .vfp11_veneer 0x0000000008002624 0x0
.vfp11_veneer 0x0000000008001db4 0x0 linker stubs .vfp11_veneer 0x0000000008002624 0x0 linker stubs
.v4_bx 0x0000000008001db4 0x0 .v4_bx 0x0000000008002624 0x0
.v4_bx 0x0000000008001db4 0x0 linker stubs .v4_bx 0x0000000008002624 0x0 linker stubs
.iplt 0x0000000008001db4 0x0 .iplt 0x0000000008002624 0x0
.iplt 0x0000000008001db4 0x0 /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.macos64_2.0.0.202105311346/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/thumb/v6-m/nofp/crtbegin.o .iplt 0x0000000008002624 0x0 /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.macos64_2.0.0.202105311346/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/thumb/v6-m/nofp/crtbegin.o
.rodata 0x0000000008001db4 0x44 .rodata 0x0000000008002624 0x58
0x0000000008001db4 . = ALIGN (0x4) 0x0000000008002624 . = ALIGN (0x4)
*(.rodata) *(.rodata)
.rodata 0x0000000008001db4 0x20 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.o .rodata 0x0000000008002624 0x20 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.o
*(.rodata*) *(.rodata*)
.rodata.AHBPrescTable .rodata.AHBPrescTable
0x0000000008001dd4 0x10 ./Core/Src/system_stm32f0xx.o 0x0000000008002644 0x10 ./Core/Src/system_stm32f0xx.o
0x0000000008001dd4 AHBPrescTable 0x0000000008002644 AHBPrescTable
.rodata.d_num_data .rodata.d_num_data
0x0000000008001de4 0x14 ./My_Soul/my_main.o 0x0000000008002654 0x14 ./My_Soul/my_main.o
0x0000000008001de4 d_num_data 0x0000000008002654 d_num_data
0x0000000008001df8 . = ALIGN (0x4) .rodata.mymain
0x0000000008002668 0x14 ./My_Soul/my_main.o
0x000000000800267c . = ALIGN (0x4)
.rel.dyn 0x0000000008001df8 0x0 .rel.dyn 0x000000000800267c 0x0
.rel.iplt 0x0000000008001df8 0x0 /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.macos64_2.0.0.202105311346/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/thumb/v6-m/nofp/crtbegin.o .rel.iplt 0x000000000800267c 0x0 /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.macos64_2.0.0.202105311346/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/thumb/v6-m/nofp/crtbegin.o
.ARM.extab 0x0000000008001df8 0x0 .ARM.extab 0x000000000800267c 0x0
0x0000000008001df8 . = ALIGN (0x4) 0x000000000800267c . = ALIGN (0x4)
*(.ARM.extab* .gnu.linkonce.armextab.*) *(.ARM.extab* .gnu.linkonce.armextab.*)
0x0000000008001df8 . = ALIGN (0x4) 0x000000000800267c . = ALIGN (0x4)
.ARM 0x0000000008001df8 0x0 .ARM 0x000000000800267c 0x0
0x0000000008001df8 . = ALIGN (0x4) 0x000000000800267c . = ALIGN (0x4)
0x0000000008001df8 __exidx_start = . 0x000000000800267c __exidx_start = .
*(.ARM.exidx*) *(.ARM.exidx*)
0x0000000008001df8 __exidx_end = . 0x000000000800267c __exidx_end = .
0x0000000008001df8 . = ALIGN (0x4) 0x000000000800267c . = ALIGN (0x4)
.preinit_array 0x0000000008001df8 0x0 .preinit_array 0x000000000800267c 0x0
0x0000000008001df8 . = ALIGN (0x4) 0x000000000800267c . = ALIGN (0x4)
0x0000000008001df8 PROVIDE (__preinit_array_start = .) 0x000000000800267c PROVIDE (__preinit_array_start = .)
*(.preinit_array*) *(.preinit_array*)
0x0000000008001df8 PROVIDE (__preinit_array_end = .) 0x000000000800267c PROVIDE (__preinit_array_end = .)
0x0000000008001df8 . = ALIGN (0x4) 0x000000000800267c . = ALIGN (0x4)
.init_array 0x0000000008001df8 0x4 .init_array 0x000000000800267c 0x4
0x0000000008001df8 . = ALIGN (0x4) 0x000000000800267c . = ALIGN (0x4)
0x0000000008001df8 PROVIDE (__init_array_start = .) 0x000000000800267c PROVIDE (__init_array_start = .)
*(SORT_BY_NAME(.init_array.*)) *(SORT_BY_NAME(.init_array.*))
*(.init_array*) *(.init_array*)
.init_array 0x0000000008001df8 0x4 /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.macos64_2.0.0.202105311346/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/thumb/v6-m/nofp/crtbegin.o .init_array 0x000000000800267c 0x4 /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.macos64_2.0.0.202105311346/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/thumb/v6-m/nofp/crtbegin.o
0x0000000008001dfc PROVIDE (__init_array_end = .) 0x0000000008002680 PROVIDE (__init_array_end = .)
0x0000000008001dfc . = ALIGN (0x4) 0x0000000008002680 . = ALIGN (0x4)
.fini_array 0x0000000008001dfc 0x4 .fini_array 0x0000000008002680 0x4
0x0000000008001dfc . = ALIGN (0x4) 0x0000000008002680 . = ALIGN (0x4)
[!provide] PROVIDE (__fini_array_start = .) [!provide] PROVIDE (__fini_array_start = .)
*(SORT_BY_NAME(.fini_array.*)) *(SORT_BY_NAME(.fini_array.*))
*(.fini_array*) *(.fini_array*)
.fini_array 0x0000000008001dfc 0x4 /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.macos64_2.0.0.202105311346/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/thumb/v6-m/nofp/crtbegin.o .fini_array 0x0000000008002680 0x4 /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.macos64_2.0.0.202105311346/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/thumb/v6-m/nofp/crtbegin.o
[!provide] PROVIDE (__fini_array_end = .) [!provide] PROVIDE (__fini_array_end = .)
0x0000000008001e00 . = ALIGN (0x4) 0x0000000008002684 . = ALIGN (0x4)
0x0000000008001e00 _sidata = LOADADDR (.data) 0x0000000008002684 _sidata = LOADADDR (.data)
.data 0x0000000020000000 0xc load address 0x0000000008001e00 .data 0x0000000020000000 0x10 load address 0x0000000008002684
0x0000000020000000 . = ALIGN (0x4) 0x0000000020000000 . = ALIGN (0x4)
0x0000000020000000 _sdata = . 0x0000000020000000 _sdata = .
*(.data) *(.data)
@@ -2974,48 +2985,54 @@ LOAD /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.id
.data.uwTickFreq .data.uwTickFreq
0x0000000020000008 0x1 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.o 0x0000000020000008 0x1 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.o
0x0000000020000008 uwTickFreq 0x0000000020000008 uwTickFreq
*fill* 0x0000000020000009 0x3
.data.countdown_set
0x000000002000000c 0x4 ./My_Soul/my_main.o
0x000000002000000c countdown_set
*(.RamFunc) *(.RamFunc)
*(.RamFunc*) *(.RamFunc*)
0x000000002000000c . = ALIGN (0x4) 0x0000000020000010 . = ALIGN (0x4)
*fill* 0x0000000020000009 0x3 0x0000000020000010 _edata = .
0x000000002000000c _edata = .
.igot.plt 0x000000002000000c 0x0 load address 0x0000000008001e0c .igot.plt 0x0000000020000010 0x0 load address 0x0000000008002694
.igot.plt 0x000000002000000c 0x0 /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.macos64_2.0.0.202105311346/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/thumb/v6-m/nofp/crtbegin.o .igot.plt 0x0000000020000010 0x0 /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.macos64_2.0.0.202105311346/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/thumb/v6-m/nofp/crtbegin.o
0x000000002000000c . = ALIGN (0x4) 0x0000000020000010 . = ALIGN (0x4)
.bss 0x000000002000000c 0x98 load address 0x0000000008001e0c .bss 0x0000000020000010 0xac load address 0x0000000008002694
0x000000002000000c _sbss = . 0x0000000020000010 _sbss = .
0x000000002000000c __bss_start__ = _sbss 0x0000000020000010 __bss_start__ = _sbss
*(.bss) *(.bss)
.bss 0x000000002000000c 0x1c /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.macos64_2.0.0.202105311346/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/thumb/v6-m/nofp/crtbegin.o .bss 0x0000000020000010 0x1c /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.macos64_2.0.0.202105311346/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/thumb/v6-m/nofp/crtbegin.o
*(.bss*) *(.bss*)
.bss.countdown
0x000000002000002c 0x4 ./My_Soul/my_main.o
0x000000002000002c countdown
*(COMMON) *(COMMON)
COMMON 0x0000000020000028 0x40 ./Core/Src/main.o COMMON 0x0000000020000030 0x40 ./Core/Src/main.o
0x0000000020000028 hadc 0x0000000020000030 hadc
COMMON 0x0000000020000068 0x4 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.o COMMON 0x0000000020000070 0x4 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.o
0x0000000020000068 uwTick 0x0000000020000070 uwTick
COMMON 0x000000002000006c 0x38 ./My_Soul/my_main.o COMMON 0x0000000020000074 0x48 ./My_Soul/my_main.o
0x000000002000006c key4 0x0000000020000074 key4
0x0000000020000078 dis_buff 0x0000000020000084 dis_buff
0x0000000020000080 key1 0x000000002000008c key1
0x000000002000008c key3 0x000000002000009c key3
0x0000000020000098 key2 0x00000000200000ac key2
0x00000000200000a4 . = ALIGN (0x4) 0x00000000200000bc . = ALIGN (0x4)
0x00000000200000a4 _ebss = . 0x00000000200000bc _ebss = .
0x00000000200000a4 __bss_end__ = _ebss 0x00000000200000bc __bss_end__ = _ebss
._user_heap_stack ._user_heap_stack
0x00000000200000a4 0x804 load address 0x0000000008001e0c 0x00000000200000bc 0x804 load address 0x0000000008002694
0x00000000200000a8 . = ALIGN (0x8) 0x00000000200000c0 . = ALIGN (0x8)
*fill* 0x00000000200000a4 0x4 *fill* 0x00000000200000bc 0x4
[!provide] PROVIDE (end = .) [!provide] PROVIDE (end = .)
0x00000000200000a8 PROVIDE (_end = .) 0x00000000200000c0 PROVIDE (_end = .)
0x00000000200004a8 . = (. + _Min_Heap_Size) 0x00000000200004c0 . = (. + _Min_Heap_Size)
*fill* 0x00000000200000a8 0x400 *fill* 0x00000000200000c0 0x400
0x00000000200008a8 . = (. + _Min_Stack_Size) 0x00000000200008c0 . = (. + _Min_Stack_Size)
*fill* 0x00000000200004a8 0x400 *fill* 0x00000000200004c0 0x400
0x00000000200008a8 . = ALIGN (0x8) 0x00000000200008c0 . = ALIGN (0x8)
/DISCARD/ /DISCARD/
libc.a(*) libc.a(*)
@@ -3060,16 +3077,18 @@ LOAD /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.id
.ARM.attributes .ARM.attributes
0x00000000000002a7 0x1e /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.macos64_2.0.0.202105311346/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/thumb/v6-m/nofp/libgcc.a(_udivsi3.o) 0x00000000000002a7 0x1e /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.macos64_2.0.0.202105311346/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/thumb/v6-m/nofp/libgcc.a(_udivsi3.o)
.ARM.attributes .ARM.attributes
0x00000000000002c5 0x1e /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.macos64_2.0.0.202105311346/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/thumb/v6-m/nofp/libgcc.a(_dvmd_tls.o) 0x00000000000002c5 0x1e /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.macos64_2.0.0.202105311346/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/thumb/v6-m/nofp/libgcc.a(_divsi3.o)
.ARM.attributes .ARM.attributes
0x00000000000002e3 0x1e /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.macos64_2.0.0.202105311346/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/thumb/v6-m/nofp/crtn.o 0x00000000000002e3 0x1e /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.macos64_2.0.0.202105311346/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/thumb/v6-m/nofp/libgcc.a(_dvmd_tls.o)
.ARM.attributes
0x0000000000000301 0x1e /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.macos64_2.0.0.202105311346/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/thumb/v6-m/nofp/crtn.o
OUTPUT(Motor_Controller.elf elf32-littlearm) OUTPUT(Motor_Controller.elf elf32-littlearm)
LOAD linker stubs LOAD linker stubs
LOAD /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.macos64_2.0.0.202105311346/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/nofp/libc.a LOAD /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.macos64_2.0.0.202105311346/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/nofp/libc.a
LOAD /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.macos64_2.0.0.202105311346/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/nofp/libm.a LOAD /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.macos64_2.0.0.202105311346/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/nofp/libm.a
LOAD /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.macos64_2.0.0.202105311346/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/thumb/v6-m/nofp/libgcc.a LOAD /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.macos64_2.0.0.202105311346/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/thumb/v6-m/nofp/libgcc.a
.debug_info 0x0000000000000000 0x48da .debug_info 0x0000000000000000 0x4910
.debug_info 0x0000000000000000 0xa5a ./Core/Src/main.o .debug_info 0x0000000000000000 0xa5a ./Core/Src/main.o
.debug_info 0x0000000000000a5a 0x888 ./Core/Src/stm32f0xx_hal_msp.o .debug_info 0x0000000000000a5a 0x888 ./Core/Src/stm32f0xx_hal_msp.o
.debug_info 0x00000000000012e2 0x1b3 ./Core/Src/stm32f0xx_it.o .debug_info 0x00000000000012e2 0x1b3 ./Core/Src/stm32f0xx_it.o
@@ -3080,10 +3099,10 @@ LOAD /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.id
.debug_info 0x0000000000002b9a 0x7a0 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.o .debug_info 0x0000000000002b9a 0x7a0 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.o
.debug_info 0x000000000000333a 0x6d3 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.o .debug_info 0x000000000000333a 0x6d3 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.o
.debug_info 0x0000000000003a0d 0x88d ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.o .debug_info 0x0000000000003a0d 0x88d ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.o
.debug_info 0x000000000000429a 0x1ec ./My_Soul/button.o .debug_info 0x000000000000429a 0x1d4 ./My_Soul/button.o
.debug_info 0x0000000000004486 0x454 ./My_Soul/my_main.o .debug_info 0x000000000000446e 0x4a2 ./My_Soul/my_main.o
.debug_abbrev 0x0000000000000000 0x1333 .debug_abbrev 0x0000000000000000 0x1342
.debug_abbrev 0x0000000000000000 0x208 ./Core/Src/main.o .debug_abbrev 0x0000000000000000 0x208 ./Core/Src/main.o
.debug_abbrev 0x0000000000000208 0x1ac ./Core/Src/stm32f0xx_hal_msp.o .debug_abbrev 0x0000000000000208 0x1ac ./Core/Src/stm32f0xx_hal_msp.o
.debug_abbrev 0x00000000000003b4 0xd2 ./Core/Src/stm32f0xx_it.o .debug_abbrev 0x00000000000003b4 0xd2 ./Core/Src/stm32f0xx_it.o
@@ -3095,7 +3114,7 @@ LOAD /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.id
.debug_abbrev 0x0000000000000c95 0x1e8 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.o .debug_abbrev 0x0000000000000c95 0x1e8 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.o
.debug_abbrev 0x0000000000000e7d 0x23b ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.o .debug_abbrev 0x0000000000000e7d 0x23b ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.o
.debug_abbrev 0x00000000000010b8 0xf6 ./My_Soul/button.o .debug_abbrev 0x00000000000010b8 0xf6 ./My_Soul/button.o
.debug_abbrev 0x00000000000011ae 0x185 ./My_Soul/my_main.o .debug_abbrev 0x00000000000011ae 0x194 ./My_Soul/my_main.o
.debug_aranges 0x0000000000000000 0x4b0 .debug_aranges 0x0000000000000000 0x4b0
.debug_aranges .debug_aranges
@@ -3189,7 +3208,7 @@ LOAD /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.id
.debug_macro 0x000000000000e563 0x1cc ./My_Soul/button.o .debug_macro 0x000000000000e563 0x1cc ./My_Soul/button.o
.debug_macro 0x000000000000e72f 0x206 ./My_Soul/my_main.o .debug_macro 0x000000000000e72f 0x206 ./My_Soul/my_main.o
.debug_line 0x0000000000000000 0x6b87 .debug_line 0x0000000000000000 0x6e34
.debug_line 0x0000000000000000 0x844 ./Core/Src/main.o .debug_line 0x0000000000000000 0x844 ./Core/Src/main.o
.debug_line 0x0000000000000844 0x727 ./Core/Src/stm32f0xx_hal_msp.o .debug_line 0x0000000000000844 0x727 ./Core/Src/stm32f0xx_hal_msp.o
.debug_line 0x0000000000000f6b 0x744 ./Core/Src/stm32f0xx_it.o .debug_line 0x0000000000000f6b 0x744 ./Core/Src/stm32f0xx_it.o
@@ -3201,9 +3220,9 @@ LOAD /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.id
.debug_line 0x000000000000435c 0xad7 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.o .debug_line 0x000000000000435c 0xad7 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.o
.debug_line 0x0000000000004e33 0xd46 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.o .debug_line 0x0000000000004e33 0xd46 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.o
.debug_line 0x0000000000005b79 0x736 ./My_Soul/button.o .debug_line 0x0000000000005b79 0x736 ./My_Soul/button.o
.debug_line 0x00000000000062af 0x8d8 ./My_Soul/my_main.o .debug_line 0x00000000000062af 0xb85 ./My_Soul/my_main.o
.debug_str 0x0000000000000000 0x56655 .debug_str 0x0000000000000000 0x56677
.debug_str 0x0000000000000000 0x554fa ./Core/Src/main.o .debug_str 0x0000000000000000 0x554fa ./Core/Src/main.o
0x557e3 (size before relaxing) 0x557e3 (size before relaxing)
.debug_str 0x00000000000554fa 0x4e ./Core/Src/stm32f0xx_hal_msp.o .debug_str 0x00000000000554fa 0x4e ./Core/Src/stm32f0xx_hal_msp.o
@@ -3225,9 +3244,9 @@ LOAD /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.id
.debug_str 0x0000000000056125 0x240 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.o .debug_str 0x0000000000056125 0x240 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.o
0x554c8 (size before relaxing) 0x554c8 (size before relaxing)
.debug_str 0x0000000000056365 0x47 ./My_Soul/button.o .debug_str 0x0000000000056365 0x47 ./My_Soul/button.o
0x5520b (size before relaxing) 0x551f7 (size before relaxing)
.debug_str 0x00000000000563ac 0x2a9 ./My_Soul/my_main.o .debug_str 0x00000000000563ac 0x2cb ./My_Soul/my_main.o
0x554c8 (size before relaxing) 0x554ea (size before relaxing)
.comment 0x0000000000000000 0x53 .comment 0x0000000000000000 0x53
.comment 0x0000000000000000 0x53 ./Core/Src/main.o .comment 0x0000000000000000 0x53 ./Core/Src/main.o
@@ -3243,7 +3262,7 @@ LOAD /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.id
.comment 0x0000000000000053 0x54 ./My_Soul/button.o .comment 0x0000000000000053 0x54 ./My_Soul/button.o
.comment 0x0000000000000053 0x54 ./My_Soul/my_main.o .comment 0x0000000000000053 0x54 ./My_Soul/my_main.o
.debug_frame 0x0000000000000000 0xe98 .debug_frame 0x0000000000000000 0xeb8
.debug_frame 0x0000000000000000 0xa8 ./Core/Src/main.o .debug_frame 0x0000000000000000 0xa8 ./Core/Src/main.o
.debug_frame 0x00000000000000a8 0x70 ./Core/Src/stm32f0xx_hal_msp.o .debug_frame 0x00000000000000a8 0x70 ./Core/Src/stm32f0xx_hal_msp.o
.debug_frame 0x0000000000000118 0x9c ./Core/Src/stm32f0xx_it.o .debug_frame 0x0000000000000118 0x9c ./Core/Src/stm32f0xx_it.o
@@ -3258,3 +3277,4 @@ LOAD /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.id
.debug_frame 0x0000000000000e2c 0x2c /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.macos64_2.0.0.202105311346/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/nofp/libc_nano.a(lib_a-init.o) .debug_frame 0x0000000000000e2c 0x2c /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.macos64_2.0.0.202105311346/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/nofp/libc_nano.a(lib_a-init.o)
.debug_frame 0x0000000000000e58 0x20 /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.macos64_2.0.0.202105311346/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/nofp/libc_nano.a(lib_a-memset.o) .debug_frame 0x0000000000000e58 0x20 /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.macos64_2.0.0.202105311346/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/nofp/libc_nano.a(lib_a-memset.o)
.debug_frame 0x0000000000000e78 0x20 /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.macos64_2.0.0.202105311346/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/thumb/v6-m/nofp/libgcc.a(_udivsi3.o) .debug_frame 0x0000000000000e78 0x20 /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.macos64_2.0.0.202105311346/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/thumb/v6-m/nofp/libgcc.a(_udivsi3.o)
.debug_frame 0x0000000000000e98 0x20 /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.macos64_2.0.0.202105311346/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/thumb/v6-m/nofp/libgcc.a(_divsi3.o)
+1 -1
View File
@@ -1,3 +1,3 @@
my_main.c:43:6:Send_to_595 24 static my_main.c:43:6:Send_to_595 24 static
my_main.c:76:6:display 16 static my_main.c:76:6:display 16 static
my_main.c:134:6:mymain 16 static my_main.c:141:6:mymain 24 static
+14 -7
View File
@@ -37,39 +37,46 @@ NVIC.SysTick_IRQn=true\:3\:0\:false\:false\:true\:false\:true
PA0.Locked=true PA0.Locked=true
PA0.Mode=IN0 PA0.Mode=IN0
PA0.Signal=ADC_IN0 PA0.Signal=ADC_IN0
PA10.GPIOParameters=GPIO_Label PA10.GPIOParameters=GPIO_PuPd,GPIO_Label
PA10.GPIO_Label=KEY4 PA10.GPIO_Label=KEY4
PA10.GPIO_PuPd=GPIO_PULLDOWN
PA10.Locked=true PA10.Locked=true
PA10.Signal=GPIO_Input PA10.Signal=GPIO_Input
PA13.Mode=Serial_Wire PA13.Mode=Serial_Wire
PA13.Signal=SYS_SWDIO PA13.Signal=SYS_SWDIO
PA14.Mode=Serial_Wire PA14.Mode=Serial_Wire
PA14.Signal=SYS_SWCLK PA14.Signal=SYS_SWCLK
PA3.GPIOParameters=GPIO_Speed,GPIO_Label PA3.GPIOParameters=GPIO_Speed,GPIO_PuPd,GPIO_Label
PA3.GPIO_Label=HC595_DCK PA3.GPIO_Label=HC595_DCK
PA3.GPIO_PuPd=GPIO_PULLDOWN
PA3.GPIO_Speed=GPIO_SPEED_FREQ_HIGH PA3.GPIO_Speed=GPIO_SPEED_FREQ_HIGH
PA3.Locked=true PA3.Locked=true
PA3.Signal=GPIO_Output PA3.Signal=GPIO_Output
PA4.GPIOParameters=GPIO_Speed,GPIO_Label PA4.GPIOParameters=GPIO_Speed,GPIO_PuPd,GPIO_Label
PA4.GPIO_Label=HC595_RCK PA4.GPIO_Label=HC595_RCK
PA4.GPIO_PuPd=GPIO_PULLDOWN
PA4.GPIO_Speed=GPIO_SPEED_FREQ_HIGH PA4.GPIO_Speed=GPIO_SPEED_FREQ_HIGH
PA4.Locked=true PA4.Locked=true
PA4.Signal=GPIO_Output PA4.Signal=GPIO_Output
PA5.GPIOParameters=GPIO_Speed,GPIO_Label PA5.GPIOParameters=GPIO_Speed,GPIO_PuPd,GPIO_Label
PA5.GPIO_Label=HC595_SCK PA5.GPIO_Label=HC595_SCK
PA5.GPIO_PuPd=GPIO_PULLDOWN
PA5.GPIO_Speed=GPIO_SPEED_FREQ_HIGH PA5.GPIO_Speed=GPIO_SPEED_FREQ_HIGH
PA5.Locked=true PA5.Locked=true
PA5.Signal=GPIO_Output PA5.Signal=GPIO_Output
PA6.GPIOParameters=GPIO_Label PA6.GPIOParameters=GPIO_PuPd,GPIO_Label
PA6.GPIO_Label=KEY1 PA6.GPIO_Label=KEY1
PA6.GPIO_PuPd=GPIO_PULLDOWN
PA6.Locked=true PA6.Locked=true
PA6.Signal=GPIO_Input PA6.Signal=GPIO_Input
PA7.GPIOParameters=GPIO_Label PA7.GPIOParameters=GPIO_PuPd,GPIO_Label
PA7.GPIO_Label=KEY2 PA7.GPIO_Label=KEY2
PA7.GPIO_PuPd=GPIO_PULLDOWN
PA7.Locked=true PA7.Locked=true
PA7.Signal=GPIO_Input PA7.Signal=GPIO_Input
PA9.GPIOParameters=GPIO_Label PA9.GPIOParameters=GPIO_PuPd,GPIO_Label
PA9.GPIO_Label=KEY3 PA9.GPIO_Label=KEY3
PA9.GPIO_PuPd=GPIO_PULLDOWN
PA9.Locked=true PA9.Locked=true
PA9.Signal=GPIO_Input PA9.Signal=GPIO_Input
PF0-OSC_IN.GPIOParameters=GPIO_Speed,GPIO_Label PF0-OSC_IN.GPIOParameters=GPIO_Speed,GPIO_Label
+3 -3
View File
@@ -33,8 +33,8 @@ void GEI_BUTTON_CODE(struct button *bt,uint8_t in)
{ {
if(HAL_GetTick()>bt->time+t) if(HAL_GetTick()>bt->time+t)
{ {
bt->code=255; bt->code=-1;
bt->times=255; bt->times=-1;
} }
} }
@@ -44,7 +44,7 @@ void GEI_BUTTON_CODE(struct button *bt,uint8_t in)
{ {
if(bt->lock==1) if(bt->lock==1)
{ {
if(bt->code==255) if(bt->code==-1)
{ {
}else }else
+2 -2
View File
@@ -12,10 +12,10 @@
struct button struct button
{ {
uint16_t code; int code;
uint8_t lock; uint8_t lock;
uint32_t time; uint32_t time;
uint16_t times; int times;
}; };
void GEI_BUTTON_CODE(struct button *bt,uint8_t in); void GEI_BUTTON_CODE(struct button *bt,uint8_t in);
+181 -9
View File
@@ -14,10 +14,10 @@
#define MOTA(x) HAL_GPIO_WritePin(MOTA_GPIO_Port, MOTA_Pin, x); #define MOTA(x) HAL_GPIO_WritePin(MOTA_GPIO_Port, MOTA_Pin, x);
#define MOTB(x) HAL_GPIO_WritePin(MOTB_GPIO_Port, MOTB_Pin, x); #define MOTB(x) HAL_GPIO_WritePin(MOTB_GPIO_Port, MOTB_Pin, x);
#define KEY1 HAL_GPIO_ReadPin(KEY1_GPIO_Port, KEY1_Pin) #define KEY4 HAL_GPIO_ReadPin(KEY1_GPIO_Port, KEY1_Pin)
#define KEY2 HAL_GPIO_ReadPin(KEY2_GPIO_Port, KEY2_Pin) #define KEY1 HAL_GPIO_ReadPin(KEY2_GPIO_Port, KEY2_Pin)
#define KEY3 HAL_GPIO_ReadPin(KEY3_GPIO_Port, KEY3_Pin) #define KEY2 HAL_GPIO_ReadPin(KEY3_GPIO_Port, KEY3_Pin)
#define KEY4 HAL_GPIO_ReadPin(KEY4_GPIO_Port, KEY4_Pin) #define KEY3 HAL_GPIO_ReadPin(KEY4_GPIO_Port, KEY4_Pin)
struct button key1,key2,key3,key4; struct button key1,key2,key3,key4;
@@ -76,9 +76,10 @@ void Send_to_595(char h,char l)
void display() void display()
{ {
char h_buff=0,l_buff=0; char h_buff=0,l_buff=0;
Send_to_595(h_buff,l_buff);
h_buff=0,l_buff=0; h_buff=0,l_buff=0;
Send_to_595(h_buff,l_buff);
h_buff=~0x01; h_buff=~0x01;
l_buff=dis_buff.d_num[0]>=10?0:d_num_data[0][dis_buff.d_num[0]]; l_buff=dis_buff.d_num[0]>=10?0:d_num_data[0][dis_buff.d_num[0]];
if(dis_buff.dot1==1) if(dis_buff.dot1==1)
@@ -88,8 +89,9 @@ void display()
Send_to_595(h_buff,l_buff); Send_to_595(h_buff,l_buff);
h_buff=0,l_buff=0; h_buff=0,l_buff=0;
Send_to_595(h_buff,l_buff);
h_buff=~0x80; h_buff=~0x80;
l_buff=dis_buff.d_num[0]>=10?0:d_num_data[1][dis_buff.d_num[1]]; l_buff=dis_buff.d_num[1]>=10?0:d_num_data[1][dis_buff.d_num[1]];
if(dis_buff.dot2==1) if(dis_buff.dot2==1)
{ {
l_buff|=0x10; l_buff|=0x10;
@@ -97,8 +99,9 @@ void display()
Send_to_595(h_buff,l_buff); Send_to_595(h_buff,l_buff);
h_buff=0,l_buff=0; h_buff=0,l_buff=0;
Send_to_595(h_buff,l_buff);
h_buff=~0x40; h_buff=~0x40;
l_buff=dis_buff.d_num[0]>=10?0:d_num_data[0][dis_buff.d_num[2]]; l_buff=dis_buff.d_num[2]>=10?0:d_num_data[0][dis_buff.d_num[2]];
if(dis_buff.dot3==1) if(dis_buff.dot3==1)
{ {
l_buff|=0x80; l_buff|=0x80;
@@ -106,8 +109,9 @@ void display()
Send_to_595(h_buff,l_buff); Send_to_595(h_buff,l_buff);
h_buff=0,l_buff=0; h_buff=0,l_buff=0;
Send_to_595(h_buff,l_buff);
h_buff=0xC1; h_buff=0xC1;
l_buff=dis_buff.d_num[0]>=10?0:d_num_data[1][dis_buff.d_num[3]]; l_buff=dis_buff.d_num[3]>=10?0:d_num_data[1][dis_buff.d_num[3]];
if(dis_buff.dot4==1) if(dis_buff.dot4==1)
{ {
l_buff|=0x10; l_buff|=0x10;
@@ -131,10 +135,14 @@ void display()
Send_to_595(h_buff,l_buff); Send_to_595(h_buff,l_buff);
} }
long countdown=0;
long countdown_set=15000;
void mymain() void mymain()
{ {
uint32_t runtime=0; uint32_t runtime=0,move=0;
uint8_t mode=0; uint8_t mode=0;
uint16_t adc;
MOTA(0); MOTA(0);
MOTB(0); MOTB(0);
@@ -147,11 +155,175 @@ void mymain()
dis_buff.d_num[2]=0xff; dis_buff.d_num[2]=0xff;
dis_buff.d_num[3]=0xff; dis_buff.d_num[3]=0xff;
countdown=1000;
while(1) while(1)
{ {
switch(mode) switch(mode)
{ {
case 0: case 0:
//Startup
if(HAL_GetTick()>move)
{
move=HAL_GetTick()+100;
countdown-=100;
if(countdown<0)
{
mode=1;
}
dis_buff.d_num[0]=((countdown/100)%10);
dis_buff.d_num[1]=((countdown/100)%10);
dis_buff.d_num[2]=((countdown/100)%10);
dis_buff.d_num[3]=((countdown/100)%10);
dis_buff.led_err=countdown>>0;
dis_buff.led_p=countdown>>1;
dis_buff.led_n=countdown>>2;
dis_buff.dot1=countdown>>3;
dis_buff.dot2=countdown>>4;
dis_buff.dot3=countdown>>5;
dis_buff.dot4=countdown>>6;
}
break;
case 1:
//standby
MOTA(0);
MOTB(0);
dis_buff.d_num[0]=0xff;
dis_buff.d_num[1]=0xff;
dis_buff.d_num[2]=0xff;
dis_buff.d_num[3]=0xff;
dis_buff.led_err=0;
dis_buff.led_p=0;
dis_buff.led_n=0;
dis_buff.dot1=0;
dis_buff.dot2=0;
dis_buff.dot3=0;
dis_buff.dot4=0;
if(key2.code!=0)
{
mode=2;
countdown=countdown_set;
}
if(key3.code!=0)
{
mode=3;
countdown=countdown_set;
}
if(key1.code!=0)
{
mode=4;
countdown=10000;
}
break;
case 2:
MOTA(0);
MOTB(1);
if(HAL_GetTick()>move)
{
move=HAL_GetTick()+100;
if(dis_buff.led_p==1)
{
dis_buff.led_p=0;
}else
{
dis_buff.led_p=1;
}
countdown-=100;
if(countdown<0)
{
mode=1;
}
}
dis_buff.d_num[3]=(countdown/100)%10;
dis_buff.d_num[2]=(countdown/1000)%10;
dis_buff.d_num[1]=((countdown/10000)%10);
dis_buff.d_num[1]=dis_buff.d_num[1]==0?255:dis_buff.d_num[1];
dis_buff.dot3=1;
dis_buff.led_n=0;
if(key3.code!=0)
{
mode=3;
countdown=countdown_set-countdown;
}
if(key4.code!=0)
{
mode=1;
}
break;
case 3:
MOTB(0);
MOTA(1);
if(HAL_GetTick()>move)
{
move=HAL_GetTick()+100;
if(dis_buff.led_n==1)
{
dis_buff.led_n=0;
}else
{
dis_buff.led_n=1;
}
countdown-=100;
if(countdown<0)
{
mode=1;
}
}
dis_buff.d_num[3]=(countdown/100)%10;
dis_buff.d_num[2]=(countdown/1000)%10;
dis_buff.d_num[1]=((countdown/10000)%10);
dis_buff.d_num[1]=dis_buff.d_num[1]==0?255:dis_buff.d_num[1];
dis_buff.dot3=1;
dis_buff.led_p=0;
if(key2.code!=0)
{
mode=2;
countdown=countdown_set-countdown;
}
if(key4.code!=0)
{
mode=1;
}
break;
case 4:
//setting mode
if(HAL_GetTick()>move)
{
move=HAL_GetTick()+100;
if(dis_buff.dot1==1)
{
dis_buff.dot1=0;
}else
{
dis_buff.dot1=1;
}
countdown-=100;
if(countdown<0)
{
mode=1;
}
if(key2.code<0){countdown_set+=1000;countdown=10000;}
if(key3.code<0){countdown_set-=1000;countdown=10000;}
}
if(key2.code>0){countdown_set+=100;countdown=10000;}
if(key3.code>0){countdown_set-=100;countdown=10000;}
if(countdown_set<100){countdown_set=100;}
if(countdown_set>60000){countdown_set=60000;}
if(key1.code!=0){mode=1;}
dis_buff.d_num[3]=(countdown_set/100)%10;
dis_buff.d_num[2]=(countdown_set/1000)%10;
dis_buff.d_num[1]=((countdown_set/10000)%10);
dis_buff.d_num[1]=dis_buff.d_num[1]==0?255:dis_buff.d_num[1];
dis_buff.dot3=1;
break; break;
} }