From 30a814adb9bd9fb13fff3c86c2815f5bda929431 Mon Sep 17 00:00:00 2001 From: kevin Date: Sun, 8 Aug 2021 14:49:30 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8A=A0=E5=85=A5eeprom=E9=A9=B1=E5=8A=A8?= =?UTF-8?q?=EF=BC=8C=E7=94=A8=E4=BA=8E=E4=BF=9D=E5=AD=98=E5=B1=8F=E5=B9=95?= =?UTF-8?q?=E8=A7=A6=E6=8E=A7=E7=9A=84=E6=A0=A1=E5=87=86=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .mxproject | 4 +- Core/Inc/stm32f1xx_hal_conf.h | 2 +- Core/Src/main.c | 38 + Core/Src/stm32f1xx_hal_msp.c | 65 + Debug/Core/Src/main.d | 3 + Debug/Core/Src/main.su | 11 +- Debug/Core/Src/stm32f1xx_hal_msp.d | 3 + Debug/Core/Src/stm32f1xx_hal_msp.su | 10 +- Debug/Core/Src/stm32f1xx_it.d | 3 + Debug/Core/Src/system_stm32f1xx.d | 3 + .../STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.d | 3 + .../Src/stm32f1xx_hal_cortex.d | 3 + .../Src/stm32f1xx_hal_dma.d | 3 + .../Src/stm32f1xx_hal_exti.d | 3 + .../Src/stm32f1xx_hal_flash.d | 3 + .../Src/stm32f1xx_hal_flash_ex.d | 3 + .../Src/stm32f1xx_hal_gpio.d | 3 + .../Src/stm32f1xx_hal_gpio_ex.d | 3 + .../Src/stm32f1xx_hal_i2c.d | 77 + .../Src/stm32f1xx_hal_i2c.su | 81 + .../Src/stm32f1xx_hal_pwr.d | 3 + .../Src/stm32f1xx_hal_rcc.d | 3 + .../Src/stm32f1xx_hal_rcc_ex.d | 3 + .../Src/stm32f1xx_hal_sram.d | 3 + .../Src/stm32f1xx_hal_tim.d | 3 + .../Src/stm32f1xx_hal_tim_ex.d | 3 + .../Src/stm32f1xx_ll_fsmc.d | 3 + .../STM32F1xx_HAL_Driver/Src/subdir.mk | 3 + Debug/HW_Devices/LCD.d | 3 + Debug/HW_Devices/eeprom.d | 80 + Debug/HW_Devices/eeprom.su | 6 + Debug/HW_Devices/subdir.mk | 3 + Debug/HW_Devices/touch.d | 7 +- Debug/HW_Devices/touch.su | 16 +- Debug/SW_APPs/Main_APP.d | 8 +- Debug/SW_APPs/Main_APP.su | 2 +- Debug/SW_APPs/windows.d | 3 + Debug/m3s.bin | Bin 32920 -> 37880 bytes Debug/m3s.list | 23716 +++++++++------- Debug/m3s.map | 2280 +- Debug/objects.list | 2 + .../Inc/stm32f1xx_hal_i2c.h | 740 + .../Src/stm32f1xx_hal_i2c.c | 7618 +++++ HW_Devices/eeprom.c | 93 + HW_Devices/eeprom.h | 38 + HW_Devices/touch.c | 15 +- SW_APPs/Main_APP.c | 5 + m3s.ioc | 41 +- 48 files changed, 23871 insertions(+), 11153 deletions(-) create mode 100644 Debug/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.d create mode 100644 Debug/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.su create mode 100644 Debug/HW_Devices/eeprom.d create mode 100644 Debug/HW_Devices/eeprom.su create mode 100644 Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_i2c.h create mode 100644 Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.c create mode 100644 HW_Devices/eeprom.c create mode 100644 HW_Devices/eeprom.h diff --git a/.mxproject b/.mxproject index 664e56c..dcf7a55 100644 --- a/.mxproject +++ b/.mxproject @@ -1,8 +1,8 @@ [PreviousLibFiles] -LibFiles=Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_ll_fsmc.h;Drivers/STM32F1xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h;Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal.h;Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_def.h;Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_rcc.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/Src/stm32f1xx_hal_gpio_ex.c;Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_dma_ex.h;Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_dma.h;Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_cortex.h;Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_pwr.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_exti.h;Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_sram.h;Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h;Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h;Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_fsmc.c;Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.c;Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.c;Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc_ex.c;Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio.c;Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_dma.c;Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.c;Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_pwr.c;Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c;Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash_ex.c;Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c;Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_sram.c;Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim.c;Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim_ex.c;Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_ll_fsmc.h;Drivers/STM32F1xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h;Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal.h;Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_def.h;Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_rcc.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/Src/stm32f1xx_hal_gpio_ex.c;Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_dma_ex.h;Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_dma.h;Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_cortex.h;Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_pwr.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_exti.h;Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_sram.h;Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h;Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h;Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xe.h;Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f1xx.h;Drivers/CMSIS/Device/ST/STM32F1xx/Include/system_stm32f1xx.h;Drivers/CMSIS/Device/ST/STM32F1xx/Source/Templates/system_stm32f1xx.c;Drivers/CMSIS/Include/core_cm7.h;Drivers/CMSIS/Include/tz_context.h;Drivers/CMSIS/Include/core_cm3.h;Drivers/CMSIS/Include/cmsis_compiler.h;Drivers/CMSIS/Include/cmsis_armclang.h;Drivers/CMSIS/Include/mpu_armv7.h;Drivers/CMSIS/Include/cmsis_armcc.h;Drivers/CMSIS/Include/core_cm4.h;Drivers/CMSIS/Include/core_cm0.h;Drivers/CMSIS/Include/cmsis_iccarm.h;Drivers/CMSIS/Include/core_armv8mml.h;Drivers/CMSIS/Include/core_sc000.h;Drivers/CMSIS/Include/core_cm1.h;Drivers/CMSIS/Include/mpu_armv8.h;Drivers/CMSIS/Include/core_sc300.h;Drivers/CMSIS/Include/cmsis_gcc.h;Drivers/CMSIS/Include/cmsis_version.h;Drivers/CMSIS/Include/core_cm23.h;Drivers/CMSIS/Include/core_cm33.h;Drivers/CMSIS/Include/core_cm0plus.h;Drivers/CMSIS/Include/core_armv8mbl.h; +LibFiles=Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_ll_fsmc.h;Drivers/STM32F1xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h;Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal.h;Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_def.h;Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_rcc.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/Src/stm32f1xx_hal_gpio_ex.c;Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_dma_ex.h;Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_dma.h;Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_cortex.h;Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_pwr.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_exti.h;Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_sram.h;Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_i2c.h;Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h;Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h;Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_fsmc.c;Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.c;Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.c;Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc_ex.c;Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio.c;Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_dma.c;Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.c;Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_pwr.c;Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c;Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash_ex.c;Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c;Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_sram.c;Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.c;Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim.c;Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim_ex.c;Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_ll_fsmc.h;Drivers/STM32F1xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h;Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal.h;Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_def.h;Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_rcc.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/Src/stm32f1xx_hal_gpio_ex.c;Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_dma_ex.h;Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_dma.h;Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_cortex.h;Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_pwr.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_exti.h;Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_sram.h;Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_i2c.h;Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h;Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h;Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xe.h;Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f1xx.h;Drivers/CMSIS/Device/ST/STM32F1xx/Include/system_stm32f1xx.h;Drivers/CMSIS/Device/ST/STM32F1xx/Source/Templates/system_stm32f1xx.c;Drivers/CMSIS/Include/core_cm7.h;Drivers/CMSIS/Include/tz_context.h;Drivers/CMSIS/Include/core_cm3.h;Drivers/CMSIS/Include/cmsis_compiler.h;Drivers/CMSIS/Include/cmsis_armclang.h;Drivers/CMSIS/Include/mpu_armv7.h;Drivers/CMSIS/Include/cmsis_armcc.h;Drivers/CMSIS/Include/core_cm4.h;Drivers/CMSIS/Include/core_cm0.h;Drivers/CMSIS/Include/cmsis_iccarm.h;Drivers/CMSIS/Include/core_armv8mml.h;Drivers/CMSIS/Include/core_sc000.h;Drivers/CMSIS/Include/core_cm1.h;Drivers/CMSIS/Include/mpu_armv8.h;Drivers/CMSIS/Include/core_sc300.h;Drivers/CMSIS/Include/cmsis_gcc.h;Drivers/CMSIS/Include/cmsis_version.h;Drivers/CMSIS/Include/core_cm23.h;Drivers/CMSIS/Include/core_cm33.h;Drivers/CMSIS/Include/core_cm0plus.h;Drivers/CMSIS/Include/core_armv8mbl.h; [PreviousUsedCubeIDEFiles] -SourceFiles=Core/Src/main.c;Core/Src/stm32f1xx_it.c;Core/Src/stm32f1xx_hal_msp.c;Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio_ex.c;Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_fsmc.c;Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.c;Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.c;Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc_ex.c;Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio.c;Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_dma.c;Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.c;Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_pwr.c;Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c;Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash_ex.c;Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c;Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_sram.c;Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim.c;Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim_ex.c;Drivers/CMSIS/Device/ST/STM32F1xx/Source/Templates/system_stm32f1xx.c;Core/Src/system_stm32f1xx.c;Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio_ex.c;Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_fsmc.c;Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.c;Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.c;Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc_ex.c;Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio.c;Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_dma.c;Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.c;Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_pwr.c;Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c;Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash_ex.c;Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c;Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_sram.c;Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim.c;Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim_ex.c;Drivers/CMSIS/Device/ST/STM32F1xx/Source/Templates/system_stm32f1xx.c;Core/Src/system_stm32f1xx.c;;; +SourceFiles=Core/Src/main.c;Core/Src/stm32f1xx_it.c;Core/Src/stm32f1xx_hal_msp.c;Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio_ex.c;Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_fsmc.c;Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.c;Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.c;Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc_ex.c;Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio.c;Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_dma.c;Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.c;Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_pwr.c;Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c;Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash_ex.c;Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c;Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_sram.c;Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.c;Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim.c;Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim_ex.c;Drivers/CMSIS/Device/ST/STM32F1xx/Source/Templates/system_stm32f1xx.c;Core/Src/system_stm32f1xx.c;Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio_ex.c;Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_fsmc.c;Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.c;Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.c;Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc_ex.c;Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio.c;Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_dma.c;Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.c;Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_pwr.c;Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c;Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash_ex.c;Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c;Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_sram.c;Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.c;Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim.c;Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim_ex.c;Drivers/CMSIS/Device/ST/STM32F1xx/Source/Templates/system_stm32f1xx.c;Core/Src/system_stm32f1xx.c;;; HeaderPath=Drivers/STM32F1xx_HAL_Driver/Inc;Drivers/STM32F1xx_HAL_Driver/Inc/Legacy;Drivers/CMSIS/Device/ST/STM32F1xx/Include;Drivers/CMSIS/Include;Core/Inc; CDefines=USE_HAL_DRIVER;STM32F103xE;USE_HAL_DRIVER;USE_HAL_DRIVER; diff --git a/Core/Inc/stm32f1xx_hal_conf.h b/Core/Inc/stm32f1xx_hal_conf.h index cef193b..998626e 100644 --- a/Core/Inc/stm32f1xx_hal_conf.h +++ b/Core/Inc/stm32f1xx_hal_conf.h @@ -45,7 +45,7 @@ /*#define HAL_ETH_MODULE_ENABLED */ /*#define HAL_FLASH_MODULE_ENABLED */ #define HAL_GPIO_MODULE_ENABLED -/*#define HAL_I2C_MODULE_ENABLED */ +#define HAL_I2C_MODULE_ENABLED /*#define HAL_I2S_MODULE_ENABLED */ /*#define HAL_IRDA_MODULE_ENABLED */ /*#define HAL_IWDG_MODULE_ENABLED */ diff --git a/Core/Src/main.c b/Core/Src/main.c index 7c3ab7e..44abb9c 100644 --- a/Core/Src/main.c +++ b/Core/Src/main.c @@ -40,6 +40,8 @@ /* USER CODE END PM */ /* Private variables ---------------------------------------------------------*/ +I2C_HandleTypeDef hi2c2; + SRAM_HandleTypeDef hsram1; /* USER CODE BEGIN PV */ @@ -50,6 +52,7 @@ SRAM_HandleTypeDef hsram1; void SystemClock_Config(void); static void MX_GPIO_Init(void); static void MX_FSMC_Init(void); +static void MX_I2C2_Init(void); /* USER CODE BEGIN PFP */ /* USER CODE END PFP */ @@ -88,6 +91,7 @@ int main(void) /* Initialize all configured peripherals */ MX_GPIO_Init(); MX_FSMC_Init(); + MX_I2C2_Init(); /* USER CODE BEGIN 2 */ main_app(); /* USER CODE END 2 */ @@ -141,6 +145,40 @@ void SystemClock_Config(void) } } +/** + * @brief I2C2 Initialization Function + * @param None + * @retval None + */ +static void MX_I2C2_Init(void) +{ + + /* USER CODE BEGIN I2C2_Init 0 */ + + /* USER CODE END I2C2_Init 0 */ + + /* USER CODE BEGIN I2C2_Init 1 */ + + /* USER CODE END I2C2_Init 1 */ + hi2c2.Instance = I2C2; + hi2c2.Init.ClockSpeed = 100000; + hi2c2.Init.DutyCycle = I2C_DUTYCYCLE_2; + hi2c2.Init.OwnAddress1 = 0; + hi2c2.Init.AddressingMode = I2C_ADDRESSINGMODE_7BIT; + hi2c2.Init.DualAddressMode = I2C_DUALADDRESS_DISABLE; + hi2c2.Init.OwnAddress2 = 0; + hi2c2.Init.GeneralCallMode = I2C_GENERALCALL_DISABLE; + hi2c2.Init.NoStretchMode = I2C_NOSTRETCH_DISABLE; + if (HAL_I2C_Init(&hi2c2) != HAL_OK) + { + Error_Handler(); + } + /* USER CODE BEGIN I2C2_Init 2 */ + + /* USER CODE END I2C2_Init 2 */ + +} + /** * @brief GPIO Initialization Function * @param None diff --git a/Core/Src/stm32f1xx_hal_msp.c b/Core/Src/stm32f1xx_hal_msp.c index cfd4af4..5a4e074 100644 --- a/Core/Src/stm32f1xx_hal_msp.c +++ b/Core/Src/stm32f1xx_hal_msp.c @@ -81,6 +81,71 @@ void HAL_MspInit(void) /* USER CODE END MspInit 1 */ } +/** +* @brief I2C MSP Initialization +* This function configures the hardware resources used in this example +* @param hi2c: I2C handle pointer +* @retval None +*/ +void HAL_I2C_MspInit(I2C_HandleTypeDef* hi2c) +{ + GPIO_InitTypeDef GPIO_InitStruct = {0}; + if(hi2c->Instance==I2C2) + { + /* USER CODE BEGIN I2C2_MspInit 0 */ + + /* USER CODE END I2C2_MspInit 0 */ + + __HAL_RCC_GPIOB_CLK_ENABLE(); + /**I2C2 GPIO Configuration + PB10 ------> I2C2_SCL + PB11 ------> I2C2_SDA + */ + GPIO_InitStruct.Pin = GPIO_PIN_10|GPIO_PIN_11; + GPIO_InitStruct.Mode = GPIO_MODE_AF_OD; + GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_HIGH; + HAL_GPIO_Init(GPIOB, &GPIO_InitStruct); + + /* Peripheral clock enable */ + __HAL_RCC_I2C2_CLK_ENABLE(); + /* USER CODE BEGIN I2C2_MspInit 1 */ + + /* USER CODE END I2C2_MspInit 1 */ + } + +} + +/** +* @brief I2C MSP De-Initialization +* This function freeze the hardware resources used in this example +* @param hi2c: I2C handle pointer +* @retval None +*/ +void HAL_I2C_MspDeInit(I2C_HandleTypeDef* hi2c) +{ + if(hi2c->Instance==I2C2) + { + /* USER CODE BEGIN I2C2_MspDeInit 0 */ + + /* USER CODE END I2C2_MspDeInit 0 */ + /* Peripheral clock disable */ + __HAL_RCC_I2C2_CLK_DISABLE(); + + /**I2C2 GPIO Configuration + PB10 ------> I2C2_SCL + PB11 ------> I2C2_SDA + */ + HAL_GPIO_DeInit(GPIOB, GPIO_PIN_10); + + HAL_GPIO_DeInit(GPIOB, GPIO_PIN_11); + + /* USER CODE BEGIN I2C2_MspDeInit 1 */ + + /* USER CODE END I2C2_MspDeInit 1 */ + } + +} + static uint32_t FSMC_Initialized = 0; static void HAL_FSMC_MspInit(void){ diff --git a/Debug/Core/Src/main.d b/Debug/Core/Src/main.d index b700b83..00721df 100644 --- a/Debug/Core/Src/main.d +++ b/Debug/Core/Src/main.d @@ -22,6 +22,7 @@ Core/Src/main.o: ../Core/Src/main.c ../Core/Inc/main.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 \ /Users/wuwenfeng/STM32CubeIDE/workspace_1.7.0/m3s/SW_APPs/Main_APP.h @@ -73,6 +74,8 @@ Core/Src/main.o: ../Core/Src/main.c ../Core/Inc/main.h \ ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_ll_fsmc.h: +../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_i2c.h: + ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_pwr.h: /Users/wuwenfeng/STM32CubeIDE/workspace_1.7.0/m3s/SW_APPs/Main_APP.h: diff --git a/Debug/Core/Src/main.su b/Debug/Core/Src/main.su index 108dd9a..0e61b5f 100644 --- a/Debug/Core/Src/main.su +++ b/Debug/Core/Src/main.su @@ -1,5 +1,6 @@ -main.c:66:5:main 8 static -main.c:110:6:SystemClock_Config 72 static -main.c:149:13:MX_GPIO_Init 48 static -main.c:199:13:MX_FSMC_Init 40 static -main.c:263:6:Error_Handler 4 static,ignoring_inline_asm +main.c:69:5:main 8 static +main.c:114:6:SystemClock_Config 72 static +main.c:153:13:MX_I2C2_Init 8 static +main.c:187:13:MX_GPIO_Init 48 static +main.c:237:13:MX_FSMC_Init 40 static +main.c:301:6:Error_Handler 4 static,ignoring_inline_asm diff --git a/Debug/Core/Src/stm32f1xx_hal_msp.d b/Debug/Core/Src/stm32f1xx_hal_msp.d index 515a1a9..f07e032 100644 --- a/Debug/Core/Src/stm32f1xx_hal_msp.d +++ b/Debug/Core/Src/stm32f1xx_hal_msp.d @@ -22,6 +22,7 @@ Core/Src/stm32f1xx_hal_msp.o: ../Core/Src/stm32f1xx_hal_msp.c \ ../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 ../Core/Inc/main.h: @@ -72,4 +73,6 @@ Core/Src/stm32f1xx_hal_msp.o: ../Core/Src/stm32f1xx_hal_msp.c \ ../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: diff --git a/Debug/Core/Src/stm32f1xx_hal_msp.su b/Debug/Core/Src/stm32f1xx_hal_msp.su index 4ba6db9..97f6b4e 100644 --- a/Debug/Core/Src/stm32f1xx_hal_msp.su +++ b/Debug/Core/Src/stm32f1xx_hal_msp.su @@ -1,5 +1,7 @@ stm32f1xx_hal_msp.c:64:6:HAL_MspInit 24 static -stm32f1xx_hal_msp.c:86:13:HAL_FSMC_MspInit 32 static -stm32f1xx_hal_msp.c:145:6:HAL_SRAM_MspInit 16 static -stm32f1xx_hal_msp.c:157:13:HAL_FSMC_MspDeInit 8 static -stm32f1xx_hal_msp.c:205:6:HAL_SRAM_MspDeInit 16 static +stm32f1xx_hal_msp.c:90:6:HAL_I2C_MspInit 40 static +stm32f1xx_hal_msp.c:124:6:HAL_I2C_MspDeInit 16 static +stm32f1xx_hal_msp.c:151:13:HAL_FSMC_MspInit 32 static +stm32f1xx_hal_msp.c:210:6:HAL_SRAM_MspInit 16 static +stm32f1xx_hal_msp.c:222:13:HAL_FSMC_MspDeInit 8 static +stm32f1xx_hal_msp.c:270:6:HAL_SRAM_MspDeInit 16 static diff --git a/Debug/Core/Src/stm32f1xx_it.d b/Debug/Core/Src/stm32f1xx_it.d index 8c68328..eb6308b 100644 --- a/Debug/Core/Src/stm32f1xx_it.d +++ b/Debug/Core/Src/stm32f1xx_it.d @@ -22,6 +22,7 @@ Core/Src/stm32f1xx_it.o: ../Core/Src/stm32f1xx_it.c ../Core/Inc/main.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 \ ../Core/Inc/stm32f1xx_it.h @@ -73,6 +74,8 @@ Core/Src/stm32f1xx_it.o: ../Core/Src/stm32f1xx_it.c ../Core/Inc/main.h \ ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_ll_fsmc.h: +../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_i2c.h: + ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_pwr.h: ../Core/Inc/stm32f1xx_it.h: diff --git a/Debug/Core/Src/system_stm32f1xx.d b/Debug/Core/Src/system_stm32f1xx.d index 53aefc0..f2a05a0 100644 --- a/Debug/Core/Src/system_stm32f1xx.d +++ b/Debug/Core/Src/system_stm32f1xx.d @@ -22,6 +22,7 @@ Core/Src/system_stm32f1xx.o: ../Core/Src/system_stm32f1xx.c \ ../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/CMSIS/Device/ST/STM32F1xx/Include/stm32f1xx.h: @@ -70,4 +71,6 @@ Core/Src/system_stm32f1xx.o: ../Core/Src/system_stm32f1xx.c \ ../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: diff --git a/Debug/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.d b/Debug/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.d index f82985c..0d4d164 100644 --- a/Debug/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.d +++ b/Debug/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.d @@ -23,6 +23,7 @@ Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.o: \ ../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.h: @@ -71,4 +72,6 @@ Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.o: \ ../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: diff --git a/Debug/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.d b/Debug/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.d index 8a9a3ec..3a6338e 100644 --- a/Debug/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.d +++ b/Debug/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.d @@ -23,6 +23,7 @@ Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.o: \ ../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.h: @@ -71,4 +72,6 @@ Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.o: \ ../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: diff --git a/Debug/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_dma.d b/Debug/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_dma.d index e948c36..cbbaac6 100644 --- a/Debug/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_dma.d +++ b/Debug/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_dma.d @@ -23,6 +23,7 @@ Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_dma.o: \ ../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.h: @@ -71,4 +72,6 @@ Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_dma.o: \ ../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: diff --git a/Debug/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.d b/Debug/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.d index 856e0d6..b7b8c06 100644 --- a/Debug/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.d +++ b/Debug/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.d @@ -23,6 +23,7 @@ Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.o: \ ../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.h: @@ -71,4 +72,6 @@ Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.o: \ ../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: diff --git a/Debug/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.d b/Debug/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.d index 09f0007..1e0ae93 100644 --- a/Debug/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.d +++ b/Debug/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.d @@ -23,6 +23,7 @@ Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.o: \ ../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.h: @@ -71,4 +72,6 @@ Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.o: \ ../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: diff --git a/Debug/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash_ex.d b/Debug/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash_ex.d index 24db26d..919636f 100644 --- a/Debug/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash_ex.d +++ b/Debug/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash_ex.d @@ -23,6 +23,7 @@ Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash_ex.o: \ ../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.h: @@ -71,4 +72,6 @@ Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash_ex.o: \ ../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: diff --git a/Debug/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio.d b/Debug/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio.d index f1e1f59..d0c88d9 100644 --- a/Debug/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio.d +++ b/Debug/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio.d @@ -23,6 +23,7 @@ Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio.o: \ ../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.h: @@ -71,4 +72,6 @@ Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio.o: \ ../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: diff --git a/Debug/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio_ex.d b/Debug/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio_ex.d index fd58c87..6be3df5 100644 --- a/Debug/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio_ex.d +++ b/Debug/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio_ex.d @@ -23,6 +23,7 @@ Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio_ex.o: \ ../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.h: @@ -71,4 +72,6 @@ Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio_ex.o: \ ../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: diff --git a/Debug/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.d b/Debug/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.d new file mode 100644 index 0000000..28e38b6 --- /dev/null +++ b/Debug/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.d @@ -0,0 +1,77 @@ +Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o: \ + ../Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.c \ + ../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.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: diff --git a/Debug/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.su b/Debug/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.su new file mode 100644 index 0000000..77037a9 --- /dev/null +++ b/Debug/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.su @@ -0,0 +1,81 @@ +stm32f1xx_hal_i2c.c:453:19:HAL_I2C_Init 24 static +stm32f1xx_hal_i2c.c:568:19:HAL_I2C_DeInit 16 static +stm32f1xx_hal_i2c.c:614:13:HAL_I2C_MspInit 16 static +stm32f1xx_hal_i2c.c:630:13:HAL_I2C_MspDeInit 16 static +stm32f1xx_hal_i2c.c:1050:19:HAL_I2C_Master_Transmit 40 static +stm32f1xx_hal_i2c.c:1171:19:HAL_I2C_Master_Receive 56 static,ignoring_inline_asm +stm32f1xx_hal_i2c.c:1462:19:HAL_I2C_Slave_Transmit 48 static +stm32f1xx_hal_i2c.c:1592:19:HAL_I2C_Slave_Receive 48 static +stm32f1xx_hal_i2c.c:1713:19:HAL_I2C_Master_Transmit_IT 32 static +stm32f1xx_hal_i2c.c:1793:19:HAL_I2C_Master_Receive_IT 32 static +stm32f1xx_hal_i2c.c:1876:19:HAL_I2C_Slave_Transmit_IT 24 static +stm32f1xx_hal_i2c.c:1938:19:HAL_I2C_Slave_Receive_IT 24 static +stm32f1xx_hal_i2c.c:2002:19:HAL_I2C_Master_Transmit_DMA 32 static +stm32f1xx_hal_i2c.c:2158:19:HAL_I2C_Master_Receive_DMA 32 static +stm32f1xx_hal_i2c.c:2312:19:HAL_I2C_Slave_Transmit_DMA 32 static +stm32f1xx_hal_i2c.c:2424:19:HAL_I2C_Slave_Receive_DMA 32 static +stm32f1xx_hal_i2c.c:2541:19:HAL_I2C_Mem_Write 40 static +stm32f1xx_hal_i2c.c:2664:19:HAL_I2C_Mem_Read 56 static,ignoring_inline_asm +stm32f1xx_hal_i2c.c:2960:19:HAL_I2C_Mem_Write_IT 32 static +stm32f1xx_hal_i2c.c:3048:19:HAL_I2C_Mem_Read_IT 32 static +stm32f1xx_hal_i2c.c:3142:19:HAL_I2C_Mem_Write_DMA 48 static +stm32f1xx_hal_i2c.c:3321:19:HAL_I2C_Mem_Read_DMA 56 static +stm32f1xx_hal_i2c.c:3514:19:HAL_I2C_IsDeviceReady 48 static +stm32f1xx_hal_i2c.c:3650:19:HAL_I2C_Master_Seq_Transmit_IT 32 static +stm32f1xx_hal_i2c.c:3748:19:HAL_I2C_Master_Seq_Transmit_DMA 40 static +stm32f1xx_hal_i2c.c:3931:19:HAL_I2C_Master_Seq_Receive_IT 40 static +stm32f1xx_hal_i2c.c:4055:19:HAL_I2C_Master_Seq_Receive_DMA 40 static +stm32f1xx_hal_i2c.c:4273:19:HAL_I2C_Slave_Seq_Transmit_IT 32 static +stm32f1xx_hal_i2c.c:4339:19:HAL_I2C_Slave_Seq_Transmit_DMA 32 static +stm32f1xx_hal_i2c.c:4513:19:HAL_I2C_Slave_Seq_Receive_IT 32 static +stm32f1xx_hal_i2c.c:4579:19:HAL_I2C_Slave_Seq_Receive_DMA 32 static +stm32f1xx_hal_i2c.c:4749:19:HAL_I2C_EnableListen_IT 16 static +stm32f1xx_hal_i2c.c:4782:19:HAL_I2C_DisableListen_IT 24 static +stm32f1xx_hal_i2c.c:4817:19:HAL_I2C_Master_Abort_IT 24 static +stm32f1xx_hal_i2c.c:4876:6:HAL_I2C_EV_IRQHandler 40 static +stm32f1xx_hal_i2c.c:5045:6:HAL_I2C_ER_IRQHandler 48 static +stm32f1xx_hal_i2c.c:5128:13:HAL_I2C_MasterTxCpltCallback 16 static +stm32f1xx_hal_i2c.c:5144:13:HAL_I2C_MasterRxCpltCallback 16 static +stm32f1xx_hal_i2c.c:5159:13:HAL_I2C_SlaveTxCpltCallback 16 static +stm32f1xx_hal_i2c.c:5175:13:HAL_I2C_SlaveRxCpltCallback 16 static +stm32f1xx_hal_i2c.c:5193:13:HAL_I2C_AddrCallback 16 static +stm32f1xx_hal_i2c.c:5211:13:HAL_I2C_ListenCpltCallback 16 static +stm32f1xx_hal_i2c.c:5227:13:HAL_I2C_MemTxCpltCallback 16 static +stm32f1xx_hal_i2c.c:5243:13:HAL_I2C_MemRxCpltCallback 16 static +stm32f1xx_hal_i2c.c:5259:13:HAL_I2C_ErrorCallback 16 static +stm32f1xx_hal_i2c.c:5275:13:HAL_I2C_AbortCpltCallback 16 static +stm32f1xx_hal_i2c.c:5310:22:HAL_I2C_GetState 16 static +stm32f1xx_hal_i2c.c:5322:21:HAL_I2C_GetMode 16 static +stm32f1xx_hal_i2c.c:5333:10:HAL_I2C_GetError 16 static +stm32f1xx_hal_i2c.c:5356:13:I2C_MasterTransmit_TXE 24 static +stm32f1xx_hal_i2c.c:5450:13:I2C_MasterTransmit_BTF 24 static +stm32f1xx_hal_i2c.c:5529:13:I2C_MemoryTransmit_TXE_BTF 24 static +stm32f1xx_hal_i2c.c:5615:13:I2C_MasterReceive_RXNE 24 static +stm32f1xx_hal_i2c.c:5723:13:I2C_MasterReceive_BTF 24 static +stm32f1xx_hal_i2c.c:5849:13:I2C_Master_SB 16 static +stm32f1xx_hal_i2c.c:5910:13:I2C_Master_ADD10 16 static +stm32f1xx_hal_i2c.c:5929:13:I2C_Master_ADDR 72 static +stm32f1xx_hal_i2c.c:6077:13:I2C_SlaveTransmit_TXE 24 static +stm32f1xx_hal_i2c.c:6118:13:I2C_SlaveTransmit_BTF 16 static +stm32f1xx_hal_i2c.c:6139:13:I2C_SlaveReceive_RXNE 24 static +stm32f1xx_hal_i2c.c:6180:13:I2C_SlaveReceive_BTF 16 static +stm32f1xx_hal_i2c.c:6202:13:I2C_Slave_ADDR 24 static +stm32f1xx_hal_i2c.c:6253:13:I2C_Slave_STOPF 24 static +stm32f1xx_hal_i2c.c:6422:13:I2C_Slave_AF 24 static +stm32f1xx_hal_i2c.c:6488:13:I2C_ITError 24 static +stm32f1xx_hal_i2c.c:6654:26:I2C_MasterRequestWrite 40 static +stm32f1xx_hal_i2c.c:6724:26:I2C_MasterRequestRead 40 static +stm32f1xx_hal_i2c.c:6824:26:I2C_RequestMemoryWrite 40 static +stm32f1xx_hal_i2c.c:6904:26:I2C_RequestMemoryRead 40 static +stm32f1xx_hal_i2c.c:7013:13:I2C_DMAXferCplt 32 static +stm32f1xx_hal_i2c.c:7151:13:I2C_DMAError 24 static +stm32f1xx_hal_i2c.c:7186:13:I2C_DMAAbort 32 static +stm32f1xx_hal_i2c.c:7289:26:I2C_WaitOnFlagUntilTimeout 24 static +stm32f1xx_hal_i2c.c:7323:26:I2C_WaitOnMasterAddressFlagUntilTimeout 24 static +stm32f1xx_hal_i2c.c:7374:26:I2C_WaitOnTXEFlagUntilTimeout 24 static +stm32f1xx_hal_i2c.c:7412:26:I2C_WaitOnBTFFlagUntilTimeout 24 static +stm32f1xx_hal_i2c.c:7450:26:I2C_WaitOnSTOPFlagUntilTimeout 24 static +stm32f1xx_hal_i2c.c:7483:26:I2C_WaitOnSTOPRequestThroughIT 24 static +stm32f1xx_hal_i2c.c:7512:26:I2C_WaitOnRXNEFlagUntilTimeout 24 static +stm32f1xx_hal_i2c.c:7557:26:I2C_IsAcknowledgeFailed 16 static +stm32f1xx_hal_i2c.c:7582:13:I2C_ConvertOtherXferOptions 16 static diff --git a/Debug/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_pwr.d b/Debug/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_pwr.d index f99c505..72c38c0 100644 --- a/Debug/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_pwr.d +++ b/Debug/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_pwr.d @@ -23,6 +23,7 @@ Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_pwr.o: \ ../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.h: @@ -71,4 +72,6 @@ Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_pwr.o: \ ../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: diff --git a/Debug/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.d b/Debug/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.d index 6ca99b2..b673568 100644 --- a/Debug/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.d +++ b/Debug/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.d @@ -23,6 +23,7 @@ Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.o: \ ../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.h: @@ -71,4 +72,6 @@ Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.o: \ ../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: diff --git a/Debug/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc_ex.d b/Debug/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc_ex.d index 5044612..006e3fd 100644 --- a/Debug/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc_ex.d +++ b/Debug/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc_ex.d @@ -23,6 +23,7 @@ Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc_ex.o: \ ../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.h: @@ -71,4 +72,6 @@ Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc_ex.o: \ ../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: diff --git a/Debug/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_sram.d b/Debug/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_sram.d index 8c49bad..18e0493 100644 --- a/Debug/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_sram.d +++ b/Debug/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_sram.d @@ -23,6 +23,7 @@ Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_sram.o: \ ../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.h: @@ -71,4 +72,6 @@ Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_sram.o: \ ../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: diff --git a/Debug/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim.d b/Debug/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim.d index 4c54ad6..f625dda 100644 --- a/Debug/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim.d +++ b/Debug/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim.d @@ -23,6 +23,7 @@ Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim.o: \ ../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.h: @@ -71,4 +72,6 @@ Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim.o: \ ../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: diff --git a/Debug/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim_ex.d b/Debug/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim_ex.d index b9015cc..ffa9dad 100644 --- a/Debug/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim_ex.d +++ b/Debug/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim_ex.d @@ -23,6 +23,7 @@ Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim_ex.o: \ ../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.h: @@ -71,4 +72,6 @@ Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim_ex.o: \ ../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: diff --git a/Debug/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_fsmc.d b/Debug/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_fsmc.d index fbfd944..dc9c226 100644 --- a/Debug/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_fsmc.d +++ b/Debug/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_fsmc.d @@ -23,6 +23,7 @@ Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_fsmc.o: \ ../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.h: @@ -71,4 +72,6 @@ Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_fsmc.o: \ ../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: diff --git a/Debug/Drivers/STM32F1xx_HAL_Driver/Src/subdir.mk b/Debug/Drivers/STM32F1xx_HAL_Driver/Src/subdir.mk index 2ea848c..7d4f9f9 100644 --- a/Debug/Drivers/STM32F1xx_HAL_Driver/Src/subdir.mk +++ b/Debug/Drivers/STM32F1xx_HAL_Driver/Src/subdir.mk @@ -13,6 +13,7 @@ C_SRCS += \ ../Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash_ex.c \ ../Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio.c \ ../Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio_ex.c \ +../Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.c \ ../Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_pwr.c \ ../Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.c \ ../Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc_ex.c \ @@ -30,6 +31,7 @@ OBJS += \ ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash_ex.o \ ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio.o \ ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio_ex.o \ +./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o \ ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_pwr.o \ ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.o \ ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc_ex.o \ @@ -47,6 +49,7 @@ C_DEPS += \ ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash_ex.d \ ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio.d \ ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio_ex.d \ +./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.d \ ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_pwr.d \ ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.d \ ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc_ex.d \ diff --git a/Debug/HW_Devices/LCD.d b/Debug/HW_Devices/LCD.d index b75de1a..9a3d928 100644 --- a/Debug/HW_Devices/LCD.d +++ b/Debug/HW_Devices/LCD.d @@ -22,6 +22,7 @@ HW_Devices/LCD.o: ../HW_Devices/LCD.c ../HW_Devices/LCD.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 ../HW_Devices/LCD.h: @@ -74,4 +75,6 @@ HW_Devices/LCD.o: ../HW_Devices/LCD.c ../HW_Devices/LCD.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: diff --git a/Debug/HW_Devices/eeprom.d b/Debug/HW_Devices/eeprom.d new file mode 100644 index 0000000..559b147 --- /dev/null +++ b/Debug/HW_Devices/eeprom.d @@ -0,0 +1,80 @@ +HW_Devices/eeprom.o: ../HW_Devices/eeprom.c ../HW_Devices/eeprom.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 + +../HW_Devices/eeprom.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: diff --git a/Debug/HW_Devices/eeprom.su b/Debug/HW_Devices/eeprom.su new file mode 100644 index 0000000..8e67ce2 --- /dev/null +++ b/Debug/HW_Devices/eeprom.su @@ -0,0 +1,6 @@ +eeprom.c:12:6:IIC_SAND_DATE 40 static +eeprom.c:17:6:IIC_READ_DATE 40 static +eeprom.c:23:6:EPPROM_SLOWWRITE_INIT 4 static +eeprom.c:32:6:EEPROM_SLOWWRITE_SERVER 16 static +eeprom.c:58:6:EEPROM_READ_BATY 16 static +eeprom.c:63:6:EEPROM_WRITE_BATY 32 static diff --git a/Debug/HW_Devices/subdir.mk b/Debug/HW_Devices/subdir.mk index 3c4f8fc..85a6322 100644 --- a/Debug/HW_Devices/subdir.mk +++ b/Debug/HW_Devices/subdir.mk @@ -6,14 +6,17 @@ # Add inputs and outputs from these tool invocations to the build variables C_SRCS += \ ../HW_Devices/LCD.c \ +../HW_Devices/eeprom.c \ ../HW_Devices/touch.c OBJS += \ ./HW_Devices/LCD.o \ +./HW_Devices/eeprom.o \ ./HW_Devices/touch.o C_DEPS += \ ./HW_Devices/LCD.d \ +./HW_Devices/eeprom.d \ ./HW_Devices/touch.d diff --git a/Debug/HW_Devices/touch.d b/Debug/HW_Devices/touch.d index 3604a6d..71f4604 100644 --- a/Debug/HW_Devices/touch.d +++ b/Debug/HW_Devices/touch.d @@ -22,8 +22,9 @@ HW_Devices/touch.o: ../HW_Devices/touch.c ../HW_Devices/touch.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 \ - ../HW_Devices/LCD.h + ../HW_Devices/LCD.h ../HW_Devices/eeprom.h ../HW_Devices/touch.h: @@ -75,6 +76,10 @@ HW_Devices/touch.o: ../HW_Devices/touch.c ../HW_Devices/touch.h \ ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_ll_fsmc.h: +../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_i2c.h: + ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_pwr.h: ../HW_Devices/LCD.h: + +../HW_Devices/eeprom.h: diff --git a/Debug/HW_Devices/touch.su b/Debug/HW_Devices/touch.su index 0b6039d..78f0a7b 100644 --- a/Debug/HW_Devices/touch.su +++ b/Debug/HW_Devices/touch.su @@ -1,8 +1,8 @@ -touch.c:18:6:TP_Write_Byte 24 static -touch.c:34:10:TP_Read_AD 24 static -touch.c:68:10:TP_Read_XOY 48 static -touch.c:95:6:TP_Read_XY_ADC 24 static -touch.c:109:9:TP_Read_XY2 24 static -touch.c:129:6:TP_Server 16 static -touch.c:140:6:TP_DrwaTrage 40 static -touch.c:150:6:TP_adjustment 160 static +touch.c:20:6:TP_Write_Byte 24 static +touch.c:36:10:TP_Read_AD 24 static +touch.c:70:10:TP_Read_XOY 48 static +touch.c:97:6:TP_Read_XY_ADC 24 static +touch.c:111:9:TP_Read_XY2 24 static +touch.c:131:6:TP_Server 16 static +touch.c:142:6:TP_DrwaTrage 40 static +touch.c:152:6:TP_adjustment 160 static diff --git a/Debug/SW_APPs/Main_APP.d b/Debug/SW_APPs/Main_APP.d index 5bc2a00..e4bbc54 100644 --- a/Debug/SW_APPs/Main_APP.d +++ b/Debug/SW_APPs/Main_APP.d @@ -23,10 +23,12 @@ SW_APPs/Main_APP.o: ../SW_APPs/Main_APP.c ../SW_APPs/Main_APP.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 \ ../SW_APPs/windows.h \ /Users/wuwenfeng/STM32CubeIDE/workspace_1.7.0/m3s/HW_Devices/lcd.h \ - /Users/wuwenfeng/STM32CubeIDE/workspace_1.7.0/m3s/HW_Devices/touch.h + /Users/wuwenfeng/STM32CubeIDE/workspace_1.7.0/m3s/HW_Devices/touch.h \ + /Users/wuwenfeng/STM32CubeIDE/workspace_1.7.0/m3s/HW_Devices/eeprom.h ../SW_APPs/Main_APP.h: @@ -80,6 +82,8 @@ SW_APPs/Main_APP.o: ../SW_APPs/Main_APP.c ../SW_APPs/Main_APP.h \ ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_ll_fsmc.h: +../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_i2c.h: + ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_pwr.h: ../SW_APPs/windows.h: @@ -87,3 +91,5 @@ 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: /Users/wuwenfeng/STM32CubeIDE/workspace_1.7.0/m3s/HW_Devices/touch.h: + +/Users/wuwenfeng/STM32CubeIDE/workspace_1.7.0/m3s/HW_Devices/eeprom.h: diff --git a/Debug/SW_APPs/Main_APP.su b/Debug/SW_APPs/Main_APP.su index e45b729..21c17da 100644 --- a/Debug/SW_APPs/Main_APP.su +++ b/Debug/SW_APPs/Main_APP.su @@ -1 +1 @@ -Main_APP.c:16:6:main_app 32 static +Main_APP.c:17:6:main_app 32 static diff --git a/Debug/SW_APPs/windows.d b/Debug/SW_APPs/windows.d index c344850..fe81b13 100644 --- a/Debug/SW_APPs/windows.d +++ b/Debug/SW_APPs/windows.d @@ -22,6 +22,7 @@ SW_APPs/windows.o: ../SW_APPs/windows.c ../SW_APPs/windows.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 \ /Users/wuwenfeng/STM32CubeIDE/workspace_1.7.0/m3s/HW_Devices/lcd.h @@ -75,6 +76,8 @@ SW_APPs/windows.o: ../SW_APPs/windows.c ../SW_APPs/windows.h \ ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_ll_fsmc.h: +../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_i2c.h: + ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_pwr.h: /Users/wuwenfeng/STM32CubeIDE/workspace_1.7.0/m3s/HW_Devices/lcd.h: diff --git a/Debug/m3s.bin b/Debug/m3s.bin index 628ef801fcc378221f8706618a85e7cfaea97fb5..20b131a59ec00600eefd7eca865fc0bd8f6266d0 100755 GIT binary patch delta 9963 zcmb_C4R}-4+2`D(CH;Yxw$PHaCCP$@jt@|2x0x+Y@|6p1!;Z<&;#%)!0Q0$8~@&hvBBv0dH7xc zcn5g@1rYuf=6?h4{BLhPIk)o|@!|sJ#a$$s(Za|59p;lsbLu4IOY$RMGeCL(`O5uj zU%r3jyz9jNW2ke&P>!m=hzvQL+BY*uuA6+_MC`MVs5oT8eaL4aJ0|A|jPFf>;hF(=o62;U^pqQFO z_|?{`%aPA8sznVlT|F8G>Cx?|^vJ^)xlZhf8VA(m&g8^Dk zhbxAUZ1B_|Rst~B(#cHYrUB*)vNa!3fu~*sK?E`ivuj8j$N!g74DYgzrmeu0Zs7Or)v{lfO>=IuwT)M$r zlfgP`RG^r0PvcTR>4jjDZP1~yT83S!voO&?hYDIAyN5@;df8>Dmrf9+Go>gMm%7|j zvJ6!T6EPhG$u75VAZ;#`&Q_((*2I@EX*WW4@;jP$t&k%oSO;LE8q za4N~p-aF-&;5gUwsFShj_#6&G^HSqYzjU9>CXDqN9n!P_5P)|82LB(>20TB}xgXcQ z%m@$44s-I59sQU!opbWUe?#G57cwRG!>Dn$f04e4kBG^Vlb->-8}!tjTAuzIeVEb8 z?p69_!>BC2ZAfqB=%8gK2RmF*X7oiECofdjgCtfF5Hn@`gLeqN+~iW_l?Kk zqE|1Zs8)N`Y=zg!cYxm}_e=ckz+poiromSi8O zd{~7|6CkKGi6vgp@ny2*u>r{HVN|QNOT0mzgT$A@cd=fAwV%gnT8Z!eQPo2d zU%j`zOX9WAT4^1q^|zL^?Pzm4F!9tQqT;Ao{vb805)!(_+w3@5Pshr_bZjCup+PN} zCP0i8TfmfIbg$Nq*-c<|b-lJp#=yL*>#K4lo+{Su#pamO>b)IZN{bsa0x| zj!N8%Oxd8~YElFs87~GHpY4y?IxpVVOPV?rOdW5&6pcRhSj=;@iXaww8OVX0Xbvza z9U%clBCZoZx=h^Z77!5!gH14Vr7Y3dFWuz?2h-T^l4Jjx6pQ`!AI8VN5PDaNJq^7; zE7;f!VzD<~I`*67*zX%3``WSC*F)?##bSR@jy)}ApPy3#lG#u9HL9)Jp?o_8+Hi~+ zpk%Tx^)v|k`ESfP@_S49Ni;anLG z*hV-R3~KI@_cv{FCf9*7mkyw_T63+r9-HYeGUY(_&;oq%g48uwe0oOWwRM6rLuH@G zY`bh>frJfv0;cBS| zEKm`J;m3Y^u^Sby#p+stT-Rvw(X(CK34hk*H#FH0nwkRCd>7PwnlKPEV}%b-rVGX% z7~LemW;k_jbARO$R4{`Ix<}Nh*gL(>w!tnfM@2Ed5k_0%tS_mbD<|9`nVXiL6fzco7)Cpw*v>(7`)~-U2;cPtREBh{+Q7X z>PyN>0L~Z}JrCpvqniP}B3y3&m(@mBGA%&k`j_zDALPr8JgLig@7bvLVExCtuTpkj zFnTw_>=RdUU)@z_{DUidPXKqu+_(6u!dAt(FUG}Ql}p|S7z`lvj4OW5D9!GfO+*4iP(eYq?ap zYIIx@C+!g0%UA>%80`e3yJe$2-`eO2G0zG&=J9>qece-e* z>frLO*tKkw%Z)~v>fU<&9X<3Fx2Xaf^`$;2Wcc{2V z;~gOj^QS}aSJ7Tg{$A)+M|)!aLgAAl!+=iiB z81&nzn3e4Bv?Joaz*vsM0b0+^CiyeESM=?I7fAYolhKS&(hbP)NXi|`DDhus<3##y>8}NCV%rnq}c|r z13&4PY7o3oy6DeWsua=R3?G24E*ZC%}II z902G5c-l;?vp3?S?&GsNvF<2+I094W>%(GO7#om2A|4LY-Y&Ou&TBX+EUu2wr@5o< z{=WwNIq+=AHHw_;&1&8k69AxHXuI*(2cG zdm}U-ayaCBD5A1D`89UbtC7z%W5%esg?7o6$$4C!)=#lT1h)Uq-%?g=JeZf{~Pv+A0F0-TECG9EUGnZN0-$!d12 zu}_3wV%K<6Y#ls(-Yjuw?HYMZ+JlRvU7pse{B9RAz10t^y*G9rR}7~6HH3L9n6XXo zCB+NU=Y+*Oqy#UVO^4Cei4fyTN!n43fW*iclA&*vFtjw#S|*Y03l<1rah9Zz&w@b~ z+G@j0XypTA4i^zSBVn=H4`Kms1Nc6`8i3V)Do6*ENx;Jxa-gM_-~hW#>y_F-WeXk6 zgwa5dQl>*|I0*03ThpNRu6&YZ`XqAA_wv+Xcs6jCfA2dCSkoyVk#6iaE@#UlVq3&u z)3xSsA#odI#dPr8G%g)_+krn<&Jv2d3wWk+dT2ch+YcQs%7q5fIA&L ztZ;u{=1#Tg9F&$D<$gpTWj_Z5Dl38fIMjo3ap{MUtX_aqWMc8msXvn>{!o{PKiuWy z+q)`;n=BFW35k>!=L)J(lmsXb-_ey^)Imv>qQ@dI{}`i0G4MDhg3*&Q;+oo380Ole#~{rW1CaHo?REF2p|Lf4DFiejh9h ziOb-rU-gy6vZ}~@H>AqO@-GWZBjQ>JMw0~-`in?9tG3RUOVG`s2R=l-r|68K)@`KfZ`6U8b5C3W=Y=E-c+c$|jx(i64i_V+-ftEb_|2SqV=r$G$b>9}Bay-jsd^ zv&5#fern~TU}d?V94XO~1tl4{pR6`#ll3JTg%1EjI%pa{-AZ|~t+EJJRK#Wwkw8Vv z#*fPE9|HSYVE>c# zCLngn#0eUBC)1MG%^L*6fH^NscFnb*al8X}$r_&tzUieI8G_hop!#P46aXv&SOriA z@Zx4k{7JCFhnS5vNt_d6xD;44(>O`|GdvNR?`i`4UKxKU;B&|Dg7`-ukm_E%M-pF$ zFfZJk159s4RNSp#lq4p>ST5HD*zQqm4`3@~Y!G&)dernk$dOx5`Wc2A#(Qm|wc11Y3ua)1M;N$eB2U zupIfeN4^tXYBzh!`HzfX6f@{MT zQnuvlmfz4S-U{pZSPv>~EJd!3r3m?MMCgD8p>>rOy6zevhAs-Q+o(H7#1!~5)HT6~ zI5!M`dh$K&Z?YHI7*g?dWE&=RECNV2CL5aI0`P?2NHN2q4GQLQHs3f+#_aLuku8g} z@80RpmU*YEFj)k=99v~y?0@qHv*HW$|slZC~Vq{6Zni{t~#HF`-r7|1#K+7M27 z!;e-C_)+2ErO1d_J+}~2@xcI@vGm2%yMih>AS98X_;rYUvUHJA5*Gv-Jr%yl{8H|a zE#>er#DGhSq#PImPv56z_vo39uBP6rg+`dG@9e zbxNB>Uh$G~ z2N=H}0G5bwAAB1CmdkzrlGaC&<{$gW8>`k|7ZhI(oc>ge)xI?KzMF43`N5~@><7>f ziqFgAv%JhTU!FfVLGun^@L%LP?DUiMtG@%Pct2@fJx>UVuLM!S5Br!7WODX-hEQ7Z z2b3Ba9k!r&qkk<&H6#s1it+WuFta~JKm+(th+TzY#@d=B)K`hL2LQlz&h4k1fW+>PO{|CQyb)MJX=%|WuKQm+n( z??lLNE9ZlKANkGPe9$}+rdl*lQU0KKCzP{*SO%A!6poGr#J|JN3I1O|HBwJZ@MD<4 zM9{jOTE!y$mnH)vYAh25yjAy;FSGfoa_w6(Dv|@jzq4oNbSew zjE*$!$uhcU%>X0Qu^aULNSTP7GWl->P(dw4f&IS*`yYry9tn`p8m$lzr^^<;be=jV zF`5EP{6X>60Cm!@M(AijOpU0A3KLT}ChD*iVQ|qV%}<$*-|O6ECH>TW0ns8WIQ=OD zauUH&ErHuTic|*NUK!9FKR3bn=K`n#$oEwc{>(yte2XP3ApU+d+_Xvr#r%N#^IN`V zaIO1)ZzC8VBKO~6Nd5;Tak-q(ml|!O3(z+`vgn zl_Q(31q42)xCAaWihG$nQZ+YG!I9rr?MtMR(W9iY`VY~jTf4Rl$A)Xy&BHg41M8g0 ztMbVVAiAdG~+ngv_IM}9Szb9^?33?t$ml3lY5d&s() zt@t|fc8vjVbr0420^=vhk2lQB(Mz8}uB-(`8v*ieN1FS#BTemoa%RK) z@j~*t<9s}4cfAomLq4d_o?Fv`G`j&j0RIDk;WW?*Thvc>(!lUDt@+=#OyUxTw&Sq) z9x-g1Qq(NzxyBw0cbVpwP;W>MbVR%_u6+-*#pt+$wuxiYro;shn{_`V1DkHgAyU*Z zmszln)HZbEL6Wz*f&t7un_b#~SQCsd=BU>Pf&yYiH__a42o}VWacGK+-wOhw?UMLJ zd9RoZyG1};HjYA3FkXgb9EGBT?lqGabI6#mayGn01Vr=Yh~jA83dGOF=U%rZ8>=y+ uQo9=)?UPdDqei}qSCKh__qsMGyyM(YD-l9&NT=g+O3}2s5|A?2t^Wt3zWHka delta 4865 zcmb_f32;O=$m=DjyF`}dmx16o_P>!#|P z*Z=?h*X#bf`$ag$?cdJX5yC0QW01Nh8mT`4TmgIy=m(%X{(b)`tv zVE--7{|Dc!|Gs)M>&X+O7pHNSS`xx(;o%s|T^o@$C?e-D0XYi*y#nWK_IUc5I`*DG zZNmoQ0@CzI7sm%U8wD~wV(M_@{Lvl2qYQizIY*Mlh@=?oTq)etAQ$S+xx0&R>LOv0 z&rGUyBR$p`@{n`A8|#B~IvA~X7Y(*nbe1851TdAe9PxZSFvm$xWD-6^euzxKdr4?i z0&XU$QEe*h{74|5MI~c3aYZ#cZbYYG73a+NIJ7b2*r?r2@?xiO`#G{LHan4X+TC6{ z(p@(fnjqy1j8e{QLu&Q}gG;faaUr3xPmC<)P)gJ5sEsoxSmSu8_)Oj0V#k3v!WF!$ zMe08Q9DwTp>3_h>;M1jbJecqnN2X5vEZ9p=%h_e>UN4ECGzz4b{L-vRPk^-CFMTp; z8c5S`S{m;LN$Z#HGwPyV5)*qv%t)`bcqsyXIK+Fx*a%i#k}rBx=CdGGgA@XsBhvs< zsbBgsvlOIMzvavQcZ;Km}kOpcb$N zU`r$Gr>#j&NJr|AK>QNW5BLe-1`GpzM7rbqY0Gf(ym1f)PzE4?4S+2GJ7DKHvc|Lq zmpCq%+HgV%Tip)SmX+e6$J|(lQoQtln@O#XXYY9%2YYC(7j-vvl{i+*z#z$i#A8f@Aa4x?`*wja5R63NI*QhDfi zlA|zhECP2<6*=!&2j)ARj|ksX0^9=%hy``; z??Q<{k6CDa`at-81CM8^v!xHe=sCOm2kf!{}rZo1kF61PO;E(&#FoKcn4ls_}BX zR6}xyUvkqBFF9K{9;cFT3)78<^0D)G;COq5xk`PPrK z%#@^2W=l)Tiel}rO7Hce?j7uqfrfbjo+kij02cvQ0RkWlw(QAjnNE_6oQSiSWqQ`l z@uASu@w`mez} z-E`C~RuAkHgMf~ejuhSSZo;I}fB+%-5M8|$IiD7Ej2V<|)3+k)5% zn-HV;jtanJ2Ke%ZW%_!>qDHV;v0l3=9L}|t_7Mg9tWUDzA(!pa`+!TZ;f%l@n-#9p zO)OWp;H7irzP=o&G7nG;SPG~o6BZ`LzTj1vKYO^y`RVL^?b;^Ptyb>A5=Ys>U7QMT zV;6Cj{0^TclNOJOe;qzJZsH`2IWy+tAVVo>Ts$H69VxjW%BtZfpQ^A#ThjQhYuP#2 zd5)Z0ya#V03zkg4<;1?kfQ!k|B~Re%B(pSCCDR!aSy37XgNYKUFFhGnAqK$d984tI z>LD|h&d|&B?_ynNk<*)%!|ykT9+2rt(b$Rf$dJP?fWAB?l7mYNAiy6*$F-$K45Kex zByrir$WI&K`v`Cq&ZfeeB3RJ@wcu*mdZ^6W&eC&L=>n!%FYwS#o6 zO2@6FZ&ermfV^mVh@_My;v{lU*(?z(_JWb02HIzVXRHf8SGV)X;M2bD&U-Bnw3o#!-UQDhZuP0)0q?X^12N&H zpI+$?!z;}J-@YH<%l5n*rOhWD<-4F5t4QWloYBYIklF}9$Y~!5&oDqgyd^@y%(SgY zy~jrMmG@7TXq9xKUxii9aMkYlC8w_RYYbOFmZ(M1r}uKHKlc4&nEE4N@W;x#rHkZ^ z%CV3tS|q)d6LTe6Eu*w;7r7RcVY}ElfWot{Fl(e=XO`%9t`$7X0M%#XyR+e48eEV8 z=BU?&^yOeNRv^WzW6~rVE3hL1j17}{%|QviV^CU-^H4J@NOLe~0L_-*cqO}6=NZ|& z`J%+j+;d}jW?0aiX;2>y9>BrF1Z?8J`f6C<9wqj zvgL5@%)y2>-^+)9$3%EVmWf3Tiem5TVsr7AKGe+?0c|Dc*J$C*HLl1OrK0DeiLa(N zrIC9jdT>ZhyqAQnO|*+N+gF^@J@t^f97@taNq>Tp(uQz_z|9;?YKuN>OO7V70-j;a z5H6nMr}rL#O8zRaO3w7LNeJ?<`L`~K*20M`(S-ujO7x_l8ZZWh@*MA*7~w7t%*6)v zA+F_Yf+Kf&51S{E{^0Sg90!4z+XQK8r!OoAt>h8O7i&wRCA$9B0<)t*qUS}&9P14Z zS2|1^2*wA=2UWU|JXS zE|xWWD}Zr4CdO(ImL5)cL{v4!EDuc7Sk&JsND`YsRw1B)uvgV;@ zCdYT{Pr2!N&lo<97rKyhrQDhueo4n?!$ltI4TRqR@nR;ghnr=qn5k%AcTB2Z&f)W9 zSHtAdg|4fRYBO8~PXS5*L(>MYR?>dea4_U&6Y{978NW+{w{Fn>tb|fi)E#gki#SE3 zp&qh(>ppBEy2ieto{`)1_LrqV^XT%5a+Ucg;A?=PLIcYeT!YjZfC|8401VfA+ey@Y z?|Qa$)-eUii)WAE0|z!^xX+;tb6!KbxB5{`n6cFoIAG=6bgPuY*L7j|_o3ko>V8UT z4KLj?WL$Fwjp*LvC)NS6hn(BCA?PwRRNw}ZWnYRtWS4ycce#O_wx7mV$d;xe4w!eE znzSN)UK)Dp!$%(k66vl^V%feQcAo7vnvp{<4LA^fl@C%bl?b?2M7sSp3txiUW7u!A z@a15aQUqyf4vrA%L$~wf$>u1~s&CgiI+|m#: 800020c: b508 push {r3, lr} @@ -74,7 +74,7 @@ Disassembly of section .text: 800021a: bd08 pop {r3, pc} 800021c: 00000000 .word 0x00000000 8000220: 200001e0 .word 0x200001e0 - 8000224: 08006f60 .word 0x08006f60 + 8000224: 080082b8 .word 0x080082b8 08000228 : 8000228: 4603 mov r3, r0 @@ -1380,12903 +1380,16245 @@ int main(void) /* Reset of all peripherals, Initializes the Flash interface and the Systick. */ HAL_Init(); - 800110c: f000 faf4 bl 80016f8 + 800110c: f000 fb64 bl 80017d8 /* USER CODE BEGIN Init */ /* USER CODE END Init */ /* Configure the system clock */ SystemClock_Config(); - 8001110: f000 f807 bl 8001122 + 8001110: f000 f809 bl 8001126 /* USER CODE BEGIN SysInit */ /* USER CODE END SysInit */ /* Initialize all configured peripherals */ MX_GPIO_Init(); - 8001114: f000 f84a bl 80011ac + 8001114: f000 f87a bl 800120c MX_FSMC_Init(); - 8001118: f000 f8e0 bl 80012dc + 8001118: f000 f910 bl 800133c + MX_I2C2_Init(); + 800111c: f000 f848 bl 80011b0 /* USER CODE BEGIN 2 */ main_app(); - 800111c: f002 fe82 bl 8003e24 + 8001120: f004 f81e bl 8005160 /* USER CODE END 2 */ /* Infinite loop */ /* USER CODE BEGIN WHILE */ while (1) - 8001120: e7fe b.n 8001120 + 8001124: e7fe b.n 8001124 -08001122 : +08001126 : /** * @brief System Clock Configuration * @retval None */ void SystemClock_Config(void) { - 8001122: b580 push {r7, lr} - 8001124: b090 sub sp, #64 ; 0x40 - 8001126: af00 add r7, sp, #0 + 8001126: b580 push {r7, lr} + 8001128: b090 sub sp, #64 ; 0x40 + 800112a: af00 add r7, sp, #0 RCC_OscInitTypeDef RCC_OscInitStruct = {0}; - 8001128: f107 0318 add.w r3, r7, #24 - 800112c: 2228 movs r2, #40 ; 0x28 - 800112e: 2100 movs r1, #0 - 8001130: 4618 mov r0, r3 - 8001132: f003 f87d bl 8004230 + 800112c: f107 0318 add.w r3, r7, #24 + 8001130: 2228 movs r2, #40 ; 0x28 + 8001132: 2100 movs r1, #0 + 8001134: 4618 mov r0, r3 + 8001136: f004 fa25 bl 8005584 RCC_ClkInitTypeDef RCC_ClkInitStruct = {0}; - 8001136: 1d3b adds r3, r7, #4 - 8001138: 2200 movs r2, #0 - 800113a: 601a str r2, [r3, #0] - 800113c: 605a str r2, [r3, #4] - 800113e: 609a str r2, [r3, #8] - 8001140: 60da str r2, [r3, #12] - 8001142: 611a str r2, [r3, #16] + 800113a: 1d3b adds r3, r7, #4 + 800113c: 2200 movs r2, #0 + 800113e: 601a str r2, [r3, #0] + 8001140: 605a str r2, [r3, #4] + 8001142: 609a str r2, [r3, #8] + 8001144: 60da str r2, [r3, #12] + 8001146: 611a str r2, [r3, #16] /** Initializes the RCC Oscillators according to the specified parameters * in the RCC_OscInitTypeDef structure. */ RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_HSE; - 8001144: 2301 movs r3, #1 - 8001146: 61bb str r3, [r7, #24] + 8001148: 2301 movs r3, #1 + 800114a: 61bb str r3, [r7, #24] RCC_OscInitStruct.HSEState = RCC_HSE_ON; - 8001148: f44f 3380 mov.w r3, #65536 ; 0x10000 - 800114c: 61fb str r3, [r7, #28] + 800114c: f44f 3380 mov.w r3, #65536 ; 0x10000 + 8001150: 61fb str r3, [r7, #28] RCC_OscInitStruct.HSEPredivValue = RCC_HSE_PREDIV_DIV1; - 800114e: 2300 movs r3, #0 - 8001150: 623b str r3, [r7, #32] + 8001152: 2300 movs r3, #0 + 8001154: 623b str r3, [r7, #32] RCC_OscInitStruct.HSIState = RCC_HSI_ON; - 8001152: 2301 movs r3, #1 - 8001154: 62bb str r3, [r7, #40] ; 0x28 + 8001156: 2301 movs r3, #1 + 8001158: 62bb str r3, [r7, #40] ; 0x28 RCC_OscInitStruct.PLL.PLLState = RCC_PLL_ON; - 8001156: 2302 movs r3, #2 - 8001158: 637b str r3, [r7, #52] ; 0x34 + 800115a: 2302 movs r3, #2 + 800115c: 637b str r3, [r7, #52] ; 0x34 RCC_OscInitStruct.PLL.PLLSource = RCC_PLLSOURCE_HSE; - 800115a: f44f 3380 mov.w r3, #65536 ; 0x10000 - 800115e: 63bb str r3, [r7, #56] ; 0x38 + 800115e: f44f 3380 mov.w r3, #65536 ; 0x10000 + 8001162: 63bb str r3, [r7, #56] ; 0x38 RCC_OscInitStruct.PLL.PLLMUL = RCC_PLL_MUL9; - 8001160: f44f 13e0 mov.w r3, #1835008 ; 0x1c0000 - 8001164: 63fb str r3, [r7, #60] ; 0x3c + 8001164: f44f 13e0 mov.w r3, #1835008 ; 0x1c0000 + 8001168: 63fb str r3, [r7, #60] ; 0x3c if (HAL_RCC_OscConfig(&RCC_OscInitStruct) != HAL_OK) - 8001166: f107 0318 add.w r3, r7, #24 - 800116a: 4618 mov r0, r3 - 800116c: f000 fdf2 bl 8001d54 - 8001170: 4603 mov r3, r0 - 8001172: 2b00 cmp r3, #0 - 8001174: d001 beq.n 800117a + 800116a: f107 0318 add.w r3, r7, #24 + 800116e: 4618 mov r0, r3 + 8001170: f001 fe60 bl 8002e34 + 8001174: 4603 mov r3, r0 + 8001176: 2b00 cmp r3, #0 + 8001178: d001 beq.n 800117e { Error_Handler(); - 8001176: f000 f915 bl 80013a4 + 800117a: f000 f943 bl 8001404 } /** Initializes the CPU, AHB and APB buses clocks */ RCC_ClkInitStruct.ClockType = RCC_CLOCKTYPE_HCLK|RCC_CLOCKTYPE_SYSCLK - 800117a: 230f movs r3, #15 - 800117c: 607b str r3, [r7, #4] + 800117e: 230f movs r3, #15 + 8001180: 607b str r3, [r7, #4] |RCC_CLOCKTYPE_PCLK1|RCC_CLOCKTYPE_PCLK2; RCC_ClkInitStruct.SYSCLKSource = RCC_SYSCLKSOURCE_PLLCLK; - 800117e: 2302 movs r3, #2 - 8001180: 60bb str r3, [r7, #8] + 8001182: 2302 movs r3, #2 + 8001184: 60bb str r3, [r7, #8] RCC_ClkInitStruct.AHBCLKDivider = RCC_SYSCLK_DIV1; - 8001182: 2300 movs r3, #0 - 8001184: 60fb str r3, [r7, #12] + 8001186: 2300 movs r3, #0 + 8001188: 60fb str r3, [r7, #12] RCC_ClkInitStruct.APB1CLKDivider = RCC_HCLK_DIV2; - 8001186: f44f 6380 mov.w r3, #1024 ; 0x400 - 800118a: 613b str r3, [r7, #16] + 800118a: f44f 6380 mov.w r3, #1024 ; 0x400 + 800118e: 613b str r3, [r7, #16] RCC_ClkInitStruct.APB2CLKDivider = RCC_HCLK_DIV1; - 800118c: 2300 movs r3, #0 - 800118e: 617b str r3, [r7, #20] + 8001190: 2300 movs r3, #0 + 8001192: 617b str r3, [r7, #20] if (HAL_RCC_ClockConfig(&RCC_ClkInitStruct, FLASH_LATENCY_2) != HAL_OK) - 8001190: 1d3b adds r3, r7, #4 - 8001192: 2102 movs r1, #2 - 8001194: 4618 mov r0, r3 - 8001196: f001 f85d bl 8002254 - 800119a: 4603 mov r3, r0 - 800119c: 2b00 cmp r3, #0 - 800119e: d001 beq.n 80011a4 + 8001194: 1d3b adds r3, r7, #4 + 8001196: 2102 movs r1, #2 + 8001198: 4618 mov r0, r3 + 800119a: f002 f8cb bl 8003334 + 800119e: 4603 mov r3, r0 + 80011a0: 2b00 cmp r3, #0 + 80011a2: d001 beq.n 80011a8 { Error_Handler(); - 80011a0: f000 f900 bl 80013a4 + 80011a4: f000 f92e bl 8001404 } } - 80011a4: bf00 nop - 80011a6: 3740 adds r7, #64 ; 0x40 - 80011a8: 46bd mov sp, r7 - 80011aa: bd80 pop {r7, pc} + 80011a8: bf00 nop + 80011aa: 3740 adds r7, #64 ; 0x40 + 80011ac: 46bd mov sp, r7 + 80011ae: bd80 pop {r7, pc} -080011ac : +080011b0 : + * @brief I2C2 Initialization Function + * @param None + * @retval None + */ +static void MX_I2C2_Init(void) +{ + 80011b0: b580 push {r7, lr} + 80011b2: af00 add r7, sp, #0 + /* USER CODE END I2C2_Init 0 */ + + /* USER CODE BEGIN I2C2_Init 1 */ + + /* USER CODE END I2C2_Init 1 */ + hi2c2.Instance = I2C2; + 80011b4: 4b12 ldr r3, [pc, #72] ; (8001200 ) + 80011b6: 4a13 ldr r2, [pc, #76] ; (8001204 ) + 80011b8: 601a str r2, [r3, #0] + hi2c2.Init.ClockSpeed = 100000; + 80011ba: 4b11 ldr r3, [pc, #68] ; (8001200 ) + 80011bc: 4a12 ldr r2, [pc, #72] ; (8001208 ) + 80011be: 605a str r2, [r3, #4] + hi2c2.Init.DutyCycle = I2C_DUTYCYCLE_2; + 80011c0: 4b0f ldr r3, [pc, #60] ; (8001200 ) + 80011c2: 2200 movs r2, #0 + 80011c4: 609a str r2, [r3, #8] + hi2c2.Init.OwnAddress1 = 0; + 80011c6: 4b0e ldr r3, [pc, #56] ; (8001200 ) + 80011c8: 2200 movs r2, #0 + 80011ca: 60da str r2, [r3, #12] + hi2c2.Init.AddressingMode = I2C_ADDRESSINGMODE_7BIT; + 80011cc: 4b0c ldr r3, [pc, #48] ; (8001200 ) + 80011ce: f44f 4280 mov.w r2, #16384 ; 0x4000 + 80011d2: 611a str r2, [r3, #16] + hi2c2.Init.DualAddressMode = I2C_DUALADDRESS_DISABLE; + 80011d4: 4b0a ldr r3, [pc, #40] ; (8001200 ) + 80011d6: 2200 movs r2, #0 + 80011d8: 615a str r2, [r3, #20] + hi2c2.Init.OwnAddress2 = 0; + 80011da: 4b09 ldr r3, [pc, #36] ; (8001200 ) + 80011dc: 2200 movs r2, #0 + 80011de: 619a str r2, [r3, #24] + hi2c2.Init.GeneralCallMode = I2C_GENERALCALL_DISABLE; + 80011e0: 4b07 ldr r3, [pc, #28] ; (8001200 ) + 80011e2: 2200 movs r2, #0 + 80011e4: 61da str r2, [r3, #28] + hi2c2.Init.NoStretchMode = I2C_NOSTRETCH_DISABLE; + 80011e6: 4b06 ldr r3, [pc, #24] ; (8001200 ) + 80011e8: 2200 movs r2, #0 + 80011ea: 621a str r2, [r3, #32] + if (HAL_I2C_Init(&hi2c2) != HAL_OK) + 80011ec: 4804 ldr r0, [pc, #16] ; (8001200 ) + 80011ee: f000 fe21 bl 8001e34 + 80011f2: 4603 mov r3, r0 + 80011f4: 2b00 cmp r3, #0 + 80011f6: d001 beq.n 80011fc + { + Error_Handler(); + 80011f8: f000 f904 bl 8001404 + } + /* USER CODE BEGIN I2C2_Init 2 */ + + /* USER CODE END I2C2_Init 2 */ + +} + 80011fc: bf00 nop + 80011fe: bd80 pop {r7, pc} + 8001200: 20000208 .word 0x20000208 + 8001204: 40005800 .word 0x40005800 + 8001208: 000186a0 .word 0x000186a0 + +0800120c : * @brief GPIO Initialization Function * @param None * @retval None */ static void MX_GPIO_Init(void) { - 80011ac: b580 push {r7, lr} - 80011ae: b08a sub sp, #40 ; 0x28 - 80011b0: af00 add r7, sp, #0 + 800120c: b580 push {r7, lr} + 800120e: b08a sub sp, #40 ; 0x28 + 8001210: af00 add r7, sp, #0 GPIO_InitTypeDef GPIO_InitStruct = {0}; - 80011b2: f107 0318 add.w r3, r7, #24 - 80011b6: 2200 movs r2, #0 - 80011b8: 601a str r2, [r3, #0] - 80011ba: 605a str r2, [r3, #4] - 80011bc: 609a str r2, [r3, #8] - 80011be: 60da str r2, [r3, #12] + 8001212: f107 0318 add.w r3, r7, #24 + 8001216: 2200 movs r2, #0 + 8001218: 601a str r2, [r3, #0] + 800121a: 605a str r2, [r3, #4] + 800121c: 609a str r2, [r3, #8] + 800121e: 60da str r2, [r3, #12] /* GPIO Ports Clock Enable */ __HAL_RCC_GPIOF_CLK_ENABLE(); - 80011c0: 4b43 ldr r3, [pc, #268] ; (80012d0 ) - 80011c2: 699b ldr r3, [r3, #24] - 80011c4: 4a42 ldr r2, [pc, #264] ; (80012d0 ) - 80011c6: f043 0380 orr.w r3, r3, #128 ; 0x80 - 80011ca: 6193 str r3, [r2, #24] - 80011cc: 4b40 ldr r3, [pc, #256] ; (80012d0 ) - 80011ce: 699b ldr r3, [r3, #24] - 80011d0: f003 0380 and.w r3, r3, #128 ; 0x80 - 80011d4: 617b str r3, [r7, #20] - 80011d6: 697b ldr r3, [r7, #20] - __HAL_RCC_GPIOB_CLK_ENABLE(); - 80011d8: 4b3d ldr r3, [pc, #244] ; (80012d0 ) - 80011da: 699b ldr r3, [r3, #24] - 80011dc: 4a3c ldr r2, [pc, #240] ; (80012d0 ) - 80011de: f043 0308 orr.w r3, r3, #8 - 80011e2: 6193 str r3, [r2, #24] - 80011e4: 4b3a ldr r3, [pc, #232] ; (80012d0 ) - 80011e6: 699b ldr r3, [r3, #24] - 80011e8: f003 0308 and.w r3, r3, #8 - 80011ec: 613b str r3, [r7, #16] - 80011ee: 693b ldr r3, [r7, #16] - __HAL_RCC_GPIOG_CLK_ENABLE(); - 80011f0: 4b37 ldr r3, [pc, #220] ; (80012d0 ) - 80011f2: 699b ldr r3, [r3, #24] - 80011f4: 4a36 ldr r2, [pc, #216] ; (80012d0 ) - 80011f6: f443 7380 orr.w r3, r3, #256 ; 0x100 - 80011fa: 6193 str r3, [r2, #24] - 80011fc: 4b34 ldr r3, [pc, #208] ; (80012d0 ) - 80011fe: 699b ldr r3, [r3, #24] - 8001200: f403 7380 and.w r3, r3, #256 ; 0x100 - 8001204: 60fb str r3, [r7, #12] - 8001206: 68fb ldr r3, [r7, #12] - __HAL_RCC_GPIOE_CLK_ENABLE(); - 8001208: 4b31 ldr r3, [pc, #196] ; (80012d0 ) - 800120a: 699b ldr r3, [r3, #24] - 800120c: 4a30 ldr r2, [pc, #192] ; (80012d0 ) - 800120e: f043 0340 orr.w r3, r3, #64 ; 0x40 - 8001212: 6193 str r3, [r2, #24] - 8001214: 4b2e ldr r3, [pc, #184] ; (80012d0 ) - 8001216: 699b ldr r3, [r3, #24] - 8001218: f003 0340 and.w r3, r3, #64 ; 0x40 - 800121c: 60bb str r3, [r7, #8] - 800121e: 68bb ldr r3, [r7, #8] - __HAL_RCC_GPIOD_CLK_ENABLE(); - 8001220: 4b2b ldr r3, [pc, #172] ; (80012d0 ) + 8001220: 4b43 ldr r3, [pc, #268] ; (8001330 ) 8001222: 699b ldr r3, [r3, #24] - 8001224: 4a2a ldr r2, [pc, #168] ; (80012d0 ) - 8001226: f043 0320 orr.w r3, r3, #32 + 8001224: 4a42 ldr r2, [pc, #264] ; (8001330 ) + 8001226: f043 0380 orr.w r3, r3, #128 ; 0x80 800122a: 6193 str r3, [r2, #24] - 800122c: 4b28 ldr r3, [pc, #160] ; (80012d0 ) + 800122c: 4b40 ldr r3, [pc, #256] ; (8001330 ) 800122e: 699b ldr r3, [r3, #24] - 8001230: f003 0320 and.w r3, r3, #32 - 8001234: 607b str r3, [r7, #4] - 8001236: 687b ldr r3, [r7, #4] + 8001230: f003 0380 and.w r3, r3, #128 ; 0x80 + 8001234: 617b str r3, [r7, #20] + 8001236: 697b ldr r3, [r7, #20] + __HAL_RCC_GPIOB_CLK_ENABLE(); + 8001238: 4b3d ldr r3, [pc, #244] ; (8001330 ) + 800123a: 699b ldr r3, [r3, #24] + 800123c: 4a3c ldr r2, [pc, #240] ; (8001330 ) + 800123e: f043 0308 orr.w r3, r3, #8 + 8001242: 6193 str r3, [r2, #24] + 8001244: 4b3a ldr r3, [pc, #232] ; (8001330 ) + 8001246: 699b ldr r3, [r3, #24] + 8001248: f003 0308 and.w r3, r3, #8 + 800124c: 613b str r3, [r7, #16] + 800124e: 693b ldr r3, [r7, #16] + __HAL_RCC_GPIOG_CLK_ENABLE(); + 8001250: 4b37 ldr r3, [pc, #220] ; (8001330 ) + 8001252: 699b ldr r3, [r3, #24] + 8001254: 4a36 ldr r2, [pc, #216] ; (8001330 ) + 8001256: f443 7380 orr.w r3, r3, #256 ; 0x100 + 800125a: 6193 str r3, [r2, #24] + 800125c: 4b34 ldr r3, [pc, #208] ; (8001330 ) + 800125e: 699b ldr r3, [r3, #24] + 8001260: f403 7380 and.w r3, r3, #256 ; 0x100 + 8001264: 60fb str r3, [r7, #12] + 8001266: 68fb ldr r3, [r7, #12] + __HAL_RCC_GPIOE_CLK_ENABLE(); + 8001268: 4b31 ldr r3, [pc, #196] ; (8001330 ) + 800126a: 699b ldr r3, [r3, #24] + 800126c: 4a30 ldr r2, [pc, #192] ; (8001330 ) + 800126e: f043 0340 orr.w r3, r3, #64 ; 0x40 + 8001272: 6193 str r3, [r2, #24] + 8001274: 4b2e ldr r3, [pc, #184] ; (8001330 ) + 8001276: 699b ldr r3, [r3, #24] + 8001278: f003 0340 and.w r3, r3, #64 ; 0x40 + 800127c: 60bb str r3, [r7, #8] + 800127e: 68bb ldr r3, [r7, #8] + __HAL_RCC_GPIOD_CLK_ENABLE(); + 8001280: 4b2b ldr r3, [pc, #172] ; (8001330 ) + 8001282: 699b ldr r3, [r3, #24] + 8001284: 4a2a ldr r2, [pc, #168] ; (8001330 ) + 8001286: f043 0320 orr.w r3, r3, #32 + 800128a: 6193 str r3, [r2, #24] + 800128c: 4b28 ldr r3, [pc, #160] ; (8001330 ) + 800128e: 699b ldr r3, [r3, #24] + 8001290: f003 0320 and.w r3, r3, #32 + 8001294: 607b str r3, [r7, #4] + 8001296: 687b ldr r3, [r7, #4] /*Configure GPIO pin Output Level */ HAL_GPIO_WritePin(TDIN_GPIO_Port, TDIN_Pin, GPIO_PIN_SET); - 8001238: 2201 movs r2, #1 - 800123a: f44f 7100 mov.w r1, #512 ; 0x200 - 800123e: 4825 ldr r0, [pc, #148] ; (80012d4 ) - 8001240: f000 fd6f bl 8001d22 + 8001298: 2201 movs r2, #1 + 800129a: f44f 7100 mov.w r1, #512 ; 0x200 + 800129e: 4825 ldr r0, [pc, #148] ; (8001334 ) + 80012a0: f000 fdaf bl 8001e02 /*Configure GPIO pin Output Level */ HAL_GPIO_WritePin(LCD_BL_GPIO_Port, LCD_BL_Pin, GPIO_PIN_RESET); - 8001244: 2200 movs r2, #0 - 8001246: 2101 movs r1, #1 - 8001248: 4823 ldr r0, [pc, #140] ; (80012d8 ) - 800124a: f000 fd6a bl 8001d22 + 80012a4: 2200 movs r2, #0 + 80012a6: 2101 movs r1, #1 + 80012a8: 4823 ldr r0, [pc, #140] ; (8001338 ) + 80012aa: f000 fdaa bl 8001e02 /*Configure GPIO pin Output Level */ HAL_GPIO_WritePin(GPIOB, TCLK_Pin|TCS_Pin, GPIO_PIN_SET); - 800124e: 2201 movs r2, #1 - 8001250: 2106 movs r1, #6 - 8001252: 4821 ldr r0, [pc, #132] ; (80012d8 ) - 8001254: f000 fd65 bl 8001d22 + 80012ae: 2201 movs r2, #1 + 80012b0: 2106 movs r1, #6 + 80012b2: 4821 ldr r0, [pc, #132] ; (8001338 ) + 80012b4: f000 fda5 bl 8001e02 /*Configure GPIO pins : TDOUT_Pin TPEN_Pin */ GPIO_InitStruct.Pin = TDOUT_Pin|TPEN_Pin; - 8001258: f44f 63a0 mov.w r3, #1280 ; 0x500 - 800125c: 61bb str r3, [r7, #24] + 80012b8: f44f 63a0 mov.w r3, #1280 ; 0x500 + 80012bc: 61bb str r3, [r7, #24] GPIO_InitStruct.Mode = GPIO_MODE_INPUT; - 800125e: 2300 movs r3, #0 - 8001260: 61fb str r3, [r7, #28] + 80012be: 2300 movs r3, #0 + 80012c0: 61fb str r3, [r7, #28] GPIO_InitStruct.Pull = GPIO_NOPULL; - 8001262: 2300 movs r3, #0 - 8001264: 623b str r3, [r7, #32] + 80012c2: 2300 movs r3, #0 + 80012c4: 623b str r3, [r7, #32] HAL_GPIO_Init(GPIOF, &GPIO_InitStruct); - 8001266: f107 0318 add.w r3, r7, #24 - 800126a: 4619 mov r1, r3 - 800126c: 4819 ldr r0, [pc, #100] ; (80012d4 ) - 800126e: f000 fbad bl 80019cc + 80012c6: f107 0318 add.w r3, r7, #24 + 80012ca: 4619 mov r1, r3 + 80012cc: 4819 ldr r0, [pc, #100] ; (8001334 ) + 80012ce: f000 fbed bl 8001aac /*Configure GPIO pin : TDIN_Pin */ GPIO_InitStruct.Pin = TDIN_Pin; - 8001272: f44f 7300 mov.w r3, #512 ; 0x200 - 8001276: 61bb str r3, [r7, #24] + 80012d2: f44f 7300 mov.w r3, #512 ; 0x200 + 80012d6: 61bb str r3, [r7, #24] GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP; - 8001278: 2301 movs r3, #1 - 800127a: 61fb str r3, [r7, #28] + 80012d8: 2301 movs r3, #1 + 80012da: 61fb str r3, [r7, #28] GPIO_InitStruct.Pull = GPIO_NOPULL; - 800127c: 2300 movs r3, #0 - 800127e: 623b str r3, [r7, #32] + 80012dc: 2300 movs r3, #0 + 80012de: 623b str r3, [r7, #32] GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_HIGH; - 8001280: 2303 movs r3, #3 - 8001282: 627b str r3, [r7, #36] ; 0x24 + 80012e0: 2303 movs r3, #3 + 80012e2: 627b str r3, [r7, #36] ; 0x24 HAL_GPIO_Init(TDIN_GPIO_Port, &GPIO_InitStruct); - 8001284: f107 0318 add.w r3, r7, #24 - 8001288: 4619 mov r1, r3 - 800128a: 4812 ldr r0, [pc, #72] ; (80012d4 ) - 800128c: f000 fb9e bl 80019cc + 80012e4: f107 0318 add.w r3, r7, #24 + 80012e8: 4619 mov r1, r3 + 80012ea: 4812 ldr r0, [pc, #72] ; (8001334 ) + 80012ec: f000 fbde bl 8001aac /*Configure GPIO pin : LCD_BL_Pin */ GPIO_InitStruct.Pin = LCD_BL_Pin; - 8001290: 2301 movs r3, #1 - 8001292: 61bb str r3, [r7, #24] + 80012f0: 2301 movs r3, #1 + 80012f2: 61bb str r3, [r7, #24] GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP; - 8001294: 2301 movs r3, #1 - 8001296: 61fb str r3, [r7, #28] + 80012f4: 2301 movs r3, #1 + 80012f6: 61fb str r3, [r7, #28] GPIO_InitStruct.Pull = GPIO_NOPULL; - 8001298: 2300 movs r3, #0 - 800129a: 623b str r3, [r7, #32] + 80012f8: 2300 movs r3, #0 + 80012fa: 623b str r3, [r7, #32] GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW; - 800129c: 2302 movs r3, #2 - 800129e: 627b str r3, [r7, #36] ; 0x24 + 80012fc: 2302 movs r3, #2 + 80012fe: 627b str r3, [r7, #36] ; 0x24 HAL_GPIO_Init(LCD_BL_GPIO_Port, &GPIO_InitStruct); - 80012a0: f107 0318 add.w r3, r7, #24 - 80012a4: 4619 mov r1, r3 - 80012a6: 480c ldr r0, [pc, #48] ; (80012d8 ) - 80012a8: f000 fb90 bl 80019cc + 8001300: f107 0318 add.w r3, r7, #24 + 8001304: 4619 mov r1, r3 + 8001306: 480c ldr r0, [pc, #48] ; (8001338 ) + 8001308: f000 fbd0 bl 8001aac /*Configure GPIO pins : TCLK_Pin TCS_Pin */ GPIO_InitStruct.Pin = TCLK_Pin|TCS_Pin; - 80012ac: 2306 movs r3, #6 - 80012ae: 61bb str r3, [r7, #24] + 800130c: 2306 movs r3, #6 + 800130e: 61bb str r3, [r7, #24] GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP; - 80012b0: 2301 movs r3, #1 - 80012b2: 61fb str r3, [r7, #28] + 8001310: 2301 movs r3, #1 + 8001312: 61fb str r3, [r7, #28] GPIO_InitStruct.Pull = GPIO_NOPULL; - 80012b4: 2300 movs r3, #0 - 80012b6: 623b str r3, [r7, #32] + 8001314: 2300 movs r3, #0 + 8001316: 623b str r3, [r7, #32] GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_HIGH; - 80012b8: 2303 movs r3, #3 - 80012ba: 627b str r3, [r7, #36] ; 0x24 + 8001318: 2303 movs r3, #3 + 800131a: 627b str r3, [r7, #36] ; 0x24 HAL_GPIO_Init(GPIOB, &GPIO_InitStruct); - 80012bc: f107 0318 add.w r3, r7, #24 - 80012c0: 4619 mov r1, r3 - 80012c2: 4805 ldr r0, [pc, #20] ; (80012d8 ) - 80012c4: f000 fb82 bl 80019cc + 800131c: f107 0318 add.w r3, r7, #24 + 8001320: 4619 mov r1, r3 + 8001322: 4805 ldr r0, [pc, #20] ; (8001338 ) + 8001324: f000 fbc2 bl 8001aac } - 80012c8: bf00 nop - 80012ca: 3728 adds r7, #40 ; 0x28 - 80012cc: 46bd mov sp, r7 - 80012ce: bd80 pop {r7, pc} - 80012d0: 40021000 .word 0x40021000 - 80012d4: 40011c00 .word 0x40011c00 - 80012d8: 40010c00 .word 0x40010c00 + 8001328: bf00 nop + 800132a: 3728 adds r7, #40 ; 0x28 + 800132c: 46bd mov sp, r7 + 800132e: bd80 pop {r7, pc} + 8001330: 40021000 .word 0x40021000 + 8001334: 40011c00 .word 0x40011c00 + 8001338: 40010c00 .word 0x40010c00 -080012dc : +0800133c : /* FSMC initialization function */ static void MX_FSMC_Init(void) { - 80012dc: b580 push {r7, lr} - 80012de: b088 sub sp, #32 - 80012e0: af00 add r7, sp, #0 + 800133c: b580 push {r7, lr} + 800133e: b088 sub sp, #32 + 8001340: af00 add r7, sp, #0 /* USER CODE BEGIN FSMC_Init 0 */ /* USER CODE END FSMC_Init 0 */ FSMC_NORSRAM_TimingTypeDef Timing = {0}; - 80012e2: 1d3b adds r3, r7, #4 - 80012e4: 2200 movs r2, #0 - 80012e6: 601a str r2, [r3, #0] - 80012e8: 605a str r2, [r3, #4] - 80012ea: 609a str r2, [r3, #8] - 80012ec: 60da str r2, [r3, #12] - 80012ee: 611a str r2, [r3, #16] - 80012f0: 615a str r2, [r3, #20] - 80012f2: 619a str r2, [r3, #24] + 8001342: 1d3b adds r3, r7, #4 + 8001344: 2200 movs r2, #0 + 8001346: 601a str r2, [r3, #0] + 8001348: 605a str r2, [r3, #4] + 800134a: 609a str r2, [r3, #8] + 800134c: 60da str r2, [r3, #12] + 800134e: 611a str r2, [r3, #16] + 8001350: 615a str r2, [r3, #20] + 8001352: 619a str r2, [r3, #24] /* USER CODE END FSMC_Init 1 */ /** Perform the SRAM1 memory initialization sequence */ hsram1.Instance = FSMC_NORSRAM_DEVICE; - 80012f4: 4b28 ldr r3, [pc, #160] ; (8001398 ) - 80012f6: f04f 4220 mov.w r2, #2684354560 ; 0xa0000000 - 80012fa: 601a str r2, [r3, #0] + 8001354: 4b28 ldr r3, [pc, #160] ; (80013f8 ) + 8001356: f04f 4220 mov.w r2, #2684354560 ; 0xa0000000 + 800135a: 601a str r2, [r3, #0] hsram1.Extended = FSMC_NORSRAM_EXTENDED_DEVICE; - 80012fc: 4b26 ldr r3, [pc, #152] ; (8001398 ) - 80012fe: 4a27 ldr r2, [pc, #156] ; (800139c ) - 8001300: 605a str r2, [r3, #4] + 800135c: 4b26 ldr r3, [pc, #152] ; (80013f8 ) + 800135e: 4a27 ldr r2, [pc, #156] ; (80013fc ) + 8001360: 605a str r2, [r3, #4] /* hsram1.Init */ hsram1.Init.NSBank = FSMC_NORSRAM_BANK4; - 8001302: 4b25 ldr r3, [pc, #148] ; (8001398 ) - 8001304: 2206 movs r2, #6 - 8001306: 609a str r2, [r3, #8] + 8001362: 4b25 ldr r3, [pc, #148] ; (80013f8 ) + 8001364: 2206 movs r2, #6 + 8001366: 609a str r2, [r3, #8] hsram1.Init.DataAddressMux = FSMC_DATA_ADDRESS_MUX_DISABLE; - 8001308: 4b23 ldr r3, [pc, #140] ; (8001398 ) - 800130a: 2200 movs r2, #0 - 800130c: 60da str r2, [r3, #12] + 8001368: 4b23 ldr r3, [pc, #140] ; (80013f8 ) + 800136a: 2200 movs r2, #0 + 800136c: 60da str r2, [r3, #12] hsram1.Init.MemoryType = FSMC_MEMORY_TYPE_SRAM; - 800130e: 4b22 ldr r3, [pc, #136] ; (8001398 ) - 8001310: 2200 movs r2, #0 - 8001312: 611a str r2, [r3, #16] + 800136e: 4b22 ldr r3, [pc, #136] ; (80013f8 ) + 8001370: 2200 movs r2, #0 + 8001372: 611a str r2, [r3, #16] hsram1.Init.MemoryDataWidth = FSMC_NORSRAM_MEM_BUS_WIDTH_16; - 8001314: 4b20 ldr r3, [pc, #128] ; (8001398 ) - 8001316: 2210 movs r2, #16 - 8001318: 615a str r2, [r3, #20] + 8001374: 4b20 ldr r3, [pc, #128] ; (80013f8 ) + 8001376: 2210 movs r2, #16 + 8001378: 615a str r2, [r3, #20] hsram1.Init.BurstAccessMode = FSMC_BURST_ACCESS_MODE_DISABLE; - 800131a: 4b1f ldr r3, [pc, #124] ; (8001398 ) - 800131c: 2200 movs r2, #0 - 800131e: 619a str r2, [r3, #24] + 800137a: 4b1f ldr r3, [pc, #124] ; (80013f8 ) + 800137c: 2200 movs r2, #0 + 800137e: 619a str r2, [r3, #24] hsram1.Init.WaitSignalPolarity = FSMC_WAIT_SIGNAL_POLARITY_LOW; - 8001320: 4b1d ldr r3, [pc, #116] ; (8001398 ) - 8001322: 2200 movs r2, #0 - 8001324: 61da str r2, [r3, #28] + 8001380: 4b1d ldr r3, [pc, #116] ; (80013f8 ) + 8001382: 2200 movs r2, #0 + 8001384: 61da str r2, [r3, #28] hsram1.Init.WrapMode = FSMC_WRAP_MODE_DISABLE; - 8001326: 4b1c ldr r3, [pc, #112] ; (8001398 ) - 8001328: 2200 movs r2, #0 - 800132a: 621a str r2, [r3, #32] + 8001386: 4b1c ldr r3, [pc, #112] ; (80013f8 ) + 8001388: 2200 movs r2, #0 + 800138a: 621a str r2, [r3, #32] hsram1.Init.WaitSignalActive = FSMC_WAIT_TIMING_BEFORE_WS; - 800132c: 4b1a ldr r3, [pc, #104] ; (8001398 ) - 800132e: 2200 movs r2, #0 - 8001330: 625a str r2, [r3, #36] ; 0x24 + 800138c: 4b1a ldr r3, [pc, #104] ; (80013f8 ) + 800138e: 2200 movs r2, #0 + 8001390: 625a str r2, [r3, #36] ; 0x24 hsram1.Init.WriteOperation = FSMC_WRITE_OPERATION_ENABLE; - 8001332: 4b19 ldr r3, [pc, #100] ; (8001398 ) - 8001334: f44f 5280 mov.w r2, #4096 ; 0x1000 - 8001338: 629a str r2, [r3, #40] ; 0x28 + 8001392: 4b19 ldr r3, [pc, #100] ; (80013f8 ) + 8001394: f44f 5280 mov.w r2, #4096 ; 0x1000 + 8001398: 629a str r2, [r3, #40] ; 0x28 hsram1.Init.WaitSignal = FSMC_WAIT_SIGNAL_DISABLE; - 800133a: 4b17 ldr r3, [pc, #92] ; (8001398 ) - 800133c: 2200 movs r2, #0 - 800133e: 62da str r2, [r3, #44] ; 0x2c + 800139a: 4b17 ldr r3, [pc, #92] ; (80013f8 ) + 800139c: 2200 movs r2, #0 + 800139e: 62da str r2, [r3, #44] ; 0x2c hsram1.Init.ExtendedMode = FSMC_EXTENDED_MODE_DISABLE; - 8001340: 4b15 ldr r3, [pc, #84] ; (8001398 ) - 8001342: 2200 movs r2, #0 - 8001344: 631a str r2, [r3, #48] ; 0x30 + 80013a0: 4b15 ldr r3, [pc, #84] ; (80013f8 ) + 80013a2: 2200 movs r2, #0 + 80013a4: 631a str r2, [r3, #48] ; 0x30 hsram1.Init.AsynchronousWait = FSMC_ASYNCHRONOUS_WAIT_DISABLE; - 8001346: 4b14 ldr r3, [pc, #80] ; (8001398 ) - 8001348: 2200 movs r2, #0 - 800134a: 635a str r2, [r3, #52] ; 0x34 + 80013a6: 4b14 ldr r3, [pc, #80] ; (80013f8 ) + 80013a8: 2200 movs r2, #0 + 80013aa: 635a str r2, [r3, #52] ; 0x34 hsram1.Init.WriteBurst = FSMC_WRITE_BURST_DISABLE; - 800134c: 4b12 ldr r3, [pc, #72] ; (8001398 ) - 800134e: 2200 movs r2, #0 - 8001350: 639a str r2, [r3, #56] ; 0x38 + 80013ac: 4b12 ldr r3, [pc, #72] ; (80013f8 ) + 80013ae: 2200 movs r2, #0 + 80013b0: 639a str r2, [r3, #56] ; 0x38 /* Timing */ Timing.AddressSetupTime = 0; - 8001352: 2300 movs r3, #0 - 8001354: 607b str r3, [r7, #4] + 80013b2: 2300 movs r3, #0 + 80013b4: 607b str r3, [r7, #4] Timing.AddressHoldTime = 15; - 8001356: 230f movs r3, #15 - 8001358: 60bb str r3, [r7, #8] + 80013b6: 230f movs r3, #15 + 80013b8: 60bb str r3, [r7, #8] Timing.DataSetupTime = 1; - 800135a: 2301 movs r3, #1 - 800135c: 60fb str r3, [r7, #12] + 80013ba: 2301 movs r3, #1 + 80013bc: 60fb str r3, [r7, #12] Timing.BusTurnAroundDuration = 0; - 800135e: 2300 movs r3, #0 - 8001360: 613b str r3, [r7, #16] + 80013be: 2300 movs r3, #0 + 80013c0: 613b str r3, [r7, #16] Timing.CLKDivision = 16; - 8001362: 2310 movs r3, #16 - 8001364: 617b str r3, [r7, #20] + 80013c2: 2310 movs r3, #16 + 80013c4: 617b str r3, [r7, #20] Timing.DataLatency = 17; - 8001366: 2311 movs r3, #17 - 8001368: 61bb str r3, [r7, #24] + 80013c6: 2311 movs r3, #17 + 80013c8: 61bb str r3, [r7, #24] Timing.AccessMode = FSMC_ACCESS_MODE_A; - 800136a: 2300 movs r3, #0 - 800136c: 61fb str r3, [r7, #28] + 80013ca: 2300 movs r3, #0 + 80013cc: 61fb str r3, [r7, #28] /* ExtTiming */ if (HAL_SRAM_Init(&hsram1, &Timing, NULL) != HAL_OK) - 800136e: 1d3b adds r3, r7, #4 - 8001370: 2200 movs r2, #0 - 8001372: 4619 mov r1, r3 - 8001374: 4808 ldr r0, [pc, #32] ; (8001398 ) - 8001376: f001 f8d5 bl 8002524 - 800137a: 4603 mov r3, r0 - 800137c: 2b00 cmp r3, #0 - 800137e: d001 beq.n 8001384 + 80013ce: 1d3b adds r3, r7, #4 + 80013d0: 2200 movs r2, #0 + 80013d2: 4619 mov r1, r3 + 80013d4: 4808 ldr r0, [pc, #32] ; (80013f8 ) + 80013d6: f002 f933 bl 8003640 + 80013da: 4603 mov r3, r0 + 80013dc: 2b00 cmp r3, #0 + 80013de: d001 beq.n 80013e4 { Error_Handler( ); - 8001380: f000 f810 bl 80013a4 + 80013e0: f000 f810 bl 8001404 } /** Disconnect NADV */ __HAL_AFIO_FSMCNADV_DISCONNECTED(); - 8001384: 4b06 ldr r3, [pc, #24] ; (80013a0 ) - 8001386: 69db ldr r3, [r3, #28] - 8001388: 4a05 ldr r2, [pc, #20] ; (80013a0 ) - 800138a: f443 6380 orr.w r3, r3, #1024 ; 0x400 - 800138e: 61d3 str r3, [r2, #28] + 80013e4: 4b06 ldr r3, [pc, #24] ; (8001400 ) + 80013e6: 69db ldr r3, [r3, #28] + 80013e8: 4a05 ldr r2, [pc, #20] ; (8001400 ) + 80013ea: f443 6380 orr.w r3, r3, #1024 ; 0x400 + 80013ee: 61d3 str r3, [r2, #28] /* USER CODE BEGIN FSMC_Init 2 */ /* USER CODE END FSMC_Init 2 */ } - 8001390: bf00 nop - 8001392: 3720 adds r7, #32 - 8001394: 46bd mov sp, r7 - 8001396: bd80 pop {r7, pc} - 8001398: 20000208 .word 0x20000208 - 800139c: a0000104 .word 0xa0000104 - 80013a0: 40010000 .word 0x40010000 + 80013f0: bf00 nop + 80013f2: 3720 adds r7, #32 + 80013f4: 46bd mov sp, r7 + 80013f6: bd80 pop {r7, pc} + 80013f8: 2000025c .word 0x2000025c + 80013fc: a0000104 .word 0xa0000104 + 8001400: 40010000 .word 0x40010000 -080013a4 : +08001404 : /** * @brief This function is executed in case of error occurrence. * @retval None */ void Error_Handler(void) { - 80013a4: b480 push {r7} - 80013a6: af00 add r7, sp, #0 + 8001404: b480 push {r7} + 8001406: af00 add r7, sp, #0 \details Disables IRQ interrupts by setting the I-bit in the CPSR. Can only be executed in Privileged modes. */ __STATIC_FORCEINLINE void __disable_irq(void) { __ASM volatile ("cpsid i" : : : "memory"); - 80013a8: b672 cpsid i + 8001408: b672 cpsid i } - 80013aa: bf00 nop + 800140a: bf00 nop /* USER CODE BEGIN Error_Handler_Debug */ /* User can add his own implementation to report the HAL error return state */ __disable_irq(); while (1) - 80013ac: e7fe b.n 80013ac + 800140c: e7fe b.n 800140c ... -080013b0 : +08001410 : /* USER CODE END 0 */ /** * Initializes the Global MSP. */ void HAL_MspInit(void) { - 80013b0: b480 push {r7} - 80013b2: b085 sub sp, #20 - 80013b4: af00 add r7, sp, #0 + 8001410: b480 push {r7} + 8001412: b085 sub sp, #20 + 8001414: af00 add r7, sp, #0 /* USER CODE BEGIN MspInit 0 */ /* USER CODE END MspInit 0 */ __HAL_RCC_AFIO_CLK_ENABLE(); - 80013b6: 4b15 ldr r3, [pc, #84] ; (800140c ) - 80013b8: 699b ldr r3, [r3, #24] - 80013ba: 4a14 ldr r2, [pc, #80] ; (800140c ) - 80013bc: f043 0301 orr.w r3, r3, #1 - 80013c0: 6193 str r3, [r2, #24] - 80013c2: 4b12 ldr r3, [pc, #72] ; (800140c ) - 80013c4: 699b ldr r3, [r3, #24] - 80013c6: f003 0301 and.w r3, r3, #1 - 80013ca: 60bb str r3, [r7, #8] - 80013cc: 68bb ldr r3, [r7, #8] + 8001416: 4b15 ldr r3, [pc, #84] ; (800146c ) + 8001418: 699b ldr r3, [r3, #24] + 800141a: 4a14 ldr r2, [pc, #80] ; (800146c ) + 800141c: f043 0301 orr.w r3, r3, #1 + 8001420: 6193 str r3, [r2, #24] + 8001422: 4b12 ldr r3, [pc, #72] ; (800146c ) + 8001424: 699b ldr r3, [r3, #24] + 8001426: f003 0301 and.w r3, r3, #1 + 800142a: 60bb str r3, [r7, #8] + 800142c: 68bb ldr r3, [r7, #8] __HAL_RCC_PWR_CLK_ENABLE(); - 80013ce: 4b0f ldr r3, [pc, #60] ; (800140c ) - 80013d0: 69db ldr r3, [r3, #28] - 80013d2: 4a0e ldr r2, [pc, #56] ; (800140c ) - 80013d4: f043 5380 orr.w r3, r3, #268435456 ; 0x10000000 - 80013d8: 61d3 str r3, [r2, #28] - 80013da: 4b0c ldr r3, [pc, #48] ; (800140c ) - 80013dc: 69db ldr r3, [r3, #28] - 80013de: f003 5380 and.w r3, r3, #268435456 ; 0x10000000 - 80013e2: 607b str r3, [r7, #4] - 80013e4: 687b ldr r3, [r7, #4] + 800142e: 4b0f ldr r3, [pc, #60] ; (800146c ) + 8001430: 69db ldr r3, [r3, #28] + 8001432: 4a0e ldr r2, [pc, #56] ; (800146c ) + 8001434: f043 5380 orr.w r3, r3, #268435456 ; 0x10000000 + 8001438: 61d3 str r3, [r2, #28] + 800143a: 4b0c ldr r3, [pc, #48] ; (800146c ) + 800143c: 69db ldr r3, [r3, #28] + 800143e: f003 5380 and.w r3, r3, #268435456 ; 0x10000000 + 8001442: 607b str r3, [r7, #4] + 8001444: 687b ldr r3, [r7, #4] /* System interrupt init*/ /** DISABLE: JTAG-DP Disabled and SW-DP Disabled */ __HAL_AFIO_REMAP_SWJ_DISABLE(); - 80013e6: 4b0a ldr r3, [pc, #40] ; (8001410 ) - 80013e8: 685b ldr r3, [r3, #4] - 80013ea: 60fb str r3, [r7, #12] - 80013ec: 68fb ldr r3, [r7, #12] - 80013ee: f023 63e0 bic.w r3, r3, #117440512 ; 0x7000000 - 80013f2: 60fb str r3, [r7, #12] - 80013f4: 68fb ldr r3, [r7, #12] - 80013f6: f043 6380 orr.w r3, r3, #67108864 ; 0x4000000 - 80013fa: 60fb str r3, [r7, #12] - 80013fc: 4a04 ldr r2, [pc, #16] ; (8001410 ) - 80013fe: 68fb ldr r3, [r7, #12] - 8001400: 6053 str r3, [r2, #4] + 8001446: 4b0a ldr r3, [pc, #40] ; (8001470 ) + 8001448: 685b ldr r3, [r3, #4] + 800144a: 60fb str r3, [r7, #12] + 800144c: 68fb ldr r3, [r7, #12] + 800144e: f023 63e0 bic.w r3, r3, #117440512 ; 0x7000000 + 8001452: 60fb str r3, [r7, #12] + 8001454: 68fb ldr r3, [r7, #12] + 8001456: f043 6380 orr.w r3, r3, #67108864 ; 0x4000000 + 800145a: 60fb str r3, [r7, #12] + 800145c: 4a04 ldr r2, [pc, #16] ; (8001470 ) + 800145e: 68fb ldr r3, [r7, #12] + 8001460: 6053 str r3, [r2, #4] /* USER CODE BEGIN MspInit 1 */ /* USER CODE END MspInit 1 */ } - 8001402: bf00 nop - 8001404: 3714 adds r7, #20 - 8001406: 46bd mov sp, r7 - 8001408: bc80 pop {r7} - 800140a: 4770 bx lr - 800140c: 40021000 .word 0x40021000 - 8001410: 40010000 .word 0x40010000 + 8001462: bf00 nop + 8001464: 3714 adds r7, #20 + 8001466: 46bd mov sp, r7 + 8001468: bc80 pop {r7} + 800146a: 4770 bx lr + 800146c: 40021000 .word 0x40021000 + 8001470: 40010000 .word 0x40010000 -08001414 : +08001474 : +* This function configures the hardware resources used in this example +* @param hi2c: I2C handle pointer +* @retval None +*/ +void HAL_I2C_MspInit(I2C_HandleTypeDef* hi2c) +{ + 8001474: b580 push {r7, lr} + 8001476: b088 sub sp, #32 + 8001478: af00 add r7, sp, #0 + 800147a: 6078 str r0, [r7, #4] + GPIO_InitTypeDef GPIO_InitStruct = {0}; + 800147c: f107 0310 add.w r3, r7, #16 + 8001480: 2200 movs r2, #0 + 8001482: 601a str r2, [r3, #0] + 8001484: 605a str r2, [r3, #4] + 8001486: 609a str r2, [r3, #8] + 8001488: 60da str r2, [r3, #12] + if(hi2c->Instance==I2C2) + 800148a: 687b ldr r3, [r7, #4] + 800148c: 681b ldr r3, [r3, #0] + 800148e: 4a16 ldr r2, [pc, #88] ; (80014e8 ) + 8001490: 4293 cmp r3, r2 + 8001492: d124 bne.n 80014de + { + /* USER CODE BEGIN I2C2_MspInit 0 */ + + /* USER CODE END I2C2_MspInit 0 */ + + __HAL_RCC_GPIOB_CLK_ENABLE(); + 8001494: 4b15 ldr r3, [pc, #84] ; (80014ec ) + 8001496: 699b ldr r3, [r3, #24] + 8001498: 4a14 ldr r2, [pc, #80] ; (80014ec ) + 800149a: f043 0308 orr.w r3, r3, #8 + 800149e: 6193 str r3, [r2, #24] + 80014a0: 4b12 ldr r3, [pc, #72] ; (80014ec ) + 80014a2: 699b ldr r3, [r3, #24] + 80014a4: f003 0308 and.w r3, r3, #8 + 80014a8: 60fb str r3, [r7, #12] + 80014aa: 68fb ldr r3, [r7, #12] + /**I2C2 GPIO Configuration + PB10 ------> I2C2_SCL + PB11 ------> I2C2_SDA + */ + GPIO_InitStruct.Pin = GPIO_PIN_10|GPIO_PIN_11; + 80014ac: f44f 6340 mov.w r3, #3072 ; 0xc00 + 80014b0: 613b str r3, [r7, #16] + GPIO_InitStruct.Mode = GPIO_MODE_AF_OD; + 80014b2: 2312 movs r3, #18 + 80014b4: 617b str r3, [r7, #20] + GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_HIGH; + 80014b6: 2303 movs r3, #3 + 80014b8: 61fb str r3, [r7, #28] + HAL_GPIO_Init(GPIOB, &GPIO_InitStruct); + 80014ba: f107 0310 add.w r3, r7, #16 + 80014be: 4619 mov r1, r3 + 80014c0: 480b ldr r0, [pc, #44] ; (80014f0 ) + 80014c2: f000 faf3 bl 8001aac + + /* Peripheral clock enable */ + __HAL_RCC_I2C2_CLK_ENABLE(); + 80014c6: 4b09 ldr r3, [pc, #36] ; (80014ec ) + 80014c8: 69db ldr r3, [r3, #28] + 80014ca: 4a08 ldr r2, [pc, #32] ; (80014ec ) + 80014cc: f443 0380 orr.w r3, r3, #4194304 ; 0x400000 + 80014d0: 61d3 str r3, [r2, #28] + 80014d2: 4b06 ldr r3, [pc, #24] ; (80014ec ) + 80014d4: 69db ldr r3, [r3, #28] + 80014d6: f403 0380 and.w r3, r3, #4194304 ; 0x400000 + 80014da: 60bb str r3, [r7, #8] + 80014dc: 68bb ldr r3, [r7, #8] + /* USER CODE BEGIN I2C2_MspInit 1 */ + + /* USER CODE END I2C2_MspInit 1 */ + } + +} + 80014de: bf00 nop + 80014e0: 3720 adds r7, #32 + 80014e2: 46bd mov sp, r7 + 80014e4: bd80 pop {r7, pc} + 80014e6: bf00 nop + 80014e8: 40005800 .word 0x40005800 + 80014ec: 40021000 .word 0x40021000 + 80014f0: 40010c00 .word 0x40010c00 + +080014f4 : + +} static uint32_t FSMC_Initialized = 0; static void HAL_FSMC_MspInit(void){ - 8001414: b580 push {r7, lr} - 8001416: b086 sub sp, #24 - 8001418: af00 add r7, sp, #0 + 80014f4: b580 push {r7, lr} + 80014f6: b086 sub sp, #24 + 80014f8: af00 add r7, sp, #0 /* USER CODE BEGIN FSMC_MspInit 0 */ /* USER CODE END FSMC_MspInit 0 */ GPIO_InitTypeDef GPIO_InitStruct ={0}; - 800141a: f107 0308 add.w r3, r7, #8 - 800141e: 2200 movs r2, #0 - 8001420: 601a str r2, [r3, #0] - 8001422: 605a str r2, [r3, #4] - 8001424: 609a str r2, [r3, #8] - 8001426: 60da str r2, [r3, #12] + 80014fa: f107 0308 add.w r3, r7, #8 + 80014fe: 2200 movs r2, #0 + 8001500: 601a str r2, [r3, #0] + 8001502: 605a str r2, [r3, #4] + 8001504: 609a str r2, [r3, #8] + 8001506: 60da str r2, [r3, #12] if (FSMC_Initialized) { - 8001428: 4b1f ldr r3, [pc, #124] ; (80014a8 ) - 800142a: 681b ldr r3, [r3, #0] - 800142c: 2b00 cmp r3, #0 - 800142e: d136 bne.n 800149e + 8001508: 4b1f ldr r3, [pc, #124] ; (8001588 ) + 800150a: 681b ldr r3, [r3, #0] + 800150c: 2b00 cmp r3, #0 + 800150e: d136 bne.n 800157e return; } FSMC_Initialized = 1; - 8001430: 4b1d ldr r3, [pc, #116] ; (80014a8 ) - 8001432: 2201 movs r2, #1 - 8001434: 601a str r2, [r3, #0] + 8001510: 4b1d ldr r3, [pc, #116] ; (8001588 ) + 8001512: 2201 movs r2, #1 + 8001514: 601a str r2, [r3, #0] /* Peripheral clock enable */ __HAL_RCC_FSMC_CLK_ENABLE(); - 8001436: 4b1d ldr r3, [pc, #116] ; (80014ac ) - 8001438: 695b ldr r3, [r3, #20] - 800143a: 4a1c ldr r2, [pc, #112] ; (80014ac ) - 800143c: f443 7380 orr.w r3, r3, #256 ; 0x100 - 8001440: 6153 str r3, [r2, #20] - 8001442: 4b1a ldr r3, [pc, #104] ; (80014ac ) - 8001444: 695b ldr r3, [r3, #20] - 8001446: f403 7380 and.w r3, r3, #256 ; 0x100 - 800144a: 607b str r3, [r7, #4] - 800144c: 687b ldr r3, [r7, #4] + 8001516: 4b1d ldr r3, [pc, #116] ; (800158c ) + 8001518: 695b ldr r3, [r3, #20] + 800151a: 4a1c ldr r2, [pc, #112] ; (800158c ) + 800151c: f443 7380 orr.w r3, r3, #256 ; 0x100 + 8001520: 6153 str r3, [r2, #20] + 8001522: 4b1a ldr r3, [pc, #104] ; (800158c ) + 8001524: 695b ldr r3, [r3, #20] + 8001526: f403 7380 and.w r3, r3, #256 ; 0x100 + 800152a: 607b str r3, [r7, #4] + 800152c: 687b ldr r3, [r7, #4] PD1 ------> FSMC_D3 PD4 ------> FSMC_NOE PD5 ------> FSMC_NWE PG12 ------> FSMC_NE4 */ GPIO_InitStruct.Pin = GPIO_PIN_0|GPIO_PIN_12; - 800144e: f241 0301 movw r3, #4097 ; 0x1001 - 8001452: 60bb str r3, [r7, #8] + 800152e: f241 0301 movw r3, #4097 ; 0x1001 + 8001532: 60bb str r3, [r7, #8] GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; - 8001454: 2302 movs r3, #2 - 8001456: 60fb str r3, [r7, #12] + 8001534: 2302 movs r3, #2 + 8001536: 60fb str r3, [r7, #12] GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_HIGH; - 8001458: 2303 movs r3, #3 - 800145a: 617b str r3, [r7, #20] + 8001538: 2303 movs r3, #3 + 800153a: 617b str r3, [r7, #20] HAL_GPIO_Init(GPIOG, &GPIO_InitStruct); - 800145c: f107 0308 add.w r3, r7, #8 - 8001460: 4619 mov r1, r3 - 8001462: 4813 ldr r0, [pc, #76] ; (80014b0 ) - 8001464: f000 fab2 bl 80019cc + 800153c: f107 0308 add.w r3, r7, #8 + 8001540: 4619 mov r1, r3 + 8001542: 4813 ldr r0, [pc, #76] ; (8001590 ) + 8001544: f000 fab2 bl 8001aac GPIO_InitStruct.Pin = GPIO_PIN_7|GPIO_PIN_8|GPIO_PIN_9|GPIO_PIN_10 - 8001468: f64f 7380 movw r3, #65408 ; 0xff80 - 800146c: 60bb str r3, [r7, #8] + 8001548: f64f 7380 movw r3, #65408 ; 0xff80 + 800154c: 60bb str r3, [r7, #8] |GPIO_PIN_11|GPIO_PIN_12|GPIO_PIN_13|GPIO_PIN_14 |GPIO_PIN_15; GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; - 800146e: 2302 movs r3, #2 - 8001470: 60fb str r3, [r7, #12] + 800154e: 2302 movs r3, #2 + 8001550: 60fb str r3, [r7, #12] GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_HIGH; - 8001472: 2303 movs r3, #3 - 8001474: 617b str r3, [r7, #20] + 8001552: 2303 movs r3, #3 + 8001554: 617b str r3, [r7, #20] HAL_GPIO_Init(GPIOE, &GPIO_InitStruct); - 8001476: f107 0308 add.w r3, r7, #8 - 800147a: 4619 mov r1, r3 - 800147c: 480d ldr r0, [pc, #52] ; (80014b4 ) - 800147e: f000 faa5 bl 80019cc + 8001556: f107 0308 add.w r3, r7, #8 + 800155a: 4619 mov r1, r3 + 800155c: 480d ldr r0, [pc, #52] ; (8001594 ) + 800155e: f000 faa5 bl 8001aac GPIO_InitStruct.Pin = GPIO_PIN_8|GPIO_PIN_9|GPIO_PIN_10|GPIO_PIN_14 - 8001482: f24c 7333 movw r3, #50995 ; 0xc733 - 8001486: 60bb str r3, [r7, #8] + 8001562: f24c 7333 movw r3, #50995 ; 0xc733 + 8001566: 60bb str r3, [r7, #8] |GPIO_PIN_15|GPIO_PIN_0|GPIO_PIN_1|GPIO_PIN_4 |GPIO_PIN_5; GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; - 8001488: 2302 movs r3, #2 - 800148a: 60fb str r3, [r7, #12] + 8001568: 2302 movs r3, #2 + 800156a: 60fb str r3, [r7, #12] GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_HIGH; - 800148c: 2303 movs r3, #3 - 800148e: 617b str r3, [r7, #20] + 800156c: 2303 movs r3, #3 + 800156e: 617b str r3, [r7, #20] HAL_GPIO_Init(GPIOD, &GPIO_InitStruct); - 8001490: f107 0308 add.w r3, r7, #8 - 8001494: 4619 mov r1, r3 - 8001496: 4808 ldr r0, [pc, #32] ; (80014b8 ) - 8001498: f000 fa98 bl 80019cc - 800149c: e000 b.n 80014a0 + 8001570: f107 0308 add.w r3, r7, #8 + 8001574: 4619 mov r1, r3 + 8001576: 4808 ldr r0, [pc, #32] ; (8001598 ) + 8001578: f000 fa98 bl 8001aac + 800157c: e000 b.n 8001580 return; - 800149e: bf00 nop + 800157e: bf00 nop /* USER CODE BEGIN FSMC_MspInit 1 */ /* USER CODE END FSMC_MspInit 1 */ } - 80014a0: 3718 adds r7, #24 - 80014a2: 46bd mov sp, r7 - 80014a4: bd80 pop {r7, pc} - 80014a6: bf00 nop - 80014a8: 200001f8 .word 0x200001f8 - 80014ac: 40021000 .word 0x40021000 - 80014b0: 40012000 .word 0x40012000 - 80014b4: 40011800 .word 0x40011800 - 80014b8: 40011400 .word 0x40011400 + 8001580: 3718 adds r7, #24 + 8001582: 46bd mov sp, r7 + 8001584: bd80 pop {r7, pc} + 8001586: bf00 nop + 8001588: 200001f8 .word 0x200001f8 + 800158c: 40021000 .word 0x40021000 + 8001590: 40012000 .word 0x40012000 + 8001594: 40011800 .word 0x40011800 + 8001598: 40011400 .word 0x40011400 -080014bc : +0800159c : void HAL_SRAM_MspInit(SRAM_HandleTypeDef* hsram){ - 80014bc: b580 push {r7, lr} - 80014be: b082 sub sp, #8 - 80014c0: af00 add r7, sp, #0 - 80014c2: 6078 str r0, [r7, #4] + 800159c: b580 push {r7, lr} + 800159e: b082 sub sp, #8 + 80015a0: af00 add r7, sp, #0 + 80015a2: 6078 str r0, [r7, #4] /* USER CODE BEGIN SRAM_MspInit 0 */ /* USER CODE END SRAM_MspInit 0 */ HAL_FSMC_MspInit(); - 80014c4: f7ff ffa6 bl 8001414 + 80015a4: f7ff ffa6 bl 80014f4 /* USER CODE BEGIN SRAM_MspInit 1 */ /* USER CODE END SRAM_MspInit 1 */ } - 80014c8: bf00 nop - 80014ca: 3708 adds r7, #8 - 80014cc: 46bd mov sp, r7 - 80014ce: bd80 pop {r7, pc} + 80015a8: bf00 nop + 80015aa: 3708 adds r7, #8 + 80015ac: 46bd mov sp, r7 + 80015ae: bd80 pop {r7, pc} -080014d0 : +080015b0 : /******************************************************************************/ /** * @brief This function handles Non maskable interrupt. */ void NMI_Handler(void) { - 80014d0: b480 push {r7} - 80014d2: af00 add r7, sp, #0 + 80015b0: b480 push {r7} + 80015b2: af00 add r7, sp, #0 /* USER CODE BEGIN NonMaskableInt_IRQn 0 */ /* USER CODE END NonMaskableInt_IRQn 0 */ /* USER CODE BEGIN NonMaskableInt_IRQn 1 */ while (1) - 80014d4: e7fe b.n 80014d4 + 80015b4: e7fe b.n 80015b4 -080014d6 : +080015b6 : /** * @brief This function handles Hard fault interrupt. */ void HardFault_Handler(void) { - 80014d6: b480 push {r7} - 80014d8: af00 add r7, sp, #0 + 80015b6: b480 push {r7} + 80015b8: af00 add r7, sp, #0 /* USER CODE BEGIN HardFault_IRQn 0 */ /* USER CODE END HardFault_IRQn 0 */ while (1) - 80014da: e7fe b.n 80014da + 80015ba: e7fe b.n 80015ba -080014dc : +080015bc : /** * @brief This function handles Memory management fault. */ void MemManage_Handler(void) { - 80014dc: b480 push {r7} - 80014de: af00 add r7, sp, #0 + 80015bc: b480 push {r7} + 80015be: af00 add r7, sp, #0 /* USER CODE BEGIN MemoryManagement_IRQn 0 */ /* USER CODE END MemoryManagement_IRQn 0 */ while (1) - 80014e0: e7fe b.n 80014e0 + 80015c0: e7fe b.n 80015c0 -080014e2 : +080015c2 : /** * @brief This function handles Prefetch fault, memory access fault. */ void BusFault_Handler(void) { - 80014e2: b480 push {r7} - 80014e4: af00 add r7, sp, #0 + 80015c2: b480 push {r7} + 80015c4: af00 add r7, sp, #0 /* USER CODE BEGIN BusFault_IRQn 0 */ /* USER CODE END BusFault_IRQn 0 */ while (1) - 80014e6: e7fe b.n 80014e6 + 80015c6: e7fe b.n 80015c6 -080014e8 : +080015c8 : /** * @brief This function handles Undefined instruction or illegal state. */ void UsageFault_Handler(void) { - 80014e8: b480 push {r7} - 80014ea: af00 add r7, sp, #0 + 80015c8: b480 push {r7} + 80015ca: af00 add r7, sp, #0 /* USER CODE BEGIN UsageFault_IRQn 0 */ /* USER CODE END UsageFault_IRQn 0 */ while (1) - 80014ec: e7fe b.n 80014ec + 80015cc: e7fe b.n 80015cc -080014ee : +080015ce : /** * @brief This function handles System service call via SWI instruction. */ void SVC_Handler(void) { - 80014ee: b480 push {r7} - 80014f0: af00 add r7, sp, #0 + 80015ce: b480 push {r7} + 80015d0: af00 add r7, sp, #0 /* USER CODE END SVCall_IRQn 0 */ /* USER CODE BEGIN SVCall_IRQn 1 */ /* USER CODE END SVCall_IRQn 1 */ } - 80014f2: bf00 nop - 80014f4: 46bd mov sp, r7 - 80014f6: bc80 pop {r7} - 80014f8: 4770 bx lr + 80015d2: bf00 nop + 80015d4: 46bd mov sp, r7 + 80015d6: bc80 pop {r7} + 80015d8: 4770 bx lr -080014fa : +080015da : /** * @brief This function handles Debug monitor. */ void DebugMon_Handler(void) { - 80014fa: b480 push {r7} - 80014fc: af00 add r7, sp, #0 + 80015da: b480 push {r7} + 80015dc: af00 add r7, sp, #0 /* USER CODE END DebugMonitor_IRQn 0 */ /* USER CODE BEGIN DebugMonitor_IRQn 1 */ /* USER CODE END DebugMonitor_IRQn 1 */ } - 80014fe: bf00 nop - 8001500: 46bd mov sp, r7 - 8001502: bc80 pop {r7} - 8001504: 4770 bx lr + 80015de: bf00 nop + 80015e0: 46bd mov sp, r7 + 80015e2: bc80 pop {r7} + 80015e4: 4770 bx lr -08001506 : +080015e6 : /** * @brief This function handles Pendable request for system service. */ void PendSV_Handler(void) { - 8001506: b480 push {r7} - 8001508: af00 add r7, sp, #0 + 80015e6: b480 push {r7} + 80015e8: af00 add r7, sp, #0 /* USER CODE END PendSV_IRQn 0 */ /* USER CODE BEGIN PendSV_IRQn 1 */ /* USER CODE END PendSV_IRQn 1 */ } - 800150a: bf00 nop - 800150c: 46bd mov sp, r7 - 800150e: bc80 pop {r7} - 8001510: 4770 bx lr + 80015ea: bf00 nop + 80015ec: 46bd mov sp, r7 + 80015ee: bc80 pop {r7} + 80015f0: 4770 bx lr -08001512 : +080015f2 : /** * @brief This function handles System tick timer. */ void SysTick_Handler(void) { - 8001512: b580 push {r7, lr} - 8001514: af00 add r7, sp, #0 + 80015f2: b580 push {r7, lr} + 80015f4: af00 add r7, sp, #0 /* USER CODE BEGIN SysTick_IRQn 0 */ /* USER CODE END SysTick_IRQn 0 */ HAL_IncTick(); - 8001516: f000 f935 bl 8001784 + 80015f6: f000 f935 bl 8001864 /* USER CODE BEGIN SysTick_IRQn 1 */ /* USER CODE END SysTick_IRQn 1 */ } - 800151a: bf00 nop - 800151c: bd80 pop {r7, pc} + 80015fa: bf00 nop + 80015fc: bd80 pop {r7, pc} -0800151e <_getpid>: +080015fe <_getpid>: void initialise_monitor_handles() { } int _getpid(void) { - 800151e: b480 push {r7} - 8001520: af00 add r7, sp, #0 + 80015fe: b480 push {r7} + 8001600: af00 add r7, sp, #0 return 1; - 8001522: 2301 movs r3, #1 + 8001602: 2301 movs r3, #1 } - 8001524: 4618 mov r0, r3 - 8001526: 46bd mov sp, r7 - 8001528: bc80 pop {r7} - 800152a: 4770 bx lr + 8001604: 4618 mov r0, r3 + 8001606: 46bd mov sp, r7 + 8001608: bc80 pop {r7} + 800160a: 4770 bx lr -0800152c <_kill>: +0800160c <_kill>: int _kill(int pid, int sig) { - 800152c: b580 push {r7, lr} - 800152e: b082 sub sp, #8 - 8001530: af00 add r7, sp, #0 - 8001532: 6078 str r0, [r7, #4] - 8001534: 6039 str r1, [r7, #0] + 800160c: b580 push {r7, lr} + 800160e: b082 sub sp, #8 + 8001610: af00 add r7, sp, #0 + 8001612: 6078 str r0, [r7, #4] + 8001614: 6039 str r1, [r7, #0] errno = EINVAL; - 8001536: f002 fe49 bl 80041cc <__errno> - 800153a: 4603 mov r3, r0 - 800153c: 2216 movs r2, #22 - 800153e: 601a str r2, [r3, #0] + 8001616: f003 ff7b bl 8005510 <__errno> + 800161a: 4603 mov r3, r0 + 800161c: 2216 movs r2, #22 + 800161e: 601a str r2, [r3, #0] return -1; - 8001540: f04f 33ff mov.w r3, #4294967295 ; 0xffffffff + 8001620: f04f 33ff mov.w r3, #4294967295 ; 0xffffffff } - 8001544: 4618 mov r0, r3 - 8001546: 3708 adds r7, #8 - 8001548: 46bd mov sp, r7 - 800154a: bd80 pop {r7, pc} + 8001624: 4618 mov r0, r3 + 8001626: 3708 adds r7, #8 + 8001628: 46bd mov sp, r7 + 800162a: bd80 pop {r7, pc} -0800154c <_exit>: +0800162c <_exit>: void _exit (int status) { - 800154c: b580 push {r7, lr} - 800154e: b082 sub sp, #8 - 8001550: af00 add r7, sp, #0 - 8001552: 6078 str r0, [r7, #4] + 800162c: b580 push {r7, lr} + 800162e: b082 sub sp, #8 + 8001630: af00 add r7, sp, #0 + 8001632: 6078 str r0, [r7, #4] _kill(status, -1); - 8001554: f04f 31ff mov.w r1, #4294967295 ; 0xffffffff - 8001558: 6878 ldr r0, [r7, #4] - 800155a: f7ff ffe7 bl 800152c <_kill> + 8001634: f04f 31ff mov.w r1, #4294967295 ; 0xffffffff + 8001638: 6878 ldr r0, [r7, #4] + 800163a: f7ff ffe7 bl 800160c <_kill> while (1) {} /* Make sure we hang here */ - 800155e: e7fe b.n 800155e <_exit+0x12> + 800163e: e7fe b.n 800163e <_exit+0x12> -08001560 <_read>: +08001640 <_read>: } __attribute__((weak)) int _read(int file, char *ptr, int len) { - 8001560: b580 push {r7, lr} - 8001562: b086 sub sp, #24 - 8001564: af00 add r7, sp, #0 - 8001566: 60f8 str r0, [r7, #12] - 8001568: 60b9 str r1, [r7, #8] - 800156a: 607a str r2, [r7, #4] + 8001640: b580 push {r7, lr} + 8001642: b086 sub sp, #24 + 8001644: af00 add r7, sp, #0 + 8001646: 60f8 str r0, [r7, #12] + 8001648: 60b9 str r1, [r7, #8] + 800164a: 607a str r2, [r7, #4] int DataIdx; for (DataIdx = 0; DataIdx < len; DataIdx++) - 800156c: 2300 movs r3, #0 - 800156e: 617b str r3, [r7, #20] - 8001570: e00a b.n 8001588 <_read+0x28> + 800164c: 2300 movs r3, #0 + 800164e: 617b str r3, [r7, #20] + 8001650: e00a b.n 8001668 <_read+0x28> { *ptr++ = __io_getchar(); - 8001572: f3af 8000 nop.w - 8001576: 4601 mov r1, r0 - 8001578: 68bb ldr r3, [r7, #8] - 800157a: 1c5a adds r2, r3, #1 - 800157c: 60ba str r2, [r7, #8] - 800157e: b2ca uxtb r2, r1 - 8001580: 701a strb r2, [r3, #0] + 8001652: f3af 8000 nop.w + 8001656: 4601 mov r1, r0 + 8001658: 68bb ldr r3, [r7, #8] + 800165a: 1c5a adds r2, r3, #1 + 800165c: 60ba str r2, [r7, #8] + 800165e: b2ca uxtb r2, r1 + 8001660: 701a strb r2, [r3, #0] for (DataIdx = 0; DataIdx < len; DataIdx++) - 8001582: 697b ldr r3, [r7, #20] - 8001584: 3301 adds r3, #1 - 8001586: 617b str r3, [r7, #20] - 8001588: 697a ldr r2, [r7, #20] - 800158a: 687b ldr r3, [r7, #4] - 800158c: 429a cmp r2, r3 - 800158e: dbf0 blt.n 8001572 <_read+0x12> + 8001662: 697b ldr r3, [r7, #20] + 8001664: 3301 adds r3, #1 + 8001666: 617b str r3, [r7, #20] + 8001668: 697a ldr r2, [r7, #20] + 800166a: 687b ldr r3, [r7, #4] + 800166c: 429a cmp r2, r3 + 800166e: dbf0 blt.n 8001652 <_read+0x12> } return len; - 8001590: 687b ldr r3, [r7, #4] + 8001670: 687b ldr r3, [r7, #4] } - 8001592: 4618 mov r0, r3 - 8001594: 3718 adds r7, #24 - 8001596: 46bd mov sp, r7 - 8001598: bd80 pop {r7, pc} + 8001672: 4618 mov r0, r3 + 8001674: 3718 adds r7, #24 + 8001676: 46bd mov sp, r7 + 8001678: bd80 pop {r7, pc} -0800159a <_write>: +0800167a <_write>: __attribute__((weak)) int _write(int file, char *ptr, int len) { - 800159a: b580 push {r7, lr} - 800159c: b086 sub sp, #24 - 800159e: af00 add r7, sp, #0 - 80015a0: 60f8 str r0, [r7, #12] - 80015a2: 60b9 str r1, [r7, #8] - 80015a4: 607a str r2, [r7, #4] + 800167a: b580 push {r7, lr} + 800167c: b086 sub sp, #24 + 800167e: af00 add r7, sp, #0 + 8001680: 60f8 str r0, [r7, #12] + 8001682: 60b9 str r1, [r7, #8] + 8001684: 607a str r2, [r7, #4] int DataIdx; for (DataIdx = 0; DataIdx < len; DataIdx++) - 80015a6: 2300 movs r3, #0 - 80015a8: 617b str r3, [r7, #20] - 80015aa: e009 b.n 80015c0 <_write+0x26> + 8001686: 2300 movs r3, #0 + 8001688: 617b str r3, [r7, #20] + 800168a: e009 b.n 80016a0 <_write+0x26> { __io_putchar(*ptr++); - 80015ac: 68bb ldr r3, [r7, #8] - 80015ae: 1c5a adds r2, r3, #1 - 80015b0: 60ba str r2, [r7, #8] - 80015b2: 781b ldrb r3, [r3, #0] - 80015b4: 4618 mov r0, r3 - 80015b6: f3af 8000 nop.w + 800168c: 68bb ldr r3, [r7, #8] + 800168e: 1c5a adds r2, r3, #1 + 8001690: 60ba str r2, [r7, #8] + 8001692: 781b ldrb r3, [r3, #0] + 8001694: 4618 mov r0, r3 + 8001696: f3af 8000 nop.w for (DataIdx = 0; DataIdx < len; DataIdx++) - 80015ba: 697b ldr r3, [r7, #20] - 80015bc: 3301 adds r3, #1 - 80015be: 617b str r3, [r7, #20] - 80015c0: 697a ldr r2, [r7, #20] - 80015c2: 687b ldr r3, [r7, #4] - 80015c4: 429a cmp r2, r3 - 80015c6: dbf1 blt.n 80015ac <_write+0x12> + 800169a: 697b ldr r3, [r7, #20] + 800169c: 3301 adds r3, #1 + 800169e: 617b str r3, [r7, #20] + 80016a0: 697a ldr r2, [r7, #20] + 80016a2: 687b ldr r3, [r7, #4] + 80016a4: 429a cmp r2, r3 + 80016a6: dbf1 blt.n 800168c <_write+0x12> } return len; - 80015c8: 687b ldr r3, [r7, #4] + 80016a8: 687b ldr r3, [r7, #4] } - 80015ca: 4618 mov r0, r3 - 80015cc: 3718 adds r7, #24 - 80015ce: 46bd mov sp, r7 - 80015d0: bd80 pop {r7, pc} + 80016aa: 4618 mov r0, r3 + 80016ac: 3718 adds r7, #24 + 80016ae: 46bd mov sp, r7 + 80016b0: bd80 pop {r7, pc} -080015d2 <_close>: +080016b2 <_close>: int _close(int file) { - 80015d2: b480 push {r7} - 80015d4: b083 sub sp, #12 - 80015d6: af00 add r7, sp, #0 - 80015d8: 6078 str r0, [r7, #4] + 80016b2: b480 push {r7} + 80016b4: b083 sub sp, #12 + 80016b6: af00 add r7, sp, #0 + 80016b8: 6078 str r0, [r7, #4] return -1; - 80015da: f04f 33ff mov.w r3, #4294967295 ; 0xffffffff + 80016ba: f04f 33ff mov.w r3, #4294967295 ; 0xffffffff } - 80015de: 4618 mov r0, r3 - 80015e0: 370c adds r7, #12 - 80015e2: 46bd mov sp, r7 - 80015e4: bc80 pop {r7} - 80015e6: 4770 bx lr + 80016be: 4618 mov r0, r3 + 80016c0: 370c adds r7, #12 + 80016c2: 46bd mov sp, r7 + 80016c4: bc80 pop {r7} + 80016c6: 4770 bx lr -080015e8 <_fstat>: +080016c8 <_fstat>: int _fstat(int file, struct stat *st) { - 80015e8: b480 push {r7} - 80015ea: b083 sub sp, #12 - 80015ec: af00 add r7, sp, #0 - 80015ee: 6078 str r0, [r7, #4] - 80015f0: 6039 str r1, [r7, #0] + 80016c8: b480 push {r7} + 80016ca: b083 sub sp, #12 + 80016cc: af00 add r7, sp, #0 + 80016ce: 6078 str r0, [r7, #4] + 80016d0: 6039 str r1, [r7, #0] st->st_mode = S_IFCHR; - 80015f2: 683b ldr r3, [r7, #0] - 80015f4: f44f 5200 mov.w r2, #8192 ; 0x2000 - 80015f8: 605a str r2, [r3, #4] + 80016d2: 683b ldr r3, [r7, #0] + 80016d4: f44f 5200 mov.w r2, #8192 ; 0x2000 + 80016d8: 605a str r2, [r3, #4] return 0; - 80015fa: 2300 movs r3, #0 + 80016da: 2300 movs r3, #0 } - 80015fc: 4618 mov r0, r3 - 80015fe: 370c adds r7, #12 - 8001600: 46bd mov sp, r7 - 8001602: bc80 pop {r7} - 8001604: 4770 bx lr + 80016dc: 4618 mov r0, r3 + 80016de: 370c adds r7, #12 + 80016e0: 46bd mov sp, r7 + 80016e2: bc80 pop {r7} + 80016e4: 4770 bx lr -08001606 <_isatty>: +080016e6 <_isatty>: int _isatty(int file) { - 8001606: b480 push {r7} - 8001608: b083 sub sp, #12 - 800160a: af00 add r7, sp, #0 - 800160c: 6078 str r0, [r7, #4] + 80016e6: b480 push {r7} + 80016e8: b083 sub sp, #12 + 80016ea: af00 add r7, sp, #0 + 80016ec: 6078 str r0, [r7, #4] return 1; - 800160e: 2301 movs r3, #1 + 80016ee: 2301 movs r3, #1 } - 8001610: 4618 mov r0, r3 - 8001612: 370c adds r7, #12 - 8001614: 46bd mov sp, r7 - 8001616: bc80 pop {r7} - 8001618: 4770 bx lr + 80016f0: 4618 mov r0, r3 + 80016f2: 370c adds r7, #12 + 80016f4: 46bd mov sp, r7 + 80016f6: bc80 pop {r7} + 80016f8: 4770 bx lr -0800161a <_lseek>: +080016fa <_lseek>: int _lseek(int file, int ptr, int dir) { - 800161a: b480 push {r7} - 800161c: b085 sub sp, #20 - 800161e: af00 add r7, sp, #0 - 8001620: 60f8 str r0, [r7, #12] - 8001622: 60b9 str r1, [r7, #8] - 8001624: 607a str r2, [r7, #4] + 80016fa: b480 push {r7} + 80016fc: b085 sub sp, #20 + 80016fe: af00 add r7, sp, #0 + 8001700: 60f8 str r0, [r7, #12] + 8001702: 60b9 str r1, [r7, #8] + 8001704: 607a str r2, [r7, #4] return 0; - 8001626: 2300 movs r3, #0 + 8001706: 2300 movs r3, #0 } - 8001628: 4618 mov r0, r3 - 800162a: 3714 adds r7, #20 - 800162c: 46bd mov sp, r7 - 800162e: bc80 pop {r7} - 8001630: 4770 bx lr + 8001708: 4618 mov r0, r3 + 800170a: 3714 adds r7, #20 + 800170c: 46bd mov sp, r7 + 800170e: bc80 pop {r7} + 8001710: 4770 bx lr ... -08001634 <_sbrk>: +08001714 <_sbrk>: * * @param incr Memory size * @return Pointer to allocated memory */ void *_sbrk(ptrdiff_t incr) { - 8001634: b580 push {r7, lr} - 8001636: b086 sub sp, #24 - 8001638: af00 add r7, sp, #0 - 800163a: 6078 str r0, [r7, #4] + 8001714: b580 push {r7, lr} + 8001716: b086 sub sp, #24 + 8001718: af00 add r7, sp, #0 + 800171a: 6078 str r0, [r7, #4] extern uint8_t _end; /* Symbol defined in the linker script */ extern uint8_t _estack; /* Symbol defined in the linker script */ extern uint32_t _Min_Stack_Size; /* Symbol defined in the linker script */ const uint32_t stack_limit = (uint32_t)&_estack - (uint32_t)&_Min_Stack_Size; - 800163c: 4a14 ldr r2, [pc, #80] ; (8001690 <_sbrk+0x5c>) - 800163e: 4b15 ldr r3, [pc, #84] ; (8001694 <_sbrk+0x60>) - 8001640: 1ad3 subs r3, r2, r3 - 8001642: 617b str r3, [r7, #20] + 800171c: 4a14 ldr r2, [pc, #80] ; (8001770 <_sbrk+0x5c>) + 800171e: 4b15 ldr r3, [pc, #84] ; (8001774 <_sbrk+0x60>) + 8001720: 1ad3 subs r3, r2, r3 + 8001722: 617b str r3, [r7, #20] const uint8_t *max_heap = (uint8_t *)stack_limit; - 8001644: 697b ldr r3, [r7, #20] - 8001646: 613b str r3, [r7, #16] + 8001724: 697b ldr r3, [r7, #20] + 8001726: 613b str r3, [r7, #16] uint8_t *prev_heap_end; /* Initialize heap end at first call */ if (NULL == __sbrk_heap_end) - 8001648: 4b13 ldr r3, [pc, #76] ; (8001698 <_sbrk+0x64>) - 800164a: 681b ldr r3, [r3, #0] - 800164c: 2b00 cmp r3, #0 - 800164e: d102 bne.n 8001656 <_sbrk+0x22> + 8001728: 4b13 ldr r3, [pc, #76] ; (8001778 <_sbrk+0x64>) + 800172a: 681b ldr r3, [r3, #0] + 800172c: 2b00 cmp r3, #0 + 800172e: d102 bne.n 8001736 <_sbrk+0x22> { __sbrk_heap_end = &_end; - 8001650: 4b11 ldr r3, [pc, #68] ; (8001698 <_sbrk+0x64>) - 8001652: 4a12 ldr r2, [pc, #72] ; (800169c <_sbrk+0x68>) - 8001654: 601a str r2, [r3, #0] + 8001730: 4b11 ldr r3, [pc, #68] ; (8001778 <_sbrk+0x64>) + 8001732: 4a12 ldr r2, [pc, #72] ; (800177c <_sbrk+0x68>) + 8001734: 601a str r2, [r3, #0] } /* Protect heap from growing into the reserved MSP stack */ if (__sbrk_heap_end + incr > max_heap) - 8001656: 4b10 ldr r3, [pc, #64] ; (8001698 <_sbrk+0x64>) - 8001658: 681a ldr r2, [r3, #0] - 800165a: 687b ldr r3, [r7, #4] - 800165c: 4413 add r3, r2 - 800165e: 693a ldr r2, [r7, #16] - 8001660: 429a cmp r2, r3 - 8001662: d207 bcs.n 8001674 <_sbrk+0x40> + 8001736: 4b10 ldr r3, [pc, #64] ; (8001778 <_sbrk+0x64>) + 8001738: 681a ldr r2, [r3, #0] + 800173a: 687b ldr r3, [r7, #4] + 800173c: 4413 add r3, r2 + 800173e: 693a ldr r2, [r7, #16] + 8001740: 429a cmp r2, r3 + 8001742: d207 bcs.n 8001754 <_sbrk+0x40> { errno = ENOMEM; - 8001664: f002 fdb2 bl 80041cc <__errno> - 8001668: 4603 mov r3, r0 - 800166a: 220c movs r2, #12 - 800166c: 601a str r2, [r3, #0] + 8001744: f003 fee4 bl 8005510 <__errno> + 8001748: 4603 mov r3, r0 + 800174a: 220c movs r2, #12 + 800174c: 601a str r2, [r3, #0] return (void *)-1; - 800166e: f04f 33ff mov.w r3, #4294967295 ; 0xffffffff - 8001672: e009 b.n 8001688 <_sbrk+0x54> + 800174e: f04f 33ff mov.w r3, #4294967295 ; 0xffffffff + 8001752: e009 b.n 8001768 <_sbrk+0x54> } prev_heap_end = __sbrk_heap_end; - 8001674: 4b08 ldr r3, [pc, #32] ; (8001698 <_sbrk+0x64>) - 8001676: 681b ldr r3, [r3, #0] - 8001678: 60fb str r3, [r7, #12] + 8001754: 4b08 ldr r3, [pc, #32] ; (8001778 <_sbrk+0x64>) + 8001756: 681b ldr r3, [r3, #0] + 8001758: 60fb str r3, [r7, #12] __sbrk_heap_end += incr; - 800167a: 4b07 ldr r3, [pc, #28] ; (8001698 <_sbrk+0x64>) - 800167c: 681a ldr r2, [r3, #0] - 800167e: 687b ldr r3, [r7, #4] - 8001680: 4413 add r3, r2 - 8001682: 4a05 ldr r2, [pc, #20] ; (8001698 <_sbrk+0x64>) - 8001684: 6013 str r3, [r2, #0] + 800175a: 4b07 ldr r3, [pc, #28] ; (8001778 <_sbrk+0x64>) + 800175c: 681a ldr r2, [r3, #0] + 800175e: 687b ldr r3, [r7, #4] + 8001760: 4413 add r3, r2 + 8001762: 4a05 ldr r2, [pc, #20] ; (8001778 <_sbrk+0x64>) + 8001764: 6013 str r3, [r2, #0] return (void *)prev_heap_end; - 8001686: 68fb ldr r3, [r7, #12] + 8001766: 68fb ldr r3, [r7, #12] } - 8001688: 4618 mov r0, r3 - 800168a: 3718 adds r7, #24 - 800168c: 46bd mov sp, r7 - 800168e: bd80 pop {r7, pc} - 8001690: 20010000 .word 0x20010000 - 8001694: 00000400 .word 0x00000400 - 8001698: 200001fc .word 0x200001fc - 800169c: 20000298 .word 0x20000298 + 8001768: 4618 mov r0, r3 + 800176a: 3718 adds r7, #24 + 800176c: 46bd mov sp, r7 + 800176e: bd80 pop {r7, pc} + 8001770: 20010000 .word 0x20010000 + 8001774: 00000400 .word 0x00000400 + 8001778: 200001fc .word 0x200001fc + 800177c: 20000300 .word 0x20000300 -080016a0 : +08001780 : * @note This function should be used only after reset. * @param None * @retval None */ void SystemInit (void) { - 80016a0: b480 push {r7} - 80016a2: af00 add r7, sp, #0 + 8001780: b480 push {r7} + 8001782: af00 add r7, sp, #0 /* Configure the Vector Table location -------------------------------------*/ #if defined(USER_VECT_TAB_ADDRESS) SCB->VTOR = VECT_TAB_BASE_ADDRESS | VECT_TAB_OFFSET; /* Vector Table Relocation in Internal SRAM. */ #endif /* USER_VECT_TAB_ADDRESS */ } - 80016a4: bf00 nop - 80016a6: 46bd mov sp, r7 - 80016a8: bc80 pop {r7} - 80016aa: 4770 bx lr + 8001784: bf00 nop + 8001786: 46bd mov sp, r7 + 8001788: bc80 pop {r7} + 800178a: 4770 bx lr -080016ac : +0800178c : .weak Reset_Handler .type Reset_Handler, %function Reset_Handler: /* Copy the data segment initializers from flash to SRAM */ ldr r0, =_sdata - 80016ac: 480c ldr r0, [pc, #48] ; (80016e0 ) + 800178c: 480c ldr r0, [pc, #48] ; (80017c0 ) ldr r1, =_edata - 80016ae: 490d ldr r1, [pc, #52] ; (80016e4 ) + 800178e: 490d ldr r1, [pc, #52] ; (80017c4 ) ldr r2, =_sidata - 80016b0: 4a0d ldr r2, [pc, #52] ; (80016e8 ) + 8001790: 4a0d ldr r2, [pc, #52] ; (80017c8 ) movs r3, #0 - 80016b2: 2300 movs r3, #0 + 8001792: 2300 movs r3, #0 b LoopCopyDataInit - 80016b4: e002 b.n 80016bc + 8001794: e002 b.n 800179c -080016b6 : +08001796 : CopyDataInit: ldr r4, [r2, r3] - 80016b6: 58d4 ldr r4, [r2, r3] + 8001796: 58d4 ldr r4, [r2, r3] str r4, [r0, r3] - 80016b8: 50c4 str r4, [r0, r3] + 8001798: 50c4 str r4, [r0, r3] adds r3, r3, #4 - 80016ba: 3304 adds r3, #4 + 800179a: 3304 adds r3, #4 -080016bc : +0800179c : LoopCopyDataInit: adds r4, r0, r3 - 80016bc: 18c4 adds r4, r0, r3 + 800179c: 18c4 adds r4, r0, r3 cmp r4, r1 - 80016be: 428c cmp r4, r1 + 800179e: 428c cmp r4, r1 bcc CopyDataInit - 80016c0: d3f9 bcc.n 80016b6 + 80017a0: d3f9 bcc.n 8001796 /* Zero fill the bss segment. */ ldr r2, =_sbss - 80016c2: 4a0a ldr r2, [pc, #40] ; (80016ec ) + 80017a2: 4a0a ldr r2, [pc, #40] ; (80017cc ) ldr r4, =_ebss - 80016c4: 4c0a ldr r4, [pc, #40] ; (80016f0 ) + 80017a4: 4c0a ldr r4, [pc, #40] ; (80017d0 ) movs r3, #0 - 80016c6: 2300 movs r3, #0 + 80017a6: 2300 movs r3, #0 b LoopFillZerobss - 80016c8: e001 b.n 80016ce + 80017a8: e001 b.n 80017ae -080016ca : +080017aa : FillZerobss: str r3, [r2] - 80016ca: 6013 str r3, [r2, #0] + 80017aa: 6013 str r3, [r2, #0] adds r2, r2, #4 - 80016cc: 3204 adds r2, #4 + 80017ac: 3204 adds r2, #4 -080016ce : +080017ae : LoopFillZerobss: cmp r2, r4 - 80016ce: 42a2 cmp r2, r4 + 80017ae: 42a2 cmp r2, r4 bcc FillZerobss - 80016d0: d3fb bcc.n 80016ca + 80017b0: d3fb bcc.n 80017aa /* Call the clock system intitialization function.*/ bl SystemInit - 80016d2: f7ff ffe5 bl 80016a0 + 80017b2: f7ff ffe5 bl 8001780 /* Call static constructors */ bl __libc_init_array - 80016d6: f002 fd7f bl 80041d8 <__libc_init_array> + 80017b6: f003 feb1 bl 800551c <__libc_init_array> /* Call the application's entry point.*/ bl main - 80016da: f7ff fd15 bl 8001108
+ 80017ba: f7ff fca5 bl 8001108
bx lr - 80016de: 4770 bx lr + 80017be: 4770 bx lr ldr r0, =_sdata - 80016e0: 20000000 .word 0x20000000 + 80017c0: 20000000 .word 0x20000000 ldr r1, =_edata - 80016e4: 200001dc .word 0x200001dc + 80017c4: 200001dc .word 0x200001dc ldr r2, =_sidata - 80016e8: 08007ebc .word 0x08007ebc + 80017c8: 0800921c .word 0x0800921c ldr r2, =_sbss - 80016ec: 200001dc .word 0x200001dc + 80017cc: 200001dc .word 0x200001dc ldr r4, =_ebss - 80016f0: 20000298 .word 0x20000298 + 80017d0: 20000300 .word 0x20000300 -080016f4 : +080017d4 : * @retval : None */ .section .text.Default_Handler,"ax",%progbits Default_Handler: Infinite_Loop: b Infinite_Loop - 80016f4: e7fe b.n 80016f4 + 80017d4: e7fe b.n 80017d4 ... -080016f8 : +080017d8 : * need to ensure that the SysTick time base is always set to 1 millisecond * to have correct HAL operation. * @retval HAL status */ HAL_StatusTypeDef HAL_Init(void) { - 80016f8: b580 push {r7, lr} - 80016fa: af00 add r7, sp, #0 + 80017d8: b580 push {r7, lr} + 80017da: af00 add r7, sp, #0 defined(STM32F102x6) || defined(STM32F102xB) || \ defined(STM32F103x6) || defined(STM32F103xB) || defined(STM32F103xE) || defined(STM32F103xG) || \ defined(STM32F105xC) || defined(STM32F107xC) /* Prefetch buffer is not available on value line devices */ __HAL_FLASH_PREFETCH_BUFFER_ENABLE(); - 80016fc: 4b08 ldr r3, [pc, #32] ; (8001720 ) - 80016fe: 681b ldr r3, [r3, #0] - 8001700: 4a07 ldr r2, [pc, #28] ; (8001720 ) - 8001702: f043 0310 orr.w r3, r3, #16 - 8001706: 6013 str r3, [r2, #0] + 80017dc: 4b08 ldr r3, [pc, #32] ; (8001800 ) + 80017de: 681b ldr r3, [r3, #0] + 80017e0: 4a07 ldr r2, [pc, #28] ; (8001800 ) + 80017e2: f043 0310 orr.w r3, r3, #16 + 80017e6: 6013 str r3, [r2, #0] #endif #endif /* PREFETCH_ENABLE */ /* Set Interrupt Group Priority */ HAL_NVIC_SetPriorityGrouping(NVIC_PRIORITYGROUP_4); - 8001708: 2003 movs r0, #3 - 800170a: f000 f92b bl 8001964 + 80017e8: 2003 movs r0, #3 + 80017ea: f000 f92b bl 8001a44 /* Use systick as time base source and configure 1ms tick (default clock after Reset is HSI) */ HAL_InitTick(TICK_INT_PRIORITY); - 800170e: 200f movs r0, #15 - 8001710: f000 f808 bl 8001724 + 80017ee: 200f movs r0, #15 + 80017f0: f000 f808 bl 8001804 /* Init the low level hardware */ HAL_MspInit(); - 8001714: f7ff fe4c bl 80013b0 + 80017f4: f7ff fe0c bl 8001410 /* Return function status */ return HAL_OK; - 8001718: 2300 movs r3, #0 + 80017f8: 2300 movs r3, #0 } - 800171a: 4618 mov r0, r3 - 800171c: bd80 pop {r7, pc} - 800171e: bf00 nop - 8001720: 40022000 .word 0x40022000 + 80017fa: 4618 mov r0, r3 + 80017fc: bd80 pop {r7, pc} + 80017fe: bf00 nop + 8001800: 40022000 .word 0x40022000 -08001724 : +08001804 : * implementation in user file. * @param TickPriority Tick interrupt priority. * @retval HAL status */ __weak HAL_StatusTypeDef HAL_InitTick(uint32_t TickPriority) { - 8001724: b580 push {r7, lr} - 8001726: b082 sub sp, #8 - 8001728: af00 add r7, sp, #0 - 800172a: 6078 str r0, [r7, #4] + 8001804: b580 push {r7, lr} + 8001806: b082 sub sp, #8 + 8001808: af00 add r7, sp, #0 + 800180a: 6078 str r0, [r7, #4] /* Configure the SysTick to have interrupt in 1ms time basis*/ if (HAL_SYSTICK_Config(SystemCoreClock / (1000U / uwTickFreq)) > 0U) - 800172c: 4b12 ldr r3, [pc, #72] ; (8001778 ) - 800172e: 681a ldr r2, [r3, #0] - 8001730: 4b12 ldr r3, [pc, #72] ; (800177c ) - 8001732: 781b ldrb r3, [r3, #0] - 8001734: 4619 mov r1, r3 - 8001736: f44f 737a mov.w r3, #1000 ; 0x3e8 - 800173a: fbb3 f3f1 udiv r3, r3, r1 - 800173e: fbb2 f3f3 udiv r3, r2, r3 - 8001742: 4618 mov r0, r3 - 8001744: f000 f935 bl 80019b2 - 8001748: 4603 mov r3, r0 - 800174a: 2b00 cmp r3, #0 - 800174c: d001 beq.n 8001752 + 800180c: 4b12 ldr r3, [pc, #72] ; (8001858 ) + 800180e: 681a ldr r2, [r3, #0] + 8001810: 4b12 ldr r3, [pc, #72] ; (800185c ) + 8001812: 781b ldrb r3, [r3, #0] + 8001814: 4619 mov r1, r3 + 8001816: f44f 737a mov.w r3, #1000 ; 0x3e8 + 800181a: fbb3 f3f1 udiv r3, r3, r1 + 800181e: fbb2 f3f3 udiv r3, r2, r3 + 8001822: 4618 mov r0, r3 + 8001824: f000 f935 bl 8001a92 + 8001828: 4603 mov r3, r0 + 800182a: 2b00 cmp r3, #0 + 800182c: d001 beq.n 8001832 { return HAL_ERROR; - 800174e: 2301 movs r3, #1 - 8001750: e00e b.n 8001770 + 800182e: 2301 movs r3, #1 + 8001830: e00e b.n 8001850 } /* Configure the SysTick IRQ priority */ if (TickPriority < (1UL << __NVIC_PRIO_BITS)) - 8001752: 687b ldr r3, [r7, #4] - 8001754: 2b0f cmp r3, #15 - 8001756: d80a bhi.n 800176e + 8001832: 687b ldr r3, [r7, #4] + 8001834: 2b0f cmp r3, #15 + 8001836: d80a bhi.n 800184e { HAL_NVIC_SetPriority(SysTick_IRQn, TickPriority, 0U); - 8001758: 2200 movs r2, #0 - 800175a: 6879 ldr r1, [r7, #4] - 800175c: f04f 30ff mov.w r0, #4294967295 ; 0xffffffff - 8001760: f000 f90b bl 800197a + 8001838: 2200 movs r2, #0 + 800183a: 6879 ldr r1, [r7, #4] + 800183c: f04f 30ff mov.w r0, #4294967295 ; 0xffffffff + 8001840: f000 f90b bl 8001a5a uwTickPrio = TickPriority; - 8001764: 4a06 ldr r2, [pc, #24] ; (8001780 ) - 8001766: 687b ldr r3, [r7, #4] - 8001768: 6013 str r3, [r2, #0] + 8001844: 4a06 ldr r2, [pc, #24] ; (8001860 ) + 8001846: 687b ldr r3, [r7, #4] + 8001848: 6013 str r3, [r2, #0] { return HAL_ERROR; } /* Return function status */ return HAL_OK; - 800176a: 2300 movs r3, #0 - 800176c: e000 b.n 8001770 + 800184a: 2300 movs r3, #0 + 800184c: e000 b.n 8001850 return HAL_ERROR; - 800176e: 2301 movs r3, #1 + 800184e: 2301 movs r3, #1 } - 8001770: 4618 mov r0, r3 - 8001772: 3708 adds r7, #8 - 8001774: 46bd mov sp, r7 - 8001776: bd80 pop {r7, pc} - 8001778: 20000000 .word 0x20000000 - 800177c: 20000008 .word 0x20000008 - 8001780: 20000004 .word 0x20000004 + 8001850: 4618 mov r0, r3 + 8001852: 3708 adds r7, #8 + 8001854: 46bd mov sp, r7 + 8001856: bd80 pop {r7, pc} + 8001858: 20000000 .word 0x20000000 + 800185c: 20000008 .word 0x20000008 + 8001860: 20000004 .word 0x20000004 -08001784 : +08001864 : * @note This function is declared as __weak to be overwritten in case of other * implementations in user file. * @retval None */ __weak void HAL_IncTick(void) { - 8001784: b480 push {r7} - 8001786: af00 add r7, sp, #0 + 8001864: b480 push {r7} + 8001866: af00 add r7, sp, #0 uwTick += uwTickFreq; - 8001788: 4b05 ldr r3, [pc, #20] ; (80017a0 ) - 800178a: 781b ldrb r3, [r3, #0] - 800178c: 461a mov r2, r3 - 800178e: 4b05 ldr r3, [pc, #20] ; (80017a4 ) - 8001790: 681b ldr r3, [r3, #0] - 8001792: 4413 add r3, r2 - 8001794: 4a03 ldr r2, [pc, #12] ; (80017a4 ) - 8001796: 6013 str r3, [r2, #0] + 8001868: 4b05 ldr r3, [pc, #20] ; (8001880 ) + 800186a: 781b ldrb r3, [r3, #0] + 800186c: 461a mov r2, r3 + 800186e: 4b05 ldr r3, [pc, #20] ; (8001884 ) + 8001870: 681b ldr r3, [r3, #0] + 8001872: 4413 add r3, r2 + 8001874: 4a03 ldr r2, [pc, #12] ; (8001884 ) + 8001876: 6013 str r3, [r2, #0] } - 8001798: bf00 nop - 800179a: 46bd mov sp, r7 - 800179c: bc80 pop {r7} - 800179e: 4770 bx lr - 80017a0: 20000008 .word 0x20000008 - 80017a4: 20000250 .word 0x20000250 + 8001878: bf00 nop + 800187a: 46bd mov sp, r7 + 800187c: bc80 pop {r7} + 800187e: 4770 bx lr + 8001880: 20000008 .word 0x20000008 + 8001884: 200002a4 .word 0x200002a4 -080017a8 : +08001888 : * @note This function is declared as __weak to be overwritten in case of other * implementations in user file. * @retval tick value */ __weak uint32_t HAL_GetTick(void) { - 80017a8: b480 push {r7} - 80017aa: af00 add r7, sp, #0 + 8001888: b480 push {r7} + 800188a: af00 add r7, sp, #0 return uwTick; - 80017ac: 4b02 ldr r3, [pc, #8] ; (80017b8 ) - 80017ae: 681b ldr r3, [r3, #0] + 800188c: 4b02 ldr r3, [pc, #8] ; (8001898 ) + 800188e: 681b ldr r3, [r3, #0] } - 80017b0: 4618 mov r0, r3 - 80017b2: 46bd mov sp, r7 - 80017b4: bc80 pop {r7} - 80017b6: 4770 bx lr - 80017b8: 20000250 .word 0x20000250 + 8001890: 4618 mov r0, r3 + 8001892: 46bd mov sp, r7 + 8001894: bc80 pop {r7} + 8001896: 4770 bx lr + 8001898: 200002a4 .word 0x200002a4 -080017bc : +0800189c : * implementations in user file. * @param Delay specifies the delay time length, in milliseconds. * @retval None */ __weak void HAL_Delay(uint32_t Delay) { - 80017bc: b580 push {r7, lr} - 80017be: b084 sub sp, #16 - 80017c0: af00 add r7, sp, #0 - 80017c2: 6078 str r0, [r7, #4] + 800189c: b580 push {r7, lr} + 800189e: b084 sub sp, #16 + 80018a0: af00 add r7, sp, #0 + 80018a2: 6078 str r0, [r7, #4] uint32_t tickstart = HAL_GetTick(); - 80017c4: f7ff fff0 bl 80017a8 - 80017c8: 60b8 str r0, [r7, #8] + 80018a4: f7ff fff0 bl 8001888 + 80018a8: 60b8 str r0, [r7, #8] uint32_t wait = Delay; - 80017ca: 687b ldr r3, [r7, #4] - 80017cc: 60fb str r3, [r7, #12] + 80018aa: 687b ldr r3, [r7, #4] + 80018ac: 60fb str r3, [r7, #12] /* Add a freq to guarantee minimum wait */ if (wait < HAL_MAX_DELAY) - 80017ce: 68fb ldr r3, [r7, #12] - 80017d0: f1b3 3fff cmp.w r3, #4294967295 ; 0xffffffff - 80017d4: d005 beq.n 80017e2 + 80018ae: 68fb ldr r3, [r7, #12] + 80018b0: f1b3 3fff cmp.w r3, #4294967295 ; 0xffffffff + 80018b4: d005 beq.n 80018c2 { wait += (uint32_t)(uwTickFreq); - 80017d6: 4b0a ldr r3, [pc, #40] ; (8001800 ) - 80017d8: 781b ldrb r3, [r3, #0] - 80017da: 461a mov r2, r3 - 80017dc: 68fb ldr r3, [r7, #12] - 80017de: 4413 add r3, r2 - 80017e0: 60fb str r3, [r7, #12] + 80018b6: 4b0a ldr r3, [pc, #40] ; (80018e0 ) + 80018b8: 781b ldrb r3, [r3, #0] + 80018ba: 461a mov r2, r3 + 80018bc: 68fb ldr r3, [r7, #12] + 80018be: 4413 add r3, r2 + 80018c0: 60fb str r3, [r7, #12] } while ((HAL_GetTick() - tickstart) < wait) - 80017e2: bf00 nop - 80017e4: f7ff ffe0 bl 80017a8 - 80017e8: 4602 mov r2, r0 - 80017ea: 68bb ldr r3, [r7, #8] - 80017ec: 1ad3 subs r3, r2, r3 - 80017ee: 68fa ldr r2, [r7, #12] - 80017f0: 429a cmp r2, r3 - 80017f2: d8f7 bhi.n 80017e4 + 80018c2: bf00 nop + 80018c4: f7ff ffe0 bl 8001888 + 80018c8: 4602 mov r2, r0 + 80018ca: 68bb ldr r3, [r7, #8] + 80018cc: 1ad3 subs r3, r2, r3 + 80018ce: 68fa ldr r2, [r7, #12] + 80018d0: 429a cmp r2, r3 + 80018d2: d8f7 bhi.n 80018c4 { } } - 80017f4: bf00 nop - 80017f6: bf00 nop - 80017f8: 3710 adds r7, #16 - 80017fa: 46bd mov sp, r7 - 80017fc: bd80 pop {r7, pc} - 80017fe: bf00 nop - 8001800: 20000008 .word 0x20000008 + 80018d4: bf00 nop + 80018d6: bf00 nop + 80018d8: 3710 adds r7, #16 + 80018da: 46bd mov sp, r7 + 80018dc: bd80 pop {r7, pc} + 80018de: bf00 nop + 80018e0: 20000008 .word 0x20000008 -08001804 <__NVIC_SetPriorityGrouping>: +080018e4 <__NVIC_SetPriorityGrouping>: In case of a conflict between priority grouping and available priority bits (__NVIC_PRIO_BITS), the smallest possible priority group is set. \param [in] PriorityGroup Priority grouping field. */ __STATIC_INLINE void __NVIC_SetPriorityGrouping(uint32_t PriorityGroup) { - 8001804: b480 push {r7} - 8001806: b085 sub sp, #20 - 8001808: af00 add r7, sp, #0 - 800180a: 6078 str r0, [r7, #4] + 80018e4: b480 push {r7} + 80018e6: b085 sub sp, #20 + 80018e8: af00 add r7, sp, #0 + 80018ea: 6078 str r0, [r7, #4] uint32_t reg_value; uint32_t PriorityGroupTmp = (PriorityGroup & (uint32_t)0x07UL); /* only values 0..7 are used */ - 800180c: 687b ldr r3, [r7, #4] - 800180e: f003 0307 and.w r3, r3, #7 - 8001812: 60fb str r3, [r7, #12] + 80018ec: 687b ldr r3, [r7, #4] + 80018ee: f003 0307 and.w r3, r3, #7 + 80018f2: 60fb str r3, [r7, #12] reg_value = SCB->AIRCR; /* read old register configuration */ - 8001814: 4b0c ldr r3, [pc, #48] ; (8001848 <__NVIC_SetPriorityGrouping+0x44>) - 8001816: 68db ldr r3, [r3, #12] - 8001818: 60bb str r3, [r7, #8] + 80018f4: 4b0c ldr r3, [pc, #48] ; (8001928 <__NVIC_SetPriorityGrouping+0x44>) + 80018f6: 68db ldr r3, [r3, #12] + 80018f8: 60bb str r3, [r7, #8] reg_value &= ~((uint32_t)(SCB_AIRCR_VECTKEY_Msk | SCB_AIRCR_PRIGROUP_Msk)); /* clear bits to change */ - 800181a: 68ba ldr r2, [r7, #8] - 800181c: f64f 03ff movw r3, #63743 ; 0xf8ff - 8001820: 4013 ands r3, r2 - 8001822: 60bb str r3, [r7, #8] + 80018fa: 68ba ldr r2, [r7, #8] + 80018fc: f64f 03ff movw r3, #63743 ; 0xf8ff + 8001900: 4013 ands r3, r2 + 8001902: 60bb str r3, [r7, #8] reg_value = (reg_value | ((uint32_t)0x5FAUL << SCB_AIRCR_VECTKEY_Pos) | (PriorityGroupTmp << SCB_AIRCR_PRIGROUP_Pos) ); /* Insert write key and priority group */ - 8001824: 68fb ldr r3, [r7, #12] - 8001826: 021a lsls r2, r3, #8 + 8001904: 68fb ldr r3, [r7, #12] + 8001906: 021a lsls r2, r3, #8 ((uint32_t)0x5FAUL << SCB_AIRCR_VECTKEY_Pos) | - 8001828: 68bb ldr r3, [r7, #8] - 800182a: 4313 orrs r3, r2 + 8001908: 68bb ldr r3, [r7, #8] + 800190a: 4313 orrs r3, r2 reg_value = (reg_value | - 800182c: f043 63bf orr.w r3, r3, #100139008 ; 0x5f80000 - 8001830: f443 3300 orr.w r3, r3, #131072 ; 0x20000 - 8001834: 60bb str r3, [r7, #8] + 800190c: f043 63bf orr.w r3, r3, #100139008 ; 0x5f80000 + 8001910: f443 3300 orr.w r3, r3, #131072 ; 0x20000 + 8001914: 60bb str r3, [r7, #8] SCB->AIRCR = reg_value; - 8001836: 4a04 ldr r2, [pc, #16] ; (8001848 <__NVIC_SetPriorityGrouping+0x44>) - 8001838: 68bb ldr r3, [r7, #8] - 800183a: 60d3 str r3, [r2, #12] + 8001916: 4a04 ldr r2, [pc, #16] ; (8001928 <__NVIC_SetPriorityGrouping+0x44>) + 8001918: 68bb ldr r3, [r7, #8] + 800191a: 60d3 str r3, [r2, #12] } - 800183c: bf00 nop - 800183e: 3714 adds r7, #20 - 8001840: 46bd mov sp, r7 - 8001842: bc80 pop {r7} - 8001844: 4770 bx lr - 8001846: bf00 nop - 8001848: e000ed00 .word 0xe000ed00 + 800191c: bf00 nop + 800191e: 3714 adds r7, #20 + 8001920: 46bd mov sp, r7 + 8001922: bc80 pop {r7} + 8001924: 4770 bx lr + 8001926: bf00 nop + 8001928: e000ed00 .word 0xe000ed00 -0800184c <__NVIC_GetPriorityGrouping>: +0800192c <__NVIC_GetPriorityGrouping>: \brief Get Priority Grouping \details Reads the priority grouping field from the NVIC Interrupt Controller. \return Priority grouping field (SCB->AIRCR [10:8] PRIGROUP field). */ __STATIC_INLINE uint32_t __NVIC_GetPriorityGrouping(void) { - 800184c: b480 push {r7} - 800184e: af00 add r7, sp, #0 + 800192c: b480 push {r7} + 800192e: af00 add r7, sp, #0 return ((uint32_t)((SCB->AIRCR & SCB_AIRCR_PRIGROUP_Msk) >> SCB_AIRCR_PRIGROUP_Pos)); - 8001850: 4b04 ldr r3, [pc, #16] ; (8001864 <__NVIC_GetPriorityGrouping+0x18>) - 8001852: 68db ldr r3, [r3, #12] - 8001854: 0a1b lsrs r3, r3, #8 - 8001856: f003 0307 and.w r3, r3, #7 + 8001930: 4b04 ldr r3, [pc, #16] ; (8001944 <__NVIC_GetPriorityGrouping+0x18>) + 8001932: 68db ldr r3, [r3, #12] + 8001934: 0a1b lsrs r3, r3, #8 + 8001936: f003 0307 and.w r3, r3, #7 } - 800185a: 4618 mov r0, r3 - 800185c: 46bd mov sp, r7 - 800185e: bc80 pop {r7} - 8001860: 4770 bx lr - 8001862: bf00 nop - 8001864: e000ed00 .word 0xe000ed00 + 800193a: 4618 mov r0, r3 + 800193c: 46bd mov sp, r7 + 800193e: bc80 pop {r7} + 8001940: 4770 bx lr + 8001942: bf00 nop + 8001944: e000ed00 .word 0xe000ed00 -08001868 <__NVIC_SetPriority>: +08001948 <__NVIC_SetPriority>: \param [in] IRQn Interrupt number. \param [in] priority Priority to set. \note The priority cannot be set for every processor exception. */ __STATIC_INLINE void __NVIC_SetPriority(IRQn_Type IRQn, uint32_t priority) { - 8001868: b480 push {r7} - 800186a: b083 sub sp, #12 - 800186c: af00 add r7, sp, #0 - 800186e: 4603 mov r3, r0 - 8001870: 6039 str r1, [r7, #0] - 8001872: 71fb strb r3, [r7, #7] + 8001948: b480 push {r7} + 800194a: b083 sub sp, #12 + 800194c: af00 add r7, sp, #0 + 800194e: 4603 mov r3, r0 + 8001950: 6039 str r1, [r7, #0] + 8001952: 71fb strb r3, [r7, #7] if ((int32_t)(IRQn) >= 0) - 8001874: f997 3007 ldrsb.w r3, [r7, #7] - 8001878: 2b00 cmp r3, #0 - 800187a: db0a blt.n 8001892 <__NVIC_SetPriority+0x2a> + 8001954: f997 3007 ldrsb.w r3, [r7, #7] + 8001958: 2b00 cmp r3, #0 + 800195a: db0a blt.n 8001972 <__NVIC_SetPriority+0x2a> { NVIC->IP[((uint32_t)IRQn)] = (uint8_t)((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL); - 800187c: 683b ldr r3, [r7, #0] - 800187e: b2da uxtb r2, r3 - 8001880: 490c ldr r1, [pc, #48] ; (80018b4 <__NVIC_SetPriority+0x4c>) - 8001882: f997 3007 ldrsb.w r3, [r7, #7] - 8001886: 0112 lsls r2, r2, #4 - 8001888: b2d2 uxtb r2, r2 - 800188a: 440b add r3, r1 - 800188c: f883 2300 strb.w r2, [r3, #768] ; 0x300 + 800195c: 683b ldr r3, [r7, #0] + 800195e: b2da uxtb r2, r3 + 8001960: 490c ldr r1, [pc, #48] ; (8001994 <__NVIC_SetPriority+0x4c>) + 8001962: f997 3007 ldrsb.w r3, [r7, #7] + 8001966: 0112 lsls r2, r2, #4 + 8001968: b2d2 uxtb r2, r2 + 800196a: 440b add r3, r1 + 800196c: f883 2300 strb.w r2, [r3, #768] ; 0x300 } else { SCB->SHP[(((uint32_t)IRQn) & 0xFUL)-4UL] = (uint8_t)((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL); } } - 8001890: e00a b.n 80018a8 <__NVIC_SetPriority+0x40> + 8001970: e00a b.n 8001988 <__NVIC_SetPriority+0x40> SCB->SHP[(((uint32_t)IRQn) & 0xFUL)-4UL] = (uint8_t)((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL); - 8001892: 683b ldr r3, [r7, #0] - 8001894: b2da uxtb r2, r3 - 8001896: 4908 ldr r1, [pc, #32] ; (80018b8 <__NVIC_SetPriority+0x50>) - 8001898: 79fb ldrb r3, [r7, #7] - 800189a: f003 030f and.w r3, r3, #15 - 800189e: 3b04 subs r3, #4 - 80018a0: 0112 lsls r2, r2, #4 - 80018a2: b2d2 uxtb r2, r2 - 80018a4: 440b add r3, r1 - 80018a6: 761a strb r2, [r3, #24] + 8001972: 683b ldr r3, [r7, #0] + 8001974: b2da uxtb r2, r3 + 8001976: 4908 ldr r1, [pc, #32] ; (8001998 <__NVIC_SetPriority+0x50>) + 8001978: 79fb ldrb r3, [r7, #7] + 800197a: f003 030f and.w r3, r3, #15 + 800197e: 3b04 subs r3, #4 + 8001980: 0112 lsls r2, r2, #4 + 8001982: b2d2 uxtb r2, r2 + 8001984: 440b add r3, r1 + 8001986: 761a strb r2, [r3, #24] } - 80018a8: bf00 nop - 80018aa: 370c adds r7, #12 - 80018ac: 46bd mov sp, r7 - 80018ae: bc80 pop {r7} - 80018b0: 4770 bx lr - 80018b2: bf00 nop - 80018b4: e000e100 .word 0xe000e100 - 80018b8: e000ed00 .word 0xe000ed00 + 8001988: bf00 nop + 800198a: 370c adds r7, #12 + 800198c: 46bd mov sp, r7 + 800198e: bc80 pop {r7} + 8001990: 4770 bx lr + 8001992: bf00 nop + 8001994: e000e100 .word 0xe000e100 + 8001998: e000ed00 .word 0xe000ed00 -080018bc : +0800199c : \param [in] PreemptPriority Preemptive priority value (starting from 0). \param [in] SubPriority Subpriority value (starting from 0). \return Encoded priority. Value can be used in the function \ref NVIC_SetPriority(). */ __STATIC_INLINE uint32_t NVIC_EncodePriority (uint32_t PriorityGroup, uint32_t PreemptPriority, uint32_t SubPriority) { - 80018bc: b480 push {r7} - 80018be: b089 sub sp, #36 ; 0x24 - 80018c0: af00 add r7, sp, #0 - 80018c2: 60f8 str r0, [r7, #12] - 80018c4: 60b9 str r1, [r7, #8] - 80018c6: 607a str r2, [r7, #4] + 800199c: b480 push {r7} + 800199e: b089 sub sp, #36 ; 0x24 + 80019a0: af00 add r7, sp, #0 + 80019a2: 60f8 str r0, [r7, #12] + 80019a4: 60b9 str r1, [r7, #8] + 80019a6: 607a str r2, [r7, #4] uint32_t PriorityGroupTmp = (PriorityGroup & (uint32_t)0x07UL); /* only values 0..7 are used */ - 80018c8: 68fb ldr r3, [r7, #12] - 80018ca: f003 0307 and.w r3, r3, #7 - 80018ce: 61fb str r3, [r7, #28] + 80019a8: 68fb ldr r3, [r7, #12] + 80019aa: f003 0307 and.w r3, r3, #7 + 80019ae: 61fb str r3, [r7, #28] uint32_t PreemptPriorityBits; uint32_t SubPriorityBits; PreemptPriorityBits = ((7UL - PriorityGroupTmp) > (uint32_t)(__NVIC_PRIO_BITS)) ? (uint32_t)(__NVIC_PRIO_BITS) : (uint32_t)(7UL - PriorityGroupTmp); - 80018d0: 69fb ldr r3, [r7, #28] - 80018d2: f1c3 0307 rsb r3, r3, #7 - 80018d6: 2b04 cmp r3, #4 - 80018d8: bf28 it cs - 80018da: 2304 movcs r3, #4 - 80018dc: 61bb str r3, [r7, #24] + 80019b0: 69fb ldr r3, [r7, #28] + 80019b2: f1c3 0307 rsb r3, r3, #7 + 80019b6: 2b04 cmp r3, #4 + 80019b8: bf28 it cs + 80019ba: 2304 movcs r3, #4 + 80019bc: 61bb str r3, [r7, #24] SubPriorityBits = ((PriorityGroupTmp + (uint32_t)(__NVIC_PRIO_BITS)) < (uint32_t)7UL) ? (uint32_t)0UL : (uint32_t)((PriorityGroupTmp - 7UL) + (uint32_t)(__NVIC_PRIO_BITS)); - 80018de: 69fb ldr r3, [r7, #28] - 80018e0: 3304 adds r3, #4 - 80018e2: 2b06 cmp r3, #6 - 80018e4: d902 bls.n 80018ec - 80018e6: 69fb ldr r3, [r7, #28] - 80018e8: 3b03 subs r3, #3 - 80018ea: e000 b.n 80018ee - 80018ec: 2300 movs r3, #0 - 80018ee: 617b str r3, [r7, #20] + 80019be: 69fb ldr r3, [r7, #28] + 80019c0: 3304 adds r3, #4 + 80019c2: 2b06 cmp r3, #6 + 80019c4: d902 bls.n 80019cc + 80019c6: 69fb ldr r3, [r7, #28] + 80019c8: 3b03 subs r3, #3 + 80019ca: e000 b.n 80019ce + 80019cc: 2300 movs r3, #0 + 80019ce: 617b str r3, [r7, #20] return ( ((PreemptPriority & (uint32_t)((1UL << (PreemptPriorityBits)) - 1UL)) << SubPriorityBits) | - 80018f0: f04f 32ff mov.w r2, #4294967295 ; 0xffffffff - 80018f4: 69bb ldr r3, [r7, #24] - 80018f6: fa02 f303 lsl.w r3, r2, r3 - 80018fa: 43da mvns r2, r3 - 80018fc: 68bb ldr r3, [r7, #8] - 80018fe: 401a ands r2, r3 - 8001900: 697b ldr r3, [r7, #20] - 8001902: 409a lsls r2, r3 + 80019d0: f04f 32ff mov.w r2, #4294967295 ; 0xffffffff + 80019d4: 69bb ldr r3, [r7, #24] + 80019d6: fa02 f303 lsl.w r3, r2, r3 + 80019da: 43da mvns r2, r3 + 80019dc: 68bb ldr r3, [r7, #8] + 80019de: 401a ands r2, r3 + 80019e0: 697b ldr r3, [r7, #20] + 80019e2: 409a lsls r2, r3 ((SubPriority & (uint32_t)((1UL << (SubPriorityBits )) - 1UL))) - 8001904: f04f 31ff mov.w r1, #4294967295 ; 0xffffffff - 8001908: 697b ldr r3, [r7, #20] - 800190a: fa01 f303 lsl.w r3, r1, r3 - 800190e: 43d9 mvns r1, r3 - 8001910: 687b ldr r3, [r7, #4] - 8001912: 400b ands r3, r1 + 80019e4: f04f 31ff mov.w r1, #4294967295 ; 0xffffffff + 80019e8: 697b ldr r3, [r7, #20] + 80019ea: fa01 f303 lsl.w r3, r1, r3 + 80019ee: 43d9 mvns r1, r3 + 80019f0: 687b ldr r3, [r7, #4] + 80019f2: 400b ands r3, r1 ((PreemptPriority & (uint32_t)((1UL << (PreemptPriorityBits)) - 1UL)) << SubPriorityBits) | - 8001914: 4313 orrs r3, r2 + 80019f4: 4313 orrs r3, r2 ); } - 8001916: 4618 mov r0, r3 - 8001918: 3724 adds r7, #36 ; 0x24 - 800191a: 46bd mov sp, r7 - 800191c: bc80 pop {r7} - 800191e: 4770 bx lr + 80019f6: 4618 mov r0, r3 + 80019f8: 3724 adds r7, #36 ; 0x24 + 80019fa: 46bd mov sp, r7 + 80019fc: bc80 pop {r7} + 80019fe: 4770 bx lr -08001920 : +08001a00 : \note When the variable __Vendor_SysTickConfig is set to 1, then the function SysTick_Config is not included. In this case, the file device.h must contain a vendor-specific implementation of this function. */ __STATIC_INLINE uint32_t SysTick_Config(uint32_t ticks) { - 8001920: b580 push {r7, lr} - 8001922: b082 sub sp, #8 - 8001924: af00 add r7, sp, #0 - 8001926: 6078 str r0, [r7, #4] + 8001a00: b580 push {r7, lr} + 8001a02: b082 sub sp, #8 + 8001a04: af00 add r7, sp, #0 + 8001a06: 6078 str r0, [r7, #4] if ((ticks - 1UL) > SysTick_LOAD_RELOAD_Msk) - 8001928: 687b ldr r3, [r7, #4] - 800192a: 3b01 subs r3, #1 - 800192c: f1b3 7f80 cmp.w r3, #16777216 ; 0x1000000 - 8001930: d301 bcc.n 8001936 + 8001a08: 687b ldr r3, [r7, #4] + 8001a0a: 3b01 subs r3, #1 + 8001a0c: f1b3 7f80 cmp.w r3, #16777216 ; 0x1000000 + 8001a10: d301 bcc.n 8001a16 { return (1UL); /* Reload value impossible */ - 8001932: 2301 movs r3, #1 - 8001934: e00f b.n 8001956 + 8001a12: 2301 movs r3, #1 + 8001a14: e00f b.n 8001a36 } SysTick->LOAD = (uint32_t)(ticks - 1UL); /* set reload register */ - 8001936: 4a0a ldr r2, [pc, #40] ; (8001960 ) - 8001938: 687b ldr r3, [r7, #4] - 800193a: 3b01 subs r3, #1 - 800193c: 6053 str r3, [r2, #4] + 8001a16: 4a0a ldr r2, [pc, #40] ; (8001a40 ) + 8001a18: 687b ldr r3, [r7, #4] + 8001a1a: 3b01 subs r3, #1 + 8001a1c: 6053 str r3, [r2, #4] NVIC_SetPriority (SysTick_IRQn, (1UL << __NVIC_PRIO_BITS) - 1UL); /* set Priority for Systick Interrupt */ - 800193e: 210f movs r1, #15 - 8001940: f04f 30ff mov.w r0, #4294967295 ; 0xffffffff - 8001944: f7ff ff90 bl 8001868 <__NVIC_SetPriority> + 8001a1e: 210f movs r1, #15 + 8001a20: f04f 30ff mov.w r0, #4294967295 ; 0xffffffff + 8001a24: f7ff ff90 bl 8001948 <__NVIC_SetPriority> SysTick->VAL = 0UL; /* Load the SysTick Counter Value */ - 8001948: 4b05 ldr r3, [pc, #20] ; (8001960 ) - 800194a: 2200 movs r2, #0 - 800194c: 609a str r2, [r3, #8] + 8001a28: 4b05 ldr r3, [pc, #20] ; (8001a40 ) + 8001a2a: 2200 movs r2, #0 + 8001a2c: 609a str r2, [r3, #8] SysTick->CTRL = SysTick_CTRL_CLKSOURCE_Msk | - 800194e: 4b04 ldr r3, [pc, #16] ; (8001960 ) - 8001950: 2207 movs r2, #7 - 8001952: 601a str r2, [r3, #0] + 8001a2e: 4b04 ldr r3, [pc, #16] ; (8001a40 ) + 8001a30: 2207 movs r2, #7 + 8001a32: 601a str r2, [r3, #0] SysTick_CTRL_TICKINT_Msk | SysTick_CTRL_ENABLE_Msk; /* Enable SysTick IRQ and SysTick Timer */ return (0UL); /* Function successful */ - 8001954: 2300 movs r3, #0 + 8001a34: 2300 movs r3, #0 } - 8001956: 4618 mov r0, r3 - 8001958: 3708 adds r7, #8 - 800195a: 46bd mov sp, r7 - 800195c: bd80 pop {r7, pc} - 800195e: bf00 nop - 8001960: e000e010 .word 0xe000e010 + 8001a36: 4618 mov r0, r3 + 8001a38: 3708 adds r7, #8 + 8001a3a: 46bd mov sp, r7 + 8001a3c: bd80 pop {r7, pc} + 8001a3e: bf00 nop + 8001a40: e000e010 .word 0xe000e010 -08001964 : +08001a44 : * @note When the NVIC_PriorityGroup_0 is selected, IRQ preemption is no more possible. * The pending IRQ priority will be managed only by the subpriority. * @retval None */ void HAL_NVIC_SetPriorityGrouping(uint32_t PriorityGroup) { - 8001964: b580 push {r7, lr} - 8001966: b082 sub sp, #8 - 8001968: af00 add r7, sp, #0 - 800196a: 6078 str r0, [r7, #4] + 8001a44: b580 push {r7, lr} + 8001a46: b082 sub sp, #8 + 8001a48: af00 add r7, sp, #0 + 8001a4a: 6078 str r0, [r7, #4] /* Check the parameters */ assert_param(IS_NVIC_PRIORITY_GROUP(PriorityGroup)); /* Set the PRIGROUP[10:8] bits according to the PriorityGroup parameter value */ NVIC_SetPriorityGrouping(PriorityGroup); - 800196c: 6878 ldr r0, [r7, #4] - 800196e: f7ff ff49 bl 8001804 <__NVIC_SetPriorityGrouping> + 8001a4c: 6878 ldr r0, [r7, #4] + 8001a4e: f7ff ff49 bl 80018e4 <__NVIC_SetPriorityGrouping> } - 8001972: bf00 nop - 8001974: 3708 adds r7, #8 - 8001976: 46bd mov sp, r7 - 8001978: bd80 pop {r7, pc} + 8001a52: bf00 nop + 8001a54: 3708 adds r7, #8 + 8001a56: 46bd mov sp, r7 + 8001a58: bd80 pop {r7, pc} -0800197a : +08001a5a : * This parameter can be a value between 0 and 15 * A lower priority value indicates a higher priority. * @retval None */ void HAL_NVIC_SetPriority(IRQn_Type IRQn, uint32_t PreemptPriority, uint32_t SubPriority) { - 800197a: b580 push {r7, lr} - 800197c: b086 sub sp, #24 - 800197e: af00 add r7, sp, #0 - 8001980: 4603 mov r3, r0 - 8001982: 60b9 str r1, [r7, #8] - 8001984: 607a str r2, [r7, #4] - 8001986: 73fb strb r3, [r7, #15] + 8001a5a: b580 push {r7, lr} + 8001a5c: b086 sub sp, #24 + 8001a5e: af00 add r7, sp, #0 + 8001a60: 4603 mov r3, r0 + 8001a62: 60b9 str r1, [r7, #8] + 8001a64: 607a str r2, [r7, #4] + 8001a66: 73fb strb r3, [r7, #15] uint32_t prioritygroup = 0x00U; - 8001988: 2300 movs r3, #0 - 800198a: 617b str r3, [r7, #20] + 8001a68: 2300 movs r3, #0 + 8001a6a: 617b str r3, [r7, #20] /* Check the parameters */ assert_param(IS_NVIC_SUB_PRIORITY(SubPriority)); assert_param(IS_NVIC_PREEMPTION_PRIORITY(PreemptPriority)); prioritygroup = NVIC_GetPriorityGrouping(); - 800198c: f7ff ff5e bl 800184c <__NVIC_GetPriorityGrouping> - 8001990: 6178 str r0, [r7, #20] + 8001a6c: f7ff ff5e bl 800192c <__NVIC_GetPriorityGrouping> + 8001a70: 6178 str r0, [r7, #20] NVIC_SetPriority(IRQn, NVIC_EncodePriority(prioritygroup, PreemptPriority, SubPriority)); - 8001992: 687a ldr r2, [r7, #4] - 8001994: 68b9 ldr r1, [r7, #8] - 8001996: 6978 ldr r0, [r7, #20] - 8001998: f7ff ff90 bl 80018bc - 800199c: 4602 mov r2, r0 - 800199e: f997 300f ldrsb.w r3, [r7, #15] - 80019a2: 4611 mov r1, r2 - 80019a4: 4618 mov r0, r3 - 80019a6: f7ff ff5f bl 8001868 <__NVIC_SetPriority> + 8001a72: 687a ldr r2, [r7, #4] + 8001a74: 68b9 ldr r1, [r7, #8] + 8001a76: 6978 ldr r0, [r7, #20] + 8001a78: f7ff ff90 bl 800199c + 8001a7c: 4602 mov r2, r0 + 8001a7e: f997 300f ldrsb.w r3, [r7, #15] + 8001a82: 4611 mov r1, r2 + 8001a84: 4618 mov r0, r3 + 8001a86: f7ff ff5f bl 8001948 <__NVIC_SetPriority> } - 80019aa: bf00 nop - 80019ac: 3718 adds r7, #24 - 80019ae: 46bd mov sp, r7 - 80019b0: bd80 pop {r7, pc} + 8001a8a: bf00 nop + 8001a8c: 3718 adds r7, #24 + 8001a8e: 46bd mov sp, r7 + 8001a90: bd80 pop {r7, pc} -080019b2 : +08001a92 : * @param TicksNumb: Specifies the ticks Number of ticks between two interrupts. * @retval status: - 0 Function succeeded. * - 1 Function failed. */ uint32_t HAL_SYSTICK_Config(uint32_t TicksNumb) { - 80019b2: b580 push {r7, lr} - 80019b4: b082 sub sp, #8 - 80019b6: af00 add r7, sp, #0 - 80019b8: 6078 str r0, [r7, #4] + 8001a92: b580 push {r7, lr} + 8001a94: b082 sub sp, #8 + 8001a96: af00 add r7, sp, #0 + 8001a98: 6078 str r0, [r7, #4] return SysTick_Config(TicksNumb); - 80019ba: 6878 ldr r0, [r7, #4] - 80019bc: f7ff ffb0 bl 8001920 - 80019c0: 4603 mov r3, r0 + 8001a9a: 6878 ldr r0, [r7, #4] + 8001a9c: f7ff ffb0 bl 8001a00 + 8001aa0: 4603 mov r3, r0 } - 80019c2: 4618 mov r0, r3 - 80019c4: 3708 adds r7, #8 - 80019c6: 46bd mov sp, r7 - 80019c8: bd80 pop {r7, pc} + 8001aa2: 4618 mov r0, r3 + 8001aa4: 3708 adds r7, #8 + 8001aa6: 46bd mov sp, r7 + 8001aa8: bd80 pop {r7, pc} ... -080019cc : +08001aac : * @param GPIO_Init: pointer to a GPIO_InitTypeDef structure that contains * the configuration information for the specified GPIO peripheral. * @retval None */ void HAL_GPIO_Init(GPIO_TypeDef *GPIOx, GPIO_InitTypeDef *GPIO_Init) { - 80019cc: b480 push {r7} - 80019ce: b08b sub sp, #44 ; 0x2c - 80019d0: af00 add r7, sp, #0 - 80019d2: 6078 str r0, [r7, #4] - 80019d4: 6039 str r1, [r7, #0] + 8001aac: b480 push {r7} + 8001aae: b08b sub sp, #44 ; 0x2c + 8001ab0: af00 add r7, sp, #0 + 8001ab2: 6078 str r0, [r7, #4] + 8001ab4: 6039 str r1, [r7, #0] uint32_t position = 0x00u; - 80019d6: 2300 movs r3, #0 - 80019d8: 627b str r3, [r7, #36] ; 0x24 + 8001ab6: 2300 movs r3, #0 + 8001ab8: 627b str r3, [r7, #36] ; 0x24 uint32_t ioposition; uint32_t iocurrent; uint32_t temp; uint32_t config = 0x00u; - 80019da: 2300 movs r3, #0 - 80019dc: 623b str r3, [r7, #32] + 8001aba: 2300 movs r3, #0 + 8001abc: 623b str r3, [r7, #32] assert_param(IS_GPIO_ALL_INSTANCE(GPIOx)); assert_param(IS_GPIO_PIN(GPIO_Init->Pin)); assert_param(IS_GPIO_MODE(GPIO_Init->Mode)); /* Configure the port pins */ while (((GPIO_Init->Pin) >> position) != 0x00u) - 80019de: e179 b.n 8001cd4 + 8001abe: e179 b.n 8001db4 { /* Get the IO position */ ioposition = (0x01uL << position); - 80019e0: 2201 movs r2, #1 - 80019e2: 6a7b ldr r3, [r7, #36] ; 0x24 - 80019e4: fa02 f303 lsl.w r3, r2, r3 - 80019e8: 61fb str r3, [r7, #28] + 8001ac0: 2201 movs r2, #1 + 8001ac2: 6a7b ldr r3, [r7, #36] ; 0x24 + 8001ac4: fa02 f303 lsl.w r3, r2, r3 + 8001ac8: 61fb str r3, [r7, #28] /* Get the current IO position */ iocurrent = (uint32_t)(GPIO_Init->Pin) & ioposition; - 80019ea: 683b ldr r3, [r7, #0] - 80019ec: 681b ldr r3, [r3, #0] - 80019ee: 69fa ldr r2, [r7, #28] - 80019f0: 4013 ands r3, r2 - 80019f2: 61bb str r3, [r7, #24] + 8001aca: 683b ldr r3, [r7, #0] + 8001acc: 681b ldr r3, [r3, #0] + 8001ace: 69fa ldr r2, [r7, #28] + 8001ad0: 4013 ands r3, r2 + 8001ad2: 61bb str r3, [r7, #24] if (iocurrent == ioposition) - 80019f4: 69ba ldr r2, [r7, #24] - 80019f6: 69fb ldr r3, [r7, #28] - 80019f8: 429a cmp r2, r3 - 80019fa: f040 8168 bne.w 8001cce + 8001ad4: 69ba ldr r2, [r7, #24] + 8001ad6: 69fb ldr r3, [r7, #28] + 8001ad8: 429a cmp r2, r3 + 8001ada: f040 8168 bne.w 8001dae { /* Check the Alternate function parameters */ assert_param(IS_GPIO_AF_INSTANCE(GPIOx)); /* Based on the required mode, filling config variable with MODEy[1:0] and CNFy[3:2] corresponding bits */ switch (GPIO_Init->Mode) - 80019fe: 683b ldr r3, [r7, #0] - 8001a00: 685b ldr r3, [r3, #4] - 8001a02: 4aa0 ldr r2, [pc, #640] ; (8001c84 ) - 8001a04: 4293 cmp r3, r2 - 8001a06: d05e beq.n 8001ac6 - 8001a08: 4a9e ldr r2, [pc, #632] ; (8001c84 ) - 8001a0a: 4293 cmp r3, r2 - 8001a0c: d875 bhi.n 8001afa - 8001a0e: 4a9e ldr r2, [pc, #632] ; (8001c88 ) - 8001a10: 4293 cmp r3, r2 - 8001a12: d058 beq.n 8001ac6 - 8001a14: 4a9c ldr r2, [pc, #624] ; (8001c88 ) - 8001a16: 4293 cmp r3, r2 - 8001a18: d86f bhi.n 8001afa - 8001a1a: 4a9c ldr r2, [pc, #624] ; (8001c8c ) - 8001a1c: 4293 cmp r3, r2 - 8001a1e: d052 beq.n 8001ac6 - 8001a20: 4a9a ldr r2, [pc, #616] ; (8001c8c ) - 8001a22: 4293 cmp r3, r2 - 8001a24: d869 bhi.n 8001afa - 8001a26: 4a9a ldr r2, [pc, #616] ; (8001c90 ) - 8001a28: 4293 cmp r3, r2 - 8001a2a: d04c beq.n 8001ac6 - 8001a2c: 4a98 ldr r2, [pc, #608] ; (8001c90 ) - 8001a2e: 4293 cmp r3, r2 - 8001a30: d863 bhi.n 8001afa - 8001a32: 4a98 ldr r2, [pc, #608] ; (8001c94 ) - 8001a34: 4293 cmp r3, r2 - 8001a36: d046 beq.n 8001ac6 - 8001a38: 4a96 ldr r2, [pc, #600] ; (8001c94 ) - 8001a3a: 4293 cmp r3, r2 - 8001a3c: d85d bhi.n 8001afa - 8001a3e: 2b12 cmp r3, #18 - 8001a40: d82a bhi.n 8001a98 - 8001a42: 2b12 cmp r3, #18 - 8001a44: d859 bhi.n 8001afa - 8001a46: a201 add r2, pc, #4 ; (adr r2, 8001a4c ) - 8001a48: f852 f023 ldr.w pc, [r2, r3, lsl #2] - 8001a4c: 08001ac7 .word 0x08001ac7 - 8001a50: 08001aa1 .word 0x08001aa1 - 8001a54: 08001ab3 .word 0x08001ab3 - 8001a58: 08001af5 .word 0x08001af5 - 8001a5c: 08001afb .word 0x08001afb - 8001a60: 08001afb .word 0x08001afb - 8001a64: 08001afb .word 0x08001afb - 8001a68: 08001afb .word 0x08001afb - 8001a6c: 08001afb .word 0x08001afb - 8001a70: 08001afb .word 0x08001afb - 8001a74: 08001afb .word 0x08001afb - 8001a78: 08001afb .word 0x08001afb - 8001a7c: 08001afb .word 0x08001afb - 8001a80: 08001afb .word 0x08001afb - 8001a84: 08001afb .word 0x08001afb - 8001a88: 08001afb .word 0x08001afb - 8001a8c: 08001afb .word 0x08001afb - 8001a90: 08001aa9 .word 0x08001aa9 - 8001a94: 08001abd .word 0x08001abd - 8001a98: 4a7f ldr r2, [pc, #508] ; (8001c98 ) - 8001a9a: 4293 cmp r3, r2 - 8001a9c: d013 beq.n 8001ac6 + 8001ade: 683b ldr r3, [r7, #0] + 8001ae0: 685b ldr r3, [r3, #4] + 8001ae2: 4aa0 ldr r2, [pc, #640] ; (8001d64 ) + 8001ae4: 4293 cmp r3, r2 + 8001ae6: d05e beq.n 8001ba6 + 8001ae8: 4a9e ldr r2, [pc, #632] ; (8001d64 ) + 8001aea: 4293 cmp r3, r2 + 8001aec: d875 bhi.n 8001bda + 8001aee: 4a9e ldr r2, [pc, #632] ; (8001d68 ) + 8001af0: 4293 cmp r3, r2 + 8001af2: d058 beq.n 8001ba6 + 8001af4: 4a9c ldr r2, [pc, #624] ; (8001d68 ) + 8001af6: 4293 cmp r3, r2 + 8001af8: d86f bhi.n 8001bda + 8001afa: 4a9c ldr r2, [pc, #624] ; (8001d6c ) + 8001afc: 4293 cmp r3, r2 + 8001afe: d052 beq.n 8001ba6 + 8001b00: 4a9a ldr r2, [pc, #616] ; (8001d6c ) + 8001b02: 4293 cmp r3, r2 + 8001b04: d869 bhi.n 8001bda + 8001b06: 4a9a ldr r2, [pc, #616] ; (8001d70 ) + 8001b08: 4293 cmp r3, r2 + 8001b0a: d04c beq.n 8001ba6 + 8001b0c: 4a98 ldr r2, [pc, #608] ; (8001d70 ) + 8001b0e: 4293 cmp r3, r2 + 8001b10: d863 bhi.n 8001bda + 8001b12: 4a98 ldr r2, [pc, #608] ; (8001d74 ) + 8001b14: 4293 cmp r3, r2 + 8001b16: d046 beq.n 8001ba6 + 8001b18: 4a96 ldr r2, [pc, #600] ; (8001d74 ) + 8001b1a: 4293 cmp r3, r2 + 8001b1c: d85d bhi.n 8001bda + 8001b1e: 2b12 cmp r3, #18 + 8001b20: d82a bhi.n 8001b78 + 8001b22: 2b12 cmp r3, #18 + 8001b24: d859 bhi.n 8001bda + 8001b26: a201 add r2, pc, #4 ; (adr r2, 8001b2c ) + 8001b28: f852 f023 ldr.w pc, [r2, r3, lsl #2] + 8001b2c: 08001ba7 .word 0x08001ba7 + 8001b30: 08001b81 .word 0x08001b81 + 8001b34: 08001b93 .word 0x08001b93 + 8001b38: 08001bd5 .word 0x08001bd5 + 8001b3c: 08001bdb .word 0x08001bdb + 8001b40: 08001bdb .word 0x08001bdb + 8001b44: 08001bdb .word 0x08001bdb + 8001b48: 08001bdb .word 0x08001bdb + 8001b4c: 08001bdb .word 0x08001bdb + 8001b50: 08001bdb .word 0x08001bdb + 8001b54: 08001bdb .word 0x08001bdb + 8001b58: 08001bdb .word 0x08001bdb + 8001b5c: 08001bdb .word 0x08001bdb + 8001b60: 08001bdb .word 0x08001bdb + 8001b64: 08001bdb .word 0x08001bdb + 8001b68: 08001bdb .word 0x08001bdb + 8001b6c: 08001bdb .word 0x08001bdb + 8001b70: 08001b89 .word 0x08001b89 + 8001b74: 08001b9d .word 0x08001b9d + 8001b78: 4a7f ldr r2, [pc, #508] ; (8001d78 ) + 8001b7a: 4293 cmp r3, r2 + 8001b7c: d013 beq.n 8001ba6 config = GPIO_CR_MODE_INPUT + GPIO_CR_CNF_ANALOG; break; /* Parameters are checked with assert_param */ default: break; - 8001a9e: e02c b.n 8001afa + 8001b7e: e02c b.n 8001bda config = GPIO_Init->Speed + GPIO_CR_CNF_GP_OUTPUT_PP; - 8001aa0: 683b ldr r3, [r7, #0] - 8001aa2: 68db ldr r3, [r3, #12] - 8001aa4: 623b str r3, [r7, #32] + 8001b80: 683b ldr r3, [r7, #0] + 8001b82: 68db ldr r3, [r3, #12] + 8001b84: 623b str r3, [r7, #32] break; - 8001aa6: e029 b.n 8001afc + 8001b86: e029 b.n 8001bdc config = GPIO_Init->Speed + GPIO_CR_CNF_GP_OUTPUT_OD; - 8001aa8: 683b ldr r3, [r7, #0] - 8001aaa: 68db ldr r3, [r3, #12] - 8001aac: 3304 adds r3, #4 - 8001aae: 623b str r3, [r7, #32] + 8001b88: 683b ldr r3, [r7, #0] + 8001b8a: 68db ldr r3, [r3, #12] + 8001b8c: 3304 adds r3, #4 + 8001b8e: 623b str r3, [r7, #32] break; - 8001ab0: e024 b.n 8001afc + 8001b90: e024 b.n 8001bdc config = GPIO_Init->Speed + GPIO_CR_CNF_AF_OUTPUT_PP; - 8001ab2: 683b ldr r3, [r7, #0] - 8001ab4: 68db ldr r3, [r3, #12] - 8001ab6: 3308 adds r3, #8 - 8001ab8: 623b str r3, [r7, #32] + 8001b92: 683b ldr r3, [r7, #0] + 8001b94: 68db ldr r3, [r3, #12] + 8001b96: 3308 adds r3, #8 + 8001b98: 623b str r3, [r7, #32] break; - 8001aba: e01f b.n 8001afc + 8001b9a: e01f b.n 8001bdc config = GPIO_Init->Speed + GPIO_CR_CNF_AF_OUTPUT_OD; - 8001abc: 683b ldr r3, [r7, #0] - 8001abe: 68db ldr r3, [r3, #12] - 8001ac0: 330c adds r3, #12 - 8001ac2: 623b str r3, [r7, #32] + 8001b9c: 683b ldr r3, [r7, #0] + 8001b9e: 68db ldr r3, [r3, #12] + 8001ba0: 330c adds r3, #12 + 8001ba2: 623b str r3, [r7, #32] break; - 8001ac4: e01a b.n 8001afc + 8001ba4: e01a b.n 8001bdc if (GPIO_Init->Pull == GPIO_NOPULL) - 8001ac6: 683b ldr r3, [r7, #0] - 8001ac8: 689b ldr r3, [r3, #8] - 8001aca: 2b00 cmp r3, #0 - 8001acc: d102 bne.n 8001ad4 + 8001ba6: 683b ldr r3, [r7, #0] + 8001ba8: 689b ldr r3, [r3, #8] + 8001baa: 2b00 cmp r3, #0 + 8001bac: d102 bne.n 8001bb4 config = GPIO_CR_MODE_INPUT + GPIO_CR_CNF_INPUT_FLOATING; - 8001ace: 2304 movs r3, #4 - 8001ad0: 623b str r3, [r7, #32] + 8001bae: 2304 movs r3, #4 + 8001bb0: 623b str r3, [r7, #32] break; - 8001ad2: e013 b.n 8001afc + 8001bb2: e013 b.n 8001bdc else if (GPIO_Init->Pull == GPIO_PULLUP) - 8001ad4: 683b ldr r3, [r7, #0] - 8001ad6: 689b ldr r3, [r3, #8] - 8001ad8: 2b01 cmp r3, #1 - 8001ada: d105 bne.n 8001ae8 + 8001bb4: 683b ldr r3, [r7, #0] + 8001bb6: 689b ldr r3, [r3, #8] + 8001bb8: 2b01 cmp r3, #1 + 8001bba: d105 bne.n 8001bc8 config = GPIO_CR_MODE_INPUT + GPIO_CR_CNF_INPUT_PU_PD; - 8001adc: 2308 movs r3, #8 - 8001ade: 623b str r3, [r7, #32] + 8001bbc: 2308 movs r3, #8 + 8001bbe: 623b str r3, [r7, #32] GPIOx->BSRR = ioposition; - 8001ae0: 687b ldr r3, [r7, #4] - 8001ae2: 69fa ldr r2, [r7, #28] - 8001ae4: 611a str r2, [r3, #16] + 8001bc0: 687b ldr r3, [r7, #4] + 8001bc2: 69fa ldr r2, [r7, #28] + 8001bc4: 611a str r2, [r3, #16] break; - 8001ae6: e009 b.n 8001afc + 8001bc6: e009 b.n 8001bdc config = GPIO_CR_MODE_INPUT + GPIO_CR_CNF_INPUT_PU_PD; - 8001ae8: 2308 movs r3, #8 - 8001aea: 623b str r3, [r7, #32] + 8001bc8: 2308 movs r3, #8 + 8001bca: 623b str r3, [r7, #32] GPIOx->BRR = ioposition; - 8001aec: 687b ldr r3, [r7, #4] - 8001aee: 69fa ldr r2, [r7, #28] - 8001af0: 615a str r2, [r3, #20] + 8001bcc: 687b ldr r3, [r7, #4] + 8001bce: 69fa ldr r2, [r7, #28] + 8001bd0: 615a str r2, [r3, #20] break; - 8001af2: e003 b.n 8001afc + 8001bd2: e003 b.n 8001bdc config = GPIO_CR_MODE_INPUT + GPIO_CR_CNF_ANALOG; - 8001af4: 2300 movs r3, #0 - 8001af6: 623b str r3, [r7, #32] + 8001bd4: 2300 movs r3, #0 + 8001bd6: 623b str r3, [r7, #32] break; - 8001af8: e000 b.n 8001afc + 8001bd8: e000 b.n 8001bdc break; - 8001afa: bf00 nop + 8001bda: bf00 nop } /* Check if the current bit belongs to first half or last half of the pin count number in order to address CRH or CRL register*/ configregister = (iocurrent < GPIO_PIN_8) ? &GPIOx->CRL : &GPIOx->CRH; - 8001afc: 69bb ldr r3, [r7, #24] - 8001afe: 2bff cmp r3, #255 ; 0xff - 8001b00: d801 bhi.n 8001b06 - 8001b02: 687b ldr r3, [r7, #4] - 8001b04: e001 b.n 8001b0a - 8001b06: 687b ldr r3, [r7, #4] - 8001b08: 3304 adds r3, #4 - 8001b0a: 617b str r3, [r7, #20] + 8001bdc: 69bb ldr r3, [r7, #24] + 8001bde: 2bff cmp r3, #255 ; 0xff + 8001be0: d801 bhi.n 8001be6 + 8001be2: 687b ldr r3, [r7, #4] + 8001be4: e001 b.n 8001bea + 8001be6: 687b ldr r3, [r7, #4] + 8001be8: 3304 adds r3, #4 + 8001bea: 617b str r3, [r7, #20] registeroffset = (iocurrent < GPIO_PIN_8) ? (position << 2u) : ((position - 8u) << 2u); - 8001b0c: 69bb ldr r3, [r7, #24] - 8001b0e: 2bff cmp r3, #255 ; 0xff - 8001b10: d802 bhi.n 8001b18 - 8001b12: 6a7b ldr r3, [r7, #36] ; 0x24 - 8001b14: 009b lsls r3, r3, #2 - 8001b16: e002 b.n 8001b1e - 8001b18: 6a7b ldr r3, [r7, #36] ; 0x24 - 8001b1a: 3b08 subs r3, #8 - 8001b1c: 009b lsls r3, r3, #2 - 8001b1e: 613b str r3, [r7, #16] + 8001bec: 69bb ldr r3, [r7, #24] + 8001bee: 2bff cmp r3, #255 ; 0xff + 8001bf0: d802 bhi.n 8001bf8 + 8001bf2: 6a7b ldr r3, [r7, #36] ; 0x24 + 8001bf4: 009b lsls r3, r3, #2 + 8001bf6: e002 b.n 8001bfe + 8001bf8: 6a7b ldr r3, [r7, #36] ; 0x24 + 8001bfa: 3b08 subs r3, #8 + 8001bfc: 009b lsls r3, r3, #2 + 8001bfe: 613b str r3, [r7, #16] /* Apply the new configuration of the pin to the register */ MODIFY_REG((*configregister), ((GPIO_CRL_MODE0 | GPIO_CRL_CNF0) << registeroffset), (config << registeroffset)); - 8001b20: 697b ldr r3, [r7, #20] - 8001b22: 681a ldr r2, [r3, #0] - 8001b24: 210f movs r1, #15 - 8001b26: 693b ldr r3, [r7, #16] - 8001b28: fa01 f303 lsl.w r3, r1, r3 - 8001b2c: 43db mvns r3, r3 - 8001b2e: 401a ands r2, r3 - 8001b30: 6a39 ldr r1, [r7, #32] - 8001b32: 693b ldr r3, [r7, #16] - 8001b34: fa01 f303 lsl.w r3, r1, r3 - 8001b38: 431a orrs r2, r3 - 8001b3a: 697b ldr r3, [r7, #20] - 8001b3c: 601a str r2, [r3, #0] + 8001c00: 697b ldr r3, [r7, #20] + 8001c02: 681a ldr r2, [r3, #0] + 8001c04: 210f movs r1, #15 + 8001c06: 693b ldr r3, [r7, #16] + 8001c08: fa01 f303 lsl.w r3, r1, r3 + 8001c0c: 43db mvns r3, r3 + 8001c0e: 401a ands r2, r3 + 8001c10: 6a39 ldr r1, [r7, #32] + 8001c12: 693b ldr r3, [r7, #16] + 8001c14: fa01 f303 lsl.w r3, r1, r3 + 8001c18: 431a orrs r2, r3 + 8001c1a: 697b ldr r3, [r7, #20] + 8001c1c: 601a str r2, [r3, #0] /*--------------------- EXTI Mode Configuration ------------------------*/ /* Configure the External Interrupt or event for the current IO */ if ((GPIO_Init->Mode & EXTI_MODE) == EXTI_MODE) - 8001b3e: 683b ldr r3, [r7, #0] - 8001b40: 685b ldr r3, [r3, #4] - 8001b42: f003 5380 and.w r3, r3, #268435456 ; 0x10000000 - 8001b46: 2b00 cmp r3, #0 - 8001b48: f000 80c1 beq.w 8001cce + 8001c1e: 683b ldr r3, [r7, #0] + 8001c20: 685b ldr r3, [r3, #4] + 8001c22: f003 5380 and.w r3, r3, #268435456 ; 0x10000000 + 8001c26: 2b00 cmp r3, #0 + 8001c28: f000 80c1 beq.w 8001dae { /* Enable AFIO Clock */ __HAL_RCC_AFIO_CLK_ENABLE(); - 8001b4c: 4b53 ldr r3, [pc, #332] ; (8001c9c ) - 8001b4e: 699b ldr r3, [r3, #24] - 8001b50: 4a52 ldr r2, [pc, #328] ; (8001c9c ) - 8001b52: f043 0301 orr.w r3, r3, #1 - 8001b56: 6193 str r3, [r2, #24] - 8001b58: 4b50 ldr r3, [pc, #320] ; (8001c9c ) - 8001b5a: 699b ldr r3, [r3, #24] - 8001b5c: f003 0301 and.w r3, r3, #1 - 8001b60: 60bb str r3, [r7, #8] - 8001b62: 68bb ldr r3, [r7, #8] + 8001c2c: 4b53 ldr r3, [pc, #332] ; (8001d7c ) + 8001c2e: 699b ldr r3, [r3, #24] + 8001c30: 4a52 ldr r2, [pc, #328] ; (8001d7c ) + 8001c32: f043 0301 orr.w r3, r3, #1 + 8001c36: 6193 str r3, [r2, #24] + 8001c38: 4b50 ldr r3, [pc, #320] ; (8001d7c ) + 8001c3a: 699b ldr r3, [r3, #24] + 8001c3c: f003 0301 and.w r3, r3, #1 + 8001c40: 60bb str r3, [r7, #8] + 8001c42: 68bb ldr r3, [r7, #8] temp = AFIO->EXTICR[position >> 2u]; - 8001b64: 4a4e ldr r2, [pc, #312] ; (8001ca0 ) - 8001b66: 6a7b ldr r3, [r7, #36] ; 0x24 - 8001b68: 089b lsrs r3, r3, #2 - 8001b6a: 3302 adds r3, #2 - 8001b6c: f852 3023 ldr.w r3, [r2, r3, lsl #2] - 8001b70: 60fb str r3, [r7, #12] + 8001c44: 4a4e ldr r2, [pc, #312] ; (8001d80 ) + 8001c46: 6a7b ldr r3, [r7, #36] ; 0x24 + 8001c48: 089b lsrs r3, r3, #2 + 8001c4a: 3302 adds r3, #2 + 8001c4c: f852 3023 ldr.w r3, [r2, r3, lsl #2] + 8001c50: 60fb str r3, [r7, #12] CLEAR_BIT(temp, (0x0Fu) << (4u * (position & 0x03u))); - 8001b72: 6a7b ldr r3, [r7, #36] ; 0x24 - 8001b74: f003 0303 and.w r3, r3, #3 - 8001b78: 009b lsls r3, r3, #2 - 8001b7a: 220f movs r2, #15 - 8001b7c: fa02 f303 lsl.w r3, r2, r3 - 8001b80: 43db mvns r3, r3 - 8001b82: 68fa ldr r2, [r7, #12] - 8001b84: 4013 ands r3, r2 - 8001b86: 60fb str r3, [r7, #12] + 8001c52: 6a7b ldr r3, [r7, #36] ; 0x24 + 8001c54: f003 0303 and.w r3, r3, #3 + 8001c58: 009b lsls r3, r3, #2 + 8001c5a: 220f movs r2, #15 + 8001c5c: fa02 f303 lsl.w r3, r2, r3 + 8001c60: 43db mvns r3, r3 + 8001c62: 68fa ldr r2, [r7, #12] + 8001c64: 4013 ands r3, r2 + 8001c66: 60fb str r3, [r7, #12] SET_BIT(temp, (GPIO_GET_INDEX(GPIOx)) << (4u * (position & 0x03u))); - 8001b88: 687b ldr r3, [r7, #4] - 8001b8a: 4a46 ldr r2, [pc, #280] ; (8001ca4 ) - 8001b8c: 4293 cmp r3, r2 - 8001b8e: d01f beq.n 8001bd0 - 8001b90: 687b ldr r3, [r7, #4] - 8001b92: 4a45 ldr r2, [pc, #276] ; (8001ca8 ) - 8001b94: 4293 cmp r3, r2 - 8001b96: d019 beq.n 8001bcc - 8001b98: 687b ldr r3, [r7, #4] - 8001b9a: 4a44 ldr r2, [pc, #272] ; (8001cac ) - 8001b9c: 4293 cmp r3, r2 - 8001b9e: d013 beq.n 8001bc8 - 8001ba0: 687b ldr r3, [r7, #4] - 8001ba2: 4a43 ldr r2, [pc, #268] ; (8001cb0 ) - 8001ba4: 4293 cmp r3, r2 - 8001ba6: d00d beq.n 8001bc4 - 8001ba8: 687b ldr r3, [r7, #4] - 8001baa: 4a42 ldr r2, [pc, #264] ; (8001cb4 ) - 8001bac: 4293 cmp r3, r2 - 8001bae: d007 beq.n 8001bc0 - 8001bb0: 687b ldr r3, [r7, #4] - 8001bb2: 4a41 ldr r2, [pc, #260] ; (8001cb8 ) - 8001bb4: 4293 cmp r3, r2 - 8001bb6: d101 bne.n 8001bbc - 8001bb8: 2305 movs r3, #5 - 8001bba: e00a b.n 8001bd2 - 8001bbc: 2306 movs r3, #6 - 8001bbe: e008 b.n 8001bd2 - 8001bc0: 2304 movs r3, #4 - 8001bc2: e006 b.n 8001bd2 - 8001bc4: 2303 movs r3, #3 - 8001bc6: e004 b.n 8001bd2 - 8001bc8: 2302 movs r3, #2 - 8001bca: e002 b.n 8001bd2 - 8001bcc: 2301 movs r3, #1 - 8001bce: e000 b.n 8001bd2 - 8001bd0: 2300 movs r3, #0 - 8001bd2: 6a7a ldr r2, [r7, #36] ; 0x24 - 8001bd4: f002 0203 and.w r2, r2, #3 - 8001bd8: 0092 lsls r2, r2, #2 - 8001bda: 4093 lsls r3, r2 - 8001bdc: 68fa ldr r2, [r7, #12] - 8001bde: 4313 orrs r3, r2 - 8001be0: 60fb str r3, [r7, #12] + 8001c68: 687b ldr r3, [r7, #4] + 8001c6a: 4a46 ldr r2, [pc, #280] ; (8001d84 ) + 8001c6c: 4293 cmp r3, r2 + 8001c6e: d01f beq.n 8001cb0 + 8001c70: 687b ldr r3, [r7, #4] + 8001c72: 4a45 ldr r2, [pc, #276] ; (8001d88 ) + 8001c74: 4293 cmp r3, r2 + 8001c76: d019 beq.n 8001cac + 8001c78: 687b ldr r3, [r7, #4] + 8001c7a: 4a44 ldr r2, [pc, #272] ; (8001d8c ) + 8001c7c: 4293 cmp r3, r2 + 8001c7e: d013 beq.n 8001ca8 + 8001c80: 687b ldr r3, [r7, #4] + 8001c82: 4a43 ldr r2, [pc, #268] ; (8001d90 ) + 8001c84: 4293 cmp r3, r2 + 8001c86: d00d beq.n 8001ca4 + 8001c88: 687b ldr r3, [r7, #4] + 8001c8a: 4a42 ldr r2, [pc, #264] ; (8001d94 ) + 8001c8c: 4293 cmp r3, r2 + 8001c8e: d007 beq.n 8001ca0 + 8001c90: 687b ldr r3, [r7, #4] + 8001c92: 4a41 ldr r2, [pc, #260] ; (8001d98 ) + 8001c94: 4293 cmp r3, r2 + 8001c96: d101 bne.n 8001c9c + 8001c98: 2305 movs r3, #5 + 8001c9a: e00a b.n 8001cb2 + 8001c9c: 2306 movs r3, #6 + 8001c9e: e008 b.n 8001cb2 + 8001ca0: 2304 movs r3, #4 + 8001ca2: e006 b.n 8001cb2 + 8001ca4: 2303 movs r3, #3 + 8001ca6: e004 b.n 8001cb2 + 8001ca8: 2302 movs r3, #2 + 8001caa: e002 b.n 8001cb2 + 8001cac: 2301 movs r3, #1 + 8001cae: e000 b.n 8001cb2 + 8001cb0: 2300 movs r3, #0 + 8001cb2: 6a7a ldr r2, [r7, #36] ; 0x24 + 8001cb4: f002 0203 and.w r2, r2, #3 + 8001cb8: 0092 lsls r2, r2, #2 + 8001cba: 4093 lsls r3, r2 + 8001cbc: 68fa ldr r2, [r7, #12] + 8001cbe: 4313 orrs r3, r2 + 8001cc0: 60fb str r3, [r7, #12] AFIO->EXTICR[position >> 2u] = temp; - 8001be2: 492f ldr r1, [pc, #188] ; (8001ca0 ) - 8001be4: 6a7b ldr r3, [r7, #36] ; 0x24 - 8001be6: 089b lsrs r3, r3, #2 - 8001be8: 3302 adds r3, #2 - 8001bea: 68fa ldr r2, [r7, #12] - 8001bec: f841 2023 str.w r2, [r1, r3, lsl #2] + 8001cc2: 492f ldr r1, [pc, #188] ; (8001d80 ) + 8001cc4: 6a7b ldr r3, [r7, #36] ; 0x24 + 8001cc6: 089b lsrs r3, r3, #2 + 8001cc8: 3302 adds r3, #2 + 8001cca: 68fa ldr r2, [r7, #12] + 8001ccc: f841 2023 str.w r2, [r1, r3, lsl #2] /* Configure the interrupt mask */ if ((GPIO_Init->Mode & GPIO_MODE_IT) == GPIO_MODE_IT) - 8001bf0: 683b ldr r3, [r7, #0] - 8001bf2: 685b ldr r3, [r3, #4] - 8001bf4: f403 3380 and.w r3, r3, #65536 ; 0x10000 - 8001bf8: 2b00 cmp r3, #0 - 8001bfa: d006 beq.n 8001c0a + 8001cd0: 683b ldr r3, [r7, #0] + 8001cd2: 685b ldr r3, [r3, #4] + 8001cd4: f403 3380 and.w r3, r3, #65536 ; 0x10000 + 8001cd8: 2b00 cmp r3, #0 + 8001cda: d006 beq.n 8001cea { SET_BIT(EXTI->IMR, iocurrent); - 8001bfc: 4b2f ldr r3, [pc, #188] ; (8001cbc ) - 8001bfe: 681a ldr r2, [r3, #0] - 8001c00: 492e ldr r1, [pc, #184] ; (8001cbc ) - 8001c02: 69bb ldr r3, [r7, #24] - 8001c04: 4313 orrs r3, r2 - 8001c06: 600b str r3, [r1, #0] - 8001c08: e006 b.n 8001c18 + 8001cdc: 4b2f ldr r3, [pc, #188] ; (8001d9c ) + 8001cde: 681a ldr r2, [r3, #0] + 8001ce0: 492e ldr r1, [pc, #184] ; (8001d9c ) + 8001ce2: 69bb ldr r3, [r7, #24] + 8001ce4: 4313 orrs r3, r2 + 8001ce6: 600b str r3, [r1, #0] + 8001ce8: e006 b.n 8001cf8 } else { CLEAR_BIT(EXTI->IMR, iocurrent); - 8001c0a: 4b2c ldr r3, [pc, #176] ; (8001cbc ) - 8001c0c: 681a ldr r2, [r3, #0] - 8001c0e: 69bb ldr r3, [r7, #24] - 8001c10: 43db mvns r3, r3 - 8001c12: 492a ldr r1, [pc, #168] ; (8001cbc ) - 8001c14: 4013 ands r3, r2 - 8001c16: 600b str r3, [r1, #0] + 8001cea: 4b2c ldr r3, [pc, #176] ; (8001d9c ) + 8001cec: 681a ldr r2, [r3, #0] + 8001cee: 69bb ldr r3, [r7, #24] + 8001cf0: 43db mvns r3, r3 + 8001cf2: 492a ldr r1, [pc, #168] ; (8001d9c ) + 8001cf4: 4013 ands r3, r2 + 8001cf6: 600b str r3, [r1, #0] } /* Configure the event mask */ if ((GPIO_Init->Mode & GPIO_MODE_EVT) == GPIO_MODE_EVT) - 8001c18: 683b ldr r3, [r7, #0] - 8001c1a: 685b ldr r3, [r3, #4] - 8001c1c: f403 3300 and.w r3, r3, #131072 ; 0x20000 - 8001c20: 2b00 cmp r3, #0 - 8001c22: d006 beq.n 8001c32 + 8001cf8: 683b ldr r3, [r7, #0] + 8001cfa: 685b ldr r3, [r3, #4] + 8001cfc: f403 3300 and.w r3, r3, #131072 ; 0x20000 + 8001d00: 2b00 cmp r3, #0 + 8001d02: d006 beq.n 8001d12 { SET_BIT(EXTI->EMR, iocurrent); - 8001c24: 4b25 ldr r3, [pc, #148] ; (8001cbc ) - 8001c26: 685a ldr r2, [r3, #4] - 8001c28: 4924 ldr r1, [pc, #144] ; (8001cbc ) - 8001c2a: 69bb ldr r3, [r7, #24] - 8001c2c: 4313 orrs r3, r2 - 8001c2e: 604b str r3, [r1, #4] - 8001c30: e006 b.n 8001c40 + 8001d04: 4b25 ldr r3, [pc, #148] ; (8001d9c ) + 8001d06: 685a ldr r2, [r3, #4] + 8001d08: 4924 ldr r1, [pc, #144] ; (8001d9c ) + 8001d0a: 69bb ldr r3, [r7, #24] + 8001d0c: 4313 orrs r3, r2 + 8001d0e: 604b str r3, [r1, #4] + 8001d10: e006 b.n 8001d20 } else { CLEAR_BIT(EXTI->EMR, iocurrent); - 8001c32: 4b22 ldr r3, [pc, #136] ; (8001cbc ) - 8001c34: 685a ldr r2, [r3, #4] - 8001c36: 69bb ldr r3, [r7, #24] - 8001c38: 43db mvns r3, r3 - 8001c3a: 4920 ldr r1, [pc, #128] ; (8001cbc ) - 8001c3c: 4013 ands r3, r2 - 8001c3e: 604b str r3, [r1, #4] + 8001d12: 4b22 ldr r3, [pc, #136] ; (8001d9c ) + 8001d14: 685a ldr r2, [r3, #4] + 8001d16: 69bb ldr r3, [r7, #24] + 8001d18: 43db mvns r3, r3 + 8001d1a: 4920 ldr r1, [pc, #128] ; (8001d9c ) + 8001d1c: 4013 ands r3, r2 + 8001d1e: 604b str r3, [r1, #4] } /* Enable or disable the rising trigger */ if ((GPIO_Init->Mode & RISING_EDGE) == RISING_EDGE) - 8001c40: 683b ldr r3, [r7, #0] - 8001c42: 685b ldr r3, [r3, #4] - 8001c44: f403 1380 and.w r3, r3, #1048576 ; 0x100000 - 8001c48: 2b00 cmp r3, #0 - 8001c4a: d006 beq.n 8001c5a + 8001d20: 683b ldr r3, [r7, #0] + 8001d22: 685b ldr r3, [r3, #4] + 8001d24: f403 1380 and.w r3, r3, #1048576 ; 0x100000 + 8001d28: 2b00 cmp r3, #0 + 8001d2a: d006 beq.n 8001d3a { SET_BIT(EXTI->RTSR, iocurrent); - 8001c4c: 4b1b ldr r3, [pc, #108] ; (8001cbc ) - 8001c4e: 689a ldr r2, [r3, #8] - 8001c50: 491a ldr r1, [pc, #104] ; (8001cbc ) - 8001c52: 69bb ldr r3, [r7, #24] - 8001c54: 4313 orrs r3, r2 - 8001c56: 608b str r3, [r1, #8] - 8001c58: e006 b.n 8001c68 + 8001d2c: 4b1b ldr r3, [pc, #108] ; (8001d9c ) + 8001d2e: 689a ldr r2, [r3, #8] + 8001d30: 491a ldr r1, [pc, #104] ; (8001d9c ) + 8001d32: 69bb ldr r3, [r7, #24] + 8001d34: 4313 orrs r3, r2 + 8001d36: 608b str r3, [r1, #8] + 8001d38: e006 b.n 8001d48 } else { CLEAR_BIT(EXTI->RTSR, iocurrent); - 8001c5a: 4b18 ldr r3, [pc, #96] ; (8001cbc ) - 8001c5c: 689a ldr r2, [r3, #8] - 8001c5e: 69bb ldr r3, [r7, #24] - 8001c60: 43db mvns r3, r3 - 8001c62: 4916 ldr r1, [pc, #88] ; (8001cbc ) - 8001c64: 4013 ands r3, r2 - 8001c66: 608b str r3, [r1, #8] + 8001d3a: 4b18 ldr r3, [pc, #96] ; (8001d9c ) + 8001d3c: 689a ldr r2, [r3, #8] + 8001d3e: 69bb ldr r3, [r7, #24] + 8001d40: 43db mvns r3, r3 + 8001d42: 4916 ldr r1, [pc, #88] ; (8001d9c ) + 8001d44: 4013 ands r3, r2 + 8001d46: 608b str r3, [r1, #8] } /* Enable or disable the falling trigger */ if ((GPIO_Init->Mode & FALLING_EDGE) == FALLING_EDGE) - 8001c68: 683b ldr r3, [r7, #0] - 8001c6a: 685b ldr r3, [r3, #4] - 8001c6c: f403 1300 and.w r3, r3, #2097152 ; 0x200000 - 8001c70: 2b00 cmp r3, #0 - 8001c72: d025 beq.n 8001cc0 + 8001d48: 683b ldr r3, [r7, #0] + 8001d4a: 685b ldr r3, [r3, #4] + 8001d4c: f403 1300 and.w r3, r3, #2097152 ; 0x200000 + 8001d50: 2b00 cmp r3, #0 + 8001d52: d025 beq.n 8001da0 { SET_BIT(EXTI->FTSR, iocurrent); - 8001c74: 4b11 ldr r3, [pc, #68] ; (8001cbc ) - 8001c76: 68da ldr r2, [r3, #12] - 8001c78: 4910 ldr r1, [pc, #64] ; (8001cbc ) - 8001c7a: 69bb ldr r3, [r7, #24] - 8001c7c: 4313 orrs r3, r2 - 8001c7e: 60cb str r3, [r1, #12] - 8001c80: e025 b.n 8001cce - 8001c82: bf00 nop - 8001c84: 10320000 .word 0x10320000 - 8001c88: 10310000 .word 0x10310000 - 8001c8c: 10220000 .word 0x10220000 - 8001c90: 10210000 .word 0x10210000 - 8001c94: 10120000 .word 0x10120000 - 8001c98: 10110000 .word 0x10110000 - 8001c9c: 40021000 .word 0x40021000 - 8001ca0: 40010000 .word 0x40010000 - 8001ca4: 40010800 .word 0x40010800 - 8001ca8: 40010c00 .word 0x40010c00 - 8001cac: 40011000 .word 0x40011000 - 8001cb0: 40011400 .word 0x40011400 - 8001cb4: 40011800 .word 0x40011800 - 8001cb8: 40011c00 .word 0x40011c00 - 8001cbc: 40010400 .word 0x40010400 + 8001d54: 4b11 ldr r3, [pc, #68] ; (8001d9c ) + 8001d56: 68da ldr r2, [r3, #12] + 8001d58: 4910 ldr r1, [pc, #64] ; (8001d9c ) + 8001d5a: 69bb ldr r3, [r7, #24] + 8001d5c: 4313 orrs r3, r2 + 8001d5e: 60cb str r3, [r1, #12] + 8001d60: e025 b.n 8001dae + 8001d62: bf00 nop + 8001d64: 10320000 .word 0x10320000 + 8001d68: 10310000 .word 0x10310000 + 8001d6c: 10220000 .word 0x10220000 + 8001d70: 10210000 .word 0x10210000 + 8001d74: 10120000 .word 0x10120000 + 8001d78: 10110000 .word 0x10110000 + 8001d7c: 40021000 .word 0x40021000 + 8001d80: 40010000 .word 0x40010000 + 8001d84: 40010800 .word 0x40010800 + 8001d88: 40010c00 .word 0x40010c00 + 8001d8c: 40011000 .word 0x40011000 + 8001d90: 40011400 .word 0x40011400 + 8001d94: 40011800 .word 0x40011800 + 8001d98: 40011c00 .word 0x40011c00 + 8001d9c: 40010400 .word 0x40010400 } else { CLEAR_BIT(EXTI->FTSR, iocurrent); - 8001cc0: 4b0b ldr r3, [pc, #44] ; (8001cf0 ) - 8001cc2: 68da ldr r2, [r3, #12] - 8001cc4: 69bb ldr r3, [r7, #24] - 8001cc6: 43db mvns r3, r3 - 8001cc8: 4909 ldr r1, [pc, #36] ; (8001cf0 ) - 8001cca: 4013 ands r3, r2 - 8001ccc: 60cb str r3, [r1, #12] + 8001da0: 4b0b ldr r3, [pc, #44] ; (8001dd0 ) + 8001da2: 68da ldr r2, [r3, #12] + 8001da4: 69bb ldr r3, [r7, #24] + 8001da6: 43db mvns r3, r3 + 8001da8: 4909 ldr r1, [pc, #36] ; (8001dd0 ) + 8001daa: 4013 ands r3, r2 + 8001dac: 60cb str r3, [r1, #12] } } } position++; - 8001cce: 6a7b ldr r3, [r7, #36] ; 0x24 - 8001cd0: 3301 adds r3, #1 - 8001cd2: 627b str r3, [r7, #36] ; 0x24 + 8001dae: 6a7b ldr r3, [r7, #36] ; 0x24 + 8001db0: 3301 adds r3, #1 + 8001db2: 627b str r3, [r7, #36] ; 0x24 while (((GPIO_Init->Pin) >> position) != 0x00u) - 8001cd4: 683b ldr r3, [r7, #0] - 8001cd6: 681a ldr r2, [r3, #0] - 8001cd8: 6a7b ldr r3, [r7, #36] ; 0x24 - 8001cda: fa22 f303 lsr.w r3, r2, r3 - 8001cde: 2b00 cmp r3, #0 - 8001ce0: f47f ae7e bne.w 80019e0 + 8001db4: 683b ldr r3, [r7, #0] + 8001db6: 681a ldr r2, [r3, #0] + 8001db8: 6a7b ldr r3, [r7, #36] ; 0x24 + 8001dba: fa22 f303 lsr.w r3, r2, r3 + 8001dbe: 2b00 cmp r3, #0 + 8001dc0: f47f ae7e bne.w 8001ac0 } } - 8001ce4: bf00 nop - 8001ce6: bf00 nop - 8001ce8: 372c adds r7, #44 ; 0x2c - 8001cea: 46bd mov sp, r7 - 8001cec: bc80 pop {r7} - 8001cee: 4770 bx lr - 8001cf0: 40010400 .word 0x40010400 + 8001dc4: bf00 nop + 8001dc6: bf00 nop + 8001dc8: 372c adds r7, #44 ; 0x2c + 8001dca: 46bd mov sp, r7 + 8001dcc: bc80 pop {r7} + 8001dce: 4770 bx lr + 8001dd0: 40010400 .word 0x40010400 -08001cf4 : +08001dd4 : * @param GPIO_Pin: specifies the port bit to read. * This parameter can be GPIO_PIN_x where x can be (0..15). * @retval The input port pin value. */ GPIO_PinState HAL_GPIO_ReadPin(GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin) { - 8001cf4: b480 push {r7} - 8001cf6: b085 sub sp, #20 - 8001cf8: af00 add r7, sp, #0 - 8001cfa: 6078 str r0, [r7, #4] - 8001cfc: 460b mov r3, r1 - 8001cfe: 807b strh r3, [r7, #2] + 8001dd4: b480 push {r7} + 8001dd6: b085 sub sp, #20 + 8001dd8: af00 add r7, sp, #0 + 8001dda: 6078 str r0, [r7, #4] + 8001ddc: 460b mov r3, r1 + 8001dde: 807b strh r3, [r7, #2] GPIO_PinState bitstatus; /* Check the parameters */ assert_param(IS_GPIO_PIN(GPIO_Pin)); if ((GPIOx->IDR & GPIO_Pin) != (uint32_t)GPIO_PIN_RESET) - 8001d00: 687b ldr r3, [r7, #4] - 8001d02: 689a ldr r2, [r3, #8] - 8001d04: 887b ldrh r3, [r7, #2] - 8001d06: 4013 ands r3, r2 - 8001d08: 2b00 cmp r3, #0 - 8001d0a: d002 beq.n 8001d12 + 8001de0: 687b ldr r3, [r7, #4] + 8001de2: 689a ldr r2, [r3, #8] + 8001de4: 887b ldrh r3, [r7, #2] + 8001de6: 4013 ands r3, r2 + 8001de8: 2b00 cmp r3, #0 + 8001dea: d002 beq.n 8001df2 { bitstatus = GPIO_PIN_SET; - 8001d0c: 2301 movs r3, #1 - 8001d0e: 73fb strb r3, [r7, #15] - 8001d10: e001 b.n 8001d16 + 8001dec: 2301 movs r3, #1 + 8001dee: 73fb strb r3, [r7, #15] + 8001df0: e001 b.n 8001df6 } else { bitstatus = GPIO_PIN_RESET; - 8001d12: 2300 movs r3, #0 - 8001d14: 73fb strb r3, [r7, #15] + 8001df2: 2300 movs r3, #0 + 8001df4: 73fb strb r3, [r7, #15] } return bitstatus; - 8001d16: 7bfb ldrb r3, [r7, #15] + 8001df6: 7bfb ldrb r3, [r7, #15] } - 8001d18: 4618 mov r0, r3 - 8001d1a: 3714 adds r7, #20 - 8001d1c: 46bd mov sp, r7 - 8001d1e: bc80 pop {r7} - 8001d20: 4770 bx lr + 8001df8: 4618 mov r0, r3 + 8001dfa: 3714 adds r7, #20 + 8001dfc: 46bd mov sp, r7 + 8001dfe: bc80 pop {r7} + 8001e00: 4770 bx lr -08001d22 : +08001e02 : * @arg GPIO_PIN_RESET: to clear the port pin * @arg GPIO_PIN_SET: to set the port pin * @retval None */ void HAL_GPIO_WritePin(GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin, GPIO_PinState PinState) { - 8001d22: b480 push {r7} - 8001d24: b083 sub sp, #12 - 8001d26: af00 add r7, sp, #0 - 8001d28: 6078 str r0, [r7, #4] - 8001d2a: 460b mov r3, r1 - 8001d2c: 807b strh r3, [r7, #2] - 8001d2e: 4613 mov r3, r2 - 8001d30: 707b strb r3, [r7, #1] + 8001e02: b480 push {r7} + 8001e04: b083 sub sp, #12 + 8001e06: af00 add r7, sp, #0 + 8001e08: 6078 str r0, [r7, #4] + 8001e0a: 460b mov r3, r1 + 8001e0c: 807b strh r3, [r7, #2] + 8001e0e: 4613 mov r3, r2 + 8001e10: 707b strb r3, [r7, #1] /* Check the parameters */ assert_param(IS_GPIO_PIN(GPIO_Pin)); assert_param(IS_GPIO_PIN_ACTION(PinState)); if (PinState != GPIO_PIN_RESET) - 8001d32: 787b ldrb r3, [r7, #1] - 8001d34: 2b00 cmp r3, #0 - 8001d36: d003 beq.n 8001d40 + 8001e12: 787b ldrb r3, [r7, #1] + 8001e14: 2b00 cmp r3, #0 + 8001e16: d003 beq.n 8001e20 { GPIOx->BSRR = GPIO_Pin; - 8001d38: 887a ldrh r2, [r7, #2] - 8001d3a: 687b ldr r3, [r7, #4] - 8001d3c: 611a str r2, [r3, #16] + 8001e18: 887a ldrh r2, [r7, #2] + 8001e1a: 687b ldr r3, [r7, #4] + 8001e1c: 611a str r2, [r3, #16] } else { GPIOx->BSRR = (uint32_t)GPIO_Pin << 16u; } } - 8001d3e: e003 b.n 8001d48 + 8001e1e: e003 b.n 8001e28 GPIOx->BSRR = (uint32_t)GPIO_Pin << 16u; - 8001d40: 887b ldrh r3, [r7, #2] - 8001d42: 041a lsls r2, r3, #16 - 8001d44: 687b ldr r3, [r7, #4] - 8001d46: 611a str r2, [r3, #16] + 8001e20: 887b ldrh r3, [r7, #2] + 8001e22: 041a lsls r2, r3, #16 + 8001e24: 687b ldr r3, [r7, #4] + 8001e26: 611a str r2, [r3, #16] } - 8001d48: bf00 nop - 8001d4a: 370c adds r7, #12 - 8001d4c: 46bd mov sp, r7 - 8001d4e: bc80 pop {r7} - 8001d50: 4770 bx lr + 8001e28: bf00 nop + 8001e2a: 370c adds r7, #12 + 8001e2c: 46bd mov sp, r7 + 8001e2e: bc80 pop {r7} + 8001e30: 4770 bx lr ... -08001d54 : +08001e34 : + * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains + * the configuration information for the specified I2C. + * @retval HAL status + */ +HAL_StatusTypeDef HAL_I2C_Init(I2C_HandleTypeDef *hi2c) +{ + 8001e34: b580 push {r7, lr} + 8001e36: b084 sub sp, #16 + 8001e38: af00 add r7, sp, #0 + 8001e3a: 6078 str r0, [r7, #4] + uint32_t freqrange; + uint32_t pclk1; + + /* Check the I2C handle allocation */ + if (hi2c == NULL) + 8001e3c: 687b ldr r3, [r7, #4] + 8001e3e: 2b00 cmp r3, #0 + 8001e40: d101 bne.n 8001e46 + { + return HAL_ERROR; + 8001e42: 2301 movs r3, #1 + 8001e44: e12b b.n 800209e + assert_param(IS_I2C_DUAL_ADDRESS(hi2c->Init.DualAddressMode)); + assert_param(IS_I2C_OWN_ADDRESS2(hi2c->Init.OwnAddress2)); + assert_param(IS_I2C_GENERAL_CALL(hi2c->Init.GeneralCallMode)); + assert_param(IS_I2C_NO_STRETCH(hi2c->Init.NoStretchMode)); + + if (hi2c->State == HAL_I2C_STATE_RESET) + 8001e46: 687b ldr r3, [r7, #4] + 8001e48: f893 303d ldrb.w r3, [r3, #61] ; 0x3d + 8001e4c: b2db uxtb r3, r3 + 8001e4e: 2b00 cmp r3, #0 + 8001e50: d106 bne.n 8001e60 + { + /* Allocate lock resource and initialize it */ + hi2c->Lock = HAL_UNLOCKED; + 8001e52: 687b ldr r3, [r7, #4] + 8001e54: 2200 movs r2, #0 + 8001e56: f883 203c strb.w r2, [r3, #60] ; 0x3c + + /* Init the low level hardware : GPIO, CLOCK, NVIC */ + hi2c->MspInitCallback(hi2c); +#else + /* Init the low level hardware : GPIO, CLOCK, NVIC */ + HAL_I2C_MspInit(hi2c); + 8001e5a: 6878 ldr r0, [r7, #4] + 8001e5c: f7ff fb0a bl 8001474 +#endif /* USE_HAL_I2C_REGISTER_CALLBACKS */ + } + + hi2c->State = HAL_I2C_STATE_BUSY; + 8001e60: 687b ldr r3, [r7, #4] + 8001e62: 2224 movs r2, #36 ; 0x24 + 8001e64: f883 203d strb.w r2, [r3, #61] ; 0x3d + + /* Disable the selected I2C peripheral */ + __HAL_I2C_DISABLE(hi2c); + 8001e68: 687b ldr r3, [r7, #4] + 8001e6a: 681b ldr r3, [r3, #0] + 8001e6c: 681a ldr r2, [r3, #0] + 8001e6e: 687b ldr r3, [r7, #4] + 8001e70: 681b ldr r3, [r3, #0] + 8001e72: f022 0201 bic.w r2, r2, #1 + 8001e76: 601a str r2, [r3, #0] + + /*Reset I2C*/ + hi2c->Instance->CR1 |= I2C_CR1_SWRST; + 8001e78: 687b ldr r3, [r7, #4] + 8001e7a: 681b ldr r3, [r3, #0] + 8001e7c: 681a ldr r2, [r3, #0] + 8001e7e: 687b ldr r3, [r7, #4] + 8001e80: 681b ldr r3, [r3, #0] + 8001e82: f442 4200 orr.w r2, r2, #32768 ; 0x8000 + 8001e86: 601a str r2, [r3, #0] + hi2c->Instance->CR1 &= ~I2C_CR1_SWRST; + 8001e88: 687b ldr r3, [r7, #4] + 8001e8a: 681b ldr r3, [r3, #0] + 8001e8c: 681a ldr r2, [r3, #0] + 8001e8e: 687b ldr r3, [r7, #4] + 8001e90: 681b ldr r3, [r3, #0] + 8001e92: f422 4200 bic.w r2, r2, #32768 ; 0x8000 + 8001e96: 601a str r2, [r3, #0] + + /* Get PCLK1 frequency */ + pclk1 = HAL_RCC_GetPCLK1Freq(); + 8001e98: f001 fba0 bl 80035dc + 8001e9c: 60f8 str r0, [r7, #12] + + /* Check the minimum allowed PCLK1 frequency */ + if (I2C_MIN_PCLK_FREQ(pclk1, hi2c->Init.ClockSpeed) == 1U) + 8001e9e: 687b ldr r3, [r7, #4] + 8001ea0: 685b ldr r3, [r3, #4] + 8001ea2: 4a81 ldr r2, [pc, #516] ; (80020a8 ) + 8001ea4: 4293 cmp r3, r2 + 8001ea6: d807 bhi.n 8001eb8 + 8001ea8: 68fb ldr r3, [r7, #12] + 8001eaa: 4a80 ldr r2, [pc, #512] ; (80020ac ) + 8001eac: 4293 cmp r3, r2 + 8001eae: bf94 ite ls + 8001eb0: 2301 movls r3, #1 + 8001eb2: 2300 movhi r3, #0 + 8001eb4: b2db uxtb r3, r3 + 8001eb6: e006 b.n 8001ec6 + 8001eb8: 68fb ldr r3, [r7, #12] + 8001eba: 4a7d ldr r2, [pc, #500] ; (80020b0 ) + 8001ebc: 4293 cmp r3, r2 + 8001ebe: bf94 ite ls + 8001ec0: 2301 movls r3, #1 + 8001ec2: 2300 movhi r3, #0 + 8001ec4: b2db uxtb r3, r3 + 8001ec6: 2b00 cmp r3, #0 + 8001ec8: d001 beq.n 8001ece + { + return HAL_ERROR; + 8001eca: 2301 movs r3, #1 + 8001ecc: e0e7 b.n 800209e + } + + /* Calculate frequency range */ + freqrange = I2C_FREQRANGE(pclk1); + 8001ece: 68fb ldr r3, [r7, #12] + 8001ed0: 4a78 ldr r2, [pc, #480] ; (80020b4 ) + 8001ed2: fba2 2303 umull r2, r3, r2, r3 + 8001ed6: 0c9b lsrs r3, r3, #18 + 8001ed8: 60bb str r3, [r7, #8] + + /*---------------------------- I2Cx CR2 Configuration ----------------------*/ + /* Configure I2Cx: Frequency range */ + MODIFY_REG(hi2c->Instance->CR2, I2C_CR2_FREQ, freqrange); + 8001eda: 687b ldr r3, [r7, #4] + 8001edc: 681b ldr r3, [r3, #0] + 8001ede: 685b ldr r3, [r3, #4] + 8001ee0: f023 013f bic.w r1, r3, #63 ; 0x3f + 8001ee4: 687b ldr r3, [r7, #4] + 8001ee6: 681b ldr r3, [r3, #0] + 8001ee8: 68ba ldr r2, [r7, #8] + 8001eea: 430a orrs r2, r1 + 8001eec: 605a str r2, [r3, #4] + + /*---------------------------- I2Cx TRISE Configuration --------------------*/ + /* Configure I2Cx: Rise Time */ + MODIFY_REG(hi2c->Instance->TRISE, I2C_TRISE_TRISE, I2C_RISE_TIME(freqrange, hi2c->Init.ClockSpeed)); + 8001eee: 687b ldr r3, [r7, #4] + 8001ef0: 681b ldr r3, [r3, #0] + 8001ef2: 6a1b ldr r3, [r3, #32] + 8001ef4: f023 013f bic.w r1, r3, #63 ; 0x3f + 8001ef8: 687b ldr r3, [r7, #4] + 8001efa: 685b ldr r3, [r3, #4] + 8001efc: 4a6a ldr r2, [pc, #424] ; (80020a8 ) + 8001efe: 4293 cmp r3, r2 + 8001f00: d802 bhi.n 8001f08 + 8001f02: 68bb ldr r3, [r7, #8] + 8001f04: 3301 adds r3, #1 + 8001f06: e009 b.n 8001f1c + 8001f08: 68bb ldr r3, [r7, #8] + 8001f0a: f44f 7296 mov.w r2, #300 ; 0x12c + 8001f0e: fb02 f303 mul.w r3, r2, r3 + 8001f12: 4a69 ldr r2, [pc, #420] ; (80020b8 ) + 8001f14: fba2 2303 umull r2, r3, r2, r3 + 8001f18: 099b lsrs r3, r3, #6 + 8001f1a: 3301 adds r3, #1 + 8001f1c: 687a ldr r2, [r7, #4] + 8001f1e: 6812 ldr r2, [r2, #0] + 8001f20: 430b orrs r3, r1 + 8001f22: 6213 str r3, [r2, #32] + + /*---------------------------- I2Cx CCR Configuration ----------------------*/ + /* Configure I2Cx: Speed */ + MODIFY_REG(hi2c->Instance->CCR, (I2C_CCR_FS | I2C_CCR_DUTY | I2C_CCR_CCR), I2C_SPEED(pclk1, hi2c->Init.ClockSpeed, hi2c->Init.DutyCycle)); + 8001f24: 687b ldr r3, [r7, #4] + 8001f26: 681b ldr r3, [r3, #0] + 8001f28: 69db ldr r3, [r3, #28] + 8001f2a: f423 424f bic.w r2, r3, #52992 ; 0xcf00 + 8001f2e: f022 02ff bic.w r2, r2, #255 ; 0xff + 8001f32: 687b ldr r3, [r7, #4] + 8001f34: 685b ldr r3, [r3, #4] + 8001f36: 495c ldr r1, [pc, #368] ; (80020a8 ) + 8001f38: 428b cmp r3, r1 + 8001f3a: d819 bhi.n 8001f70 + 8001f3c: 68fb ldr r3, [r7, #12] + 8001f3e: 1e59 subs r1, r3, #1 + 8001f40: 687b ldr r3, [r7, #4] + 8001f42: 685b ldr r3, [r3, #4] + 8001f44: 005b lsls r3, r3, #1 + 8001f46: fbb1 f3f3 udiv r3, r1, r3 + 8001f4a: 1c59 adds r1, r3, #1 + 8001f4c: f640 73fc movw r3, #4092 ; 0xffc + 8001f50: 400b ands r3, r1 + 8001f52: 2b00 cmp r3, #0 + 8001f54: d00a beq.n 8001f6c + 8001f56: 68fb ldr r3, [r7, #12] + 8001f58: 1e59 subs r1, r3, #1 + 8001f5a: 687b ldr r3, [r7, #4] + 8001f5c: 685b ldr r3, [r3, #4] + 8001f5e: 005b lsls r3, r3, #1 + 8001f60: fbb1 f3f3 udiv r3, r1, r3 + 8001f64: 3301 adds r3, #1 + 8001f66: f3c3 030b ubfx r3, r3, #0, #12 + 8001f6a: e051 b.n 8002010 + 8001f6c: 2304 movs r3, #4 + 8001f6e: e04f b.n 8002010 + 8001f70: 687b ldr r3, [r7, #4] + 8001f72: 689b ldr r3, [r3, #8] + 8001f74: 2b00 cmp r3, #0 + 8001f76: d111 bne.n 8001f9c + 8001f78: 68fb ldr r3, [r7, #12] + 8001f7a: 1e58 subs r0, r3, #1 + 8001f7c: 687b ldr r3, [r7, #4] + 8001f7e: 6859 ldr r1, [r3, #4] + 8001f80: 460b mov r3, r1 + 8001f82: 005b lsls r3, r3, #1 + 8001f84: 440b add r3, r1 + 8001f86: fbb0 f3f3 udiv r3, r0, r3 + 8001f8a: 3301 adds r3, #1 + 8001f8c: f3c3 030b ubfx r3, r3, #0, #12 + 8001f90: 2b00 cmp r3, #0 + 8001f92: bf0c ite eq + 8001f94: 2301 moveq r3, #1 + 8001f96: 2300 movne r3, #0 + 8001f98: b2db uxtb r3, r3 + 8001f9a: e012 b.n 8001fc2 + 8001f9c: 68fb ldr r3, [r7, #12] + 8001f9e: 1e58 subs r0, r3, #1 + 8001fa0: 687b ldr r3, [r7, #4] + 8001fa2: 6859 ldr r1, [r3, #4] + 8001fa4: 460b mov r3, r1 + 8001fa6: 009b lsls r3, r3, #2 + 8001fa8: 440b add r3, r1 + 8001faa: 0099 lsls r1, r3, #2 + 8001fac: 440b add r3, r1 + 8001fae: fbb0 f3f3 udiv r3, r0, r3 + 8001fb2: 3301 adds r3, #1 + 8001fb4: f3c3 030b ubfx r3, r3, #0, #12 + 8001fb8: 2b00 cmp r3, #0 + 8001fba: bf0c ite eq + 8001fbc: 2301 moveq r3, #1 + 8001fbe: 2300 movne r3, #0 + 8001fc0: b2db uxtb r3, r3 + 8001fc2: 2b00 cmp r3, #0 + 8001fc4: d001 beq.n 8001fca + 8001fc6: 2301 movs r3, #1 + 8001fc8: e022 b.n 8002010 + 8001fca: 687b ldr r3, [r7, #4] + 8001fcc: 689b ldr r3, [r3, #8] + 8001fce: 2b00 cmp r3, #0 + 8001fd0: d10e bne.n 8001ff0 + 8001fd2: 68fb ldr r3, [r7, #12] + 8001fd4: 1e58 subs r0, r3, #1 + 8001fd6: 687b ldr r3, [r7, #4] + 8001fd8: 6859 ldr r1, [r3, #4] + 8001fda: 460b mov r3, r1 + 8001fdc: 005b lsls r3, r3, #1 + 8001fde: 440b add r3, r1 + 8001fe0: fbb0 f3f3 udiv r3, r0, r3 + 8001fe4: 3301 adds r3, #1 + 8001fe6: f3c3 030b ubfx r3, r3, #0, #12 + 8001fea: f443 4300 orr.w r3, r3, #32768 ; 0x8000 + 8001fee: e00f b.n 8002010 + 8001ff0: 68fb ldr r3, [r7, #12] + 8001ff2: 1e58 subs r0, r3, #1 + 8001ff4: 687b ldr r3, [r7, #4] + 8001ff6: 6859 ldr r1, [r3, #4] + 8001ff8: 460b mov r3, r1 + 8001ffa: 009b lsls r3, r3, #2 + 8001ffc: 440b add r3, r1 + 8001ffe: 0099 lsls r1, r3, #2 + 8002000: 440b add r3, r1 + 8002002: fbb0 f3f3 udiv r3, r0, r3 + 8002006: 3301 adds r3, #1 + 8002008: f3c3 030b ubfx r3, r3, #0, #12 + 800200c: f443 4340 orr.w r3, r3, #49152 ; 0xc000 + 8002010: 6879 ldr r1, [r7, #4] + 8002012: 6809 ldr r1, [r1, #0] + 8002014: 4313 orrs r3, r2 + 8002016: 61cb str r3, [r1, #28] + + /*---------------------------- I2Cx CR1 Configuration ----------------------*/ + /* Configure I2Cx: Generalcall and NoStretch mode */ + MODIFY_REG(hi2c->Instance->CR1, (I2C_CR1_ENGC | I2C_CR1_NOSTRETCH), (hi2c->Init.GeneralCallMode | hi2c->Init.NoStretchMode)); + 8002018: 687b ldr r3, [r7, #4] + 800201a: 681b ldr r3, [r3, #0] + 800201c: 681b ldr r3, [r3, #0] + 800201e: f023 01c0 bic.w r1, r3, #192 ; 0xc0 + 8002022: 687b ldr r3, [r7, #4] + 8002024: 69da ldr r2, [r3, #28] + 8002026: 687b ldr r3, [r7, #4] + 8002028: 6a1b ldr r3, [r3, #32] + 800202a: 431a orrs r2, r3 + 800202c: 687b ldr r3, [r7, #4] + 800202e: 681b ldr r3, [r3, #0] + 8002030: 430a orrs r2, r1 + 8002032: 601a str r2, [r3, #0] + + /*---------------------------- I2Cx OAR1 Configuration ---------------------*/ + /* Configure I2Cx: Own Address1 and addressing mode */ + MODIFY_REG(hi2c->Instance->OAR1, (I2C_OAR1_ADDMODE | I2C_OAR1_ADD8_9 | I2C_OAR1_ADD1_7 | I2C_OAR1_ADD0), (hi2c->Init.AddressingMode | hi2c->Init.OwnAddress1)); + 8002034: 687b ldr r3, [r7, #4] + 8002036: 681b ldr r3, [r3, #0] + 8002038: 689b ldr r3, [r3, #8] + 800203a: f423 4303 bic.w r3, r3, #33536 ; 0x8300 + 800203e: f023 03ff bic.w r3, r3, #255 ; 0xff + 8002042: 687a ldr r2, [r7, #4] + 8002044: 6911 ldr r1, [r2, #16] + 8002046: 687a ldr r2, [r7, #4] + 8002048: 68d2 ldr r2, [r2, #12] + 800204a: 4311 orrs r1, r2 + 800204c: 687a ldr r2, [r7, #4] + 800204e: 6812 ldr r2, [r2, #0] + 8002050: 430b orrs r3, r1 + 8002052: 6093 str r3, [r2, #8] + + /*---------------------------- I2Cx OAR2 Configuration ---------------------*/ + /* Configure I2Cx: Dual mode and Own Address2 */ + MODIFY_REG(hi2c->Instance->OAR2, (I2C_OAR2_ENDUAL | I2C_OAR2_ADD2), (hi2c->Init.DualAddressMode | hi2c->Init.OwnAddress2)); + 8002054: 687b ldr r3, [r7, #4] + 8002056: 681b ldr r3, [r3, #0] + 8002058: 68db ldr r3, [r3, #12] + 800205a: f023 01ff bic.w r1, r3, #255 ; 0xff + 800205e: 687b ldr r3, [r7, #4] + 8002060: 695a ldr r2, [r3, #20] + 8002062: 687b ldr r3, [r7, #4] + 8002064: 699b ldr r3, [r3, #24] + 8002066: 431a orrs r2, r3 + 8002068: 687b ldr r3, [r7, #4] + 800206a: 681b ldr r3, [r3, #0] + 800206c: 430a orrs r2, r1 + 800206e: 60da str r2, [r3, #12] + + /* Enable the selected I2C peripheral */ + __HAL_I2C_ENABLE(hi2c); + 8002070: 687b ldr r3, [r7, #4] + 8002072: 681b ldr r3, [r3, #0] + 8002074: 681a ldr r2, [r3, #0] + 8002076: 687b ldr r3, [r7, #4] + 8002078: 681b ldr r3, [r3, #0] + 800207a: f042 0201 orr.w r2, r2, #1 + 800207e: 601a str r2, [r3, #0] + + hi2c->ErrorCode = HAL_I2C_ERROR_NONE; + 8002080: 687b ldr r3, [r7, #4] + 8002082: 2200 movs r2, #0 + 8002084: 641a str r2, [r3, #64] ; 0x40 + hi2c->State = HAL_I2C_STATE_READY; + 8002086: 687b ldr r3, [r7, #4] + 8002088: 2220 movs r2, #32 + 800208a: f883 203d strb.w r2, [r3, #61] ; 0x3d + hi2c->PreviousState = I2C_STATE_NONE; + 800208e: 687b ldr r3, [r7, #4] + 8002090: 2200 movs r2, #0 + 8002092: 631a str r2, [r3, #48] ; 0x30 + hi2c->Mode = HAL_I2C_MODE_NONE; + 8002094: 687b ldr r3, [r7, #4] + 8002096: 2200 movs r2, #0 + 8002098: f883 203e strb.w r2, [r3, #62] ; 0x3e + + return HAL_OK; + 800209c: 2300 movs r3, #0 +} + 800209e: 4618 mov r0, r3 + 80020a0: 3710 adds r7, #16 + 80020a2: 46bd mov sp, r7 + 80020a4: bd80 pop {r7, pc} + 80020a6: bf00 nop + 80020a8: 000186a0 .word 0x000186a0 + 80020ac: 001e847f .word 0x001e847f + 80020b0: 003d08ff .word 0x003d08ff + 80020b4: 431bde83 .word 0x431bde83 + 80020b8: 10624dd3 .word 0x10624dd3 + +080020bc : + * @param Size Amount of data to be sent + * @param Timeout Timeout duration + * @retval HAL status + */ +HAL_StatusTypeDef HAL_I2C_Mem_Write(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint16_t MemAddress, uint16_t MemAddSize, uint8_t *pData, uint16_t Size, uint32_t Timeout) +{ + 80020bc: b580 push {r7, lr} + 80020be: b088 sub sp, #32 + 80020c0: af02 add r7, sp, #8 + 80020c2: 60f8 str r0, [r7, #12] + 80020c4: 4608 mov r0, r1 + 80020c6: 4611 mov r1, r2 + 80020c8: 461a mov r2, r3 + 80020ca: 4603 mov r3, r0 + 80020cc: 817b strh r3, [r7, #10] + 80020ce: 460b mov r3, r1 + 80020d0: 813b strh r3, [r7, #8] + 80020d2: 4613 mov r3, r2 + 80020d4: 80fb strh r3, [r7, #6] + /* Init tickstart for timeout management*/ + uint32_t tickstart = HAL_GetTick(); + 80020d6: f7ff fbd7 bl 8001888 + 80020da: 6178 str r0, [r7, #20] + + /* Check the parameters */ + assert_param(IS_I2C_MEMADD_SIZE(MemAddSize)); + + if (hi2c->State == HAL_I2C_STATE_READY) + 80020dc: 68fb ldr r3, [r7, #12] + 80020de: f893 303d ldrb.w r3, [r3, #61] ; 0x3d + 80020e2: b2db uxtb r3, r3 + 80020e4: 2b20 cmp r3, #32 + 80020e6: f040 80d9 bne.w 800229c + { + /* Wait until BUSY flag is reset */ + if (I2C_WaitOnFlagUntilTimeout(hi2c, I2C_FLAG_BUSY, SET, I2C_TIMEOUT_BUSY_FLAG, tickstart) != HAL_OK) + 80020ea: 697b ldr r3, [r7, #20] + 80020ec: 9300 str r3, [sp, #0] + 80020ee: 2319 movs r3, #25 + 80020f0: 2201 movs r2, #1 + 80020f2: 496d ldr r1, [pc, #436] ; (80022a8 ) + 80020f4: 68f8 ldr r0, [r7, #12] + 80020f6: f000 fcc1 bl 8002a7c + 80020fa: 4603 mov r3, r0 + 80020fc: 2b00 cmp r3, #0 + 80020fe: d001 beq.n 8002104 + { + return HAL_BUSY; + 8002100: 2302 movs r3, #2 + 8002102: e0cc b.n 800229e + } + + /* Process Locked */ + __HAL_LOCK(hi2c); + 8002104: 68fb ldr r3, [r7, #12] + 8002106: f893 303c ldrb.w r3, [r3, #60] ; 0x3c + 800210a: 2b01 cmp r3, #1 + 800210c: d101 bne.n 8002112 + 800210e: 2302 movs r3, #2 + 8002110: e0c5 b.n 800229e + 8002112: 68fb ldr r3, [r7, #12] + 8002114: 2201 movs r2, #1 + 8002116: f883 203c strb.w r2, [r3, #60] ; 0x3c + + /* Check if the I2C is already enabled */ + if ((hi2c->Instance->CR1 & I2C_CR1_PE) != I2C_CR1_PE) + 800211a: 68fb ldr r3, [r7, #12] + 800211c: 681b ldr r3, [r3, #0] + 800211e: 681b ldr r3, [r3, #0] + 8002120: f003 0301 and.w r3, r3, #1 + 8002124: 2b01 cmp r3, #1 + 8002126: d007 beq.n 8002138 + { + /* Enable I2C peripheral */ + __HAL_I2C_ENABLE(hi2c); + 8002128: 68fb ldr r3, [r7, #12] + 800212a: 681b ldr r3, [r3, #0] + 800212c: 681a ldr r2, [r3, #0] + 800212e: 68fb ldr r3, [r7, #12] + 8002130: 681b ldr r3, [r3, #0] + 8002132: f042 0201 orr.w r2, r2, #1 + 8002136: 601a str r2, [r3, #0] + } + + /* Disable Pos */ + CLEAR_BIT(hi2c->Instance->CR1, I2C_CR1_POS); + 8002138: 68fb ldr r3, [r7, #12] + 800213a: 681b ldr r3, [r3, #0] + 800213c: 681a ldr r2, [r3, #0] + 800213e: 68fb ldr r3, [r7, #12] + 8002140: 681b ldr r3, [r3, #0] + 8002142: f422 6200 bic.w r2, r2, #2048 ; 0x800 + 8002146: 601a str r2, [r3, #0] + + hi2c->State = HAL_I2C_STATE_BUSY_TX; + 8002148: 68fb ldr r3, [r7, #12] + 800214a: 2221 movs r2, #33 ; 0x21 + 800214c: f883 203d strb.w r2, [r3, #61] ; 0x3d + hi2c->Mode = HAL_I2C_MODE_MEM; + 8002150: 68fb ldr r3, [r7, #12] + 8002152: 2240 movs r2, #64 ; 0x40 + 8002154: f883 203e strb.w r2, [r3, #62] ; 0x3e + hi2c->ErrorCode = HAL_I2C_ERROR_NONE; + 8002158: 68fb ldr r3, [r7, #12] + 800215a: 2200 movs r2, #0 + 800215c: 641a str r2, [r3, #64] ; 0x40 + + /* Prepare transfer parameters */ + hi2c->pBuffPtr = pData; + 800215e: 68fb ldr r3, [r7, #12] + 8002160: 6a3a ldr r2, [r7, #32] + 8002162: 625a str r2, [r3, #36] ; 0x24 + hi2c->XferCount = Size; + 8002164: 68fb ldr r3, [r7, #12] + 8002166: 8cba ldrh r2, [r7, #36] ; 0x24 + 8002168: 855a strh r2, [r3, #42] ; 0x2a + hi2c->XferSize = hi2c->XferCount; + 800216a: 68fb ldr r3, [r7, #12] + 800216c: 8d5b ldrh r3, [r3, #42] ; 0x2a + 800216e: b29a uxth r2, r3 + 8002170: 68fb ldr r3, [r7, #12] + 8002172: 851a strh r2, [r3, #40] ; 0x28 + hi2c->XferOptions = I2C_NO_OPTION_FRAME; + 8002174: 68fb ldr r3, [r7, #12] + 8002176: 4a4d ldr r2, [pc, #308] ; (80022ac ) + 8002178: 62da str r2, [r3, #44] ; 0x2c + + /* Send Slave Address and Memory Address */ + if (I2C_RequestMemoryWrite(hi2c, DevAddress, MemAddress, MemAddSize, Timeout, tickstart) != HAL_OK) + 800217a: 88f8 ldrh r0, [r7, #6] + 800217c: 893a ldrh r2, [r7, #8] + 800217e: 8979 ldrh r1, [r7, #10] + 8002180: 697b ldr r3, [r7, #20] + 8002182: 9301 str r3, [sp, #4] + 8002184: 6abb ldr r3, [r7, #40] ; 0x28 + 8002186: 9300 str r3, [sp, #0] + 8002188: 4603 mov r3, r0 + 800218a: 68f8 ldr r0, [r7, #12] + 800218c: f000 faf8 bl 8002780 + 8002190: 4603 mov r3, r0 + 8002192: 2b00 cmp r3, #0 + 8002194: d052 beq.n 800223c + { + return HAL_ERROR; + 8002196: 2301 movs r3, #1 + 8002198: e081 b.n 800229e + } + + while (hi2c->XferSize > 0U) + { + /* Wait until TXE flag is set */ + if (I2C_WaitOnTXEFlagUntilTimeout(hi2c, Timeout, tickstart) != HAL_OK) + 800219a: 697a ldr r2, [r7, #20] + 800219c: 6ab9 ldr r1, [r7, #40] ; 0x28 + 800219e: 68f8 ldr r0, [r7, #12] + 80021a0: f000 fd42 bl 8002c28 + 80021a4: 4603 mov r3, r0 + 80021a6: 2b00 cmp r3, #0 + 80021a8: d00d beq.n 80021c6 + { + if (hi2c->ErrorCode == HAL_I2C_ERROR_AF) + 80021aa: 68fb ldr r3, [r7, #12] + 80021ac: 6c1b ldr r3, [r3, #64] ; 0x40 + 80021ae: 2b04 cmp r3, #4 + 80021b0: d107 bne.n 80021c2 + { + /* Generate Stop */ + SET_BIT(hi2c->Instance->CR1, I2C_CR1_STOP); + 80021b2: 68fb ldr r3, [r7, #12] + 80021b4: 681b ldr r3, [r3, #0] + 80021b6: 681a ldr r2, [r3, #0] + 80021b8: 68fb ldr r3, [r7, #12] + 80021ba: 681b ldr r3, [r3, #0] + 80021bc: f442 7200 orr.w r2, r2, #512 ; 0x200 + 80021c0: 601a str r2, [r3, #0] + } + return HAL_ERROR; + 80021c2: 2301 movs r3, #1 + 80021c4: e06b b.n 800229e + } + + /* Write data to DR */ + hi2c->Instance->DR = *hi2c->pBuffPtr; + 80021c6: 68fb ldr r3, [r7, #12] + 80021c8: 6a5b ldr r3, [r3, #36] ; 0x24 + 80021ca: 781a ldrb r2, [r3, #0] + 80021cc: 68fb ldr r3, [r7, #12] + 80021ce: 681b ldr r3, [r3, #0] + 80021d0: 611a str r2, [r3, #16] + + /* Increment Buffer pointer */ + hi2c->pBuffPtr++; + 80021d2: 68fb ldr r3, [r7, #12] + 80021d4: 6a5b ldr r3, [r3, #36] ; 0x24 + 80021d6: 1c5a adds r2, r3, #1 + 80021d8: 68fb ldr r3, [r7, #12] + 80021da: 625a str r2, [r3, #36] ; 0x24 + + /* Update counter */ + hi2c->XferSize--; + 80021dc: 68fb ldr r3, [r7, #12] + 80021de: 8d1b ldrh r3, [r3, #40] ; 0x28 + 80021e0: 3b01 subs r3, #1 + 80021e2: b29a uxth r2, r3 + 80021e4: 68fb ldr r3, [r7, #12] + 80021e6: 851a strh r2, [r3, #40] ; 0x28 + hi2c->XferCount--; + 80021e8: 68fb ldr r3, [r7, #12] + 80021ea: 8d5b ldrh r3, [r3, #42] ; 0x2a + 80021ec: b29b uxth r3, r3 + 80021ee: 3b01 subs r3, #1 + 80021f0: b29a uxth r2, r3 + 80021f2: 68fb ldr r3, [r7, #12] + 80021f4: 855a strh r2, [r3, #42] ; 0x2a + + if ((__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_BTF) == SET) && (hi2c->XferSize != 0U)) + 80021f6: 68fb ldr r3, [r7, #12] + 80021f8: 681b ldr r3, [r3, #0] + 80021fa: 695b ldr r3, [r3, #20] + 80021fc: f003 0304 and.w r3, r3, #4 + 8002200: 2b04 cmp r3, #4 + 8002202: d11b bne.n 800223c + 8002204: 68fb ldr r3, [r7, #12] + 8002206: 8d1b ldrh r3, [r3, #40] ; 0x28 + 8002208: 2b00 cmp r3, #0 + 800220a: d017 beq.n 800223c + { + /* Write data to DR */ + hi2c->Instance->DR = *hi2c->pBuffPtr; + 800220c: 68fb ldr r3, [r7, #12] + 800220e: 6a5b ldr r3, [r3, #36] ; 0x24 + 8002210: 781a ldrb r2, [r3, #0] + 8002212: 68fb ldr r3, [r7, #12] + 8002214: 681b ldr r3, [r3, #0] + 8002216: 611a str r2, [r3, #16] + + /* Increment Buffer pointer */ + hi2c->pBuffPtr++; + 8002218: 68fb ldr r3, [r7, #12] + 800221a: 6a5b ldr r3, [r3, #36] ; 0x24 + 800221c: 1c5a adds r2, r3, #1 + 800221e: 68fb ldr r3, [r7, #12] + 8002220: 625a str r2, [r3, #36] ; 0x24 + + /* Update counter */ + hi2c->XferSize--; + 8002222: 68fb ldr r3, [r7, #12] + 8002224: 8d1b ldrh r3, [r3, #40] ; 0x28 + 8002226: 3b01 subs r3, #1 + 8002228: b29a uxth r2, r3 + 800222a: 68fb ldr r3, [r7, #12] + 800222c: 851a strh r2, [r3, #40] ; 0x28 + hi2c->XferCount--; + 800222e: 68fb ldr r3, [r7, #12] + 8002230: 8d5b ldrh r3, [r3, #42] ; 0x2a + 8002232: b29b uxth r3, r3 + 8002234: 3b01 subs r3, #1 + 8002236: b29a uxth r2, r3 + 8002238: 68fb ldr r3, [r7, #12] + 800223a: 855a strh r2, [r3, #42] ; 0x2a + while (hi2c->XferSize > 0U) + 800223c: 68fb ldr r3, [r7, #12] + 800223e: 8d1b ldrh r3, [r3, #40] ; 0x28 + 8002240: 2b00 cmp r3, #0 + 8002242: d1aa bne.n 800219a + } + } + + /* Wait until BTF flag is set */ + if (I2C_WaitOnBTFFlagUntilTimeout(hi2c, Timeout, tickstart) != HAL_OK) + 8002244: 697a ldr r2, [r7, #20] + 8002246: 6ab9 ldr r1, [r7, #40] ; 0x28 + 8002248: 68f8 ldr r0, [r7, #12] + 800224a: f000 fd2e bl 8002caa + 800224e: 4603 mov r3, r0 + 8002250: 2b00 cmp r3, #0 + 8002252: d00d beq.n 8002270 + { + if (hi2c->ErrorCode == HAL_I2C_ERROR_AF) + 8002254: 68fb ldr r3, [r7, #12] + 8002256: 6c1b ldr r3, [r3, #64] ; 0x40 + 8002258: 2b04 cmp r3, #4 + 800225a: d107 bne.n 800226c + { + /* Generate Stop */ + SET_BIT(hi2c->Instance->CR1, I2C_CR1_STOP); + 800225c: 68fb ldr r3, [r7, #12] + 800225e: 681b ldr r3, [r3, #0] + 8002260: 681a ldr r2, [r3, #0] + 8002262: 68fb ldr r3, [r7, #12] + 8002264: 681b ldr r3, [r3, #0] + 8002266: f442 7200 orr.w r2, r2, #512 ; 0x200 + 800226a: 601a str r2, [r3, #0] + } + return HAL_ERROR; + 800226c: 2301 movs r3, #1 + 800226e: e016 b.n 800229e + } + + /* Generate Stop */ + SET_BIT(hi2c->Instance->CR1, I2C_CR1_STOP); + 8002270: 68fb ldr r3, [r7, #12] + 8002272: 681b ldr r3, [r3, #0] + 8002274: 681a ldr r2, [r3, #0] + 8002276: 68fb ldr r3, [r7, #12] + 8002278: 681b ldr r3, [r3, #0] + 800227a: f442 7200 orr.w r2, r2, #512 ; 0x200 + 800227e: 601a str r2, [r3, #0] + + hi2c->State = HAL_I2C_STATE_READY; + 8002280: 68fb ldr r3, [r7, #12] + 8002282: 2220 movs r2, #32 + 8002284: f883 203d strb.w r2, [r3, #61] ; 0x3d + hi2c->Mode = HAL_I2C_MODE_NONE; + 8002288: 68fb ldr r3, [r7, #12] + 800228a: 2200 movs r2, #0 + 800228c: f883 203e strb.w r2, [r3, #62] ; 0x3e + + /* Process Unlocked */ + __HAL_UNLOCK(hi2c); + 8002290: 68fb ldr r3, [r7, #12] + 8002292: 2200 movs r2, #0 + 8002294: f883 203c strb.w r2, [r3, #60] ; 0x3c + + return HAL_OK; + 8002298: 2300 movs r3, #0 + 800229a: e000 b.n 800229e + } + else + { + return HAL_BUSY; + 800229c: 2302 movs r3, #2 + } +} + 800229e: 4618 mov r0, r3 + 80022a0: 3718 adds r7, #24 + 80022a2: 46bd mov sp, r7 + 80022a4: bd80 pop {r7, pc} + 80022a6: bf00 nop + 80022a8: 00100002 .word 0x00100002 + 80022ac: ffff0000 .word 0xffff0000 + +080022b0 : + * @param Size Amount of data to be sent + * @param Timeout Timeout duration + * @retval HAL status + */ +HAL_StatusTypeDef HAL_I2C_Mem_Read(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint16_t MemAddress, uint16_t MemAddSize, uint8_t *pData, uint16_t Size, uint32_t Timeout) +{ + 80022b0: b580 push {r7, lr} + 80022b2: b08c sub sp, #48 ; 0x30 + 80022b4: af02 add r7, sp, #8 + 80022b6: 60f8 str r0, [r7, #12] + 80022b8: 4608 mov r0, r1 + 80022ba: 4611 mov r1, r2 + 80022bc: 461a mov r2, r3 + 80022be: 4603 mov r3, r0 + 80022c0: 817b strh r3, [r7, #10] + 80022c2: 460b mov r3, r1 + 80022c4: 813b strh r3, [r7, #8] + 80022c6: 4613 mov r3, r2 + 80022c8: 80fb strh r3, [r7, #6] + __IO uint32_t count = 0U; + 80022ca: 2300 movs r3, #0 + 80022cc: 623b str r3, [r7, #32] + + /* Init tickstart for timeout management*/ + uint32_t tickstart = HAL_GetTick(); + 80022ce: f7ff fadb bl 8001888 + 80022d2: 6278 str r0, [r7, #36] ; 0x24 + + /* Check the parameters */ + assert_param(IS_I2C_MEMADD_SIZE(MemAddSize)); + + if (hi2c->State == HAL_I2C_STATE_READY) + 80022d4: 68fb ldr r3, [r7, #12] + 80022d6: f893 303d ldrb.w r3, [r3, #61] ; 0x3d + 80022da: b2db uxtb r3, r3 + 80022dc: 2b20 cmp r3, #32 + 80022de: f040 8244 bne.w 800276a + { + /* Wait until BUSY flag is reset */ + if (I2C_WaitOnFlagUntilTimeout(hi2c, I2C_FLAG_BUSY, SET, I2C_TIMEOUT_BUSY_FLAG, tickstart) != HAL_OK) + 80022e2: 6a7b ldr r3, [r7, #36] ; 0x24 + 80022e4: 9300 str r3, [sp, #0] + 80022e6: 2319 movs r3, #25 + 80022e8: 2201 movs r2, #1 + 80022ea: 4982 ldr r1, [pc, #520] ; (80024f4 ) + 80022ec: 68f8 ldr r0, [r7, #12] + 80022ee: f000 fbc5 bl 8002a7c + 80022f2: 4603 mov r3, r0 + 80022f4: 2b00 cmp r3, #0 + 80022f6: d001 beq.n 80022fc + { + return HAL_BUSY; + 80022f8: 2302 movs r3, #2 + 80022fa: e237 b.n 800276c + } + + /* Process Locked */ + __HAL_LOCK(hi2c); + 80022fc: 68fb ldr r3, [r7, #12] + 80022fe: f893 303c ldrb.w r3, [r3, #60] ; 0x3c + 8002302: 2b01 cmp r3, #1 + 8002304: d101 bne.n 800230a + 8002306: 2302 movs r3, #2 + 8002308: e230 b.n 800276c + 800230a: 68fb ldr r3, [r7, #12] + 800230c: 2201 movs r2, #1 + 800230e: f883 203c strb.w r2, [r3, #60] ; 0x3c + + /* Check if the I2C is already enabled */ + if ((hi2c->Instance->CR1 & I2C_CR1_PE) != I2C_CR1_PE) + 8002312: 68fb ldr r3, [r7, #12] + 8002314: 681b ldr r3, [r3, #0] + 8002316: 681b ldr r3, [r3, #0] + 8002318: f003 0301 and.w r3, r3, #1 + 800231c: 2b01 cmp r3, #1 + 800231e: d007 beq.n 8002330 + { + /* Enable I2C peripheral */ + __HAL_I2C_ENABLE(hi2c); + 8002320: 68fb ldr r3, [r7, #12] + 8002322: 681b ldr r3, [r3, #0] + 8002324: 681a ldr r2, [r3, #0] + 8002326: 68fb ldr r3, [r7, #12] + 8002328: 681b ldr r3, [r3, #0] + 800232a: f042 0201 orr.w r2, r2, #1 + 800232e: 601a str r2, [r3, #0] + } + + /* Disable Pos */ + CLEAR_BIT(hi2c->Instance->CR1, I2C_CR1_POS); + 8002330: 68fb ldr r3, [r7, #12] + 8002332: 681b ldr r3, [r3, #0] + 8002334: 681a ldr r2, [r3, #0] + 8002336: 68fb ldr r3, [r7, #12] + 8002338: 681b ldr r3, [r3, #0] + 800233a: f422 6200 bic.w r2, r2, #2048 ; 0x800 + 800233e: 601a str r2, [r3, #0] + + hi2c->State = HAL_I2C_STATE_BUSY_RX; + 8002340: 68fb ldr r3, [r7, #12] + 8002342: 2222 movs r2, #34 ; 0x22 + 8002344: f883 203d strb.w r2, [r3, #61] ; 0x3d + hi2c->Mode = HAL_I2C_MODE_MEM; + 8002348: 68fb ldr r3, [r7, #12] + 800234a: 2240 movs r2, #64 ; 0x40 + 800234c: f883 203e strb.w r2, [r3, #62] ; 0x3e + hi2c->ErrorCode = HAL_I2C_ERROR_NONE; + 8002350: 68fb ldr r3, [r7, #12] + 8002352: 2200 movs r2, #0 + 8002354: 641a str r2, [r3, #64] ; 0x40 + + /* Prepare transfer parameters */ + hi2c->pBuffPtr = pData; + 8002356: 68fb ldr r3, [r7, #12] + 8002358: 6b3a ldr r2, [r7, #48] ; 0x30 + 800235a: 625a str r2, [r3, #36] ; 0x24 + hi2c->XferCount = Size; + 800235c: 68fb ldr r3, [r7, #12] + 800235e: 8eba ldrh r2, [r7, #52] ; 0x34 + 8002360: 855a strh r2, [r3, #42] ; 0x2a + hi2c->XferSize = hi2c->XferCount; + 8002362: 68fb ldr r3, [r7, #12] + 8002364: 8d5b ldrh r3, [r3, #42] ; 0x2a + 8002366: b29a uxth r2, r3 + 8002368: 68fb ldr r3, [r7, #12] + 800236a: 851a strh r2, [r3, #40] ; 0x28 + hi2c->XferOptions = I2C_NO_OPTION_FRAME; + 800236c: 68fb ldr r3, [r7, #12] + 800236e: 4a62 ldr r2, [pc, #392] ; (80024f8 ) + 8002370: 62da str r2, [r3, #44] ; 0x2c + + /* Send Slave Address and Memory Address */ + if (I2C_RequestMemoryRead(hi2c, DevAddress, MemAddress, MemAddSize, Timeout, tickstart) != HAL_OK) + 8002372: 88f8 ldrh r0, [r7, #6] + 8002374: 893a ldrh r2, [r7, #8] + 8002376: 8979 ldrh r1, [r7, #10] + 8002378: 6a7b ldr r3, [r7, #36] ; 0x24 + 800237a: 9301 str r3, [sp, #4] + 800237c: 6bbb ldr r3, [r7, #56] ; 0x38 + 800237e: 9300 str r3, [sp, #0] + 8002380: 4603 mov r3, r0 + 8002382: 68f8 ldr r0, [r7, #12] + 8002384: f000 fa92 bl 80028ac + 8002388: 4603 mov r3, r0 + 800238a: 2b00 cmp r3, #0 + 800238c: d001 beq.n 8002392 + { + return HAL_ERROR; + 800238e: 2301 movs r3, #1 + 8002390: e1ec b.n 800276c + } + + if (hi2c->XferSize == 0U) + 8002392: 68fb ldr r3, [r7, #12] + 8002394: 8d1b ldrh r3, [r3, #40] ; 0x28 + 8002396: 2b00 cmp r3, #0 + 8002398: d113 bne.n 80023c2 + { + /* Clear ADDR flag */ + __HAL_I2C_CLEAR_ADDRFLAG(hi2c); + 800239a: 2300 movs r3, #0 + 800239c: 61fb str r3, [r7, #28] + 800239e: 68fb ldr r3, [r7, #12] + 80023a0: 681b ldr r3, [r3, #0] + 80023a2: 695b ldr r3, [r3, #20] + 80023a4: 61fb str r3, [r7, #28] + 80023a6: 68fb ldr r3, [r7, #12] + 80023a8: 681b ldr r3, [r3, #0] + 80023aa: 699b ldr r3, [r3, #24] + 80023ac: 61fb str r3, [r7, #28] + 80023ae: 69fb ldr r3, [r7, #28] + + /* Generate Stop */ + SET_BIT(hi2c->Instance->CR1, I2C_CR1_STOP); + 80023b0: 68fb ldr r3, [r7, #12] + 80023b2: 681b ldr r3, [r3, #0] + 80023b4: 681a ldr r2, [r3, #0] + 80023b6: 68fb ldr r3, [r7, #12] + 80023b8: 681b ldr r3, [r3, #0] + 80023ba: f442 7200 orr.w r2, r2, #512 ; 0x200 + 80023be: 601a str r2, [r3, #0] + 80023c0: e1c0 b.n 8002744 + } + else if (hi2c->XferSize == 1U) + 80023c2: 68fb ldr r3, [r7, #12] + 80023c4: 8d1b ldrh r3, [r3, #40] ; 0x28 + 80023c6: 2b01 cmp r3, #1 + 80023c8: d11e bne.n 8002408 + { + /* Disable Acknowledge */ + CLEAR_BIT(hi2c->Instance->CR1, I2C_CR1_ACK); + 80023ca: 68fb ldr r3, [r7, #12] + 80023cc: 681b ldr r3, [r3, #0] + 80023ce: 681a ldr r2, [r3, #0] + 80023d0: 68fb ldr r3, [r7, #12] + 80023d2: 681b ldr r3, [r3, #0] + 80023d4: f422 6280 bic.w r2, r2, #1024 ; 0x400 + 80023d8: 601a str r2, [r3, #0] + __ASM volatile ("cpsid i" : : : "memory"); + 80023da: b672 cpsid i +} + 80023dc: bf00 nop + /* Disable all active IRQs around ADDR clearing and STOP programming because the EV6_3 + software sequence must complete before the current byte end of transfer */ + __disable_irq(); + + /* Clear ADDR flag */ + __HAL_I2C_CLEAR_ADDRFLAG(hi2c); + 80023de: 2300 movs r3, #0 + 80023e0: 61bb str r3, [r7, #24] + 80023e2: 68fb ldr r3, [r7, #12] + 80023e4: 681b ldr r3, [r3, #0] + 80023e6: 695b ldr r3, [r3, #20] + 80023e8: 61bb str r3, [r7, #24] + 80023ea: 68fb ldr r3, [r7, #12] + 80023ec: 681b ldr r3, [r3, #0] + 80023ee: 699b ldr r3, [r3, #24] + 80023f0: 61bb str r3, [r7, #24] + 80023f2: 69bb ldr r3, [r7, #24] + + /* Generate Stop */ + SET_BIT(hi2c->Instance->CR1, I2C_CR1_STOP); + 80023f4: 68fb ldr r3, [r7, #12] + 80023f6: 681b ldr r3, [r3, #0] + 80023f8: 681a ldr r2, [r3, #0] + 80023fa: 68fb ldr r3, [r7, #12] + 80023fc: 681b ldr r3, [r3, #0] + 80023fe: f442 7200 orr.w r2, r2, #512 ; 0x200 + 8002402: 601a str r2, [r3, #0] + __ASM volatile ("cpsie i" : : : "memory"); + 8002404: b662 cpsie i +} + 8002406: e035 b.n 8002474 + + /* Re-enable IRQs */ + __enable_irq(); + } + else if (hi2c->XferSize == 2U) + 8002408: 68fb ldr r3, [r7, #12] + 800240a: 8d1b ldrh r3, [r3, #40] ; 0x28 + 800240c: 2b02 cmp r3, #2 + 800240e: d11e bne.n 800244e + { + /* Enable Pos */ + SET_BIT(hi2c->Instance->CR1, I2C_CR1_POS); + 8002410: 68fb ldr r3, [r7, #12] + 8002412: 681b ldr r3, [r3, #0] + 8002414: 681a ldr r2, [r3, #0] + 8002416: 68fb ldr r3, [r7, #12] + 8002418: 681b ldr r3, [r3, #0] + 800241a: f442 6200 orr.w r2, r2, #2048 ; 0x800 + 800241e: 601a str r2, [r3, #0] + __ASM volatile ("cpsid i" : : : "memory"); + 8002420: b672 cpsid i +} + 8002422: bf00 nop + /* Disable all active IRQs around ADDR clearing and STOP programming because the EV6_3 + software sequence must complete before the current byte end of transfer */ + __disable_irq(); + + /* Clear ADDR flag */ + __HAL_I2C_CLEAR_ADDRFLAG(hi2c); + 8002424: 2300 movs r3, #0 + 8002426: 617b str r3, [r7, #20] + 8002428: 68fb ldr r3, [r7, #12] + 800242a: 681b ldr r3, [r3, #0] + 800242c: 695b ldr r3, [r3, #20] + 800242e: 617b str r3, [r7, #20] + 8002430: 68fb ldr r3, [r7, #12] + 8002432: 681b ldr r3, [r3, #0] + 8002434: 699b ldr r3, [r3, #24] + 8002436: 617b str r3, [r7, #20] + 8002438: 697b ldr r3, [r7, #20] + + /* Disable Acknowledge */ + CLEAR_BIT(hi2c->Instance->CR1, I2C_CR1_ACK); + 800243a: 68fb ldr r3, [r7, #12] + 800243c: 681b ldr r3, [r3, #0] + 800243e: 681a ldr r2, [r3, #0] + 8002440: 68fb ldr r3, [r7, #12] + 8002442: 681b ldr r3, [r3, #0] + 8002444: f422 6280 bic.w r2, r2, #1024 ; 0x400 + 8002448: 601a str r2, [r3, #0] + __ASM volatile ("cpsie i" : : : "memory"); + 800244a: b662 cpsie i +} + 800244c: e012 b.n 8002474 + __enable_irq(); + } + else + { + /* Enable Acknowledge */ + SET_BIT(hi2c->Instance->CR1, I2C_CR1_ACK); + 800244e: 68fb ldr r3, [r7, #12] + 8002450: 681b ldr r3, [r3, #0] + 8002452: 681a ldr r2, [r3, #0] + 8002454: 68fb ldr r3, [r7, #12] + 8002456: 681b ldr r3, [r3, #0] + 8002458: f442 6280 orr.w r2, r2, #1024 ; 0x400 + 800245c: 601a str r2, [r3, #0] + /* Clear ADDR flag */ + __HAL_I2C_CLEAR_ADDRFLAG(hi2c); + 800245e: 2300 movs r3, #0 + 8002460: 613b str r3, [r7, #16] + 8002462: 68fb ldr r3, [r7, #12] + 8002464: 681b ldr r3, [r3, #0] + 8002466: 695b ldr r3, [r3, #20] + 8002468: 613b str r3, [r7, #16] + 800246a: 68fb ldr r3, [r7, #12] + 800246c: 681b ldr r3, [r3, #0] + 800246e: 699b ldr r3, [r3, #24] + 8002470: 613b str r3, [r7, #16] + 8002472: 693b ldr r3, [r7, #16] + } + + while (hi2c->XferSize > 0U) + 8002474: e166 b.n 8002744 + { + if (hi2c->XferSize <= 3U) + 8002476: 68fb ldr r3, [r7, #12] + 8002478: 8d1b ldrh r3, [r3, #40] ; 0x28 + 800247a: 2b03 cmp r3, #3 + 800247c: f200 811f bhi.w 80026be + { + /* One byte */ + if (hi2c->XferSize == 1U) + 8002480: 68fb ldr r3, [r7, #12] + 8002482: 8d1b ldrh r3, [r3, #40] ; 0x28 + 8002484: 2b01 cmp r3, #1 + 8002486: d123 bne.n 80024d0 + { + /* Wait until RXNE flag is set */ + if (I2C_WaitOnRXNEFlagUntilTimeout(hi2c, Timeout, tickstart) != HAL_OK) + 8002488: 6a7a ldr r2, [r7, #36] ; 0x24 + 800248a: 6bb9 ldr r1, [r7, #56] ; 0x38 + 800248c: 68f8 ldr r0, [r7, #12] + 800248e: f000 fc4d bl 8002d2c + 8002492: 4603 mov r3, r0 + 8002494: 2b00 cmp r3, #0 + 8002496: d001 beq.n 800249c + { + return HAL_ERROR; + 8002498: 2301 movs r3, #1 + 800249a: e167 b.n 800276c + } + + /* Read data from DR */ + *hi2c->pBuffPtr = (uint8_t)hi2c->Instance->DR; + 800249c: 68fb ldr r3, [r7, #12] + 800249e: 681b ldr r3, [r3, #0] + 80024a0: 691a ldr r2, [r3, #16] + 80024a2: 68fb ldr r3, [r7, #12] + 80024a4: 6a5b ldr r3, [r3, #36] ; 0x24 + 80024a6: b2d2 uxtb r2, r2 + 80024a8: 701a strb r2, [r3, #0] + + /* Increment Buffer pointer */ + hi2c->pBuffPtr++; + 80024aa: 68fb ldr r3, [r7, #12] + 80024ac: 6a5b ldr r3, [r3, #36] ; 0x24 + 80024ae: 1c5a adds r2, r3, #1 + 80024b0: 68fb ldr r3, [r7, #12] + 80024b2: 625a str r2, [r3, #36] ; 0x24 + + /* Update counter */ + hi2c->XferSize--; + 80024b4: 68fb ldr r3, [r7, #12] + 80024b6: 8d1b ldrh r3, [r3, #40] ; 0x28 + 80024b8: 3b01 subs r3, #1 + 80024ba: b29a uxth r2, r3 + 80024bc: 68fb ldr r3, [r7, #12] + 80024be: 851a strh r2, [r3, #40] ; 0x28 + hi2c->XferCount--; + 80024c0: 68fb ldr r3, [r7, #12] + 80024c2: 8d5b ldrh r3, [r3, #42] ; 0x2a + 80024c4: b29b uxth r3, r3 + 80024c6: 3b01 subs r3, #1 + 80024c8: b29a uxth r2, r3 + 80024ca: 68fb ldr r3, [r7, #12] + 80024cc: 855a strh r2, [r3, #42] ; 0x2a + 80024ce: e139 b.n 8002744 + } + /* Two bytes */ + else if (hi2c->XferSize == 2U) + 80024d0: 68fb ldr r3, [r7, #12] + 80024d2: 8d1b ldrh r3, [r3, #40] ; 0x28 + 80024d4: 2b02 cmp r3, #2 + 80024d6: d152 bne.n 800257e + { + /* Wait until BTF flag is set */ + if (I2C_WaitOnFlagUntilTimeout(hi2c, I2C_FLAG_BTF, RESET, Timeout, tickstart) != HAL_OK) + 80024d8: 6a7b ldr r3, [r7, #36] ; 0x24 + 80024da: 9300 str r3, [sp, #0] + 80024dc: 6bbb ldr r3, [r7, #56] ; 0x38 + 80024de: 2200 movs r2, #0 + 80024e0: 4906 ldr r1, [pc, #24] ; (80024fc ) + 80024e2: 68f8 ldr r0, [r7, #12] + 80024e4: f000 faca bl 8002a7c + 80024e8: 4603 mov r3, r0 + 80024ea: 2b00 cmp r3, #0 + 80024ec: d008 beq.n 8002500 + { + return HAL_ERROR; + 80024ee: 2301 movs r3, #1 + 80024f0: e13c b.n 800276c + 80024f2: bf00 nop + 80024f4: 00100002 .word 0x00100002 + 80024f8: ffff0000 .word 0xffff0000 + 80024fc: 00010004 .word 0x00010004 + __ASM volatile ("cpsid i" : : : "memory"); + 8002500: b672 cpsid i +} + 8002502: bf00 nop + /* Disable all active IRQs around ADDR clearing and STOP programming because the EV6_3 + software sequence must complete before the current byte end of transfer */ + __disable_irq(); + + /* Generate Stop */ + SET_BIT(hi2c->Instance->CR1, I2C_CR1_STOP); + 8002504: 68fb ldr r3, [r7, #12] + 8002506: 681b ldr r3, [r3, #0] + 8002508: 681a ldr r2, [r3, #0] + 800250a: 68fb ldr r3, [r7, #12] + 800250c: 681b ldr r3, [r3, #0] + 800250e: f442 7200 orr.w r2, r2, #512 ; 0x200 + 8002512: 601a str r2, [r3, #0] + + /* Read data from DR */ + *hi2c->pBuffPtr = (uint8_t)hi2c->Instance->DR; + 8002514: 68fb ldr r3, [r7, #12] + 8002516: 681b ldr r3, [r3, #0] + 8002518: 691a ldr r2, [r3, #16] + 800251a: 68fb ldr r3, [r7, #12] + 800251c: 6a5b ldr r3, [r3, #36] ; 0x24 + 800251e: b2d2 uxtb r2, r2 + 8002520: 701a strb r2, [r3, #0] + + /* Increment Buffer pointer */ + hi2c->pBuffPtr++; + 8002522: 68fb ldr r3, [r7, #12] + 8002524: 6a5b ldr r3, [r3, #36] ; 0x24 + 8002526: 1c5a adds r2, r3, #1 + 8002528: 68fb ldr r3, [r7, #12] + 800252a: 625a str r2, [r3, #36] ; 0x24 + + /* Update counter */ + hi2c->XferSize--; + 800252c: 68fb ldr r3, [r7, #12] + 800252e: 8d1b ldrh r3, [r3, #40] ; 0x28 + 8002530: 3b01 subs r3, #1 + 8002532: b29a uxth r2, r3 + 8002534: 68fb ldr r3, [r7, #12] + 8002536: 851a strh r2, [r3, #40] ; 0x28 + hi2c->XferCount--; + 8002538: 68fb ldr r3, [r7, #12] + 800253a: 8d5b ldrh r3, [r3, #42] ; 0x2a + 800253c: b29b uxth r3, r3 + 800253e: 3b01 subs r3, #1 + 8002540: b29a uxth r2, r3 + 8002542: 68fb ldr r3, [r7, #12] + 8002544: 855a strh r2, [r3, #42] ; 0x2a + __ASM volatile ("cpsie i" : : : "memory"); + 8002546: b662 cpsie i +} + 8002548: bf00 nop + + /* Re-enable IRQs */ + __enable_irq(); + + /* Read data from DR */ + *hi2c->pBuffPtr = (uint8_t)hi2c->Instance->DR; + 800254a: 68fb ldr r3, [r7, #12] + 800254c: 681b ldr r3, [r3, #0] + 800254e: 691a ldr r2, [r3, #16] + 8002550: 68fb ldr r3, [r7, #12] + 8002552: 6a5b ldr r3, [r3, #36] ; 0x24 + 8002554: b2d2 uxtb r2, r2 + 8002556: 701a strb r2, [r3, #0] + + /* Increment Buffer pointer */ + hi2c->pBuffPtr++; + 8002558: 68fb ldr r3, [r7, #12] + 800255a: 6a5b ldr r3, [r3, #36] ; 0x24 + 800255c: 1c5a adds r2, r3, #1 + 800255e: 68fb ldr r3, [r7, #12] + 8002560: 625a str r2, [r3, #36] ; 0x24 + + /* Update counter */ + hi2c->XferSize--; + 8002562: 68fb ldr r3, [r7, #12] + 8002564: 8d1b ldrh r3, [r3, #40] ; 0x28 + 8002566: 3b01 subs r3, #1 + 8002568: b29a uxth r2, r3 + 800256a: 68fb ldr r3, [r7, #12] + 800256c: 851a strh r2, [r3, #40] ; 0x28 + hi2c->XferCount--; + 800256e: 68fb ldr r3, [r7, #12] + 8002570: 8d5b ldrh r3, [r3, #42] ; 0x2a + 8002572: b29b uxth r3, r3 + 8002574: 3b01 subs r3, #1 + 8002576: b29a uxth r2, r3 + 8002578: 68fb ldr r3, [r7, #12] + 800257a: 855a strh r2, [r3, #42] ; 0x2a + 800257c: e0e2 b.n 8002744 + } + /* 3 Last bytes */ + else + { + /* Wait until BTF flag is set */ + if (I2C_WaitOnFlagUntilTimeout(hi2c, I2C_FLAG_BTF, RESET, Timeout, tickstart) != HAL_OK) + 800257e: 6a7b ldr r3, [r7, #36] ; 0x24 + 8002580: 9300 str r3, [sp, #0] + 8002582: 6bbb ldr r3, [r7, #56] ; 0x38 + 8002584: 2200 movs r2, #0 + 8002586: 497b ldr r1, [pc, #492] ; (8002774 ) + 8002588: 68f8 ldr r0, [r7, #12] + 800258a: f000 fa77 bl 8002a7c + 800258e: 4603 mov r3, r0 + 8002590: 2b00 cmp r3, #0 + 8002592: d001 beq.n 8002598 + { + return HAL_ERROR; + 8002594: 2301 movs r3, #1 + 8002596: e0e9 b.n 800276c + } + + /* Disable Acknowledge */ + CLEAR_BIT(hi2c->Instance->CR1, I2C_CR1_ACK); + 8002598: 68fb ldr r3, [r7, #12] + 800259a: 681b ldr r3, [r3, #0] + 800259c: 681a ldr r2, [r3, #0] + 800259e: 68fb ldr r3, [r7, #12] + 80025a0: 681b ldr r3, [r3, #0] + 80025a2: f422 6280 bic.w r2, r2, #1024 ; 0x400 + 80025a6: 601a str r2, [r3, #0] + __ASM volatile ("cpsid i" : : : "memory"); + 80025a8: b672 cpsid i +} + 80025aa: bf00 nop + /* Disable all active IRQs around ADDR clearing and STOP programming because the EV6_3 + software sequence must complete before the current byte end of transfer */ + __disable_irq(); + + /* Read data from DR */ + *hi2c->pBuffPtr = (uint8_t)hi2c->Instance->DR; + 80025ac: 68fb ldr r3, [r7, #12] + 80025ae: 681b ldr r3, [r3, #0] + 80025b0: 691a ldr r2, [r3, #16] + 80025b2: 68fb ldr r3, [r7, #12] + 80025b4: 6a5b ldr r3, [r3, #36] ; 0x24 + 80025b6: b2d2 uxtb r2, r2 + 80025b8: 701a strb r2, [r3, #0] + + /* Increment Buffer pointer */ + hi2c->pBuffPtr++; + 80025ba: 68fb ldr r3, [r7, #12] + 80025bc: 6a5b ldr r3, [r3, #36] ; 0x24 + 80025be: 1c5a adds r2, r3, #1 + 80025c0: 68fb ldr r3, [r7, #12] + 80025c2: 625a str r2, [r3, #36] ; 0x24 + + /* Update counter */ + hi2c->XferSize--; + 80025c4: 68fb ldr r3, [r7, #12] + 80025c6: 8d1b ldrh r3, [r3, #40] ; 0x28 + 80025c8: 3b01 subs r3, #1 + 80025ca: b29a uxth r2, r3 + 80025cc: 68fb ldr r3, [r7, #12] + 80025ce: 851a strh r2, [r3, #40] ; 0x28 + hi2c->XferCount--; + 80025d0: 68fb ldr r3, [r7, #12] + 80025d2: 8d5b ldrh r3, [r3, #42] ; 0x2a + 80025d4: b29b uxth r3, r3 + 80025d6: 3b01 subs r3, #1 + 80025d8: b29a uxth r2, r3 + 80025da: 68fb ldr r3, [r7, #12] + 80025dc: 855a strh r2, [r3, #42] ; 0x2a + + /* Wait until BTF flag is set */ + count = I2C_TIMEOUT_FLAG * (SystemCoreClock / 25U / 1000U); + 80025de: 4b66 ldr r3, [pc, #408] ; (8002778 ) + 80025e0: 681b ldr r3, [r3, #0] + 80025e2: 08db lsrs r3, r3, #3 + 80025e4: 4a65 ldr r2, [pc, #404] ; (800277c ) + 80025e6: fba2 2303 umull r2, r3, r2, r3 + 80025ea: 0a1a lsrs r2, r3, #8 + 80025ec: 4613 mov r3, r2 + 80025ee: 009b lsls r3, r3, #2 + 80025f0: 4413 add r3, r2 + 80025f2: 00da lsls r2, r3, #3 + 80025f4: 1ad3 subs r3, r2, r3 + 80025f6: 623b str r3, [r7, #32] + do + { + count--; + 80025f8: 6a3b ldr r3, [r7, #32] + 80025fa: 3b01 subs r3, #1 + 80025fc: 623b str r3, [r7, #32] + if (count == 0U) + 80025fe: 6a3b ldr r3, [r7, #32] + 8002600: 2b00 cmp r3, #0 + 8002602: d118 bne.n 8002636 + { + hi2c->PreviousState = I2C_STATE_NONE; + 8002604: 68fb ldr r3, [r7, #12] + 8002606: 2200 movs r2, #0 + 8002608: 631a str r2, [r3, #48] ; 0x30 + hi2c->State = HAL_I2C_STATE_READY; + 800260a: 68fb ldr r3, [r7, #12] + 800260c: 2220 movs r2, #32 + 800260e: f883 203d strb.w r2, [r3, #61] ; 0x3d + hi2c->Mode = HAL_I2C_MODE_NONE; + 8002612: 68fb ldr r3, [r7, #12] + 8002614: 2200 movs r2, #0 + 8002616: f883 203e strb.w r2, [r3, #62] ; 0x3e + hi2c->ErrorCode |= HAL_I2C_ERROR_TIMEOUT; + 800261a: 68fb ldr r3, [r7, #12] + 800261c: 6c1b ldr r3, [r3, #64] ; 0x40 + 800261e: f043 0220 orr.w r2, r3, #32 + 8002622: 68fb ldr r3, [r7, #12] + 8002624: 641a str r2, [r3, #64] ; 0x40 + __ASM volatile ("cpsie i" : : : "memory"); + 8002626: b662 cpsie i +} + 8002628: bf00 nop + + /* Re-enable IRQs */ + __enable_irq(); + + /* Process Unlocked */ + __HAL_UNLOCK(hi2c); + 800262a: 68fb ldr r3, [r7, #12] + 800262c: 2200 movs r2, #0 + 800262e: f883 203c strb.w r2, [r3, #60] ; 0x3c + + return HAL_ERROR; + 8002632: 2301 movs r3, #1 + 8002634: e09a b.n 800276c + } + } + while (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_BTF) == RESET); + 8002636: 68fb ldr r3, [r7, #12] + 8002638: 681b ldr r3, [r3, #0] + 800263a: 695b ldr r3, [r3, #20] + 800263c: f003 0304 and.w r3, r3, #4 + 8002640: 2b04 cmp r3, #4 + 8002642: d1d9 bne.n 80025f8 + + /* Generate Stop */ + SET_BIT(hi2c->Instance->CR1, I2C_CR1_STOP); + 8002644: 68fb ldr r3, [r7, #12] + 8002646: 681b ldr r3, [r3, #0] + 8002648: 681a ldr r2, [r3, #0] + 800264a: 68fb ldr r3, [r7, #12] + 800264c: 681b ldr r3, [r3, #0] + 800264e: f442 7200 orr.w r2, r2, #512 ; 0x200 + 8002652: 601a str r2, [r3, #0] + + /* Read data from DR */ + *hi2c->pBuffPtr = (uint8_t)hi2c->Instance->DR; + 8002654: 68fb ldr r3, [r7, #12] + 8002656: 681b ldr r3, [r3, #0] + 8002658: 691a ldr r2, [r3, #16] + 800265a: 68fb ldr r3, [r7, #12] + 800265c: 6a5b ldr r3, [r3, #36] ; 0x24 + 800265e: b2d2 uxtb r2, r2 + 8002660: 701a strb r2, [r3, #0] + + /* Increment Buffer pointer */ + hi2c->pBuffPtr++; + 8002662: 68fb ldr r3, [r7, #12] + 8002664: 6a5b ldr r3, [r3, #36] ; 0x24 + 8002666: 1c5a adds r2, r3, #1 + 8002668: 68fb ldr r3, [r7, #12] + 800266a: 625a str r2, [r3, #36] ; 0x24 + + /* Update counter */ + hi2c->XferSize--; + 800266c: 68fb ldr r3, [r7, #12] + 800266e: 8d1b ldrh r3, [r3, #40] ; 0x28 + 8002670: 3b01 subs r3, #1 + 8002672: b29a uxth r2, r3 + 8002674: 68fb ldr r3, [r7, #12] + 8002676: 851a strh r2, [r3, #40] ; 0x28 + hi2c->XferCount--; + 8002678: 68fb ldr r3, [r7, #12] + 800267a: 8d5b ldrh r3, [r3, #42] ; 0x2a + 800267c: b29b uxth r3, r3 + 800267e: 3b01 subs r3, #1 + 8002680: b29a uxth r2, r3 + 8002682: 68fb ldr r3, [r7, #12] + 8002684: 855a strh r2, [r3, #42] ; 0x2a + __ASM volatile ("cpsie i" : : : "memory"); + 8002686: b662 cpsie i +} + 8002688: bf00 nop + + /* Re-enable IRQs */ + __enable_irq(); + + /* Read data from DR */ + *hi2c->pBuffPtr = (uint8_t)hi2c->Instance->DR; + 800268a: 68fb ldr r3, [r7, #12] + 800268c: 681b ldr r3, [r3, #0] + 800268e: 691a ldr r2, [r3, #16] + 8002690: 68fb ldr r3, [r7, #12] + 8002692: 6a5b ldr r3, [r3, #36] ; 0x24 + 8002694: b2d2 uxtb r2, r2 + 8002696: 701a strb r2, [r3, #0] + + /* Increment Buffer pointer */ + hi2c->pBuffPtr++; + 8002698: 68fb ldr r3, [r7, #12] + 800269a: 6a5b ldr r3, [r3, #36] ; 0x24 + 800269c: 1c5a adds r2, r3, #1 + 800269e: 68fb ldr r3, [r7, #12] + 80026a0: 625a str r2, [r3, #36] ; 0x24 + + /* Update counter */ + hi2c->XferSize--; + 80026a2: 68fb ldr r3, [r7, #12] + 80026a4: 8d1b ldrh r3, [r3, #40] ; 0x28 + 80026a6: 3b01 subs r3, #1 + 80026a8: b29a uxth r2, r3 + 80026aa: 68fb ldr r3, [r7, #12] + 80026ac: 851a strh r2, [r3, #40] ; 0x28 + hi2c->XferCount--; + 80026ae: 68fb ldr r3, [r7, #12] + 80026b0: 8d5b ldrh r3, [r3, #42] ; 0x2a + 80026b2: b29b uxth r3, r3 + 80026b4: 3b01 subs r3, #1 + 80026b6: b29a uxth r2, r3 + 80026b8: 68fb ldr r3, [r7, #12] + 80026ba: 855a strh r2, [r3, #42] ; 0x2a + 80026bc: e042 b.n 8002744 + } + } + else + { + /* Wait until RXNE flag is set */ + if (I2C_WaitOnRXNEFlagUntilTimeout(hi2c, Timeout, tickstart) != HAL_OK) + 80026be: 6a7a ldr r2, [r7, #36] ; 0x24 + 80026c0: 6bb9 ldr r1, [r7, #56] ; 0x38 + 80026c2: 68f8 ldr r0, [r7, #12] + 80026c4: f000 fb32 bl 8002d2c + 80026c8: 4603 mov r3, r0 + 80026ca: 2b00 cmp r3, #0 + 80026cc: d001 beq.n 80026d2 + { + return HAL_ERROR; + 80026ce: 2301 movs r3, #1 + 80026d0: e04c b.n 800276c + } + + /* Read data from DR */ + *hi2c->pBuffPtr = (uint8_t)hi2c->Instance->DR; + 80026d2: 68fb ldr r3, [r7, #12] + 80026d4: 681b ldr r3, [r3, #0] + 80026d6: 691a ldr r2, [r3, #16] + 80026d8: 68fb ldr r3, [r7, #12] + 80026da: 6a5b ldr r3, [r3, #36] ; 0x24 + 80026dc: b2d2 uxtb r2, r2 + 80026de: 701a strb r2, [r3, #0] + + /* Increment Buffer pointer */ + hi2c->pBuffPtr++; + 80026e0: 68fb ldr r3, [r7, #12] + 80026e2: 6a5b ldr r3, [r3, #36] ; 0x24 + 80026e4: 1c5a adds r2, r3, #1 + 80026e6: 68fb ldr r3, [r7, #12] + 80026e8: 625a str r2, [r3, #36] ; 0x24 + + /* Update counter */ + hi2c->XferSize--; + 80026ea: 68fb ldr r3, [r7, #12] + 80026ec: 8d1b ldrh r3, [r3, #40] ; 0x28 + 80026ee: 3b01 subs r3, #1 + 80026f0: b29a uxth r2, r3 + 80026f2: 68fb ldr r3, [r7, #12] + 80026f4: 851a strh r2, [r3, #40] ; 0x28 + hi2c->XferCount--; + 80026f6: 68fb ldr r3, [r7, #12] + 80026f8: 8d5b ldrh r3, [r3, #42] ; 0x2a + 80026fa: b29b uxth r3, r3 + 80026fc: 3b01 subs r3, #1 + 80026fe: b29a uxth r2, r3 + 8002700: 68fb ldr r3, [r7, #12] + 8002702: 855a strh r2, [r3, #42] ; 0x2a + + if (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_BTF) == SET) + 8002704: 68fb ldr r3, [r7, #12] + 8002706: 681b ldr r3, [r3, #0] + 8002708: 695b ldr r3, [r3, #20] + 800270a: f003 0304 and.w r3, r3, #4 + 800270e: 2b04 cmp r3, #4 + 8002710: d118 bne.n 8002744 + { + /* Read data from DR */ + *hi2c->pBuffPtr = (uint8_t)hi2c->Instance->DR; + 8002712: 68fb ldr r3, [r7, #12] + 8002714: 681b ldr r3, [r3, #0] + 8002716: 691a ldr r2, [r3, #16] + 8002718: 68fb ldr r3, [r7, #12] + 800271a: 6a5b ldr r3, [r3, #36] ; 0x24 + 800271c: b2d2 uxtb r2, r2 + 800271e: 701a strb r2, [r3, #0] + + /* Increment Buffer pointer */ + hi2c->pBuffPtr++; + 8002720: 68fb ldr r3, [r7, #12] + 8002722: 6a5b ldr r3, [r3, #36] ; 0x24 + 8002724: 1c5a adds r2, r3, #1 + 8002726: 68fb ldr r3, [r7, #12] + 8002728: 625a str r2, [r3, #36] ; 0x24 + + /* Update counter */ + hi2c->XferSize--; + 800272a: 68fb ldr r3, [r7, #12] + 800272c: 8d1b ldrh r3, [r3, #40] ; 0x28 + 800272e: 3b01 subs r3, #1 + 8002730: b29a uxth r2, r3 + 8002732: 68fb ldr r3, [r7, #12] + 8002734: 851a strh r2, [r3, #40] ; 0x28 + hi2c->XferCount--; + 8002736: 68fb ldr r3, [r7, #12] + 8002738: 8d5b ldrh r3, [r3, #42] ; 0x2a + 800273a: b29b uxth r3, r3 + 800273c: 3b01 subs r3, #1 + 800273e: b29a uxth r2, r3 + 8002740: 68fb ldr r3, [r7, #12] + 8002742: 855a strh r2, [r3, #42] ; 0x2a + while (hi2c->XferSize > 0U) + 8002744: 68fb ldr r3, [r7, #12] + 8002746: 8d1b ldrh r3, [r3, #40] ; 0x28 + 8002748: 2b00 cmp r3, #0 + 800274a: f47f ae94 bne.w 8002476 + } + } + } + + hi2c->State = HAL_I2C_STATE_READY; + 800274e: 68fb ldr r3, [r7, #12] + 8002750: 2220 movs r2, #32 + 8002752: f883 203d strb.w r2, [r3, #61] ; 0x3d + hi2c->Mode = HAL_I2C_MODE_NONE; + 8002756: 68fb ldr r3, [r7, #12] + 8002758: 2200 movs r2, #0 + 800275a: f883 203e strb.w r2, [r3, #62] ; 0x3e + + /* Process Unlocked */ + __HAL_UNLOCK(hi2c); + 800275e: 68fb ldr r3, [r7, #12] + 8002760: 2200 movs r2, #0 + 8002762: f883 203c strb.w r2, [r3, #60] ; 0x3c + + return HAL_OK; + 8002766: 2300 movs r3, #0 + 8002768: e000 b.n 800276c + } + else + { + return HAL_BUSY; + 800276a: 2302 movs r3, #2 + } +} + 800276c: 4618 mov r0, r3 + 800276e: 3728 adds r7, #40 ; 0x28 + 8002770: 46bd mov sp, r7 + 8002772: bd80 pop {r7, pc} + 8002774: 00010004 .word 0x00010004 + 8002778: 20000000 .word 0x20000000 + 800277c: 14f8b589 .word 0x14f8b589 + +08002780 : + * @param Timeout Timeout duration + * @param Tickstart Tick start value + * @retval HAL status + */ +static HAL_StatusTypeDef I2C_RequestMemoryWrite(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint16_t MemAddress, uint16_t MemAddSize, uint32_t Timeout, uint32_t Tickstart) +{ + 8002780: b580 push {r7, lr} + 8002782: b088 sub sp, #32 + 8002784: af02 add r7, sp, #8 + 8002786: 60f8 str r0, [r7, #12] + 8002788: 4608 mov r0, r1 + 800278a: 4611 mov r1, r2 + 800278c: 461a mov r2, r3 + 800278e: 4603 mov r3, r0 + 8002790: 817b strh r3, [r7, #10] + 8002792: 460b mov r3, r1 + 8002794: 813b strh r3, [r7, #8] + 8002796: 4613 mov r3, r2 + 8002798: 80fb strh r3, [r7, #6] + /* Generate Start */ + SET_BIT(hi2c->Instance->CR1, I2C_CR1_START); + 800279a: 68fb ldr r3, [r7, #12] + 800279c: 681b ldr r3, [r3, #0] + 800279e: 681a ldr r2, [r3, #0] + 80027a0: 68fb ldr r3, [r7, #12] + 80027a2: 681b ldr r3, [r3, #0] + 80027a4: f442 7280 orr.w r2, r2, #256 ; 0x100 + 80027a8: 601a str r2, [r3, #0] + + /* Wait until SB flag is set */ + if (I2C_WaitOnFlagUntilTimeout(hi2c, I2C_FLAG_SB, RESET, Timeout, Tickstart) != HAL_OK) + 80027aa: 6a7b ldr r3, [r7, #36] ; 0x24 + 80027ac: 9300 str r3, [sp, #0] + 80027ae: 6a3b ldr r3, [r7, #32] + 80027b0: 2200 movs r2, #0 + 80027b2: f04f 1101 mov.w r1, #65537 ; 0x10001 + 80027b6: 68f8 ldr r0, [r7, #12] + 80027b8: f000 f960 bl 8002a7c + 80027bc: 4603 mov r3, r0 + 80027be: 2b00 cmp r3, #0 + 80027c0: d00d beq.n 80027de + { + if (READ_BIT(hi2c->Instance->CR1, I2C_CR1_START) == I2C_CR1_START) + 80027c2: 68fb ldr r3, [r7, #12] + 80027c4: 681b ldr r3, [r3, #0] + 80027c6: 681b ldr r3, [r3, #0] + 80027c8: f403 7380 and.w r3, r3, #256 ; 0x100 + 80027cc: f5b3 7f80 cmp.w r3, #256 ; 0x100 + 80027d0: d103 bne.n 80027da + { + hi2c->ErrorCode = HAL_I2C_WRONG_START; + 80027d2: 68fb ldr r3, [r7, #12] + 80027d4: f44f 7200 mov.w r2, #512 ; 0x200 + 80027d8: 641a str r2, [r3, #64] ; 0x40 + } + return HAL_TIMEOUT; + 80027da: 2303 movs r3, #3 + 80027dc: e05f b.n 800289e + } + + /* Send slave address */ + hi2c->Instance->DR = I2C_7BIT_ADD_WRITE(DevAddress); + 80027de: 897b ldrh r3, [r7, #10] + 80027e0: b2db uxtb r3, r3 + 80027e2: 461a mov r2, r3 + 80027e4: 68fb ldr r3, [r7, #12] + 80027e6: 681b ldr r3, [r3, #0] + 80027e8: f002 02fe and.w r2, r2, #254 ; 0xfe + 80027ec: 611a str r2, [r3, #16] + + /* Wait until ADDR flag is set */ + if (I2C_WaitOnMasterAddressFlagUntilTimeout(hi2c, I2C_FLAG_ADDR, Timeout, Tickstart) != HAL_OK) + 80027ee: 6a7b ldr r3, [r7, #36] ; 0x24 + 80027f0: 6a3a ldr r2, [r7, #32] + 80027f2: 492d ldr r1, [pc, #180] ; (80028a8 ) + 80027f4: 68f8 ldr r0, [r7, #12] + 80027f6: f000 f998 bl 8002b2a + 80027fa: 4603 mov r3, r0 + 80027fc: 2b00 cmp r3, #0 + 80027fe: d001 beq.n 8002804 + { + return HAL_ERROR; + 8002800: 2301 movs r3, #1 + 8002802: e04c b.n 800289e + } + + /* Clear ADDR flag */ + __HAL_I2C_CLEAR_ADDRFLAG(hi2c); + 8002804: 2300 movs r3, #0 + 8002806: 617b str r3, [r7, #20] + 8002808: 68fb ldr r3, [r7, #12] + 800280a: 681b ldr r3, [r3, #0] + 800280c: 695b ldr r3, [r3, #20] + 800280e: 617b str r3, [r7, #20] + 8002810: 68fb ldr r3, [r7, #12] + 8002812: 681b ldr r3, [r3, #0] + 8002814: 699b ldr r3, [r3, #24] + 8002816: 617b str r3, [r7, #20] + 8002818: 697b ldr r3, [r7, #20] + + /* Wait until TXE flag is set */ + if (I2C_WaitOnTXEFlagUntilTimeout(hi2c, Timeout, Tickstart) != HAL_OK) + 800281a: 6a7a ldr r2, [r7, #36] ; 0x24 + 800281c: 6a39 ldr r1, [r7, #32] + 800281e: 68f8 ldr r0, [r7, #12] + 8002820: f000 fa02 bl 8002c28 + 8002824: 4603 mov r3, r0 + 8002826: 2b00 cmp r3, #0 + 8002828: d00d beq.n 8002846 + { + if (hi2c->ErrorCode == HAL_I2C_ERROR_AF) + 800282a: 68fb ldr r3, [r7, #12] + 800282c: 6c1b ldr r3, [r3, #64] ; 0x40 + 800282e: 2b04 cmp r3, #4 + 8002830: d107 bne.n 8002842 + { + /* Generate Stop */ + SET_BIT(hi2c->Instance->CR1, I2C_CR1_STOP); + 8002832: 68fb ldr r3, [r7, #12] + 8002834: 681b ldr r3, [r3, #0] + 8002836: 681a ldr r2, [r3, #0] + 8002838: 68fb ldr r3, [r7, #12] + 800283a: 681b ldr r3, [r3, #0] + 800283c: f442 7200 orr.w r2, r2, #512 ; 0x200 + 8002840: 601a str r2, [r3, #0] + } + return HAL_ERROR; + 8002842: 2301 movs r3, #1 + 8002844: e02b b.n 800289e + } + + /* If Memory address size is 8Bit */ + if (MemAddSize == I2C_MEMADD_SIZE_8BIT) + 8002846: 88fb ldrh r3, [r7, #6] + 8002848: 2b01 cmp r3, #1 + 800284a: d105 bne.n 8002858 + { + /* Send Memory Address */ + hi2c->Instance->DR = I2C_MEM_ADD_LSB(MemAddress); + 800284c: 893b ldrh r3, [r7, #8] + 800284e: b2da uxtb r2, r3 + 8002850: 68fb ldr r3, [r7, #12] + 8002852: 681b ldr r3, [r3, #0] + 8002854: 611a str r2, [r3, #16] + 8002856: e021 b.n 800289c + } + /* If Memory address size is 16Bit */ + else + { + /* Send MSB of Memory Address */ + hi2c->Instance->DR = I2C_MEM_ADD_MSB(MemAddress); + 8002858: 893b ldrh r3, [r7, #8] + 800285a: 0a1b lsrs r3, r3, #8 + 800285c: b29b uxth r3, r3 + 800285e: b2da uxtb r2, r3 + 8002860: 68fb ldr r3, [r7, #12] + 8002862: 681b ldr r3, [r3, #0] + 8002864: 611a str r2, [r3, #16] + + /* Wait until TXE flag is set */ + if (I2C_WaitOnTXEFlagUntilTimeout(hi2c, Timeout, Tickstart) != HAL_OK) + 8002866: 6a7a ldr r2, [r7, #36] ; 0x24 + 8002868: 6a39 ldr r1, [r7, #32] + 800286a: 68f8 ldr r0, [r7, #12] + 800286c: f000 f9dc bl 8002c28 + 8002870: 4603 mov r3, r0 + 8002872: 2b00 cmp r3, #0 + 8002874: d00d beq.n 8002892 + { + if (hi2c->ErrorCode == HAL_I2C_ERROR_AF) + 8002876: 68fb ldr r3, [r7, #12] + 8002878: 6c1b ldr r3, [r3, #64] ; 0x40 + 800287a: 2b04 cmp r3, #4 + 800287c: d107 bne.n 800288e + { + /* Generate Stop */ + SET_BIT(hi2c->Instance->CR1, I2C_CR1_STOP); + 800287e: 68fb ldr r3, [r7, #12] + 8002880: 681b ldr r3, [r3, #0] + 8002882: 681a ldr r2, [r3, #0] + 8002884: 68fb ldr r3, [r7, #12] + 8002886: 681b ldr r3, [r3, #0] + 8002888: f442 7200 orr.w r2, r2, #512 ; 0x200 + 800288c: 601a str r2, [r3, #0] + } + return HAL_ERROR; + 800288e: 2301 movs r3, #1 + 8002890: e005 b.n 800289e + } + + /* Send LSB of Memory Address */ + hi2c->Instance->DR = I2C_MEM_ADD_LSB(MemAddress); + 8002892: 893b ldrh r3, [r7, #8] + 8002894: b2da uxtb r2, r3 + 8002896: 68fb ldr r3, [r7, #12] + 8002898: 681b ldr r3, [r3, #0] + 800289a: 611a str r2, [r3, #16] + } + + return HAL_OK; + 800289c: 2300 movs r3, #0 +} + 800289e: 4618 mov r0, r3 + 80028a0: 3718 adds r7, #24 + 80028a2: 46bd mov sp, r7 + 80028a4: bd80 pop {r7, pc} + 80028a6: bf00 nop + 80028a8: 00010002 .word 0x00010002 + +080028ac : + * @param Timeout Timeout duration + * @param Tickstart Tick start value + * @retval HAL status + */ +static HAL_StatusTypeDef I2C_RequestMemoryRead(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint16_t MemAddress, uint16_t MemAddSize, uint32_t Timeout, uint32_t Tickstart) +{ + 80028ac: b580 push {r7, lr} + 80028ae: b088 sub sp, #32 + 80028b0: af02 add r7, sp, #8 + 80028b2: 60f8 str r0, [r7, #12] + 80028b4: 4608 mov r0, r1 + 80028b6: 4611 mov r1, r2 + 80028b8: 461a mov r2, r3 + 80028ba: 4603 mov r3, r0 + 80028bc: 817b strh r3, [r7, #10] + 80028be: 460b mov r3, r1 + 80028c0: 813b strh r3, [r7, #8] + 80028c2: 4613 mov r3, r2 + 80028c4: 80fb strh r3, [r7, #6] + /* Enable Acknowledge */ + SET_BIT(hi2c->Instance->CR1, I2C_CR1_ACK); + 80028c6: 68fb ldr r3, [r7, #12] + 80028c8: 681b ldr r3, [r3, #0] + 80028ca: 681a ldr r2, [r3, #0] + 80028cc: 68fb ldr r3, [r7, #12] + 80028ce: 681b ldr r3, [r3, #0] + 80028d0: f442 6280 orr.w r2, r2, #1024 ; 0x400 + 80028d4: 601a str r2, [r3, #0] + + /* Generate Start */ + SET_BIT(hi2c->Instance->CR1, I2C_CR1_START); + 80028d6: 68fb ldr r3, [r7, #12] + 80028d8: 681b ldr r3, [r3, #0] + 80028da: 681a ldr r2, [r3, #0] + 80028dc: 68fb ldr r3, [r7, #12] + 80028de: 681b ldr r3, [r3, #0] + 80028e0: f442 7280 orr.w r2, r2, #256 ; 0x100 + 80028e4: 601a str r2, [r3, #0] + + /* Wait until SB flag is set */ + if (I2C_WaitOnFlagUntilTimeout(hi2c, I2C_FLAG_SB, RESET, Timeout, Tickstart) != HAL_OK) + 80028e6: 6a7b ldr r3, [r7, #36] ; 0x24 + 80028e8: 9300 str r3, [sp, #0] + 80028ea: 6a3b ldr r3, [r7, #32] + 80028ec: 2200 movs r2, #0 + 80028ee: f04f 1101 mov.w r1, #65537 ; 0x10001 + 80028f2: 68f8 ldr r0, [r7, #12] + 80028f4: f000 f8c2 bl 8002a7c + 80028f8: 4603 mov r3, r0 + 80028fa: 2b00 cmp r3, #0 + 80028fc: d00d beq.n 800291a + { + if (READ_BIT(hi2c->Instance->CR1, I2C_CR1_START) == I2C_CR1_START) + 80028fe: 68fb ldr r3, [r7, #12] + 8002900: 681b ldr r3, [r3, #0] + 8002902: 681b ldr r3, [r3, #0] + 8002904: f403 7380 and.w r3, r3, #256 ; 0x100 + 8002908: f5b3 7f80 cmp.w r3, #256 ; 0x100 + 800290c: d103 bne.n 8002916 + { + hi2c->ErrorCode = HAL_I2C_WRONG_START; + 800290e: 68fb ldr r3, [r7, #12] + 8002910: f44f 7200 mov.w r2, #512 ; 0x200 + 8002914: 641a str r2, [r3, #64] ; 0x40 + } + return HAL_TIMEOUT; + 8002916: 2303 movs r3, #3 + 8002918: e0aa b.n 8002a70 + } + + /* Send slave address */ + hi2c->Instance->DR = I2C_7BIT_ADD_WRITE(DevAddress); + 800291a: 897b ldrh r3, [r7, #10] + 800291c: b2db uxtb r3, r3 + 800291e: 461a mov r2, r3 + 8002920: 68fb ldr r3, [r7, #12] + 8002922: 681b ldr r3, [r3, #0] + 8002924: f002 02fe and.w r2, r2, #254 ; 0xfe + 8002928: 611a str r2, [r3, #16] + + /* Wait until ADDR flag is set */ + if (I2C_WaitOnMasterAddressFlagUntilTimeout(hi2c, I2C_FLAG_ADDR, Timeout, Tickstart) != HAL_OK) + 800292a: 6a7b ldr r3, [r7, #36] ; 0x24 + 800292c: 6a3a ldr r2, [r7, #32] + 800292e: 4952 ldr r1, [pc, #328] ; (8002a78 ) + 8002930: 68f8 ldr r0, [r7, #12] + 8002932: f000 f8fa bl 8002b2a + 8002936: 4603 mov r3, r0 + 8002938: 2b00 cmp r3, #0 + 800293a: d001 beq.n 8002940 + { + return HAL_ERROR; + 800293c: 2301 movs r3, #1 + 800293e: e097 b.n 8002a70 + } + + /* Clear ADDR flag */ + __HAL_I2C_CLEAR_ADDRFLAG(hi2c); + 8002940: 2300 movs r3, #0 + 8002942: 617b str r3, [r7, #20] + 8002944: 68fb ldr r3, [r7, #12] + 8002946: 681b ldr r3, [r3, #0] + 8002948: 695b ldr r3, [r3, #20] + 800294a: 617b str r3, [r7, #20] + 800294c: 68fb ldr r3, [r7, #12] + 800294e: 681b ldr r3, [r3, #0] + 8002950: 699b ldr r3, [r3, #24] + 8002952: 617b str r3, [r7, #20] + 8002954: 697b ldr r3, [r7, #20] + + /* Wait until TXE flag is set */ + if (I2C_WaitOnTXEFlagUntilTimeout(hi2c, Timeout, Tickstart) != HAL_OK) + 8002956: 6a7a ldr r2, [r7, #36] ; 0x24 + 8002958: 6a39 ldr r1, [r7, #32] + 800295a: 68f8 ldr r0, [r7, #12] + 800295c: f000 f964 bl 8002c28 + 8002960: 4603 mov r3, r0 + 8002962: 2b00 cmp r3, #0 + 8002964: d00d beq.n 8002982 + { + if (hi2c->ErrorCode == HAL_I2C_ERROR_AF) + 8002966: 68fb ldr r3, [r7, #12] + 8002968: 6c1b ldr r3, [r3, #64] ; 0x40 + 800296a: 2b04 cmp r3, #4 + 800296c: d107 bne.n 800297e + { + /* Generate Stop */ + SET_BIT(hi2c->Instance->CR1, I2C_CR1_STOP); + 800296e: 68fb ldr r3, [r7, #12] + 8002970: 681b ldr r3, [r3, #0] + 8002972: 681a ldr r2, [r3, #0] + 8002974: 68fb ldr r3, [r7, #12] + 8002976: 681b ldr r3, [r3, #0] + 8002978: f442 7200 orr.w r2, r2, #512 ; 0x200 + 800297c: 601a str r2, [r3, #0] + } + return HAL_ERROR; + 800297e: 2301 movs r3, #1 + 8002980: e076 b.n 8002a70 + } + + /* If Memory address size is 8Bit */ + if (MemAddSize == I2C_MEMADD_SIZE_8BIT) + 8002982: 88fb ldrh r3, [r7, #6] + 8002984: 2b01 cmp r3, #1 + 8002986: d105 bne.n 8002994 + { + /* Send Memory Address */ + hi2c->Instance->DR = I2C_MEM_ADD_LSB(MemAddress); + 8002988: 893b ldrh r3, [r7, #8] + 800298a: b2da uxtb r2, r3 + 800298c: 68fb ldr r3, [r7, #12] + 800298e: 681b ldr r3, [r3, #0] + 8002990: 611a str r2, [r3, #16] + 8002992: e021 b.n 80029d8 + } + /* If Memory address size is 16Bit */ + else + { + /* Send MSB of Memory Address */ + hi2c->Instance->DR = I2C_MEM_ADD_MSB(MemAddress); + 8002994: 893b ldrh r3, [r7, #8] + 8002996: 0a1b lsrs r3, r3, #8 + 8002998: b29b uxth r3, r3 + 800299a: b2da uxtb r2, r3 + 800299c: 68fb ldr r3, [r7, #12] + 800299e: 681b ldr r3, [r3, #0] + 80029a0: 611a str r2, [r3, #16] + + /* Wait until TXE flag is set */ + if (I2C_WaitOnTXEFlagUntilTimeout(hi2c, Timeout, Tickstart) != HAL_OK) + 80029a2: 6a7a ldr r2, [r7, #36] ; 0x24 + 80029a4: 6a39 ldr r1, [r7, #32] + 80029a6: 68f8 ldr r0, [r7, #12] + 80029a8: f000 f93e bl 8002c28 + 80029ac: 4603 mov r3, r0 + 80029ae: 2b00 cmp r3, #0 + 80029b0: d00d beq.n 80029ce + { + if (hi2c->ErrorCode == HAL_I2C_ERROR_AF) + 80029b2: 68fb ldr r3, [r7, #12] + 80029b4: 6c1b ldr r3, [r3, #64] ; 0x40 + 80029b6: 2b04 cmp r3, #4 + 80029b8: d107 bne.n 80029ca + { + /* Generate Stop */ + SET_BIT(hi2c->Instance->CR1, I2C_CR1_STOP); + 80029ba: 68fb ldr r3, [r7, #12] + 80029bc: 681b ldr r3, [r3, #0] + 80029be: 681a ldr r2, [r3, #0] + 80029c0: 68fb ldr r3, [r7, #12] + 80029c2: 681b ldr r3, [r3, #0] + 80029c4: f442 7200 orr.w r2, r2, #512 ; 0x200 + 80029c8: 601a str r2, [r3, #0] + } + return HAL_ERROR; + 80029ca: 2301 movs r3, #1 + 80029cc: e050 b.n 8002a70 + } + + /* Send LSB of Memory Address */ + hi2c->Instance->DR = I2C_MEM_ADD_LSB(MemAddress); + 80029ce: 893b ldrh r3, [r7, #8] + 80029d0: b2da uxtb r2, r3 + 80029d2: 68fb ldr r3, [r7, #12] + 80029d4: 681b ldr r3, [r3, #0] + 80029d6: 611a str r2, [r3, #16] + } + + /* Wait until TXE flag is set */ + if (I2C_WaitOnTXEFlagUntilTimeout(hi2c, Timeout, Tickstart) != HAL_OK) + 80029d8: 6a7a ldr r2, [r7, #36] ; 0x24 + 80029da: 6a39 ldr r1, [r7, #32] + 80029dc: 68f8 ldr r0, [r7, #12] + 80029de: f000 f923 bl 8002c28 + 80029e2: 4603 mov r3, r0 + 80029e4: 2b00 cmp r3, #0 + 80029e6: d00d beq.n 8002a04 + { + if (hi2c->ErrorCode == HAL_I2C_ERROR_AF) + 80029e8: 68fb ldr r3, [r7, #12] + 80029ea: 6c1b ldr r3, [r3, #64] ; 0x40 + 80029ec: 2b04 cmp r3, #4 + 80029ee: d107 bne.n 8002a00 + { + /* Generate Stop */ + SET_BIT(hi2c->Instance->CR1, I2C_CR1_STOP); + 80029f0: 68fb ldr r3, [r7, #12] + 80029f2: 681b ldr r3, [r3, #0] + 80029f4: 681a ldr r2, [r3, #0] + 80029f6: 68fb ldr r3, [r7, #12] + 80029f8: 681b ldr r3, [r3, #0] + 80029fa: f442 7200 orr.w r2, r2, #512 ; 0x200 + 80029fe: 601a str r2, [r3, #0] + } + return HAL_ERROR; + 8002a00: 2301 movs r3, #1 + 8002a02: e035 b.n 8002a70 + } + + /* Generate Restart */ + SET_BIT(hi2c->Instance->CR1, I2C_CR1_START); + 8002a04: 68fb ldr r3, [r7, #12] + 8002a06: 681b ldr r3, [r3, #0] + 8002a08: 681a ldr r2, [r3, #0] + 8002a0a: 68fb ldr r3, [r7, #12] + 8002a0c: 681b ldr r3, [r3, #0] + 8002a0e: f442 7280 orr.w r2, r2, #256 ; 0x100 + 8002a12: 601a str r2, [r3, #0] + + /* Wait until SB flag is set */ + if (I2C_WaitOnFlagUntilTimeout(hi2c, I2C_FLAG_SB, RESET, Timeout, Tickstart) != HAL_OK) + 8002a14: 6a7b ldr r3, [r7, #36] ; 0x24 + 8002a16: 9300 str r3, [sp, #0] + 8002a18: 6a3b ldr r3, [r7, #32] + 8002a1a: 2200 movs r2, #0 + 8002a1c: f04f 1101 mov.w r1, #65537 ; 0x10001 + 8002a20: 68f8 ldr r0, [r7, #12] + 8002a22: f000 f82b bl 8002a7c + 8002a26: 4603 mov r3, r0 + 8002a28: 2b00 cmp r3, #0 + 8002a2a: d00d beq.n 8002a48 + { + if (READ_BIT(hi2c->Instance->CR1, I2C_CR1_START) == I2C_CR1_START) + 8002a2c: 68fb ldr r3, [r7, #12] + 8002a2e: 681b ldr r3, [r3, #0] + 8002a30: 681b ldr r3, [r3, #0] + 8002a32: f403 7380 and.w r3, r3, #256 ; 0x100 + 8002a36: f5b3 7f80 cmp.w r3, #256 ; 0x100 + 8002a3a: d103 bne.n 8002a44 + { + hi2c->ErrorCode = HAL_I2C_WRONG_START; + 8002a3c: 68fb ldr r3, [r7, #12] + 8002a3e: f44f 7200 mov.w r2, #512 ; 0x200 + 8002a42: 641a str r2, [r3, #64] ; 0x40 + } + return HAL_TIMEOUT; + 8002a44: 2303 movs r3, #3 + 8002a46: e013 b.n 8002a70 + } + + /* Send slave address */ + hi2c->Instance->DR = I2C_7BIT_ADD_READ(DevAddress); + 8002a48: 897b ldrh r3, [r7, #10] + 8002a4a: b2db uxtb r3, r3 + 8002a4c: f043 0301 orr.w r3, r3, #1 + 8002a50: b2da uxtb r2, r3 + 8002a52: 68fb ldr r3, [r7, #12] + 8002a54: 681b ldr r3, [r3, #0] + 8002a56: 611a str r2, [r3, #16] + + /* Wait until ADDR flag is set */ + if (I2C_WaitOnMasterAddressFlagUntilTimeout(hi2c, I2C_FLAG_ADDR, Timeout, Tickstart) != HAL_OK) + 8002a58: 6a7b ldr r3, [r7, #36] ; 0x24 + 8002a5a: 6a3a ldr r2, [r7, #32] + 8002a5c: 4906 ldr r1, [pc, #24] ; (8002a78 ) + 8002a5e: 68f8 ldr r0, [r7, #12] + 8002a60: f000 f863 bl 8002b2a + 8002a64: 4603 mov r3, r0 + 8002a66: 2b00 cmp r3, #0 + 8002a68: d001 beq.n 8002a6e + { + return HAL_ERROR; + 8002a6a: 2301 movs r3, #1 + 8002a6c: e000 b.n 8002a70 + } + + return HAL_OK; + 8002a6e: 2300 movs r3, #0 +} + 8002a70: 4618 mov r0, r3 + 8002a72: 3718 adds r7, #24 + 8002a74: 46bd mov sp, r7 + 8002a76: bd80 pop {r7, pc} + 8002a78: 00010002 .word 0x00010002 + +08002a7c : + * @param Timeout Timeout duration + * @param Tickstart Tick start value + * @retval HAL status + */ +static HAL_StatusTypeDef I2C_WaitOnFlagUntilTimeout(I2C_HandleTypeDef *hi2c, uint32_t Flag, FlagStatus Status, uint32_t Timeout, uint32_t Tickstart) +{ + 8002a7c: b580 push {r7, lr} + 8002a7e: b084 sub sp, #16 + 8002a80: af00 add r7, sp, #0 + 8002a82: 60f8 str r0, [r7, #12] + 8002a84: 60b9 str r1, [r7, #8] + 8002a86: 603b str r3, [r7, #0] + 8002a88: 4613 mov r3, r2 + 8002a8a: 71fb strb r3, [r7, #7] + /* Wait until flag is set */ + while (__HAL_I2C_GET_FLAG(hi2c, Flag) == Status) + 8002a8c: e025 b.n 8002ada + { + /* Check for the Timeout */ + if (Timeout != HAL_MAX_DELAY) + 8002a8e: 683b ldr r3, [r7, #0] + 8002a90: f1b3 3fff cmp.w r3, #4294967295 ; 0xffffffff + 8002a94: d021 beq.n 8002ada + { + if (((HAL_GetTick() - Tickstart) > Timeout) || (Timeout == 0U)) + 8002a96: f7fe fef7 bl 8001888 + 8002a9a: 4602 mov r2, r0 + 8002a9c: 69bb ldr r3, [r7, #24] + 8002a9e: 1ad3 subs r3, r2, r3 + 8002aa0: 683a ldr r2, [r7, #0] + 8002aa2: 429a cmp r2, r3 + 8002aa4: d302 bcc.n 8002aac + 8002aa6: 683b ldr r3, [r7, #0] + 8002aa8: 2b00 cmp r3, #0 + 8002aaa: d116 bne.n 8002ada + { + hi2c->PreviousState = I2C_STATE_NONE; + 8002aac: 68fb ldr r3, [r7, #12] + 8002aae: 2200 movs r2, #0 + 8002ab0: 631a str r2, [r3, #48] ; 0x30 + hi2c->State = HAL_I2C_STATE_READY; + 8002ab2: 68fb ldr r3, [r7, #12] + 8002ab4: 2220 movs r2, #32 + 8002ab6: f883 203d strb.w r2, [r3, #61] ; 0x3d + hi2c->Mode = HAL_I2C_MODE_NONE; + 8002aba: 68fb ldr r3, [r7, #12] + 8002abc: 2200 movs r2, #0 + 8002abe: f883 203e strb.w r2, [r3, #62] ; 0x3e + hi2c->ErrorCode |= HAL_I2C_ERROR_TIMEOUT; + 8002ac2: 68fb ldr r3, [r7, #12] + 8002ac4: 6c1b ldr r3, [r3, #64] ; 0x40 + 8002ac6: f043 0220 orr.w r2, r3, #32 + 8002aca: 68fb ldr r3, [r7, #12] + 8002acc: 641a str r2, [r3, #64] ; 0x40 + + /* Process Unlocked */ + __HAL_UNLOCK(hi2c); + 8002ace: 68fb ldr r3, [r7, #12] + 8002ad0: 2200 movs r2, #0 + 8002ad2: f883 203c strb.w r2, [r3, #60] ; 0x3c + + return HAL_ERROR; + 8002ad6: 2301 movs r3, #1 + 8002ad8: e023 b.n 8002b22 + while (__HAL_I2C_GET_FLAG(hi2c, Flag) == Status) + 8002ada: 68bb ldr r3, [r7, #8] + 8002adc: 0c1b lsrs r3, r3, #16 + 8002ade: b2db uxtb r3, r3 + 8002ae0: 2b01 cmp r3, #1 + 8002ae2: d10d bne.n 8002b00 + 8002ae4: 68fb ldr r3, [r7, #12] + 8002ae6: 681b ldr r3, [r3, #0] + 8002ae8: 695b ldr r3, [r3, #20] + 8002aea: 43da mvns r2, r3 + 8002aec: 68bb ldr r3, [r7, #8] + 8002aee: 4013 ands r3, r2 + 8002af0: b29b uxth r3, r3 + 8002af2: 2b00 cmp r3, #0 + 8002af4: bf0c ite eq + 8002af6: 2301 moveq r3, #1 + 8002af8: 2300 movne r3, #0 + 8002afa: b2db uxtb r3, r3 + 8002afc: 461a mov r2, r3 + 8002afe: e00c b.n 8002b1a + 8002b00: 68fb ldr r3, [r7, #12] + 8002b02: 681b ldr r3, [r3, #0] + 8002b04: 699b ldr r3, [r3, #24] + 8002b06: 43da mvns r2, r3 + 8002b08: 68bb ldr r3, [r7, #8] + 8002b0a: 4013 ands r3, r2 + 8002b0c: b29b uxth r3, r3 + 8002b0e: 2b00 cmp r3, #0 + 8002b10: bf0c ite eq + 8002b12: 2301 moveq r3, #1 + 8002b14: 2300 movne r3, #0 + 8002b16: b2db uxtb r3, r3 + 8002b18: 461a mov r2, r3 + 8002b1a: 79fb ldrb r3, [r7, #7] + 8002b1c: 429a cmp r2, r3 + 8002b1e: d0b6 beq.n 8002a8e + } + } + } + return HAL_OK; + 8002b20: 2300 movs r3, #0 +} + 8002b22: 4618 mov r0, r3 + 8002b24: 3710 adds r7, #16 + 8002b26: 46bd mov sp, r7 + 8002b28: bd80 pop {r7, pc} + +08002b2a : + * @param Timeout Timeout duration + * @param Tickstart Tick start value + * @retval HAL status + */ +static HAL_StatusTypeDef I2C_WaitOnMasterAddressFlagUntilTimeout(I2C_HandleTypeDef *hi2c, uint32_t Flag, uint32_t Timeout, uint32_t Tickstart) +{ + 8002b2a: b580 push {r7, lr} + 8002b2c: b084 sub sp, #16 + 8002b2e: af00 add r7, sp, #0 + 8002b30: 60f8 str r0, [r7, #12] + 8002b32: 60b9 str r1, [r7, #8] + 8002b34: 607a str r2, [r7, #4] + 8002b36: 603b str r3, [r7, #0] + while (__HAL_I2C_GET_FLAG(hi2c, Flag) == RESET) + 8002b38: e051 b.n 8002bde + { + if (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_AF) == SET) + 8002b3a: 68fb ldr r3, [r7, #12] + 8002b3c: 681b ldr r3, [r3, #0] + 8002b3e: 695b ldr r3, [r3, #20] + 8002b40: f403 6380 and.w r3, r3, #1024 ; 0x400 + 8002b44: f5b3 6f80 cmp.w r3, #1024 ; 0x400 + 8002b48: d123 bne.n 8002b92 + { + /* Generate Stop */ + SET_BIT(hi2c->Instance->CR1, I2C_CR1_STOP); + 8002b4a: 68fb ldr r3, [r7, #12] + 8002b4c: 681b ldr r3, [r3, #0] + 8002b4e: 681a ldr r2, [r3, #0] + 8002b50: 68fb ldr r3, [r7, #12] + 8002b52: 681b ldr r3, [r3, #0] + 8002b54: f442 7200 orr.w r2, r2, #512 ; 0x200 + 8002b58: 601a str r2, [r3, #0] + + /* Clear AF Flag */ + __HAL_I2C_CLEAR_FLAG(hi2c, I2C_FLAG_AF); + 8002b5a: 68fb ldr r3, [r7, #12] + 8002b5c: 681b ldr r3, [r3, #0] + 8002b5e: f46f 6280 mvn.w r2, #1024 ; 0x400 + 8002b62: 615a str r2, [r3, #20] + + hi2c->PreviousState = I2C_STATE_NONE; + 8002b64: 68fb ldr r3, [r7, #12] + 8002b66: 2200 movs r2, #0 + 8002b68: 631a str r2, [r3, #48] ; 0x30 + hi2c->State = HAL_I2C_STATE_READY; + 8002b6a: 68fb ldr r3, [r7, #12] + 8002b6c: 2220 movs r2, #32 + 8002b6e: f883 203d strb.w r2, [r3, #61] ; 0x3d + hi2c->Mode = HAL_I2C_MODE_NONE; + 8002b72: 68fb ldr r3, [r7, #12] + 8002b74: 2200 movs r2, #0 + 8002b76: f883 203e strb.w r2, [r3, #62] ; 0x3e + hi2c->ErrorCode |= HAL_I2C_ERROR_AF; + 8002b7a: 68fb ldr r3, [r7, #12] + 8002b7c: 6c1b ldr r3, [r3, #64] ; 0x40 + 8002b7e: f043 0204 orr.w r2, r3, #4 + 8002b82: 68fb ldr r3, [r7, #12] + 8002b84: 641a str r2, [r3, #64] ; 0x40 + + /* Process Unlocked */ + __HAL_UNLOCK(hi2c); + 8002b86: 68fb ldr r3, [r7, #12] + 8002b88: 2200 movs r2, #0 + 8002b8a: f883 203c strb.w r2, [r3, #60] ; 0x3c + + return HAL_ERROR; + 8002b8e: 2301 movs r3, #1 + 8002b90: e046 b.n 8002c20 + } + + /* Check for the Timeout */ + if (Timeout != HAL_MAX_DELAY) + 8002b92: 687b ldr r3, [r7, #4] + 8002b94: f1b3 3fff cmp.w r3, #4294967295 ; 0xffffffff + 8002b98: d021 beq.n 8002bde + { + if (((HAL_GetTick() - Tickstart) > Timeout) || (Timeout == 0U)) + 8002b9a: f7fe fe75 bl 8001888 + 8002b9e: 4602 mov r2, r0 + 8002ba0: 683b ldr r3, [r7, #0] + 8002ba2: 1ad3 subs r3, r2, r3 + 8002ba4: 687a ldr r2, [r7, #4] + 8002ba6: 429a cmp r2, r3 + 8002ba8: d302 bcc.n 8002bb0 + 8002baa: 687b ldr r3, [r7, #4] + 8002bac: 2b00 cmp r3, #0 + 8002bae: d116 bne.n 8002bde + { + hi2c->PreviousState = I2C_STATE_NONE; + 8002bb0: 68fb ldr r3, [r7, #12] + 8002bb2: 2200 movs r2, #0 + 8002bb4: 631a str r2, [r3, #48] ; 0x30 + hi2c->State = HAL_I2C_STATE_READY; + 8002bb6: 68fb ldr r3, [r7, #12] + 8002bb8: 2220 movs r2, #32 + 8002bba: f883 203d strb.w r2, [r3, #61] ; 0x3d + hi2c->Mode = HAL_I2C_MODE_NONE; + 8002bbe: 68fb ldr r3, [r7, #12] + 8002bc0: 2200 movs r2, #0 + 8002bc2: f883 203e strb.w r2, [r3, #62] ; 0x3e + hi2c->ErrorCode |= HAL_I2C_ERROR_TIMEOUT; + 8002bc6: 68fb ldr r3, [r7, #12] + 8002bc8: 6c1b ldr r3, [r3, #64] ; 0x40 + 8002bca: f043 0220 orr.w r2, r3, #32 + 8002bce: 68fb ldr r3, [r7, #12] + 8002bd0: 641a str r2, [r3, #64] ; 0x40 + + /* Process Unlocked */ + __HAL_UNLOCK(hi2c); + 8002bd2: 68fb ldr r3, [r7, #12] + 8002bd4: 2200 movs r2, #0 + 8002bd6: f883 203c strb.w r2, [r3, #60] ; 0x3c + + return HAL_ERROR; + 8002bda: 2301 movs r3, #1 + 8002bdc: e020 b.n 8002c20 + while (__HAL_I2C_GET_FLAG(hi2c, Flag) == RESET) + 8002bde: 68bb ldr r3, [r7, #8] + 8002be0: 0c1b lsrs r3, r3, #16 + 8002be2: b2db uxtb r3, r3 + 8002be4: 2b01 cmp r3, #1 + 8002be6: d10c bne.n 8002c02 + 8002be8: 68fb ldr r3, [r7, #12] + 8002bea: 681b ldr r3, [r3, #0] + 8002bec: 695b ldr r3, [r3, #20] + 8002bee: 43da mvns r2, r3 + 8002bf0: 68bb ldr r3, [r7, #8] + 8002bf2: 4013 ands r3, r2 + 8002bf4: b29b uxth r3, r3 + 8002bf6: 2b00 cmp r3, #0 + 8002bf8: bf14 ite ne + 8002bfa: 2301 movne r3, #1 + 8002bfc: 2300 moveq r3, #0 + 8002bfe: b2db uxtb r3, r3 + 8002c00: e00b b.n 8002c1a + 8002c02: 68fb ldr r3, [r7, #12] + 8002c04: 681b ldr r3, [r3, #0] + 8002c06: 699b ldr r3, [r3, #24] + 8002c08: 43da mvns r2, r3 + 8002c0a: 68bb ldr r3, [r7, #8] + 8002c0c: 4013 ands r3, r2 + 8002c0e: b29b uxth r3, r3 + 8002c10: 2b00 cmp r3, #0 + 8002c12: bf14 ite ne + 8002c14: 2301 movne r3, #1 + 8002c16: 2300 moveq r3, #0 + 8002c18: b2db uxtb r3, r3 + 8002c1a: 2b00 cmp r3, #0 + 8002c1c: d18d bne.n 8002b3a + } + } + } + return HAL_OK; + 8002c1e: 2300 movs r3, #0 +} + 8002c20: 4618 mov r0, r3 + 8002c22: 3710 adds r7, #16 + 8002c24: 46bd mov sp, r7 + 8002c26: bd80 pop {r7, pc} + +08002c28 : + * @param Timeout Timeout duration + * @param Tickstart Tick start value + * @retval HAL status + */ +static HAL_StatusTypeDef I2C_WaitOnTXEFlagUntilTimeout(I2C_HandleTypeDef *hi2c, uint32_t Timeout, uint32_t Tickstart) +{ + 8002c28: b580 push {r7, lr} + 8002c2a: b084 sub sp, #16 + 8002c2c: af00 add r7, sp, #0 + 8002c2e: 60f8 str r0, [r7, #12] + 8002c30: 60b9 str r1, [r7, #8] + 8002c32: 607a str r2, [r7, #4] + while (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_TXE) == RESET) + 8002c34: e02d b.n 8002c92 + { + /* Check if a NACK is detected */ + if (I2C_IsAcknowledgeFailed(hi2c) != HAL_OK) + 8002c36: 68f8 ldr r0, [r7, #12] + 8002c38: f000 f8ce bl 8002dd8 + 8002c3c: 4603 mov r3, r0 + 8002c3e: 2b00 cmp r3, #0 + 8002c40: d001 beq.n 8002c46 + { + return HAL_ERROR; + 8002c42: 2301 movs r3, #1 + 8002c44: e02d b.n 8002ca2 + } + + /* Check for the Timeout */ + if (Timeout != HAL_MAX_DELAY) + 8002c46: 68bb ldr r3, [r7, #8] + 8002c48: f1b3 3fff cmp.w r3, #4294967295 ; 0xffffffff + 8002c4c: d021 beq.n 8002c92 + { + if (((HAL_GetTick() - Tickstart) > Timeout) || (Timeout == 0U)) + 8002c4e: f7fe fe1b bl 8001888 + 8002c52: 4602 mov r2, r0 + 8002c54: 687b ldr r3, [r7, #4] + 8002c56: 1ad3 subs r3, r2, r3 + 8002c58: 68ba ldr r2, [r7, #8] + 8002c5a: 429a cmp r2, r3 + 8002c5c: d302 bcc.n 8002c64 + 8002c5e: 68bb ldr r3, [r7, #8] + 8002c60: 2b00 cmp r3, #0 + 8002c62: d116 bne.n 8002c92 + { + hi2c->PreviousState = I2C_STATE_NONE; + 8002c64: 68fb ldr r3, [r7, #12] + 8002c66: 2200 movs r2, #0 + 8002c68: 631a str r2, [r3, #48] ; 0x30 + hi2c->State = HAL_I2C_STATE_READY; + 8002c6a: 68fb ldr r3, [r7, #12] + 8002c6c: 2220 movs r2, #32 + 8002c6e: f883 203d strb.w r2, [r3, #61] ; 0x3d + hi2c->Mode = HAL_I2C_MODE_NONE; + 8002c72: 68fb ldr r3, [r7, #12] + 8002c74: 2200 movs r2, #0 + 8002c76: f883 203e strb.w r2, [r3, #62] ; 0x3e + hi2c->ErrorCode |= HAL_I2C_ERROR_TIMEOUT; + 8002c7a: 68fb ldr r3, [r7, #12] + 8002c7c: 6c1b ldr r3, [r3, #64] ; 0x40 + 8002c7e: f043 0220 orr.w r2, r3, #32 + 8002c82: 68fb ldr r3, [r7, #12] + 8002c84: 641a str r2, [r3, #64] ; 0x40 + + /* Process Unlocked */ + __HAL_UNLOCK(hi2c); + 8002c86: 68fb ldr r3, [r7, #12] + 8002c88: 2200 movs r2, #0 + 8002c8a: f883 203c strb.w r2, [r3, #60] ; 0x3c + + return HAL_ERROR; + 8002c8e: 2301 movs r3, #1 + 8002c90: e007 b.n 8002ca2 + while (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_TXE) == RESET) + 8002c92: 68fb ldr r3, [r7, #12] + 8002c94: 681b ldr r3, [r3, #0] + 8002c96: 695b ldr r3, [r3, #20] + 8002c98: f003 0380 and.w r3, r3, #128 ; 0x80 + 8002c9c: 2b80 cmp r3, #128 ; 0x80 + 8002c9e: d1ca bne.n 8002c36 + } + } + } + return HAL_OK; + 8002ca0: 2300 movs r3, #0 +} + 8002ca2: 4618 mov r0, r3 + 8002ca4: 3710 adds r7, #16 + 8002ca6: 46bd mov sp, r7 + 8002ca8: bd80 pop {r7, pc} + +08002caa : + * @param Timeout Timeout duration + * @param Tickstart Tick start value + * @retval HAL status + */ +static HAL_StatusTypeDef I2C_WaitOnBTFFlagUntilTimeout(I2C_HandleTypeDef *hi2c, uint32_t Timeout, uint32_t Tickstart) +{ + 8002caa: b580 push {r7, lr} + 8002cac: b084 sub sp, #16 + 8002cae: af00 add r7, sp, #0 + 8002cb0: 60f8 str r0, [r7, #12] + 8002cb2: 60b9 str r1, [r7, #8] + 8002cb4: 607a str r2, [r7, #4] + while (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_BTF) == RESET) + 8002cb6: e02d b.n 8002d14 + { + /* Check if a NACK is detected */ + if (I2C_IsAcknowledgeFailed(hi2c) != HAL_OK) + 8002cb8: 68f8 ldr r0, [r7, #12] + 8002cba: f000 f88d bl 8002dd8 + 8002cbe: 4603 mov r3, r0 + 8002cc0: 2b00 cmp r3, #0 + 8002cc2: d001 beq.n 8002cc8 + { + return HAL_ERROR; + 8002cc4: 2301 movs r3, #1 + 8002cc6: e02d b.n 8002d24 + } + + /* Check for the Timeout */ + if (Timeout != HAL_MAX_DELAY) + 8002cc8: 68bb ldr r3, [r7, #8] + 8002cca: f1b3 3fff cmp.w r3, #4294967295 ; 0xffffffff + 8002cce: d021 beq.n 8002d14 + { + if (((HAL_GetTick() - Tickstart) > Timeout) || (Timeout == 0U)) + 8002cd0: f7fe fdda bl 8001888 + 8002cd4: 4602 mov r2, r0 + 8002cd6: 687b ldr r3, [r7, #4] + 8002cd8: 1ad3 subs r3, r2, r3 + 8002cda: 68ba ldr r2, [r7, #8] + 8002cdc: 429a cmp r2, r3 + 8002cde: d302 bcc.n 8002ce6 + 8002ce0: 68bb ldr r3, [r7, #8] + 8002ce2: 2b00 cmp r3, #0 + 8002ce4: d116 bne.n 8002d14 + { + hi2c->PreviousState = I2C_STATE_NONE; + 8002ce6: 68fb ldr r3, [r7, #12] + 8002ce8: 2200 movs r2, #0 + 8002cea: 631a str r2, [r3, #48] ; 0x30 + hi2c->State = HAL_I2C_STATE_READY; + 8002cec: 68fb ldr r3, [r7, #12] + 8002cee: 2220 movs r2, #32 + 8002cf0: f883 203d strb.w r2, [r3, #61] ; 0x3d + hi2c->Mode = HAL_I2C_MODE_NONE; + 8002cf4: 68fb ldr r3, [r7, #12] + 8002cf6: 2200 movs r2, #0 + 8002cf8: f883 203e strb.w r2, [r3, #62] ; 0x3e + hi2c->ErrorCode |= HAL_I2C_ERROR_TIMEOUT; + 8002cfc: 68fb ldr r3, [r7, #12] + 8002cfe: 6c1b ldr r3, [r3, #64] ; 0x40 + 8002d00: f043 0220 orr.w r2, r3, #32 + 8002d04: 68fb ldr r3, [r7, #12] + 8002d06: 641a str r2, [r3, #64] ; 0x40 + + /* Process Unlocked */ + __HAL_UNLOCK(hi2c); + 8002d08: 68fb ldr r3, [r7, #12] + 8002d0a: 2200 movs r2, #0 + 8002d0c: f883 203c strb.w r2, [r3, #60] ; 0x3c + + return HAL_ERROR; + 8002d10: 2301 movs r3, #1 + 8002d12: e007 b.n 8002d24 + while (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_BTF) == RESET) + 8002d14: 68fb ldr r3, [r7, #12] + 8002d16: 681b ldr r3, [r3, #0] + 8002d18: 695b ldr r3, [r3, #20] + 8002d1a: f003 0304 and.w r3, r3, #4 + 8002d1e: 2b04 cmp r3, #4 + 8002d20: d1ca bne.n 8002cb8 + } + } + } + return HAL_OK; + 8002d22: 2300 movs r3, #0 +} + 8002d24: 4618 mov r0, r3 + 8002d26: 3710 adds r7, #16 + 8002d28: 46bd mov sp, r7 + 8002d2a: bd80 pop {r7, pc} + +08002d2c : + * @param Timeout Timeout duration + * @param Tickstart Tick start value + * @retval HAL status + */ +static HAL_StatusTypeDef I2C_WaitOnRXNEFlagUntilTimeout(I2C_HandleTypeDef *hi2c, uint32_t Timeout, uint32_t Tickstart) +{ + 8002d2c: b580 push {r7, lr} + 8002d2e: b084 sub sp, #16 + 8002d30: af00 add r7, sp, #0 + 8002d32: 60f8 str r0, [r7, #12] + 8002d34: 60b9 str r1, [r7, #8] + 8002d36: 607a str r2, [r7, #4] + + while (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_RXNE) == RESET) + 8002d38: e042 b.n 8002dc0 + { + /* Check if a STOPF is detected */ + if (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_STOPF) == SET) + 8002d3a: 68fb ldr r3, [r7, #12] + 8002d3c: 681b ldr r3, [r3, #0] + 8002d3e: 695b ldr r3, [r3, #20] + 8002d40: f003 0310 and.w r3, r3, #16 + 8002d44: 2b10 cmp r3, #16 + 8002d46: d119 bne.n 8002d7c + { + /* Clear STOP Flag */ + __HAL_I2C_CLEAR_FLAG(hi2c, I2C_FLAG_STOPF); + 8002d48: 68fb ldr r3, [r7, #12] + 8002d4a: 681b ldr r3, [r3, #0] + 8002d4c: f06f 0210 mvn.w r2, #16 + 8002d50: 615a str r2, [r3, #20] + + hi2c->PreviousState = I2C_STATE_NONE; + 8002d52: 68fb ldr r3, [r7, #12] + 8002d54: 2200 movs r2, #0 + 8002d56: 631a str r2, [r3, #48] ; 0x30 + hi2c->State = HAL_I2C_STATE_READY; + 8002d58: 68fb ldr r3, [r7, #12] + 8002d5a: 2220 movs r2, #32 + 8002d5c: f883 203d strb.w r2, [r3, #61] ; 0x3d + hi2c->Mode = HAL_I2C_MODE_NONE; + 8002d60: 68fb ldr r3, [r7, #12] + 8002d62: 2200 movs r2, #0 + 8002d64: f883 203e strb.w r2, [r3, #62] ; 0x3e + hi2c->ErrorCode |= HAL_I2C_ERROR_NONE; + 8002d68: 68fb ldr r3, [r7, #12] + 8002d6a: 6c1a ldr r2, [r3, #64] ; 0x40 + 8002d6c: 68fb ldr r3, [r7, #12] + 8002d6e: 641a str r2, [r3, #64] ; 0x40 + + /* Process Unlocked */ + __HAL_UNLOCK(hi2c); + 8002d70: 68fb ldr r3, [r7, #12] + 8002d72: 2200 movs r2, #0 + 8002d74: f883 203c strb.w r2, [r3, #60] ; 0x3c + + return HAL_ERROR; + 8002d78: 2301 movs r3, #1 + 8002d7a: e029 b.n 8002dd0 + } + + /* Check for the Timeout */ + if (((HAL_GetTick() - Tickstart) > Timeout) || (Timeout == 0U)) + 8002d7c: f7fe fd84 bl 8001888 + 8002d80: 4602 mov r2, r0 + 8002d82: 687b ldr r3, [r7, #4] + 8002d84: 1ad3 subs r3, r2, r3 + 8002d86: 68ba ldr r2, [r7, #8] + 8002d88: 429a cmp r2, r3 + 8002d8a: d302 bcc.n 8002d92 + 8002d8c: 68bb ldr r3, [r7, #8] + 8002d8e: 2b00 cmp r3, #0 + 8002d90: d116 bne.n 8002dc0 + { + hi2c->PreviousState = I2C_STATE_NONE; + 8002d92: 68fb ldr r3, [r7, #12] + 8002d94: 2200 movs r2, #0 + 8002d96: 631a str r2, [r3, #48] ; 0x30 + hi2c->State = HAL_I2C_STATE_READY; + 8002d98: 68fb ldr r3, [r7, #12] + 8002d9a: 2220 movs r2, #32 + 8002d9c: f883 203d strb.w r2, [r3, #61] ; 0x3d + hi2c->Mode = HAL_I2C_MODE_NONE; + 8002da0: 68fb ldr r3, [r7, #12] + 8002da2: 2200 movs r2, #0 + 8002da4: f883 203e strb.w r2, [r3, #62] ; 0x3e + hi2c->ErrorCode |= HAL_I2C_ERROR_TIMEOUT; + 8002da8: 68fb ldr r3, [r7, #12] + 8002daa: 6c1b ldr r3, [r3, #64] ; 0x40 + 8002dac: f043 0220 orr.w r2, r3, #32 + 8002db0: 68fb ldr r3, [r7, #12] + 8002db2: 641a str r2, [r3, #64] ; 0x40 + + /* Process Unlocked */ + __HAL_UNLOCK(hi2c); + 8002db4: 68fb ldr r3, [r7, #12] + 8002db6: 2200 movs r2, #0 + 8002db8: f883 203c strb.w r2, [r3, #60] ; 0x3c + + return HAL_ERROR; + 8002dbc: 2301 movs r3, #1 + 8002dbe: e007 b.n 8002dd0 + while (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_RXNE) == RESET) + 8002dc0: 68fb ldr r3, [r7, #12] + 8002dc2: 681b ldr r3, [r3, #0] + 8002dc4: 695b ldr r3, [r3, #20] + 8002dc6: f003 0340 and.w r3, r3, #64 ; 0x40 + 8002dca: 2b40 cmp r3, #64 ; 0x40 + 8002dcc: d1b5 bne.n 8002d3a + } + } + return HAL_OK; + 8002dce: 2300 movs r3, #0 +} + 8002dd0: 4618 mov r0, r3 + 8002dd2: 3710 adds r7, #16 + 8002dd4: 46bd mov sp, r7 + 8002dd6: bd80 pop {r7, pc} + +08002dd8 : + * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains + * the configuration information for the specified I2C. + * @retval HAL status + */ +static HAL_StatusTypeDef I2C_IsAcknowledgeFailed(I2C_HandleTypeDef *hi2c) +{ + 8002dd8: b480 push {r7} + 8002dda: b083 sub sp, #12 + 8002ddc: af00 add r7, sp, #0 + 8002dde: 6078 str r0, [r7, #4] + if (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_AF) == SET) + 8002de0: 687b ldr r3, [r7, #4] + 8002de2: 681b ldr r3, [r3, #0] + 8002de4: 695b ldr r3, [r3, #20] + 8002de6: f403 6380 and.w r3, r3, #1024 ; 0x400 + 8002dea: f5b3 6f80 cmp.w r3, #1024 ; 0x400 + 8002dee: d11b bne.n 8002e28 + { + /* Clear NACKF Flag */ + __HAL_I2C_CLEAR_FLAG(hi2c, I2C_FLAG_AF); + 8002df0: 687b ldr r3, [r7, #4] + 8002df2: 681b ldr r3, [r3, #0] + 8002df4: f46f 6280 mvn.w r2, #1024 ; 0x400 + 8002df8: 615a str r2, [r3, #20] + + hi2c->PreviousState = I2C_STATE_NONE; + 8002dfa: 687b ldr r3, [r7, #4] + 8002dfc: 2200 movs r2, #0 + 8002dfe: 631a str r2, [r3, #48] ; 0x30 + hi2c->State = HAL_I2C_STATE_READY; + 8002e00: 687b ldr r3, [r7, #4] + 8002e02: 2220 movs r2, #32 + 8002e04: f883 203d strb.w r2, [r3, #61] ; 0x3d + hi2c->Mode = HAL_I2C_MODE_NONE; + 8002e08: 687b ldr r3, [r7, #4] + 8002e0a: 2200 movs r2, #0 + 8002e0c: f883 203e strb.w r2, [r3, #62] ; 0x3e + hi2c->ErrorCode |= HAL_I2C_ERROR_AF; + 8002e10: 687b ldr r3, [r7, #4] + 8002e12: 6c1b ldr r3, [r3, #64] ; 0x40 + 8002e14: f043 0204 orr.w r2, r3, #4 + 8002e18: 687b ldr r3, [r7, #4] + 8002e1a: 641a str r2, [r3, #64] ; 0x40 + + /* Process Unlocked */ + __HAL_UNLOCK(hi2c); + 8002e1c: 687b ldr r3, [r7, #4] + 8002e1e: 2200 movs r2, #0 + 8002e20: f883 203c strb.w r2, [r3, #60] ; 0x3c + + return HAL_ERROR; + 8002e24: 2301 movs r3, #1 + 8002e26: e000 b.n 8002e2a + } + return HAL_OK; + 8002e28: 2300 movs r3, #0 +} + 8002e2a: 4618 mov r0, r3 + 8002e2c: 370c adds r7, #12 + 8002e2e: 46bd mov sp, r7 + 8002e30: bc80 pop {r7} + 8002e32: 4770 bx lr + +08002e34 : * supported by this macro. User should request a transition to HSE Off * first and then HSE On or HSE Bypass. * @retval HAL status */ HAL_StatusTypeDef HAL_RCC_OscConfig(RCC_OscInitTypeDef *RCC_OscInitStruct) { - 8001d54: b580 push {r7, lr} - 8001d56: b086 sub sp, #24 - 8001d58: af00 add r7, sp, #0 - 8001d5a: 6078 str r0, [r7, #4] + 8002e34: b580 push {r7, lr} + 8002e36: b086 sub sp, #24 + 8002e38: af00 add r7, sp, #0 + 8002e3a: 6078 str r0, [r7, #4] uint32_t tickstart; uint32_t pll_config; /* Check Null pointer */ if (RCC_OscInitStruct == NULL) - 8001d5c: 687b ldr r3, [r7, #4] - 8001d5e: 2b00 cmp r3, #0 - 8001d60: d101 bne.n 8001d66 + 8002e3c: 687b ldr r3, [r7, #4] + 8002e3e: 2b00 cmp r3, #0 + 8002e40: d101 bne.n 8002e46 { return HAL_ERROR; - 8001d62: 2301 movs r3, #1 - 8001d64: e26c b.n 8002240 + 8002e42: 2301 movs r3, #1 + 8002e44: e26c b.n 8003320 /* Check the parameters */ assert_param(IS_RCC_OSCILLATORTYPE(RCC_OscInitStruct->OscillatorType)); /*------------------------------- HSE Configuration ------------------------*/ if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_HSE) == RCC_OSCILLATORTYPE_HSE) - 8001d66: 687b ldr r3, [r7, #4] - 8001d68: 681b ldr r3, [r3, #0] - 8001d6a: f003 0301 and.w r3, r3, #1 - 8001d6e: 2b00 cmp r3, #0 - 8001d70: f000 8087 beq.w 8001e82 + 8002e46: 687b ldr r3, [r7, #4] + 8002e48: 681b ldr r3, [r3, #0] + 8002e4a: f003 0301 and.w r3, r3, #1 + 8002e4e: 2b00 cmp r3, #0 + 8002e50: f000 8087 beq.w 8002f62 { /* Check the parameters */ assert_param(IS_RCC_HSE(RCC_OscInitStruct->HSEState)); /* When the HSE is used as system clock or clock source for PLL in these cases it is not allowed to be disabled */ if ((__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_SYSCLKSOURCE_STATUS_HSE) - 8001d74: 4b92 ldr r3, [pc, #584] ; (8001fc0 ) - 8001d76: 685b ldr r3, [r3, #4] - 8001d78: f003 030c and.w r3, r3, #12 - 8001d7c: 2b04 cmp r3, #4 - 8001d7e: d00c beq.n 8001d9a + 8002e54: 4b92 ldr r3, [pc, #584] ; (80030a0 ) + 8002e56: 685b ldr r3, [r3, #4] + 8002e58: f003 030c and.w r3, r3, #12 + 8002e5c: 2b04 cmp r3, #4 + 8002e5e: d00c beq.n 8002e7a || ((__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_SYSCLKSOURCE_STATUS_PLLCLK) && (__HAL_RCC_GET_PLL_OSCSOURCE() == RCC_PLLSOURCE_HSE))) - 8001d80: 4b8f ldr r3, [pc, #572] ; (8001fc0 ) - 8001d82: 685b ldr r3, [r3, #4] - 8001d84: f003 030c and.w r3, r3, #12 - 8001d88: 2b08 cmp r3, #8 - 8001d8a: d112 bne.n 8001db2 - 8001d8c: 4b8c ldr r3, [pc, #560] ; (8001fc0 ) - 8001d8e: 685b ldr r3, [r3, #4] - 8001d90: f403 3380 and.w r3, r3, #65536 ; 0x10000 - 8001d94: f5b3 3f80 cmp.w r3, #65536 ; 0x10000 - 8001d98: d10b bne.n 8001db2 + 8002e60: 4b8f ldr r3, [pc, #572] ; (80030a0 ) + 8002e62: 685b ldr r3, [r3, #4] + 8002e64: f003 030c and.w r3, r3, #12 + 8002e68: 2b08 cmp r3, #8 + 8002e6a: d112 bne.n 8002e92 + 8002e6c: 4b8c ldr r3, [pc, #560] ; (80030a0 ) + 8002e6e: 685b ldr r3, [r3, #4] + 8002e70: f403 3380 and.w r3, r3, #65536 ; 0x10000 + 8002e74: f5b3 3f80 cmp.w r3, #65536 ; 0x10000 + 8002e78: d10b bne.n 8002e92 { if ((__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != RESET) && (RCC_OscInitStruct->HSEState == RCC_HSE_OFF)) - 8001d9a: 4b89 ldr r3, [pc, #548] ; (8001fc0 ) - 8001d9c: 681b ldr r3, [r3, #0] - 8001d9e: f403 3300 and.w r3, r3, #131072 ; 0x20000 - 8001da2: 2b00 cmp r3, #0 - 8001da4: d06c beq.n 8001e80 - 8001da6: 687b ldr r3, [r7, #4] - 8001da8: 685b ldr r3, [r3, #4] - 8001daa: 2b00 cmp r3, #0 - 8001dac: d168 bne.n 8001e80 + 8002e7a: 4b89 ldr r3, [pc, #548] ; (80030a0 ) + 8002e7c: 681b ldr r3, [r3, #0] + 8002e7e: f403 3300 and.w r3, r3, #131072 ; 0x20000 + 8002e82: 2b00 cmp r3, #0 + 8002e84: d06c beq.n 8002f60 + 8002e86: 687b ldr r3, [r7, #4] + 8002e88: 685b ldr r3, [r3, #4] + 8002e8a: 2b00 cmp r3, #0 + 8002e8c: d168 bne.n 8002f60 { return HAL_ERROR; - 8001dae: 2301 movs r3, #1 - 8001db0: e246 b.n 8002240 + 8002e8e: 2301 movs r3, #1 + 8002e90: e246 b.n 8003320 } } else { /* Set the new HSE configuration ---------------------------------------*/ __HAL_RCC_HSE_CONFIG(RCC_OscInitStruct->HSEState); - 8001db2: 687b ldr r3, [r7, #4] - 8001db4: 685b ldr r3, [r3, #4] - 8001db6: f5b3 3f80 cmp.w r3, #65536 ; 0x10000 - 8001dba: d106 bne.n 8001dca - 8001dbc: 4b80 ldr r3, [pc, #512] ; (8001fc0 ) - 8001dbe: 681b ldr r3, [r3, #0] - 8001dc0: 4a7f ldr r2, [pc, #508] ; (8001fc0 ) - 8001dc2: f443 3380 orr.w r3, r3, #65536 ; 0x10000 - 8001dc6: 6013 str r3, [r2, #0] - 8001dc8: e02e b.n 8001e28 - 8001dca: 687b ldr r3, [r7, #4] - 8001dcc: 685b ldr r3, [r3, #4] - 8001dce: 2b00 cmp r3, #0 - 8001dd0: d10c bne.n 8001dec - 8001dd2: 4b7b ldr r3, [pc, #492] ; (8001fc0 ) - 8001dd4: 681b ldr r3, [r3, #0] - 8001dd6: 4a7a ldr r2, [pc, #488] ; (8001fc0 ) - 8001dd8: f423 3380 bic.w r3, r3, #65536 ; 0x10000 - 8001ddc: 6013 str r3, [r2, #0] - 8001dde: 4b78 ldr r3, [pc, #480] ; (8001fc0 ) - 8001de0: 681b ldr r3, [r3, #0] - 8001de2: 4a77 ldr r2, [pc, #476] ; (8001fc0 ) - 8001de4: f423 2380 bic.w r3, r3, #262144 ; 0x40000 - 8001de8: 6013 str r3, [r2, #0] - 8001dea: e01d b.n 8001e28 - 8001dec: 687b ldr r3, [r7, #4] - 8001dee: 685b ldr r3, [r3, #4] - 8001df0: f5b3 2fa0 cmp.w r3, #327680 ; 0x50000 - 8001df4: d10c bne.n 8001e10 - 8001df6: 4b72 ldr r3, [pc, #456] ; (8001fc0 ) - 8001df8: 681b ldr r3, [r3, #0] - 8001dfa: 4a71 ldr r2, [pc, #452] ; (8001fc0 ) - 8001dfc: f443 2380 orr.w r3, r3, #262144 ; 0x40000 - 8001e00: 6013 str r3, [r2, #0] - 8001e02: 4b6f ldr r3, [pc, #444] ; (8001fc0 ) - 8001e04: 681b ldr r3, [r3, #0] - 8001e06: 4a6e ldr r2, [pc, #440] ; (8001fc0 ) - 8001e08: f443 3380 orr.w r3, r3, #65536 ; 0x10000 - 8001e0c: 6013 str r3, [r2, #0] - 8001e0e: e00b b.n 8001e28 - 8001e10: 4b6b ldr r3, [pc, #428] ; (8001fc0 ) - 8001e12: 681b ldr r3, [r3, #0] - 8001e14: 4a6a ldr r2, [pc, #424] ; (8001fc0 ) - 8001e16: f423 3380 bic.w r3, r3, #65536 ; 0x10000 - 8001e1a: 6013 str r3, [r2, #0] - 8001e1c: 4b68 ldr r3, [pc, #416] ; (8001fc0 ) - 8001e1e: 681b ldr r3, [r3, #0] - 8001e20: 4a67 ldr r2, [pc, #412] ; (8001fc0 ) - 8001e22: f423 2380 bic.w r3, r3, #262144 ; 0x40000 - 8001e26: 6013 str r3, [r2, #0] + 8002e92: 687b ldr r3, [r7, #4] + 8002e94: 685b ldr r3, [r3, #4] + 8002e96: f5b3 3f80 cmp.w r3, #65536 ; 0x10000 + 8002e9a: d106 bne.n 8002eaa + 8002e9c: 4b80 ldr r3, [pc, #512] ; (80030a0 ) + 8002e9e: 681b ldr r3, [r3, #0] + 8002ea0: 4a7f ldr r2, [pc, #508] ; (80030a0 ) + 8002ea2: f443 3380 orr.w r3, r3, #65536 ; 0x10000 + 8002ea6: 6013 str r3, [r2, #0] + 8002ea8: e02e b.n 8002f08 + 8002eaa: 687b ldr r3, [r7, #4] + 8002eac: 685b ldr r3, [r3, #4] + 8002eae: 2b00 cmp r3, #0 + 8002eb0: d10c bne.n 8002ecc + 8002eb2: 4b7b ldr r3, [pc, #492] ; (80030a0 ) + 8002eb4: 681b ldr r3, [r3, #0] + 8002eb6: 4a7a ldr r2, [pc, #488] ; (80030a0 ) + 8002eb8: f423 3380 bic.w r3, r3, #65536 ; 0x10000 + 8002ebc: 6013 str r3, [r2, #0] + 8002ebe: 4b78 ldr r3, [pc, #480] ; (80030a0 ) + 8002ec0: 681b ldr r3, [r3, #0] + 8002ec2: 4a77 ldr r2, [pc, #476] ; (80030a0 ) + 8002ec4: f423 2380 bic.w r3, r3, #262144 ; 0x40000 + 8002ec8: 6013 str r3, [r2, #0] + 8002eca: e01d b.n 8002f08 + 8002ecc: 687b ldr r3, [r7, #4] + 8002ece: 685b ldr r3, [r3, #4] + 8002ed0: f5b3 2fa0 cmp.w r3, #327680 ; 0x50000 + 8002ed4: d10c bne.n 8002ef0 + 8002ed6: 4b72 ldr r3, [pc, #456] ; (80030a0 ) + 8002ed8: 681b ldr r3, [r3, #0] + 8002eda: 4a71 ldr r2, [pc, #452] ; (80030a0 ) + 8002edc: f443 2380 orr.w r3, r3, #262144 ; 0x40000 + 8002ee0: 6013 str r3, [r2, #0] + 8002ee2: 4b6f ldr r3, [pc, #444] ; (80030a0 ) + 8002ee4: 681b ldr r3, [r3, #0] + 8002ee6: 4a6e ldr r2, [pc, #440] ; (80030a0 ) + 8002ee8: f443 3380 orr.w r3, r3, #65536 ; 0x10000 + 8002eec: 6013 str r3, [r2, #0] + 8002eee: e00b b.n 8002f08 + 8002ef0: 4b6b ldr r3, [pc, #428] ; (80030a0 ) + 8002ef2: 681b ldr r3, [r3, #0] + 8002ef4: 4a6a ldr r2, [pc, #424] ; (80030a0 ) + 8002ef6: f423 3380 bic.w r3, r3, #65536 ; 0x10000 + 8002efa: 6013 str r3, [r2, #0] + 8002efc: 4b68 ldr r3, [pc, #416] ; (80030a0 ) + 8002efe: 681b ldr r3, [r3, #0] + 8002f00: 4a67 ldr r2, [pc, #412] ; (80030a0 ) + 8002f02: f423 2380 bic.w r3, r3, #262144 ; 0x40000 + 8002f06: 6013 str r3, [r2, #0] /* Check the HSE State */ if (RCC_OscInitStruct->HSEState != RCC_HSE_OFF) - 8001e28: 687b ldr r3, [r7, #4] - 8001e2a: 685b ldr r3, [r3, #4] - 8001e2c: 2b00 cmp r3, #0 - 8001e2e: d013 beq.n 8001e58 + 8002f08: 687b ldr r3, [r7, #4] + 8002f0a: 685b ldr r3, [r3, #4] + 8002f0c: 2b00 cmp r3, #0 + 8002f0e: d013 beq.n 8002f38 { /* Get Start Tick */ tickstart = HAL_GetTick(); - 8001e30: f7ff fcba bl 80017a8 - 8001e34: 6138 str r0, [r7, #16] + 8002f10: f7fe fcba bl 8001888 + 8002f14: 6138 str r0, [r7, #16] /* Wait till HSE is ready */ while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) == RESET) - 8001e36: e008 b.n 8001e4a + 8002f16: e008 b.n 8002f2a { if ((HAL_GetTick() - tickstart) > HSE_TIMEOUT_VALUE) - 8001e38: f7ff fcb6 bl 80017a8 - 8001e3c: 4602 mov r2, r0 - 8001e3e: 693b ldr r3, [r7, #16] - 8001e40: 1ad3 subs r3, r2, r3 - 8001e42: 2b64 cmp r3, #100 ; 0x64 - 8001e44: d901 bls.n 8001e4a + 8002f18: f7fe fcb6 bl 8001888 + 8002f1c: 4602 mov r2, r0 + 8002f1e: 693b ldr r3, [r7, #16] + 8002f20: 1ad3 subs r3, r2, r3 + 8002f22: 2b64 cmp r3, #100 ; 0x64 + 8002f24: d901 bls.n 8002f2a { return HAL_TIMEOUT; - 8001e46: 2303 movs r3, #3 - 8001e48: e1fa b.n 8002240 + 8002f26: 2303 movs r3, #3 + 8002f28: e1fa b.n 8003320 while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) == RESET) - 8001e4a: 4b5d ldr r3, [pc, #372] ; (8001fc0 ) - 8001e4c: 681b ldr r3, [r3, #0] - 8001e4e: f403 3300 and.w r3, r3, #131072 ; 0x20000 - 8001e52: 2b00 cmp r3, #0 - 8001e54: d0f0 beq.n 8001e38 - 8001e56: e014 b.n 8001e82 + 8002f2a: 4b5d ldr r3, [pc, #372] ; (80030a0 ) + 8002f2c: 681b ldr r3, [r3, #0] + 8002f2e: f403 3300 and.w r3, r3, #131072 ; 0x20000 + 8002f32: 2b00 cmp r3, #0 + 8002f34: d0f0 beq.n 8002f18 + 8002f36: e014 b.n 8002f62 } } else { /* Get Start Tick */ tickstart = HAL_GetTick(); - 8001e58: f7ff fca6 bl 80017a8 - 8001e5c: 6138 str r0, [r7, #16] + 8002f38: f7fe fca6 bl 8001888 + 8002f3c: 6138 str r0, [r7, #16] /* Wait till HSE is disabled */ while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != RESET) - 8001e5e: e008 b.n 8001e72 + 8002f3e: e008 b.n 8002f52 { if ((HAL_GetTick() - tickstart) > HSE_TIMEOUT_VALUE) - 8001e60: f7ff fca2 bl 80017a8 - 8001e64: 4602 mov r2, r0 - 8001e66: 693b ldr r3, [r7, #16] - 8001e68: 1ad3 subs r3, r2, r3 - 8001e6a: 2b64 cmp r3, #100 ; 0x64 - 8001e6c: d901 bls.n 8001e72 + 8002f40: f7fe fca2 bl 8001888 + 8002f44: 4602 mov r2, r0 + 8002f46: 693b ldr r3, [r7, #16] + 8002f48: 1ad3 subs r3, r2, r3 + 8002f4a: 2b64 cmp r3, #100 ; 0x64 + 8002f4c: d901 bls.n 8002f52 { return HAL_TIMEOUT; - 8001e6e: 2303 movs r3, #3 - 8001e70: e1e6 b.n 8002240 + 8002f4e: 2303 movs r3, #3 + 8002f50: e1e6 b.n 8003320 while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != RESET) - 8001e72: 4b53 ldr r3, [pc, #332] ; (8001fc0 ) - 8001e74: 681b ldr r3, [r3, #0] - 8001e76: f403 3300 and.w r3, r3, #131072 ; 0x20000 - 8001e7a: 2b00 cmp r3, #0 - 8001e7c: d1f0 bne.n 8001e60 - 8001e7e: e000 b.n 8001e82 + 8002f52: 4b53 ldr r3, [pc, #332] ; (80030a0 ) + 8002f54: 681b ldr r3, [r3, #0] + 8002f56: f403 3300 and.w r3, r3, #131072 ; 0x20000 + 8002f5a: 2b00 cmp r3, #0 + 8002f5c: d1f0 bne.n 8002f40 + 8002f5e: e000 b.n 8002f62 if ((__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != RESET) && (RCC_OscInitStruct->HSEState == RCC_HSE_OFF)) - 8001e80: bf00 nop + 8002f60: bf00 nop } } } } /*----------------------------- HSI Configuration --------------------------*/ if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_HSI) == RCC_OSCILLATORTYPE_HSI) - 8001e82: 687b ldr r3, [r7, #4] - 8001e84: 681b ldr r3, [r3, #0] - 8001e86: f003 0302 and.w r3, r3, #2 - 8001e8a: 2b00 cmp r3, #0 - 8001e8c: d063 beq.n 8001f56 + 8002f62: 687b ldr r3, [r7, #4] + 8002f64: 681b ldr r3, [r3, #0] + 8002f66: f003 0302 and.w r3, r3, #2 + 8002f6a: 2b00 cmp r3, #0 + 8002f6c: d063 beq.n 8003036 /* Check the parameters */ assert_param(IS_RCC_HSI(RCC_OscInitStruct->HSIState)); assert_param(IS_RCC_CALIBRATION_VALUE(RCC_OscInitStruct->HSICalibrationValue)); /* Check if HSI is used as system clock or as PLL source when PLL is selected as system clock */ if ((__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_SYSCLKSOURCE_STATUS_HSI) - 8001e8e: 4b4c ldr r3, [pc, #304] ; (8001fc0 ) - 8001e90: 685b ldr r3, [r3, #4] - 8001e92: f003 030c and.w r3, r3, #12 - 8001e96: 2b00 cmp r3, #0 - 8001e98: d00b beq.n 8001eb2 + 8002f6e: 4b4c ldr r3, [pc, #304] ; (80030a0 ) + 8002f70: 685b ldr r3, [r3, #4] + 8002f72: f003 030c and.w r3, r3, #12 + 8002f76: 2b00 cmp r3, #0 + 8002f78: d00b beq.n 8002f92 || ((__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_SYSCLKSOURCE_STATUS_PLLCLK) && (__HAL_RCC_GET_PLL_OSCSOURCE() == RCC_PLLSOURCE_HSI_DIV2))) - 8001e9a: 4b49 ldr r3, [pc, #292] ; (8001fc0 ) - 8001e9c: 685b ldr r3, [r3, #4] - 8001e9e: f003 030c and.w r3, r3, #12 - 8001ea2: 2b08 cmp r3, #8 - 8001ea4: d11c bne.n 8001ee0 - 8001ea6: 4b46 ldr r3, [pc, #280] ; (8001fc0 ) - 8001ea8: 685b ldr r3, [r3, #4] - 8001eaa: f403 3380 and.w r3, r3, #65536 ; 0x10000 - 8001eae: 2b00 cmp r3, #0 - 8001eb0: d116 bne.n 8001ee0 + 8002f7a: 4b49 ldr r3, [pc, #292] ; (80030a0 ) + 8002f7c: 685b ldr r3, [r3, #4] + 8002f7e: f003 030c and.w r3, r3, #12 + 8002f82: 2b08 cmp r3, #8 + 8002f84: d11c bne.n 8002fc0 + 8002f86: 4b46 ldr r3, [pc, #280] ; (80030a0 ) + 8002f88: 685b ldr r3, [r3, #4] + 8002f8a: f403 3380 and.w r3, r3, #65536 ; 0x10000 + 8002f8e: 2b00 cmp r3, #0 + 8002f90: d116 bne.n 8002fc0 { /* When HSI is used as system clock it will not disabled */ if ((__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != RESET) && (RCC_OscInitStruct->HSIState != RCC_HSI_ON)) - 8001eb2: 4b43 ldr r3, [pc, #268] ; (8001fc0 ) - 8001eb4: 681b ldr r3, [r3, #0] - 8001eb6: f003 0302 and.w r3, r3, #2 - 8001eba: 2b00 cmp r3, #0 - 8001ebc: d005 beq.n 8001eca - 8001ebe: 687b ldr r3, [r7, #4] - 8001ec0: 691b ldr r3, [r3, #16] - 8001ec2: 2b01 cmp r3, #1 - 8001ec4: d001 beq.n 8001eca + 8002f92: 4b43 ldr r3, [pc, #268] ; (80030a0 ) + 8002f94: 681b ldr r3, [r3, #0] + 8002f96: f003 0302 and.w r3, r3, #2 + 8002f9a: 2b00 cmp r3, #0 + 8002f9c: d005 beq.n 8002faa + 8002f9e: 687b ldr r3, [r7, #4] + 8002fa0: 691b ldr r3, [r3, #16] + 8002fa2: 2b01 cmp r3, #1 + 8002fa4: d001 beq.n 8002faa { return HAL_ERROR; - 8001ec6: 2301 movs r3, #1 - 8001ec8: e1ba b.n 8002240 + 8002fa6: 2301 movs r3, #1 + 8002fa8: e1ba b.n 8003320 } /* Otherwise, just the calibration is allowed */ else { /* Adjusts the Internal High Speed oscillator (HSI) calibration value.*/ __HAL_RCC_HSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->HSICalibrationValue); - 8001eca: 4b3d ldr r3, [pc, #244] ; (8001fc0 ) - 8001ecc: 681b ldr r3, [r3, #0] - 8001ece: f023 02f8 bic.w r2, r3, #248 ; 0xf8 - 8001ed2: 687b ldr r3, [r7, #4] - 8001ed4: 695b ldr r3, [r3, #20] - 8001ed6: 00db lsls r3, r3, #3 - 8001ed8: 4939 ldr r1, [pc, #228] ; (8001fc0 ) - 8001eda: 4313 orrs r3, r2 - 8001edc: 600b str r3, [r1, #0] + 8002faa: 4b3d ldr r3, [pc, #244] ; (80030a0 ) + 8002fac: 681b ldr r3, [r3, #0] + 8002fae: f023 02f8 bic.w r2, r3, #248 ; 0xf8 + 8002fb2: 687b ldr r3, [r7, #4] + 8002fb4: 695b ldr r3, [r3, #20] + 8002fb6: 00db lsls r3, r3, #3 + 8002fb8: 4939 ldr r1, [pc, #228] ; (80030a0 ) + 8002fba: 4313 orrs r3, r2 + 8002fbc: 600b str r3, [r1, #0] if ((__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != RESET) && (RCC_OscInitStruct->HSIState != RCC_HSI_ON)) - 8001ede: e03a b.n 8001f56 + 8002fbe: e03a b.n 8003036 } } else { /* Check the HSI State */ if (RCC_OscInitStruct->HSIState != RCC_HSI_OFF) - 8001ee0: 687b ldr r3, [r7, #4] - 8001ee2: 691b ldr r3, [r3, #16] - 8001ee4: 2b00 cmp r3, #0 - 8001ee6: d020 beq.n 8001f2a + 8002fc0: 687b ldr r3, [r7, #4] + 8002fc2: 691b ldr r3, [r3, #16] + 8002fc4: 2b00 cmp r3, #0 + 8002fc6: d020 beq.n 800300a { /* Enable the Internal High Speed oscillator (HSI). */ __HAL_RCC_HSI_ENABLE(); - 8001ee8: 4b36 ldr r3, [pc, #216] ; (8001fc4 ) - 8001eea: 2201 movs r2, #1 - 8001eec: 601a str r2, [r3, #0] + 8002fc8: 4b36 ldr r3, [pc, #216] ; (80030a4 ) + 8002fca: 2201 movs r2, #1 + 8002fcc: 601a str r2, [r3, #0] /* Get Start Tick */ tickstart = HAL_GetTick(); - 8001eee: f7ff fc5b bl 80017a8 - 8001ef2: 6138 str r0, [r7, #16] + 8002fce: f7fe fc5b bl 8001888 + 8002fd2: 6138 str r0, [r7, #16] /* Wait till HSI is ready */ while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) == RESET) - 8001ef4: e008 b.n 8001f08 + 8002fd4: e008 b.n 8002fe8 { if ((HAL_GetTick() - tickstart) > HSI_TIMEOUT_VALUE) - 8001ef6: f7ff fc57 bl 80017a8 - 8001efa: 4602 mov r2, r0 - 8001efc: 693b ldr r3, [r7, #16] - 8001efe: 1ad3 subs r3, r2, r3 - 8001f00: 2b02 cmp r3, #2 - 8001f02: d901 bls.n 8001f08 + 8002fd6: f7fe fc57 bl 8001888 + 8002fda: 4602 mov r2, r0 + 8002fdc: 693b ldr r3, [r7, #16] + 8002fde: 1ad3 subs r3, r2, r3 + 8002fe0: 2b02 cmp r3, #2 + 8002fe2: d901 bls.n 8002fe8 { return HAL_TIMEOUT; - 8001f04: 2303 movs r3, #3 - 8001f06: e19b b.n 8002240 + 8002fe4: 2303 movs r3, #3 + 8002fe6: e19b b.n 8003320 while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) == RESET) - 8001f08: 4b2d ldr r3, [pc, #180] ; (8001fc0 ) - 8001f0a: 681b ldr r3, [r3, #0] - 8001f0c: f003 0302 and.w r3, r3, #2 - 8001f10: 2b00 cmp r3, #0 - 8001f12: d0f0 beq.n 8001ef6 + 8002fe8: 4b2d ldr r3, [pc, #180] ; (80030a0 ) + 8002fea: 681b ldr r3, [r3, #0] + 8002fec: f003 0302 and.w r3, r3, #2 + 8002ff0: 2b00 cmp r3, #0 + 8002ff2: d0f0 beq.n 8002fd6 } } /* Adjusts the Internal High Speed oscillator (HSI) calibration value.*/ __HAL_RCC_HSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->HSICalibrationValue); - 8001f14: 4b2a ldr r3, [pc, #168] ; (8001fc0 ) - 8001f16: 681b ldr r3, [r3, #0] - 8001f18: f023 02f8 bic.w r2, r3, #248 ; 0xf8 - 8001f1c: 687b ldr r3, [r7, #4] - 8001f1e: 695b ldr r3, [r3, #20] - 8001f20: 00db lsls r3, r3, #3 - 8001f22: 4927 ldr r1, [pc, #156] ; (8001fc0 ) - 8001f24: 4313 orrs r3, r2 - 8001f26: 600b str r3, [r1, #0] - 8001f28: e015 b.n 8001f56 + 8002ff4: 4b2a ldr r3, [pc, #168] ; (80030a0 ) + 8002ff6: 681b ldr r3, [r3, #0] + 8002ff8: f023 02f8 bic.w r2, r3, #248 ; 0xf8 + 8002ffc: 687b ldr r3, [r7, #4] + 8002ffe: 695b ldr r3, [r3, #20] + 8003000: 00db lsls r3, r3, #3 + 8003002: 4927 ldr r1, [pc, #156] ; (80030a0 ) + 8003004: 4313 orrs r3, r2 + 8003006: 600b str r3, [r1, #0] + 8003008: e015 b.n 8003036 } else { /* Disable the Internal High Speed oscillator (HSI). */ __HAL_RCC_HSI_DISABLE(); - 8001f2a: 4b26 ldr r3, [pc, #152] ; (8001fc4 ) - 8001f2c: 2200 movs r2, #0 - 8001f2e: 601a str r2, [r3, #0] + 800300a: 4b26 ldr r3, [pc, #152] ; (80030a4 ) + 800300c: 2200 movs r2, #0 + 800300e: 601a str r2, [r3, #0] /* Get Start Tick */ tickstart = HAL_GetTick(); - 8001f30: f7ff fc3a bl 80017a8 - 8001f34: 6138 str r0, [r7, #16] + 8003010: f7fe fc3a bl 8001888 + 8003014: 6138 str r0, [r7, #16] /* Wait till HSI is disabled */ while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != RESET) - 8001f36: e008 b.n 8001f4a + 8003016: e008 b.n 800302a { if ((HAL_GetTick() - tickstart) > HSI_TIMEOUT_VALUE) - 8001f38: f7ff fc36 bl 80017a8 - 8001f3c: 4602 mov r2, r0 - 8001f3e: 693b ldr r3, [r7, #16] - 8001f40: 1ad3 subs r3, r2, r3 - 8001f42: 2b02 cmp r3, #2 - 8001f44: d901 bls.n 8001f4a + 8003018: f7fe fc36 bl 8001888 + 800301c: 4602 mov r2, r0 + 800301e: 693b ldr r3, [r7, #16] + 8003020: 1ad3 subs r3, r2, r3 + 8003022: 2b02 cmp r3, #2 + 8003024: d901 bls.n 800302a { return HAL_TIMEOUT; - 8001f46: 2303 movs r3, #3 - 8001f48: e17a b.n 8002240 + 8003026: 2303 movs r3, #3 + 8003028: e17a b.n 8003320 while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != RESET) - 8001f4a: 4b1d ldr r3, [pc, #116] ; (8001fc0 ) - 8001f4c: 681b ldr r3, [r3, #0] - 8001f4e: f003 0302 and.w r3, r3, #2 - 8001f52: 2b00 cmp r3, #0 - 8001f54: d1f0 bne.n 8001f38 + 800302a: 4b1d ldr r3, [pc, #116] ; (80030a0 ) + 800302c: 681b ldr r3, [r3, #0] + 800302e: f003 0302 and.w r3, r3, #2 + 8003032: 2b00 cmp r3, #0 + 8003034: d1f0 bne.n 8003018 } } } } /*------------------------------ LSI Configuration -------------------------*/ if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_LSI) == RCC_OSCILLATORTYPE_LSI) - 8001f56: 687b ldr r3, [r7, #4] - 8001f58: 681b ldr r3, [r3, #0] - 8001f5a: f003 0308 and.w r3, r3, #8 - 8001f5e: 2b00 cmp r3, #0 - 8001f60: d03a beq.n 8001fd8 + 8003036: 687b ldr r3, [r7, #4] + 8003038: 681b ldr r3, [r3, #0] + 800303a: f003 0308 and.w r3, r3, #8 + 800303e: 2b00 cmp r3, #0 + 8003040: d03a beq.n 80030b8 { /* Check the parameters */ assert_param(IS_RCC_LSI(RCC_OscInitStruct->LSIState)); /* Check the LSI State */ if (RCC_OscInitStruct->LSIState != RCC_LSI_OFF) - 8001f62: 687b ldr r3, [r7, #4] - 8001f64: 699b ldr r3, [r3, #24] - 8001f66: 2b00 cmp r3, #0 - 8001f68: d019 beq.n 8001f9e + 8003042: 687b ldr r3, [r7, #4] + 8003044: 699b ldr r3, [r3, #24] + 8003046: 2b00 cmp r3, #0 + 8003048: d019 beq.n 800307e { /* Enable the Internal Low Speed oscillator (LSI). */ __HAL_RCC_LSI_ENABLE(); - 8001f6a: 4b17 ldr r3, [pc, #92] ; (8001fc8 ) - 8001f6c: 2201 movs r2, #1 - 8001f6e: 601a str r2, [r3, #0] + 800304a: 4b17 ldr r3, [pc, #92] ; (80030a8 ) + 800304c: 2201 movs r2, #1 + 800304e: 601a str r2, [r3, #0] /* Get Start Tick */ tickstart = HAL_GetTick(); - 8001f70: f7ff fc1a bl 80017a8 - 8001f74: 6138 str r0, [r7, #16] + 8003050: f7fe fc1a bl 8001888 + 8003054: 6138 str r0, [r7, #16] /* Wait till LSI is ready */ while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) == RESET) - 8001f76: e008 b.n 8001f8a + 8003056: e008 b.n 800306a { if ((HAL_GetTick() - tickstart) > LSI_TIMEOUT_VALUE) - 8001f78: f7ff fc16 bl 80017a8 - 8001f7c: 4602 mov r2, r0 - 8001f7e: 693b ldr r3, [r7, #16] - 8001f80: 1ad3 subs r3, r2, r3 - 8001f82: 2b02 cmp r3, #2 - 8001f84: d901 bls.n 8001f8a + 8003058: f7fe fc16 bl 8001888 + 800305c: 4602 mov r2, r0 + 800305e: 693b ldr r3, [r7, #16] + 8003060: 1ad3 subs r3, r2, r3 + 8003062: 2b02 cmp r3, #2 + 8003064: d901 bls.n 800306a { return HAL_TIMEOUT; - 8001f86: 2303 movs r3, #3 - 8001f88: e15a b.n 8002240 + 8003066: 2303 movs r3, #3 + 8003068: e15a b.n 8003320 while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) == RESET) - 8001f8a: 4b0d ldr r3, [pc, #52] ; (8001fc0 ) - 8001f8c: 6a5b ldr r3, [r3, #36] ; 0x24 - 8001f8e: f003 0302 and.w r3, r3, #2 - 8001f92: 2b00 cmp r3, #0 - 8001f94: d0f0 beq.n 8001f78 + 800306a: 4b0d ldr r3, [pc, #52] ; (80030a0 ) + 800306c: 6a5b ldr r3, [r3, #36] ; 0x24 + 800306e: f003 0302 and.w r3, r3, #2 + 8003072: 2b00 cmp r3, #0 + 8003074: d0f0 beq.n 8003058 } } /* To have a fully stabilized clock in the specified range, a software delay of 1ms should be added.*/ RCC_Delay(1); - 8001f96: 2001 movs r0, #1 - 8001f98: f000 faa6 bl 80024e8 - 8001f9c: e01c b.n 8001fd8 + 8003076: 2001 movs r0, #1 + 8003078: f000 fac4 bl 8003604 + 800307c: e01c b.n 80030b8 } else { /* Disable the Internal Low Speed oscillator (LSI). */ __HAL_RCC_LSI_DISABLE(); - 8001f9e: 4b0a ldr r3, [pc, #40] ; (8001fc8 ) - 8001fa0: 2200 movs r2, #0 - 8001fa2: 601a str r2, [r3, #0] + 800307e: 4b0a ldr r3, [pc, #40] ; (80030a8 ) + 8003080: 2200 movs r2, #0 + 8003082: 601a str r2, [r3, #0] /* Get Start Tick */ tickstart = HAL_GetTick(); - 8001fa4: f7ff fc00 bl 80017a8 - 8001fa8: 6138 str r0, [r7, #16] + 8003084: f7fe fc00 bl 8001888 + 8003088: 6138 str r0, [r7, #16] /* Wait till LSI is disabled */ while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) != RESET) - 8001faa: e00f b.n 8001fcc + 800308a: e00f b.n 80030ac { if ((HAL_GetTick() - tickstart) > LSI_TIMEOUT_VALUE) - 8001fac: f7ff fbfc bl 80017a8 - 8001fb0: 4602 mov r2, r0 - 8001fb2: 693b ldr r3, [r7, #16] - 8001fb4: 1ad3 subs r3, r2, r3 - 8001fb6: 2b02 cmp r3, #2 - 8001fb8: d908 bls.n 8001fcc + 800308c: f7fe fbfc bl 8001888 + 8003090: 4602 mov r2, r0 + 8003092: 693b ldr r3, [r7, #16] + 8003094: 1ad3 subs r3, r2, r3 + 8003096: 2b02 cmp r3, #2 + 8003098: d908 bls.n 80030ac { return HAL_TIMEOUT; - 8001fba: 2303 movs r3, #3 - 8001fbc: e140 b.n 8002240 - 8001fbe: bf00 nop - 8001fc0: 40021000 .word 0x40021000 - 8001fc4: 42420000 .word 0x42420000 - 8001fc8: 42420480 .word 0x42420480 + 800309a: 2303 movs r3, #3 + 800309c: e140 b.n 8003320 + 800309e: bf00 nop + 80030a0: 40021000 .word 0x40021000 + 80030a4: 42420000 .word 0x42420000 + 80030a8: 42420480 .word 0x42420480 while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) != RESET) - 8001fcc: 4b9e ldr r3, [pc, #632] ; (8002248 ) - 8001fce: 6a5b ldr r3, [r3, #36] ; 0x24 - 8001fd0: f003 0302 and.w r3, r3, #2 - 8001fd4: 2b00 cmp r3, #0 - 8001fd6: d1e9 bne.n 8001fac + 80030ac: 4b9e ldr r3, [pc, #632] ; (8003328 ) + 80030ae: 6a5b ldr r3, [r3, #36] ; 0x24 + 80030b0: f003 0302 and.w r3, r3, #2 + 80030b4: 2b00 cmp r3, #0 + 80030b6: d1e9 bne.n 800308c } } } } /*------------------------------ LSE Configuration -------------------------*/ if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_LSE) == RCC_OSCILLATORTYPE_LSE) - 8001fd8: 687b ldr r3, [r7, #4] - 8001fda: 681b ldr r3, [r3, #0] - 8001fdc: f003 0304 and.w r3, r3, #4 - 8001fe0: 2b00 cmp r3, #0 - 8001fe2: f000 80a6 beq.w 8002132 + 80030b8: 687b ldr r3, [r7, #4] + 80030ba: 681b ldr r3, [r3, #0] + 80030bc: f003 0304 and.w r3, r3, #4 + 80030c0: 2b00 cmp r3, #0 + 80030c2: f000 80a6 beq.w 8003212 { FlagStatus pwrclkchanged = RESET; - 8001fe6: 2300 movs r3, #0 - 8001fe8: 75fb strb r3, [r7, #23] + 80030c6: 2300 movs r3, #0 + 80030c8: 75fb strb r3, [r7, #23] /* Check the parameters */ assert_param(IS_RCC_LSE(RCC_OscInitStruct->LSEState)); /* Update LSE configuration in Backup Domain control register */ /* Requires to enable write access to Backup Domain of necessary */ if (__HAL_RCC_PWR_IS_CLK_DISABLED()) - 8001fea: 4b97 ldr r3, [pc, #604] ; (8002248 ) - 8001fec: 69db ldr r3, [r3, #28] - 8001fee: f003 5380 and.w r3, r3, #268435456 ; 0x10000000 - 8001ff2: 2b00 cmp r3, #0 - 8001ff4: d10d bne.n 8002012 + 80030ca: 4b97 ldr r3, [pc, #604] ; (8003328 ) + 80030cc: 69db ldr r3, [r3, #28] + 80030ce: f003 5380 and.w r3, r3, #268435456 ; 0x10000000 + 80030d2: 2b00 cmp r3, #0 + 80030d4: d10d bne.n 80030f2 { __HAL_RCC_PWR_CLK_ENABLE(); - 8001ff6: 4b94 ldr r3, [pc, #592] ; (8002248 ) - 8001ff8: 69db ldr r3, [r3, #28] - 8001ffa: 4a93 ldr r2, [pc, #588] ; (8002248 ) - 8001ffc: f043 5380 orr.w r3, r3, #268435456 ; 0x10000000 - 8002000: 61d3 str r3, [r2, #28] - 8002002: 4b91 ldr r3, [pc, #580] ; (8002248 ) - 8002004: 69db ldr r3, [r3, #28] - 8002006: f003 5380 and.w r3, r3, #268435456 ; 0x10000000 - 800200a: 60bb str r3, [r7, #8] - 800200c: 68bb ldr r3, [r7, #8] + 80030d6: 4b94 ldr r3, [pc, #592] ; (8003328 ) + 80030d8: 69db ldr r3, [r3, #28] + 80030da: 4a93 ldr r2, [pc, #588] ; (8003328 ) + 80030dc: f043 5380 orr.w r3, r3, #268435456 ; 0x10000000 + 80030e0: 61d3 str r3, [r2, #28] + 80030e2: 4b91 ldr r3, [pc, #580] ; (8003328 ) + 80030e4: 69db ldr r3, [r3, #28] + 80030e6: f003 5380 and.w r3, r3, #268435456 ; 0x10000000 + 80030ea: 60bb str r3, [r7, #8] + 80030ec: 68bb ldr r3, [r7, #8] pwrclkchanged = SET; - 800200e: 2301 movs r3, #1 - 8002010: 75fb strb r3, [r7, #23] + 80030ee: 2301 movs r3, #1 + 80030f0: 75fb strb r3, [r7, #23] } if (HAL_IS_BIT_CLR(PWR->CR, PWR_CR_DBP)) - 8002012: 4b8e ldr r3, [pc, #568] ; (800224c ) - 8002014: 681b ldr r3, [r3, #0] - 8002016: f403 7380 and.w r3, r3, #256 ; 0x100 - 800201a: 2b00 cmp r3, #0 - 800201c: d118 bne.n 8002050 + 80030f2: 4b8e ldr r3, [pc, #568] ; (800332c ) + 80030f4: 681b ldr r3, [r3, #0] + 80030f6: f403 7380 and.w r3, r3, #256 ; 0x100 + 80030fa: 2b00 cmp r3, #0 + 80030fc: d118 bne.n 8003130 { /* Enable write access to Backup domain */ SET_BIT(PWR->CR, PWR_CR_DBP); - 800201e: 4b8b ldr r3, [pc, #556] ; (800224c ) - 8002020: 681b ldr r3, [r3, #0] - 8002022: 4a8a ldr r2, [pc, #552] ; (800224c ) - 8002024: f443 7380 orr.w r3, r3, #256 ; 0x100 - 8002028: 6013 str r3, [r2, #0] + 80030fe: 4b8b ldr r3, [pc, #556] ; (800332c ) + 8003100: 681b ldr r3, [r3, #0] + 8003102: 4a8a ldr r2, [pc, #552] ; (800332c ) + 8003104: f443 7380 orr.w r3, r3, #256 ; 0x100 + 8003108: 6013 str r3, [r2, #0] /* Wait for Backup domain Write protection disable */ tickstart = HAL_GetTick(); - 800202a: f7ff fbbd bl 80017a8 - 800202e: 6138 str r0, [r7, #16] + 800310a: f7fe fbbd bl 8001888 + 800310e: 6138 str r0, [r7, #16] while (HAL_IS_BIT_CLR(PWR->CR, PWR_CR_DBP)) - 8002030: e008 b.n 8002044 + 8003110: e008 b.n 8003124 { if ((HAL_GetTick() - tickstart) > RCC_DBP_TIMEOUT_VALUE) - 8002032: f7ff fbb9 bl 80017a8 - 8002036: 4602 mov r2, r0 - 8002038: 693b ldr r3, [r7, #16] - 800203a: 1ad3 subs r3, r2, r3 - 800203c: 2b64 cmp r3, #100 ; 0x64 - 800203e: d901 bls.n 8002044 + 8003112: f7fe fbb9 bl 8001888 + 8003116: 4602 mov r2, r0 + 8003118: 693b ldr r3, [r7, #16] + 800311a: 1ad3 subs r3, r2, r3 + 800311c: 2b64 cmp r3, #100 ; 0x64 + 800311e: d901 bls.n 8003124 { return HAL_TIMEOUT; - 8002040: 2303 movs r3, #3 - 8002042: e0fd b.n 8002240 + 8003120: 2303 movs r3, #3 + 8003122: e0fd b.n 8003320 while (HAL_IS_BIT_CLR(PWR->CR, PWR_CR_DBP)) - 8002044: 4b81 ldr r3, [pc, #516] ; (800224c ) - 8002046: 681b ldr r3, [r3, #0] - 8002048: f403 7380 and.w r3, r3, #256 ; 0x100 - 800204c: 2b00 cmp r3, #0 - 800204e: d0f0 beq.n 8002032 + 8003124: 4b81 ldr r3, [pc, #516] ; (800332c ) + 8003126: 681b ldr r3, [r3, #0] + 8003128: f403 7380 and.w r3, r3, #256 ; 0x100 + 800312c: 2b00 cmp r3, #0 + 800312e: d0f0 beq.n 8003112 } } } /* Set the new LSE configuration -----------------------------------------*/ __HAL_RCC_LSE_CONFIG(RCC_OscInitStruct->LSEState); - 8002050: 687b ldr r3, [r7, #4] - 8002052: 68db ldr r3, [r3, #12] - 8002054: 2b01 cmp r3, #1 - 8002056: d106 bne.n 8002066 - 8002058: 4b7b ldr r3, [pc, #492] ; (8002248 ) - 800205a: 6a1b ldr r3, [r3, #32] - 800205c: 4a7a ldr r2, [pc, #488] ; (8002248 ) - 800205e: f043 0301 orr.w r3, r3, #1 - 8002062: 6213 str r3, [r2, #32] - 8002064: e02d b.n 80020c2 - 8002066: 687b ldr r3, [r7, #4] - 8002068: 68db ldr r3, [r3, #12] - 800206a: 2b00 cmp r3, #0 - 800206c: d10c bne.n 8002088 - 800206e: 4b76 ldr r3, [pc, #472] ; (8002248 ) - 8002070: 6a1b ldr r3, [r3, #32] - 8002072: 4a75 ldr r2, [pc, #468] ; (8002248 ) - 8002074: f023 0301 bic.w r3, r3, #1 - 8002078: 6213 str r3, [r2, #32] - 800207a: 4b73 ldr r3, [pc, #460] ; (8002248 ) - 800207c: 6a1b ldr r3, [r3, #32] - 800207e: 4a72 ldr r2, [pc, #456] ; (8002248 ) - 8002080: f023 0304 bic.w r3, r3, #4 - 8002084: 6213 str r3, [r2, #32] - 8002086: e01c b.n 80020c2 - 8002088: 687b ldr r3, [r7, #4] - 800208a: 68db ldr r3, [r3, #12] - 800208c: 2b05 cmp r3, #5 - 800208e: d10c bne.n 80020aa - 8002090: 4b6d ldr r3, [pc, #436] ; (8002248 ) - 8002092: 6a1b ldr r3, [r3, #32] - 8002094: 4a6c ldr r2, [pc, #432] ; (8002248 ) - 8002096: f043 0304 orr.w r3, r3, #4 - 800209a: 6213 str r3, [r2, #32] - 800209c: 4b6a ldr r3, [pc, #424] ; (8002248 ) - 800209e: 6a1b ldr r3, [r3, #32] - 80020a0: 4a69 ldr r2, [pc, #420] ; (8002248 ) - 80020a2: f043 0301 orr.w r3, r3, #1 - 80020a6: 6213 str r3, [r2, #32] - 80020a8: e00b b.n 80020c2 - 80020aa: 4b67 ldr r3, [pc, #412] ; (8002248 ) - 80020ac: 6a1b ldr r3, [r3, #32] - 80020ae: 4a66 ldr r2, [pc, #408] ; (8002248 ) - 80020b0: f023 0301 bic.w r3, r3, #1 - 80020b4: 6213 str r3, [r2, #32] - 80020b6: 4b64 ldr r3, [pc, #400] ; (8002248 ) - 80020b8: 6a1b ldr r3, [r3, #32] - 80020ba: 4a63 ldr r2, [pc, #396] ; (8002248 ) - 80020bc: f023 0304 bic.w r3, r3, #4 - 80020c0: 6213 str r3, [r2, #32] + 8003130: 687b ldr r3, [r7, #4] + 8003132: 68db ldr r3, [r3, #12] + 8003134: 2b01 cmp r3, #1 + 8003136: d106 bne.n 8003146 + 8003138: 4b7b ldr r3, [pc, #492] ; (8003328 ) + 800313a: 6a1b ldr r3, [r3, #32] + 800313c: 4a7a ldr r2, [pc, #488] ; (8003328 ) + 800313e: f043 0301 orr.w r3, r3, #1 + 8003142: 6213 str r3, [r2, #32] + 8003144: e02d b.n 80031a2 + 8003146: 687b ldr r3, [r7, #4] + 8003148: 68db ldr r3, [r3, #12] + 800314a: 2b00 cmp r3, #0 + 800314c: d10c bne.n 8003168 + 800314e: 4b76 ldr r3, [pc, #472] ; (8003328 ) + 8003150: 6a1b ldr r3, [r3, #32] + 8003152: 4a75 ldr r2, [pc, #468] ; (8003328 ) + 8003154: f023 0301 bic.w r3, r3, #1 + 8003158: 6213 str r3, [r2, #32] + 800315a: 4b73 ldr r3, [pc, #460] ; (8003328 ) + 800315c: 6a1b ldr r3, [r3, #32] + 800315e: 4a72 ldr r2, [pc, #456] ; (8003328 ) + 8003160: f023 0304 bic.w r3, r3, #4 + 8003164: 6213 str r3, [r2, #32] + 8003166: e01c b.n 80031a2 + 8003168: 687b ldr r3, [r7, #4] + 800316a: 68db ldr r3, [r3, #12] + 800316c: 2b05 cmp r3, #5 + 800316e: d10c bne.n 800318a + 8003170: 4b6d ldr r3, [pc, #436] ; (8003328 ) + 8003172: 6a1b ldr r3, [r3, #32] + 8003174: 4a6c ldr r2, [pc, #432] ; (8003328 ) + 8003176: f043 0304 orr.w r3, r3, #4 + 800317a: 6213 str r3, [r2, #32] + 800317c: 4b6a ldr r3, [pc, #424] ; (8003328 ) + 800317e: 6a1b ldr r3, [r3, #32] + 8003180: 4a69 ldr r2, [pc, #420] ; (8003328 ) + 8003182: f043 0301 orr.w r3, r3, #1 + 8003186: 6213 str r3, [r2, #32] + 8003188: e00b b.n 80031a2 + 800318a: 4b67 ldr r3, [pc, #412] ; (8003328 ) + 800318c: 6a1b ldr r3, [r3, #32] + 800318e: 4a66 ldr r2, [pc, #408] ; (8003328 ) + 8003190: f023 0301 bic.w r3, r3, #1 + 8003194: 6213 str r3, [r2, #32] + 8003196: 4b64 ldr r3, [pc, #400] ; (8003328 ) + 8003198: 6a1b ldr r3, [r3, #32] + 800319a: 4a63 ldr r2, [pc, #396] ; (8003328 ) + 800319c: f023 0304 bic.w r3, r3, #4 + 80031a0: 6213 str r3, [r2, #32] /* Check the LSE State */ if (RCC_OscInitStruct->LSEState != RCC_LSE_OFF) - 80020c2: 687b ldr r3, [r7, #4] - 80020c4: 68db ldr r3, [r3, #12] - 80020c6: 2b00 cmp r3, #0 - 80020c8: d015 beq.n 80020f6 + 80031a2: 687b ldr r3, [r7, #4] + 80031a4: 68db ldr r3, [r3, #12] + 80031a6: 2b00 cmp r3, #0 + 80031a8: d015 beq.n 80031d6 { /* Get Start Tick */ tickstart = HAL_GetTick(); - 80020ca: f7ff fb6d bl 80017a8 - 80020ce: 6138 str r0, [r7, #16] + 80031aa: f7fe fb6d bl 8001888 + 80031ae: 6138 str r0, [r7, #16] /* Wait till LSE is ready */ while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) == RESET) - 80020d0: e00a b.n 80020e8 + 80031b0: e00a b.n 80031c8 { if ((HAL_GetTick() - tickstart) > RCC_LSE_TIMEOUT_VALUE) - 80020d2: f7ff fb69 bl 80017a8 - 80020d6: 4602 mov r2, r0 - 80020d8: 693b ldr r3, [r7, #16] - 80020da: 1ad3 subs r3, r2, r3 - 80020dc: f241 3288 movw r2, #5000 ; 0x1388 - 80020e0: 4293 cmp r3, r2 - 80020e2: d901 bls.n 80020e8 + 80031b2: f7fe fb69 bl 8001888 + 80031b6: 4602 mov r2, r0 + 80031b8: 693b ldr r3, [r7, #16] + 80031ba: 1ad3 subs r3, r2, r3 + 80031bc: f241 3288 movw r2, #5000 ; 0x1388 + 80031c0: 4293 cmp r3, r2 + 80031c2: d901 bls.n 80031c8 { return HAL_TIMEOUT; - 80020e4: 2303 movs r3, #3 - 80020e6: e0ab b.n 8002240 + 80031c4: 2303 movs r3, #3 + 80031c6: e0ab b.n 8003320 while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) == RESET) - 80020e8: 4b57 ldr r3, [pc, #348] ; (8002248 ) - 80020ea: 6a1b ldr r3, [r3, #32] - 80020ec: f003 0302 and.w r3, r3, #2 - 80020f0: 2b00 cmp r3, #0 - 80020f2: d0ee beq.n 80020d2 - 80020f4: e014 b.n 8002120 + 80031c8: 4b57 ldr r3, [pc, #348] ; (8003328 ) + 80031ca: 6a1b ldr r3, [r3, #32] + 80031cc: f003 0302 and.w r3, r3, #2 + 80031d0: 2b00 cmp r3, #0 + 80031d2: d0ee beq.n 80031b2 + 80031d4: e014 b.n 8003200 } } else { /* Get Start Tick */ tickstart = HAL_GetTick(); - 80020f6: f7ff fb57 bl 80017a8 - 80020fa: 6138 str r0, [r7, #16] + 80031d6: f7fe fb57 bl 8001888 + 80031da: 6138 str r0, [r7, #16] /* Wait till LSE is disabled */ while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) != RESET) - 80020fc: e00a b.n 8002114 + 80031dc: e00a b.n 80031f4 { if ((HAL_GetTick() - tickstart) > RCC_LSE_TIMEOUT_VALUE) - 80020fe: f7ff fb53 bl 80017a8 - 8002102: 4602 mov r2, r0 - 8002104: 693b ldr r3, [r7, #16] - 8002106: 1ad3 subs r3, r2, r3 - 8002108: f241 3288 movw r2, #5000 ; 0x1388 - 800210c: 4293 cmp r3, r2 - 800210e: d901 bls.n 8002114 + 80031de: f7fe fb53 bl 8001888 + 80031e2: 4602 mov r2, r0 + 80031e4: 693b ldr r3, [r7, #16] + 80031e6: 1ad3 subs r3, r2, r3 + 80031e8: f241 3288 movw r2, #5000 ; 0x1388 + 80031ec: 4293 cmp r3, r2 + 80031ee: d901 bls.n 80031f4 { return HAL_TIMEOUT; - 8002110: 2303 movs r3, #3 - 8002112: e095 b.n 8002240 + 80031f0: 2303 movs r3, #3 + 80031f2: e095 b.n 8003320 while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) != RESET) - 8002114: 4b4c ldr r3, [pc, #304] ; (8002248 ) - 8002116: 6a1b ldr r3, [r3, #32] - 8002118: f003 0302 and.w r3, r3, #2 - 800211c: 2b00 cmp r3, #0 - 800211e: d1ee bne.n 80020fe + 80031f4: 4b4c ldr r3, [pc, #304] ; (8003328 ) + 80031f6: 6a1b ldr r3, [r3, #32] + 80031f8: f003 0302 and.w r3, r3, #2 + 80031fc: 2b00 cmp r3, #0 + 80031fe: d1ee bne.n 80031de } } } /* Require to disable power clock if necessary */ if (pwrclkchanged == SET) - 8002120: 7dfb ldrb r3, [r7, #23] - 8002122: 2b01 cmp r3, #1 - 8002124: d105 bne.n 8002132 + 8003200: 7dfb ldrb r3, [r7, #23] + 8003202: 2b01 cmp r3, #1 + 8003204: d105 bne.n 8003212 { __HAL_RCC_PWR_CLK_DISABLE(); - 8002126: 4b48 ldr r3, [pc, #288] ; (8002248 ) - 8002128: 69db ldr r3, [r3, #28] - 800212a: 4a47 ldr r2, [pc, #284] ; (8002248 ) - 800212c: f023 5380 bic.w r3, r3, #268435456 ; 0x10000000 - 8002130: 61d3 str r3, [r2, #28] + 8003206: 4b48 ldr r3, [pc, #288] ; (8003328 ) + 8003208: 69db ldr r3, [r3, #28] + 800320a: 4a47 ldr r2, [pc, #284] ; (8003328 ) + 800320c: f023 5380 bic.w r3, r3, #268435456 ; 0x10000000 + 8003210: 61d3 str r3, [r2, #28] #endif /* RCC_CR_PLL2ON */ /*-------------------------------- PLL Configuration -----------------------*/ /* Check the parameters */ assert_param(IS_RCC_PLL(RCC_OscInitStruct->PLL.PLLState)); if ((RCC_OscInitStruct->PLL.PLLState) != RCC_PLL_NONE) - 8002132: 687b ldr r3, [r7, #4] - 8002134: 69db ldr r3, [r3, #28] - 8002136: 2b00 cmp r3, #0 - 8002138: f000 8081 beq.w 800223e + 8003212: 687b ldr r3, [r7, #4] + 8003214: 69db ldr r3, [r3, #28] + 8003216: 2b00 cmp r3, #0 + 8003218: f000 8081 beq.w 800331e { /* Check if the PLL is used as system clock or not */ if (__HAL_RCC_GET_SYSCLK_SOURCE() != RCC_SYSCLKSOURCE_STATUS_PLLCLK) - 800213c: 4b42 ldr r3, [pc, #264] ; (8002248 ) - 800213e: 685b ldr r3, [r3, #4] - 8002140: f003 030c and.w r3, r3, #12 - 8002144: 2b08 cmp r3, #8 - 8002146: d061 beq.n 800220c + 800321c: 4b42 ldr r3, [pc, #264] ; (8003328 ) + 800321e: 685b ldr r3, [r3, #4] + 8003220: f003 030c and.w r3, r3, #12 + 8003224: 2b08 cmp r3, #8 + 8003226: d061 beq.n 80032ec { if ((RCC_OscInitStruct->PLL.PLLState) == RCC_PLL_ON) - 8002148: 687b ldr r3, [r7, #4] - 800214a: 69db ldr r3, [r3, #28] - 800214c: 2b02 cmp r3, #2 - 800214e: d146 bne.n 80021de + 8003228: 687b ldr r3, [r7, #4] + 800322a: 69db ldr r3, [r3, #28] + 800322c: 2b02 cmp r3, #2 + 800322e: d146 bne.n 80032be /* Check the parameters */ assert_param(IS_RCC_PLLSOURCE(RCC_OscInitStruct->PLL.PLLSource)); assert_param(IS_RCC_PLL_MUL(RCC_OscInitStruct->PLL.PLLMUL)); /* Disable the main PLL. */ __HAL_RCC_PLL_DISABLE(); - 8002150: 4b3f ldr r3, [pc, #252] ; (8002250 ) - 8002152: 2200 movs r2, #0 - 8002154: 601a str r2, [r3, #0] + 8003230: 4b3f ldr r3, [pc, #252] ; (8003330 ) + 8003232: 2200 movs r2, #0 + 8003234: 601a str r2, [r3, #0] /* Get Start Tick */ tickstart = HAL_GetTick(); - 8002156: f7ff fb27 bl 80017a8 - 800215a: 6138 str r0, [r7, #16] + 8003236: f7fe fb27 bl 8001888 + 800323a: 6138 str r0, [r7, #16] /* Wait till PLL is disabled */ while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != RESET) - 800215c: e008 b.n 8002170 + 800323c: e008 b.n 8003250 { if ((HAL_GetTick() - tickstart) > PLL_TIMEOUT_VALUE) - 800215e: f7ff fb23 bl 80017a8 - 8002162: 4602 mov r2, r0 - 8002164: 693b ldr r3, [r7, #16] - 8002166: 1ad3 subs r3, r2, r3 - 8002168: 2b02 cmp r3, #2 - 800216a: d901 bls.n 8002170 + 800323e: f7fe fb23 bl 8001888 + 8003242: 4602 mov r2, r0 + 8003244: 693b ldr r3, [r7, #16] + 8003246: 1ad3 subs r3, r2, r3 + 8003248: 2b02 cmp r3, #2 + 800324a: d901 bls.n 8003250 { return HAL_TIMEOUT; - 800216c: 2303 movs r3, #3 - 800216e: e067 b.n 8002240 + 800324c: 2303 movs r3, #3 + 800324e: e067 b.n 8003320 while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != RESET) - 8002170: 4b35 ldr r3, [pc, #212] ; (8002248 ) - 8002172: 681b ldr r3, [r3, #0] - 8002174: f003 7300 and.w r3, r3, #33554432 ; 0x2000000 - 8002178: 2b00 cmp r3, #0 - 800217a: d1f0 bne.n 800215e + 8003250: 4b35 ldr r3, [pc, #212] ; (8003328 ) + 8003252: 681b ldr r3, [r3, #0] + 8003254: f003 7300 and.w r3, r3, #33554432 ; 0x2000000 + 8003258: 2b00 cmp r3, #0 + 800325a: d1f0 bne.n 800323e } } /* Configure the HSE prediv factor --------------------------------*/ /* It can be written only when the PLL is disabled. Not used in PLL source is different than HSE */ if (RCC_OscInitStruct->PLL.PLLSource == RCC_PLLSOURCE_HSE) - 800217c: 687b ldr r3, [r7, #4] - 800217e: 6a1b ldr r3, [r3, #32] - 8002180: f5b3 3f80 cmp.w r3, #65536 ; 0x10000 - 8002184: d108 bne.n 8002198 + 800325c: 687b ldr r3, [r7, #4] + 800325e: 6a1b ldr r3, [r3, #32] + 8003260: f5b3 3f80 cmp.w r3, #65536 ; 0x10000 + 8003264: d108 bne.n 8003278 /* Set PREDIV1 source */ SET_BIT(RCC->CFGR2, RCC_OscInitStruct->Prediv1Source); #endif /* RCC_CFGR2_PREDIV1SRC */ /* Set PREDIV1 Value */ __HAL_RCC_HSE_PREDIV_CONFIG(RCC_OscInitStruct->HSEPredivValue); - 8002186: 4b30 ldr r3, [pc, #192] ; (8002248 ) - 8002188: 685b ldr r3, [r3, #4] - 800218a: f423 3200 bic.w r2, r3, #131072 ; 0x20000 - 800218e: 687b ldr r3, [r7, #4] - 8002190: 689b ldr r3, [r3, #8] - 8002192: 492d ldr r1, [pc, #180] ; (8002248 ) - 8002194: 4313 orrs r3, r2 - 8002196: 604b str r3, [r1, #4] + 8003266: 4b30 ldr r3, [pc, #192] ; (8003328 ) + 8003268: 685b ldr r3, [r3, #4] + 800326a: f423 3200 bic.w r2, r3, #131072 ; 0x20000 + 800326e: 687b ldr r3, [r7, #4] + 8003270: 689b ldr r3, [r3, #8] + 8003272: 492d ldr r1, [pc, #180] ; (8003328 ) + 8003274: 4313 orrs r3, r2 + 8003276: 604b str r3, [r1, #4] } /* Configure the main PLL clock source and multiplication factors. */ __HAL_RCC_PLL_CONFIG(RCC_OscInitStruct->PLL.PLLSource, - 8002198: 4b2b ldr r3, [pc, #172] ; (8002248 ) - 800219a: 685b ldr r3, [r3, #4] - 800219c: f423 1274 bic.w r2, r3, #3997696 ; 0x3d0000 - 80021a0: 687b ldr r3, [r7, #4] - 80021a2: 6a19 ldr r1, [r3, #32] - 80021a4: 687b ldr r3, [r7, #4] - 80021a6: 6a5b ldr r3, [r3, #36] ; 0x24 - 80021a8: 430b orrs r3, r1 - 80021aa: 4927 ldr r1, [pc, #156] ; (8002248 ) - 80021ac: 4313 orrs r3, r2 - 80021ae: 604b str r3, [r1, #4] + 8003278: 4b2b ldr r3, [pc, #172] ; (8003328 ) + 800327a: 685b ldr r3, [r3, #4] + 800327c: f423 1274 bic.w r2, r3, #3997696 ; 0x3d0000 + 8003280: 687b ldr r3, [r7, #4] + 8003282: 6a19 ldr r1, [r3, #32] + 8003284: 687b ldr r3, [r7, #4] + 8003286: 6a5b ldr r3, [r3, #36] ; 0x24 + 8003288: 430b orrs r3, r1 + 800328a: 4927 ldr r1, [pc, #156] ; (8003328 ) + 800328c: 4313 orrs r3, r2 + 800328e: 604b str r3, [r1, #4] RCC_OscInitStruct->PLL.PLLMUL); /* Enable the main PLL. */ __HAL_RCC_PLL_ENABLE(); - 80021b0: 4b27 ldr r3, [pc, #156] ; (8002250 ) - 80021b2: 2201 movs r2, #1 - 80021b4: 601a str r2, [r3, #0] + 8003290: 4b27 ldr r3, [pc, #156] ; (8003330 ) + 8003292: 2201 movs r2, #1 + 8003294: 601a str r2, [r3, #0] /* Get Start Tick */ tickstart = HAL_GetTick(); - 80021b6: f7ff faf7 bl 80017a8 - 80021ba: 6138 str r0, [r7, #16] + 8003296: f7fe faf7 bl 8001888 + 800329a: 6138 str r0, [r7, #16] /* Wait till PLL is ready */ while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) == RESET) - 80021bc: e008 b.n 80021d0 + 800329c: e008 b.n 80032b0 { if ((HAL_GetTick() - tickstart) > PLL_TIMEOUT_VALUE) - 80021be: f7ff faf3 bl 80017a8 - 80021c2: 4602 mov r2, r0 - 80021c4: 693b ldr r3, [r7, #16] - 80021c6: 1ad3 subs r3, r2, r3 - 80021c8: 2b02 cmp r3, #2 - 80021ca: d901 bls.n 80021d0 + 800329e: f7fe faf3 bl 8001888 + 80032a2: 4602 mov r2, r0 + 80032a4: 693b ldr r3, [r7, #16] + 80032a6: 1ad3 subs r3, r2, r3 + 80032a8: 2b02 cmp r3, #2 + 80032aa: d901 bls.n 80032b0 { return HAL_TIMEOUT; - 80021cc: 2303 movs r3, #3 - 80021ce: e037 b.n 8002240 + 80032ac: 2303 movs r3, #3 + 80032ae: e037 b.n 8003320 while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) == RESET) - 80021d0: 4b1d ldr r3, [pc, #116] ; (8002248 ) - 80021d2: 681b ldr r3, [r3, #0] - 80021d4: f003 7300 and.w r3, r3, #33554432 ; 0x2000000 - 80021d8: 2b00 cmp r3, #0 - 80021da: d0f0 beq.n 80021be - 80021dc: e02f b.n 800223e + 80032b0: 4b1d ldr r3, [pc, #116] ; (8003328 ) + 80032b2: 681b ldr r3, [r3, #0] + 80032b4: f003 7300 and.w r3, r3, #33554432 ; 0x2000000 + 80032b8: 2b00 cmp r3, #0 + 80032ba: d0f0 beq.n 800329e + 80032bc: e02f b.n 800331e } } else { /* Disable the main PLL. */ __HAL_RCC_PLL_DISABLE(); - 80021de: 4b1c ldr r3, [pc, #112] ; (8002250 ) - 80021e0: 2200 movs r2, #0 - 80021e2: 601a str r2, [r3, #0] + 80032be: 4b1c ldr r3, [pc, #112] ; (8003330 ) + 80032c0: 2200 movs r2, #0 + 80032c2: 601a str r2, [r3, #0] /* Get Start Tick */ tickstart = HAL_GetTick(); - 80021e4: f7ff fae0 bl 80017a8 - 80021e8: 6138 str r0, [r7, #16] + 80032c4: f7fe fae0 bl 8001888 + 80032c8: 6138 str r0, [r7, #16] /* Wait till PLL is disabled */ while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != RESET) - 80021ea: e008 b.n 80021fe + 80032ca: e008 b.n 80032de { if ((HAL_GetTick() - tickstart) > PLL_TIMEOUT_VALUE) - 80021ec: f7ff fadc bl 80017a8 - 80021f0: 4602 mov r2, r0 - 80021f2: 693b ldr r3, [r7, #16] - 80021f4: 1ad3 subs r3, r2, r3 - 80021f6: 2b02 cmp r3, #2 - 80021f8: d901 bls.n 80021fe + 80032cc: f7fe fadc bl 8001888 + 80032d0: 4602 mov r2, r0 + 80032d2: 693b ldr r3, [r7, #16] + 80032d4: 1ad3 subs r3, r2, r3 + 80032d6: 2b02 cmp r3, #2 + 80032d8: d901 bls.n 80032de { return HAL_TIMEOUT; - 80021fa: 2303 movs r3, #3 - 80021fc: e020 b.n 8002240 + 80032da: 2303 movs r3, #3 + 80032dc: e020 b.n 8003320 while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != RESET) - 80021fe: 4b12 ldr r3, [pc, #72] ; (8002248 ) - 8002200: 681b ldr r3, [r3, #0] - 8002202: f003 7300 and.w r3, r3, #33554432 ; 0x2000000 - 8002206: 2b00 cmp r3, #0 - 8002208: d1f0 bne.n 80021ec - 800220a: e018 b.n 800223e + 80032de: 4b12 ldr r3, [pc, #72] ; (8003328 ) + 80032e0: 681b ldr r3, [r3, #0] + 80032e2: f003 7300 and.w r3, r3, #33554432 ; 0x2000000 + 80032e6: 2b00 cmp r3, #0 + 80032e8: d1f0 bne.n 80032cc + 80032ea: e018 b.n 800331e } } else { /* Check if there is a request to disable the PLL used as System clock source */ if ((RCC_OscInitStruct->PLL.PLLState) == RCC_PLL_OFF) - 800220c: 687b ldr r3, [r7, #4] - 800220e: 69db ldr r3, [r3, #28] - 8002210: 2b01 cmp r3, #1 - 8002212: d101 bne.n 8002218 + 80032ec: 687b ldr r3, [r7, #4] + 80032ee: 69db ldr r3, [r3, #28] + 80032f0: 2b01 cmp r3, #1 + 80032f2: d101 bne.n 80032f8 { return HAL_ERROR; - 8002214: 2301 movs r3, #1 - 8002216: e013 b.n 8002240 + 80032f4: 2301 movs r3, #1 + 80032f6: e013 b.n 8003320 } else { /* Do not return HAL_ERROR if request repeats the current configuration */ pll_config = RCC->CFGR; - 8002218: 4b0b ldr r3, [pc, #44] ; (8002248 ) - 800221a: 685b ldr r3, [r3, #4] - 800221c: 60fb str r3, [r7, #12] + 80032f8: 4b0b ldr r3, [pc, #44] ; (8003328 ) + 80032fa: 685b ldr r3, [r3, #4] + 80032fc: 60fb str r3, [r7, #12] if ((READ_BIT(pll_config, RCC_CFGR_PLLSRC) != RCC_OscInitStruct->PLL.PLLSource) || - 800221e: 68fb ldr r3, [r7, #12] - 8002220: f403 3280 and.w r2, r3, #65536 ; 0x10000 - 8002224: 687b ldr r3, [r7, #4] - 8002226: 6a1b ldr r3, [r3, #32] - 8002228: 429a cmp r2, r3 - 800222a: d106 bne.n 800223a + 80032fe: 68fb ldr r3, [r7, #12] + 8003300: f403 3280 and.w r2, r3, #65536 ; 0x10000 + 8003304: 687b ldr r3, [r7, #4] + 8003306: 6a1b ldr r3, [r3, #32] + 8003308: 429a cmp r2, r3 + 800330a: d106 bne.n 800331a (READ_BIT(pll_config, RCC_CFGR_PLLMULL) != RCC_OscInitStruct->PLL.PLLMUL)) - 800222c: 68fb ldr r3, [r7, #12] - 800222e: f403 1270 and.w r2, r3, #3932160 ; 0x3c0000 - 8002232: 687b ldr r3, [r7, #4] - 8002234: 6a5b ldr r3, [r3, #36] ; 0x24 + 800330c: 68fb ldr r3, [r7, #12] + 800330e: f403 1270 and.w r2, r3, #3932160 ; 0x3c0000 + 8003312: 687b ldr r3, [r7, #4] + 8003314: 6a5b ldr r3, [r3, #36] ; 0x24 if ((READ_BIT(pll_config, RCC_CFGR_PLLSRC) != RCC_OscInitStruct->PLL.PLLSource) || - 8002236: 429a cmp r2, r3 - 8002238: d001 beq.n 800223e + 8003316: 429a cmp r2, r3 + 8003318: d001 beq.n 800331e { return HAL_ERROR; - 800223a: 2301 movs r3, #1 - 800223c: e000 b.n 8002240 + 800331a: 2301 movs r3, #1 + 800331c: e000 b.n 8003320 } } } } return HAL_OK; - 800223e: 2300 movs r3, #0 + 800331e: 2300 movs r3, #0 } - 8002240: 4618 mov r0, r3 - 8002242: 3718 adds r7, #24 - 8002244: 46bd mov sp, r7 - 8002246: bd80 pop {r7, pc} - 8002248: 40021000 .word 0x40021000 - 800224c: 40007000 .word 0x40007000 - 8002250: 42420060 .word 0x42420060 + 8003320: 4618 mov r0, r3 + 8003322: 3718 adds r7, #24 + 8003324: 46bd mov sp, r7 + 8003326: bd80 pop {r7, pc} + 8003328: 40021000 .word 0x40021000 + 800332c: 40007000 .word 0x40007000 + 8003330: 42420060 .word 0x42420060 -08002254 : +08003334 : * You can use @ref HAL_RCC_GetClockConfig() function to know which clock is * currently used as system clock source. * @retval HAL status */ HAL_StatusTypeDef HAL_RCC_ClockConfig(RCC_ClkInitTypeDef *RCC_ClkInitStruct, uint32_t FLatency) { - 8002254: b580 push {r7, lr} - 8002256: b084 sub sp, #16 - 8002258: af00 add r7, sp, #0 - 800225a: 6078 str r0, [r7, #4] - 800225c: 6039 str r1, [r7, #0] + 8003334: b580 push {r7, lr} + 8003336: b084 sub sp, #16 + 8003338: af00 add r7, sp, #0 + 800333a: 6078 str r0, [r7, #4] + 800333c: 6039 str r1, [r7, #0] uint32_t tickstart; /* Check Null pointer */ if (RCC_ClkInitStruct == NULL) - 800225e: 687b ldr r3, [r7, #4] - 8002260: 2b00 cmp r3, #0 - 8002262: d101 bne.n 8002268 + 800333e: 687b ldr r3, [r7, #4] + 8003340: 2b00 cmp r3, #0 + 8003342: d101 bne.n 8003348 { return HAL_ERROR; - 8002264: 2301 movs r3, #1 - 8002266: e0d0 b.n 800240a + 8003344: 2301 movs r3, #1 + 8003346: e0d0 b.n 80034ea must be correctly programmed according to the frequency of the CPU clock (HCLK) of the device. */ #if defined(FLASH_ACR_LATENCY) /* Increasing the number of wait states because of higher CPU frequency */ if (FLatency > __HAL_FLASH_GET_LATENCY()) - 8002268: 4b6a ldr r3, [pc, #424] ; (8002414 ) - 800226a: 681b ldr r3, [r3, #0] - 800226c: f003 0307 and.w r3, r3, #7 - 8002270: 683a ldr r2, [r7, #0] - 8002272: 429a cmp r2, r3 - 8002274: d910 bls.n 8002298 + 8003348: 4b6a ldr r3, [pc, #424] ; (80034f4 ) + 800334a: 681b ldr r3, [r3, #0] + 800334c: f003 0307 and.w r3, r3, #7 + 8003350: 683a ldr r2, [r7, #0] + 8003352: 429a cmp r2, r3 + 8003354: d910 bls.n 8003378 { /* Program the new number of wait states to the LATENCY bits in the FLASH_ACR register */ __HAL_FLASH_SET_LATENCY(FLatency); - 8002276: 4b67 ldr r3, [pc, #412] ; (8002414 ) - 8002278: 681b ldr r3, [r3, #0] - 800227a: f023 0207 bic.w r2, r3, #7 - 800227e: 4965 ldr r1, [pc, #404] ; (8002414 ) - 8002280: 683b ldr r3, [r7, #0] - 8002282: 4313 orrs r3, r2 - 8002284: 600b str r3, [r1, #0] + 8003356: 4b67 ldr r3, [pc, #412] ; (80034f4 ) + 8003358: 681b ldr r3, [r3, #0] + 800335a: f023 0207 bic.w r2, r3, #7 + 800335e: 4965 ldr r1, [pc, #404] ; (80034f4 ) + 8003360: 683b ldr r3, [r7, #0] + 8003362: 4313 orrs r3, r2 + 8003364: 600b str r3, [r1, #0] /* Check that the new number of wait states is taken into account to access the Flash memory by reading the FLASH_ACR register */ if (__HAL_FLASH_GET_LATENCY() != FLatency) - 8002286: 4b63 ldr r3, [pc, #396] ; (8002414 ) - 8002288: 681b ldr r3, [r3, #0] - 800228a: f003 0307 and.w r3, r3, #7 - 800228e: 683a ldr r2, [r7, #0] - 8002290: 429a cmp r2, r3 - 8002292: d001 beq.n 8002298 + 8003366: 4b63 ldr r3, [pc, #396] ; (80034f4 ) + 8003368: 681b ldr r3, [r3, #0] + 800336a: f003 0307 and.w r3, r3, #7 + 800336e: 683a ldr r2, [r7, #0] + 8003370: 429a cmp r2, r3 + 8003372: d001 beq.n 8003378 { return HAL_ERROR; - 8002294: 2301 movs r3, #1 - 8002296: e0b8 b.n 800240a + 8003374: 2301 movs r3, #1 + 8003376: e0b8 b.n 80034ea } } #endif /* FLASH_ACR_LATENCY */ /*-------------------------- HCLK Configuration --------------------------*/ if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_HCLK) == RCC_CLOCKTYPE_HCLK) - 8002298: 687b ldr r3, [r7, #4] - 800229a: 681b ldr r3, [r3, #0] - 800229c: f003 0302 and.w r3, r3, #2 - 80022a0: 2b00 cmp r3, #0 - 80022a2: d020 beq.n 80022e6 + 8003378: 687b ldr r3, [r7, #4] + 800337a: 681b ldr r3, [r3, #0] + 800337c: f003 0302 and.w r3, r3, #2 + 8003380: 2b00 cmp r3, #0 + 8003382: d020 beq.n 80033c6 { /* Set the highest APBx dividers in order to ensure that we do not go through a non-spec phase whatever we decrease or increase HCLK. */ if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_PCLK1) == RCC_CLOCKTYPE_PCLK1) - 80022a4: 687b ldr r3, [r7, #4] - 80022a6: 681b ldr r3, [r3, #0] - 80022a8: f003 0304 and.w r3, r3, #4 - 80022ac: 2b00 cmp r3, #0 - 80022ae: d005 beq.n 80022bc + 8003384: 687b ldr r3, [r7, #4] + 8003386: 681b ldr r3, [r3, #0] + 8003388: f003 0304 and.w r3, r3, #4 + 800338c: 2b00 cmp r3, #0 + 800338e: d005 beq.n 800339c { MODIFY_REG(RCC->CFGR, RCC_CFGR_PPRE1, RCC_HCLK_DIV16); - 80022b0: 4b59 ldr r3, [pc, #356] ; (8002418 ) - 80022b2: 685b ldr r3, [r3, #4] - 80022b4: 4a58 ldr r2, [pc, #352] ; (8002418 ) - 80022b6: f443 63e0 orr.w r3, r3, #1792 ; 0x700 - 80022ba: 6053 str r3, [r2, #4] + 8003390: 4b59 ldr r3, [pc, #356] ; (80034f8 ) + 8003392: 685b ldr r3, [r3, #4] + 8003394: 4a58 ldr r2, [pc, #352] ; (80034f8 ) + 8003396: f443 63e0 orr.w r3, r3, #1792 ; 0x700 + 800339a: 6053 str r3, [r2, #4] } if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_PCLK2) == RCC_CLOCKTYPE_PCLK2) - 80022bc: 687b ldr r3, [r7, #4] - 80022be: 681b ldr r3, [r3, #0] - 80022c0: f003 0308 and.w r3, r3, #8 - 80022c4: 2b00 cmp r3, #0 - 80022c6: d005 beq.n 80022d4 + 800339c: 687b ldr r3, [r7, #4] + 800339e: 681b ldr r3, [r3, #0] + 80033a0: f003 0308 and.w r3, r3, #8 + 80033a4: 2b00 cmp r3, #0 + 80033a6: d005 beq.n 80033b4 { MODIFY_REG(RCC->CFGR, RCC_CFGR_PPRE2, (RCC_HCLK_DIV16 << 3)); - 80022c8: 4b53 ldr r3, [pc, #332] ; (8002418 ) - 80022ca: 685b ldr r3, [r3, #4] - 80022cc: 4a52 ldr r2, [pc, #328] ; (8002418 ) - 80022ce: f443 5360 orr.w r3, r3, #14336 ; 0x3800 - 80022d2: 6053 str r3, [r2, #4] + 80033a8: 4b53 ldr r3, [pc, #332] ; (80034f8 ) + 80033aa: 685b ldr r3, [r3, #4] + 80033ac: 4a52 ldr r2, [pc, #328] ; (80034f8 ) + 80033ae: f443 5360 orr.w r3, r3, #14336 ; 0x3800 + 80033b2: 6053 str r3, [r2, #4] } /* Set the new HCLK clock divider */ assert_param(IS_RCC_HCLK(RCC_ClkInitStruct->AHBCLKDivider)); MODIFY_REG(RCC->CFGR, RCC_CFGR_HPRE, RCC_ClkInitStruct->AHBCLKDivider); - 80022d4: 4b50 ldr r3, [pc, #320] ; (8002418 ) - 80022d6: 685b ldr r3, [r3, #4] - 80022d8: f023 02f0 bic.w r2, r3, #240 ; 0xf0 - 80022dc: 687b ldr r3, [r7, #4] - 80022de: 689b ldr r3, [r3, #8] - 80022e0: 494d ldr r1, [pc, #308] ; (8002418 ) - 80022e2: 4313 orrs r3, r2 - 80022e4: 604b str r3, [r1, #4] + 80033b4: 4b50 ldr r3, [pc, #320] ; (80034f8 ) + 80033b6: 685b ldr r3, [r3, #4] + 80033b8: f023 02f0 bic.w r2, r3, #240 ; 0xf0 + 80033bc: 687b ldr r3, [r7, #4] + 80033be: 689b ldr r3, [r3, #8] + 80033c0: 494d ldr r1, [pc, #308] ; (80034f8 ) + 80033c2: 4313 orrs r3, r2 + 80033c4: 604b str r3, [r1, #4] } /*------------------------- SYSCLK Configuration ---------------------------*/ if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_SYSCLK) == RCC_CLOCKTYPE_SYSCLK) - 80022e6: 687b ldr r3, [r7, #4] - 80022e8: 681b ldr r3, [r3, #0] - 80022ea: f003 0301 and.w r3, r3, #1 - 80022ee: 2b00 cmp r3, #0 - 80022f0: d040 beq.n 8002374 + 80033c6: 687b ldr r3, [r7, #4] + 80033c8: 681b ldr r3, [r3, #0] + 80033ca: f003 0301 and.w r3, r3, #1 + 80033ce: 2b00 cmp r3, #0 + 80033d0: d040 beq.n 8003454 { assert_param(IS_RCC_SYSCLKSOURCE(RCC_ClkInitStruct->SYSCLKSource)); /* HSE is selected as System Clock Source */ if (RCC_ClkInitStruct->SYSCLKSource == RCC_SYSCLKSOURCE_HSE) - 80022f2: 687b ldr r3, [r7, #4] - 80022f4: 685b ldr r3, [r3, #4] - 80022f6: 2b01 cmp r3, #1 - 80022f8: d107 bne.n 800230a + 80033d2: 687b ldr r3, [r7, #4] + 80033d4: 685b ldr r3, [r3, #4] + 80033d6: 2b01 cmp r3, #1 + 80033d8: d107 bne.n 80033ea { /* Check the HSE ready flag */ if (__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) == RESET) - 80022fa: 4b47 ldr r3, [pc, #284] ; (8002418 ) - 80022fc: 681b ldr r3, [r3, #0] - 80022fe: f403 3300 and.w r3, r3, #131072 ; 0x20000 - 8002302: 2b00 cmp r3, #0 - 8002304: d115 bne.n 8002332 + 80033da: 4b47 ldr r3, [pc, #284] ; (80034f8 ) + 80033dc: 681b ldr r3, [r3, #0] + 80033de: f403 3300 and.w r3, r3, #131072 ; 0x20000 + 80033e2: 2b00 cmp r3, #0 + 80033e4: d115 bne.n 8003412 { return HAL_ERROR; - 8002306: 2301 movs r3, #1 - 8002308: e07f b.n 800240a + 80033e6: 2301 movs r3, #1 + 80033e8: e07f b.n 80034ea } } /* PLL is selected as System Clock Source */ else if (RCC_ClkInitStruct->SYSCLKSource == RCC_SYSCLKSOURCE_PLLCLK) - 800230a: 687b ldr r3, [r7, #4] - 800230c: 685b ldr r3, [r3, #4] - 800230e: 2b02 cmp r3, #2 - 8002310: d107 bne.n 8002322 + 80033ea: 687b ldr r3, [r7, #4] + 80033ec: 685b ldr r3, [r3, #4] + 80033ee: 2b02 cmp r3, #2 + 80033f0: d107 bne.n 8003402 { /* Check the PLL ready flag */ if (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) == RESET) - 8002312: 4b41 ldr r3, [pc, #260] ; (8002418 ) - 8002314: 681b ldr r3, [r3, #0] - 8002316: f003 7300 and.w r3, r3, #33554432 ; 0x2000000 - 800231a: 2b00 cmp r3, #0 - 800231c: d109 bne.n 8002332 + 80033f2: 4b41 ldr r3, [pc, #260] ; (80034f8 ) + 80033f4: 681b ldr r3, [r3, #0] + 80033f6: f003 7300 and.w r3, r3, #33554432 ; 0x2000000 + 80033fa: 2b00 cmp r3, #0 + 80033fc: d109 bne.n 8003412 { return HAL_ERROR; - 800231e: 2301 movs r3, #1 - 8002320: e073 b.n 800240a + 80033fe: 2301 movs r3, #1 + 8003400: e073 b.n 80034ea } /* HSI is selected as System Clock Source */ else { /* Check the HSI ready flag */ if (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) == RESET) - 8002322: 4b3d ldr r3, [pc, #244] ; (8002418 ) - 8002324: 681b ldr r3, [r3, #0] - 8002326: f003 0302 and.w r3, r3, #2 - 800232a: 2b00 cmp r3, #0 - 800232c: d101 bne.n 8002332 + 8003402: 4b3d ldr r3, [pc, #244] ; (80034f8 ) + 8003404: 681b ldr r3, [r3, #0] + 8003406: f003 0302 and.w r3, r3, #2 + 800340a: 2b00 cmp r3, #0 + 800340c: d101 bne.n 8003412 { return HAL_ERROR; - 800232e: 2301 movs r3, #1 - 8002330: e06b b.n 800240a + 800340e: 2301 movs r3, #1 + 8003410: e06b b.n 80034ea } } __HAL_RCC_SYSCLK_CONFIG(RCC_ClkInitStruct->SYSCLKSource); - 8002332: 4b39 ldr r3, [pc, #228] ; (8002418 ) - 8002334: 685b ldr r3, [r3, #4] - 8002336: f023 0203 bic.w r2, r3, #3 - 800233a: 687b ldr r3, [r7, #4] - 800233c: 685b ldr r3, [r3, #4] - 800233e: 4936 ldr r1, [pc, #216] ; (8002418 ) - 8002340: 4313 orrs r3, r2 - 8002342: 604b str r3, [r1, #4] + 8003412: 4b39 ldr r3, [pc, #228] ; (80034f8 ) + 8003414: 685b ldr r3, [r3, #4] + 8003416: f023 0203 bic.w r2, r3, #3 + 800341a: 687b ldr r3, [r7, #4] + 800341c: 685b ldr r3, [r3, #4] + 800341e: 4936 ldr r1, [pc, #216] ; (80034f8 ) + 8003420: 4313 orrs r3, r2 + 8003422: 604b str r3, [r1, #4] /* Get Start Tick */ tickstart = HAL_GetTick(); - 8002344: f7ff fa30 bl 80017a8 - 8002348: 60f8 str r0, [r7, #12] + 8003424: f7fe fa30 bl 8001888 + 8003428: 60f8 str r0, [r7, #12] while (__HAL_RCC_GET_SYSCLK_SOURCE() != (RCC_ClkInitStruct->SYSCLKSource << RCC_CFGR_SWS_Pos)) - 800234a: e00a b.n 8002362 + 800342a: e00a b.n 8003442 { if ((HAL_GetTick() - tickstart) > CLOCKSWITCH_TIMEOUT_VALUE) - 800234c: f7ff fa2c bl 80017a8 - 8002350: 4602 mov r2, r0 - 8002352: 68fb ldr r3, [r7, #12] - 8002354: 1ad3 subs r3, r2, r3 - 8002356: f241 3288 movw r2, #5000 ; 0x1388 - 800235a: 4293 cmp r3, r2 - 800235c: d901 bls.n 8002362 + 800342c: f7fe fa2c bl 8001888 + 8003430: 4602 mov r2, r0 + 8003432: 68fb ldr r3, [r7, #12] + 8003434: 1ad3 subs r3, r2, r3 + 8003436: f241 3288 movw r2, #5000 ; 0x1388 + 800343a: 4293 cmp r3, r2 + 800343c: d901 bls.n 8003442 { return HAL_TIMEOUT; - 800235e: 2303 movs r3, #3 - 8002360: e053 b.n 800240a + 800343e: 2303 movs r3, #3 + 8003440: e053 b.n 80034ea while (__HAL_RCC_GET_SYSCLK_SOURCE() != (RCC_ClkInitStruct->SYSCLKSource << RCC_CFGR_SWS_Pos)) - 8002362: 4b2d ldr r3, [pc, #180] ; (8002418 ) - 8002364: 685b ldr r3, [r3, #4] - 8002366: f003 020c and.w r2, r3, #12 - 800236a: 687b ldr r3, [r7, #4] - 800236c: 685b ldr r3, [r3, #4] - 800236e: 009b lsls r3, r3, #2 - 8002370: 429a cmp r2, r3 - 8002372: d1eb bne.n 800234c + 8003442: 4b2d ldr r3, [pc, #180] ; (80034f8 ) + 8003444: 685b ldr r3, [r3, #4] + 8003446: f003 020c and.w r2, r3, #12 + 800344a: 687b ldr r3, [r7, #4] + 800344c: 685b ldr r3, [r3, #4] + 800344e: 009b lsls r3, r3, #2 + 8003450: 429a cmp r2, r3 + 8003452: d1eb bne.n 800342c } } #if defined(FLASH_ACR_LATENCY) /* Decreasing the number of wait states because of lower CPU frequency */ if (FLatency < __HAL_FLASH_GET_LATENCY()) - 8002374: 4b27 ldr r3, [pc, #156] ; (8002414 ) - 8002376: 681b ldr r3, [r3, #0] - 8002378: f003 0307 and.w r3, r3, #7 - 800237c: 683a ldr r2, [r7, #0] - 800237e: 429a cmp r2, r3 - 8002380: d210 bcs.n 80023a4 + 8003454: 4b27 ldr r3, [pc, #156] ; (80034f4 ) + 8003456: 681b ldr r3, [r3, #0] + 8003458: f003 0307 and.w r3, r3, #7 + 800345c: 683a ldr r2, [r7, #0] + 800345e: 429a cmp r2, r3 + 8003460: d210 bcs.n 8003484 { /* Program the new number of wait states to the LATENCY bits in the FLASH_ACR register */ __HAL_FLASH_SET_LATENCY(FLatency); - 8002382: 4b24 ldr r3, [pc, #144] ; (8002414 ) - 8002384: 681b ldr r3, [r3, #0] - 8002386: f023 0207 bic.w r2, r3, #7 - 800238a: 4922 ldr r1, [pc, #136] ; (8002414 ) - 800238c: 683b ldr r3, [r7, #0] - 800238e: 4313 orrs r3, r2 - 8002390: 600b str r3, [r1, #0] + 8003462: 4b24 ldr r3, [pc, #144] ; (80034f4 ) + 8003464: 681b ldr r3, [r3, #0] + 8003466: f023 0207 bic.w r2, r3, #7 + 800346a: 4922 ldr r1, [pc, #136] ; (80034f4 ) + 800346c: 683b ldr r3, [r7, #0] + 800346e: 4313 orrs r3, r2 + 8003470: 600b str r3, [r1, #0] /* Check that the new number of wait states is taken into account to access the Flash memory by reading the FLASH_ACR register */ if (__HAL_FLASH_GET_LATENCY() != FLatency) - 8002392: 4b20 ldr r3, [pc, #128] ; (8002414 ) - 8002394: 681b ldr r3, [r3, #0] - 8002396: f003 0307 and.w r3, r3, #7 - 800239a: 683a ldr r2, [r7, #0] - 800239c: 429a cmp r2, r3 - 800239e: d001 beq.n 80023a4 + 8003472: 4b20 ldr r3, [pc, #128] ; (80034f4 ) + 8003474: 681b ldr r3, [r3, #0] + 8003476: f003 0307 and.w r3, r3, #7 + 800347a: 683a ldr r2, [r7, #0] + 800347c: 429a cmp r2, r3 + 800347e: d001 beq.n 8003484 { return HAL_ERROR; - 80023a0: 2301 movs r3, #1 - 80023a2: e032 b.n 800240a + 8003480: 2301 movs r3, #1 + 8003482: e032 b.n 80034ea } } #endif /* FLASH_ACR_LATENCY */ /*-------------------------- PCLK1 Configuration ---------------------------*/ if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_PCLK1) == RCC_CLOCKTYPE_PCLK1) - 80023a4: 687b ldr r3, [r7, #4] - 80023a6: 681b ldr r3, [r3, #0] - 80023a8: f003 0304 and.w r3, r3, #4 - 80023ac: 2b00 cmp r3, #0 - 80023ae: d008 beq.n 80023c2 + 8003484: 687b ldr r3, [r7, #4] + 8003486: 681b ldr r3, [r3, #0] + 8003488: f003 0304 and.w r3, r3, #4 + 800348c: 2b00 cmp r3, #0 + 800348e: d008 beq.n 80034a2 { assert_param(IS_RCC_PCLK(RCC_ClkInitStruct->APB1CLKDivider)); MODIFY_REG(RCC->CFGR, RCC_CFGR_PPRE1, RCC_ClkInitStruct->APB1CLKDivider); - 80023b0: 4b19 ldr r3, [pc, #100] ; (8002418 ) - 80023b2: 685b ldr r3, [r3, #4] - 80023b4: f423 62e0 bic.w r2, r3, #1792 ; 0x700 - 80023b8: 687b ldr r3, [r7, #4] - 80023ba: 68db ldr r3, [r3, #12] - 80023bc: 4916 ldr r1, [pc, #88] ; (8002418 ) - 80023be: 4313 orrs r3, r2 - 80023c0: 604b str r3, [r1, #4] + 8003490: 4b19 ldr r3, [pc, #100] ; (80034f8 ) + 8003492: 685b ldr r3, [r3, #4] + 8003494: f423 62e0 bic.w r2, r3, #1792 ; 0x700 + 8003498: 687b ldr r3, [r7, #4] + 800349a: 68db ldr r3, [r3, #12] + 800349c: 4916 ldr r1, [pc, #88] ; (80034f8 ) + 800349e: 4313 orrs r3, r2 + 80034a0: 604b str r3, [r1, #4] } /*-------------------------- PCLK2 Configuration ---------------------------*/ if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_PCLK2) == RCC_CLOCKTYPE_PCLK2) - 80023c2: 687b ldr r3, [r7, #4] - 80023c4: 681b ldr r3, [r3, #0] - 80023c6: f003 0308 and.w r3, r3, #8 - 80023ca: 2b00 cmp r3, #0 - 80023cc: d009 beq.n 80023e2 + 80034a2: 687b ldr r3, [r7, #4] + 80034a4: 681b ldr r3, [r3, #0] + 80034a6: f003 0308 and.w r3, r3, #8 + 80034aa: 2b00 cmp r3, #0 + 80034ac: d009 beq.n 80034c2 { assert_param(IS_RCC_PCLK(RCC_ClkInitStruct->APB2CLKDivider)); MODIFY_REG(RCC->CFGR, RCC_CFGR_PPRE2, ((RCC_ClkInitStruct->APB2CLKDivider) << 3)); - 80023ce: 4b12 ldr r3, [pc, #72] ; (8002418 ) - 80023d0: 685b ldr r3, [r3, #4] - 80023d2: f423 5260 bic.w r2, r3, #14336 ; 0x3800 - 80023d6: 687b ldr r3, [r7, #4] - 80023d8: 691b ldr r3, [r3, #16] - 80023da: 00db lsls r3, r3, #3 - 80023dc: 490e ldr r1, [pc, #56] ; (8002418 ) - 80023de: 4313 orrs r3, r2 - 80023e0: 604b str r3, [r1, #4] + 80034ae: 4b12 ldr r3, [pc, #72] ; (80034f8 ) + 80034b0: 685b ldr r3, [r3, #4] + 80034b2: f423 5260 bic.w r2, r3, #14336 ; 0x3800 + 80034b6: 687b ldr r3, [r7, #4] + 80034b8: 691b ldr r3, [r3, #16] + 80034ba: 00db lsls r3, r3, #3 + 80034bc: 490e ldr r1, [pc, #56] ; (80034f8 ) + 80034be: 4313 orrs r3, r2 + 80034c0: 604b str r3, [r1, #4] } /* Update the SystemCoreClock global variable */ SystemCoreClock = HAL_RCC_GetSysClockFreq() >> AHBPrescTable[(RCC->CFGR & RCC_CFGR_HPRE) >> RCC_CFGR_HPRE_Pos]; - 80023e2: f000 f821 bl 8002428 - 80023e6: 4602 mov r2, r0 - 80023e8: 4b0b ldr r3, [pc, #44] ; (8002418 ) - 80023ea: 685b ldr r3, [r3, #4] - 80023ec: 091b lsrs r3, r3, #4 - 80023ee: f003 030f and.w r3, r3, #15 - 80023f2: 490a ldr r1, [pc, #40] ; (800241c ) - 80023f4: 5ccb ldrb r3, [r1, r3] - 80023f6: fa22 f303 lsr.w r3, r2, r3 - 80023fa: 4a09 ldr r2, [pc, #36] ; (8002420 ) - 80023fc: 6013 str r3, [r2, #0] + 80034c2: f000 f821 bl 8003508 + 80034c6: 4602 mov r2, r0 + 80034c8: 4b0b ldr r3, [pc, #44] ; (80034f8 ) + 80034ca: 685b ldr r3, [r3, #4] + 80034cc: 091b lsrs r3, r3, #4 + 80034ce: f003 030f and.w r3, r3, #15 + 80034d2: 490a ldr r1, [pc, #40] ; (80034fc ) + 80034d4: 5ccb ldrb r3, [r1, r3] + 80034d6: fa22 f303 lsr.w r3, r2, r3 + 80034da: 4a09 ldr r2, [pc, #36] ; (8003500 ) + 80034dc: 6013 str r3, [r2, #0] /* Configure the source of time base considering new system clocks settings*/ HAL_InitTick(uwTickPrio); - 80023fe: 4b09 ldr r3, [pc, #36] ; (8002424 ) - 8002400: 681b ldr r3, [r3, #0] - 8002402: 4618 mov r0, r3 - 8002404: f7ff f98e bl 8001724 + 80034de: 4b09 ldr r3, [pc, #36] ; (8003504 ) + 80034e0: 681b ldr r3, [r3, #0] + 80034e2: 4618 mov r0, r3 + 80034e4: f7fe f98e bl 8001804 return HAL_OK; - 8002408: 2300 movs r3, #0 + 80034e8: 2300 movs r3, #0 } - 800240a: 4618 mov r0, r3 - 800240c: 3710 adds r7, #16 - 800240e: 46bd mov sp, r7 - 8002410: bd80 pop {r7, pc} - 8002412: bf00 nop - 8002414: 40022000 .word 0x40022000 - 8002418: 40021000 .word 0x40021000 - 800241c: 08007060 .word 0x08007060 - 8002420: 20000000 .word 0x20000000 - 8002424: 20000004 .word 0x20000004 + 80034ea: 4618 mov r0, r3 + 80034ec: 3710 adds r7, #16 + 80034ee: 46bd mov sp, r7 + 80034f0: bd80 pop {r7, pc} + 80034f2: bf00 nop + 80034f4: 40022000 .word 0x40022000 + 80034f8: 40021000 .word 0x40021000 + 80034fc: 080083b8 .word 0x080083b8 + 8003500: 20000000 .word 0x20000000 + 8003504: 20000004 .word 0x20000004 -08002428 : +08003508 : * right SYSCLK value. Otherwise, any configuration based on this function will be incorrect. * * @retval SYSCLK frequency */ uint32_t HAL_RCC_GetSysClockFreq(void) { - 8002428: b490 push {r4, r7} - 800242a: b08a sub sp, #40 ; 0x28 - 800242c: af00 add r7, sp, #0 + 8003508: b490 push {r4, r7} + 800350a: b08a sub sp, #40 ; 0x28 + 800350c: af00 add r7, sp, #0 #if defined(RCC_CFGR2_PREDIV1SRC) const uint8_t aPLLMULFactorTable[14] = {0, 0, 4, 5, 6, 7, 8, 9, 0, 0, 0, 0, 0, 13}; const uint8_t aPredivFactorTable[16] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16}; #else const uint8_t aPLLMULFactorTable[16] = {2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16}; - 800242e: 4b2a ldr r3, [pc, #168] ; (80024d8 ) - 8002430: 1d3c adds r4, r7, #4 - 8002432: cb0f ldmia r3, {r0, r1, r2, r3} - 8002434: e884 000f stmia.w r4, {r0, r1, r2, r3} + 800350e: 4b2a ldr r3, [pc, #168] ; (80035b8 ) + 8003510: 1d3c adds r4, r7, #4 + 8003512: cb0f ldmia r3, {r0, r1, r2, r3} + 8003514: e884 000f stmia.w r4, {r0, r1, r2, r3} #if defined(RCC_CFGR2_PREDIV1) const uint8_t aPredivFactorTable[16] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16}; #else const uint8_t aPredivFactorTable[2] = {1, 2}; - 8002438: f240 2301 movw r3, #513 ; 0x201 - 800243c: 803b strh r3, [r7, #0] + 8003518: f240 2301 movw r3, #513 ; 0x201 + 800351c: 803b strh r3, [r7, #0] #endif /*RCC_CFGR2_PREDIV1*/ #endif uint32_t tmpreg = 0U, prediv = 0U, pllclk = 0U, pllmul = 0U; - 800243e: 2300 movs r3, #0 - 8002440: 61fb str r3, [r7, #28] - 8002442: 2300 movs r3, #0 - 8002444: 61bb str r3, [r7, #24] - 8002446: 2300 movs r3, #0 - 8002448: 627b str r3, [r7, #36] ; 0x24 - 800244a: 2300 movs r3, #0 - 800244c: 617b str r3, [r7, #20] + 800351e: 2300 movs r3, #0 + 8003520: 61fb str r3, [r7, #28] + 8003522: 2300 movs r3, #0 + 8003524: 61bb str r3, [r7, #24] + 8003526: 2300 movs r3, #0 + 8003528: 627b str r3, [r7, #36] ; 0x24 + 800352a: 2300 movs r3, #0 + 800352c: 617b str r3, [r7, #20] uint32_t sysclockfreq = 0U; - 800244e: 2300 movs r3, #0 - 8002450: 623b str r3, [r7, #32] + 800352e: 2300 movs r3, #0 + 8003530: 623b str r3, [r7, #32] #if defined(RCC_CFGR2_PREDIV1SRC) uint32_t prediv2 = 0U, pll2mul = 0U; #endif /*RCC_CFGR2_PREDIV1SRC*/ tmpreg = RCC->CFGR; - 8002452: 4b22 ldr r3, [pc, #136] ; (80024dc ) - 8002454: 685b ldr r3, [r3, #4] - 8002456: 61fb str r3, [r7, #28] + 8003532: 4b22 ldr r3, [pc, #136] ; (80035bc ) + 8003534: 685b ldr r3, [r3, #4] + 8003536: 61fb str r3, [r7, #28] /* Get SYSCLK source -------------------------------------------------------*/ switch (tmpreg & RCC_CFGR_SWS) - 8002458: 69fb ldr r3, [r7, #28] - 800245a: f003 030c and.w r3, r3, #12 - 800245e: 2b04 cmp r3, #4 - 8002460: d002 beq.n 8002468 - 8002462: 2b08 cmp r3, #8 - 8002464: d003 beq.n 800246e - 8002466: e02d b.n 80024c4 + 8003538: 69fb ldr r3, [r7, #28] + 800353a: f003 030c and.w r3, r3, #12 + 800353e: 2b04 cmp r3, #4 + 8003540: d002 beq.n 8003548 + 8003542: 2b08 cmp r3, #8 + 8003544: d003 beq.n 800354e + 8003546: e02d b.n 80035a4 { case RCC_SYSCLKSOURCE_STATUS_HSE: /* HSE used as system clock */ { sysclockfreq = HSE_VALUE; - 8002468: 4b1d ldr r3, [pc, #116] ; (80024e0 ) - 800246a: 623b str r3, [r7, #32] + 8003548: 4b1d ldr r3, [pc, #116] ; (80035c0 ) + 800354a: 623b str r3, [r7, #32] break; - 800246c: e02d b.n 80024ca + 800354c: e02d b.n 80035aa } case RCC_SYSCLKSOURCE_STATUS_PLLCLK: /* PLL used as system clock */ { pllmul = aPLLMULFactorTable[(uint32_t)(tmpreg & RCC_CFGR_PLLMULL) >> RCC_CFGR_PLLMULL_Pos]; - 800246e: 69fb ldr r3, [r7, #28] - 8002470: 0c9b lsrs r3, r3, #18 - 8002472: f003 030f and.w r3, r3, #15 - 8002476: f107 0228 add.w r2, r7, #40 ; 0x28 - 800247a: 4413 add r3, r2 - 800247c: f813 3c24 ldrb.w r3, [r3, #-36] - 8002480: 617b str r3, [r7, #20] + 800354e: 69fb ldr r3, [r7, #28] + 8003550: 0c9b lsrs r3, r3, #18 + 8003552: f003 030f and.w r3, r3, #15 + 8003556: f107 0228 add.w r2, r7, #40 ; 0x28 + 800355a: 4413 add r3, r2 + 800355c: f813 3c24 ldrb.w r3, [r3, #-36] + 8003560: 617b str r3, [r7, #20] if ((tmpreg & RCC_CFGR_PLLSRC) != RCC_PLLSOURCE_HSI_DIV2) - 8002482: 69fb ldr r3, [r7, #28] - 8002484: f403 3380 and.w r3, r3, #65536 ; 0x10000 - 8002488: 2b00 cmp r3, #0 - 800248a: d013 beq.n 80024b4 + 8003562: 69fb ldr r3, [r7, #28] + 8003564: f403 3380 and.w r3, r3, #65536 ; 0x10000 + 8003568: 2b00 cmp r3, #0 + 800356a: d013 beq.n 8003594 { #if defined(RCC_CFGR2_PREDIV1) prediv = aPredivFactorTable[(uint32_t)(RCC->CFGR2 & RCC_CFGR2_PREDIV1) >> RCC_CFGR2_PREDIV1_Pos]; #else prediv = aPredivFactorTable[(uint32_t)(RCC->CFGR & RCC_CFGR_PLLXTPRE) >> RCC_CFGR_PLLXTPRE_Pos]; - 800248c: 4b13 ldr r3, [pc, #76] ; (80024dc ) - 800248e: 685b ldr r3, [r3, #4] - 8002490: 0c5b lsrs r3, r3, #17 - 8002492: f003 0301 and.w r3, r3, #1 - 8002496: f107 0228 add.w r2, r7, #40 ; 0x28 - 800249a: 4413 add r3, r2 - 800249c: f813 3c28 ldrb.w r3, [r3, #-40] - 80024a0: 61bb str r3, [r7, #24] + 800356c: 4b13 ldr r3, [pc, #76] ; (80035bc ) + 800356e: 685b ldr r3, [r3, #4] + 8003570: 0c5b lsrs r3, r3, #17 + 8003572: f003 0301 and.w r3, r3, #1 + 8003576: f107 0228 add.w r2, r7, #40 ; 0x28 + 800357a: 4413 add r3, r2 + 800357c: f813 3c28 ldrb.w r3, [r3, #-40] + 8003580: 61bb str r3, [r7, #24] { pllclk = pllclk / 2; } #else /* HSE used as PLL clock source : PLLCLK = HSE/PREDIV1 * PLLMUL */ pllclk = (uint32_t)((HSE_VALUE * pllmul) / prediv); - 80024a2: 697b ldr r3, [r7, #20] - 80024a4: 4a0e ldr r2, [pc, #56] ; (80024e0 ) - 80024a6: fb02 f203 mul.w r2, r2, r3 - 80024aa: 69bb ldr r3, [r7, #24] - 80024ac: fbb2 f3f3 udiv r3, r2, r3 - 80024b0: 627b str r3, [r7, #36] ; 0x24 - 80024b2: e004 b.n 80024be + 8003582: 697b ldr r3, [r7, #20] + 8003584: 4a0e ldr r2, [pc, #56] ; (80035c0 ) + 8003586: fb02 f203 mul.w r2, r2, r3 + 800358a: 69bb ldr r3, [r7, #24] + 800358c: fbb2 f3f3 udiv r3, r2, r3 + 8003590: 627b str r3, [r7, #36] ; 0x24 + 8003592: e004 b.n 800359e #endif /*RCC_CFGR2_PREDIV1SRC*/ } else { /* HSI used as PLL clock source : PLLCLK = HSI/2 * PLLMUL */ pllclk = (uint32_t)((HSI_VALUE >> 1) * pllmul); - 80024b4: 697b ldr r3, [r7, #20] - 80024b6: 4a0b ldr r2, [pc, #44] ; (80024e4 ) - 80024b8: fb02 f303 mul.w r3, r2, r3 - 80024bc: 627b str r3, [r7, #36] ; 0x24 + 8003594: 697b ldr r3, [r7, #20] + 8003596: 4a0b ldr r2, [pc, #44] ; (80035c4 ) + 8003598: fb02 f303 mul.w r3, r2, r3 + 800359c: 627b str r3, [r7, #36] ; 0x24 } sysclockfreq = pllclk; - 80024be: 6a7b ldr r3, [r7, #36] ; 0x24 - 80024c0: 623b str r3, [r7, #32] + 800359e: 6a7b ldr r3, [r7, #36] ; 0x24 + 80035a0: 623b str r3, [r7, #32] break; - 80024c2: e002 b.n 80024ca + 80035a2: e002 b.n 80035aa } case RCC_SYSCLKSOURCE_STATUS_HSI: /* HSI used as system clock source */ default: /* HSI used as system clock */ { sysclockfreq = HSI_VALUE; - 80024c4: 4b06 ldr r3, [pc, #24] ; (80024e0 ) - 80024c6: 623b str r3, [r7, #32] + 80035a4: 4b06 ldr r3, [pc, #24] ; (80035c0 ) + 80035a6: 623b str r3, [r7, #32] break; - 80024c8: bf00 nop + 80035a8: bf00 nop } } return sysclockfreq; - 80024ca: 6a3b ldr r3, [r7, #32] + 80035aa: 6a3b ldr r3, [r7, #32] } - 80024cc: 4618 mov r0, r3 - 80024ce: 3728 adds r7, #40 ; 0x28 - 80024d0: 46bd mov sp, r7 - 80024d2: bc90 pop {r4, r7} - 80024d4: 4770 bx lr - 80024d6: bf00 nop - 80024d8: 08006f78 .word 0x08006f78 - 80024dc: 40021000 .word 0x40021000 - 80024e0: 007a1200 .word 0x007a1200 - 80024e4: 003d0900 .word 0x003d0900 + 80035ac: 4618 mov r0, r3 + 80035ae: 3728 adds r7, #40 ; 0x28 + 80035b0: 46bd mov sp, r7 + 80035b2: bc90 pop {r4, r7} + 80035b4: 4770 bx lr + 80035b6: bf00 nop + 80035b8: 080082d0 .word 0x080082d0 + 80035bc: 40021000 .word 0x40021000 + 80035c0: 007a1200 .word 0x007a1200 + 80035c4: 003d0900 .word 0x003d0900 -080024e8 : +080035c8 : + * @note The SystemCoreClock CMSIS variable is used to store System Clock Frequency + * and updated within this function + * @retval HCLK frequency + */ +uint32_t HAL_RCC_GetHCLKFreq(void) +{ + 80035c8: b480 push {r7} + 80035ca: af00 add r7, sp, #0 + return SystemCoreClock; + 80035cc: 4b02 ldr r3, [pc, #8] ; (80035d8 ) + 80035ce: 681b ldr r3, [r3, #0] +} + 80035d0: 4618 mov r0, r3 + 80035d2: 46bd mov sp, r7 + 80035d4: bc80 pop {r7} + 80035d6: 4770 bx lr + 80035d8: 20000000 .word 0x20000000 + +080035dc : + * @note Each time PCLK1 changes, this function must be called to update the + * right PCLK1 value. Otherwise, any configuration based on this function will be incorrect. + * @retval PCLK1 frequency + */ +uint32_t HAL_RCC_GetPCLK1Freq(void) +{ + 80035dc: b580 push {r7, lr} + 80035de: af00 add r7, sp, #0 + /* Get HCLK source and Compute PCLK1 frequency ---------------------------*/ + return (HAL_RCC_GetHCLKFreq() >> APBPrescTable[(RCC->CFGR & RCC_CFGR_PPRE1) >> RCC_CFGR_PPRE1_Pos]); + 80035e0: f7ff fff2 bl 80035c8 + 80035e4: 4602 mov r2, r0 + 80035e6: 4b05 ldr r3, [pc, #20] ; (80035fc ) + 80035e8: 685b ldr r3, [r3, #4] + 80035ea: 0a1b lsrs r3, r3, #8 + 80035ec: f003 0307 and.w r3, r3, #7 + 80035f0: 4903 ldr r1, [pc, #12] ; (8003600 ) + 80035f2: 5ccb ldrb r3, [r1, r3] + 80035f4: fa22 f303 lsr.w r3, r2, r3 +} + 80035f8: 4618 mov r0, r3 + 80035fa: bd80 pop {r7, pc} + 80035fc: 40021000 .word 0x40021000 + 8003600: 080083c8 .word 0x080083c8 + +08003604 : * @brief This function provides delay (in milliseconds) based on CPU cycles method. * @param mdelay: specifies the delay time length, in milliseconds. * @retval None */ static void RCC_Delay(uint32_t mdelay) { - 80024e8: b480 push {r7} - 80024ea: b085 sub sp, #20 - 80024ec: af00 add r7, sp, #0 - 80024ee: 6078 str r0, [r7, #4] + 8003604: b480 push {r7} + 8003606: b085 sub sp, #20 + 8003608: af00 add r7, sp, #0 + 800360a: 6078 str r0, [r7, #4] __IO uint32_t Delay = mdelay * (SystemCoreClock / 8U / 1000U); - 80024f0: 4b0a ldr r3, [pc, #40] ; (800251c ) - 80024f2: 681b ldr r3, [r3, #0] - 80024f4: 4a0a ldr r2, [pc, #40] ; (8002520 ) - 80024f6: fba2 2303 umull r2, r3, r2, r3 - 80024fa: 0a5b lsrs r3, r3, #9 - 80024fc: 687a ldr r2, [r7, #4] - 80024fe: fb02 f303 mul.w r3, r2, r3 - 8002502: 60fb str r3, [r7, #12] + 800360c: 4b0a ldr r3, [pc, #40] ; (8003638 ) + 800360e: 681b ldr r3, [r3, #0] + 8003610: 4a0a ldr r2, [pc, #40] ; (800363c ) + 8003612: fba2 2303 umull r2, r3, r2, r3 + 8003616: 0a5b lsrs r3, r3, #9 + 8003618: 687a ldr r2, [r7, #4] + 800361a: fb02 f303 mul.w r3, r2, r3 + 800361e: 60fb str r3, [r7, #12] do { __NOP(); - 8002504: bf00 nop + 8003620: bf00 nop } while (Delay --); - 8002506: 68fb ldr r3, [r7, #12] - 8002508: 1e5a subs r2, r3, #1 - 800250a: 60fa str r2, [r7, #12] - 800250c: 2b00 cmp r3, #0 - 800250e: d1f9 bne.n 8002504 + 8003622: 68fb ldr r3, [r7, #12] + 8003624: 1e5a subs r2, r3, #1 + 8003626: 60fa str r2, [r7, #12] + 8003628: 2b00 cmp r3, #0 + 800362a: d1f9 bne.n 8003620 } - 8002510: bf00 nop - 8002512: bf00 nop - 8002514: 3714 adds r7, #20 - 8002516: 46bd mov sp, r7 - 8002518: bc80 pop {r7} - 800251a: 4770 bx lr - 800251c: 20000000 .word 0x20000000 - 8002520: 10624dd3 .word 0x10624dd3 + 800362c: bf00 nop + 800362e: bf00 nop + 8003630: 3714 adds r7, #20 + 8003632: 46bd mov sp, r7 + 8003634: bc80 pop {r7} + 8003636: 4770 bx lr + 8003638: 20000000 .word 0x20000000 + 800363c: 10624dd3 .word 0x10624dd3 -08002524 : +08003640 : * @param ExtTiming Pointer to SRAM extended mode timing structure * @retval HAL status */ HAL_StatusTypeDef HAL_SRAM_Init(SRAM_HandleTypeDef *hsram, FSMC_NORSRAM_TimingTypeDef *Timing, FSMC_NORSRAM_TimingTypeDef *ExtTiming) { - 8002524: b580 push {r7, lr} - 8002526: b084 sub sp, #16 - 8002528: af00 add r7, sp, #0 - 800252a: 60f8 str r0, [r7, #12] - 800252c: 60b9 str r1, [r7, #8] - 800252e: 607a str r2, [r7, #4] + 8003640: b580 push {r7, lr} + 8003642: b084 sub sp, #16 + 8003644: af00 add r7, sp, #0 + 8003646: 60f8 str r0, [r7, #12] + 8003648: 60b9 str r1, [r7, #8] + 800364a: 607a str r2, [r7, #4] /* Check the SRAM handle parameter */ if ((hsram == NULL) || (hsram->Init.BurstAccessMode == FSMC_BURST_ACCESS_MODE_ENABLE)) - 8002530: 68fb ldr r3, [r7, #12] - 8002532: 2b00 cmp r3, #0 - 8002534: d004 beq.n 8002540 - 8002536: 68fb ldr r3, [r7, #12] - 8002538: 699b ldr r3, [r3, #24] - 800253a: f5b3 7f80 cmp.w r3, #256 ; 0x100 - 800253e: d101 bne.n 8002544 + 800364c: 68fb ldr r3, [r7, #12] + 800364e: 2b00 cmp r3, #0 + 8003650: d004 beq.n 800365c + 8003652: 68fb ldr r3, [r7, #12] + 8003654: 699b ldr r3, [r3, #24] + 8003656: f5b3 7f80 cmp.w r3, #256 ; 0x100 + 800365a: d101 bne.n 8003660 { return HAL_ERROR; - 8002540: 2301 movs r3, #1 - 8002542: e038 b.n 80025b6 + 800365c: 2301 movs r3, #1 + 800365e: e038 b.n 80036d2 } if (hsram->State == HAL_SRAM_STATE_RESET) - 8002544: 68fb ldr r3, [r7, #12] - 8002546: f893 3041 ldrb.w r3, [r3, #65] ; 0x41 - 800254a: b2db uxtb r3, r3 - 800254c: 2b00 cmp r3, #0 - 800254e: d106 bne.n 800255e + 8003660: 68fb ldr r3, [r7, #12] + 8003662: f893 3041 ldrb.w r3, [r3, #65] ; 0x41 + 8003666: b2db uxtb r3, r3 + 8003668: 2b00 cmp r3, #0 + 800366a: d106 bne.n 800367a { /* Allocate lock resource and initialize it */ hsram->Lock = HAL_UNLOCKED; - 8002550: 68fb ldr r3, [r7, #12] - 8002552: 2200 movs r2, #0 - 8002554: f883 2040 strb.w r2, [r3, #64] ; 0x40 + 800366c: 68fb ldr r3, [r7, #12] + 800366e: 2200 movs r2, #0 + 8003670: f883 2040 strb.w r2, [r3, #64] ; 0x40 /* Init the low level hardware */ hsram->MspInitCallback(hsram); #else /* Initialize the low level hardware (MSP) */ HAL_SRAM_MspInit(hsram); - 8002558: 68f8 ldr r0, [r7, #12] - 800255a: f7fe ffaf bl 80014bc + 8003674: 68f8 ldr r0, [r7, #12] + 8003676: f7fd ff91 bl 800159c #endif /* USE_HAL_SRAM_REGISTER_CALLBACKS */ } /* Initialize SRAM control Interface */ (void)FSMC_NORSRAM_Init(hsram->Instance, &(hsram->Init)); - 800255e: 68fb ldr r3, [r7, #12] - 8002560: 681a ldr r2, [r3, #0] - 8002562: 68fb ldr r3, [r7, #12] - 8002564: 3308 adds r3, #8 - 8002566: 4619 mov r1, r3 - 8002568: 4610 mov r0, r2 - 800256a: f000 f829 bl 80025c0 + 800367a: 68fb ldr r3, [r7, #12] + 800367c: 681a ldr r2, [r3, #0] + 800367e: 68fb ldr r3, [r7, #12] + 8003680: 3308 adds r3, #8 + 8003682: 4619 mov r1, r3 + 8003684: 4610 mov r0, r2 + 8003686: f000 f829 bl 80036dc /* Initialize SRAM timing Interface */ (void)FSMC_NORSRAM_Timing_Init(hsram->Instance, Timing, hsram->Init.NSBank); - 800256e: 68fb ldr r3, [r7, #12] - 8002570: 6818 ldr r0, [r3, #0] - 8002572: 68fb ldr r3, [r7, #12] - 8002574: 689b ldr r3, [r3, #8] - 8002576: 461a mov r2, r3 - 8002578: 68b9 ldr r1, [r7, #8] - 800257a: f000 f88b bl 8002694 + 800368a: 68fb ldr r3, [r7, #12] + 800368c: 6818 ldr r0, [r3, #0] + 800368e: 68fb ldr r3, [r7, #12] + 8003690: 689b ldr r3, [r3, #8] + 8003692: 461a mov r2, r3 + 8003694: 68b9 ldr r1, [r7, #8] + 8003696: f000 f88b bl 80037b0 /* Initialize SRAM extended mode timing Interface */ (void)FSMC_NORSRAM_Extended_Timing_Init(hsram->Extended, ExtTiming, hsram->Init.NSBank, - 800257e: 68fb ldr r3, [r7, #12] - 8002580: 6858 ldr r0, [r3, #4] - 8002582: 68fb ldr r3, [r7, #12] - 8002584: 689a ldr r2, [r3, #8] - 8002586: 68fb ldr r3, [r7, #12] - 8002588: 6b1b ldr r3, [r3, #48] ; 0x30 - 800258a: 6879 ldr r1, [r7, #4] - 800258c: f000 f8b6 bl 80026fc + 800369a: 68fb ldr r3, [r7, #12] + 800369c: 6858 ldr r0, [r3, #4] + 800369e: 68fb ldr r3, [r7, #12] + 80036a0: 689a ldr r2, [r3, #8] + 80036a2: 68fb ldr r3, [r7, #12] + 80036a4: 6b1b ldr r3, [r3, #48] ; 0x30 + 80036a6: 6879 ldr r1, [r7, #4] + 80036a8: f000 f8b6 bl 8003818 hsram->Init.ExtendedMode); /* Enable the NORSRAM device */ __FSMC_NORSRAM_ENABLE(hsram->Instance, hsram->Init.NSBank); - 8002590: 68fb ldr r3, [r7, #12] - 8002592: 681b ldr r3, [r3, #0] - 8002594: 68fa ldr r2, [r7, #12] - 8002596: 6892 ldr r2, [r2, #8] - 8002598: f853 1022 ldr.w r1, [r3, r2, lsl #2] - 800259c: 68fb ldr r3, [r7, #12] - 800259e: 681b ldr r3, [r3, #0] - 80025a0: 68fa ldr r2, [r7, #12] - 80025a2: 6892 ldr r2, [r2, #8] - 80025a4: f041 0101 orr.w r1, r1, #1 - 80025a8: f843 1022 str.w r1, [r3, r2, lsl #2] + 80036ac: 68fb ldr r3, [r7, #12] + 80036ae: 681b ldr r3, [r3, #0] + 80036b0: 68fa ldr r2, [r7, #12] + 80036b2: 6892 ldr r2, [r2, #8] + 80036b4: f853 1022 ldr.w r1, [r3, r2, lsl #2] + 80036b8: 68fb ldr r3, [r7, #12] + 80036ba: 681b ldr r3, [r3, #0] + 80036bc: 68fa ldr r2, [r7, #12] + 80036be: 6892 ldr r2, [r2, #8] + 80036c0: f041 0101 orr.w r1, r1, #1 + 80036c4: f843 1022 str.w r1, [r3, r2, lsl #2] /* Initialize the SRAM controller state */ hsram->State = HAL_SRAM_STATE_READY; - 80025ac: 68fb ldr r3, [r7, #12] - 80025ae: 2201 movs r2, #1 - 80025b0: f883 2041 strb.w r2, [r3, #65] ; 0x41 + 80036c8: 68fb ldr r3, [r7, #12] + 80036ca: 2201 movs r2, #1 + 80036cc: f883 2041 strb.w r2, [r3, #65] ; 0x41 return HAL_OK; - 80025b4: 2300 movs r3, #0 + 80036d0: 2300 movs r3, #0 } - 80025b6: 4618 mov r0, r3 - 80025b8: 3710 adds r7, #16 - 80025ba: 46bd mov sp, r7 - 80025bc: bd80 pop {r7, pc} + 80036d2: 4618 mov r0, r3 + 80036d4: 3710 adds r7, #16 + 80036d6: 46bd mov sp, r7 + 80036d8: bd80 pop {r7, pc} ... -080025c0 : +080036dc : * @param Init Pointer to NORSRAM Initialization structure * @retval HAL status */ HAL_StatusTypeDef FSMC_NORSRAM_Init(FSMC_NORSRAM_TypeDef *Device, FSMC_NORSRAM_InitTypeDef *Init) { - 80025c0: b480 push {r7} - 80025c2: b087 sub sp, #28 - 80025c4: af00 add r7, sp, #0 - 80025c6: 6078 str r0, [r7, #4] - 80025c8: 6039 str r1, [r7, #0] + 80036dc: b480 push {r7} + 80036de: b087 sub sp, #28 + 80036e0: af00 add r7, sp, #0 + 80036e2: 6078 str r0, [r7, #4] + 80036e4: 6039 str r1, [r7, #0] assert_param(IS_FSMC_ASYNWAIT(Init->AsynchronousWait)); assert_param(IS_FSMC_WRITE_BURST(Init->WriteBurst)); assert_param(IS_FSMC_PAGESIZE(Init->PageSize)); /* Disable NORSRAM Device */ __FSMC_NORSRAM_DISABLE(Device, Init->NSBank); - 80025ca: 683b ldr r3, [r7, #0] - 80025cc: 681a ldr r2, [r3, #0] - 80025ce: 687b ldr r3, [r7, #4] - 80025d0: f853 3022 ldr.w r3, [r3, r2, lsl #2] - 80025d4: 683a ldr r2, [r7, #0] - 80025d6: 6812 ldr r2, [r2, #0] - 80025d8: f023 0101 bic.w r1, r3, #1 - 80025dc: 687b ldr r3, [r7, #4] - 80025de: f843 1022 str.w r1, [r3, r2, lsl #2] + 80036e6: 683b ldr r3, [r7, #0] + 80036e8: 681a ldr r2, [r3, #0] + 80036ea: 687b ldr r3, [r7, #4] + 80036ec: f853 3022 ldr.w r3, [r3, r2, lsl #2] + 80036f0: 683a ldr r2, [r7, #0] + 80036f2: 6812 ldr r2, [r2, #0] + 80036f4: f023 0101 bic.w r1, r3, #1 + 80036f8: 687b ldr r3, [r7, #4] + 80036fa: f843 1022 str.w r1, [r3, r2, lsl #2] /* Set NORSRAM device control parameters */ if (Init->MemoryType == FSMC_MEMORY_TYPE_NOR) - 80025e2: 683b ldr r3, [r7, #0] - 80025e4: 689b ldr r3, [r3, #8] - 80025e6: 2b08 cmp r3, #8 - 80025e8: d102 bne.n 80025f0 + 80036fe: 683b ldr r3, [r7, #0] + 8003700: 689b ldr r3, [r3, #8] + 8003702: 2b08 cmp r3, #8 + 8003704: d102 bne.n 800370c { flashaccess = FSMC_NORSRAM_FLASH_ACCESS_ENABLE; - 80025ea: 2340 movs r3, #64 ; 0x40 - 80025ec: 617b str r3, [r7, #20] - 80025ee: e001 b.n 80025f4 + 8003706: 2340 movs r3, #64 ; 0x40 + 8003708: 617b str r3, [r7, #20] + 800370a: e001 b.n 8003710 } else { flashaccess = FSMC_NORSRAM_FLASH_ACCESS_DISABLE; - 80025f0: 2300 movs r3, #0 - 80025f2: 617b str r3, [r7, #20] + 800370c: 2300 movs r3, #0 + 800370e: 617b str r3, [r7, #20] } btcr_reg = (flashaccess | \ Init->DataAddressMux | \ - 80025f4: 683b ldr r3, [r7, #0] - 80025f6: 685a ldr r2, [r3, #4] + 8003710: 683b ldr r3, [r7, #0] + 8003712: 685a ldr r2, [r3, #4] btcr_reg = (flashaccess | \ - 80025f8: 697b ldr r3, [r7, #20] - 80025fa: 431a orrs r2, r3 + 8003714: 697b ldr r3, [r7, #20] + 8003716: 431a orrs r2, r3 Init->MemoryType | \ - 80025fc: 683b ldr r3, [r7, #0] - 80025fe: 689b ldr r3, [r3, #8] + 8003718: 683b ldr r3, [r7, #0] + 800371a: 689b ldr r3, [r3, #8] Init->DataAddressMux | \ - 8002600: 431a orrs r2, r3 + 800371c: 431a orrs r2, r3 Init->MemoryDataWidth | \ - 8002602: 683b ldr r3, [r7, #0] - 8002604: 68db ldr r3, [r3, #12] + 800371e: 683b ldr r3, [r7, #0] + 8003720: 68db ldr r3, [r3, #12] Init->MemoryType | \ - 8002606: 431a orrs r2, r3 + 8003722: 431a orrs r2, r3 Init->BurstAccessMode | \ - 8002608: 683b ldr r3, [r7, #0] - 800260a: 691b ldr r3, [r3, #16] + 8003724: 683b ldr r3, [r7, #0] + 8003726: 691b ldr r3, [r3, #16] Init->MemoryDataWidth | \ - 800260c: 431a orrs r2, r3 + 8003728: 431a orrs r2, r3 Init->WaitSignalPolarity | \ - 800260e: 683b ldr r3, [r7, #0] - 8002610: 695b ldr r3, [r3, #20] + 800372a: 683b ldr r3, [r7, #0] + 800372c: 695b ldr r3, [r3, #20] Init->BurstAccessMode | \ - 8002612: 431a orrs r2, r3 + 800372e: 431a orrs r2, r3 Init->WaitSignalActive | \ - 8002614: 683b ldr r3, [r7, #0] - 8002616: 69db ldr r3, [r3, #28] + 8003730: 683b ldr r3, [r7, #0] + 8003732: 69db ldr r3, [r3, #28] Init->WaitSignalPolarity | \ - 8002618: 431a orrs r2, r3 + 8003734: 431a orrs r2, r3 Init->WriteOperation | \ - 800261a: 683b ldr r3, [r7, #0] - 800261c: 6a1b ldr r3, [r3, #32] + 8003736: 683b ldr r3, [r7, #0] + 8003738: 6a1b ldr r3, [r3, #32] Init->WaitSignalActive | \ - 800261e: 431a orrs r2, r3 + 800373a: 431a orrs r2, r3 Init->WaitSignal | \ - 8002620: 683b ldr r3, [r7, #0] - 8002622: 6a5b ldr r3, [r3, #36] ; 0x24 + 800373c: 683b ldr r3, [r7, #0] + 800373e: 6a5b ldr r3, [r3, #36] ; 0x24 Init->WriteOperation | \ - 8002624: 431a orrs r2, r3 + 8003740: 431a orrs r2, r3 Init->ExtendedMode | \ - 8002626: 683b ldr r3, [r7, #0] - 8002628: 6a9b ldr r3, [r3, #40] ; 0x28 + 8003742: 683b ldr r3, [r7, #0] + 8003744: 6a9b ldr r3, [r3, #40] ; 0x28 Init->WaitSignal | \ - 800262a: 431a orrs r2, r3 + 8003746: 431a orrs r2, r3 Init->AsynchronousWait | \ - 800262c: 683b ldr r3, [r7, #0] - 800262e: 6adb ldr r3, [r3, #44] ; 0x2c + 8003748: 683b ldr r3, [r7, #0] + 800374a: 6adb ldr r3, [r3, #44] ; 0x2c Init->ExtendedMode | \ - 8002630: 431a orrs r2, r3 + 800374c: 431a orrs r2, r3 Init->WriteBurst); - 8002632: 683b ldr r3, [r7, #0] - 8002634: 6b1b ldr r3, [r3, #48] ; 0x30 + 800374e: 683b ldr r3, [r7, #0] + 8003750: 6b1b ldr r3, [r3, #48] ; 0x30 btcr_reg = (flashaccess | \ - 8002636: 4313 orrs r3, r2 - 8002638: 613b str r3, [r7, #16] + 8003752: 4313 orrs r3, r2 + 8003754: 613b str r3, [r7, #16] btcr_reg |= Init->WrapMode; - 800263a: 683b ldr r3, [r7, #0] - 800263c: 699b ldr r3, [r3, #24] - 800263e: 693a ldr r2, [r7, #16] - 8002640: 4313 orrs r3, r2 - 8002642: 613b str r3, [r7, #16] + 8003756: 683b ldr r3, [r7, #0] + 8003758: 699b ldr r3, [r3, #24] + 800375a: 693a ldr r2, [r7, #16] + 800375c: 4313 orrs r3, r2 + 800375e: 613b str r3, [r7, #16] btcr_reg |= Init->PageSize; - 8002644: 683b ldr r3, [r7, #0] - 8002646: 6b5b ldr r3, [r3, #52] ; 0x34 - 8002648: 693a ldr r2, [r7, #16] - 800264a: 4313 orrs r3, r2 - 800264c: 613b str r3, [r7, #16] + 8003760: 683b ldr r3, [r7, #0] + 8003762: 6b5b ldr r3, [r3, #52] ; 0x34 + 8003764: 693a ldr r2, [r7, #16] + 8003766: 4313 orrs r3, r2 + 8003768: 613b str r3, [r7, #16] mask = (FSMC_BCRx_MBKEN | - 800264e: 4b10 ldr r3, [pc, #64] ; (8002690 ) - 8002650: 60fb str r3, [r7, #12] + 800376a: 4b10 ldr r3, [pc, #64] ; (80037ac ) + 800376c: 60fb str r3, [r7, #12] FSMC_BCRx_WAITEN | FSMC_BCRx_EXTMOD | FSMC_BCRx_ASYNCWAIT | FSMC_BCRx_CBURSTRW); mask |= FSMC_BCRx_WRAPMOD; - 8002652: 68fb ldr r3, [r7, #12] - 8002654: f443 6380 orr.w r3, r3, #1024 ; 0x400 - 8002658: 60fb str r3, [r7, #12] + 800376e: 68fb ldr r3, [r7, #12] + 8003770: f443 6380 orr.w r3, r3, #1024 ; 0x400 + 8003774: 60fb str r3, [r7, #12] mask |= 0x00070000U; /* CPSIZE to be defined in CMSIS file */ - 800265a: 68fb ldr r3, [r7, #12] - 800265c: f443 23e0 orr.w r3, r3, #458752 ; 0x70000 - 8002660: 60fb str r3, [r7, #12] + 8003776: 68fb ldr r3, [r7, #12] + 8003778: f443 23e0 orr.w r3, r3, #458752 ; 0x70000 + 800377c: 60fb str r3, [r7, #12] MODIFY_REG(Device->BTCR[Init->NSBank], mask, btcr_reg); - 8002662: 683b ldr r3, [r7, #0] - 8002664: 681a ldr r2, [r3, #0] - 8002666: 687b ldr r3, [r7, #4] - 8002668: f853 2022 ldr.w r2, [r3, r2, lsl #2] - 800266c: 68fb ldr r3, [r7, #12] - 800266e: 43db mvns r3, r3 - 8002670: ea02 0103 and.w r1, r2, r3 - 8002674: 683b ldr r3, [r7, #0] - 8002676: 681a ldr r2, [r3, #0] - 8002678: 693b ldr r3, [r7, #16] - 800267a: 4319 orrs r1, r3 - 800267c: 687b ldr r3, [r7, #4] - 800267e: f843 1022 str.w r1, [r3, r2, lsl #2] + 800377e: 683b ldr r3, [r7, #0] + 8003780: 681a ldr r2, [r3, #0] + 8003782: 687b ldr r3, [r7, #4] + 8003784: f853 2022 ldr.w r2, [r3, r2, lsl #2] + 8003788: 68fb ldr r3, [r7, #12] + 800378a: 43db mvns r3, r3 + 800378c: ea02 0103 and.w r1, r2, r3 + 8003790: 683b ldr r3, [r7, #0] + 8003792: 681a ldr r2, [r3, #0] + 8003794: 693b ldr r3, [r7, #16] + 8003796: 4319 orrs r1, r3 + 8003798: 687b ldr r3, [r7, #4] + 800379a: f843 1022 str.w r1, [r3, r2, lsl #2] return HAL_OK; - 8002682: 2300 movs r3, #0 + 800379e: 2300 movs r3, #0 } - 8002684: 4618 mov r0, r3 - 8002686: 371c adds r7, #28 - 8002688: 46bd mov sp, r7 - 800268a: bc80 pop {r7} - 800268c: 4770 bx lr - 800268e: bf00 nop - 8002690: 0008fb7f .word 0x0008fb7f + 80037a0: 4618 mov r0, r3 + 80037a2: 371c adds r7, #28 + 80037a4: 46bd mov sp, r7 + 80037a6: bc80 pop {r7} + 80037a8: 4770 bx lr + 80037aa: bf00 nop + 80037ac: 0008fb7f .word 0x0008fb7f -08002694 : +080037b0 : * @param Bank NORSRAM bank number * @retval HAL status */ HAL_StatusTypeDef FSMC_NORSRAM_Timing_Init(FSMC_NORSRAM_TypeDef *Device, FSMC_NORSRAM_TimingTypeDef *Timing, uint32_t Bank) { - 8002694: b480 push {r7} - 8002696: b085 sub sp, #20 - 8002698: af00 add r7, sp, #0 - 800269a: 60f8 str r0, [r7, #12] - 800269c: 60b9 str r1, [r7, #8] - 800269e: 607a str r2, [r7, #4] + 80037b0: b480 push {r7} + 80037b2: b085 sub sp, #20 + 80037b4: af00 add r7, sp, #0 + 80037b6: 60f8 str r0, [r7, #12] + 80037b8: 60b9 str r1, [r7, #8] + 80037ba: 607a str r2, [r7, #4] assert_param(IS_FSMC_DATA_LATENCY(Timing->DataLatency)); assert_param(IS_FSMC_ACCESS_MODE(Timing->AccessMode)); assert_param(IS_FSMC_NORSRAM_BANK(Bank)); /* Set FSMC_NORSRAM device timing parameters */ MODIFY_REG(Device->BTCR[Bank + 1U], BTR_CLEAR_MASK, (Timing->AddressSetupTime | - 80026a0: 687b ldr r3, [r7, #4] - 80026a2: 1c5a adds r2, r3, #1 - 80026a4: 68fb ldr r3, [r7, #12] - 80026a6: f853 3022 ldr.w r3, [r3, r2, lsl #2] - 80026aa: f003 4140 and.w r1, r3, #3221225472 ; 0xc0000000 - 80026ae: 68bb ldr r3, [r7, #8] - 80026b0: 681a ldr r2, [r3, #0] - 80026b2: 68bb ldr r3, [r7, #8] - 80026b4: 685b ldr r3, [r3, #4] - 80026b6: 011b lsls r3, r3, #4 - 80026b8: 431a orrs r2, r3 - 80026ba: 68bb ldr r3, [r7, #8] - 80026bc: 689b ldr r3, [r3, #8] - 80026be: 021b lsls r3, r3, #8 - 80026c0: 431a orrs r2, r3 - 80026c2: 68bb ldr r3, [r7, #8] - 80026c4: 68db ldr r3, [r3, #12] - 80026c6: 041b lsls r3, r3, #16 - 80026c8: 431a orrs r2, r3 - 80026ca: 68bb ldr r3, [r7, #8] - 80026cc: 691b ldr r3, [r3, #16] - 80026ce: 3b01 subs r3, #1 - 80026d0: 051b lsls r3, r3, #20 - 80026d2: 431a orrs r2, r3 - 80026d4: 68bb ldr r3, [r7, #8] - 80026d6: 695b ldr r3, [r3, #20] - 80026d8: 3b02 subs r3, #2 - 80026da: 061b lsls r3, r3, #24 - 80026dc: 431a orrs r2, r3 - 80026de: 68bb ldr r3, [r7, #8] - 80026e0: 699b ldr r3, [r3, #24] - 80026e2: 4313 orrs r3, r2 - 80026e4: 687a ldr r2, [r7, #4] - 80026e6: 3201 adds r2, #1 - 80026e8: 4319 orrs r1, r3 - 80026ea: 68fb ldr r3, [r7, #12] - 80026ec: f843 1022 str.w r1, [r3, r2, lsl #2] + 80037bc: 687b ldr r3, [r7, #4] + 80037be: 1c5a adds r2, r3, #1 + 80037c0: 68fb ldr r3, [r7, #12] + 80037c2: f853 3022 ldr.w r3, [r3, r2, lsl #2] + 80037c6: f003 4140 and.w r1, r3, #3221225472 ; 0xc0000000 + 80037ca: 68bb ldr r3, [r7, #8] + 80037cc: 681a ldr r2, [r3, #0] + 80037ce: 68bb ldr r3, [r7, #8] + 80037d0: 685b ldr r3, [r3, #4] + 80037d2: 011b lsls r3, r3, #4 + 80037d4: 431a orrs r2, r3 + 80037d6: 68bb ldr r3, [r7, #8] + 80037d8: 689b ldr r3, [r3, #8] + 80037da: 021b lsls r3, r3, #8 + 80037dc: 431a orrs r2, r3 + 80037de: 68bb ldr r3, [r7, #8] + 80037e0: 68db ldr r3, [r3, #12] + 80037e2: 041b lsls r3, r3, #16 + 80037e4: 431a orrs r2, r3 + 80037e6: 68bb ldr r3, [r7, #8] + 80037e8: 691b ldr r3, [r3, #16] + 80037ea: 3b01 subs r3, #1 + 80037ec: 051b lsls r3, r3, #20 + 80037ee: 431a orrs r2, r3 + 80037f0: 68bb ldr r3, [r7, #8] + 80037f2: 695b ldr r3, [r3, #20] + 80037f4: 3b02 subs r3, #2 + 80037f6: 061b lsls r3, r3, #24 + 80037f8: 431a orrs r2, r3 + 80037fa: 68bb ldr r3, [r7, #8] + 80037fc: 699b ldr r3, [r3, #24] + 80037fe: 4313 orrs r3, r2 + 8003800: 687a ldr r2, [r7, #4] + 8003802: 3201 adds r2, #1 + 8003804: 4319 orrs r1, r3 + 8003806: 68fb ldr r3, [r7, #12] + 8003808: f843 1022 str.w r1, [r3, r2, lsl #2] ((Timing->BusTurnAroundDuration) << FSMC_BTRx_BUSTURN_Pos) | (((Timing->CLKDivision) - 1U) << FSMC_BTRx_CLKDIV_Pos) | (((Timing->DataLatency) - 2U) << FSMC_BTRx_DATLAT_Pos) | (Timing->AccessMode))); return HAL_OK; - 80026f0: 2300 movs r3, #0 + 800380c: 2300 movs r3, #0 } - 80026f2: 4618 mov r0, r3 - 80026f4: 3714 adds r7, #20 - 80026f6: 46bd mov sp, r7 - 80026f8: bc80 pop {r7} - 80026fa: 4770 bx lr + 800380e: 4618 mov r0, r3 + 8003810: 3714 adds r7, #20 + 8003812: 46bd mov sp, r7 + 8003814: bc80 pop {r7} + 8003816: 4770 bx lr -080026fc : +08003818 : * @retval HAL status */ HAL_StatusTypeDef FSMC_NORSRAM_Extended_Timing_Init(FSMC_NORSRAM_EXTENDED_TypeDef *Device, FSMC_NORSRAM_TimingTypeDef *Timing, uint32_t Bank, uint32_t ExtendedMode) { - 80026fc: b480 push {r7} - 80026fe: b085 sub sp, #20 - 8002700: af00 add r7, sp, #0 - 8002702: 60f8 str r0, [r7, #12] - 8002704: 60b9 str r1, [r7, #8] - 8002706: 607a str r2, [r7, #4] - 8002708: 603b str r3, [r7, #0] + 8003818: b480 push {r7} + 800381a: b085 sub sp, #20 + 800381c: af00 add r7, sp, #0 + 800381e: 60f8 str r0, [r7, #12] + 8003820: 60b9 str r1, [r7, #8] + 8003822: 607a str r2, [r7, #4] + 8003824: 603b str r3, [r7, #0] /* Check the parameters */ assert_param(IS_FSMC_EXTENDED_MODE(ExtendedMode)); /* Set NORSRAM device timing register for write configuration, if extended mode is used */ if (ExtendedMode == FSMC_EXTENDED_MODE_ENABLE) - 800270a: 683b ldr r3, [r7, #0] - 800270c: f5b3 4f80 cmp.w r3, #16384 ; 0x4000 - 8002710: d11d bne.n 800274e + 8003826: 683b ldr r3, [r7, #0] + 8003828: f5b3 4f80 cmp.w r3, #16384 ; 0x4000 + 800382c: d11d bne.n 800386a assert_param(IS_FSMC_ACCESS_MODE(Timing->AccessMode)); assert_param(IS_FSMC_NORSRAM_BANK(Bank)); /* Set NORSRAM device timing register for write configuration, if extended mode is used */ #if defined(FSMC_BWTRx_BUSTURN) MODIFY_REG(Device->BWTR[Bank], BWTR_CLEAR_MASK, (Timing->AddressSetupTime | - 8002712: 68fb ldr r3, [r7, #12] - 8002714: 687a ldr r2, [r7, #4] - 8002716: f853 2022 ldr.w r2, [r3, r2, lsl #2] - 800271a: 4b13 ldr r3, [pc, #76] ; (8002768 ) - 800271c: 4013 ands r3, r2 - 800271e: 68ba ldr r2, [r7, #8] - 8002720: 6811 ldr r1, [r2, #0] - 8002722: 68ba ldr r2, [r7, #8] - 8002724: 6852 ldr r2, [r2, #4] - 8002726: 0112 lsls r2, r2, #4 - 8002728: 4311 orrs r1, r2 - 800272a: 68ba ldr r2, [r7, #8] - 800272c: 6892 ldr r2, [r2, #8] - 800272e: 0212 lsls r2, r2, #8 - 8002730: 4311 orrs r1, r2 - 8002732: 68ba ldr r2, [r7, #8] - 8002734: 6992 ldr r2, [r2, #24] - 8002736: 4311 orrs r1, r2 - 8002738: 68ba ldr r2, [r7, #8] - 800273a: 68d2 ldr r2, [r2, #12] - 800273c: 0412 lsls r2, r2, #16 - 800273e: 430a orrs r2, r1 - 8002740: ea43 0102 orr.w r1, r3, r2 - 8002744: 68fb ldr r3, [r7, #12] - 8002746: 687a ldr r2, [r7, #4] - 8002748: f843 1022 str.w r1, [r3, r2, lsl #2] - 800274c: e005 b.n 800275a + 800382e: 68fb ldr r3, [r7, #12] + 8003830: 687a ldr r2, [r7, #4] + 8003832: f853 2022 ldr.w r2, [r3, r2, lsl #2] + 8003836: 4b13 ldr r3, [pc, #76] ; (8003884 ) + 8003838: 4013 ands r3, r2 + 800383a: 68ba ldr r2, [r7, #8] + 800383c: 6811 ldr r1, [r2, #0] + 800383e: 68ba ldr r2, [r7, #8] + 8003840: 6852 ldr r2, [r2, #4] + 8003842: 0112 lsls r2, r2, #4 + 8003844: 4311 orrs r1, r2 + 8003846: 68ba ldr r2, [r7, #8] + 8003848: 6892 ldr r2, [r2, #8] + 800384a: 0212 lsls r2, r2, #8 + 800384c: 4311 orrs r1, r2 + 800384e: 68ba ldr r2, [r7, #8] + 8003850: 6992 ldr r2, [r2, #24] + 8003852: 4311 orrs r1, r2 + 8003854: 68ba ldr r2, [r7, #8] + 8003856: 68d2 ldr r2, [r2, #12] + 8003858: 0412 lsls r2, r2, #16 + 800385a: 430a orrs r2, r1 + 800385c: ea43 0102 orr.w r1, r3, r2 + 8003860: 68fb ldr r3, [r7, #12] + 8003862: 687a ldr r2, [r7, #4] + 8003864: f843 1022 str.w r1, [r3, r2, lsl #2] + 8003868: e005 b.n 8003876 (((Timing->DataLatency) - 2U) << FSMC_BWTRx_DATLAT_Pos))); #endif /* FSMC_BWTRx_BUSTURN */ } else { Device->BWTR[Bank] = 0x0FFFFFFFU; - 800274e: 68fb ldr r3, [r7, #12] - 8002750: 687a ldr r2, [r7, #4] - 8002752: f06f 4170 mvn.w r1, #4026531840 ; 0xf0000000 - 8002756: f843 1022 str.w r1, [r3, r2, lsl #2] + 800386a: 68fb ldr r3, [r7, #12] + 800386c: 687a ldr r2, [r7, #4] + 800386e: f06f 4170 mvn.w r1, #4026531840 ; 0xf0000000 + 8003872: f843 1022 str.w r1, [r3, r2, lsl #2] } return HAL_OK; - 800275a: 2300 movs r3, #0 + 8003876: 2300 movs r3, #0 } - 800275c: 4618 mov r0, r3 - 800275e: 3714 adds r7, #20 - 8002760: 46bd mov sp, r7 - 8002762: bc80 pop {r7} - 8002764: 4770 bx lr - 8002766: bf00 nop - 8002768: cff00000 .word 0xcff00000 + 8003878: 4618 mov r0, r3 + 800387a: 3714 adds r7, #20 + 800387c: 46bd mov sp, r7 + 800387e: bc80 pop {r7} + 8003880: 4770 bx lr + 8003882: bf00 nop + 8003884: cff00000 .word 0xcff00000 -0800276c : +08003888 : _lcd_dev lcddev; //管理LCD重要参数 //**************************************************几种快速接口 //写寄存器函数 //regval:寄存器值 void LCD_WR_REG(uint16_t regval) { - 800276c: b480 push {r7} - 800276e: b083 sub sp, #12 - 8002770: af00 add r7, sp, #0 - 8002772: 4603 mov r3, r0 - 8002774: 80fb strh r3, [r7, #6] + 8003888: b480 push {r7} + 800388a: b083 sub sp, #12 + 800388c: af00 add r7, sp, #0 + 800388e: 4603 mov r3, r0 + 8003890: 80fb strh r3, [r7, #6] LCD_REG_ADDRESS=regval;//写入要写的寄存器序号 - 8002776: f04f 42d8 mov.w r2, #1811939328 ; 0x6c000000 - 800277a: 88fb ldrh r3, [r7, #6] - 800277c: 8013 strh r3, [r2, #0] + 8003892: f04f 42d8 mov.w r2, #1811939328 ; 0x6c000000 + 8003896: 88fb ldrh r3, [r7, #6] + 8003898: 8013 strh r3, [r2, #0] } - 800277e: bf00 nop - 8002780: 370c adds r7, #12 - 8002782: 46bd mov sp, r7 - 8002784: bc80 pop {r7} - 8002786: 4770 bx lr + 800389a: bf00 nop + 800389c: 370c adds r7, #12 + 800389e: 46bd mov sp, r7 + 80038a0: bc80 pop {r7} + 80038a2: 4770 bx lr -08002788 : +080038a4 : //写LCD数据 //data:要写入的值 void LCD_WR_DATA(uint16_t data) { - 8002788: b480 push {r7} - 800278a: b083 sub sp, #12 - 800278c: af00 add r7, sp, #0 - 800278e: 4603 mov r3, r0 - 8002790: 80fb strh r3, [r7, #6] + 80038a4: b480 push {r7} + 80038a6: b083 sub sp, #12 + 80038a8: af00 add r7, sp, #0 + 80038aa: 4603 mov r3, r0 + 80038ac: 80fb strh r3, [r7, #6] LCD_DATA_ADDRESS=data; - 8002792: 4a04 ldr r2, [pc, #16] ; (80027a4 ) - 8002794: 88fb ldrh r3, [r7, #6] - 8002796: 8013 strh r3, [r2, #0] + 80038ae: 4a04 ldr r2, [pc, #16] ; (80038c0 ) + 80038b0: 88fb ldrh r3, [r7, #6] + 80038b2: 8013 strh r3, [r2, #0] } - 8002798: bf00 nop - 800279a: 370c adds r7, #12 - 800279c: 46bd mov sp, r7 - 800279e: bc80 pop {r7} - 80027a0: 4770 bx lr - 80027a2: bf00 nop - 80027a4: 6c000800 .word 0x6c000800 + 80038b4: bf00 nop + 80038b6: 370c adds r7, #12 + 80038b8: 46bd mov sp, r7 + 80038ba: bc80 pop {r7} + 80038bc: 4770 bx lr + 80038be: bf00 nop + 80038c0: 6c000800 .word 0x6c000800 -080027a8 : +080038c4 : } //写寄存器 //LCD_Reg:寄存器地址 //LCD_RegValue:要写入的数据 void LCD_WriteReg(uint16_t LCD_Reg, uint16_t LCD_RegValue) { - 80027a8: b480 push {r7} - 80027aa: b083 sub sp, #12 - 80027ac: af00 add r7, sp, #0 - 80027ae: 4603 mov r3, r0 - 80027b0: 460a mov r2, r1 - 80027b2: 80fb strh r3, [r7, #6] - 80027b4: 4613 mov r3, r2 - 80027b6: 80bb strh r3, [r7, #4] + 80038c4: b480 push {r7} + 80038c6: b083 sub sp, #12 + 80038c8: af00 add r7, sp, #0 + 80038ca: 4603 mov r3, r0 + 80038cc: 460a mov r2, r1 + 80038ce: 80fb strh r3, [r7, #6] + 80038d0: 4613 mov r3, r2 + 80038d2: 80bb strh r3, [r7, #4] LCD_REG_ADDRESS = LCD_Reg; //写入要写的寄存器序号 - 80027b8: f04f 42d8 mov.w r2, #1811939328 ; 0x6c000000 - 80027bc: 88fb ldrh r3, [r7, #6] - 80027be: 8013 strh r3, [r2, #0] + 80038d4: f04f 42d8 mov.w r2, #1811939328 ; 0x6c000000 + 80038d8: 88fb ldrh r3, [r7, #6] + 80038da: 8013 strh r3, [r2, #0] LCD_DATA_ADDRESS = LCD_RegValue;//写入数据 - 80027c0: 4a03 ldr r2, [pc, #12] ; (80027d0 ) - 80027c2: 88bb ldrh r3, [r7, #4] - 80027c4: 8013 strh r3, [r2, #0] + 80038dc: 4a03 ldr r2, [pc, #12] ; (80038ec ) + 80038de: 88bb ldrh r3, [r7, #4] + 80038e0: 8013 strh r3, [r2, #0] } - 80027c6: bf00 nop - 80027c8: 370c adds r7, #12 - 80027ca: 46bd mov sp, r7 - 80027cc: bc80 pop {r7} - 80027ce: 4770 bx lr - 80027d0: 6c000800 .word 0x6c000800 + 80038e2: bf00 nop + 80038e4: 370c adds r7, #12 + 80038e6: 46bd mov sp, r7 + 80038e8: bc80 pop {r7} + 80038ea: 4770 bx lr + 80038ec: 6c000800 .word 0x6c000800 -080027d4 : +080038f0 : //读寄存器 //LCD_Reg:寄存器地址 //返回值:读到的数据 uint16_t LCD_ReadReg(uint16_t LCD_Reg) { - 80027d4: b480 push {r7} - 80027d6: b083 sub sp, #12 - 80027d8: af00 add r7, sp, #0 - 80027da: 4603 mov r3, r0 - 80027dc: 80fb strh r3, [r7, #6] + 80038f0: b480 push {r7} + 80038f2: b083 sub sp, #12 + 80038f4: af00 add r7, sp, #0 + 80038f6: 4603 mov r3, r0 + 80038f8: 80fb strh r3, [r7, #6] LCD_REG_ADDRESS=LCD_Reg; //写入要读的寄存器序号 - 80027de: f04f 42d8 mov.w r2, #1811939328 ; 0x6c000000 - 80027e2: 88fb ldrh r3, [r7, #6] - 80027e4: 8013 strh r3, [r2, #0] + 80038fa: f04f 42d8 mov.w r2, #1811939328 ; 0x6c000000 + 80038fe: 88fb ldrh r3, [r7, #6] + 8003900: 8013 strh r3, [r2, #0] //delay_us(5); return LCD_DATA_ADDRESS; //返回读到的值 - 80027e6: 4b04 ldr r3, [pc, #16] ; (80027f8 ) - 80027e8: 881b ldrh r3, [r3, #0] - 80027ea: b29b uxth r3, r3 + 8003902: 4b04 ldr r3, [pc, #16] ; (8003914 ) + 8003904: 881b ldrh r3, [r3, #0] + 8003906: b29b uxth r3, r3 } - 80027ec: 4618 mov r0, r3 - 80027ee: 370c adds r7, #12 - 80027f0: 46bd mov sp, r7 - 80027f2: bc80 pop {r7} - 80027f4: 4770 bx lr - 80027f6: bf00 nop - 80027f8: 6c000800 .word 0x6c000800 + 8003908: 4618 mov r0, r3 + 800390a: 370c adds r7, #12 + 800390c: 46bd mov sp, r7 + 800390e: bc80 pop {r7} + 8003910: 4770 bx lr + 8003912: bf00 nop + 8003914: 6c000800 .word 0x6c000800 -080027fc : +08003918 : //注意:其他函数可能会受到此函数设置的影响(尤其是9341/6804这两个奇葩), //所以,一般设置为L2R_U2D即可,如果设置为其他扫描方式,可能导致显示不正常. //dir:0~7,代表8个方向(具体定义见lcd.h) //9320/9325/9328/4531/4535/1505/b505/8989/5408/9341/5310等IC已经实际测试 void LCD_Scan_Dir(uint8_t dir) { - 80027fc: b580 push {r7, lr} - 80027fe: b084 sub sp, #16 - 8002800: af00 add r7, sp, #0 - 8002802: 4603 mov r3, r0 - 8002804: 71fb strb r3, [r7, #7] + 8003918: b580 push {r7, lr} + 800391a: b084 sub sp, #16 + 800391c: af00 add r7, sp, #0 + 800391e: 4603 mov r3, r0 + 8003920: 71fb strb r3, [r7, #7] uint16_t regval=0; - 8002806: 2300 movs r3, #0 - 8002808: 81fb strh r3, [r7, #14] + 8003922: 2300 movs r3, #0 + 8003924: 81fb strh r3, [r7, #14] uint8_t dirreg=0; - 800280a: 2300 movs r3, #0 - 800280c: 737b strb r3, [r7, #13] + 8003926: 2300 movs r3, #0 + 8003928: 737b strb r3, [r7, #13] uint16_t temp; if(lcddev.dir==1&&lcddev.id!=0X6804)//横屏时,对6804不改变扫描方向! - 800280e: 4ba8 ldr r3, [pc, #672] ; (8002ab0 ) - 8002810: 799b ldrb r3, [r3, #6] - 8002812: 2b01 cmp r3, #1 - 8002814: d134 bne.n 8002880 - 8002816: 4ba6 ldr r3, [pc, #664] ; (8002ab0 ) - 8002818: 889b ldrh r3, [r3, #4] - 800281a: f646 0204 movw r2, #26628 ; 0x6804 - 800281e: 4293 cmp r3, r2 - 8002820: d02e beq.n 8002880 + 800392a: 4ba8 ldr r3, [pc, #672] ; (8003bcc ) + 800392c: 799b ldrb r3, [r3, #6] + 800392e: 2b01 cmp r3, #1 + 8003930: d134 bne.n 800399c + 8003932: 4ba6 ldr r3, [pc, #664] ; (8003bcc ) + 8003934: 889b ldrh r3, [r3, #4] + 8003936: f646 0204 movw r2, #26628 ; 0x6804 + 800393a: 4293 cmp r3, r2 + 800393c: d02e beq.n 800399c { switch(dir)//方向转换 - 8002822: 79fb ldrb r3, [r7, #7] - 8002824: 2b07 cmp r3, #7 - 8002826: d82c bhi.n 8002882 - 8002828: a201 add r2, pc, #4 ; (adr r2, 8002830 ) - 800282a: f852 f023 ldr.w pc, [r2, r3, lsl #2] - 800282e: bf00 nop - 8002830: 08002851 .word 0x08002851 - 8002834: 08002857 .word 0x08002857 - 8002838: 0800285d .word 0x0800285d - 800283c: 08002863 .word 0x08002863 - 8002840: 08002869 .word 0x08002869 - 8002844: 0800286f .word 0x0800286f - 8002848: 08002875 .word 0x08002875 - 800284c: 0800287b .word 0x0800287b + 800393e: 79fb ldrb r3, [r7, #7] + 8003940: 2b07 cmp r3, #7 + 8003942: d82c bhi.n 800399e + 8003944: a201 add r2, pc, #4 ; (adr r2, 800394c ) + 8003946: f852 f023 ldr.w pc, [r2, r3, lsl #2] + 800394a: bf00 nop + 800394c: 0800396d .word 0x0800396d + 8003950: 08003973 .word 0x08003973 + 8003954: 08003979 .word 0x08003979 + 8003958: 0800397f .word 0x0800397f + 800395c: 08003985 .word 0x08003985 + 8003960: 0800398b .word 0x0800398b + 8003964: 08003991 .word 0x08003991 + 8003968: 08003997 .word 0x08003997 { case 0:dir=6;break; - 8002850: 2306 movs r3, #6 - 8002852: 71fb strb r3, [r7, #7] - 8002854: e015 b.n 8002882 + 800396c: 2306 movs r3, #6 + 800396e: 71fb strb r3, [r7, #7] + 8003970: e015 b.n 800399e case 1:dir=7;break; - 8002856: 2307 movs r3, #7 - 8002858: 71fb strb r3, [r7, #7] - 800285a: e012 b.n 8002882 + 8003972: 2307 movs r3, #7 + 8003974: 71fb strb r3, [r7, #7] + 8003976: e012 b.n 800399e case 2:dir=4;break; - 800285c: 2304 movs r3, #4 - 800285e: 71fb strb r3, [r7, #7] - 8002860: e00f b.n 8002882 + 8003978: 2304 movs r3, #4 + 800397a: 71fb strb r3, [r7, #7] + 800397c: e00f b.n 800399e case 3:dir=5;break; - 8002862: 2305 movs r3, #5 - 8002864: 71fb strb r3, [r7, #7] - 8002866: e00c b.n 8002882 + 800397e: 2305 movs r3, #5 + 8003980: 71fb strb r3, [r7, #7] + 8003982: e00c b.n 800399e case 4:dir=1;break; - 8002868: 2301 movs r3, #1 - 800286a: 71fb strb r3, [r7, #7] - 800286c: e009 b.n 8002882 + 8003984: 2301 movs r3, #1 + 8003986: 71fb strb r3, [r7, #7] + 8003988: e009 b.n 800399e case 5:dir=0;break; - 800286e: 2300 movs r3, #0 - 8002870: 71fb strb r3, [r7, #7] - 8002872: e006 b.n 8002882 + 800398a: 2300 movs r3, #0 + 800398c: 71fb strb r3, [r7, #7] + 800398e: e006 b.n 800399e case 6:dir=3;break; - 8002874: 2303 movs r3, #3 - 8002876: 71fb strb r3, [r7, #7] - 8002878: e003 b.n 8002882 + 8003990: 2303 movs r3, #3 + 8003992: 71fb strb r3, [r7, #7] + 8003994: e003 b.n 800399e case 7:dir=2;break; - 800287a: 2302 movs r3, #2 - 800287c: 71fb strb r3, [r7, #7] - 800287e: e000 b.n 8002882 + 8003996: 2302 movs r3, #2 + 8003998: 71fb strb r3, [r7, #7] + 800399a: e000 b.n 800399e } } - 8002880: bf00 nop + 800399c: bf00 nop if(lcddev.id==0x9341||lcddev.id==0X6804||lcddev.id==0X5310)//9341/6804/5310,很特殊 - 8002882: 4b8b ldr r3, [pc, #556] ; (8002ab0 ) - 8002884: 889b ldrh r3, [r3, #4] - 8002886: f249 3241 movw r2, #37697 ; 0x9341 - 800288a: 4293 cmp r3, r2 - 800288c: d00c beq.n 80028a8 - 800288e: 4b88 ldr r3, [pc, #544] ; (8002ab0 ) - 8002890: 889b ldrh r3, [r3, #4] - 8002892: f646 0204 movw r2, #26628 ; 0x6804 - 8002896: 4293 cmp r3, r2 - 8002898: d006 beq.n 80028a8 - 800289a: 4b85 ldr r3, [pc, #532] ; (8002ab0 ) - 800289c: 889b ldrh r3, [r3, #4] - 800289e: f245 3210 movw r2, #21264 ; 0x5310 - 80028a2: 4293 cmp r3, r2 - 80028a4: f040 80bb bne.w 8002a1e + 800399e: 4b8b ldr r3, [pc, #556] ; (8003bcc ) + 80039a0: 889b ldrh r3, [r3, #4] + 80039a2: f249 3241 movw r2, #37697 ; 0x9341 + 80039a6: 4293 cmp r3, r2 + 80039a8: d00c beq.n 80039c4 + 80039aa: 4b88 ldr r3, [pc, #544] ; (8003bcc ) + 80039ac: 889b ldrh r3, [r3, #4] + 80039ae: f646 0204 movw r2, #26628 ; 0x6804 + 80039b2: 4293 cmp r3, r2 + 80039b4: d006 beq.n 80039c4 + 80039b6: 4b85 ldr r3, [pc, #532] ; (8003bcc ) + 80039b8: 889b ldrh r3, [r3, #4] + 80039ba: f245 3210 movw r2, #21264 ; 0x5310 + 80039be: 4293 cmp r3, r2 + 80039c0: f040 80bb bne.w 8003b3a { switch(dir) - 80028a8: 79fb ldrb r3, [r7, #7] - 80028aa: 2b07 cmp r3, #7 - 80028ac: d835 bhi.n 800291a - 80028ae: a201 add r2, pc, #4 ; (adr r2, 80028b4 ) - 80028b0: f852 f023 ldr.w pc, [r2, r3, lsl #2] - 80028b4: 0800291b .word 0x0800291b - 80028b8: 080028d5 .word 0x080028d5 - 80028bc: 080028df .word 0x080028df - 80028c0: 080028e9 .word 0x080028e9 - 80028c4: 080028f3 .word 0x080028f3 - 80028c8: 080028fd .word 0x080028fd - 80028cc: 08002907 .word 0x08002907 - 80028d0: 08002911 .word 0x08002911 + 80039c4: 79fb ldrb r3, [r7, #7] + 80039c6: 2b07 cmp r3, #7 + 80039c8: d835 bhi.n 8003a36 + 80039ca: a201 add r2, pc, #4 ; (adr r2, 80039d0 ) + 80039cc: f852 f023 ldr.w pc, [r2, r3, lsl #2] + 80039d0: 08003a37 .word 0x08003a37 + 80039d4: 080039f1 .word 0x080039f1 + 80039d8: 080039fb .word 0x080039fb + 80039dc: 08003a05 .word 0x08003a05 + 80039e0: 08003a0f .word 0x08003a0f + 80039e4: 08003a19 .word 0x08003a19 + 80039e8: 08003a23 .word 0x08003a23 + 80039ec: 08003a2d .word 0x08003a2d { case L2R_U2D://从左到右,从上到下 regval|=(0<<7)|(0<<6)|(0<<5); break; case L2R_D2U://从左到右,从下到上 regval|=(1<<7)|(0<<6)|(0<<5); - 80028d4: 89fb ldrh r3, [r7, #14] - 80028d6: f043 0380 orr.w r3, r3, #128 ; 0x80 - 80028da: 81fb strh r3, [r7, #14] + 80039f0: 89fb ldrh r3, [r7, #14] + 80039f2: f043 0380 orr.w r3, r3, #128 ; 0x80 + 80039f6: 81fb strh r3, [r7, #14] break; - 80028dc: e01d b.n 800291a + 80039f8: e01d b.n 8003a36 case R2L_U2D://从右到左,从上到下 regval|=(0<<7)|(1<<6)|(0<<5); - 80028de: 89fb ldrh r3, [r7, #14] - 80028e0: f043 0340 orr.w r3, r3, #64 ; 0x40 - 80028e4: 81fb strh r3, [r7, #14] + 80039fa: 89fb ldrh r3, [r7, #14] + 80039fc: f043 0340 orr.w r3, r3, #64 ; 0x40 + 8003a00: 81fb strh r3, [r7, #14] break; - 80028e6: e018 b.n 800291a + 8003a02: e018 b.n 8003a36 case R2L_D2U://从右到左,从下到上 regval|=(1<<7)|(1<<6)|(0<<5); - 80028e8: 89fb ldrh r3, [r7, #14] - 80028ea: f043 03c0 orr.w r3, r3, #192 ; 0xc0 - 80028ee: 81fb strh r3, [r7, #14] + 8003a04: 89fb ldrh r3, [r7, #14] + 8003a06: f043 03c0 orr.w r3, r3, #192 ; 0xc0 + 8003a0a: 81fb strh r3, [r7, #14] break; - 80028f0: e013 b.n 800291a + 8003a0c: e013 b.n 8003a36 case U2D_L2R://从上到下,从左到右 regval|=(0<<7)|(0<<6)|(1<<5); - 80028f2: 89fb ldrh r3, [r7, #14] - 80028f4: f043 0320 orr.w r3, r3, #32 - 80028f8: 81fb strh r3, [r7, #14] + 8003a0e: 89fb ldrh r3, [r7, #14] + 8003a10: f043 0320 orr.w r3, r3, #32 + 8003a14: 81fb strh r3, [r7, #14] break; - 80028fa: e00e b.n 800291a + 8003a16: e00e b.n 8003a36 case U2D_R2L://从上到下,从右到左 regval|=(0<<7)|(1<<6)|(1<<5); - 80028fc: 89fb ldrh r3, [r7, #14] - 80028fe: f043 0360 orr.w r3, r3, #96 ; 0x60 - 8002902: 81fb strh r3, [r7, #14] + 8003a18: 89fb ldrh r3, [r7, #14] + 8003a1a: f043 0360 orr.w r3, r3, #96 ; 0x60 + 8003a1e: 81fb strh r3, [r7, #14] break; - 8002904: e009 b.n 800291a + 8003a20: e009 b.n 8003a36 case D2U_L2R://从下到上,从左到右 regval|=(1<<7)|(0<<6)|(1<<5); - 8002906: 89fb ldrh r3, [r7, #14] - 8002908: f043 03a0 orr.w r3, r3, #160 ; 0xa0 - 800290c: 81fb strh r3, [r7, #14] + 8003a22: 89fb ldrh r3, [r7, #14] + 8003a24: f043 03a0 orr.w r3, r3, #160 ; 0xa0 + 8003a28: 81fb strh r3, [r7, #14] break; - 800290e: e004 b.n 800291a + 8003a2a: e004 b.n 8003a36 case D2U_R2L://从下到上,从右到左 regval|=(1<<7)|(1<<6)|(1<<5); - 8002910: 89fb ldrh r3, [r7, #14] - 8002912: f043 03e0 orr.w r3, r3, #224 ; 0xe0 - 8002916: 81fb strh r3, [r7, #14] + 8003a2c: 89fb ldrh r3, [r7, #14] + 8003a2e: f043 03e0 orr.w r3, r3, #224 ; 0xe0 + 8003a32: 81fb strh r3, [r7, #14] break; - 8002918: bf00 nop + 8003a34: bf00 nop } dirreg=0X36; - 800291a: 2336 movs r3, #54 ; 0x36 - 800291c: 737b strb r3, [r7, #13] + 8003a36: 2336 movs r3, #54 ; 0x36 + 8003a38: 737b strb r3, [r7, #13] if(lcddev.id!=0X5310)regval|=0X08;//5310不需要BGR - 800291e: 4b64 ldr r3, [pc, #400] ; (8002ab0 ) - 8002920: 889b ldrh r3, [r3, #4] - 8002922: f245 3210 movw r2, #21264 ; 0x5310 - 8002926: 4293 cmp r3, r2 - 8002928: d003 beq.n 8002932 - 800292a: 89fb ldrh r3, [r7, #14] - 800292c: f043 0308 orr.w r3, r3, #8 - 8002930: 81fb strh r3, [r7, #14] + 8003a3a: 4b64 ldr r3, [pc, #400] ; (8003bcc ) + 8003a3c: 889b ldrh r3, [r3, #4] + 8003a3e: f245 3210 movw r2, #21264 ; 0x5310 + 8003a42: 4293 cmp r3, r2 + 8003a44: d003 beq.n 8003a4e + 8003a46: 89fb ldrh r3, [r7, #14] + 8003a48: f043 0308 orr.w r3, r3, #8 + 8003a4c: 81fb strh r3, [r7, #14] if(lcddev.id==0X6804)regval|=0x02;//6804的BIT6和9341的反了 - 8002932: 4b5f ldr r3, [pc, #380] ; (8002ab0 ) - 8002934: 889b ldrh r3, [r3, #4] - 8002936: f646 0204 movw r2, #26628 ; 0x6804 - 800293a: 4293 cmp r3, r2 - 800293c: d103 bne.n 8002946 - 800293e: 89fb ldrh r3, [r7, #14] - 8002940: f043 0302 orr.w r3, r3, #2 - 8002944: 81fb strh r3, [r7, #14] + 8003a4e: 4b5f ldr r3, [pc, #380] ; (8003bcc ) + 8003a50: 889b ldrh r3, [r3, #4] + 8003a52: f646 0204 movw r2, #26628 ; 0x6804 + 8003a56: 4293 cmp r3, r2 + 8003a58: d103 bne.n 8003a62 + 8003a5a: 89fb ldrh r3, [r7, #14] + 8003a5c: f043 0302 orr.w r3, r3, #2 + 8003a60: 81fb strh r3, [r7, #14] LCD_WriteReg(dirreg,regval); - 8002946: 7b7b ldrb r3, [r7, #13] - 8002948: b29b uxth r3, r3 - 800294a: 89fa ldrh r2, [r7, #14] - 800294c: 4611 mov r1, r2 - 800294e: 4618 mov r0, r3 - 8002950: f7ff ff2a bl 80027a8 + 8003a62: 7b7b ldrb r3, [r7, #13] + 8003a64: b29b uxth r3, r3 + 8003a66: 89fa ldrh r2, [r7, #14] + 8003a68: 4611 mov r1, r2 + 8003a6a: 4618 mov r0, r3 + 8003a6c: f7ff ff2a bl 80038c4 if((regval&0X20)||lcddev.dir==1) - 8002954: 89fb ldrh r3, [r7, #14] - 8002956: f003 0320 and.w r3, r3, #32 - 800295a: 2b00 cmp r3, #0 - 800295c: d103 bne.n 8002966 - 800295e: 4b54 ldr r3, [pc, #336] ; (8002ab0 ) - 8002960: 799b ldrb r3, [r3, #6] - 8002962: 2b01 cmp r3, #1 - 8002964: d110 bne.n 8002988 + 8003a70: 89fb ldrh r3, [r7, #14] + 8003a72: f003 0320 and.w r3, r3, #32 + 8003a76: 2b00 cmp r3, #0 + 8003a78: d103 bne.n 8003a82 + 8003a7a: 4b54 ldr r3, [pc, #336] ; (8003bcc ) + 8003a7c: 799b ldrb r3, [r3, #6] + 8003a7e: 2b01 cmp r3, #1 + 8003a80: d110 bne.n 8003aa4 { if(lcddev.width) - 8002968: 881a ldrh r2, [r3, #0] - 800296a: 4b51 ldr r3, [pc, #324] ; (8002ab0 ) - 800296c: 885b ldrh r3, [r3, #2] - 800296e: 429a cmp r2, r3 - 8002970: d21a bcs.n 80029a8 + 8003a82: 4b52 ldr r3, [pc, #328] ; (8003bcc ) + 8003a84: 881a ldrh r2, [r3, #0] + 8003a86: 4b51 ldr r3, [pc, #324] ; (8003bcc ) + 8003a88: 885b ldrh r3, [r3, #2] + 8003a8a: 429a cmp r2, r3 + 8003a8c: d21a bcs.n 8003ac4 { temp=lcddev.width; - 8002972: 4b4f ldr r3, [pc, #316] ; (8002ab0 ) - 8002974: 881b ldrh r3, [r3, #0] - 8002976: 817b strh r3, [r7, #10] + 8003a8e: 4b4f ldr r3, [pc, #316] ; (8003bcc ) + 8003a90: 881b ldrh r3, [r3, #0] + 8003a92: 817b strh r3, [r7, #10] lcddev.width=lcddev.height; - 8002978: 4b4d ldr r3, [pc, #308] ; (8002ab0 ) - 800297a: 885a ldrh r2, [r3, #2] - 800297c: 4b4c ldr r3, [pc, #304] ; (8002ab0 ) - 800297e: 801a strh r2, [r3, #0] + 8003a94: 4b4d ldr r3, [pc, #308] ; (8003bcc ) + 8003a96: 885a ldrh r2, [r3, #2] + 8003a98: 4b4c ldr r3, [pc, #304] ; (8003bcc ) + 8003a9a: 801a strh r2, [r3, #0] lcddev.height=temp; - 8002980: 4a4b ldr r2, [pc, #300] ; (8002ab0 ) - 8002982: 897b ldrh r3, [r7, #10] - 8002984: 8053 strh r3, [r2, #2] + 8003a9c: 4a4b ldr r2, [pc, #300] ; (8003bcc ) + 8003a9e: 897b ldrh r3, [r7, #10] + 8003aa0: 8053 strh r3, [r2, #2] if(lcddev.width + 8003aa2: e00f b.n 8003ac4 } }else { if(lcddev.width>lcddev.height)//交换X,Y - 8002988: 4b49 ldr r3, [pc, #292] ; (8002ab0 ) - 800298a: 881a ldrh r2, [r3, #0] - 800298c: 4b48 ldr r3, [pc, #288] ; (8002ab0 ) - 800298e: 885b ldrh r3, [r3, #2] - 8002990: 429a cmp r2, r3 - 8002992: d909 bls.n 80029a8 + 8003aa4: 4b49 ldr r3, [pc, #292] ; (8003bcc ) + 8003aa6: 881a ldrh r2, [r3, #0] + 8003aa8: 4b48 ldr r3, [pc, #288] ; (8003bcc ) + 8003aaa: 885b ldrh r3, [r3, #2] + 8003aac: 429a cmp r2, r3 + 8003aae: d909 bls.n 8003ac4 { temp=lcddev.width; - 8002994: 4b46 ldr r3, [pc, #280] ; (8002ab0 ) - 8002996: 881b ldrh r3, [r3, #0] - 8002998: 817b strh r3, [r7, #10] + 8003ab0: 4b46 ldr r3, [pc, #280] ; (8003bcc ) + 8003ab2: 881b ldrh r3, [r3, #0] + 8003ab4: 817b strh r3, [r7, #10] lcddev.width=lcddev.height; - 800299a: 4b45 ldr r3, [pc, #276] ; (8002ab0 ) - 800299c: 885a ldrh r2, [r3, #2] - 800299e: 4b44 ldr r3, [pc, #272] ; (8002ab0 ) - 80029a0: 801a strh r2, [r3, #0] + 8003ab6: 4b45 ldr r3, [pc, #276] ; (8003bcc ) + 8003ab8: 885a ldrh r2, [r3, #2] + 8003aba: 4b44 ldr r3, [pc, #272] ; (8003bcc ) + 8003abc: 801a strh r2, [r3, #0] lcddev.height=temp; - 80029a2: 4a43 ldr r2, [pc, #268] ; (8002ab0 ) - 80029a4: 897b ldrh r3, [r7, #10] - 80029a6: 8053 strh r3, [r2, #2] + 8003abe: 4a43 ldr r2, [pc, #268] ; (8003bcc ) + 8003ac0: 897b ldrh r3, [r7, #10] + 8003ac2: 8053 strh r3, [r2, #2] } } LCD_WR_REG(lcddev.setxcmd); - 80029a8: 4b41 ldr r3, [pc, #260] ; (8002ab0 ) - 80029aa: 7a1b ldrb r3, [r3, #8] - 80029ac: b29b uxth r3, r3 - 80029ae: 4618 mov r0, r3 - 80029b0: f7ff fedc bl 800276c + 8003ac4: 4b41 ldr r3, [pc, #260] ; (8003bcc ) + 8003ac6: 7a1b ldrb r3, [r3, #8] + 8003ac8: b29b uxth r3, r3 + 8003aca: 4618 mov r0, r3 + 8003acc: f7ff fedc bl 8003888 LCD_WR_DATA(0);LCD_WR_DATA(0); - 80029b4: 2000 movs r0, #0 - 80029b6: f7ff fee7 bl 8002788 - 80029ba: 2000 movs r0, #0 - 80029bc: f7ff fee4 bl 8002788 + 8003ad0: 2000 movs r0, #0 + 8003ad2: f7ff fee7 bl 80038a4 + 8003ad6: 2000 movs r0, #0 + 8003ad8: f7ff fee4 bl 80038a4 LCD_WR_DATA((lcddev.width-1)>>8);LCD_WR_DATA((lcddev.width-1)&0XFF); - 80029c0: 4b3b ldr r3, [pc, #236] ; (8002ab0 ) - 80029c2: 881b ldrh r3, [r3, #0] - 80029c4: 3b01 subs r3, #1 - 80029c6: 121b asrs r3, r3, #8 - 80029c8: b29b uxth r3, r3 - 80029ca: 4618 mov r0, r3 - 80029cc: f7ff fedc bl 8002788 - 80029d0: 4b37 ldr r3, [pc, #220] ; (8002ab0 ) - 80029d2: 881b ldrh r3, [r3, #0] - 80029d4: 3b01 subs r3, #1 - 80029d6: b29b uxth r3, r3 - 80029d8: b2db uxtb r3, r3 - 80029da: b29b uxth r3, r3 - 80029dc: 4618 mov r0, r3 - 80029de: f7ff fed3 bl 8002788 + 8003adc: 4b3b ldr r3, [pc, #236] ; (8003bcc ) + 8003ade: 881b ldrh r3, [r3, #0] + 8003ae0: 3b01 subs r3, #1 + 8003ae2: 121b asrs r3, r3, #8 + 8003ae4: b29b uxth r3, r3 + 8003ae6: 4618 mov r0, r3 + 8003ae8: f7ff fedc bl 80038a4 + 8003aec: 4b37 ldr r3, [pc, #220] ; (8003bcc ) + 8003aee: 881b ldrh r3, [r3, #0] + 8003af0: 3b01 subs r3, #1 + 8003af2: b29b uxth r3, r3 + 8003af4: b2db uxtb r3, r3 + 8003af6: b29b uxth r3, r3 + 8003af8: 4618 mov r0, r3 + 8003afa: f7ff fed3 bl 80038a4 LCD_WR_REG(lcddev.setycmd); - 80029e2: 4b33 ldr r3, [pc, #204] ; (8002ab0 ) - 80029e4: 7a5b ldrb r3, [r3, #9] - 80029e6: b29b uxth r3, r3 - 80029e8: 4618 mov r0, r3 - 80029ea: f7ff febf bl 800276c + 8003afe: 4b33 ldr r3, [pc, #204] ; (8003bcc ) + 8003b00: 7a5b ldrb r3, [r3, #9] + 8003b02: b29b uxth r3, r3 + 8003b04: 4618 mov r0, r3 + 8003b06: f7ff febf bl 8003888 LCD_WR_DATA(0);LCD_WR_DATA(0); - 80029ee: 2000 movs r0, #0 - 80029f0: f7ff feca bl 8002788 - 80029f4: 2000 movs r0, #0 - 80029f6: f7ff fec7 bl 8002788 + 8003b0a: 2000 movs r0, #0 + 8003b0c: f7ff feca bl 80038a4 + 8003b10: 2000 movs r0, #0 + 8003b12: f7ff fec7 bl 80038a4 LCD_WR_DATA((lcddev.height-1)>>8);LCD_WR_DATA((lcddev.height-1)&0XFF); - 80029fa: 4b2d ldr r3, [pc, #180] ; (8002ab0 ) - 80029fc: 885b ldrh r3, [r3, #2] - 80029fe: 3b01 subs r3, #1 - 8002a00: 121b asrs r3, r3, #8 - 8002a02: b29b uxth r3, r3 - 8002a04: 4618 mov r0, r3 - 8002a06: f7ff febf bl 8002788 - 8002a0a: 4b29 ldr r3, [pc, #164] ; (8002ab0 ) - 8002a0c: 885b ldrh r3, [r3, #2] - 8002a0e: 3b01 subs r3, #1 - 8002a10: b29b uxth r3, r3 - 8002a12: b2db uxtb r3, r3 - 8002a14: b29b uxth r3, r3 - 8002a16: 4618 mov r0, r3 - 8002a18: f7ff feb6 bl 8002788 - 8002a1c: e058 b.n 8002ad0 + 8003b16: 4b2d ldr r3, [pc, #180] ; (8003bcc ) + 8003b18: 885b ldrh r3, [r3, #2] + 8003b1a: 3b01 subs r3, #1 + 8003b1c: 121b asrs r3, r3, #8 + 8003b1e: b29b uxth r3, r3 + 8003b20: 4618 mov r0, r3 + 8003b22: f7ff febf bl 80038a4 + 8003b26: 4b29 ldr r3, [pc, #164] ; (8003bcc ) + 8003b28: 885b ldrh r3, [r3, #2] + 8003b2a: 3b01 subs r3, #1 + 8003b2c: b29b uxth r3, r3 + 8003b2e: b2db uxtb r3, r3 + 8003b30: b29b uxth r3, r3 + 8003b32: 4618 mov r0, r3 + 8003b34: f7ff feb6 bl 80038a4 + 8003b38: e058 b.n 8003bec }else { switch(dir) - 8002a1e: 79fb ldrb r3, [r7, #7] - 8002a20: 2b07 cmp r3, #7 - 8002a22: d836 bhi.n 8002a92 - 8002a24: a201 add r2, pc, #4 ; (adr r2, 8002a2c ) - 8002a26: f852 f023 ldr.w pc, [r2, r3, lsl #2] - 8002a2a: bf00 nop - 8002a2c: 08002a4d .word 0x08002a4d - 8002a30: 08002a57 .word 0x08002a57 - 8002a34: 08002a61 .word 0x08002a61 - 8002a38: 08002a93 .word 0x08002a93 - 8002a3c: 08002a6b .word 0x08002a6b - 8002a40: 08002a75 .word 0x08002a75 - 8002a44: 08002a7f .word 0x08002a7f - 8002a48: 08002a89 .word 0x08002a89 + 8003b3a: 79fb ldrb r3, [r7, #7] + 8003b3c: 2b07 cmp r3, #7 + 8003b3e: d836 bhi.n 8003bae + 8003b40: a201 add r2, pc, #4 ; (adr r2, 8003b48 ) + 8003b42: f852 f023 ldr.w pc, [r2, r3, lsl #2] + 8003b46: bf00 nop + 8003b48: 08003b69 .word 0x08003b69 + 8003b4c: 08003b73 .word 0x08003b73 + 8003b50: 08003b7d .word 0x08003b7d + 8003b54: 08003baf .word 0x08003baf + 8003b58: 08003b87 .word 0x08003b87 + 8003b5c: 08003b91 .word 0x08003b91 + 8003b60: 08003b9b .word 0x08003b9b + 8003b64: 08003ba5 .word 0x08003ba5 { case L2R_U2D://从左到右,从上到下 regval|=(1<<5)|(1<<4)|(0<<3); - 8002a4c: 89fb ldrh r3, [r7, #14] - 8002a4e: f043 0330 orr.w r3, r3, #48 ; 0x30 - 8002a52: 81fb strh r3, [r7, #14] + 8003b68: 89fb ldrh r3, [r7, #14] + 8003b6a: f043 0330 orr.w r3, r3, #48 ; 0x30 + 8003b6e: 81fb strh r3, [r7, #14] break; - 8002a54: e01d b.n 8002a92 + 8003b70: e01d b.n 8003bae case L2R_D2U://从左到右,从下到上 regval|=(0<<5)|(1<<4)|(0<<3); - 8002a56: 89fb ldrh r3, [r7, #14] - 8002a58: f043 0310 orr.w r3, r3, #16 - 8002a5c: 81fb strh r3, [r7, #14] + 8003b72: 89fb ldrh r3, [r7, #14] + 8003b74: f043 0310 orr.w r3, r3, #16 + 8003b78: 81fb strh r3, [r7, #14] break; - 8002a5e: e018 b.n 8002a92 + 8003b7a: e018 b.n 8003bae case R2L_U2D://从右到左,从上到下 regval|=(1<<5)|(0<<4)|(0<<3); - 8002a60: 89fb ldrh r3, [r7, #14] - 8002a62: f043 0320 orr.w r3, r3, #32 - 8002a66: 81fb strh r3, [r7, #14] + 8003b7c: 89fb ldrh r3, [r7, #14] + 8003b7e: f043 0320 orr.w r3, r3, #32 + 8003b82: 81fb strh r3, [r7, #14] break; - 8002a68: e013 b.n 8002a92 + 8003b84: e013 b.n 8003bae case R2L_D2U://从右到左,从下到上 regval|=(0<<5)|(0<<4)|(0<<3); break; case U2D_L2R://从上到下,从左到右 regval|=(1<<5)|(1<<4)|(1<<3); - 8002a6a: 89fb ldrh r3, [r7, #14] - 8002a6c: f043 0338 orr.w r3, r3, #56 ; 0x38 - 8002a70: 81fb strh r3, [r7, #14] + 8003b86: 89fb ldrh r3, [r7, #14] + 8003b88: f043 0338 orr.w r3, r3, #56 ; 0x38 + 8003b8c: 81fb strh r3, [r7, #14] break; - 8002a72: e00e b.n 8002a92 + 8003b8e: e00e b.n 8003bae case U2D_R2L://从上到下,从右到左 regval|=(1<<5)|(0<<4)|(1<<3); - 8002a74: 89fb ldrh r3, [r7, #14] - 8002a76: f043 0328 orr.w r3, r3, #40 ; 0x28 - 8002a7a: 81fb strh r3, [r7, #14] + 8003b90: 89fb ldrh r3, [r7, #14] + 8003b92: f043 0328 orr.w r3, r3, #40 ; 0x28 + 8003b96: 81fb strh r3, [r7, #14] break; - 8002a7c: e009 b.n 8002a92 + 8003b98: e009 b.n 8003bae case D2U_L2R://从下到上,从左到右 regval|=(0<<5)|(1<<4)|(1<<3); - 8002a7e: 89fb ldrh r3, [r7, #14] - 8002a80: f043 0318 orr.w r3, r3, #24 - 8002a84: 81fb strh r3, [r7, #14] + 8003b9a: 89fb ldrh r3, [r7, #14] + 8003b9c: f043 0318 orr.w r3, r3, #24 + 8003ba0: 81fb strh r3, [r7, #14] break; - 8002a86: e004 b.n 8002a92 + 8003ba2: e004 b.n 8003bae case D2U_R2L://从下到上,从右到左 regval|=(0<<5)|(0<<4)|(1<<3); - 8002a88: 89fb ldrh r3, [r7, #14] - 8002a8a: f043 0308 orr.w r3, r3, #8 - 8002a8e: 81fb strh r3, [r7, #14] + 8003ba4: 89fb ldrh r3, [r7, #14] + 8003ba6: f043 0308 orr.w r3, r3, #8 + 8003baa: 81fb strh r3, [r7, #14] break; - 8002a90: bf00 nop + 8003bac: bf00 nop } if(lcddev.id==0x8989)//8989 IC - 8002a92: 4b07 ldr r3, [pc, #28] ; (8002ab0 ) - 8002a94: 889b ldrh r3, [r3, #4] - 8002a96: f648 1289 movw r2, #35209 ; 0x8989 - 8002a9a: 4293 cmp r3, r2 - 8002a9c: d10a bne.n 8002ab4 + 8003bae: 4b07 ldr r3, [pc, #28] ; (8003bcc ) + 8003bb0: 889b ldrh r3, [r3, #4] + 8003bb2: f648 1289 movw r2, #35209 ; 0x8989 + 8003bb6: 4293 cmp r3, r2 + 8003bb8: d10a bne.n 8003bd0 { dirreg=0X11; - 8002a9e: 2311 movs r3, #17 - 8002aa0: 737b strb r3, [r7, #13] + 8003bba: 2311 movs r3, #17 + 8003bbc: 737b strb r3, [r7, #13] regval|=0X6040; //65K - 8002aa2: 89fb ldrh r3, [r7, #14] - 8002aa4: f443 43c0 orr.w r3, r3, #24576 ; 0x6000 - 8002aa8: f043 0340 orr.w r3, r3, #64 ; 0x40 - 8002aac: 81fb strh r3, [r7, #14] - 8002aae: e007 b.n 8002ac0 - 8002ab0: 20000254 .word 0x20000254 + 8003bbe: 89fb ldrh r3, [r7, #14] + 8003bc0: f443 43c0 orr.w r3, r3, #24576 ; 0x6000 + 8003bc4: f043 0340 orr.w r3, r3, #64 ; 0x40 + 8003bc8: 81fb strh r3, [r7, #14] + 8003bca: e007 b.n 8003bdc + 8003bcc: 200002a8 .word 0x200002a8 }else//其他驱动IC { dirreg=0X03; - 8002ab4: 2303 movs r3, #3 - 8002ab6: 737b strb r3, [r7, #13] + 8003bd0: 2303 movs r3, #3 + 8003bd2: 737b strb r3, [r7, #13] regval|=1<<12; - 8002ab8: 89fb ldrh r3, [r7, #14] - 8002aba: f443 5380 orr.w r3, r3, #4096 ; 0x1000 - 8002abe: 81fb strh r3, [r7, #14] + 8003bd4: 89fb ldrh r3, [r7, #14] + 8003bd6: f443 5380 orr.w r3, r3, #4096 ; 0x1000 + 8003bda: 81fb strh r3, [r7, #14] } LCD_WriteReg(dirreg,regval); - 8002ac0: 7b7b ldrb r3, [r7, #13] - 8002ac2: b29b uxth r3, r3 - 8002ac4: 89fa ldrh r2, [r7, #14] - 8002ac6: 4611 mov r1, r2 - 8002ac8: 4618 mov r0, r3 - 8002aca: f7ff fe6d bl 80027a8 + 8003bdc: 7b7b ldrb r3, [r7, #13] + 8003bde: b29b uxth r3, r3 + 8003be0: 89fa ldrh r2, [r7, #14] + 8003be2: 4611 mov r1, r2 + 8003be4: 4618 mov r0, r3 + 8003be6: f7ff fe6d bl 80038c4 } } - 8002ace: bf00 nop - 8002ad0: bf00 nop - 8002ad2: 3710 adds r7, #16 - 8002ad4: 46bd mov sp, r7 - 8002ad6: bd80 pop {r7, pc} + 8003bea: bf00 nop + 8003bec: bf00 nop + 8003bee: 3710 adds r7, #16 + 8003bf0: 46bd mov sp, r7 + 8003bf2: bd80 pop {r7, pc} -08002ad8 : +08003bf4 : //设置LCD显示方向 //dir:0,竖屏;1,横屏 void LCD_Display_Dir(uint8_t dir) { - 8002ad8: b580 push {r7, lr} - 8002ada: b082 sub sp, #8 - 8002adc: af00 add r7, sp, #0 - 8002ade: 4603 mov r3, r0 - 8002ae0: 71fb strb r3, [r7, #7] + 8003bf4: b580 push {r7, lr} + 8003bf6: b082 sub sp, #8 + 8003bf8: af00 add r7, sp, #0 + 8003bfa: 4603 mov r3, r0 + 8003bfc: 71fb strb r3, [r7, #7] if(dir==0) //竖屏 - 8002ae2: 79fb ldrb r3, [r7, #7] - 8002ae4: 2b00 cmp r3, #0 - 8002ae6: d154 bne.n 8002b92 + 8003bfe: 79fb ldrb r3, [r7, #7] + 8003c00: 2b00 cmp r3, #0 + 8003c02: d154 bne.n 8003cae { lcddev.dir=0; //竖屏 - 8002ae8: 4b5d ldr r3, [pc, #372] ; (8002c60 ) - 8002aea: 2200 movs r2, #0 - 8002aec: 719a strb r2, [r3, #6] + 8003c04: 4b5d ldr r3, [pc, #372] ; (8003d7c ) + 8003c06: 2200 movs r2, #0 + 8003c08: 719a strb r2, [r3, #6] lcddev.width=240; - 8002aee: 4b5c ldr r3, [pc, #368] ; (8002c60 ) - 8002af0: 22f0 movs r2, #240 ; 0xf0 - 8002af2: 801a strh r2, [r3, #0] + 8003c0a: 4b5c ldr r3, [pc, #368] ; (8003d7c ) + 8003c0c: 22f0 movs r2, #240 ; 0xf0 + 8003c0e: 801a strh r2, [r3, #0] lcddev.height=320; - 8002af4: 4b5a ldr r3, [pc, #360] ; (8002c60 ) - 8002af6: f44f 72a0 mov.w r2, #320 ; 0x140 - 8002afa: 805a strh r2, [r3, #2] + 8003c10: 4b5a ldr r3, [pc, #360] ; (8003d7c ) + 8003c12: f44f 72a0 mov.w r2, #320 ; 0x140 + 8003c16: 805a strh r2, [r3, #2] if(lcddev.id==0X9341||lcddev.id==0X6804||lcddev.id==0X5310) - 8002afc: 4b58 ldr r3, [pc, #352] ; (8002c60 ) - 8002afe: 889b ldrh r3, [r3, #4] - 8002b00: f249 3241 movw r2, #37697 ; 0x9341 - 8002b04: 4293 cmp r3, r2 - 8002b06: d00b beq.n 8002b20 - 8002b08: 4b55 ldr r3, [pc, #340] ; (8002c60 ) - 8002b0a: 889b ldrh r3, [r3, #4] - 8002b0c: f646 0204 movw r2, #26628 ; 0x6804 - 8002b10: 4293 cmp r3, r2 - 8002b12: d005 beq.n 8002b20 - 8002b14: 4b52 ldr r3, [pc, #328] ; (8002c60 ) - 8002b16: 889b ldrh r3, [r3, #4] - 8002b18: f245 3210 movw r2, #21264 ; 0x5310 - 8002b1c: 4293 cmp r3, r2 - 8002b1e: d11e bne.n 8002b5e + 8003c18: 4b58 ldr r3, [pc, #352] ; (8003d7c ) + 8003c1a: 889b ldrh r3, [r3, #4] + 8003c1c: f249 3241 movw r2, #37697 ; 0x9341 + 8003c20: 4293 cmp r3, r2 + 8003c22: d00b beq.n 8003c3c + 8003c24: 4b55 ldr r3, [pc, #340] ; (8003d7c ) + 8003c26: 889b ldrh r3, [r3, #4] + 8003c28: f646 0204 movw r2, #26628 ; 0x6804 + 8003c2c: 4293 cmp r3, r2 + 8003c2e: d005 beq.n 8003c3c + 8003c30: 4b52 ldr r3, [pc, #328] ; (8003d7c ) + 8003c32: 889b ldrh r3, [r3, #4] + 8003c34: f245 3210 movw r2, #21264 ; 0x5310 + 8003c38: 4293 cmp r3, r2 + 8003c3a: d11e bne.n 8003c7a { lcddev.wramcmd=0X2C; - 8002b20: 4b4f ldr r3, [pc, #316] ; (8002c60 ) - 8002b22: 222c movs r2, #44 ; 0x2c - 8002b24: 71da strb r2, [r3, #7] + 8003c3c: 4b4f ldr r3, [pc, #316] ; (8003d7c ) + 8003c3e: 222c movs r2, #44 ; 0x2c + 8003c40: 71da strb r2, [r3, #7] lcddev.setxcmd=0X2A; - 8002b26: 4b4e ldr r3, [pc, #312] ; (8002c60 ) - 8002b28: 222a movs r2, #42 ; 0x2a - 8002b2a: 721a strb r2, [r3, #8] + 8003c42: 4b4e ldr r3, [pc, #312] ; (8003d7c ) + 8003c44: 222a movs r2, #42 ; 0x2a + 8003c46: 721a strb r2, [r3, #8] lcddev.setycmd=0X2B; - 8002b2c: 4b4c ldr r3, [pc, #304] ; (8002c60 ) - 8002b2e: 222b movs r2, #43 ; 0x2b - 8002b30: 725a strb r2, [r3, #9] + 8003c48: 4b4c ldr r3, [pc, #304] ; (8003d7c ) + 8003c4a: 222b movs r2, #43 ; 0x2b + 8003c4c: 725a strb r2, [r3, #9] if(lcddev.id==0X6804||lcddev.id==0X5310) - 8002b32: 4b4b ldr r3, [pc, #300] ; (8002c60 ) - 8002b34: 889b ldrh r3, [r3, #4] - 8002b36: f646 0204 movw r2, #26628 ; 0x6804 - 8002b3a: 4293 cmp r3, r2 - 8002b3c: d006 beq.n 8002b4c - 8002b3e: 4b48 ldr r3, [pc, #288] ; (8002c60 ) - 8002b40: 889b ldrh r3, [r3, #4] - 8002b42: f245 3210 movw r2, #21264 ; 0x5310 - 8002b46: 4293 cmp r3, r2 - 8002b48: f040 8081 bne.w 8002c4e + 8003c4e: 4b4b ldr r3, [pc, #300] ; (8003d7c ) + 8003c50: 889b ldrh r3, [r3, #4] + 8003c52: f646 0204 movw r2, #26628 ; 0x6804 + 8003c56: 4293 cmp r3, r2 + 8003c58: d006 beq.n 8003c68 + 8003c5a: 4b48 ldr r3, [pc, #288] ; (8003d7c ) + 8003c5c: 889b ldrh r3, [r3, #4] + 8003c5e: f245 3210 movw r2, #21264 ; 0x5310 + 8003c62: 4293 cmp r3, r2 + 8003c64: f040 8081 bne.w 8003d6a { lcddev.width=320; - 8002b4c: 4b44 ldr r3, [pc, #272] ; (8002c60 ) - 8002b4e: f44f 72a0 mov.w r2, #320 ; 0x140 - 8002b52: 801a strh r2, [r3, #0] + 8003c68: 4b44 ldr r3, [pc, #272] ; (8003d7c ) + 8003c6a: f44f 72a0 mov.w r2, #320 ; 0x140 + 8003c6e: 801a strh r2, [r3, #0] lcddev.height=480; - 8002b54: 4b42 ldr r3, [pc, #264] ; (8002c60 ) - 8002b56: f44f 72f0 mov.w r2, #480 ; 0x1e0 - 8002b5a: 805a strh r2, [r3, #2] + 8003c70: 4b42 ldr r3, [pc, #264] ; (8003d7c ) + 8003c72: f44f 72f0 mov.w r2, #480 ; 0x1e0 + 8003c76: 805a strh r2, [r3, #2] if(lcddev.id==0X6804||lcddev.id==0X5310) - 8002b5c: e077 b.n 8002c4e + 8003c78: e077 b.n 8003d6a } }else if(lcddev.id==0X8989) - 8002b5e: 4b40 ldr r3, [pc, #256] ; (8002c60 ) - 8002b60: 889b ldrh r3, [r3, #4] - 8002b62: f648 1289 movw r2, #35209 ; 0x8989 - 8002b66: 4293 cmp r3, r2 - 8002b68: d109 bne.n 8002b7e + 8003c7a: 4b40 ldr r3, [pc, #256] ; (8003d7c ) + 8003c7c: 889b ldrh r3, [r3, #4] + 8003c7e: f648 1289 movw r2, #35209 ; 0x8989 + 8003c82: 4293 cmp r3, r2 + 8003c84: d109 bne.n 8003c9a { lcddev.wramcmd=R34; - 8002b6a: 4b3d ldr r3, [pc, #244] ; (8002c60 ) - 8002b6c: 2222 movs r2, #34 ; 0x22 - 8002b6e: 71da strb r2, [r3, #7] + 8003c86: 4b3d ldr r3, [pc, #244] ; (8003d7c ) + 8003c88: 2222 movs r2, #34 ; 0x22 + 8003c8a: 71da strb r2, [r3, #7] lcddev.setxcmd=0X4E; - 8002b70: 4b3b ldr r3, [pc, #236] ; (8002c60 ) - 8002b72: 224e movs r2, #78 ; 0x4e - 8002b74: 721a strb r2, [r3, #8] + 8003c8c: 4b3b ldr r3, [pc, #236] ; (8003d7c ) + 8003c8e: 224e movs r2, #78 ; 0x4e + 8003c90: 721a strb r2, [r3, #8] lcddev.setycmd=0X4F; - 8002b76: 4b3a ldr r3, [pc, #232] ; (8002c60 ) - 8002b78: 224f movs r2, #79 ; 0x4f - 8002b7a: 725a strb r2, [r3, #9] - 8002b7c: e068 b.n 8002c50 + 8003c92: 4b3a ldr r3, [pc, #232] ; (8003d7c ) + 8003c94: 224f movs r2, #79 ; 0x4f + 8003c96: 725a strb r2, [r3, #9] + 8003c98: e068 b.n 8003d6c }else { lcddev.wramcmd=R34; - 8002b7e: 4b38 ldr r3, [pc, #224] ; (8002c60 ) - 8002b80: 2222 movs r2, #34 ; 0x22 - 8002b82: 71da strb r2, [r3, #7] + 8003c9a: 4b38 ldr r3, [pc, #224] ; (8003d7c ) + 8003c9c: 2222 movs r2, #34 ; 0x22 + 8003c9e: 71da strb r2, [r3, #7] lcddev.setxcmd=R32; - 8002b84: 4b36 ldr r3, [pc, #216] ; (8002c60 ) - 8002b86: 2220 movs r2, #32 - 8002b88: 721a strb r2, [r3, #8] + 8003ca0: 4b36 ldr r3, [pc, #216] ; (8003d7c ) + 8003ca2: 2220 movs r2, #32 + 8003ca4: 721a strb r2, [r3, #8] lcddev.setycmd=R33; - 8002b8a: 4b35 ldr r3, [pc, #212] ; (8002c60 ) - 8002b8c: 2221 movs r2, #33 ; 0x21 - 8002b8e: 725a strb r2, [r3, #9] - 8002b90: e05e b.n 8002c50 + 8003ca6: 4b35 ldr r3, [pc, #212] ; (8003d7c ) + 8003ca8: 2221 movs r2, #33 ; 0x21 + 8003caa: 725a strb r2, [r3, #9] + 8003cac: e05e b.n 8003d6c } }else //横屏 { lcddev.dir=1; //横屏 - 8002b92: 4b33 ldr r3, [pc, #204] ; (8002c60 ) - 8002b94: 2201 movs r2, #1 - 8002b96: 719a strb r2, [r3, #6] + 8003cae: 4b33 ldr r3, [pc, #204] ; (8003d7c ) + 8003cb0: 2201 movs r2, #1 + 8003cb2: 719a strb r2, [r3, #6] lcddev.width=320; - 8002b98: 4b31 ldr r3, [pc, #196] ; (8002c60 ) - 8002b9a: f44f 72a0 mov.w r2, #320 ; 0x140 - 8002b9e: 801a strh r2, [r3, #0] + 8003cb4: 4b31 ldr r3, [pc, #196] ; (8003d7c ) + 8003cb6: f44f 72a0 mov.w r2, #320 ; 0x140 + 8003cba: 801a strh r2, [r3, #0] lcddev.height=240; - 8002ba0: 4b2f ldr r3, [pc, #188] ; (8002c60 ) - 8002ba2: 22f0 movs r2, #240 ; 0xf0 - 8002ba4: 805a strh r2, [r3, #2] + 8003cbc: 4b2f ldr r3, [pc, #188] ; (8003d7c ) + 8003cbe: 22f0 movs r2, #240 ; 0xf0 + 8003cc0: 805a strh r2, [r3, #2] if(lcddev.id==0X9341||lcddev.id==0X5310) - 8002ba6: 4b2e ldr r3, [pc, #184] ; (8002c60 ) - 8002ba8: 889b ldrh r3, [r3, #4] - 8002baa: f249 3241 movw r2, #37697 ; 0x9341 - 8002bae: 4293 cmp r3, r2 - 8002bb0: d005 beq.n 8002bbe - 8002bb2: 4b2b ldr r3, [pc, #172] ; (8002c60 ) - 8002bb4: 889b ldrh r3, [r3, #4] - 8002bb6: f245 3210 movw r2, #21264 ; 0x5310 - 8002bba: 4293 cmp r3, r2 - 8002bbc: d109 bne.n 8002bd2 + 8003cc2: 4b2e ldr r3, [pc, #184] ; (8003d7c ) + 8003cc4: 889b ldrh r3, [r3, #4] + 8003cc6: f249 3241 movw r2, #37697 ; 0x9341 + 8003cca: 4293 cmp r3, r2 + 8003ccc: d005 beq.n 8003cda + 8003cce: 4b2b ldr r3, [pc, #172] ; (8003d7c ) + 8003cd0: 889b ldrh r3, [r3, #4] + 8003cd2: f245 3210 movw r2, #21264 ; 0x5310 + 8003cd6: 4293 cmp r3, r2 + 8003cd8: d109 bne.n 8003cee { lcddev.wramcmd=0X2C; - 8002bbe: 4b28 ldr r3, [pc, #160] ; (8002c60 ) - 8002bc0: 222c movs r2, #44 ; 0x2c - 8002bc2: 71da strb r2, [r3, #7] + 8003cda: 4b28 ldr r3, [pc, #160] ; (8003d7c ) + 8003cdc: 222c movs r2, #44 ; 0x2c + 8003cde: 71da strb r2, [r3, #7] lcddev.setxcmd=0X2A; - 8002bc4: 4b26 ldr r3, [pc, #152] ; (8002c60 ) - 8002bc6: 222a movs r2, #42 ; 0x2a - 8002bc8: 721a strb r2, [r3, #8] + 8003ce0: 4b26 ldr r3, [pc, #152] ; (8003d7c ) + 8003ce2: 222a movs r2, #42 ; 0x2a + 8003ce4: 721a strb r2, [r3, #8] lcddev.setycmd=0X2B; - 8002bca: 4b25 ldr r3, [pc, #148] ; (8002c60 ) - 8002bcc: 222b movs r2, #43 ; 0x2b - 8002bce: 725a strb r2, [r3, #9] - 8002bd0: e028 b.n 8002c24 + 8003ce6: 4b25 ldr r3, [pc, #148] ; (8003d7c ) + 8003ce8: 222b movs r2, #43 ; 0x2b + 8003cea: 725a strb r2, [r3, #9] + 8003cec: e028 b.n 8003d40 }else if(lcddev.id==0X6804) - 8002bd2: 4b23 ldr r3, [pc, #140] ; (8002c60 ) - 8002bd4: 889b ldrh r3, [r3, #4] - 8002bd6: f646 0204 movw r2, #26628 ; 0x6804 - 8002bda: 4293 cmp r3, r2 - 8002bdc: d109 bne.n 8002bf2 + 8003cee: 4b23 ldr r3, [pc, #140] ; (8003d7c ) + 8003cf0: 889b ldrh r3, [r3, #4] + 8003cf2: f646 0204 movw r2, #26628 ; 0x6804 + 8003cf6: 4293 cmp r3, r2 + 8003cf8: d109 bne.n 8003d0e { lcddev.wramcmd=0X2C; - 8002bde: 4b20 ldr r3, [pc, #128] ; (8002c60 ) - 8002be0: 222c movs r2, #44 ; 0x2c - 8002be2: 71da strb r2, [r3, #7] + 8003cfa: 4b20 ldr r3, [pc, #128] ; (8003d7c ) + 8003cfc: 222c movs r2, #44 ; 0x2c + 8003cfe: 71da strb r2, [r3, #7] lcddev.setxcmd=0X2B; - 8002be4: 4b1e ldr r3, [pc, #120] ; (8002c60 ) - 8002be6: 222b movs r2, #43 ; 0x2b - 8002be8: 721a strb r2, [r3, #8] + 8003d00: 4b1e ldr r3, [pc, #120] ; (8003d7c ) + 8003d02: 222b movs r2, #43 ; 0x2b + 8003d04: 721a strb r2, [r3, #8] lcddev.setycmd=0X2A; - 8002bea: 4b1d ldr r3, [pc, #116] ; (8002c60 ) - 8002bec: 222a movs r2, #42 ; 0x2a - 8002bee: 725a strb r2, [r3, #9] - 8002bf0: e018 b.n 8002c24 + 8003d06: 4b1d ldr r3, [pc, #116] ; (8003d7c ) + 8003d08: 222a movs r2, #42 ; 0x2a + 8003d0a: 725a strb r2, [r3, #9] + 8003d0c: e018 b.n 8003d40 }else if(lcddev.id==0X8989) - 8002bf2: 4b1b ldr r3, [pc, #108] ; (8002c60 ) - 8002bf4: 889b ldrh r3, [r3, #4] - 8002bf6: f648 1289 movw r2, #35209 ; 0x8989 - 8002bfa: 4293 cmp r3, r2 - 8002bfc: d109 bne.n 8002c12 + 8003d0e: 4b1b ldr r3, [pc, #108] ; (8003d7c ) + 8003d10: 889b ldrh r3, [r3, #4] + 8003d12: f648 1289 movw r2, #35209 ; 0x8989 + 8003d16: 4293 cmp r3, r2 + 8003d18: d109 bne.n 8003d2e { lcddev.wramcmd=R34; - 8002bfe: 4b18 ldr r3, [pc, #96] ; (8002c60 ) - 8002c00: 2222 movs r2, #34 ; 0x22 - 8002c02: 71da strb r2, [r3, #7] + 8003d1a: 4b18 ldr r3, [pc, #96] ; (8003d7c ) + 8003d1c: 2222 movs r2, #34 ; 0x22 + 8003d1e: 71da strb r2, [r3, #7] lcddev.setxcmd=0X4F; - 8002c04: 4b16 ldr r3, [pc, #88] ; (8002c60 ) - 8002c06: 224f movs r2, #79 ; 0x4f - 8002c08: 721a strb r2, [r3, #8] + 8003d20: 4b16 ldr r3, [pc, #88] ; (8003d7c ) + 8003d22: 224f movs r2, #79 ; 0x4f + 8003d24: 721a strb r2, [r3, #8] lcddev.setycmd=0X4E; - 8002c0a: 4b15 ldr r3, [pc, #84] ; (8002c60 ) - 8002c0c: 224e movs r2, #78 ; 0x4e - 8002c0e: 725a strb r2, [r3, #9] - 8002c10: e008 b.n 8002c24 + 8003d26: 4b15 ldr r3, [pc, #84] ; (8003d7c ) + 8003d28: 224e movs r2, #78 ; 0x4e + 8003d2a: 725a strb r2, [r3, #9] + 8003d2c: e008 b.n 8003d40 }else { lcddev.wramcmd=R34; - 8002c12: 4b13 ldr r3, [pc, #76] ; (8002c60 ) - 8002c14: 2222 movs r2, #34 ; 0x22 - 8002c16: 71da strb r2, [r3, #7] + 8003d2e: 4b13 ldr r3, [pc, #76] ; (8003d7c ) + 8003d30: 2222 movs r2, #34 ; 0x22 + 8003d32: 71da strb r2, [r3, #7] lcddev.setxcmd=R33; - 8002c18: 4b11 ldr r3, [pc, #68] ; (8002c60 ) - 8002c1a: 2221 movs r2, #33 ; 0x21 - 8002c1c: 721a strb r2, [r3, #8] + 8003d34: 4b11 ldr r3, [pc, #68] ; (8003d7c ) + 8003d36: 2221 movs r2, #33 ; 0x21 + 8003d38: 721a strb r2, [r3, #8] lcddev.setycmd=R32; - 8002c1e: 4b10 ldr r3, [pc, #64] ; (8002c60 ) - 8002c20: 2220 movs r2, #32 - 8002c22: 725a strb r2, [r3, #9] + 8003d3a: 4b10 ldr r3, [pc, #64] ; (8003d7c ) + 8003d3c: 2220 movs r2, #32 + 8003d3e: 725a strb r2, [r3, #9] } if(lcddev.id==0X6804||lcddev.id==0X5310) - 8002c24: 4b0e ldr r3, [pc, #56] ; (8002c60 ) - 8002c26: 889b ldrh r3, [r3, #4] - 8002c28: f646 0204 movw r2, #26628 ; 0x6804 - 8002c2c: 4293 cmp r3, r2 - 8002c2e: d005 beq.n 8002c3c - 8002c30: 4b0b ldr r3, [pc, #44] ; (8002c60 ) - 8002c32: 889b ldrh r3, [r3, #4] - 8002c34: f245 3210 movw r2, #21264 ; 0x5310 - 8002c38: 4293 cmp r3, r2 - 8002c3a: d109 bne.n 8002c50 + 8003d40: 4b0e ldr r3, [pc, #56] ; (8003d7c ) + 8003d42: 889b ldrh r3, [r3, #4] + 8003d44: f646 0204 movw r2, #26628 ; 0x6804 + 8003d48: 4293 cmp r3, r2 + 8003d4a: d005 beq.n 8003d58 + 8003d4c: 4b0b ldr r3, [pc, #44] ; (8003d7c ) + 8003d4e: 889b ldrh r3, [r3, #4] + 8003d50: f245 3210 movw r2, #21264 ; 0x5310 + 8003d54: 4293 cmp r3, r2 + 8003d56: d109 bne.n 8003d6c { lcddev.width=480; - 8002c3c: 4b08 ldr r3, [pc, #32] ; (8002c60 ) - 8002c3e: f44f 72f0 mov.w r2, #480 ; 0x1e0 - 8002c42: 801a strh r2, [r3, #0] + 8003d58: 4b08 ldr r3, [pc, #32] ; (8003d7c ) + 8003d5a: f44f 72f0 mov.w r2, #480 ; 0x1e0 + 8003d5e: 801a strh r2, [r3, #0] lcddev.height=320; - 8002c44: 4b06 ldr r3, [pc, #24] ; (8002c60 ) - 8002c46: f44f 72a0 mov.w r2, #320 ; 0x140 - 8002c4a: 805a strh r2, [r3, #2] - 8002c4c: e000 b.n 8002c50 + 8003d60: 4b06 ldr r3, [pc, #24] ; (8003d7c ) + 8003d62: f44f 72a0 mov.w r2, #320 ; 0x140 + 8003d66: 805a strh r2, [r3, #2] + 8003d68: e000 b.n 8003d6c if(lcddev.id==0X6804||lcddev.id==0X5310) - 8002c4e: bf00 nop + 8003d6a: bf00 nop } } LCD_Scan_Dir(DFT_SCAN_DIR); //默认扫描方向 - 8002c50: 2000 movs r0, #0 - 8002c52: f7ff fdd3 bl 80027fc + 8003d6c: 2000 movs r0, #0 + 8003d6e: f7ff fdd3 bl 8003918 } - 8002c56: bf00 nop - 8002c58: 3708 adds r7, #8 - 8002c5a: 46bd mov sp, r7 - 8002c5c: bd80 pop {r7, pc} - 8002c5e: bf00 nop - 8002c60: 20000254 .word 0x20000254 + 8003d72: bf00 nop + 8003d74: 3708 adds r7, #8 + 8003d76: 46bd mov sp, r7 + 8003d78: bd80 pop {r7, pc} + 8003d7a: bf00 nop + 8003d7c: 200002a8 .word 0x200002a8 -08002c64 : +08003d80 : //初始化lcd //该初始化函数可以初始化各种液晶! void LCDx_Init(void) { - 8002c64: b580 push {r7, lr} - 8002c66: af00 add r7, sp, #0 + 8003d80: b580 push {r7, lr} + 8003d82: af00 add r7, sp, #0 HAL_Delay(50); // delay 50 ms - 8002c68: 2032 movs r0, #50 ; 0x32 - 8002c6a: f7fe fda7 bl 80017bc + 8003d84: 2032 movs r0, #50 ; 0x32 + 8003d86: f7fd fd89 bl 800189c LCD_WriteReg(0x0000,0x0001); - 8002c6e: 2101 movs r1, #1 - 8002c70: 2000 movs r0, #0 - 8002c72: f7ff fd99 bl 80027a8 + 8003d8a: 2101 movs r1, #1 + 8003d8c: 2000 movs r0, #0 + 8003d8e: f7ff fd99 bl 80038c4 HAL_Delay(50); // delay 50 ms - 8002c76: 2032 movs r0, #50 ; 0x32 - 8002c78: f7fe fda0 bl 80017bc + 8003d92: 2032 movs r0, #50 ; 0x32 + 8003d94: f7fd fd82 bl 800189c lcddev.id = LCD_ReadReg(0x0000); - 8002c7c: 2000 movs r0, #0 - 8002c7e: f7ff fda9 bl 80027d4 - 8002c82: 4603 mov r3, r0 - 8002c84: 461a mov r2, r3 - 8002c86: 4b70 ldr r3, [pc, #448] ; (8002e48 ) - 8002c88: 809a strh r2, [r3, #4] + 8003d98: 2000 movs r0, #0 + 8003d9a: f7ff fda9 bl 80038f0 + 8003d9e: 4603 mov r3, r0 + 8003da0: 461a mov r2, r3 + 8003da2: 4b70 ldr r3, [pc, #448] ; (8003f64 ) + 8003da4: 809a strh r2, [r3, #4] LCD_WriteReg(0x00E5,0x78F0); - 8002c8a: f647 01f0 movw r1, #30960 ; 0x78f0 - 8002c8e: 20e5 movs r0, #229 ; 0xe5 - 8002c90: f7ff fd8a bl 80027a8 + 8003da6: f647 01f0 movw r1, #30960 ; 0x78f0 + 8003daa: 20e5 movs r0, #229 ; 0xe5 + 8003dac: f7ff fd8a bl 80038c4 LCD_WriteReg(0x0001,0x0100); - 8002c94: f44f 7180 mov.w r1, #256 ; 0x100 - 8002c98: 2001 movs r0, #1 - 8002c9a: f7ff fd85 bl 80027a8 + 8003db0: f44f 7180 mov.w r1, #256 ; 0x100 + 8003db4: 2001 movs r0, #1 + 8003db6: f7ff fd85 bl 80038c4 LCD_WriteReg(0x0002,0x0700); - 8002c9e: f44f 61e0 mov.w r1, #1792 ; 0x700 - 8002ca2: 2002 movs r0, #2 - 8002ca4: f7ff fd80 bl 80027a8 + 8003dba: f44f 61e0 mov.w r1, #1792 ; 0x700 + 8003dbe: 2002 movs r0, #2 + 8003dc0: f7ff fd80 bl 80038c4 LCD_WriteReg(0x0003,0x1030); - 8002ca8: f241 0130 movw r1, #4144 ; 0x1030 - 8002cac: 2003 movs r0, #3 - 8002cae: f7ff fd7b bl 80027a8 + 8003dc4: f241 0130 movw r1, #4144 ; 0x1030 + 8003dc8: 2003 movs r0, #3 + 8003dca: f7ff fd7b bl 80038c4 LCD_WriteReg(0x0004,0x0000); - 8002cb2: 2100 movs r1, #0 - 8002cb4: 2004 movs r0, #4 - 8002cb6: f7ff fd77 bl 80027a8 + 8003dce: 2100 movs r1, #0 + 8003dd0: 2004 movs r0, #4 + 8003dd2: f7ff fd77 bl 80038c4 LCD_WriteReg(0x0008,0x0202); - 8002cba: f240 2102 movw r1, #514 ; 0x202 - 8002cbe: 2008 movs r0, #8 - 8002cc0: f7ff fd72 bl 80027a8 + 8003dd6: f240 2102 movw r1, #514 ; 0x202 + 8003dda: 2008 movs r0, #8 + 8003ddc: f7ff fd72 bl 80038c4 LCD_WriteReg(0x0009,0x0000); - 8002cc4: 2100 movs r1, #0 - 8002cc6: 2009 movs r0, #9 - 8002cc8: f7ff fd6e bl 80027a8 + 8003de0: 2100 movs r1, #0 + 8003de2: 2009 movs r0, #9 + 8003de4: f7ff fd6e bl 80038c4 LCD_WriteReg(0x000A,0x0000); - 8002ccc: 2100 movs r1, #0 - 8002cce: 200a movs r0, #10 - 8002cd0: f7ff fd6a bl 80027a8 + 8003de8: 2100 movs r1, #0 + 8003dea: 200a movs r0, #10 + 8003dec: f7ff fd6a bl 80038c4 LCD_WriteReg(0x000C,0x0000); - 8002cd4: 2100 movs r1, #0 - 8002cd6: 200c movs r0, #12 - 8002cd8: f7ff fd66 bl 80027a8 + 8003df0: 2100 movs r1, #0 + 8003df2: 200c movs r0, #12 + 8003df4: f7ff fd66 bl 80038c4 LCD_WriteReg(0x000D,0x0000); - 8002cdc: 2100 movs r1, #0 - 8002cde: 200d movs r0, #13 - 8002ce0: f7ff fd62 bl 80027a8 + 8003df8: 2100 movs r1, #0 + 8003dfa: 200d movs r0, #13 + 8003dfc: f7ff fd62 bl 80038c4 LCD_WriteReg(0x000F,0x0000); - 8002ce4: 2100 movs r1, #0 - 8002ce6: 200f movs r0, #15 - 8002ce8: f7ff fd5e bl 80027a8 + 8003e00: 2100 movs r1, #0 + 8003e02: 200f movs r0, #15 + 8003e04: f7ff fd5e bl 80038c4 //power on sequence VGHVGL LCD_WriteReg(0x0010,0x0000); - 8002cec: 2100 movs r1, #0 - 8002cee: 2010 movs r0, #16 - 8002cf0: f7ff fd5a bl 80027a8 + 8003e08: 2100 movs r1, #0 + 8003e0a: 2010 movs r0, #16 + 8003e0c: f7ff fd5a bl 80038c4 LCD_WriteReg(0x0011,0x0007); - 8002cf4: 2107 movs r1, #7 - 8002cf6: 2011 movs r0, #17 - 8002cf8: f7ff fd56 bl 80027a8 + 8003e10: 2107 movs r1, #7 + 8003e12: 2011 movs r0, #17 + 8003e14: f7ff fd56 bl 80038c4 LCD_WriteReg(0x0012,0x0000); - 8002cfc: 2100 movs r1, #0 - 8002cfe: 2012 movs r0, #18 - 8002d00: f7ff fd52 bl 80027a8 + 8003e18: 2100 movs r1, #0 + 8003e1a: 2012 movs r0, #18 + 8003e1c: f7ff fd52 bl 80038c4 LCD_WriteReg(0x0013,0x0000); - 8002d04: 2100 movs r1, #0 - 8002d06: 2013 movs r0, #19 - 8002d08: f7ff fd4e bl 80027a8 + 8003e20: 2100 movs r1, #0 + 8003e22: 2013 movs r0, #19 + 8003e24: f7ff fd4e bl 80038c4 LCD_WriteReg(0x0007,0x0000); - 8002d0c: 2100 movs r1, #0 - 8002d0e: 2007 movs r0, #7 - 8002d10: f7ff fd4a bl 80027a8 + 8003e28: 2100 movs r1, #0 + 8003e2a: 2007 movs r0, #7 + 8003e2c: f7ff fd4a bl 80038c4 //vgh LCD_WriteReg(0x0010,0x1690); - 8002d14: f241 6190 movw r1, #5776 ; 0x1690 - 8002d18: 2010 movs r0, #16 - 8002d1a: f7ff fd45 bl 80027a8 + 8003e30: f241 6190 movw r1, #5776 ; 0x1690 + 8003e34: 2010 movs r0, #16 + 8003e36: f7ff fd45 bl 80038c4 LCD_WriteReg(0x0011,0x0227); - 8002d1e: f240 2127 movw r1, #551 ; 0x227 - 8002d22: 2011 movs r0, #17 - 8002d24: f7ff fd40 bl 80027a8 + 8003e3a: f240 2127 movw r1, #551 ; 0x227 + 8003e3e: 2011 movs r0, #17 + 8003e40: f7ff fd40 bl 80038c4 //delayms(100); //vregiout LCD_WriteReg(0x0012,0x009D); //0x001b - 8002d28: 219d movs r1, #157 ; 0x9d - 8002d2a: 2012 movs r0, #18 - 8002d2c: f7ff fd3c bl 80027a8 + 8003e44: 219d movs r1, #157 ; 0x9d + 8003e46: 2012 movs r0, #18 + 8003e48: f7ff fd3c bl 80038c4 //delayms(100); //vom amplitude LCD_WriteReg(0x0013,0x1900); - 8002d30: f44f 51c8 mov.w r1, #6400 ; 0x1900 - 8002d34: 2013 movs r0, #19 - 8002d36: f7ff fd37 bl 80027a8 + 8003e4c: f44f 51c8 mov.w r1, #6400 ; 0x1900 + 8003e50: 2013 movs r0, #19 + 8003e52: f7ff fd37 bl 80038c4 //delayms(100); //vom H LCD_WriteReg(0x0029,0x0025); - 8002d3a: 2125 movs r1, #37 ; 0x25 - 8002d3c: 2029 movs r0, #41 ; 0x29 - 8002d3e: f7ff fd33 bl 80027a8 + 8003e56: 2125 movs r1, #37 ; 0x25 + 8003e58: 2029 movs r0, #41 ; 0x29 + 8003e5a: f7ff fd33 bl 80038c4 LCD_WriteReg(0x002B,0x000D); - 8002d42: 210d movs r1, #13 - 8002d44: 202b movs r0, #43 ; 0x2b - 8002d46: f7ff fd2f bl 80027a8 + 8003e5e: 210d movs r1, #13 + 8003e60: 202b movs r0, #43 ; 0x2b + 8003e62: f7ff fd2f bl 80038c4 //gamma LCD_WriteReg(0x0030,0x0007); - 8002d4a: 2107 movs r1, #7 - 8002d4c: 2030 movs r0, #48 ; 0x30 - 8002d4e: f7ff fd2b bl 80027a8 + 8003e66: 2107 movs r1, #7 + 8003e68: 2030 movs r0, #48 ; 0x30 + 8003e6a: f7ff fd2b bl 80038c4 LCD_WriteReg(0x0031,0x0303); - 8002d52: f240 3103 movw r1, #771 ; 0x303 - 8002d56: 2031 movs r0, #49 ; 0x31 - 8002d58: f7ff fd26 bl 80027a8 + 8003e6e: f240 3103 movw r1, #771 ; 0x303 + 8003e72: 2031 movs r0, #49 ; 0x31 + 8003e74: f7ff fd26 bl 80038c4 LCD_WriteReg(0x0032,0x0003);// 0006 - 8002d5c: 2103 movs r1, #3 - 8002d5e: 2032 movs r0, #50 ; 0x32 - 8002d60: f7ff fd22 bl 80027a8 + 8003e78: 2103 movs r1, #3 + 8003e7a: 2032 movs r0, #50 ; 0x32 + 8003e7c: f7ff fd22 bl 80038c4 LCD_WriteReg(0x0035,0x0206); - 8002d64: f240 2106 movw r1, #518 ; 0x206 - 8002d68: 2035 movs r0, #53 ; 0x35 - 8002d6a: f7ff fd1d bl 80027a8 + 8003e80: f240 2106 movw r1, #518 ; 0x206 + 8003e84: 2035 movs r0, #53 ; 0x35 + 8003e86: f7ff fd1d bl 80038c4 LCD_WriteReg(0x0036,0x0008); - 8002d6e: 2108 movs r1, #8 - 8002d70: 2036 movs r0, #54 ; 0x36 - 8002d72: f7ff fd19 bl 80027a8 + 8003e8a: 2108 movs r1, #8 + 8003e8c: 2036 movs r0, #54 ; 0x36 + 8003e8e: f7ff fd19 bl 80038c4 LCD_WriteReg(0x0037,0x0406); - 8002d76: f240 4106 movw r1, #1030 ; 0x406 - 8002d7a: 2037 movs r0, #55 ; 0x37 - 8002d7c: f7ff fd14 bl 80027a8 + 8003e92: f240 4106 movw r1, #1030 ; 0x406 + 8003e96: 2037 movs r0, #55 ; 0x37 + 8003e98: f7ff fd14 bl 80038c4 LCD_WriteReg(0x0038,0x0304);//0200 - 8002d80: f44f 7141 mov.w r1, #772 ; 0x304 - 8002d84: 2038 movs r0, #56 ; 0x38 - 8002d86: f7ff fd0f bl 80027a8 + 8003e9c: f44f 7141 mov.w r1, #772 ; 0x304 + 8003ea0: 2038 movs r0, #56 ; 0x38 + 8003ea2: f7ff fd0f bl 80038c4 LCD_WriteReg(0x0039,0x0007); - 8002d8a: 2107 movs r1, #7 - 8002d8c: 2039 movs r0, #57 ; 0x39 - 8002d8e: f7ff fd0b bl 80027a8 + 8003ea6: 2107 movs r1, #7 + 8003ea8: 2039 movs r0, #57 ; 0x39 + 8003eaa: f7ff fd0b bl 80038c4 LCD_WriteReg(0x003C,0x0602);// 0504 - 8002d92: f240 6102 movw r1, #1538 ; 0x602 - 8002d96: 203c movs r0, #60 ; 0x3c - 8002d98: f7ff fd06 bl 80027a8 + 8003eae: f240 6102 movw r1, #1538 ; 0x602 + 8003eb2: 203c movs r0, #60 ; 0x3c + 8003eb4: f7ff fd06 bl 80038c4 LCD_WriteReg(0x003D,0x0008); - 8002d9c: 2108 movs r1, #8 - 8002d9e: 203d movs r0, #61 ; 0x3d - 8002da0: f7ff fd02 bl 80027a8 + 8003eb8: 2108 movs r1, #8 + 8003eba: 203d movs r0, #61 ; 0x3d + 8003ebc: f7ff fd02 bl 80038c4 //ram LCD_WriteReg(0x0050,0x0000); - 8002da4: 2100 movs r1, #0 - 8002da6: 2050 movs r0, #80 ; 0x50 - 8002da8: f7ff fcfe bl 80027a8 + 8003ec0: 2100 movs r1, #0 + 8003ec2: 2050 movs r0, #80 ; 0x50 + 8003ec4: f7ff fcfe bl 80038c4 LCD_WriteReg(0x0051,0x00EF); - 8002dac: 21ef movs r1, #239 ; 0xef - 8002dae: 2051 movs r0, #81 ; 0x51 - 8002db0: f7ff fcfa bl 80027a8 + 8003ec8: 21ef movs r1, #239 ; 0xef + 8003eca: 2051 movs r0, #81 ; 0x51 + 8003ecc: f7ff fcfa bl 80038c4 LCD_WriteReg(0x0052,0x0000); - 8002db4: 2100 movs r1, #0 - 8002db6: 2052 movs r0, #82 ; 0x52 - 8002db8: f7ff fcf6 bl 80027a8 + 8003ed0: 2100 movs r1, #0 + 8003ed2: 2052 movs r0, #82 ; 0x52 + 8003ed4: f7ff fcf6 bl 80038c4 LCD_WriteReg(0x0053,0x013F); - 8002dbc: f240 113f movw r1, #319 ; 0x13f - 8002dc0: 2053 movs r0, #83 ; 0x53 - 8002dc2: f7ff fcf1 bl 80027a8 + 8003ed8: f240 113f movw r1, #319 ; 0x13f + 8003edc: 2053 movs r0, #83 ; 0x53 + 8003ede: f7ff fcf1 bl 80038c4 LCD_WriteReg(0x0060,0xA700); - 8002dc6: f44f 4127 mov.w r1, #42752 ; 0xa700 - 8002dca: 2060 movs r0, #96 ; 0x60 - 8002dcc: f7ff fcec bl 80027a8 + 8003ee2: f44f 4127 mov.w r1, #42752 ; 0xa700 + 8003ee6: 2060 movs r0, #96 ; 0x60 + 8003ee8: f7ff fcec bl 80038c4 LCD_WriteReg(0x0061,0x0001); - 8002dd0: 2101 movs r1, #1 - 8002dd2: 2061 movs r0, #97 ; 0x61 - 8002dd4: f7ff fce8 bl 80027a8 + 8003eec: 2101 movs r1, #1 + 8003eee: 2061 movs r0, #97 ; 0x61 + 8003ef0: f7ff fce8 bl 80038c4 LCD_WriteReg(0x006A,0x0000); - 8002dd8: 2100 movs r1, #0 - 8002dda: 206a movs r0, #106 ; 0x6a - 8002ddc: f7ff fce4 bl 80027a8 + 8003ef4: 2100 movs r1, #0 + 8003ef6: 206a movs r0, #106 ; 0x6a + 8003ef8: f7ff fce4 bl 80038c4 // LCD_WriteReg(0x0080,0x0000); - 8002de0: 2100 movs r1, #0 - 8002de2: 2080 movs r0, #128 ; 0x80 - 8002de4: f7ff fce0 bl 80027a8 + 8003efc: 2100 movs r1, #0 + 8003efe: 2080 movs r0, #128 ; 0x80 + 8003f00: f7ff fce0 bl 80038c4 LCD_WriteReg(0x0081,0x0000); - 8002de8: 2100 movs r1, #0 - 8002dea: 2081 movs r0, #129 ; 0x81 - 8002dec: f7ff fcdc bl 80027a8 + 8003f04: 2100 movs r1, #0 + 8003f06: 2081 movs r0, #129 ; 0x81 + 8003f08: f7ff fcdc bl 80038c4 LCD_WriteReg(0x0082,0x0000); - 8002df0: 2100 movs r1, #0 - 8002df2: 2082 movs r0, #130 ; 0x82 - 8002df4: f7ff fcd8 bl 80027a8 + 8003f0c: 2100 movs r1, #0 + 8003f0e: 2082 movs r0, #130 ; 0x82 + 8003f10: f7ff fcd8 bl 80038c4 LCD_WriteReg(0x0083,0x0000); - 8002df8: 2100 movs r1, #0 - 8002dfa: 2083 movs r0, #131 ; 0x83 - 8002dfc: f7ff fcd4 bl 80027a8 + 8003f14: 2100 movs r1, #0 + 8003f16: 2083 movs r0, #131 ; 0x83 + 8003f18: f7ff fcd4 bl 80038c4 LCD_WriteReg(0x0084,0x0000); - 8002e00: 2100 movs r1, #0 - 8002e02: 2084 movs r0, #132 ; 0x84 - 8002e04: f7ff fcd0 bl 80027a8 + 8003f1c: 2100 movs r1, #0 + 8003f1e: 2084 movs r0, #132 ; 0x84 + 8003f20: f7ff fcd0 bl 80038c4 LCD_WriteReg(0x0085,0x0000); - 8002e08: 2100 movs r1, #0 - 8002e0a: 2085 movs r0, #133 ; 0x85 - 8002e0c: f7ff fccc bl 80027a8 + 8003f24: 2100 movs r1, #0 + 8003f26: 2085 movs r0, #133 ; 0x85 + 8003f28: f7ff fccc bl 80038c4 // LCD_WriteReg(0x0090,0x0010); - 8002e10: 2110 movs r1, #16 - 8002e12: 2090 movs r0, #144 ; 0x90 - 8002e14: f7ff fcc8 bl 80027a8 + 8003f2c: 2110 movs r1, #16 + 8003f2e: 2090 movs r0, #144 ; 0x90 + 8003f30: f7ff fcc8 bl 80038c4 LCD_WriteReg(0x0092,0x0600); - 8002e18: f44f 61c0 mov.w r1, #1536 ; 0x600 - 8002e1c: 2092 movs r0, #146 ; 0x92 - 8002e1e: f7ff fcc3 bl 80027a8 + 8003f34: f44f 61c0 mov.w r1, #1536 ; 0x600 + 8003f38: 2092 movs r0, #146 ; 0x92 + 8003f3a: f7ff fcc3 bl 80038c4 LCD_WriteReg(0x0007,0x0133); - 8002e22: f240 1133 movw r1, #307 ; 0x133 - 8002e26: 2007 movs r0, #7 - 8002e28: f7ff fcbe bl 80027a8 + 8003f3e: f240 1133 movw r1, #307 ; 0x133 + 8003f42: 2007 movs r0, #7 + 8003f44: f7ff fcbe bl 80038c4 LCD_WriteReg(0x00,0x0022);// - 8002e2c: 2122 movs r1, #34 ; 0x22 - 8002e2e: 2000 movs r0, #0 - 8002e30: f7ff fcba bl 80027a8 + 8003f48: 2122 movs r1, #34 ; 0x22 + 8003f4a: 2000 movs r0, #0 + 8003f4c: f7ff fcba bl 80038c4 LCD_Display_Dir(1); //默认为h屏 - 8002e34: 2001 movs r0, #1 - 8002e36: f7ff fe4f bl 8002ad8 + 8003f50: 2001 movs r0, #1 + 8003f52: f7ff fe4f bl 8003bf4 LCD_BL(0); - 8002e3a: 2200 movs r2, #0 - 8002e3c: 2101 movs r1, #1 - 8002e3e: 4803 ldr r0, [pc, #12] ; (8002e4c ) - 8002e40: f7fe ff6f bl 8001d22 + 8003f56: 2200 movs r2, #0 + 8003f58: 2101 movs r1, #1 + 8003f5a: 4803 ldr r0, [pc, #12] ; (8003f68 ) + 8003f5c: f7fd ff51 bl 8001e02 } - 8002e44: bf00 nop - 8002e46: bd80 pop {r7, pc} - 8002e48: 20000254 .word 0x20000254 - 8002e4c: 40010c00 .word 0x40010c00 + 8003f60: bf00 nop + 8003f62: bd80 pop {r7, pc} + 8003f64: 200002a8 .word 0x200002a8 + 8003f68: 40010c00 .word 0x40010c00 -08002e50 : +08003f6c : //***********************************************************打点 读点 什么的 //设置光标位置 //Xpos:横坐标 //Ypos:纵坐标 void LCD_SetCursor(uint16_t Xpos, uint16_t Ypos) { - 8002e50: b580 push {r7, lr} - 8002e52: b082 sub sp, #8 - 8002e54: af00 add r7, sp, #0 - 8002e56: 4603 mov r3, r0 - 8002e58: 460a mov r2, r1 - 8002e5a: 80fb strh r3, [r7, #6] - 8002e5c: 4613 mov r3, r2 - 8002e5e: 80bb strh r3, [r7, #4] + 8003f6c: b580 push {r7, lr} + 8003f6e: b082 sub sp, #8 + 8003f70: af00 add r7, sp, #0 + 8003f72: 4603 mov r3, r0 + 8003f74: 460a mov r2, r1 + 8003f76: 80fb strh r3, [r7, #6] + 8003f78: 4613 mov r3, r2 + 8003f7a: 80bb strh r3, [r7, #4] if(lcddev.id==0X9341||lcddev.id==0X5310) - 8002e60: 4b42 ldr r3, [pc, #264] ; (8002f6c ) - 8002e62: 889b ldrh r3, [r3, #4] - 8002e64: f249 3241 movw r2, #37697 ; 0x9341 - 8002e68: 4293 cmp r3, r2 - 8002e6a: d005 beq.n 8002e78 - 8002e6c: 4b3f ldr r3, [pc, #252] ; (8002f6c ) - 8002e6e: 889b ldrh r3, [r3, #4] - 8002e70: f245 3210 movw r2, #21264 ; 0x5310 - 8002e74: 4293 cmp r3, r2 - 8002e76: d124 bne.n 8002ec2 + 8003f7c: 4b42 ldr r3, [pc, #264] ; (8004088 ) + 8003f7e: 889b ldrh r3, [r3, #4] + 8003f80: f249 3241 movw r2, #37697 ; 0x9341 + 8003f84: 4293 cmp r3, r2 + 8003f86: d005 beq.n 8003f94 + 8003f88: 4b3f ldr r3, [pc, #252] ; (8004088 ) + 8003f8a: 889b ldrh r3, [r3, #4] + 8003f8c: f245 3210 movw r2, #21264 ; 0x5310 + 8003f90: 4293 cmp r3, r2 + 8003f92: d124 bne.n 8003fde { LCD_WR_REG(lcddev.setxcmd); - 8002e78: 4b3c ldr r3, [pc, #240] ; (8002f6c ) - 8002e7a: 7a1b ldrb r3, [r3, #8] - 8002e7c: b29b uxth r3, r3 - 8002e7e: 4618 mov r0, r3 - 8002e80: f7ff fc74 bl 800276c + 8003f94: 4b3c ldr r3, [pc, #240] ; (8004088 ) + 8003f96: 7a1b ldrb r3, [r3, #8] + 8003f98: b29b uxth r3, r3 + 8003f9a: 4618 mov r0, r3 + 8003f9c: f7ff fc74 bl 8003888 LCD_WR_DATA(Xpos>>8); - 8002e84: 88fb ldrh r3, [r7, #6] - 8002e86: 0a1b lsrs r3, r3, #8 - 8002e88: b29b uxth r3, r3 - 8002e8a: 4618 mov r0, r3 - 8002e8c: f7ff fc7c bl 8002788 + 8003fa0: 88fb ldrh r3, [r7, #6] + 8003fa2: 0a1b lsrs r3, r3, #8 + 8003fa4: b29b uxth r3, r3 + 8003fa6: 4618 mov r0, r3 + 8003fa8: f7ff fc7c bl 80038a4 LCD_WR_DATA(Xpos&0XFF); - 8002e90: 88fb ldrh r3, [r7, #6] - 8002e92: b2db uxtb r3, r3 - 8002e94: b29b uxth r3, r3 - 8002e96: 4618 mov r0, r3 - 8002e98: f7ff fc76 bl 8002788 + 8003fac: 88fb ldrh r3, [r7, #6] + 8003fae: b2db uxtb r3, r3 + 8003fb0: b29b uxth r3, r3 + 8003fb2: 4618 mov r0, r3 + 8003fb4: f7ff fc76 bl 80038a4 LCD_WR_REG(lcddev.setycmd); - 8002e9c: 4b33 ldr r3, [pc, #204] ; (8002f6c ) - 8002e9e: 7a5b ldrb r3, [r3, #9] - 8002ea0: b29b uxth r3, r3 - 8002ea2: 4618 mov r0, r3 - 8002ea4: f7ff fc62 bl 800276c + 8003fb8: 4b33 ldr r3, [pc, #204] ; (8004088 ) + 8003fba: 7a5b ldrb r3, [r3, #9] + 8003fbc: b29b uxth r3, r3 + 8003fbe: 4618 mov r0, r3 + 8003fc0: f7ff fc62 bl 8003888 LCD_WR_DATA(Ypos>>8); - 8002ea8: 88bb ldrh r3, [r7, #4] - 8002eaa: 0a1b lsrs r3, r3, #8 - 8002eac: b29b uxth r3, r3 - 8002eae: 4618 mov r0, r3 - 8002eb0: f7ff fc6a bl 8002788 + 8003fc4: 88bb ldrh r3, [r7, #4] + 8003fc6: 0a1b lsrs r3, r3, #8 + 8003fc8: b29b uxth r3, r3 + 8003fca: 4618 mov r0, r3 + 8003fcc: f7ff fc6a bl 80038a4 LCD_WR_DATA(Ypos&0XFF); - 8002eb4: 88bb ldrh r3, [r7, #4] - 8002eb6: b2db uxtb r3, r3 - 8002eb8: b29b uxth r3, r3 - 8002eba: 4618 mov r0, r3 - 8002ebc: f7ff fc64 bl 8002788 + 8003fd0: 88bb ldrh r3, [r7, #4] + 8003fd2: b2db uxtb r3, r3 + 8003fd4: b29b uxth r3, r3 + 8003fd6: 4618 mov r0, r3 + 8003fd8: f7ff fc64 bl 80038a4 { if(lcddev.dir==1)Xpos=lcddev.width-1-Xpos;//横屏其实就是调转x,y坐标 LCD_WriteReg(lcddev.setxcmd, Xpos); LCD_WriteReg(lcddev.setycmd, Ypos); } } - 8002ec0: e050 b.n 8002f64 + 8003fdc: e050 b.n 8004080 }else if(lcddev.id==0X6804) - 8002ec2: 4b2a ldr r3, [pc, #168] ; (8002f6c ) - 8002ec4: 889b ldrh r3, [r3, #4] - 8002ec6: f646 0204 movw r2, #26628 ; 0x6804 - 8002eca: 4293 cmp r3, r2 - 8002ecc: d12f bne.n 8002f2e + 8003fde: 4b2a ldr r3, [pc, #168] ; (8004088 ) + 8003fe0: 889b ldrh r3, [r3, #4] + 8003fe2: f646 0204 movw r2, #26628 ; 0x6804 + 8003fe6: 4293 cmp r3, r2 + 8003fe8: d12f bne.n 800404a if(lcddev.dir==1)Xpos=lcddev.width-1-Xpos;//横屏时处理 - 8002ece: 4b27 ldr r3, [pc, #156] ; (8002f6c ) - 8002ed0: 799b ldrb r3, [r3, #6] - 8002ed2: 2b01 cmp r3, #1 - 8002ed4: d106 bne.n 8002ee4 - 8002ed6: 4b25 ldr r3, [pc, #148] ; (8002f6c ) - 8002ed8: 881a ldrh r2, [r3, #0] - 8002eda: 88fb ldrh r3, [r7, #6] - 8002edc: 1ad3 subs r3, r2, r3 - 8002ede: b29b uxth r3, r3 - 8002ee0: 3b01 subs r3, #1 - 8002ee2: 80fb strh r3, [r7, #6] + 8003fea: 4b27 ldr r3, [pc, #156] ; (8004088 ) + 8003fec: 799b ldrb r3, [r3, #6] + 8003fee: 2b01 cmp r3, #1 + 8003ff0: d106 bne.n 8004000 + 8003ff2: 4b25 ldr r3, [pc, #148] ; (8004088 ) + 8003ff4: 881a ldrh r2, [r3, #0] + 8003ff6: 88fb ldrh r3, [r7, #6] + 8003ff8: 1ad3 subs r3, r2, r3 + 8003ffa: b29b uxth r3, r3 + 8003ffc: 3b01 subs r3, #1 + 8003ffe: 80fb strh r3, [r7, #6] LCD_WR_REG(lcddev.setxcmd); - 8002ee4: 4b21 ldr r3, [pc, #132] ; (8002f6c ) - 8002ee6: 7a1b ldrb r3, [r3, #8] - 8002ee8: b29b uxth r3, r3 - 8002eea: 4618 mov r0, r3 - 8002eec: f7ff fc3e bl 800276c + 8004000: 4b21 ldr r3, [pc, #132] ; (8004088 ) + 8004002: 7a1b ldrb r3, [r3, #8] + 8004004: b29b uxth r3, r3 + 8004006: 4618 mov r0, r3 + 8004008: f7ff fc3e bl 8003888 LCD_WR_DATA(Xpos>>8); - 8002ef0: 88fb ldrh r3, [r7, #6] - 8002ef2: 0a1b lsrs r3, r3, #8 - 8002ef4: b29b uxth r3, r3 - 8002ef6: 4618 mov r0, r3 - 8002ef8: f7ff fc46 bl 8002788 + 800400c: 88fb ldrh r3, [r7, #6] + 800400e: 0a1b lsrs r3, r3, #8 + 8004010: b29b uxth r3, r3 + 8004012: 4618 mov r0, r3 + 8004014: f7ff fc46 bl 80038a4 LCD_WR_DATA(Xpos&0XFF); - 8002efc: 88fb ldrh r3, [r7, #6] - 8002efe: b2db uxtb r3, r3 - 8002f00: b29b uxth r3, r3 - 8002f02: 4618 mov r0, r3 - 8002f04: f7ff fc40 bl 8002788 + 8004018: 88fb ldrh r3, [r7, #6] + 800401a: b2db uxtb r3, r3 + 800401c: b29b uxth r3, r3 + 800401e: 4618 mov r0, r3 + 8004020: f7ff fc40 bl 80038a4 LCD_WR_REG(lcddev.setycmd); - 8002f08: 4b18 ldr r3, [pc, #96] ; (8002f6c ) - 8002f0a: 7a5b ldrb r3, [r3, #9] - 8002f0c: b29b uxth r3, r3 - 8002f0e: 4618 mov r0, r3 - 8002f10: f7ff fc2c bl 800276c + 8004024: 4b18 ldr r3, [pc, #96] ; (8004088 ) + 8004026: 7a5b ldrb r3, [r3, #9] + 8004028: b29b uxth r3, r3 + 800402a: 4618 mov r0, r3 + 800402c: f7ff fc2c bl 8003888 LCD_WR_DATA(Ypos>>8); - 8002f14: 88bb ldrh r3, [r7, #4] - 8002f16: 0a1b lsrs r3, r3, #8 - 8002f18: b29b uxth r3, r3 - 8002f1a: 4618 mov r0, r3 - 8002f1c: f7ff fc34 bl 8002788 + 8004030: 88bb ldrh r3, [r7, #4] + 8004032: 0a1b lsrs r3, r3, #8 + 8004034: b29b uxth r3, r3 + 8004036: 4618 mov r0, r3 + 8004038: f7ff fc34 bl 80038a4 LCD_WR_DATA(Ypos&0XFF); - 8002f20: 88bb ldrh r3, [r7, #4] - 8002f22: b2db uxtb r3, r3 - 8002f24: b29b uxth r3, r3 - 8002f26: 4618 mov r0, r3 - 8002f28: f7ff fc2e bl 8002788 + 800403c: 88bb ldrh r3, [r7, #4] + 800403e: b2db uxtb r3, r3 + 8004040: b29b uxth r3, r3 + 8004042: 4618 mov r0, r3 + 8004044: f7ff fc2e bl 80038a4 } - 8002f2c: e01a b.n 8002f64 + 8004048: e01a b.n 8004080 if(lcddev.dir==1)Xpos=lcddev.width-1-Xpos;//横屏其实就是调转x,y坐标 - 8002f2e: 4b0f ldr r3, [pc, #60] ; (8002f6c ) - 8002f30: 799b ldrb r3, [r3, #6] - 8002f32: 2b01 cmp r3, #1 - 8002f34: d106 bne.n 8002f44 - 8002f36: 4b0d ldr r3, [pc, #52] ; (8002f6c ) - 8002f38: 881a ldrh r2, [r3, #0] - 8002f3a: 88fb ldrh r3, [r7, #6] - 8002f3c: 1ad3 subs r3, r2, r3 - 8002f3e: b29b uxth r3, r3 - 8002f40: 3b01 subs r3, #1 - 8002f42: 80fb strh r3, [r7, #6] + 800404a: 4b0f ldr r3, [pc, #60] ; (8004088 ) + 800404c: 799b ldrb r3, [r3, #6] + 800404e: 2b01 cmp r3, #1 + 8004050: d106 bne.n 8004060 + 8004052: 4b0d ldr r3, [pc, #52] ; (8004088 ) + 8004054: 881a ldrh r2, [r3, #0] + 8004056: 88fb ldrh r3, [r7, #6] + 8004058: 1ad3 subs r3, r2, r3 + 800405a: b29b uxth r3, r3 + 800405c: 3b01 subs r3, #1 + 800405e: 80fb strh r3, [r7, #6] LCD_WriteReg(lcddev.setxcmd, Xpos); - 8002f44: 4b09 ldr r3, [pc, #36] ; (8002f6c ) - 8002f46: 7a1b ldrb r3, [r3, #8] - 8002f48: b29b uxth r3, r3 - 8002f4a: 88fa ldrh r2, [r7, #6] - 8002f4c: 4611 mov r1, r2 - 8002f4e: 4618 mov r0, r3 - 8002f50: f7ff fc2a bl 80027a8 + 8004060: 4b09 ldr r3, [pc, #36] ; (8004088 ) + 8004062: 7a1b ldrb r3, [r3, #8] + 8004064: b29b uxth r3, r3 + 8004066: 88fa ldrh r2, [r7, #6] + 8004068: 4611 mov r1, r2 + 800406a: 4618 mov r0, r3 + 800406c: f7ff fc2a bl 80038c4 LCD_WriteReg(lcddev.setycmd, Ypos); - 8002f54: 4b05 ldr r3, [pc, #20] ; (8002f6c ) - 8002f56: 7a5b ldrb r3, [r3, #9] - 8002f58: b29b uxth r3, r3 - 8002f5a: 88ba ldrh r2, [r7, #4] - 8002f5c: 4611 mov r1, r2 - 8002f5e: 4618 mov r0, r3 - 8002f60: f7ff fc22 bl 80027a8 + 8004070: 4b05 ldr r3, [pc, #20] ; (8004088 ) + 8004072: 7a5b ldrb r3, [r3, #9] + 8004074: b29b uxth r3, r3 + 8004076: 88ba ldrh r2, [r7, #4] + 8004078: 4611 mov r1, r2 + 800407a: 4618 mov r0, r3 + 800407c: f7ff fc22 bl 80038c4 } - 8002f64: bf00 nop - 8002f66: 3708 adds r7, #8 - 8002f68: 46bd mov sp, r7 - 8002f6a: bd80 pop {r7, pc} - 8002f6c: 20000254 .word 0x20000254 + 8004080: bf00 nop + 8004082: 3708 adds r7, #8 + 8004084: 46bd mov sp, r7 + 8004086: bd80 pop {r7, pc} + 8004088: 200002a8 .word 0x200002a8 -08002f70 : +0800408c : } //画点 //x,y:坐标 //POINT_COLOR:此点的颜色 void LCD_set_dot(uint16_t x,uint16_t y,uint16_t color) { - 8002f70: b580 push {r7, lr} - 8002f72: b082 sub sp, #8 - 8002f74: af00 add r7, sp, #0 - 8002f76: 4603 mov r3, r0 - 8002f78: 80fb strh r3, [r7, #6] - 8002f7a: 460b mov r3, r1 - 8002f7c: 80bb strh r3, [r7, #4] - 8002f7e: 4613 mov r3, r2 - 8002f80: 807b strh r3, [r7, #2] + 800408c: b580 push {r7, lr} + 800408e: b082 sub sp, #8 + 8004090: af00 add r7, sp, #0 + 8004092: 4603 mov r3, r0 + 8004094: 80fb strh r3, [r7, #6] + 8004096: 460b mov r3, r1 + 8004098: 80bb strh r3, [r7, #4] + 800409a: 4613 mov r3, r2 + 800409c: 807b strh r3, [r7, #2] LCD_SetCursor(x,y); //设置光标位置 - 8002f82: 88ba ldrh r2, [r7, #4] - 8002f84: 88fb ldrh r3, [r7, #6] - 8002f86: 4611 mov r1, r2 - 8002f88: 4618 mov r0, r3 - 8002f8a: f7ff ff61 bl 8002e50 + 800409e: 88ba ldrh r2, [r7, #4] + 80040a0: 88fb ldrh r3, [r7, #6] + 80040a2: 4611 mov r1, r2 + 80040a4: 4618 mov r0, r3 + 80040a6: f7ff ff61 bl 8003f6c LCD_REG_ADDRESS=lcddev.wramcmd; //开始写入GRAM - 8002f8e: 4b06 ldr r3, [pc, #24] ; (8002fa8 ) - 8002f90: 79da ldrb r2, [r3, #7] - 8002f92: f04f 43d8 mov.w r3, #1811939328 ; 0x6c000000 - 8002f96: b292 uxth r2, r2 - 8002f98: 801a strh r2, [r3, #0] + 80040aa: 4b06 ldr r3, [pc, #24] ; (80040c4 ) + 80040ac: 79da ldrb r2, [r3, #7] + 80040ae: f04f 43d8 mov.w r3, #1811939328 ; 0x6c000000 + 80040b2: b292 uxth r2, r2 + 80040b4: 801a strh r2, [r3, #0] LCD_DATA_ADDRESS=color; - 8002f9a: 4a04 ldr r2, [pc, #16] ; (8002fac ) - 8002f9c: 887b ldrh r3, [r7, #2] - 8002f9e: 8013 strh r3, [r2, #0] + 80040b6: 4a04 ldr r2, [pc, #16] ; (80040c8 ) + 80040b8: 887b ldrh r3, [r7, #2] + 80040ba: 8013 strh r3, [r2, #0] } - 8002fa0: bf00 nop - 8002fa2: 3708 adds r7, #8 - 8002fa4: 46bd mov sp, r7 - 8002fa6: bd80 pop {r7, pc} - 8002fa8: 20000254 .word 0x20000254 - 8002fac: 6c000800 .word 0x6c000800 + 80040bc: bf00 nop + 80040be: 3708 adds r7, #8 + 80040c0: 46bd mov sp, r7 + 80040c2: bd80 pop {r7, pc} + 80040c4: 200002a8 .word 0x200002a8 + 80040c8: 6c000800 .word 0x6c000800 -08002fb0 : +080040cc : //清屏函数 //color:要清屏的填充色 void LCD_Clear(uint16_t color) { - 8002fb0: b580 push {r7, lr} - 8002fb2: b084 sub sp, #16 - 8002fb4: af00 add r7, sp, #0 - 8002fb6: 4603 mov r3, r0 - 8002fb8: 80fb strh r3, [r7, #6] + 80040cc: b580 push {r7, lr} + 80040ce: b084 sub sp, #16 + 80040d0: af00 add r7, sp, #0 + 80040d2: 4603 mov r3, r0 + 80040d4: 80fb strh r3, [r7, #6] uint32_t index=0; - 8002fba: 2300 movs r3, #0 - 8002fbc: 60fb str r3, [r7, #12] + 80040d6: 2300 movs r3, #0 + 80040d8: 60fb str r3, [r7, #12] uint32_t totalpoint=lcddev.width; - 8002fbe: 4b23 ldr r3, [pc, #140] ; (800304c ) - 8002fc0: 881b ldrh r3, [r3, #0] - 8002fc2: 60bb str r3, [r7, #8] + 80040da: 4b23 ldr r3, [pc, #140] ; (8004168 ) + 80040dc: 881b ldrh r3, [r3, #0] + 80040de: 60bb str r3, [r7, #8] totalpoint*=lcddev.height; //得到总点数 - 8002fc4: 4b21 ldr r3, [pc, #132] ; (800304c ) - 8002fc6: 885b ldrh r3, [r3, #2] - 8002fc8: 461a mov r2, r3 - 8002fca: 68bb ldr r3, [r7, #8] - 8002fcc: fb02 f303 mul.w r3, r2, r3 - 8002fd0: 60bb str r3, [r7, #8] + 80040e0: 4b21 ldr r3, [pc, #132] ; (8004168 ) + 80040e2: 885b ldrh r3, [r3, #2] + 80040e4: 461a mov r2, r3 + 80040e6: 68bb ldr r3, [r7, #8] + 80040e8: fb02 f303 mul.w r3, r2, r3 + 80040ec: 60bb str r3, [r7, #8] if((lcddev.id==0X6804)&&(lcddev.dir==1))//6804横屏的时候特殊处理 - 8002fd2: 4b1e ldr r3, [pc, #120] ; (800304c ) - 8002fd4: 889b ldrh r3, [r3, #4] - 8002fd6: f646 0204 movw r2, #26628 ; 0x6804 - 8002fda: 4293 cmp r3, r2 - 8002fdc: d11a bne.n 8003014 - 8002fde: 4b1b ldr r3, [pc, #108] ; (800304c ) - 8002fe0: 799b ldrb r3, [r3, #6] - 8002fe2: 2b01 cmp r3, #1 - 8002fe4: d116 bne.n 8003014 + 80040ee: 4b1e ldr r3, [pc, #120] ; (8004168 ) + 80040f0: 889b ldrh r3, [r3, #4] + 80040f2: f646 0204 movw r2, #26628 ; 0x6804 + 80040f6: 4293 cmp r3, r2 + 80040f8: d11a bne.n 8004130 + 80040fa: 4b1b ldr r3, [pc, #108] ; (8004168 ) + 80040fc: 799b ldrb r3, [r3, #6] + 80040fe: 2b01 cmp r3, #1 + 8004100: d116 bne.n 8004130 { lcddev.dir=0; - 8002fe6: 4b19 ldr r3, [pc, #100] ; (800304c ) - 8002fe8: 2200 movs r2, #0 - 8002fea: 719a strb r2, [r3, #6] + 8004102: 4b19 ldr r3, [pc, #100] ; (8004168 ) + 8004104: 2200 movs r2, #0 + 8004106: 719a strb r2, [r3, #6] lcddev.setxcmd=0X2A; - 8002fec: 4b17 ldr r3, [pc, #92] ; (800304c ) - 8002fee: 222a movs r2, #42 ; 0x2a - 8002ff0: 721a strb r2, [r3, #8] + 8004108: 4b17 ldr r3, [pc, #92] ; (8004168 ) + 800410a: 222a movs r2, #42 ; 0x2a + 800410c: 721a strb r2, [r3, #8] lcddev.setycmd=0X2B; - 8002ff2: 4b16 ldr r3, [pc, #88] ; (800304c ) - 8002ff4: 222b movs r2, #43 ; 0x2b - 8002ff6: 725a strb r2, [r3, #9] + 800410e: 4b16 ldr r3, [pc, #88] ; (8004168 ) + 8004110: 222b movs r2, #43 ; 0x2b + 8004112: 725a strb r2, [r3, #9] LCD_SetCursor(0x00,0x0000); //设置光标位置 - 8002ff8: 2100 movs r1, #0 - 8002ffa: 2000 movs r0, #0 - 8002ffc: f7ff ff28 bl 8002e50 + 8004114: 2100 movs r1, #0 + 8004116: 2000 movs r0, #0 + 8004118: f7ff ff28 bl 8003f6c lcddev.dir=1; - 8003000: 4b12 ldr r3, [pc, #72] ; (800304c ) - 8003002: 2201 movs r2, #1 - 8003004: 719a strb r2, [r3, #6] + 800411c: 4b12 ldr r3, [pc, #72] ; (8004168 ) + 800411e: 2201 movs r2, #1 + 8004120: 719a strb r2, [r3, #6] lcddev.setxcmd=0X2B; - 8003006: 4b11 ldr r3, [pc, #68] ; (800304c ) - 8003008: 222b movs r2, #43 ; 0x2b - 800300a: 721a strb r2, [r3, #8] + 8004122: 4b11 ldr r3, [pc, #68] ; (8004168 ) + 8004124: 222b movs r2, #43 ; 0x2b + 8004126: 721a strb r2, [r3, #8] lcddev.setycmd=0X2A; - 800300c: 4b0f ldr r3, [pc, #60] ; (800304c ) - 800300e: 222a movs r2, #42 ; 0x2a - 8003010: 725a strb r2, [r3, #9] - 8003012: e003 b.n 800301c + 8004128: 4b0f ldr r3, [pc, #60] ; (8004168 ) + 800412a: 222a movs r2, #42 ; 0x2a + 800412c: 725a strb r2, [r3, #9] + 800412e: e003 b.n 8004138 }else LCD_SetCursor(0x00,0x0000); //设置光标位置 - 8003014: 2100 movs r1, #0 - 8003016: 2000 movs r0, #0 - 8003018: f7ff ff1a bl 8002e50 + 8004130: 2100 movs r1, #0 + 8004132: 2000 movs r0, #0 + 8004134: f7ff ff1a bl 8003f6c LCD_REG_ADDRESS=lcddev.wramcmd; //开始写入GRAM - 800301c: 4b0b ldr r3, [pc, #44] ; (800304c ) - 800301e: 79da ldrb r2, [r3, #7] - 8003020: f04f 43d8 mov.w r3, #1811939328 ; 0x6c000000 - 8003024: b292 uxth r2, r2 - 8003026: 801a strh r2, [r3, #0] + 8004138: 4b0b ldr r3, [pc, #44] ; (8004168 ) + 800413a: 79da ldrb r2, [r3, #7] + 800413c: f04f 43d8 mov.w r3, #1811939328 ; 0x6c000000 + 8004140: b292 uxth r2, r2 + 8004142: 801a strh r2, [r3, #0] for(index=0;index + 8004144: 2300 movs r3, #0 + 8004146: 60fb str r3, [r7, #12] + 8004148: e005 b.n 8004156 { LCD_DATA_ADDRESS=color; - 800302e: 4a08 ldr r2, [pc, #32] ; (8003050 ) - 8003030: 88fb ldrh r3, [r7, #6] - 8003032: 8013 strh r3, [r2, #0] + 800414a: 4a08 ldr r2, [pc, #32] ; (800416c ) + 800414c: 88fb ldrh r3, [r7, #6] + 800414e: 8013 strh r3, [r2, #0] for(index=0;index + 8004150: 68fb ldr r3, [r7, #12] + 8004152: 3301 adds r3, #1 + 8004154: 60fb str r3, [r7, #12] + 8004156: 68fa ldr r2, [r7, #12] + 8004158: 68bb ldr r3, [r7, #8] + 800415a: 429a cmp r2, r3 + 800415c: d3f5 bcc.n 800414a } } - 8003042: bf00 nop - 8003044: bf00 nop - 8003046: 3710 adds r7, #16 - 8003048: 46bd mov sp, r7 - 800304a: bd80 pop {r7, pc} - 800304c: 20000254 .word 0x20000254 - 8003050: 6c000800 .word 0x6c000800 + 800415e: bf00 nop + 8004160: bf00 nop + 8004162: 3710 adds r7, #16 + 8004164: 46bd mov sp, r7 + 8004166: bd80 pop {r7, pc} + 8004168: 200002a8 .word 0x200002a8 + 800416c: 6c000800 .word 0x6c000800 -08003054 : +08004170 : //***********************************2D //画线 //x1,y1:起点坐标 //x2,y2:终点坐标 void LCD_DrawLine(uint16_t x1, uint16_t y1, uint16_t x2, uint16_t y2,uint16_t color) { - 8003054: b590 push {r4, r7, lr} - 8003056: b08d sub sp, #52 ; 0x34 - 8003058: af00 add r7, sp, #0 - 800305a: 4604 mov r4, r0 - 800305c: 4608 mov r0, r1 - 800305e: 4611 mov r1, r2 - 8003060: 461a mov r2, r3 - 8003062: 4623 mov r3, r4 - 8003064: 80fb strh r3, [r7, #6] - 8003066: 4603 mov r3, r0 - 8003068: 80bb strh r3, [r7, #4] - 800306a: 460b mov r3, r1 - 800306c: 807b strh r3, [r7, #2] - 800306e: 4613 mov r3, r2 - 8003070: 803b strh r3, [r7, #0] + 8004170: b590 push {r4, r7, lr} + 8004172: b08d sub sp, #52 ; 0x34 + 8004174: af00 add r7, sp, #0 + 8004176: 4604 mov r4, r0 + 8004178: 4608 mov r0, r1 + 800417a: 4611 mov r1, r2 + 800417c: 461a mov r2, r3 + 800417e: 4623 mov r3, r4 + 8004180: 80fb strh r3, [r7, #6] + 8004182: 4603 mov r3, r0 + 8004184: 80bb strh r3, [r7, #4] + 8004186: 460b mov r3, r1 + 8004188: 807b strh r3, [r7, #2] + 800418a: 4613 mov r3, r2 + 800418c: 803b strh r3, [r7, #0] uint16_t t; int xerr=0,yerr=0,delta_x,delta_y,distance; - 8003072: 2300 movs r3, #0 - 8003074: 62bb str r3, [r7, #40] ; 0x28 - 8003076: 2300 movs r3, #0 - 8003078: 627b str r3, [r7, #36] ; 0x24 + 800418e: 2300 movs r3, #0 + 8004190: 62bb str r3, [r7, #40] ; 0x28 + 8004192: 2300 movs r3, #0 + 8004194: 627b str r3, [r7, #36] ; 0x24 int incx,incy,uRow,uCol; delta_x=x2-x1; //计算坐标增量 - 800307a: 887a ldrh r2, [r7, #2] - 800307c: 88fb ldrh r3, [r7, #6] - 800307e: 1ad3 subs r3, r2, r3 - 8003080: 623b str r3, [r7, #32] + 8004196: 887a ldrh r2, [r7, #2] + 8004198: 88fb ldrh r3, [r7, #6] + 800419a: 1ad3 subs r3, r2, r3 + 800419c: 623b str r3, [r7, #32] delta_y=y2-y1; - 8003082: 883a ldrh r2, [r7, #0] - 8003084: 88bb ldrh r3, [r7, #4] - 8003086: 1ad3 subs r3, r2, r3 - 8003088: 61fb str r3, [r7, #28] + 800419e: 883a ldrh r2, [r7, #0] + 80041a0: 88bb ldrh r3, [r7, #4] + 80041a2: 1ad3 subs r3, r2, r3 + 80041a4: 61fb str r3, [r7, #28] uRow=x1; - 800308a: 88fb ldrh r3, [r7, #6] - 800308c: 60fb str r3, [r7, #12] + 80041a6: 88fb ldrh r3, [r7, #6] + 80041a8: 60fb str r3, [r7, #12] uCol=y1; - 800308e: 88bb ldrh r3, [r7, #4] - 8003090: 60bb str r3, [r7, #8] + 80041aa: 88bb ldrh r3, [r7, #4] + 80041ac: 60bb str r3, [r7, #8] if(delta_x>0)incx=1; //设置单步方向 - 8003092: 6a3b ldr r3, [r7, #32] - 8003094: 2b00 cmp r3, #0 - 8003096: dd02 ble.n 800309e - 8003098: 2301 movs r3, #1 - 800309a: 617b str r3, [r7, #20] - 800309c: e00b b.n 80030b6 + 80041ae: 6a3b ldr r3, [r7, #32] + 80041b0: 2b00 cmp r3, #0 + 80041b2: dd02 ble.n 80041ba + 80041b4: 2301 movs r3, #1 + 80041b6: 617b str r3, [r7, #20] + 80041b8: e00b b.n 80041d2 else if(delta_x==0)incx=0;//垂直线 - 800309e: 6a3b ldr r3, [r7, #32] - 80030a0: 2b00 cmp r3, #0 - 80030a2: d102 bne.n 80030aa - 80030a4: 2300 movs r3, #0 - 80030a6: 617b str r3, [r7, #20] - 80030a8: e005 b.n 80030b6 + 80041ba: 6a3b ldr r3, [r7, #32] + 80041bc: 2b00 cmp r3, #0 + 80041be: d102 bne.n 80041c6 + 80041c0: 2300 movs r3, #0 + 80041c2: 617b str r3, [r7, #20] + 80041c4: e005 b.n 80041d2 else {incx=-1;delta_x=-delta_x;} - 80030aa: f04f 33ff mov.w r3, #4294967295 ; 0xffffffff - 80030ae: 617b str r3, [r7, #20] - 80030b0: 6a3b ldr r3, [r7, #32] - 80030b2: 425b negs r3, r3 - 80030b4: 623b str r3, [r7, #32] + 80041c6: f04f 33ff mov.w r3, #4294967295 ; 0xffffffff + 80041ca: 617b str r3, [r7, #20] + 80041cc: 6a3b ldr r3, [r7, #32] + 80041ce: 425b negs r3, r3 + 80041d0: 623b str r3, [r7, #32] if(delta_y>0)incy=1; - 80030b6: 69fb ldr r3, [r7, #28] - 80030b8: 2b00 cmp r3, #0 - 80030ba: dd02 ble.n 80030c2 - 80030bc: 2301 movs r3, #1 - 80030be: 613b str r3, [r7, #16] - 80030c0: e00b b.n 80030da + 80041d2: 69fb ldr r3, [r7, #28] + 80041d4: 2b00 cmp r3, #0 + 80041d6: dd02 ble.n 80041de + 80041d8: 2301 movs r3, #1 + 80041da: 613b str r3, [r7, #16] + 80041dc: e00b b.n 80041f6 else if(delta_y==0)incy=0;//水平线 - 80030c2: 69fb ldr r3, [r7, #28] - 80030c4: 2b00 cmp r3, #0 - 80030c6: d102 bne.n 80030ce - 80030c8: 2300 movs r3, #0 - 80030ca: 613b str r3, [r7, #16] - 80030cc: e005 b.n 80030da + 80041de: 69fb ldr r3, [r7, #28] + 80041e0: 2b00 cmp r3, #0 + 80041e2: d102 bne.n 80041ea + 80041e4: 2300 movs r3, #0 + 80041e6: 613b str r3, [r7, #16] + 80041e8: e005 b.n 80041f6 else{incy=-1;delta_y=-delta_y;} - 80030ce: f04f 33ff mov.w r3, #4294967295 ; 0xffffffff - 80030d2: 613b str r3, [r7, #16] - 80030d4: 69fb ldr r3, [r7, #28] - 80030d6: 425b negs r3, r3 - 80030d8: 61fb str r3, [r7, #28] + 80041ea: f04f 33ff mov.w r3, #4294967295 ; 0xffffffff + 80041ee: 613b str r3, [r7, #16] + 80041f0: 69fb ldr r3, [r7, #28] + 80041f2: 425b negs r3, r3 + 80041f4: 61fb str r3, [r7, #28] if( delta_x>delta_y)distance=delta_x; //选取基本增量坐标轴 - 80030da: 6a3a ldr r2, [r7, #32] - 80030dc: 69fb ldr r3, [r7, #28] - 80030de: 429a cmp r2, r3 - 80030e0: dd02 ble.n 80030e8 - 80030e2: 6a3b ldr r3, [r7, #32] - 80030e4: 61bb str r3, [r7, #24] - 80030e6: e001 b.n 80030ec + 80041f6: 6a3a ldr r2, [r7, #32] + 80041f8: 69fb ldr r3, [r7, #28] + 80041fa: 429a cmp r2, r3 + 80041fc: dd02 ble.n 8004204 + 80041fe: 6a3b ldr r3, [r7, #32] + 8004200: 61bb str r3, [r7, #24] + 8004202: e001 b.n 8004208 else distance=delta_y; - 80030e8: 69fb ldr r3, [r7, #28] - 80030ea: 61bb str r3, [r7, #24] + 8004204: 69fb ldr r3, [r7, #28] + 8004206: 61bb str r3, [r7, #24] for(t=0;t<=distance+1;t++ )//画线输出 - 80030ec: 2300 movs r3, #0 - 80030ee: 85fb strh r3, [r7, #46] ; 0x2e - 80030f0: e02b b.n 800314a + 8004208: 2300 movs r3, #0 + 800420a: 85fb strh r3, [r7, #46] ; 0x2e + 800420c: e02b b.n 8004266 { LCD_set_dot(uRow,uCol,color);//画点 - 80030f2: 68fb ldr r3, [r7, #12] - 80030f4: b29b uxth r3, r3 - 80030f6: 68ba ldr r2, [r7, #8] - 80030f8: b291 uxth r1, r2 - 80030fa: f8b7 2040 ldrh.w r2, [r7, #64] ; 0x40 - 80030fe: 4618 mov r0, r3 - 8003100: f7ff ff36 bl 8002f70 + 800420e: 68fb ldr r3, [r7, #12] + 8004210: b29b uxth r3, r3 + 8004212: 68ba ldr r2, [r7, #8] + 8004214: b291 uxth r1, r2 + 8004216: f8b7 2040 ldrh.w r2, [r7, #64] ; 0x40 + 800421a: 4618 mov r0, r3 + 800421c: f7ff ff36 bl 800408c xerr+=delta_x ; - 8003104: 6aba ldr r2, [r7, #40] ; 0x28 - 8003106: 6a3b ldr r3, [r7, #32] - 8003108: 4413 add r3, r2 - 800310a: 62bb str r3, [r7, #40] ; 0x28 + 8004220: 6aba ldr r2, [r7, #40] ; 0x28 + 8004222: 6a3b ldr r3, [r7, #32] + 8004224: 4413 add r3, r2 + 8004226: 62bb str r3, [r7, #40] ; 0x28 yerr+=delta_y ; - 800310c: 6a7a ldr r2, [r7, #36] ; 0x24 - 800310e: 69fb ldr r3, [r7, #28] - 8003110: 4413 add r3, r2 - 8003112: 627b str r3, [r7, #36] ; 0x24 + 8004228: 6a7a ldr r2, [r7, #36] ; 0x24 + 800422a: 69fb ldr r3, [r7, #28] + 800422c: 4413 add r3, r2 + 800422e: 627b str r3, [r7, #36] ; 0x24 if(xerr>distance) - 8003114: 6aba ldr r2, [r7, #40] ; 0x28 - 8003116: 69bb ldr r3, [r7, #24] - 8003118: 429a cmp r2, r3 - 800311a: dd07 ble.n 800312c + 8004230: 6aba ldr r2, [r7, #40] ; 0x28 + 8004232: 69bb ldr r3, [r7, #24] + 8004234: 429a cmp r2, r3 + 8004236: dd07 ble.n 8004248 { xerr-=distance; - 800311c: 6aba ldr r2, [r7, #40] ; 0x28 - 800311e: 69bb ldr r3, [r7, #24] - 8003120: 1ad3 subs r3, r2, r3 - 8003122: 62bb str r3, [r7, #40] ; 0x28 + 8004238: 6aba ldr r2, [r7, #40] ; 0x28 + 800423a: 69bb ldr r3, [r7, #24] + 800423c: 1ad3 subs r3, r2, r3 + 800423e: 62bb str r3, [r7, #40] ; 0x28 uRow+=incx; - 8003124: 68fa ldr r2, [r7, #12] - 8003126: 697b ldr r3, [r7, #20] - 8003128: 4413 add r3, r2 - 800312a: 60fb str r3, [r7, #12] + 8004240: 68fa ldr r2, [r7, #12] + 8004242: 697b ldr r3, [r7, #20] + 8004244: 4413 add r3, r2 + 8004246: 60fb str r3, [r7, #12] } if(yerr>distance) - 800312c: 6a7a ldr r2, [r7, #36] ; 0x24 - 800312e: 69bb ldr r3, [r7, #24] - 8003130: 429a cmp r2, r3 - 8003132: dd07 ble.n 8003144 + 8004248: 6a7a ldr r2, [r7, #36] ; 0x24 + 800424a: 69bb ldr r3, [r7, #24] + 800424c: 429a cmp r2, r3 + 800424e: dd07 ble.n 8004260 { yerr-=distance; - 8003134: 6a7a ldr r2, [r7, #36] ; 0x24 - 8003136: 69bb ldr r3, [r7, #24] - 8003138: 1ad3 subs r3, r2, r3 - 800313a: 627b str r3, [r7, #36] ; 0x24 + 8004250: 6a7a ldr r2, [r7, #36] ; 0x24 + 8004252: 69bb ldr r3, [r7, #24] + 8004254: 1ad3 subs r3, r2, r3 + 8004256: 627b str r3, [r7, #36] ; 0x24 uCol+=incy; - 800313c: 68ba ldr r2, [r7, #8] - 800313e: 693b ldr r3, [r7, #16] - 8003140: 4413 add r3, r2 - 8003142: 60bb str r3, [r7, #8] + 8004258: 68ba ldr r2, [r7, #8] + 800425a: 693b ldr r3, [r7, #16] + 800425c: 4413 add r3, r2 + 800425e: 60bb str r3, [r7, #8] for(t=0;t<=distance+1;t++ )//画线输出 - 8003144: 8dfb ldrh r3, [r7, #46] ; 0x2e - 8003146: 3301 adds r3, #1 - 8003148: 85fb strh r3, [r7, #46] ; 0x2e - 800314a: 8dfa ldrh r2, [r7, #46] ; 0x2e - 800314c: 69bb ldr r3, [r7, #24] - 800314e: 3301 adds r3, #1 - 8003150: 429a cmp r2, r3 - 8003152: ddce ble.n 80030f2 + 8004260: 8dfb ldrh r3, [r7, #46] ; 0x2e + 8004262: 3301 adds r3, #1 + 8004264: 85fb strh r3, [r7, #46] ; 0x2e + 8004266: 8dfa ldrh r2, [r7, #46] ; 0x2e + 8004268: 69bb ldr r3, [r7, #24] + 800426a: 3301 adds r3, #1 + 800426c: 429a cmp r2, r3 + 800426e: ddce ble.n 800420e } } } - 8003154: bf00 nop - 8003156: bf00 nop - 8003158: 3734 adds r7, #52 ; 0x34 - 800315a: 46bd mov sp, r7 - 800315c: bd90 pop {r4, r7, pc} + 8004270: bf00 nop + 8004272: bf00 nop + 8004274: 3734 adds r7, #52 ; 0x34 + 8004276: 46bd mov sp, r7 + 8004278: bd90 pop {r4, r7, pc} -0800315e : +0800427a : //在指定位置画一个指定大小的圆 //(x,y):中心点 //r :半径 void Draw_Circle(uint16_t x0,uint16_t y0,uint16_t r,uint16_t color) { - 800315e: b590 push {r4, r7, lr} - 8003160: b087 sub sp, #28 - 8003162: af00 add r7, sp, #0 - 8003164: 4604 mov r4, r0 - 8003166: 4608 mov r0, r1 - 8003168: 4611 mov r1, r2 - 800316a: 461a mov r2, r3 - 800316c: 4623 mov r3, r4 - 800316e: 80fb strh r3, [r7, #6] - 8003170: 4603 mov r3, r0 - 8003172: 80bb strh r3, [r7, #4] - 8003174: 460b mov r3, r1 - 8003176: 807b strh r3, [r7, #2] - 8003178: 4613 mov r3, r2 - 800317a: 803b strh r3, [r7, #0] + 800427a: b590 push {r4, r7, lr} + 800427c: b087 sub sp, #28 + 800427e: af00 add r7, sp, #0 + 8004280: 4604 mov r4, r0 + 8004282: 4608 mov r0, r1 + 8004284: 4611 mov r1, r2 + 8004286: 461a mov r2, r3 + 8004288: 4623 mov r3, r4 + 800428a: 80fb strh r3, [r7, #6] + 800428c: 4603 mov r3, r0 + 800428e: 80bb strh r3, [r7, #4] + 8004290: 460b mov r3, r1 + 8004292: 807b strh r3, [r7, #2] + 8004294: 4613 mov r3, r2 + 8004296: 803b strh r3, [r7, #0] int a,b; int di; a=0;b=r; - 800317c: 2300 movs r3, #0 - 800317e: 617b str r3, [r7, #20] - 8003180: 887b ldrh r3, [r7, #2] - 8003182: 613b str r3, [r7, #16] + 8004298: 2300 movs r3, #0 + 800429a: 617b str r3, [r7, #20] + 800429c: 887b ldrh r3, [r7, #2] + 800429e: 613b str r3, [r7, #16] di=3-(r<<1); //判断下个点位置的标志 - 8003184: 887b ldrh r3, [r7, #2] - 8003186: 005b lsls r3, r3, #1 - 8003188: f1c3 0303 rsb r3, r3, #3 - 800318c: 60fb str r3, [r7, #12] + 80042a0: 887b ldrh r3, [r7, #2] + 80042a2: 005b lsls r3, r3, #1 + 80042a4: f1c3 0303 rsb r3, r3, #3 + 80042a8: 60fb str r3, [r7, #12] while(a<=b) - 800318e: e087 b.n 80032a0 + 80042aa: e087 b.n 80043bc { LCD_set_dot(x0+a,y0-b,color); //5 - 8003190: 697b ldr r3, [r7, #20] - 8003192: b29a uxth r2, r3 - 8003194: 88fb ldrh r3, [r7, #6] - 8003196: 4413 add r3, r2 - 8003198: b298 uxth r0, r3 - 800319a: 693b ldr r3, [r7, #16] - 800319c: b29b uxth r3, r3 - 800319e: 88ba ldrh r2, [r7, #4] - 80031a0: 1ad3 subs r3, r2, r3 - 80031a2: b29b uxth r3, r3 - 80031a4: 883a ldrh r2, [r7, #0] - 80031a6: 4619 mov r1, r3 - 80031a8: f7ff fee2 bl 8002f70 + 80042ac: 697b ldr r3, [r7, #20] + 80042ae: b29a uxth r2, r3 + 80042b0: 88fb ldrh r3, [r7, #6] + 80042b2: 4413 add r3, r2 + 80042b4: b298 uxth r0, r3 + 80042b6: 693b ldr r3, [r7, #16] + 80042b8: b29b uxth r3, r3 + 80042ba: 88ba ldrh r2, [r7, #4] + 80042bc: 1ad3 subs r3, r2, r3 + 80042be: b29b uxth r3, r3 + 80042c0: 883a ldrh r2, [r7, #0] + 80042c2: 4619 mov r1, r3 + 80042c4: f7ff fee2 bl 800408c LCD_set_dot(x0+b,y0-a,color); //0 - 80031ac: 693b ldr r3, [r7, #16] - 80031ae: b29a uxth r2, r3 - 80031b0: 88fb ldrh r3, [r7, #6] - 80031b2: 4413 add r3, r2 - 80031b4: b298 uxth r0, r3 - 80031b6: 697b ldr r3, [r7, #20] - 80031b8: b29b uxth r3, r3 - 80031ba: 88ba ldrh r2, [r7, #4] - 80031bc: 1ad3 subs r3, r2, r3 - 80031be: b29b uxth r3, r3 - 80031c0: 883a ldrh r2, [r7, #0] - 80031c2: 4619 mov r1, r3 - 80031c4: f7ff fed4 bl 8002f70 + 80042c8: 693b ldr r3, [r7, #16] + 80042ca: b29a uxth r2, r3 + 80042cc: 88fb ldrh r3, [r7, #6] + 80042ce: 4413 add r3, r2 + 80042d0: b298 uxth r0, r3 + 80042d2: 697b ldr r3, [r7, #20] + 80042d4: b29b uxth r3, r3 + 80042d6: 88ba ldrh r2, [r7, #4] + 80042d8: 1ad3 subs r3, r2, r3 + 80042da: b29b uxth r3, r3 + 80042dc: 883a ldrh r2, [r7, #0] + 80042de: 4619 mov r1, r3 + 80042e0: f7ff fed4 bl 800408c LCD_set_dot(x0+b,y0+a,color); //4 - 80031c8: 693b ldr r3, [r7, #16] - 80031ca: b29a uxth r2, r3 - 80031cc: 88fb ldrh r3, [r7, #6] - 80031ce: 4413 add r3, r2 - 80031d0: b298 uxth r0, r3 - 80031d2: 697b ldr r3, [r7, #20] - 80031d4: b29a uxth r2, r3 - 80031d6: 88bb ldrh r3, [r7, #4] - 80031d8: 4413 add r3, r2 - 80031da: b29b uxth r3, r3 - 80031dc: 883a ldrh r2, [r7, #0] - 80031de: 4619 mov r1, r3 - 80031e0: f7ff fec6 bl 8002f70 + 80042e4: 693b ldr r3, [r7, #16] + 80042e6: b29a uxth r2, r3 + 80042e8: 88fb ldrh r3, [r7, #6] + 80042ea: 4413 add r3, r2 + 80042ec: b298 uxth r0, r3 + 80042ee: 697b ldr r3, [r7, #20] + 80042f0: b29a uxth r2, r3 + 80042f2: 88bb ldrh r3, [r7, #4] + 80042f4: 4413 add r3, r2 + 80042f6: b29b uxth r3, r3 + 80042f8: 883a ldrh r2, [r7, #0] + 80042fa: 4619 mov r1, r3 + 80042fc: f7ff fec6 bl 800408c LCD_set_dot(x0+a,y0+b,color); //6 - 80031e4: 697b ldr r3, [r7, #20] - 80031e6: b29a uxth r2, r3 - 80031e8: 88fb ldrh r3, [r7, #6] - 80031ea: 4413 add r3, r2 - 80031ec: b298 uxth r0, r3 - 80031ee: 693b ldr r3, [r7, #16] - 80031f0: b29a uxth r2, r3 - 80031f2: 88bb ldrh r3, [r7, #4] - 80031f4: 4413 add r3, r2 - 80031f6: b29b uxth r3, r3 - 80031f8: 883a ldrh r2, [r7, #0] - 80031fa: 4619 mov r1, r3 - 80031fc: f7ff feb8 bl 8002f70 + 8004300: 697b ldr r3, [r7, #20] + 8004302: b29a uxth r2, r3 + 8004304: 88fb ldrh r3, [r7, #6] + 8004306: 4413 add r3, r2 + 8004308: b298 uxth r0, r3 + 800430a: 693b ldr r3, [r7, #16] + 800430c: b29a uxth r2, r3 + 800430e: 88bb ldrh r3, [r7, #4] + 8004310: 4413 add r3, r2 + 8004312: b29b uxth r3, r3 + 8004314: 883a ldrh r2, [r7, #0] + 8004316: 4619 mov r1, r3 + 8004318: f7ff feb8 bl 800408c LCD_set_dot(x0-a,y0+b,color); //1 - 8003200: 697b ldr r3, [r7, #20] - 8003202: b29b uxth r3, r3 - 8003204: 88fa ldrh r2, [r7, #6] - 8003206: 1ad3 subs r3, r2, r3 - 8003208: b298 uxth r0, r3 - 800320a: 693b ldr r3, [r7, #16] - 800320c: b29a uxth r2, r3 - 800320e: 88bb ldrh r3, [r7, #4] - 8003210: 4413 add r3, r2 - 8003212: b29b uxth r3, r3 - 8003214: 883a ldrh r2, [r7, #0] - 8003216: 4619 mov r1, r3 - 8003218: f7ff feaa bl 8002f70 + 800431c: 697b ldr r3, [r7, #20] + 800431e: b29b uxth r3, r3 + 8004320: 88fa ldrh r2, [r7, #6] + 8004322: 1ad3 subs r3, r2, r3 + 8004324: b298 uxth r0, r3 + 8004326: 693b ldr r3, [r7, #16] + 8004328: b29a uxth r2, r3 + 800432a: 88bb ldrh r3, [r7, #4] + 800432c: 4413 add r3, r2 + 800432e: b29b uxth r3, r3 + 8004330: 883a ldrh r2, [r7, #0] + 8004332: 4619 mov r1, r3 + 8004334: f7ff feaa bl 800408c LCD_set_dot(x0-b,y0+a,color); - 800321c: 693b ldr r3, [r7, #16] - 800321e: b29b uxth r3, r3 - 8003220: 88fa ldrh r2, [r7, #6] - 8003222: 1ad3 subs r3, r2, r3 - 8003224: b298 uxth r0, r3 - 8003226: 697b ldr r3, [r7, #20] - 8003228: b29a uxth r2, r3 - 800322a: 88bb ldrh r3, [r7, #4] - 800322c: 4413 add r3, r2 - 800322e: b29b uxth r3, r3 - 8003230: 883a ldrh r2, [r7, #0] - 8003232: 4619 mov r1, r3 - 8003234: f7ff fe9c bl 8002f70 + 8004338: 693b ldr r3, [r7, #16] + 800433a: b29b uxth r3, r3 + 800433c: 88fa ldrh r2, [r7, #6] + 800433e: 1ad3 subs r3, r2, r3 + 8004340: b298 uxth r0, r3 + 8004342: 697b ldr r3, [r7, #20] + 8004344: b29a uxth r2, r3 + 8004346: 88bb ldrh r3, [r7, #4] + 8004348: 4413 add r3, r2 + 800434a: b29b uxth r3, r3 + 800434c: 883a ldrh r2, [r7, #0] + 800434e: 4619 mov r1, r3 + 8004350: f7ff fe9c bl 800408c LCD_set_dot(x0-a,y0-b,color); //2 - 8003238: 697b ldr r3, [r7, #20] - 800323a: b29b uxth r3, r3 - 800323c: 88fa ldrh r2, [r7, #6] - 800323e: 1ad3 subs r3, r2, r3 - 8003240: b298 uxth r0, r3 - 8003242: 693b ldr r3, [r7, #16] - 8003244: b29b uxth r3, r3 - 8003246: 88ba ldrh r2, [r7, #4] - 8003248: 1ad3 subs r3, r2, r3 - 800324a: b29b uxth r3, r3 - 800324c: 883a ldrh r2, [r7, #0] - 800324e: 4619 mov r1, r3 - 8003250: f7ff fe8e bl 8002f70 + 8004354: 697b ldr r3, [r7, #20] + 8004356: b29b uxth r3, r3 + 8004358: 88fa ldrh r2, [r7, #6] + 800435a: 1ad3 subs r3, r2, r3 + 800435c: b298 uxth r0, r3 + 800435e: 693b ldr r3, [r7, #16] + 8004360: b29b uxth r3, r3 + 8004362: 88ba ldrh r2, [r7, #4] + 8004364: 1ad3 subs r3, r2, r3 + 8004366: b29b uxth r3, r3 + 8004368: 883a ldrh r2, [r7, #0] + 800436a: 4619 mov r1, r3 + 800436c: f7ff fe8e bl 800408c LCD_set_dot(x0-b,y0-a,color); //7 - 8003254: 693b ldr r3, [r7, #16] - 8003256: b29b uxth r3, r3 - 8003258: 88fa ldrh r2, [r7, #6] - 800325a: 1ad3 subs r3, r2, r3 - 800325c: b298 uxth r0, r3 - 800325e: 697b ldr r3, [r7, #20] - 8003260: b29b uxth r3, r3 - 8003262: 88ba ldrh r2, [r7, #4] - 8003264: 1ad3 subs r3, r2, r3 - 8003266: b29b uxth r3, r3 - 8003268: 883a ldrh r2, [r7, #0] - 800326a: 4619 mov r1, r3 - 800326c: f7ff fe80 bl 8002f70 + 8004370: 693b ldr r3, [r7, #16] + 8004372: b29b uxth r3, r3 + 8004374: 88fa ldrh r2, [r7, #6] + 8004376: 1ad3 subs r3, r2, r3 + 8004378: b298 uxth r0, r3 + 800437a: 697b ldr r3, [r7, #20] + 800437c: b29b uxth r3, r3 + 800437e: 88ba ldrh r2, [r7, #4] + 8004380: 1ad3 subs r3, r2, r3 + 8004382: b29b uxth r3, r3 + 8004384: 883a ldrh r2, [r7, #0] + 8004386: 4619 mov r1, r3 + 8004388: f7ff fe80 bl 800408c a++; - 8003270: 697b ldr r3, [r7, #20] - 8003272: 3301 adds r3, #1 - 8003274: 617b str r3, [r7, #20] + 800438c: 697b ldr r3, [r7, #20] + 800438e: 3301 adds r3, #1 + 8004390: 617b str r3, [r7, #20] //使用Bresenham算法画圆 if(di<0)di +=4*a+6; - 8003276: 68fb ldr r3, [r7, #12] - 8003278: 2b00 cmp r3, #0 - 800327a: da06 bge.n 800328a - 800327c: 697b ldr r3, [r7, #20] - 800327e: 009b lsls r3, r3, #2 - 8003280: 3306 adds r3, #6 - 8003282: 68fa ldr r2, [r7, #12] - 8003284: 4413 add r3, r2 - 8003286: 60fb str r3, [r7, #12] - 8003288: e00a b.n 80032a0 + 8004392: 68fb ldr r3, [r7, #12] + 8004394: 2b00 cmp r3, #0 + 8004396: da06 bge.n 80043a6 + 8004398: 697b ldr r3, [r7, #20] + 800439a: 009b lsls r3, r3, #2 + 800439c: 3306 adds r3, #6 + 800439e: 68fa ldr r2, [r7, #12] + 80043a0: 4413 add r3, r2 + 80043a2: 60fb str r3, [r7, #12] + 80043a4: e00a b.n 80043bc else { di+=10+4*(a-b); - 800328a: 697a ldr r2, [r7, #20] - 800328c: 693b ldr r3, [r7, #16] - 800328e: 1ad3 subs r3, r2, r3 - 8003290: 009b lsls r3, r3, #2 - 8003292: 330a adds r3, #10 - 8003294: 68fa ldr r2, [r7, #12] - 8003296: 4413 add r3, r2 - 8003298: 60fb str r3, [r7, #12] + 80043a6: 697a ldr r2, [r7, #20] + 80043a8: 693b ldr r3, [r7, #16] + 80043aa: 1ad3 subs r3, r2, r3 + 80043ac: 009b lsls r3, r3, #2 + 80043ae: 330a adds r3, #10 + 80043b0: 68fa ldr r2, [r7, #12] + 80043b2: 4413 add r3, r2 + 80043b4: 60fb str r3, [r7, #12] b--; - 800329a: 693b ldr r3, [r7, #16] - 800329c: 3b01 subs r3, #1 - 800329e: 613b str r3, [r7, #16] + 80043b6: 693b ldr r3, [r7, #16] + 80043b8: 3b01 subs r3, #1 + 80043ba: 613b str r3, [r7, #16] while(a<=b) - 80032a0: 697a ldr r2, [r7, #20] - 80032a2: 693b ldr r3, [r7, #16] - 80032a4: 429a cmp r2, r3 - 80032a6: f77f af73 ble.w 8003190 + 80043bc: 697a ldr r2, [r7, #20] + 80043be: 693b ldr r3, [r7, #16] + 80043c0: 429a cmp r2, r3 + 80043c2: f77f af73 ble.w 80042ac } } } - 80032aa: bf00 nop - 80032ac: bf00 nop - 80032ae: 371c adds r7, #28 - 80032b0: 46bd mov sp, r7 - 80032b2: bd90 pop {r4, r7, pc} + 80043c6: bf00 nop + 80043c8: bf00 nop + 80043ca: 371c adds r7, #28 + 80043cc: 46bd mov sp, r7 + 80043ce: bd90 pop {r4, r7, pc} -080032b4 : +080043d0 : //num:要显示的字符:" "--->"~" //size:字体大小 12/16 //mode:叠加方式(1)还是非叠加方式(0) void LCD_ShowChar(uint16_t x,uint16_t y,uint8_t num,uint8_t size,uint16_t bg,uint16_t color) { - 80032b4: b590 push {r4, r7, lr} - 80032b6: b085 sub sp, #20 - 80032b8: af00 add r7, sp, #0 - 80032ba: 4604 mov r4, r0 - 80032bc: 4608 mov r0, r1 - 80032be: 4611 mov r1, r2 - 80032c0: 461a mov r2, r3 - 80032c2: 4623 mov r3, r4 - 80032c4: 80fb strh r3, [r7, #6] - 80032c6: 4603 mov r3, r0 - 80032c8: 80bb strh r3, [r7, #4] - 80032ca: 460b mov r3, r1 - 80032cc: 70fb strb r3, [r7, #3] - 80032ce: 4613 mov r3, r2 - 80032d0: 70bb strb r3, [r7, #2] + 80043d0: b590 push {r4, r7, lr} + 80043d2: b085 sub sp, #20 + 80043d4: af00 add r7, sp, #0 + 80043d6: 4604 mov r4, r0 + 80043d8: 4608 mov r0, r1 + 80043da: 4611 mov r1, r2 + 80043dc: 461a mov r2, r3 + 80043de: 4623 mov r3, r4 + 80043e0: 80fb strh r3, [r7, #6] + 80043e2: 4603 mov r3, r0 + 80043e4: 80bb strh r3, [r7, #4] + 80043e6: 460b mov r3, r1 + 80043e8: 70fb strb r3, [r7, #3] + 80043ea: 4613 mov r3, r2 + 80043ec: 70bb strb r3, [r7, #2] uint8_t temp,t1,t; uint16_t y0=y; - 80032d2: 88bb ldrh r3, [r7, #4] - 80032d4: 817b strh r3, [r7, #10] + 80043ee: 88bb ldrh r3, [r7, #4] + 80043f0: 817b strh r3, [r7, #10] //设置窗口 num=num-' ';//得到偏移后的值 - 80032d6: 78fb ldrb r3, [r7, #3] - 80032d8: 3b20 subs r3, #32 - 80032da: 70fb strb r3, [r7, #3] + 80043f2: 78fb ldrb r3, [r7, #3] + 80043f4: 3b20 subs r3, #32 + 80043f6: 70fb strb r3, [r7, #3] for(t=0;t + 80043f8: 2300 movs r3, #0 + 80043fa: 737b strb r3, [r7, #13] + 80043fc: e055 b.n 80044aa { if(size==12){temp=asc2_1206[num][t];} //调用1206字体 - 80032e2: 78bb ldrb r3, [r7, #2] - 80032e4: 2b0c cmp r3, #12 - 80032e6: d10b bne.n 8003300 - 80032e8: 78fa ldrb r2, [r7, #3] - 80032ea: 7b79 ldrb r1, [r7, #13] - 80032ec: 482c ldr r0, [pc, #176] ; (80033a0 ) - 80032ee: 4613 mov r3, r2 - 80032f0: 005b lsls r3, r3, #1 - 80032f2: 4413 add r3, r2 - 80032f4: 009b lsls r3, r3, #2 - 80032f6: 4403 add r3, r0 - 80032f8: 440b add r3, r1 - 80032fa: 781b ldrb r3, [r3, #0] - 80032fc: 73fb strb r3, [r7, #15] - 80032fe: e007 b.n 8003310 + 80043fe: 78bb ldrb r3, [r7, #2] + 8004400: 2b0c cmp r3, #12 + 8004402: d10b bne.n 800441c + 8004404: 78fa ldrb r2, [r7, #3] + 8004406: 7b79 ldrb r1, [r7, #13] + 8004408: 482c ldr r0, [pc, #176] ; (80044bc ) + 800440a: 4613 mov r3, r2 + 800440c: 005b lsls r3, r3, #1 + 800440e: 4413 add r3, r2 + 8004410: 009b lsls r3, r3, #2 + 8004412: 4403 add r3, r0 + 8004414: 440b add r3, r1 + 8004416: 781b ldrb r3, [r3, #0] + 8004418: 73fb strb r3, [r7, #15] + 800441a: e007 b.n 800442c else{ temp=asc2_1608[num][t]; } //调用1608字体 - 8003300: 78fa ldrb r2, [r7, #3] - 8003302: 7b7b ldrb r3, [r7, #13] - 8003304: 4927 ldr r1, [pc, #156] ; (80033a4 ) - 8003306: 0112 lsls r2, r2, #4 - 8003308: 440a add r2, r1 - 800330a: 4413 add r3, r2 - 800330c: 781b ldrb r3, [r3, #0] - 800330e: 73fb strb r3, [r7, #15] + 800441c: 78fa ldrb r2, [r7, #3] + 800441e: 7b7b ldrb r3, [r7, #13] + 8004420: 4927 ldr r1, [pc, #156] ; (80044c0 ) + 8004422: 0112 lsls r2, r2, #4 + 8004424: 440a add r2, r1 + 8004426: 4413 add r3, r2 + 8004428: 781b ldrb r3, [r3, #0] + 800442a: 73fb strb r3, [r7, #15] for(t1=0;t1<8;t1++) - 8003310: 2300 movs r3, #0 - 8003312: 73bb strb r3, [r7, #14] - 8003314: e033 b.n 800337e + 800442c: 2300 movs r3, #0 + 800442e: 73bb strb r3, [r7, #14] + 8004430: e033 b.n 800449a { if(temp&0x80){LCD_set_dot(x,y,color);}else{if(bg!=color){LCD_set_dot(x,y,bg);}} - 8003316: f997 300f ldrsb.w r3, [r7, #15] - 800331a: 2b00 cmp r3, #0 - 800331c: da06 bge.n 800332c - 800331e: 8cba ldrh r2, [r7, #36] ; 0x24 - 8003320: 88b9 ldrh r1, [r7, #4] - 8003322: 88fb ldrh r3, [r7, #6] - 8003324: 4618 mov r0, r3 - 8003326: f7ff fe23 bl 8002f70 - 800332a: e009 b.n 8003340 - 800332c: 8c3a ldrh r2, [r7, #32] - 800332e: 8cbb ldrh r3, [r7, #36] ; 0x24 - 8003330: 429a cmp r2, r3 - 8003332: d005 beq.n 8003340 - 8003334: 8c3a ldrh r2, [r7, #32] - 8003336: 88b9 ldrh r1, [r7, #4] - 8003338: 88fb ldrh r3, [r7, #6] - 800333a: 4618 mov r0, r3 - 800333c: f7ff fe18 bl 8002f70 + 8004432: f997 300f ldrsb.w r3, [r7, #15] + 8004436: 2b00 cmp r3, #0 + 8004438: da06 bge.n 8004448 + 800443a: 8cba ldrh r2, [r7, #36] ; 0x24 + 800443c: 88b9 ldrh r1, [r7, #4] + 800443e: 88fb ldrh r3, [r7, #6] + 8004440: 4618 mov r0, r3 + 8004442: f7ff fe23 bl 800408c + 8004446: e009 b.n 800445c + 8004448: 8c3a ldrh r2, [r7, #32] + 800444a: 8cbb ldrh r3, [r7, #36] ; 0x24 + 800444c: 429a cmp r2, r3 + 800444e: d005 beq.n 800445c + 8004450: 8c3a ldrh r2, [r7, #32] + 8004452: 88b9 ldrh r1, [r7, #4] + 8004454: 88fb ldrh r3, [r7, #6] + 8004456: 4618 mov r0, r3 + 8004458: f7ff fe18 bl 800408c temp<<=1; - 8003340: 7bfb ldrb r3, [r7, #15] - 8003342: 005b lsls r3, r3, #1 - 8003344: 73fb strb r3, [r7, #15] + 800445c: 7bfb ldrb r3, [r7, #15] + 800445e: 005b lsls r3, r3, #1 + 8004460: 73fb strb r3, [r7, #15] y++; - 8003346: 88bb ldrh r3, [r7, #4] - 8003348: 3301 adds r3, #1 - 800334a: 80bb strh r3, [r7, #4] + 8004462: 88bb ldrh r3, [r7, #4] + 8004464: 3301 adds r3, #1 + 8004466: 80bb strh r3, [r7, #4] if(x>=lcddev.width){return;}//超区域了 - 800334c: 4b16 ldr r3, [pc, #88] ; (80033a8 ) - 800334e: 881b ldrh r3, [r3, #0] - 8003350: 88fa ldrh r2, [r7, #6] - 8003352: 429a cmp r2, r3 - 8003354: d220 bcs.n 8003398 + 8004468: 4b16 ldr r3, [pc, #88] ; (80044c4 ) + 800446a: 881b ldrh r3, [r3, #0] + 800446c: 88fa ldrh r2, [r7, #6] + 800446e: 429a cmp r2, r3 + 8004470: d220 bcs.n 80044b4 if((y-y0)==size) - 8003356: 88ba ldrh r2, [r7, #4] - 8003358: 897b ldrh r3, [r7, #10] - 800335a: 1ad2 subs r2, r2, r3 - 800335c: 78bb ldrb r3, [r7, #2] - 800335e: 429a cmp r2, r3 - 8003360: d10a bne.n 8003378 + 8004472: 88ba ldrh r2, [r7, #4] + 8004474: 897b ldrh r3, [r7, #10] + 8004476: 1ad2 subs r2, r2, r3 + 8004478: 78bb ldrb r3, [r7, #2] + 800447a: 429a cmp r2, r3 + 800447c: d10a bne.n 8004494 { y=y0; - 8003362: 897b ldrh r3, [r7, #10] - 8003364: 80bb strh r3, [r7, #4] + 800447e: 897b ldrh r3, [r7, #10] + 8004480: 80bb strh r3, [r7, #4] x++; - 8003366: 88fb ldrh r3, [r7, #6] - 8003368: 3301 adds r3, #1 - 800336a: 80fb strh r3, [r7, #6] + 8004482: 88fb ldrh r3, [r7, #6] + 8004484: 3301 adds r3, #1 + 8004486: 80fb strh r3, [r7, #6] if(x>=lcddev.width){return;}//超区域了 - 800336c: 4b0e ldr r3, [pc, #56] ; (80033a8 ) - 800336e: 881b ldrh r3, [r3, #0] - 8003370: 88fa ldrh r2, [r7, #6] - 8003372: 429a cmp r2, r3 - 8003374: d307 bcc.n 8003386 - 8003376: e010 b.n 800339a + 8004488: 4b0e ldr r3, [pc, #56] ; (80044c4 ) + 800448a: 881b ldrh r3, [r3, #0] + 800448c: 88fa ldrh r2, [r7, #6] + 800448e: 429a cmp r2, r3 + 8004490: d307 bcc.n 80044a2 + 8004492: e010 b.n 80044b6 for(t1=0;t1<8;t1++) - 8003378: 7bbb ldrb r3, [r7, #14] - 800337a: 3301 adds r3, #1 - 800337c: 73bb strb r3, [r7, #14] - 800337e: 7bbb ldrb r3, [r7, #14] - 8003380: 2b07 cmp r3, #7 - 8003382: d9c8 bls.n 8003316 - 8003384: e000 b.n 8003388 + 8004494: 7bbb ldrb r3, [r7, #14] + 8004496: 3301 adds r3, #1 + 8004498: 73bb strb r3, [r7, #14] + 800449a: 7bbb ldrb r3, [r7, #14] + 800449c: 2b07 cmp r3, #7 + 800449e: d9c8 bls.n 8004432 + 80044a0: e000 b.n 80044a4 break; - 8003386: bf00 nop + 80044a2: bf00 nop for(t=0;t - 8003396: e000 b.n 800339a + 80044a4: 7b7b ldrb r3, [r7, #13] + 80044a6: 3301 adds r3, #1 + 80044a8: 737b strb r3, [r7, #13] + 80044aa: 7b7a ldrb r2, [r7, #13] + 80044ac: 78bb ldrb r3, [r7, #2] + 80044ae: 429a cmp r2, r3 + 80044b0: d3a5 bcc.n 80043fe + 80044b2: e000 b.n 80044b6 if(x>=lcddev.width){return;}//超区域了 - 8003398: bf00 nop + 80044b4: bf00 nop } } } - 800339a: 3714 adds r7, #20 - 800339c: 46bd mov sp, r7 - 800339e: bd90 pop {r4, r7, pc} - 80033a0: 08007070 .word 0x08007070 - 80033a4: 080074e4 .word 0x080074e4 - 80033a8: 20000254 .word 0x20000254 + 80044b6: 3714 adds r7, #20 + 80044b8: 46bd mov sp, r7 + 80044ba: bd90 pop {r4, r7, pc} + 80044bc: 080083d0 .word 0x080083d0 + 80044c0: 08008844 .word 0x08008844 + 80044c4: 200002a8 .word 0x200002a8 -080033ac : +080044c8 : //width,height:区域大小 //size:字体大小 //*p:字符串起始地址 void LCD_ShowString(uint16_t x,uint16_t y,uint8_t *p,uint8_t size,uint16_t bg,uint16_t color) { - 80033ac: b590 push {r4, r7, lr} - 80033ae: b087 sub sp, #28 - 80033b0: af02 add r7, sp, #8 - 80033b2: 60ba str r2, [r7, #8] - 80033b4: 461a mov r2, r3 - 80033b6: 4603 mov r3, r0 - 80033b8: 81fb strh r3, [r7, #14] - 80033ba: 460b mov r3, r1 - 80033bc: 81bb strh r3, [r7, #12] - 80033be: 4613 mov r3, r2 - 80033c0: 71fb strb r3, [r7, #7] + 80044c8: b590 push {r4, r7, lr} + 80044ca: b087 sub sp, #28 + 80044cc: af02 add r7, sp, #8 + 80044ce: 60ba str r2, [r7, #8] + 80044d0: 461a mov r2, r3 + 80044d2: 4603 mov r3, r0 + 80044d4: 81fb strh r3, [r7, #14] + 80044d6: 460b mov r3, r1 + 80044d8: 81bb strh r3, [r7, #12] + 80044da: 4613 mov r3, r2 + 80044dc: 71fb strb r3, [r7, #7] while(*p!='\0') - 80033c2: e026 b.n 8003412 + 80044de: e026 b.n 800452e { if(x>=lcddev.width||*p=='\n') - 80033c4: 4b17 ldr r3, [pc, #92] ; (8003424 ) - 80033c6: 881b ldrh r3, [r3, #0] - 80033c8: 89fa ldrh r2, [r7, #14] - 80033ca: 429a cmp r2, r3 - 80033cc: d203 bcs.n 80033d6 - 80033ce: 68bb ldr r3, [r7, #8] - 80033d0: 781b ldrb r3, [r3, #0] - 80033d2: 2b0a cmp r3, #10 - 80033d4: d107 bne.n 80033e6 + 80044e0: 4b17 ldr r3, [pc, #92] ; (8004540 ) + 80044e2: 881b ldrh r3, [r3, #0] + 80044e4: 89fa ldrh r2, [r7, #14] + 80044e6: 429a cmp r2, r3 + 80044e8: d203 bcs.n 80044f2 + 80044ea: 68bb ldr r3, [r7, #8] + 80044ec: 781b ldrb r3, [r3, #0] + 80044ee: 2b0a cmp r3, #10 + 80044f0: d107 bne.n 8004502 { x=0; - 80033d6: 2300 movs r3, #0 - 80033d8: 81fb strh r3, [r7, #14] + 80044f2: 2300 movs r3, #0 + 80044f4: 81fb strh r3, [r7, #14] y+=size; - 80033da: 79fb ldrb r3, [r7, #7] - 80033dc: b29a uxth r2, r3 - 80033de: 89bb ldrh r3, [r7, #12] - 80033e0: 4413 add r3, r2 - 80033e2: 81bb strh r3, [r7, #12] - 80033e4: e012 b.n 800340c + 80044f6: 79fb ldrb r3, [r7, #7] + 80044f8: b29a uxth r2, r3 + 80044fa: 89bb ldrh r3, [r7, #12] + 80044fc: 4413 add r3, r2 + 80044fe: 81bb strh r3, [r7, #12] + 8004500: e012 b.n 8004528 }else { LCD_ShowChar(x,y,*p,size,bg,color); - 80033e6: 68bb ldr r3, [r7, #8] - 80033e8: 781a ldrb r2, [r3, #0] - 80033ea: 79fc ldrb r4, [r7, #7] - 80033ec: 89b9 ldrh r1, [r7, #12] - 80033ee: 89f8 ldrh r0, [r7, #14] - 80033f0: 8cbb ldrh r3, [r7, #36] ; 0x24 - 80033f2: 9301 str r3, [sp, #4] - 80033f4: 8c3b ldrh r3, [r7, #32] - 80033f6: 9300 str r3, [sp, #0] - 80033f8: 4623 mov r3, r4 - 80033fa: f7ff ff5b bl 80032b4 + 8004502: 68bb ldr r3, [r7, #8] + 8004504: 781a ldrb r2, [r3, #0] + 8004506: 79fc ldrb r4, [r7, #7] + 8004508: 89b9 ldrh r1, [r7, #12] + 800450a: 89f8 ldrh r0, [r7, #14] + 800450c: 8cbb ldrh r3, [r7, #36] ; 0x24 + 800450e: 9301 str r3, [sp, #4] + 8004510: 8c3b ldrh r3, [r7, #32] + 8004512: 9300 str r3, [sp, #0] + 8004514: 4623 mov r3, r4 + 8004516: f7ff ff5b bl 80043d0 x+=(size/2); - 80033fe: 79fb ldrb r3, [r7, #7] - 8003400: 085b lsrs r3, r3, #1 - 8003402: b2db uxtb r3, r3 - 8003404: b29a uxth r2, r3 - 8003406: 89fb ldrh r3, [r7, #14] - 8003408: 4413 add r3, r2 - 800340a: 81fb strh r3, [r7, #14] + 800451a: 79fb ldrb r3, [r7, #7] + 800451c: 085b lsrs r3, r3, #1 + 800451e: b2db uxtb r3, r3 + 8004520: b29a uxth r2, r3 + 8004522: 89fb ldrh r3, [r7, #14] + 8004524: 4413 add r3, r2 + 8004526: 81fb strh r3, [r7, #14] } p++; - 800340c: 68bb ldr r3, [r7, #8] - 800340e: 3301 adds r3, #1 - 8003410: 60bb str r3, [r7, #8] + 8004528: 68bb ldr r3, [r7, #8] + 800452a: 3301 adds r3, #1 + 800452c: 60bb str r3, [r7, #8] while(*p!='\0') - 8003412: 68bb ldr r3, [r7, #8] - 8003414: 781b ldrb r3, [r3, #0] - 8003416: 2b00 cmp r3, #0 - 8003418: d1d4 bne.n 80033c4 + 800452e: 68bb ldr r3, [r7, #8] + 8004530: 781b ldrb r3, [r3, #0] + 8004532: 2b00 cmp r3, #0 + 8004534: d1d4 bne.n 80044e0 } } - 800341a: bf00 nop - 800341c: bf00 nop - 800341e: 3714 adds r7, #20 - 8003420: 46bd mov sp, r7 - 8003422: bd90 pop {r4, r7, pc} - 8003424: 20000254 .word 0x20000254 + 8004536: bf00 nop + 8004538: bf00 nop + 800453a: 3714 adds r7, #20 + 800453c: 46bd mov sp, r7 + 800453e: bd90 pop {r4, r7, pc} + 8004540: 200002a8 .word 0x200002a8 -08003428 : +08004544 : +#include "eeprom.h" + +extern I2C_HandleTypeDef hi2c2; + +void IIC_SAND_DATE(uint16_t DEVICE_ADD,uint16_t IN_DEVICE_ADD,char *DATAS,uint16_t LONG) +{ + 8004544: b580 push {r7, lr} + 8004546: b088 sub sp, #32 + 8004548: af04 add r7, sp, #16 + 800454a: 60ba str r2, [r7, #8] + 800454c: 461a mov r2, r3 + 800454e: 4603 mov r3, r0 + 8004550: 81fb strh r3, [r7, #14] + 8004552: 460b mov r3, r1 + 8004554: 81bb strh r3, [r7, #12] + 8004556: 4613 mov r3, r2 + 8004558: 80fb strh r3, [r7, #6] + HAL_I2C_Mem_Write(&hi2c2,DEVICE_ADD,IN_DEVICE_ADD,I2C_MEMADD_SIZE_8BIT,DATAS,LONG,100); + 800455a: 89ba ldrh r2, [r7, #12] + 800455c: 89f9 ldrh r1, [r7, #14] + 800455e: 2364 movs r3, #100 ; 0x64 + 8004560: 9302 str r3, [sp, #8] + 8004562: 88fb ldrh r3, [r7, #6] + 8004564: 9301 str r3, [sp, #4] + 8004566: 68bb ldr r3, [r7, #8] + 8004568: 9300 str r3, [sp, #0] + 800456a: 2301 movs r3, #1 + 800456c: 4803 ldr r0, [pc, #12] ; (800457c ) + 800456e: f7fd fda5 bl 80020bc +} + 8004572: bf00 nop + 8004574: 3710 adds r7, #16 + 8004576: 46bd mov sp, r7 + 8004578: bd80 pop {r7, pc} + 800457a: bf00 nop + 800457c: 20000208 .word 0x20000208 + +08004580 : + +void IIC_READ_DATE(uint16_t DEVICE_ADD,uint16_t IN_DEVICE_ADD,char *DATAS,uint16_t LONG) +{ + 8004580: b580 push {r7, lr} + 8004582: b088 sub sp, #32 + 8004584: af04 add r7, sp, #16 + 8004586: 60ba str r2, [r7, #8] + 8004588: 461a mov r2, r3 + 800458a: 4603 mov r3, r0 + 800458c: 81fb strh r3, [r7, #14] + 800458e: 460b mov r3, r1 + 8004590: 81bb strh r3, [r7, #12] + 8004592: 4613 mov r3, r2 + 8004594: 80fb strh r3, [r7, #6] + HAL_I2C_Mem_Read(&hi2c2,DEVICE_ADD,IN_DEVICE_ADD,I2C_MEMADD_SIZE_8BIT,DATAS,LONG,100); + 8004596: 89ba ldrh r2, [r7, #12] + 8004598: 89f9 ldrh r1, [r7, #14] + 800459a: 2364 movs r3, #100 ; 0x64 + 800459c: 9302 str r3, [sp, #8] + 800459e: 88fb ldrh r3, [r7, #6] + 80045a0: 9301 str r3, [sp, #4] + 80045a2: 68bb ldr r3, [r7, #8] + 80045a4: 9300 str r3, [sp, #0] + 80045a6: 2301 movs r3, #1 + 80045a8: 4803 ldr r0, [pc, #12] ; (80045b8 ) + 80045aa: f7fd fe81 bl 80022b0 +} + 80045ae: bf00 nop + 80045b0: 3710 adds r7, #16 + 80045b2: 46bd mov sp, r7 + 80045b4: bd80 pop {r7, pc} + 80045b6: bf00 nop + 80045b8: 20000208 .word 0x20000208 + +080045bc : + +eeprom_write_buff_info eeprom_write_buffer; +void EPPROM_SLOWWRITE_INIT() +{ + 80045bc: b480 push {r7} + 80045be: af00 add r7, sp, #0 + eeprom_write_buffer.buff=NULL; + 80045c0: 4b0a ldr r3, [pc, #40] ; (80045ec ) + 80045c2: 2200 movs r2, #0 + 80045c4: 601a str r2, [r3, #0] + eeprom_write_buffer.end=NULL; + 80045c6: 4b09 ldr r3, [pc, #36] ; (80045ec ) + 80045c8: 2200 movs r2, #0 + 80045ca: 609a str r2, [r3, #8] + eeprom_write_buffer.head=NULL; + 80045cc: 4b07 ldr r3, [pc, #28] ; (80045ec ) + 80045ce: 2200 movs r2, #0 + 80045d0: 605a str r2, [r3, #4] + eeprom_write_buffer.save_timeout=5; + 80045d2: 4b06 ldr r3, [pc, #24] ; (80045ec ) + 80045d4: 2205 movs r2, #5 + 80045d6: 741a strb r2, [r3, #16] + eeprom_write_buffer.save_busy=0; + 80045d8: 4a04 ldr r2, [pc, #16] ; (80045ec ) + 80045da: 7c53 ldrb r3, [r2, #17] + 80045dc: f36f 0300 bfc r3, #0, #1 + 80045e0: 7453 strb r3, [r2, #17] +} + 80045e2: bf00 nop + 80045e4: 46bd mov sp, r7 + 80045e6: bc80 pop {r7} + 80045e8: 4770 bx lr + 80045ea: bf00 nop + 80045ec: 200002b4 .word 0x200002b4 + +080045f0 : + +void EEPROM_SLOWWRITE_SERVER() +{ + 80045f0: b580 push {r7, lr} + 80045f2: b082 sub sp, #8 + 80045f4: af00 add r7, sp, #0 + eeprom_write_buff *buff; + char data; + if(eeprom_write_buffer.save_busy) + 80045f6: 4b20 ldr r3, [pc, #128] ; (8004678 ) + 80045f8: 7c5b ldrb r3, [r3, #17] + 80045fa: f003 0301 and.w r3, r3, #1 + 80045fe: b2db uxtb r3, r3 + 8004600: 2b00 cmp r3, #0 + 8004602: d00c beq.n 800461e + { + if(HAL_GetTick()>eeprom_write_buffer.save_time) + 8004604: f7fd f940 bl 8001888 + 8004608: 4602 mov r2, r0 + 800460a: 4b1b ldr r3, [pc, #108] ; (8004678 ) + 800460c: 68db ldr r3, [r3, #12] + 800460e: 429a cmp r2, r3 + 8004610: d92e bls.n 8004670 + { + eeprom_write_buffer.save_busy=0; + 8004612: 4a19 ldr r2, [pc, #100] ; (8004678 ) + 8004614: 7c53 ldrb r3, [r2, #17] + 8004616: f36f 0300 bfc r3, #0, #1 + 800461a: 7453 strb r3, [r2, #17] + free(eeprom_write_buffer.head); + eeprom_write_buffer.head=buff; + } + + } +} + 800461c: e028 b.n 8004670 + if(eeprom_write_buffer.head!=NULL) + 800461e: 4b16 ldr r3, [pc, #88] ; (8004678 ) + 8004620: 685b ldr r3, [r3, #4] + 8004622: 2b00 cmp r3, #0 + 8004624: d024 beq.n 8004670 + eeprom_write_buffer.save_busy=1; + 8004626: 4a14 ldr r2, [pc, #80] ; (8004678 ) + 8004628: 7c53 ldrb r3, [r2, #17] + 800462a: f043 0301 orr.w r3, r3, #1 + 800462e: 7453 strb r3, [r2, #17] + eeprom_write_buffer.save_time=HAL_GetTick()+eeprom_write_buffer.save_timeout; + 8004630: f7fd f92a bl 8001888 + 8004634: 4603 mov r3, r0 + 8004636: 4a10 ldr r2, [pc, #64] ; (8004678 ) + 8004638: 7c12 ldrb r2, [r2, #16] + 800463a: 4413 add r3, r2 + 800463c: 4a0e ldr r2, [pc, #56] ; (8004678 ) + 800463e: 60d3 str r3, [r2, #12] + buff=eeprom_write_buffer.head->next; + 8004640: 4b0d ldr r3, [pc, #52] ; (8004678 ) + 8004642: 685b ldr r3, [r3, #4] + 8004644: 681b ldr r3, [r3, #0] + 8004646: 607b str r3, [r7, #4] + data=eeprom_write_buffer.head->date; + 8004648: 4b0b ldr r3, [pc, #44] ; (8004678 ) + 800464a: 685b ldr r3, [r3, #4] + 800464c: 799b ldrb r3, [r3, #6] + 800464e: 70fb strb r3, [r7, #3] + IIC_SAND_DATE(EEPROM_ADDRESS,eeprom_write_buffer.head->add,&data,1); + 8004650: 4b09 ldr r3, [pc, #36] ; (8004678 ) + 8004652: 685b ldr r3, [r3, #4] + 8004654: 8899 ldrh r1, [r3, #4] + 8004656: 1cfa adds r2, r7, #3 + 8004658: 2301 movs r3, #1 + 800465a: 20a0 movs r0, #160 ; 0xa0 + 800465c: f7ff ff72 bl 8004544 + free(eeprom_write_buffer.head); + 8004660: 4b05 ldr r3, [pc, #20] ; (8004678 ) + 8004662: 685b ldr r3, [r3, #4] + 8004664: 4618 mov r0, r3 + 8004666: f000 ff85 bl 8005574 + eeprom_write_buffer.head=buff; + 800466a: 4a03 ldr r2, [pc, #12] ; (8004678 ) + 800466c: 687b ldr r3, [r7, #4] + 800466e: 6053 str r3, [r2, #4] +} + 8004670: bf00 nop + 8004672: 3708 adds r7, #8 + 8004674: 46bd mov sp, r7 + 8004676: bd80 pop {r7, pc} + 8004678: 200002b4 .word 0x200002b4 + +0800467c : + +void EEPROM_READ_BATY(uint16_t IN_DEVICE_ADD,char *DATAS,uint16_t LONG) +{ + 800467c: b580 push {r7, lr} + 800467e: b082 sub sp, #8 + 8004680: af00 add r7, sp, #0 + 8004682: 4603 mov r3, r0 + 8004684: 6039 str r1, [r7, #0] + 8004686: 80fb strh r3, [r7, #6] + 8004688: 4613 mov r3, r2 + 800468a: 80bb strh r3, [r7, #4] + IIC_READ_DATE(EEPROM_ADDRESS,IN_DEVICE_ADD,DATAS,LONG); + 800468c: 88bb ldrh r3, [r7, #4] + 800468e: 88f9 ldrh r1, [r7, #6] + 8004690: 683a ldr r2, [r7, #0] + 8004692: 20a0 movs r0, #160 ; 0xa0 + 8004694: f7ff ff74 bl 8004580 +} + 8004698: bf00 nop + 800469a: 3708 adds r7, #8 + 800469c: 46bd mov sp, r7 + 800469e: bd80 pop {r7, pc} + +080046a0 : + +void EEPROM_WRITE_BATY(uint16_t IN_DEVICE_ADD,char *DATAS,uint16_t LONG) +{ + 80046a0: b580 push {r7, lr} + 80046a2: b086 sub sp, #24 + 80046a4: af00 add r7, sp, #0 + 80046a6: 4603 mov r3, r0 + 80046a8: 6039 str r1, [r7, #0] + 80046aa: 80fb strh r3, [r7, #6] + 80046ac: 4613 mov r3, r2 + 80046ae: 80bb strh r3, [r7, #4] + //IIC_SAND_DATE(EEPROM_ADDRESS,IN_DEVICE_ADD,DATAS,LONG); + uint16_t addoffset=0; + 80046b0: 2300 movs r3, #0 + 80046b2: 82fb strh r3, [r7, #22] + + + eeprom_write_buff *buff; + eeprom_write_buff *buff2; + while(LONG--) + 80046b4: e02d b.n 8004712 + { + buff =(eeprom_write_buff*)malloc(sizeof(eeprom_write_buff)); + 80046b6: 2008 movs r0, #8 + 80046b8: f000 ff54 bl 8005564 + 80046bc: 4603 mov r3, r0 + 80046be: 613b str r3, [r7, #16] + if(buff!=NULL) + 80046c0: 693b ldr r3, [r7, #16] + 80046c2: 2b00 cmp r3, #0 + 80046c4: d02b beq.n 800471e + { + buff->add=IN_DEVICE_ADD+addoffset; + 80046c6: 88fa ldrh r2, [r7, #6] + 80046c8: 8afb ldrh r3, [r7, #22] + 80046ca: 4413 add r3, r2 + 80046cc: b29a uxth r2, r3 + 80046ce: 693b ldr r3, [r7, #16] + 80046d0: 809a strh r2, [r3, #4] + buff->date=DATAS[addoffset]; + 80046d2: 8afb ldrh r3, [r7, #22] + 80046d4: 683a ldr r2, [r7, #0] + 80046d6: 4413 add r3, r2 + 80046d8: 781a ldrb r2, [r3, #0] + 80046da: 693b ldr r3, [r7, #16] + 80046dc: 719a strb r2, [r3, #6] + buff->next=NULL; + 80046de: 693b ldr r3, [r7, #16] + 80046e0: 2200 movs r2, #0 + 80046e2: 601a str r2, [r3, #0] + }else{return ;} + if(eeprom_write_buffer.head==NULL) + 80046e4: 4b10 ldr r3, [pc, #64] ; (8004728 ) + 80046e6: 685b ldr r3, [r3, #4] + 80046e8: 2b00 cmp r3, #0 + 80046ea: d106 bne.n 80046fa + { + eeprom_write_buffer.head=buff; + 80046ec: 4a0e ldr r2, [pc, #56] ; (8004728 ) + 80046ee: 693b ldr r3, [r7, #16] + 80046f0: 6053 str r3, [r2, #4] + eeprom_write_buffer.end=buff; + 80046f2: 4a0d ldr r2, [pc, #52] ; (8004728 ) + 80046f4: 693b ldr r3, [r7, #16] + 80046f6: 6093 str r3, [r2, #8] + 80046f8: e008 b.n 800470c + }else + { + buff2=eeprom_write_buffer.end; + 80046fa: 4b0b ldr r3, [pc, #44] ; (8004728 ) + 80046fc: 689b ldr r3, [r3, #8] + 80046fe: 60fb str r3, [r7, #12] + buff2->next=buff; + 8004700: 68fb ldr r3, [r7, #12] + 8004702: 693a ldr r2, [r7, #16] + 8004704: 601a str r2, [r3, #0] + eeprom_write_buffer.end=buff; + 8004706: 4a08 ldr r2, [pc, #32] ; (8004728 ) + 8004708: 693b ldr r3, [r7, #16] + 800470a: 6093 str r3, [r2, #8] + } + addoffset++; + 800470c: 8afb ldrh r3, [r7, #22] + 800470e: 3301 adds r3, #1 + 8004710: 82fb strh r3, [r7, #22] + while(LONG--) + 8004712: 88bb ldrh r3, [r7, #4] + 8004714: 1e5a subs r2, r3, #1 + 8004716: 80ba strh r2, [r7, #4] + 8004718: 2b00 cmp r3, #0 + 800471a: d1cc bne.n 80046b6 + 800471c: e000 b.n 8004720 + }else{return ;} + 800471e: bf00 nop + } + +} + 8004720: 3718 adds r7, #24 + 8004722: 46bd mov sp, r7 + 8004724: bd80 pop {r7, pc} + 8004726: bf00 nop + 8004728: 200002b4 .word 0x200002b4 + +0800472c : //SPI写数据 //向触摸屏IC写入1byte数据 //num:要写入的数据 void TP_Write_Byte(char num) { - 8003428: b580 push {r7, lr} - 800342a: b084 sub sp, #16 - 800342c: af00 add r7, sp, #0 - 800342e: 4603 mov r3, r0 - 8003430: 71fb strb r3, [r7, #7] + 800472c: b580 push {r7, lr} + 800472e: b084 sub sp, #16 + 8004730: af00 add r7, sp, #0 + 8004732: 4603 mov r3, r0 + 8004734: 71fb strb r3, [r7, #7] for(uint8_t count=0;count<8;count++) - 8003432: 2300 movs r3, #0 - 8003434: 73fb strb r3, [r7, #15] - 8003436: e020 b.n 800347a + 8004736: 2300 movs r3, #0 + 8004738: 73fb strb r3, [r7, #15] + 800473a: e020 b.n 800477e { if(num&0x80){TDIN(1);} - 8003438: f997 3007 ldrsb.w r3, [r7, #7] - 800343c: 2b00 cmp r3, #0 - 800343e: da06 bge.n 800344e - 8003440: 2201 movs r2, #1 - 8003442: f44f 7100 mov.w r1, #512 ; 0x200 - 8003446: 4811 ldr r0, [pc, #68] ; (800348c ) - 8003448: f7fe fc6b bl 8001d22 - 800344c: e005 b.n 800345a + 800473c: f997 3007 ldrsb.w r3, [r7, #7] + 8004740: 2b00 cmp r3, #0 + 8004742: da06 bge.n 8004752 + 8004744: 2201 movs r2, #1 + 8004746: f44f 7100 mov.w r1, #512 ; 0x200 + 800474a: 4811 ldr r0, [pc, #68] ; (8004790 ) + 800474c: f7fd fb59 bl 8001e02 + 8004750: e005 b.n 800475e else {TDIN(0);} - 800344e: 2200 movs r2, #0 - 8003450: f44f 7100 mov.w r1, #512 ; 0x200 - 8003454: 480d ldr r0, [pc, #52] ; (800348c ) - 8003456: f7fe fc64 bl 8001d22 + 8004752: 2200 movs r2, #0 + 8004754: f44f 7100 mov.w r1, #512 ; 0x200 + 8004758: 480d ldr r0, [pc, #52] ; (8004790 ) + 800475a: f7fd fb52 bl 8001e02 num<<=1; - 800345a: 79fb ldrb r3, [r7, #7] - 800345c: 005b lsls r3, r3, #1 - 800345e: 71fb strb r3, [r7, #7] + 800475e: 79fb ldrb r3, [r7, #7] + 8004760: 005b lsls r3, r3, #1 + 8004762: 71fb strb r3, [r7, #7] TCLK(0); - 8003460: 2200 movs r2, #0 - 8003462: 2102 movs r1, #2 - 8003464: 480a ldr r0, [pc, #40] ; (8003490 ) - 8003466: f7fe fc5c bl 8001d22 + 8004764: 2200 movs r2, #0 + 8004766: 2102 movs r1, #2 + 8004768: 480a ldr r0, [pc, #40] ; (8004794 ) + 800476a: f7fd fb4a bl 8001e02 TCLK(1); //上升沿有效 - 800346a: 2201 movs r2, #1 - 800346c: 2102 movs r1, #2 - 800346e: 4808 ldr r0, [pc, #32] ; (8003490 ) - 8003470: f7fe fc57 bl 8001d22 + 800476e: 2201 movs r2, #1 + 8004770: 2102 movs r1, #2 + 8004772: 4808 ldr r0, [pc, #32] ; (8004794 ) + 8004774: f7fd fb45 bl 8001e02 for(uint8_t count=0;count<8;count++) - 8003474: 7bfb ldrb r3, [r7, #15] - 8003476: 3301 adds r3, #1 - 8003478: 73fb strb r3, [r7, #15] - 800347a: 7bfb ldrb r3, [r7, #15] - 800347c: 2b07 cmp r3, #7 - 800347e: d9db bls.n 8003438 + 8004778: 7bfb ldrb r3, [r7, #15] + 800477a: 3301 adds r3, #1 + 800477c: 73fb strb r3, [r7, #15] + 800477e: 7bfb ldrb r3, [r7, #15] + 8004780: 2b07 cmp r3, #7 + 8004782: d9db bls.n 800473c } } - 8003480: bf00 nop - 8003482: bf00 nop - 8003484: 3710 adds r7, #16 - 8003486: 46bd mov sp, r7 - 8003488: bd80 pop {r7, pc} - 800348a: bf00 nop - 800348c: 40011c00 .word 0x40011c00 - 8003490: 40010c00 .word 0x40010c00 + 8004784: bf00 nop + 8004786: bf00 nop + 8004788: 3710 adds r7, #16 + 800478a: 46bd mov sp, r7 + 800478c: bd80 pop {r7, pc} + 800478e: bf00 nop + 8004790: 40011c00 .word 0x40011c00 + 8004794: 40010c00 .word 0x40010c00 -08003494 : +08004798 : //SPI读数据 //从触摸屏IC读取adc值 //CMD:指令 //返回值:读到的数据 uint16_t TP_Read_AD(char CMD) { - 8003494: b580 push {r7, lr} - 8003496: b084 sub sp, #16 - 8003498: af00 add r7, sp, #0 - 800349a: 4603 mov r3, r0 - 800349c: 71fb strb r3, [r7, #7] + 8004798: b580 push {r7, lr} + 800479a: b084 sub sp, #16 + 800479c: af00 add r7, sp, #0 + 800479e: 4603 mov r3, r0 + 80047a0: 71fb strb r3, [r7, #7] uint16_t Num=0; - 800349e: 2300 movs r3, #0 - 80034a0: 81fb strh r3, [r7, #14] + 80047a2: 2300 movs r3, #0 + 80047a4: 81fb strh r3, [r7, #14] TCLK(0); //先拉低时钟 - 80034a2: 2200 movs r2, #0 - 80034a4: 2102 movs r1, #2 - 80034a6: 482b ldr r0, [pc, #172] ; (8003554 ) - 80034a8: f7fe fc3b bl 8001d22 + 80047a6: 2200 movs r2, #0 + 80047a8: 2102 movs r1, #2 + 80047aa: 482b ldr r0, [pc, #172] ; (8004858 ) + 80047ac: f7fd fb29 bl 8001e02 TDIN(0); //拉低数据线 - 80034ac: 2200 movs r2, #0 - 80034ae: f44f 7100 mov.w r1, #512 ; 0x200 - 80034b2: 4829 ldr r0, [pc, #164] ; (8003558 ) - 80034b4: f7fe fc35 bl 8001d22 + 80047b0: 2200 movs r2, #0 + 80047b2: f44f 7100 mov.w r1, #512 ; 0x200 + 80047b6: 4829 ldr r0, [pc, #164] ; (800485c ) + 80047b8: f7fd fb23 bl 8001e02 TCS(0); //选中触摸屏IC - 80034b8: 2200 movs r2, #0 - 80034ba: 2104 movs r1, #4 - 80034bc: 4825 ldr r0, [pc, #148] ; (8003554 ) - 80034be: f7fe fc30 bl 8001d22 + 80047bc: 2200 movs r2, #0 + 80047be: 2104 movs r1, #4 + 80047c0: 4825 ldr r0, [pc, #148] ; (8004858 ) + 80047c2: f7fd fb1e bl 8001e02 TP_Write_Byte(CMD);//发送命令字 - 80034c2: 79fb ldrb r3, [r7, #7] - 80034c4: 4618 mov r0, r3 - 80034c6: f7ff ffaf bl 8003428 + 80047c6: 79fb ldrb r3, [r7, #7] + 80047c8: 4618 mov r0, r3 + 80047ca: f7ff ffaf bl 800472c HAL_GetTick(); - 80034ca: f7fe f96d bl 80017a8 + 80047ce: f7fd f85b bl 8001888 HAL_GetTick(); - 80034ce: f7fe f96b bl 80017a8 + 80047d2: f7fd f859 bl 8001888 HAL_GetTick(); - 80034d2: f7fe f969 bl 80017a8 + 80047d6: f7fd f857 bl 8001888 HAL_GetTick(); - 80034d6: f7fe f967 bl 80017a8 + 80047da: f7fd f855 bl 8001888 HAL_GetTick(); - 80034da: f7fe f965 bl 80017a8 + 80047de: f7fd f853 bl 8001888 HAL_GetTick(); - 80034de: f7fe f963 bl 80017a8 + 80047e2: f7fd f851 bl 8001888 TCLK(1); //给1个时钟,清除BUSY - 80034e2: 2201 movs r2, #1 - 80034e4: 2102 movs r1, #2 - 80034e6: 481b ldr r0, [pc, #108] ; (8003554 ) - 80034e8: f7fe fc1b bl 8001d22 + 80047e6: 2201 movs r2, #1 + 80047e8: 2102 movs r1, #2 + 80047ea: 481b ldr r0, [pc, #108] ; (8004858 ) + 80047ec: f7fd fb09 bl 8001e02 TCLK(0); - 80034ec: 2200 movs r2, #0 - 80034ee: 2102 movs r1, #2 - 80034f0: 4818 ldr r0, [pc, #96] ; (8003554 ) - 80034f2: f7fe fc16 bl 8001d22 + 80047f0: 2200 movs r2, #0 + 80047f2: 2102 movs r1, #2 + 80047f4: 4818 ldr r0, [pc, #96] ; (8004858 ) + 80047f6: f7fd fb04 bl 8001e02 for(uint8_t count=0;count<16;count++)//读出16位数据,只有高12位有效 - 80034f6: 2300 movs r3, #0 - 80034f8: 737b strb r3, [r7, #13] - 80034fa: e01a b.n 8003532 + 80047fa: 2300 movs r3, #0 + 80047fc: 737b strb r3, [r7, #13] + 80047fe: e01a b.n 8004836 { Num<<=1; - 80034fc: 89fb ldrh r3, [r7, #14] - 80034fe: 005b lsls r3, r3, #1 - 8003500: 81fb strh r3, [r7, #14] + 8004800: 89fb ldrh r3, [r7, #14] + 8004802: 005b lsls r3, r3, #1 + 8004804: 81fb strh r3, [r7, #14] TCLK(0); //下降沿有效 - 8003502: 2200 movs r2, #0 - 8003504: 2102 movs r1, #2 - 8003506: 4813 ldr r0, [pc, #76] ; (8003554 ) - 8003508: f7fe fc0b bl 8001d22 + 8004806: 2200 movs r2, #0 + 8004808: 2102 movs r1, #2 + 800480a: 4813 ldr r0, [pc, #76] ; (8004858 ) + 800480c: f7fd faf9 bl 8001e02 TCLK(1);; - 800350c: 2201 movs r2, #1 - 800350e: 2102 movs r1, #2 - 8003510: 4810 ldr r0, [pc, #64] ; (8003554 ) - 8003512: f7fe fc06 bl 8001d22 + 8004810: 2201 movs r2, #1 + 8004812: 2102 movs r1, #2 + 8004814: 4810 ldr r0, [pc, #64] ; (8004858 ) + 8004816: f7fd faf4 bl 8001e02 if(TDOUT){Num++;} - 8003516: f44f 7180 mov.w r1, #256 ; 0x100 - 800351a: 480f ldr r0, [pc, #60] ; (8003558 ) - 800351c: f7fe fbea bl 8001cf4 - 8003520: 4603 mov r3, r0 - 8003522: 2b00 cmp r3, #0 - 8003524: d002 beq.n 800352c - 8003526: 89fb ldrh r3, [r7, #14] - 8003528: 3301 adds r3, #1 - 800352a: 81fb strh r3, [r7, #14] + 800481a: f44f 7180 mov.w r1, #256 ; 0x100 + 800481e: 480f ldr r0, [pc, #60] ; (800485c ) + 8004820: f7fd fad8 bl 8001dd4 + 8004824: 4603 mov r3, r0 + 8004826: 2b00 cmp r3, #0 + 8004828: d002 beq.n 8004830 + 800482a: 89fb ldrh r3, [r7, #14] + 800482c: 3301 adds r3, #1 + 800482e: 81fb strh r3, [r7, #14] for(uint8_t count=0;count<16;count++)//读出16位数据,只有高12位有效 - 800352c: 7b7b ldrb r3, [r7, #13] - 800352e: 3301 adds r3, #1 - 8003530: 737b strb r3, [r7, #13] - 8003532: 7b7b ldrb r3, [r7, #13] - 8003534: 2b0f cmp r3, #15 - 8003536: d9e1 bls.n 80034fc + 8004830: 7b7b ldrb r3, [r7, #13] + 8004832: 3301 adds r3, #1 + 8004834: 737b strb r3, [r7, #13] + 8004836: 7b7b ldrb r3, [r7, #13] + 8004838: 2b0f cmp r3, #15 + 800483a: d9e1 bls.n 8004800 } Num>>=4; //只有高12位有效. - 8003538: 89fb ldrh r3, [r7, #14] - 800353a: 091b lsrs r3, r3, #4 - 800353c: 81fb strh r3, [r7, #14] + 800483c: 89fb ldrh r3, [r7, #14] + 800483e: 091b lsrs r3, r3, #4 + 8004840: 81fb strh r3, [r7, #14] TCS(1); //释放片选 - 800353e: 2201 movs r2, #1 - 8003540: 2104 movs r1, #4 - 8003542: 4804 ldr r0, [pc, #16] ; (8003554 ) - 8003544: f7fe fbed bl 8001d22 + 8004842: 2201 movs r2, #1 + 8004844: 2104 movs r1, #4 + 8004846: 4804 ldr r0, [pc, #16] ; (8004858 ) + 8004848: f7fd fadb bl 8001e02 return(Num); - 8003548: 89fb ldrh r3, [r7, #14] + 800484c: 89fb ldrh r3, [r7, #14] } - 800354a: 4618 mov r0, r3 - 800354c: 3710 adds r7, #16 - 800354e: 46bd mov sp, r7 - 8003550: bd80 pop {r7, pc} - 8003552: bf00 nop - 8003554: 40010c00 .word 0x40010c00 - 8003558: 40011c00 .word 0x40011c00 + 800484e: 4618 mov r0, r3 + 8004850: 3710 adds r7, #16 + 8004852: 46bd mov sp, r7 + 8004854: bd80 pop {r7, pc} + 8004856: bf00 nop + 8004858: 40010c00 .word 0x40010c00 + 800485c: 40011c00 .word 0x40011c00 -0800355c : +08004860 : //xy:指令(CMD_RDX/CMD_RDY) //返回值:读到的数据 #define READ_TIMES 5 //读取次数 #define LOST_VAL 1 //丢弃值 uint16_t TP_Read_XOY(uint8_t xy) { - 800355c: b590 push {r4, r7, lr} - 800355e: b089 sub sp, #36 ; 0x24 - 8003560: af00 add r7, sp, #0 - 8003562: 4603 mov r3, r0 - 8003564: 71fb strb r3, [r7, #7] + 8004860: b590 push {r4, r7, lr} + 8004862: b089 sub sp, #36 ; 0x24 + 8004864: af00 add r7, sp, #0 + 8004866: 4603 mov r3, r0 + 8004868: 71fb strb r3, [r7, #7] uint16_t i, j; uint16_t buf[READ_TIMES]; uint16_t sum=0; - 8003566: 2300 movs r3, #0 - 8003568: 837b strh r3, [r7, #26] + 800486a: 2300 movs r3, #0 + 800486c: 837b strh r3, [r7, #26] uint16_t temp; for(i=0;i - 8003570: 8bfc ldrh r4, [r7, #30] - 8003572: 79fb ldrb r3, [r7, #7] - 8003574: 4618 mov r0, r3 - 8003576: f7ff ff8d bl 8003494 - 800357a: 4603 mov r3, r0 - 800357c: 461a mov r2, r3 - 800357e: 0063 lsls r3, r4, #1 - 8003580: f107 0120 add.w r1, r7, #32 - 8003584: 440b add r3, r1 - 8003586: f823 2c14 strh.w r2, [r3, #-20] - 800358a: 8bfb ldrh r3, [r7, #30] - 800358c: 3301 adds r3, #1 - 800358e: 83fb strh r3, [r7, #30] - 8003590: 8bfb ldrh r3, [r7, #30] - 8003592: 2b04 cmp r3, #4 - 8003594: d9ec bls.n 8003570 + 800486e: 2300 movs r3, #0 + 8004870: 83fb strh r3, [r7, #30] + 8004872: e00f b.n 8004894 + 8004874: 8bfc ldrh r4, [r7, #30] + 8004876: 79fb ldrb r3, [r7, #7] + 8004878: 4618 mov r0, r3 + 800487a: f7ff ff8d bl 8004798 + 800487e: 4603 mov r3, r0 + 8004880: 461a mov r2, r3 + 8004882: 0063 lsls r3, r4, #1 + 8004884: f107 0120 add.w r1, r7, #32 + 8004888: 440b add r3, r1 + 800488a: f823 2c14 strh.w r2, [r3, #-20] + 800488e: 8bfb ldrh r3, [r7, #30] + 8004890: 3301 adds r3, #1 + 8004892: 83fb strh r3, [r7, #30] + 8004894: 8bfb ldrh r3, [r7, #30] + 8004896: 2b04 cmp r3, #4 + 8004898: d9ec bls.n 8004874 for(i=0;i + 800489a: 2300 movs r3, #0 + 800489c: 83fb strh r3, [r7, #30] + 800489e: e03b b.n 8004918 { for(j=i+1;j + 80048a0: 8bfb ldrh r3, [r7, #30] + 80048a2: 3301 adds r3, #1 + 80048a4: 83bb strh r3, [r7, #28] + 80048a6: e031 b.n 800490c { if(buf[i]>buf[j])//升序排列 - 80035a4: 8bfb ldrh r3, [r7, #30] - 80035a6: 005b lsls r3, r3, #1 - 80035a8: f107 0220 add.w r2, r7, #32 - 80035ac: 4413 add r3, r2 - 80035ae: f833 2c14 ldrh.w r2, [r3, #-20] - 80035b2: 8bbb ldrh r3, [r7, #28] - 80035b4: 005b lsls r3, r3, #1 - 80035b6: f107 0120 add.w r1, r7, #32 - 80035ba: 440b add r3, r1 - 80035bc: f833 3c14 ldrh.w r3, [r3, #-20] - 80035c0: 429a cmp r2, r3 - 80035c2: d91e bls.n 8003602 + 80048a8: 8bfb ldrh r3, [r7, #30] + 80048aa: 005b lsls r3, r3, #1 + 80048ac: f107 0220 add.w r2, r7, #32 + 80048b0: 4413 add r3, r2 + 80048b2: f833 2c14 ldrh.w r2, [r3, #-20] + 80048b6: 8bbb ldrh r3, [r7, #28] + 80048b8: 005b lsls r3, r3, #1 + 80048ba: f107 0120 add.w r1, r7, #32 + 80048be: 440b add r3, r1 + 80048c0: f833 3c14 ldrh.w r3, [r3, #-20] + 80048c4: 429a cmp r2, r3 + 80048c6: d91e bls.n 8004906 { temp=buf[i]; - 80035c4: 8bfb ldrh r3, [r7, #30] - 80035c6: 005b lsls r3, r3, #1 - 80035c8: f107 0220 add.w r2, r7, #32 - 80035cc: 4413 add r3, r2 - 80035ce: f833 3c14 ldrh.w r3, [r3, #-20] - 80035d2: 833b strh r3, [r7, #24] + 80048c8: 8bfb ldrh r3, [r7, #30] + 80048ca: 005b lsls r3, r3, #1 + 80048cc: f107 0220 add.w r2, r7, #32 + 80048d0: 4413 add r3, r2 + 80048d2: f833 3c14 ldrh.w r3, [r3, #-20] + 80048d6: 833b strh r3, [r7, #24] buf[i]=buf[j]; - 80035d4: 8bbb ldrh r3, [r7, #28] - 80035d6: 8bfa ldrh r2, [r7, #30] - 80035d8: 005b lsls r3, r3, #1 - 80035da: f107 0120 add.w r1, r7, #32 - 80035de: 440b add r3, r1 - 80035e0: f833 1c14 ldrh.w r1, [r3, #-20] - 80035e4: 0053 lsls r3, r2, #1 - 80035e6: f107 0220 add.w r2, r7, #32 - 80035ea: 4413 add r3, r2 - 80035ec: 460a mov r2, r1 - 80035ee: f823 2c14 strh.w r2, [r3, #-20] + 80048d8: 8bbb ldrh r3, [r7, #28] + 80048da: 8bfa ldrh r2, [r7, #30] + 80048dc: 005b lsls r3, r3, #1 + 80048de: f107 0120 add.w r1, r7, #32 + 80048e2: 440b add r3, r1 + 80048e4: f833 1c14 ldrh.w r1, [r3, #-20] + 80048e8: 0053 lsls r3, r2, #1 + 80048ea: f107 0220 add.w r2, r7, #32 + 80048ee: 4413 add r3, r2 + 80048f0: 460a mov r2, r1 + 80048f2: f823 2c14 strh.w r2, [r3, #-20] buf[j]=temp; - 80035f2: 8bbb ldrh r3, [r7, #28] - 80035f4: 005b lsls r3, r3, #1 - 80035f6: f107 0220 add.w r2, r7, #32 - 80035fa: 4413 add r3, r2 - 80035fc: 8b3a ldrh r2, [r7, #24] - 80035fe: f823 2c14 strh.w r2, [r3, #-20] + 80048f6: 8bbb ldrh r3, [r7, #28] + 80048f8: 005b lsls r3, r3, #1 + 80048fa: f107 0220 add.w r2, r7, #32 + 80048fe: 4413 add r3, r2 + 8004900: 8b3a ldrh r2, [r7, #24] + 8004902: f823 2c14 strh.w r2, [r3, #-20] for(j=i+1;j + 8004906: 8bbb ldrh r3, [r7, #28] + 8004908: 3301 adds r3, #1 + 800490a: 83bb strh r3, [r7, #28] + 800490c: 8bbb ldrh r3, [r7, #28] + 800490e: 2b04 cmp r3, #4 + 8004910: d9ca bls.n 80048a8 for(i=0;i + 8004912: 8bfb ldrh r3, [r7, #30] + 8004914: 3301 adds r3, #1 + 8004916: 83fb strh r3, [r7, #30] + 8004918: 8bfb ldrh r3, [r7, #30] + 800491a: 2b03 cmp r3, #3 + 800491c: d9c0 bls.n 80048a0 } } } sum=0; - 800361a: 2300 movs r3, #0 - 800361c: 837b strh r3, [r7, #26] + 800491e: 2300 movs r3, #0 + 8004920: 837b strh r3, [r7, #26] for(i=LOST_VAL;i - 8003624: 8bfb ldrh r3, [r7, #30] - 8003626: 005b lsls r3, r3, #1 - 8003628: f107 0220 add.w r2, r7, #32 - 800362c: 4413 add r3, r2 - 800362e: f833 2c14 ldrh.w r2, [r3, #-20] - 8003632: 8b7b ldrh r3, [r7, #26] - 8003634: 4413 add r3, r2 - 8003636: 837b strh r3, [r7, #26] - 8003638: 8bfb ldrh r3, [r7, #30] - 800363a: 3301 adds r3, #1 - 800363c: 83fb strh r3, [r7, #30] - 800363e: 8bfb ldrh r3, [r7, #30] - 8003640: 2b03 cmp r3, #3 - 8003642: d9ef bls.n 8003624 + 8004922: 2301 movs r3, #1 + 8004924: 83fb strh r3, [r7, #30] + 8004926: e00c b.n 8004942 + 8004928: 8bfb ldrh r3, [r7, #30] + 800492a: 005b lsls r3, r3, #1 + 800492c: f107 0220 add.w r2, r7, #32 + 8004930: 4413 add r3, r2 + 8004932: f833 2c14 ldrh.w r2, [r3, #-20] + 8004936: 8b7b ldrh r3, [r7, #26] + 8004938: 4413 add r3, r2 + 800493a: 837b strh r3, [r7, #26] + 800493c: 8bfb ldrh r3, [r7, #30] + 800493e: 3301 adds r3, #1 + 8004940: 83fb strh r3, [r7, #30] + 8004942: 8bfb ldrh r3, [r7, #30] + 8004944: 2b03 cmp r3, #3 + 8004946: d9ef bls.n 8004928 temp=sum/(READ_TIMES-2*LOST_VAL); - 8003644: 8b7b ldrh r3, [r7, #26] - 8003646: 4a05 ldr r2, [pc, #20] ; (800365c ) - 8003648: fba2 2303 umull r2, r3, r2, r3 - 800364c: 085b lsrs r3, r3, #1 - 800364e: 833b strh r3, [r7, #24] + 8004948: 8b7b ldrh r3, [r7, #26] + 800494a: 4a05 ldr r2, [pc, #20] ; (8004960 ) + 800494c: fba2 2303 umull r2, r3, r2, r3 + 8004950: 085b lsrs r3, r3, #1 + 8004952: 833b strh r3, [r7, #24] return temp; - 8003650: 8b3b ldrh r3, [r7, #24] + 8004954: 8b3b ldrh r3, [r7, #24] } - 8003652: 4618 mov r0, r3 - 8003654: 3724 adds r7, #36 ; 0x24 - 8003656: 46bd mov sp, r7 - 8003658: bd90 pop {r4, r7, pc} - 800365a: bf00 nop - 800365c: aaaaaaab .word 0xaaaaaaab + 8004956: 4618 mov r0, r3 + 8004958: 3724 adds r7, #36 ; 0x24 + 800495a: 46bd mov sp, r7 + 800495c: bd90 pop {r4, r7, pc} + 800495e: bf00 nop + 8004960: aaaaaaab .word 0xaaaaaaab -08003660 : +08004964 : //读取x,y坐标 //x,y:读取到的坐标ADC值 void TP_Read_XY_ADC(int16_t *x,int16_t *y) { - 8003660: b580 push {r7, lr} - 8003662: b084 sub sp, #16 - 8003664: af00 add r7, sp, #0 - 8003666: 6078 str r0, [r7, #4] - 8003668: 6039 str r1, [r7, #0] + 8004964: b580 push {r7, lr} + 8004966: b084 sub sp, #16 + 8004968: af00 add r7, sp, #0 + 800496a: 6078 str r0, [r7, #4] + 800496c: 6039 str r1, [r7, #0] int16_t xtemp,ytemp; xtemp=TP_Read_XOY(CMD_RDX); - 800366a: 2090 movs r0, #144 ; 0x90 - 800366c: f7ff ff76 bl 800355c - 8003670: 4603 mov r3, r0 - 8003672: 81fb strh r3, [r7, #14] + 800496e: 2090 movs r0, #144 ; 0x90 + 8004970: f7ff ff76 bl 8004860 + 8004974: 4603 mov r3, r0 + 8004976: 81fb strh r3, [r7, #14] ytemp=TP_Read_XOY(CMD_RDY); - 8003674: 20d0 movs r0, #208 ; 0xd0 - 8003676: f7ff ff71 bl 800355c - 800367a: 4603 mov r3, r0 - 800367c: 81bb strh r3, [r7, #12] + 8004978: 20d0 movs r0, #208 ; 0xd0 + 800497a: f7ff ff71 bl 8004860 + 800497e: 4603 mov r3, r0 + 8004980: 81bb strh r3, [r7, #12] *x=xtemp; - 800367e: 687b ldr r3, [r7, #4] - 8003680: 89fa ldrh r2, [r7, #14] - 8003682: 801a strh r2, [r3, #0] + 8004982: 687b ldr r3, [r7, #4] + 8004984: 89fa ldrh r2, [r7, #14] + 8004986: 801a strh r2, [r3, #0] *y=ytemp; - 8003684: 683b ldr r3, [r7, #0] - 8003686: 89ba ldrh r2, [r7, #12] - 8003688: 801a strh r2, [r3, #0] + 8004988: 683b ldr r3, [r7, #0] + 800498a: 89ba ldrh r2, [r7, #12] + 800498c: 801a strh r2, [r3, #0] } - 800368a: bf00 nop - 800368c: 3710 adds r7, #16 - 800368e: 46bd mov sp, r7 - 8003690: bd80 pop {r7, pc} + 800498e: bf00 nop + 8004990: 3710 adds r7, #16 + 8004992: 46bd mov sp, r7 + 8004994: bd80 pop {r7, pc} -08003692 : +08004996 : //该函数能大大提高准确度 //x,y:读取到的坐标值 //返回值:0,失败;1,成功。 #define ERR_RANGE 10 //误差范围 uint8_t TP_Read_XY2(int16_t *x,int16_t *y) { - 8003692: b580 push {r7, lr} - 8003694: b084 sub sp, #16 - 8003696: af00 add r7, sp, #0 - 8003698: 6078 str r0, [r7, #4] - 800369a: 6039 str r1, [r7, #0] + 8004996: b580 push {r7, lr} + 8004998: b084 sub sp, #16 + 800499a: af00 add r7, sp, #0 + 800499c: 6078 str r0, [r7, #4] + 800499e: 6039 str r1, [r7, #0] int16_t x1,y1; int16_t x2,y2; TP_Read_XY_ADC(&x1,&y1); - 800369c: f107 020c add.w r2, r7, #12 - 80036a0: f107 030e add.w r3, r7, #14 - 80036a4: 4611 mov r1, r2 - 80036a6: 4618 mov r0, r3 - 80036a8: f7ff ffda bl 8003660 + 80049a0: f107 020c add.w r2, r7, #12 + 80049a4: f107 030e add.w r3, r7, #14 + 80049a8: 4611 mov r1, r2 + 80049aa: 4618 mov r0, r3 + 80049ac: f7ff ffda bl 8004964 TP_Read_XY_ADC(&x2,&y2); - 80036ac: f107 0208 add.w r2, r7, #8 - 80036b0: f107 030a add.w r3, r7, #10 - 80036b4: 4611 mov r1, r2 - 80036b6: 4618 mov r0, r3 - 80036b8: f7ff ffd2 bl 8003660 + 80049b0: f107 0208 add.w r2, r7, #8 + 80049b4: f107 030a add.w r3, r7, #10 + 80049b8: 4611 mov r1, r2 + 80049ba: 4618 mov r0, r3 + 80049bc: f7ff ffd2 bl 8004964 if(((x2<=x1&&x1 - 80036c8: f9b7 300a ldrsh.w r3, [r7, #10] - 80036cc: 3309 adds r3, #9 - 80036ce: f9b7 200e ldrsh.w r2, [r7, #14] - 80036d2: 4293 cmp r3, r2 - 80036d4: da0c bge.n 80036f0 - 80036d6: f9b7 200e ldrsh.w r2, [r7, #14] - 80036da: f9b7 300a ldrsh.w r3, [r7, #10] - 80036de: 429a cmp r2, r3 - 80036e0: dc3a bgt.n 8003758 - 80036e2: f9b7 300e ldrsh.w r3, [r7, #14] - 80036e6: 3309 adds r3, #9 - 80036e8: f9b7 200a ldrsh.w r2, [r7, #10] - 80036ec: 4293 cmp r3, r2 - 80036ee: db33 blt.n 8003758 + 80049c0: f9b7 200a ldrsh.w r2, [r7, #10] + 80049c4: f9b7 300e ldrsh.w r3, [r7, #14] + 80049c8: 429a cmp r2, r3 + 80049ca: dc06 bgt.n 80049da + 80049cc: f9b7 300a ldrsh.w r3, [r7, #10] + 80049d0: 3309 adds r3, #9 + 80049d2: f9b7 200e ldrsh.w r2, [r7, #14] + 80049d6: 4293 cmp r3, r2 + 80049d8: da0c bge.n 80049f4 + 80049da: f9b7 200e ldrsh.w r2, [r7, #14] + 80049de: f9b7 300a ldrsh.w r3, [r7, #10] + 80049e2: 429a cmp r2, r3 + 80049e4: dc3a bgt.n 8004a5c + 80049e6: f9b7 300e ldrsh.w r3, [r7, #14] + 80049ea: 3309 adds r3, #9 + 80049ec: f9b7 200a ldrsh.w r2, [r7, #10] + 80049f0: 4293 cmp r3, r2 + 80049f2: db33 blt.n 8004a5c &&((y2<=y1&&y1 - 80036fc: f9b7 3008 ldrsh.w r3, [r7, #8] - 8003700: 3309 adds r3, #9 - 8003702: f9b7 200c ldrsh.w r2, [r7, #12] - 8003706: 4293 cmp r3, r2 - 8003708: da0c bge.n 8003724 - 800370a: f9b7 200c ldrsh.w r2, [r7, #12] - 800370e: f9b7 3008 ldrsh.w r3, [r7, #8] - 8003712: 429a cmp r2, r3 - 8003714: dc20 bgt.n 8003758 - 8003716: f9b7 300c ldrsh.w r3, [r7, #12] - 800371a: 3309 adds r3, #9 - 800371c: f9b7 2008 ldrsh.w r2, [r7, #8] - 8003720: 4293 cmp r3, r2 - 8003722: db19 blt.n 8003758 + 80049f4: f9b7 2008 ldrsh.w r2, [r7, #8] + 80049f8: f9b7 300c ldrsh.w r3, [r7, #12] + 80049fc: 429a cmp r2, r3 + 80049fe: dc06 bgt.n 8004a0e + 8004a00: f9b7 3008 ldrsh.w r3, [r7, #8] + 8004a04: 3309 adds r3, #9 + 8004a06: f9b7 200c ldrsh.w r2, [r7, #12] + 8004a0a: 4293 cmp r3, r2 + 8004a0c: da0c bge.n 8004a28 + 8004a0e: f9b7 200c ldrsh.w r2, [r7, #12] + 8004a12: f9b7 3008 ldrsh.w r3, [r7, #8] + 8004a16: 429a cmp r2, r3 + 8004a18: dc20 bgt.n 8004a5c + 8004a1a: f9b7 300c ldrsh.w r3, [r7, #12] + 8004a1e: 3309 adds r3, #9 + 8004a20: f9b7 2008 ldrsh.w r2, [r7, #8] + 8004a24: 4293 cmp r3, r2 + 8004a26: db19 blt.n 8004a5c { *x=(x1+x2)/2; - 8003724: f9b7 300e ldrsh.w r3, [r7, #14] - 8003728: 461a mov r2, r3 - 800372a: f9b7 300a ldrsh.w r3, [r7, #10] - 800372e: 4413 add r3, r2 - 8003730: 0fda lsrs r2, r3, #31 - 8003732: 4413 add r3, r2 - 8003734: 105b asrs r3, r3, #1 - 8003736: b21a sxth r2, r3 - 8003738: 687b ldr r3, [r7, #4] - 800373a: 801a strh r2, [r3, #0] + 8004a28: f9b7 300e ldrsh.w r3, [r7, #14] + 8004a2c: 461a mov r2, r3 + 8004a2e: f9b7 300a ldrsh.w r3, [r7, #10] + 8004a32: 4413 add r3, r2 + 8004a34: 0fda lsrs r2, r3, #31 + 8004a36: 4413 add r3, r2 + 8004a38: 105b asrs r3, r3, #1 + 8004a3a: b21a sxth r2, r3 + 8004a3c: 687b ldr r3, [r7, #4] + 8004a3e: 801a strh r2, [r3, #0] *y=(y1+y2)/2; - 800373c: f9b7 300c ldrsh.w r3, [r7, #12] - 8003740: 461a mov r2, r3 - 8003742: f9b7 3008 ldrsh.w r3, [r7, #8] - 8003746: 4413 add r3, r2 - 8003748: 0fda lsrs r2, r3, #31 - 800374a: 4413 add r3, r2 - 800374c: 105b asrs r3, r3, #1 - 800374e: b21a sxth r2, r3 - 8003750: 683b ldr r3, [r7, #0] - 8003752: 801a strh r2, [r3, #0] + 8004a40: f9b7 300c ldrsh.w r3, [r7, #12] + 8004a44: 461a mov r2, r3 + 8004a46: f9b7 3008 ldrsh.w r3, [r7, #8] + 8004a4a: 4413 add r3, r2 + 8004a4c: 0fda lsrs r2, r3, #31 + 8004a4e: 4413 add r3, r2 + 8004a50: 105b asrs r3, r3, #1 + 8004a52: b21a sxth r2, r3 + 8004a54: 683b ldr r3, [r7, #0] + 8004a56: 801a strh r2, [r3, #0] return 1; - 8003754: 2301 movs r3, #1 - 8003756: e000 b.n 800375a + 8004a58: 2301 movs r3, #1 + 8004a5a: e000 b.n 8004a5e }else return 0; - 8003758: 2300 movs r3, #0 + 8004a5c: 2300 movs r3, #0 } - 800375a: 4618 mov r0, r3 - 800375c: 3710 adds r7, #16 - 800375e: 46bd mov sp, r7 - 8003760: bd80 pop {r7, pc} + 8004a5e: 4618 mov r0, r3 + 8004a60: 3710 adds r7, #16 + 8004a62: 46bd mov sp, r7 + 8004a64: bd80 pop {r7, pc} ... -08003764 : +08004a68 : touch_device t0;// t0 yyds~ touch_config tconfig; //触摸更新服务 void TP_Server() { - 8003764: b598 push {r3, r4, r7, lr} - 8003766: af00 add r7, sp, #0 + 8004a68: b598 push {r3, r4, r7, lr} + 8004a6a: af00 add r7, sp, #0 if(TPEN==0) - 8003768: f44f 6180 mov.w r1, #1024 ; 0x400 - 800376c: 4824 ldr r0, [pc, #144] ; (8003800 ) - 800376e: f7fe fac1 bl 8001cf4 - 8003772: 4603 mov r3, r0 - 8003774: 2b00 cmp r3, #0 - 8003776: d141 bne.n 80037fc + 8004a6c: f44f 6180 mov.w r1, #1024 ; 0x400 + 8004a70: 4824 ldr r0, [pc, #144] ; (8004b04 ) + 8004a72: f7fd f9af bl 8001dd4 + 8004a76: 4603 mov r3, r0 + 8004a78: 2b00 cmp r3, #0 + 8004a7a: d141 bne.n 8004b00 { TP_Read_XY2(&t0.adc_x,&t0.adc_y); - 8003778: 4922 ldr r1, [pc, #136] ; (8003804 ) - 800377a: 4823 ldr r0, [pc, #140] ; (8003808 ) - 800377c: f7ff ff89 bl 8003692 + 8004a7c: 4922 ldr r1, [pc, #136] ; (8004b08 ) + 8004a7e: 4823 ldr r0, [pc, #140] ; (8004b0c ) + 8004a80: f7ff ff89 bl 8004996 t0.pix_x=(t0.adc_x/tconfig.x_acc)-tconfig.x_offset; - 8003780: 4b21 ldr r3, [pc, #132] ; (8003808 ) - 8003782: 881b ldrh r3, [r3, #0] - 8003784: 4618 mov r0, r3 - 8003786: f7fd faf5 bl 8000d74 <__aeabi_i2f> - 800378a: 4602 mov r2, r0 - 800378c: 4b1f ldr r3, [pc, #124] ; (800380c ) - 800378e: 685b ldr r3, [r3, #4] - 8003790: 4619 mov r1, r3 - 8003792: 4610 mov r0, r2 - 8003794: f7fd fbf6 bl 8000f84 <__aeabi_fdiv> - 8003798: 4603 mov r3, r0 - 800379a: 461c mov r4, r3 - 800379c: 4b1b ldr r3, [pc, #108] ; (800380c ) - 800379e: 68db ldr r3, [r3, #12] - 80037a0: 4618 mov r0, r3 - 80037a2: f7fd fae7 bl 8000d74 <__aeabi_i2f> - 80037a6: 4603 mov r3, r0 - 80037a8: 4619 mov r1, r3 - 80037aa: 4620 mov r0, r4 - 80037ac: f7fd fa2c bl 8000c08 <__aeabi_fsub> - 80037b0: 4603 mov r3, r0 - 80037b2: 4618 mov r0, r3 - 80037b4: f7fd fc82 bl 80010bc <__aeabi_f2iz> - 80037b8: 4603 mov r3, r0 - 80037ba: 4a13 ldr r2, [pc, #76] ; (8003808 ) - 80037bc: 6053 str r3, [r2, #4] + 8004a84: 4b21 ldr r3, [pc, #132] ; (8004b0c ) + 8004a86: 881b ldrh r3, [r3, #0] + 8004a88: 4618 mov r0, r3 + 8004a8a: f7fc f973 bl 8000d74 <__aeabi_i2f> + 8004a8e: 4602 mov r2, r0 + 8004a90: 4b1f ldr r3, [pc, #124] ; (8004b10 ) + 8004a92: 685b ldr r3, [r3, #4] + 8004a94: 4619 mov r1, r3 + 8004a96: 4610 mov r0, r2 + 8004a98: f7fc fa74 bl 8000f84 <__aeabi_fdiv> + 8004a9c: 4603 mov r3, r0 + 8004a9e: 461c mov r4, r3 + 8004aa0: 4b1b ldr r3, [pc, #108] ; (8004b10 ) + 8004aa2: 68db ldr r3, [r3, #12] + 8004aa4: 4618 mov r0, r3 + 8004aa6: f7fc f965 bl 8000d74 <__aeabi_i2f> + 8004aaa: 4603 mov r3, r0 + 8004aac: 4619 mov r1, r3 + 8004aae: 4620 mov r0, r4 + 8004ab0: f7fc f8aa bl 8000c08 <__aeabi_fsub> + 8004ab4: 4603 mov r3, r0 + 8004ab6: 4618 mov r0, r3 + 8004ab8: f7fc fb00 bl 80010bc <__aeabi_f2iz> + 8004abc: 4603 mov r3, r0 + 8004abe: 4a13 ldr r2, [pc, #76] ; (8004b0c ) + 8004ac0: 6053 str r3, [r2, #4] t0.pix_y=(t0.adc_y/tconfig.y_acc)-tconfig.y_offset; - 80037be: 4b12 ldr r3, [pc, #72] ; (8003808 ) - 80037c0: 885b ldrh r3, [r3, #2] - 80037c2: 4618 mov r0, r3 - 80037c4: f7fd fad6 bl 8000d74 <__aeabi_i2f> - 80037c8: 4602 mov r2, r0 - 80037ca: 4b10 ldr r3, [pc, #64] ; (800380c ) - 80037cc: 689b ldr r3, [r3, #8] - 80037ce: 4619 mov r1, r3 - 80037d0: 4610 mov r0, r2 - 80037d2: f7fd fbd7 bl 8000f84 <__aeabi_fdiv> - 80037d6: 4603 mov r3, r0 - 80037d8: 461c mov r4, r3 - 80037da: 4b0c ldr r3, [pc, #48] ; (800380c ) - 80037dc: 691b ldr r3, [r3, #16] - 80037de: 4618 mov r0, r3 - 80037e0: f7fd fac8 bl 8000d74 <__aeabi_i2f> - 80037e4: 4603 mov r3, r0 - 80037e6: 4619 mov r1, r3 - 80037e8: 4620 mov r0, r4 - 80037ea: f7fd fa0d bl 8000c08 <__aeabi_fsub> - 80037ee: 4603 mov r3, r0 - 80037f0: 4618 mov r0, r3 - 80037f2: f7fd fc63 bl 80010bc <__aeabi_f2iz> - 80037f6: 4603 mov r3, r0 - 80037f8: 4a03 ldr r2, [pc, #12] ; (8003808 ) - 80037fa: 6093 str r3, [r2, #8] + 8004ac2: 4b12 ldr r3, [pc, #72] ; (8004b0c ) + 8004ac4: 885b ldrh r3, [r3, #2] + 8004ac6: 4618 mov r0, r3 + 8004ac8: f7fc f954 bl 8000d74 <__aeabi_i2f> + 8004acc: 4602 mov r2, r0 + 8004ace: 4b10 ldr r3, [pc, #64] ; (8004b10 ) + 8004ad0: 689b ldr r3, [r3, #8] + 8004ad2: 4619 mov r1, r3 + 8004ad4: 4610 mov r0, r2 + 8004ad6: f7fc fa55 bl 8000f84 <__aeabi_fdiv> + 8004ada: 4603 mov r3, r0 + 8004adc: 461c mov r4, r3 + 8004ade: 4b0c ldr r3, [pc, #48] ; (8004b10 ) + 8004ae0: 691b ldr r3, [r3, #16] + 8004ae2: 4618 mov r0, r3 + 8004ae4: f7fc f946 bl 8000d74 <__aeabi_i2f> + 8004ae8: 4603 mov r3, r0 + 8004aea: 4619 mov r1, r3 + 8004aec: 4620 mov r0, r4 + 8004aee: f7fc f88b bl 8000c08 <__aeabi_fsub> + 8004af2: 4603 mov r3, r0 + 8004af4: 4618 mov r0, r3 + 8004af6: f7fc fae1 bl 80010bc <__aeabi_f2iz> + 8004afa: 4603 mov r3, r0 + 8004afc: 4a03 ldr r2, [pc, #12] ; (8004b0c ) + 8004afe: 6093 str r3, [r2, #8] } } - 80037fc: bf00 nop - 80037fe: bd98 pop {r3, r4, r7, pc} - 8003800: 40011c00 .word 0x40011c00 - 8003804: 2000027a .word 0x2000027a - 8003808: 20000278 .word 0x20000278 - 800380c: 20000260 .word 0x20000260 + 8004b00: bf00 nop + 8004b02: bd98 pop {r3, r4, r7, pc} + 8004b04: 40011c00 .word 0x40011c00 + 8004b08: 200002e2 .word 0x200002e2 + 8004b0c: 200002e0 .word 0x200002e0 + 8004b10: 200002c8 .word 0x200002c8 -08003810 : +08004b14 : void TP_DrwaTrage(int x,int y,int r) { - 8003810: b590 push {r4, r7, lr} - 8003812: b087 sub sp, #28 - 8003814: af02 add r7, sp, #8 - 8003816: 60f8 str r0, [r7, #12] - 8003818: 60b9 str r1, [r7, #8] - 800381a: 607a str r2, [r7, #4] + 8004b14: b590 push {r4, r7, lr} + 8004b16: b087 sub sp, #28 + 8004b18: af02 add r7, sp, #8 + 8004b1a: 60f8 str r0, [r7, #12] + 8004b1c: 60b9 str r1, [r7, #8] + 8004b1e: 607a str r2, [r7, #4] Draw_Circle(x,y,r+1,GRAY); - 800381c: 68fb ldr r3, [r7, #12] - 800381e: b298 uxth r0, r3 - 8003820: 68bb ldr r3, [r7, #8] - 8003822: b299 uxth r1, r3 - 8003824: 687b ldr r3, [r7, #4] - 8003826: b29b uxth r3, r3 - 8003828: 3301 adds r3, #1 - 800382a: b29a uxth r2, r3 - 800382c: f248 4330 movw r3, #33840 ; 0x8430 - 8003830: f7ff fc95 bl 800315e + 8004b20: 68fb ldr r3, [r7, #12] + 8004b22: b298 uxth r0, r3 + 8004b24: 68bb ldr r3, [r7, #8] + 8004b26: b299 uxth r1, r3 + 8004b28: 687b ldr r3, [r7, #4] + 8004b2a: b29b uxth r3, r3 + 8004b2c: 3301 adds r3, #1 + 8004b2e: b29a uxth r2, r3 + 8004b30: f248 4330 movw r3, #33840 ; 0x8430 + 8004b34: f7ff fba1 bl 800427a Draw_Circle(x,y,r,RED); - 8003834: 68fb ldr r3, [r7, #12] - 8003836: b298 uxth r0, r3 - 8003838: 68bb ldr r3, [r7, #8] - 800383a: b299 uxth r1, r3 - 800383c: 687b ldr r3, [r7, #4] - 800383e: b29a uxth r2, r3 - 8003840: f44f 4378 mov.w r3, #63488 ; 0xf800 - 8003844: f7ff fc8b bl 800315e + 8004b38: 68fb ldr r3, [r7, #12] + 8004b3a: b298 uxth r0, r3 + 8004b3c: 68bb ldr r3, [r7, #8] + 8004b3e: b299 uxth r1, r3 + 8004b40: 687b ldr r3, [r7, #4] + 8004b42: b29a uxth r2, r3 + 8004b44: f44f 4378 mov.w r3, #63488 ; 0xf800 + 8004b48: f7ff fb97 bl 800427a LCD_DrawLine(x,y,x+10,y,RED); - 8003848: 68fb ldr r3, [r7, #12] - 800384a: b298 uxth r0, r3 - 800384c: 68bb ldr r3, [r7, #8] - 800384e: b299 uxth r1, r3 - 8003850: 68fb ldr r3, [r7, #12] - 8003852: b29b uxth r3, r3 - 8003854: 330a adds r3, #10 - 8003856: b29a uxth r2, r3 - 8003858: 68bb ldr r3, [r7, #8] - 800385a: b29b uxth r3, r3 - 800385c: f44f 4478 mov.w r4, #63488 ; 0xf800 - 8003860: 9400 str r4, [sp, #0] - 8003862: f7ff fbf7 bl 8003054 + 8004b4c: 68fb ldr r3, [r7, #12] + 8004b4e: b298 uxth r0, r3 + 8004b50: 68bb ldr r3, [r7, #8] + 8004b52: b299 uxth r1, r3 + 8004b54: 68fb ldr r3, [r7, #12] + 8004b56: b29b uxth r3, r3 + 8004b58: 330a adds r3, #10 + 8004b5a: b29a uxth r2, r3 + 8004b5c: 68bb ldr r3, [r7, #8] + 8004b5e: b29b uxth r3, r3 + 8004b60: f44f 4478 mov.w r4, #63488 ; 0xf800 + 8004b64: 9400 str r4, [sp, #0] + 8004b66: f7ff fb03 bl 8004170 LCD_DrawLine(x,y,x,y+10,RED); - 8003866: 68fb ldr r3, [r7, #12] - 8003868: b298 uxth r0, r3 - 800386a: 68bb ldr r3, [r7, #8] - 800386c: b299 uxth r1, r3 - 800386e: 68fb ldr r3, [r7, #12] - 8003870: b29a uxth r2, r3 - 8003872: 68bb ldr r3, [r7, #8] - 8003874: b29b uxth r3, r3 - 8003876: 330a adds r3, #10 - 8003878: b29b uxth r3, r3 - 800387a: f44f 4478 mov.w r4, #63488 ; 0xf800 - 800387e: 9400 str r4, [sp, #0] - 8003880: f7ff fbe8 bl 8003054 + 8004b6a: 68fb ldr r3, [r7, #12] + 8004b6c: b298 uxth r0, r3 + 8004b6e: 68bb ldr r3, [r7, #8] + 8004b70: b299 uxth r1, r3 + 8004b72: 68fb ldr r3, [r7, #12] + 8004b74: b29a uxth r2, r3 + 8004b76: 68bb ldr r3, [r7, #8] + 8004b78: b29b uxth r3, r3 + 8004b7a: 330a adds r3, #10 + 8004b7c: b29b uxth r3, r3 + 8004b7e: f44f 4478 mov.w r4, #63488 ; 0xf800 + 8004b82: 9400 str r4, [sp, #0] + 8004b84: f7ff faf4 bl 8004170 LCD_DrawLine(x,y,x-10,y,RED); - 8003884: 68fb ldr r3, [r7, #12] - 8003886: b298 uxth r0, r3 - 8003888: 68bb ldr r3, [r7, #8] - 800388a: b299 uxth r1, r3 - 800388c: 68fb ldr r3, [r7, #12] - 800388e: b29b uxth r3, r3 - 8003890: 3b0a subs r3, #10 - 8003892: b29a uxth r2, r3 - 8003894: 68bb ldr r3, [r7, #8] - 8003896: b29b uxth r3, r3 - 8003898: f44f 4478 mov.w r4, #63488 ; 0xf800 - 800389c: 9400 str r4, [sp, #0] - 800389e: f7ff fbd9 bl 8003054 + 8004b88: 68fb ldr r3, [r7, #12] + 8004b8a: b298 uxth r0, r3 + 8004b8c: 68bb ldr r3, [r7, #8] + 8004b8e: b299 uxth r1, r3 + 8004b90: 68fb ldr r3, [r7, #12] + 8004b92: b29b uxth r3, r3 + 8004b94: 3b0a subs r3, #10 + 8004b96: b29a uxth r2, r3 + 8004b98: 68bb ldr r3, [r7, #8] + 8004b9a: b29b uxth r3, r3 + 8004b9c: f44f 4478 mov.w r4, #63488 ; 0xf800 + 8004ba0: 9400 str r4, [sp, #0] + 8004ba2: f7ff fae5 bl 8004170 LCD_DrawLine(x,y,x,y-10,RED); - 80038a2: 68fb ldr r3, [r7, #12] - 80038a4: b298 uxth r0, r3 - 80038a6: 68bb ldr r3, [r7, #8] - 80038a8: b299 uxth r1, r3 - 80038aa: 68fb ldr r3, [r7, #12] - 80038ac: b29a uxth r2, r3 - 80038ae: 68bb ldr r3, [r7, #8] - 80038b0: b29b uxth r3, r3 - 80038b2: 3b0a subs r3, #10 - 80038b4: b29b uxth r3, r3 - 80038b6: f44f 4478 mov.w r4, #63488 ; 0xf800 - 80038ba: 9400 str r4, [sp, #0] - 80038bc: f7ff fbca bl 8003054 + 8004ba6: 68fb ldr r3, [r7, #12] + 8004ba8: b298 uxth r0, r3 + 8004baa: 68bb ldr r3, [r7, #8] + 8004bac: b299 uxth r1, r3 + 8004bae: 68fb ldr r3, [r7, #12] + 8004bb0: b29a uxth r2, r3 + 8004bb2: 68bb ldr r3, [r7, #8] + 8004bb4: b29b uxth r3, r3 + 8004bb6: 3b0a subs r3, #10 + 8004bb8: b29b uxth r3, r3 + 8004bba: f44f 4478 mov.w r4, #63488 ; 0xf800 + 8004bbe: 9400 str r4, [sp, #0] + 8004bc0: f7ff fad6 bl 8004170 } - 80038c0: bf00 nop - 80038c2: 3714 adds r7, #20 - 80038c4: 46bd mov sp, r7 - 80038c6: bd90 pop {r4, r7, pc} + 8004bc4: bf00 nop + 8004bc6: 3714 adds r7, #20 + 8004bc8: 46bd mov sp, r7 + 8004bca: bd90 pop {r4, r7, pc} -080038c8 : +08004bcc : void TP_adjustment() { - 80038c8: b5b0 push {r4, r5, r7, lr} - 80038ca: b0a4 sub sp, #144 ; 0x90 - 80038cc: af02 add r7, sp, #8 + 8004bcc: b5b0 push {r4, r5, r7, lr} + 8004bce: b0a4 sub sp, #144 ; 0x90 + 8004bd0: af02 add r7, sp, #8 + //判断是否需要校准,从eeprom获取数据 + EEPROM_READ_BATY(16,(char *)&tconfig,sizeof(touch_config)); + 8004bd2: 2218 movs r2, #24 + 8004bd4: 4916 ldr r1, [pc, #88] ; (8004c30 ) + 8004bd6: 2010 movs r0, #16 + 8004bd8: f7ff fd50 bl 800467c + if(tconfig.begin==0xab&&tconfig.end==0xcd) + 8004bdc: 4b14 ldr r3, [pc, #80] ; (8004c30 ) + 8004bde: 781b ldrb r3, [r3, #0] + 8004be0: 2bab cmp r3, #171 ; 0xab + 8004be2: d104 bne.n 8004bee + 8004be4: 4b12 ldr r3, [pc, #72] ; (8004c30 ) + 8004be6: 7d1b ldrb r3, [r3, #20] + 8004be8: 2bcd cmp r3, #205 ; 0xcd + 8004bea: f000 82a5 beq.w 8005138 + { + return; + } + char str[64]; uint16_t y_adc,x_adc,step=0,r=10; - 80038ce: 2300 movs r3, #0 - 80038d0: f8a7 3086 strh.w r3, [r7, #134] ; 0x86 - 80038d4: 230a movs r3, #10 - 80038d6: f8a7 3084 strh.w r3, [r7, #132] ; 0x84 + 8004bee: 2300 movs r3, #0 + 8004bf0: f8a7 3086 strh.w r3, [r7, #134] ; 0x86 + 8004bf4: 230a movs r3, #10 + 8004bf6: f8a7 3084 strh.w r3, [r7, #132] ; 0x84 uint16_t y1,y2,y3,y4,x1,x2,x3,x4; int y5,x5,xd,xl,yd,yl; float acc_x,acc_y; int offset_x,offset_y; uint32_t wait=HAL_GetTick()+50000,ms100=0; - 80038da: f7fd ff65 bl 80017a8 - 80038de: 4603 mov r3, r0 - 80038e0: f503 4343 add.w r3, r3, #49920 ; 0xc300 - 80038e4: 3350 adds r3, #80 ; 0x50 - 80038e6: 673b str r3, [r7, #112] ; 0x70 - 80038e8: 2300 movs r3, #0 - 80038ea: 66fb str r3, [r7, #108] ; 0x6c + 8004bfa: f7fc fe45 bl 8001888 + 8004bfe: 4603 mov r3, r0 + 8004c00: f503 4343 add.w r3, r3, #49920 ; 0xc300 + 8004c04: 3350 adds r3, #80 ; 0x50 + 8004c06: 673b str r3, [r7, #112] ; 0x70 + 8004c08: 2300 movs r3, #0 + 8004c0a: 66fb str r3, [r7, #108] ; 0x6c LCD_Clear(GRAY); - 80038ec: f248 4030 movw r0, #33840 ; 0x8430 - 80038f0: f7ff fb5e bl 8002fb0 + 8004c0c: f248 4030 movw r0, #33840 ; 0x8430 + 8004c10: f7ff fa5c bl 80040cc LCD_ShowString(0,50,"Calibrate the touch screen",16,RED,RED); - 80038f4: f44f 4378 mov.w r3, #63488 ; 0xf800 - 80038f8: 9301 str r3, [sp, #4] - 80038fa: f44f 4378 mov.w r3, #63488 ; 0xf800 - 80038fe: 9300 str r3, [sp, #0] - 8003900: 2310 movs r3, #16 - 8003902: 4ad4 ldr r2, [pc, #848] ; (8003c54 ) - 8003904: 2132 movs r1, #50 ; 0x32 - 8003906: 2000 movs r0, #0 - 8003908: f7ff fd50 bl 80033ac + 8004c14: f44f 4378 mov.w r3, #63488 ; 0xf800 + 8004c18: 9301 str r3, [sp, #4] + 8004c1a: f44f 4378 mov.w r3, #63488 ; 0xf800 + 8004c1e: 9300 str r3, [sp, #0] + 8004c20: 2310 movs r3, #16 + 8004c22: 4a04 ldr r2, [pc, #16] ; (8004c34 ) + 8004c24: 2132 movs r1, #50 ; 0x32 + 8004c26: 2000 movs r0, #0 + 8004c28: f7ff fc4e bl 80044c8 //TP_DrwaTrage(30,30,10); while(HAL_GetTick() + 8004c2c: e27c b.n 8005128 + 8004c2e: bf00 nop + 8004c30: 200002c8 .word 0x200002c8 + 8004c34: 080082e0 .word 0x080082e0 { if(TPEN==0) - 800390e: f44f 6180 mov.w r1, #1024 ; 0x400 - 8003912: 48d1 ldr r0, [pc, #836] ; (8003c58 ) - 8003914: f7fe f9ee bl 8001cf4 - 8003918: 4603 mov r3, r0 - 800391a: 2b00 cmp r3, #0 - 800391c: d146 bne.n 80039ac + 8004c38: f44f 6180 mov.w r1, #1024 ; 0x400 + 8004c3c: 48cf ldr r0, [pc, #828] ; (8004f7c ) + 8004c3e: f7fd f8c9 bl 8001dd4 + 8004c42: 4603 mov r3, r0 + 8004c44: 2b00 cmp r3, #0 + 8004c46: d146 bne.n 8004cd6 { wait=HAL_GetTick()+50000; - 800391e: f7fd ff43 bl 80017a8 - 8003922: 4603 mov r3, r0 - 8003924: f503 4343 add.w r3, r3, #49920 ; 0xc300 - 8003928: 3350 adds r3, #80 ; 0x50 - 800392a: 673b str r3, [r7, #112] ; 0x70 + 8004c48: f7fc fe1e bl 8001888 + 8004c4c: 4603 mov r3, r0 + 8004c4e: f503 4343 add.w r3, r3, #49920 ; 0xc300 + 8004c52: 3350 adds r3, #80 ; 0x50 + 8004c54: 673b str r3, [r7, #112] ; 0x70 TP_Read_XY2(&x_adc,&y_adc); - 800392c: 1cba adds r2, r7, #2 - 800392e: 463b mov r3, r7 - 8003930: 4611 mov r1, r2 - 8003932: 4618 mov r0, r3 - 8003934: f7ff fead bl 8003692 + 8004c56: 1cba adds r2, r7, #2 + 8004c58: 463b mov r3, r7 + 8004c5a: 4611 mov r1, r2 + 8004c5c: 4618 mov r0, r3 + 8004c5e: f7ff fe9a bl 8004996 sprintf(str,"ADC_X:%04d",x_adc); - 8003938: 883b ldrh r3, [r7, #0] - 800393a: 461a mov r2, r3 - 800393c: 1d3b adds r3, r7, #4 - 800393e: 49c7 ldr r1, [pc, #796] ; (8003c5c ) - 8003940: 4618 mov r0, r3 - 8003942: f001 f993 bl 8004c6c + 8004c62: 883b ldrh r3, [r7, #0] + 8004c64: 461a mov r2, r3 + 8004c66: 1d3b adds r3, r7, #4 + 8004c68: 49c5 ldr r1, [pc, #788] ; (8004f80 ) + 8004c6a: 4618 mov r0, r3 + 8004c6c: f001 f9a8 bl 8005fc0 LCD_ShowString(100, 0, str, 16, RED, GRAY); - 8003946: 1d3a adds r2, r7, #4 - 8003948: f248 4330 movw r3, #33840 ; 0x8430 - 800394c: 9301 str r3, [sp, #4] - 800394e: f44f 4378 mov.w r3, #63488 ; 0xf800 - 8003952: 9300 str r3, [sp, #0] - 8003954: 2310 movs r3, #16 - 8003956: 2100 movs r1, #0 - 8003958: 2064 movs r0, #100 ; 0x64 - 800395a: f7ff fd27 bl 80033ac + 8004c70: 1d3a adds r2, r7, #4 + 8004c72: f248 4330 movw r3, #33840 ; 0x8430 + 8004c76: 9301 str r3, [sp, #4] + 8004c78: f44f 4378 mov.w r3, #63488 ; 0xf800 + 8004c7c: 9300 str r3, [sp, #0] + 8004c7e: 2310 movs r3, #16 + 8004c80: 2100 movs r1, #0 + 8004c82: 2064 movs r0, #100 ; 0x64 + 8004c84: f7ff fc20 bl 80044c8 sprintf(str,"ADC_Y:%04d",y_adc); - 800395e: 887b ldrh r3, [r7, #2] - 8003960: 461a mov r2, r3 - 8003962: 1d3b adds r3, r7, #4 - 8003964: 49be ldr r1, [pc, #760] ; (8003c60 ) - 8003966: 4618 mov r0, r3 - 8003968: f001 f980 bl 8004c6c + 8004c88: 887b ldrh r3, [r7, #2] + 8004c8a: 461a mov r2, r3 + 8004c8c: 1d3b adds r3, r7, #4 + 8004c8e: 49bd ldr r1, [pc, #756] ; (8004f84 ) + 8004c90: 4618 mov r0, r3 + 8004c92: f001 f995 bl 8005fc0 LCD_ShowString(100, 16, str, 16, RED, GRAY); - 800396c: 1d3a adds r2, r7, #4 - 800396e: f248 4330 movw r3, #33840 ; 0x8430 - 8003972: 9301 str r3, [sp, #4] - 8003974: f44f 4378 mov.w r3, #63488 ; 0xf800 - 8003978: 9300 str r3, [sp, #0] - 800397a: 2310 movs r3, #16 - 800397c: 2110 movs r1, #16 - 800397e: 2064 movs r0, #100 ; 0x64 - 8003980: f7ff fd14 bl 80033ac + 8004c96: 1d3a adds r2, r7, #4 + 8004c98: f248 4330 movw r3, #33840 ; 0x8430 + 8004c9c: 9301 str r3, [sp, #4] + 8004c9e: f44f 4378 mov.w r3, #63488 ; 0xf800 + 8004ca2: 9300 str r3, [sp, #0] + 8004ca4: 2310 movs r3, #16 + 8004ca6: 2110 movs r1, #16 + 8004ca8: 2064 movs r0, #100 ; 0x64 + 8004caa: f7ff fc0d bl 80044c8 if(HAL_GetTick()>ms100) - 8003984: f7fd ff10 bl 80017a8 - 8003988: 4602 mov r2, r0 - 800398a: 6efb ldr r3, [r7, #108] ; 0x6c - 800398c: 4293 cmp r3, r2 - 800398e: d20d bcs.n 80039ac + 8004cae: f7fc fdeb bl 8001888 + 8004cb2: 4602 mov r2, r0 + 8004cb4: 6efb ldr r3, [r7, #108] ; 0x6c + 8004cb6: 4293 cmp r3, r2 + 8004cb8: d20d bcs.n 8004cd6 { ms100=HAL_GetTick()+100; - 8003990: f7fd ff0a bl 80017a8 - 8003994: 4603 mov r3, r0 - 8003996: 3364 adds r3, #100 ; 0x64 - 8003998: 66fb str r3, [r7, #108] ; 0x6c + 8004cba: f7fc fde5 bl 8001888 + 8004cbe: 4603 mov r3, r0 + 8004cc0: 3364 adds r3, #100 ; 0x64 + 8004cc2: 66fb str r3, [r7, #108] ; 0x6c if(r>0){r--;} - 800399a: f8b7 3084 ldrh.w r3, [r7, #132] ; 0x84 - 800399e: 2b00 cmp r3, #0 - 80039a0: d004 beq.n 80039ac - 80039a2: f8b7 3084 ldrh.w r3, [r7, #132] ; 0x84 - 80039a6: 3b01 subs r3, #1 - 80039a8: f8a7 3084 strh.w r3, [r7, #132] ; 0x84 + 8004cc4: f8b7 3084 ldrh.w r3, [r7, #132] ; 0x84 + 8004cc8: 2b00 cmp r3, #0 + 8004cca: d004 beq.n 8004cd6 + 8004ccc: f8b7 3084 ldrh.w r3, [r7, #132] ; 0x84 + 8004cd0: 3b01 subs r3, #1 + 8004cd2: f8a7 3084 strh.w r3, [r7, #132] ; 0x84 } } if(step==0) - 80039ac: f8b7 3086 ldrh.w r3, [r7, #134] ; 0x86 - 80039b0: 2b00 cmp r3, #0 - 80039b2: d129 bne.n 8003a08 + 8004cd6: f8b7 3086 ldrh.w r3, [r7, #134] ; 0x86 + 8004cda: 2b00 cmp r3, #0 + 8004cdc: d129 bne.n 8004d32 { TP_DrwaTrage(30,30,r); - 80039b4: f8b7 3084 ldrh.w r3, [r7, #132] ; 0x84 - 80039b8: 461a mov r2, r3 - 80039ba: 211e movs r1, #30 - 80039bc: 201e movs r0, #30 - 80039be: f7ff ff27 bl 8003810 + 8004cde: f8b7 3084 ldrh.w r3, [r7, #132] ; 0x84 + 8004ce2: 461a mov r2, r3 + 8004ce4: 211e movs r1, #30 + 8004ce6: 201e movs r0, #30 + 8004ce8: f7ff ff14 bl 8004b14 if(r==0) - 80039c2: f8b7 3084 ldrh.w r3, [r7, #132] ; 0x84 - 80039c6: 2b00 cmp r3, #0 - 80039c8: d11e bne.n 8003a08 + 8004cec: f8b7 3084 ldrh.w r3, [r7, #132] ; 0x84 + 8004cf0: 2b00 cmp r3, #0 + 8004cf2: d11e bne.n 8004d32 { step+=1; - 80039ca: f8b7 3086 ldrh.w r3, [r7, #134] ; 0x86 - 80039ce: 3301 adds r3, #1 - 80039d0: f8a7 3086 strh.w r3, [r7, #134] ; 0x86 + 8004cf4: f8b7 3086 ldrh.w r3, [r7, #134] ; 0x86 + 8004cf8: 3301 adds r3, #1 + 8004cfa: f8a7 3086 strh.w r3, [r7, #134] ; 0x86 y1=y_adc; - 80039d4: 887b ldrh r3, [r7, #2] - 80039d6: f8a7 3082 strh.w r3, [r7, #130] ; 0x82 + 8004cfe: 887b ldrh r3, [r7, #2] + 8004d00: f8a7 3082 strh.w r3, [r7, #130] ; 0x82 x1=x_adc; - 80039da: 883b ldrh r3, [r7, #0] - 80039dc: f8a7 307a strh.w r3, [r7, #122] ; 0x7a + 8004d04: 883b ldrh r3, [r7, #0] + 8004d06: f8a7 307a strh.w r3, [r7, #122] ; 0x7a sprintf(str,"point_1 x:%d y:%d",x1,y1); - 80039e0: f8b7 207a ldrh.w r2, [r7, #122] ; 0x7a - 80039e4: f8b7 3082 ldrh.w r3, [r7, #130] ; 0x82 - 80039e8: 1d38 adds r0, r7, #4 - 80039ea: 499e ldr r1, [pc, #632] ; (8003c64 ) - 80039ec: f001 f93e bl 8004c6c + 8004d0a: f8b7 207a ldrh.w r2, [r7, #122] ; 0x7a + 8004d0e: f8b7 3082 ldrh.w r3, [r7, #130] ; 0x82 + 8004d12: 1d38 adds r0, r7, #4 + 8004d14: 499c ldr r1, [pc, #624] ; (8004f88 ) + 8004d16: f001 f953 bl 8005fc0 LCD_ShowString(0,66,str,16,RED,RED); - 80039f0: 1d3a adds r2, r7, #4 - 80039f2: f44f 4378 mov.w r3, #63488 ; 0xf800 - 80039f6: 9301 str r3, [sp, #4] - 80039f8: f44f 4378 mov.w r3, #63488 ; 0xf800 - 80039fc: 9300 str r3, [sp, #0] - 80039fe: 2310 movs r3, #16 - 8003a00: 2142 movs r1, #66 ; 0x42 - 8003a02: 2000 movs r0, #0 - 8003a04: f7ff fcd2 bl 80033ac + 8004d1a: 1d3a adds r2, r7, #4 + 8004d1c: f44f 4378 mov.w r3, #63488 ; 0xf800 + 8004d20: 9301 str r3, [sp, #4] + 8004d22: f44f 4378 mov.w r3, #63488 ; 0xf800 + 8004d26: 9300 str r3, [sp, #0] + 8004d28: 2310 movs r3, #16 + 8004d2a: 2142 movs r1, #66 ; 0x42 + 8004d2c: 2000 movs r0, #0 + 8004d2e: f7ff fbcb bl 80044c8 } } if(step==1) - 8003a08: f8b7 3086 ldrh.w r3, [r7, #134] ; 0x86 - 8003a0c: 2b01 cmp r3, #1 - 8003a0e: d10f bne.n 8003a30 + 8004d32: f8b7 3086 ldrh.w r3, [r7, #134] ; 0x86 + 8004d36: 2b01 cmp r3, #1 + 8004d38: d10f bne.n 8004d5a { if(TPEN==1) - 8003a10: f44f 6180 mov.w r1, #1024 ; 0x400 - 8003a14: 4890 ldr r0, [pc, #576] ; (8003c58 ) - 8003a16: f7fe f96d bl 8001cf4 - 8003a1a: 4603 mov r3, r0 - 8003a1c: 2b01 cmp r3, #1 - 8003a1e: d107 bne.n 8003a30 + 8004d3a: f44f 6180 mov.w r1, #1024 ; 0x400 + 8004d3e: 488f ldr r0, [pc, #572] ; (8004f7c ) + 8004d40: f7fd f848 bl 8001dd4 + 8004d44: 4603 mov r3, r0 + 8004d46: 2b01 cmp r3, #1 + 8004d48: d107 bne.n 8004d5a { step+=1; - 8003a20: f8b7 3086 ldrh.w r3, [r7, #134] ; 0x86 - 8003a24: 3301 adds r3, #1 - 8003a26: f8a7 3086 strh.w r3, [r7, #134] ; 0x86 + 8004d4a: f8b7 3086 ldrh.w r3, [r7, #134] ; 0x86 + 8004d4e: 3301 adds r3, #1 + 8004d50: f8a7 3086 strh.w r3, [r7, #134] ; 0x86 r=10; - 8003a2a: 230a movs r3, #10 - 8003a2c: f8a7 3084 strh.w r3, [r7, #132] ; 0x84 + 8004d54: 230a movs r3, #10 + 8004d56: f8a7 3084 strh.w r3, [r7, #132] ; 0x84 } } if(step==2) - 8003a30: f8b7 3086 ldrh.w r3, [r7, #134] ; 0x86 - 8003a34: 2b02 cmp r3, #2 - 8003a36: d12a bne.n 8003a8e + 8004d5a: f8b7 3086 ldrh.w r3, [r7, #134] ; 0x86 + 8004d5e: 2b02 cmp r3, #2 + 8004d60: d12a bne.n 8004db8 { TP_DrwaTrage(290,30,r); - 8003a38: f8b7 3084 ldrh.w r3, [r7, #132] ; 0x84 - 8003a3c: 461a mov r2, r3 - 8003a3e: 211e movs r1, #30 - 8003a40: f44f 7091 mov.w r0, #290 ; 0x122 - 8003a44: f7ff fee4 bl 8003810 + 8004d62: f8b7 3084 ldrh.w r3, [r7, #132] ; 0x84 + 8004d66: 461a mov r2, r3 + 8004d68: 211e movs r1, #30 + 8004d6a: f44f 7091 mov.w r0, #290 ; 0x122 + 8004d6e: f7ff fed1 bl 8004b14 if(r==0) - 8003a48: f8b7 3084 ldrh.w r3, [r7, #132] ; 0x84 - 8003a4c: 2b00 cmp r3, #0 - 8003a4e: d11e bne.n 8003a8e + 8004d72: f8b7 3084 ldrh.w r3, [r7, #132] ; 0x84 + 8004d76: 2b00 cmp r3, #0 + 8004d78: d11e bne.n 8004db8 { step+=1; - 8003a50: f8b7 3086 ldrh.w r3, [r7, #134] ; 0x86 - 8003a54: 3301 adds r3, #1 - 8003a56: f8a7 3086 strh.w r3, [r7, #134] ; 0x86 + 8004d7a: f8b7 3086 ldrh.w r3, [r7, #134] ; 0x86 + 8004d7e: 3301 adds r3, #1 + 8004d80: f8a7 3086 strh.w r3, [r7, #134] ; 0x86 y2=y_adc; - 8003a5a: 887b ldrh r3, [r7, #2] - 8003a5c: f8a7 3080 strh.w r3, [r7, #128] ; 0x80 + 8004d84: 887b ldrh r3, [r7, #2] + 8004d86: f8a7 3080 strh.w r3, [r7, #128] ; 0x80 x2=x_adc; - 8003a60: 883b ldrh r3, [r7, #0] - 8003a62: f8a7 3078 strh.w r3, [r7, #120] ; 0x78 + 8004d8a: 883b ldrh r3, [r7, #0] + 8004d8c: f8a7 3078 strh.w r3, [r7, #120] ; 0x78 sprintf(str,"point_2 x:%d y:%d",x2,y2); - 8003a66: f8b7 2078 ldrh.w r2, [r7, #120] ; 0x78 - 8003a6a: f8b7 3080 ldrh.w r3, [r7, #128] ; 0x80 - 8003a6e: 1d38 adds r0, r7, #4 - 8003a70: 497d ldr r1, [pc, #500] ; (8003c68 ) - 8003a72: f001 f8fb bl 8004c6c + 8004d90: f8b7 2078 ldrh.w r2, [r7, #120] ; 0x78 + 8004d94: f8b7 3080 ldrh.w r3, [r7, #128] ; 0x80 + 8004d98: 1d38 adds r0, r7, #4 + 8004d9a: 497c ldr r1, [pc, #496] ; (8004f8c ) + 8004d9c: f001 f910 bl 8005fc0 LCD_ShowString(0,66+16,str,16,RED,RED); - 8003a76: 1d3a adds r2, r7, #4 - 8003a78: f44f 4378 mov.w r3, #63488 ; 0xf800 - 8003a7c: 9301 str r3, [sp, #4] - 8003a7e: f44f 4378 mov.w r3, #63488 ; 0xf800 - 8003a82: 9300 str r3, [sp, #0] - 8003a84: 2310 movs r3, #16 - 8003a86: 2152 movs r1, #82 ; 0x52 - 8003a88: 2000 movs r0, #0 - 8003a8a: f7ff fc8f bl 80033ac + 8004da0: 1d3a adds r2, r7, #4 + 8004da2: f44f 4378 mov.w r3, #63488 ; 0xf800 + 8004da6: 9301 str r3, [sp, #4] + 8004da8: f44f 4378 mov.w r3, #63488 ; 0xf800 + 8004dac: 9300 str r3, [sp, #0] + 8004dae: 2310 movs r3, #16 + 8004db0: 2152 movs r1, #82 ; 0x52 + 8004db2: 2000 movs r0, #0 + 8004db4: f7ff fb88 bl 80044c8 } } if(step==3) - 8003a8e: f8b7 3086 ldrh.w r3, [r7, #134] ; 0x86 - 8003a92: 2b03 cmp r3, #3 - 8003a94: d10f bne.n 8003ab6 + 8004db8: f8b7 3086 ldrh.w r3, [r7, #134] ; 0x86 + 8004dbc: 2b03 cmp r3, #3 + 8004dbe: d10f bne.n 8004de0 { if(TPEN==1) - 8003a96: f44f 6180 mov.w r1, #1024 ; 0x400 - 8003a9a: 486f ldr r0, [pc, #444] ; (8003c58 ) - 8003a9c: f7fe f92a bl 8001cf4 - 8003aa0: 4603 mov r3, r0 - 8003aa2: 2b01 cmp r3, #1 - 8003aa4: d107 bne.n 8003ab6 + 8004dc0: f44f 6180 mov.w r1, #1024 ; 0x400 + 8004dc4: 486d ldr r0, [pc, #436] ; (8004f7c ) + 8004dc6: f7fd f805 bl 8001dd4 + 8004dca: 4603 mov r3, r0 + 8004dcc: 2b01 cmp r3, #1 + 8004dce: d107 bne.n 8004de0 { step+=1; - 8003aa6: f8b7 3086 ldrh.w r3, [r7, #134] ; 0x86 - 8003aaa: 3301 adds r3, #1 - 8003aac: f8a7 3086 strh.w r3, [r7, #134] ; 0x86 + 8004dd0: f8b7 3086 ldrh.w r3, [r7, #134] ; 0x86 + 8004dd4: 3301 adds r3, #1 + 8004dd6: f8a7 3086 strh.w r3, [r7, #134] ; 0x86 r=10; - 8003ab0: 230a movs r3, #10 - 8003ab2: f8a7 3084 strh.w r3, [r7, #132] ; 0x84 + 8004dda: 230a movs r3, #10 + 8004ddc: f8a7 3084 strh.w r3, [r7, #132] ; 0x84 } } if(step==4) - 8003ab6: f8b7 3086 ldrh.w r3, [r7, #134] ; 0x86 - 8003aba: 2b04 cmp r3, #4 - 8003abc: d129 bne.n 8003b12 + 8004de0: f8b7 3086 ldrh.w r3, [r7, #134] ; 0x86 + 8004de4: 2b04 cmp r3, #4 + 8004de6: d129 bne.n 8004e3c { TP_DrwaTrage(30,210,r); - 8003abe: f8b7 3084 ldrh.w r3, [r7, #132] ; 0x84 - 8003ac2: 461a mov r2, r3 - 8003ac4: 21d2 movs r1, #210 ; 0xd2 - 8003ac6: 201e movs r0, #30 - 8003ac8: f7ff fea2 bl 8003810 + 8004de8: f8b7 3084 ldrh.w r3, [r7, #132] ; 0x84 + 8004dec: 461a mov r2, r3 + 8004dee: 21d2 movs r1, #210 ; 0xd2 + 8004df0: 201e movs r0, #30 + 8004df2: f7ff fe8f bl 8004b14 if(r==0) - 8003acc: f8b7 3084 ldrh.w r3, [r7, #132] ; 0x84 - 8003ad0: 2b00 cmp r3, #0 - 8003ad2: d11e bne.n 8003b12 + 8004df6: f8b7 3084 ldrh.w r3, [r7, #132] ; 0x84 + 8004dfa: 2b00 cmp r3, #0 + 8004dfc: d11e bne.n 8004e3c { step+=1; - 8003ad4: f8b7 3086 ldrh.w r3, [r7, #134] ; 0x86 - 8003ad8: 3301 adds r3, #1 - 8003ada: f8a7 3086 strh.w r3, [r7, #134] ; 0x86 + 8004dfe: f8b7 3086 ldrh.w r3, [r7, #134] ; 0x86 + 8004e02: 3301 adds r3, #1 + 8004e04: f8a7 3086 strh.w r3, [r7, #134] ; 0x86 y3=y_adc; - 8003ade: 887b ldrh r3, [r7, #2] - 8003ae0: f8a7 307e strh.w r3, [r7, #126] ; 0x7e + 8004e08: 887b ldrh r3, [r7, #2] + 8004e0a: f8a7 307e strh.w r3, [r7, #126] ; 0x7e x3=x_adc; - 8003ae4: 883b ldrh r3, [r7, #0] - 8003ae6: f8a7 3076 strh.w r3, [r7, #118] ; 0x76 + 8004e0e: 883b ldrh r3, [r7, #0] + 8004e10: f8a7 3076 strh.w r3, [r7, #118] ; 0x76 sprintf(str,"point_3 x:%d y:%d",x3,y3); - 8003aea: f8b7 2076 ldrh.w r2, [r7, #118] ; 0x76 - 8003aee: f8b7 307e ldrh.w r3, [r7, #126] ; 0x7e - 8003af2: 1d38 adds r0, r7, #4 - 8003af4: 495d ldr r1, [pc, #372] ; (8003c6c ) - 8003af6: f001 f8b9 bl 8004c6c + 8004e14: f8b7 2076 ldrh.w r2, [r7, #118] ; 0x76 + 8004e18: f8b7 307e ldrh.w r3, [r7, #126] ; 0x7e + 8004e1c: 1d38 adds r0, r7, #4 + 8004e1e: 495c ldr r1, [pc, #368] ; (8004f90 ) + 8004e20: f001 f8ce bl 8005fc0 LCD_ShowString(0,66+16+16,str,16,RED,RED); - 8003afa: 1d3a adds r2, r7, #4 - 8003afc: f44f 4378 mov.w r3, #63488 ; 0xf800 - 8003b00: 9301 str r3, [sp, #4] - 8003b02: f44f 4378 mov.w r3, #63488 ; 0xf800 - 8003b06: 9300 str r3, [sp, #0] - 8003b08: 2310 movs r3, #16 - 8003b0a: 2162 movs r1, #98 ; 0x62 - 8003b0c: 2000 movs r0, #0 - 8003b0e: f7ff fc4d bl 80033ac + 8004e24: 1d3a adds r2, r7, #4 + 8004e26: f44f 4378 mov.w r3, #63488 ; 0xf800 + 8004e2a: 9301 str r3, [sp, #4] + 8004e2c: f44f 4378 mov.w r3, #63488 ; 0xf800 + 8004e30: 9300 str r3, [sp, #0] + 8004e32: 2310 movs r3, #16 + 8004e34: 2162 movs r1, #98 ; 0x62 + 8004e36: 2000 movs r0, #0 + 8004e38: f7ff fb46 bl 80044c8 } } if(step==5) - 8003b12: f8b7 3086 ldrh.w r3, [r7, #134] ; 0x86 - 8003b16: 2b05 cmp r3, #5 - 8003b18: d10f bne.n 8003b3a + 8004e3c: f8b7 3086 ldrh.w r3, [r7, #134] ; 0x86 + 8004e40: 2b05 cmp r3, #5 + 8004e42: d10f bne.n 8004e64 { if(TPEN==1) - 8003b1a: f44f 6180 mov.w r1, #1024 ; 0x400 - 8003b1e: 484e ldr r0, [pc, #312] ; (8003c58 ) - 8003b20: f7fe f8e8 bl 8001cf4 - 8003b24: 4603 mov r3, r0 - 8003b26: 2b01 cmp r3, #1 - 8003b28: d107 bne.n 8003b3a + 8004e44: f44f 6180 mov.w r1, #1024 ; 0x400 + 8004e48: 484c ldr r0, [pc, #304] ; (8004f7c ) + 8004e4a: f7fc ffc3 bl 8001dd4 + 8004e4e: 4603 mov r3, r0 + 8004e50: 2b01 cmp r3, #1 + 8004e52: d107 bne.n 8004e64 { step+=1; - 8003b2a: f8b7 3086 ldrh.w r3, [r7, #134] ; 0x86 - 8003b2e: 3301 adds r3, #1 - 8003b30: f8a7 3086 strh.w r3, [r7, #134] ; 0x86 + 8004e54: f8b7 3086 ldrh.w r3, [r7, #134] ; 0x86 + 8004e58: 3301 adds r3, #1 + 8004e5a: f8a7 3086 strh.w r3, [r7, #134] ; 0x86 r=10; - 8003b34: 230a movs r3, #10 - 8003b36: f8a7 3084 strh.w r3, [r7, #132] ; 0x84 + 8004e5e: 230a movs r3, #10 + 8004e60: f8a7 3084 strh.w r3, [r7, #132] ; 0x84 } } if(step==6) - 8003b3a: f8b7 3086 ldrh.w r3, [r7, #134] ; 0x86 - 8003b3e: 2b06 cmp r3, #6 - 8003b40: d12a bne.n 8003b98 + 8004e64: f8b7 3086 ldrh.w r3, [r7, #134] ; 0x86 + 8004e68: 2b06 cmp r3, #6 + 8004e6a: d12a bne.n 8004ec2 { TP_DrwaTrage(290,210,r); - 8003b42: f8b7 3084 ldrh.w r3, [r7, #132] ; 0x84 - 8003b46: 461a mov r2, r3 - 8003b48: 21d2 movs r1, #210 ; 0xd2 - 8003b4a: f44f 7091 mov.w r0, #290 ; 0x122 - 8003b4e: f7ff fe5f bl 8003810 + 8004e6c: f8b7 3084 ldrh.w r3, [r7, #132] ; 0x84 + 8004e70: 461a mov r2, r3 + 8004e72: 21d2 movs r1, #210 ; 0xd2 + 8004e74: f44f 7091 mov.w r0, #290 ; 0x122 + 8004e78: f7ff fe4c bl 8004b14 if(r==0) - 8003b52: f8b7 3084 ldrh.w r3, [r7, #132] ; 0x84 - 8003b56: 2b00 cmp r3, #0 - 8003b58: d11e bne.n 8003b98 + 8004e7c: f8b7 3084 ldrh.w r3, [r7, #132] ; 0x84 + 8004e80: 2b00 cmp r3, #0 + 8004e82: d11e bne.n 8004ec2 { step+=1; - 8003b5a: f8b7 3086 ldrh.w r3, [r7, #134] ; 0x86 - 8003b5e: 3301 adds r3, #1 - 8003b60: f8a7 3086 strh.w r3, [r7, #134] ; 0x86 + 8004e84: f8b7 3086 ldrh.w r3, [r7, #134] ; 0x86 + 8004e88: 3301 adds r3, #1 + 8004e8a: f8a7 3086 strh.w r3, [r7, #134] ; 0x86 y4=y_adc; - 8003b64: 887b ldrh r3, [r7, #2] - 8003b66: f8a7 307c strh.w r3, [r7, #124] ; 0x7c + 8004e8e: 887b ldrh r3, [r7, #2] + 8004e90: f8a7 307c strh.w r3, [r7, #124] ; 0x7c x4=x_adc; - 8003b6a: 883b ldrh r3, [r7, #0] - 8003b6c: f8a7 3074 strh.w r3, [r7, #116] ; 0x74 + 8004e94: 883b ldrh r3, [r7, #0] + 8004e96: f8a7 3074 strh.w r3, [r7, #116] ; 0x74 sprintf(str,"point_4 x:%d y:%d",x4,y4); - 8003b70: f8b7 2074 ldrh.w r2, [r7, #116] ; 0x74 - 8003b74: f8b7 307c ldrh.w r3, [r7, #124] ; 0x7c - 8003b78: 1d38 adds r0, r7, #4 - 8003b7a: 493d ldr r1, [pc, #244] ; (8003c70 ) - 8003b7c: f001 f876 bl 8004c6c + 8004e9a: f8b7 2074 ldrh.w r2, [r7, #116] ; 0x74 + 8004e9e: f8b7 307c ldrh.w r3, [r7, #124] ; 0x7c + 8004ea2: 1d38 adds r0, r7, #4 + 8004ea4: 493b ldr r1, [pc, #236] ; (8004f94 ) + 8004ea6: f001 f88b bl 8005fc0 LCD_ShowString(0,66+16+16+16,str,16,RED,RED); - 8003b80: 1d3a adds r2, r7, #4 - 8003b82: f44f 4378 mov.w r3, #63488 ; 0xf800 - 8003b86: 9301 str r3, [sp, #4] - 8003b88: f44f 4378 mov.w r3, #63488 ; 0xf800 - 8003b8c: 9300 str r3, [sp, #0] - 8003b8e: 2310 movs r3, #16 - 8003b90: 2172 movs r1, #114 ; 0x72 - 8003b92: 2000 movs r0, #0 - 8003b94: f7ff fc0a bl 80033ac + 8004eaa: 1d3a adds r2, r7, #4 + 8004eac: f44f 4378 mov.w r3, #63488 ; 0xf800 + 8004eb0: 9301 str r3, [sp, #4] + 8004eb2: f44f 4378 mov.w r3, #63488 ; 0xf800 + 8004eb6: 9300 str r3, [sp, #0] + 8004eb8: 2310 movs r3, #16 + 8004eba: 2172 movs r1, #114 ; 0x72 + 8004ebc: 2000 movs r0, #0 + 8004ebe: f7ff fb03 bl 80044c8 } } if(step==7) - 8003b98: f8b7 3086 ldrh.w r3, [r7, #134] ; 0x86 - 8003b9c: 2b07 cmp r3, #7 - 8003b9e: d10f bne.n 8003bc0 + 8004ec2: f8b7 3086 ldrh.w r3, [r7, #134] ; 0x86 + 8004ec6: 2b07 cmp r3, #7 + 8004ec8: d10f bne.n 8004eea { if(TPEN==1) - 8003ba0: f44f 6180 mov.w r1, #1024 ; 0x400 - 8003ba4: 482c ldr r0, [pc, #176] ; (8003c58 ) - 8003ba6: f7fe f8a5 bl 8001cf4 - 8003baa: 4603 mov r3, r0 - 8003bac: 2b01 cmp r3, #1 - 8003bae: d107 bne.n 8003bc0 + 8004eca: f44f 6180 mov.w r1, #1024 ; 0x400 + 8004ece: 482b ldr r0, [pc, #172] ; (8004f7c ) + 8004ed0: f7fc ff80 bl 8001dd4 + 8004ed4: 4603 mov r3, r0 + 8004ed6: 2b01 cmp r3, #1 + 8004ed8: d107 bne.n 8004eea { step+=1; - 8003bb0: f8b7 3086 ldrh.w r3, [r7, #134] ; 0x86 - 8003bb4: 3301 adds r3, #1 - 8003bb6: f8a7 3086 strh.w r3, [r7, #134] ; 0x86 + 8004eda: f8b7 3086 ldrh.w r3, [r7, #134] ; 0x86 + 8004ede: 3301 adds r3, #1 + 8004ee0: f8a7 3086 strh.w r3, [r7, #134] ; 0x86 r=10; - 8003bba: 230a movs r3, #10 - 8003bbc: f8a7 3084 strh.w r3, [r7, #132] ; 0x84 + 8004ee4: 230a movs r3, #10 + 8004ee6: f8a7 3084 strh.w r3, [r7, #132] ; 0x84 } } if(step==8) - 8003bc0: f8b7 3086 ldrh.w r3, [r7, #134] ; 0x86 - 8003bc4: 2b08 cmp r3, #8 - 8003bc6: f040 8112 bne.w 8003dee + 8004eea: f8b7 3086 ldrh.w r3, [r7, #134] ; 0x86 + 8004eee: 2b08 cmp r3, #8 + 8004ef0: f040 811a bne.w 8005128 { xd=((x1+x3)/2); - 8003bca: f8b7 207a ldrh.w r2, [r7, #122] ; 0x7a - 8003bce: f8b7 3076 ldrh.w r3, [r7, #118] ; 0x76 - 8003bd2: 4413 add r3, r2 - 8003bd4: 0fda lsrs r2, r3, #31 - 8003bd6: 4413 add r3, r2 - 8003bd8: 105b asrs r3, r3, #1 - 8003bda: 66bb str r3, [r7, #104] ; 0x68 + 8004ef4: f8b7 207a ldrh.w r2, [r7, #122] ; 0x7a + 8004ef8: f8b7 3076 ldrh.w r3, [r7, #118] ; 0x76 + 8004efc: 4413 add r3, r2 + 8004efe: 0fda lsrs r2, r3, #31 + 8004f00: 4413 add r3, r2 + 8004f02: 105b asrs r3, r3, #1 + 8004f04: 66bb str r3, [r7, #104] ; 0x68 xl=((x2+x4)/2); - 8003bdc: f8b7 2078 ldrh.w r2, [r7, #120] ; 0x78 - 8003be0: f8b7 3074 ldrh.w r3, [r7, #116] ; 0x74 - 8003be4: 4413 add r3, r2 - 8003be6: 0fda lsrs r2, r3, #31 - 8003be8: 4413 add r3, r2 - 8003bea: 105b asrs r3, r3, #1 - 8003bec: 667b str r3, [r7, #100] ; 0x64 + 8004f06: f8b7 2078 ldrh.w r2, [r7, #120] ; 0x78 + 8004f0a: f8b7 3074 ldrh.w r3, [r7, #116] ; 0x74 + 8004f0e: 4413 add r3, r2 + 8004f10: 0fda lsrs r2, r3, #31 + 8004f12: 4413 add r3, r2 + 8004f14: 105b asrs r3, r3, #1 + 8004f16: 667b str r3, [r7, #100] ; 0x64 yd=((y1+y2)/2); - 8003bee: f8b7 2082 ldrh.w r2, [r7, #130] ; 0x82 - 8003bf2: f8b7 3080 ldrh.w r3, [r7, #128] ; 0x80 - 8003bf6: 4413 add r3, r2 - 8003bf8: 0fda lsrs r2, r3, #31 - 8003bfa: 4413 add r3, r2 - 8003bfc: 105b asrs r3, r3, #1 - 8003bfe: 663b str r3, [r7, #96] ; 0x60 + 8004f18: f8b7 2082 ldrh.w r2, [r7, #130] ; 0x82 + 8004f1c: f8b7 3080 ldrh.w r3, [r7, #128] ; 0x80 + 8004f20: 4413 add r3, r2 + 8004f22: 0fda lsrs r2, r3, #31 + 8004f24: 4413 add r3, r2 + 8004f26: 105b asrs r3, r3, #1 + 8004f28: 663b str r3, [r7, #96] ; 0x60 yl=((y3+y4)/2); - 8003c00: f8b7 207e ldrh.w r2, [r7, #126] ; 0x7e - 8003c04: f8b7 307c ldrh.w r3, [r7, #124] ; 0x7c - 8003c08: 4413 add r3, r2 - 8003c0a: 0fda lsrs r2, r3, #31 - 8003c0c: 4413 add r3, r2 - 8003c0e: 105b asrs r3, r3, #1 - 8003c10: 65fb str r3, [r7, #92] ; 0x5c + 8004f2a: f8b7 207e ldrh.w r2, [r7, #126] ; 0x7e + 8004f2e: f8b7 307c ldrh.w r3, [r7, #124] ; 0x7c + 8004f32: 4413 add r3, r2 + 8004f34: 0fda lsrs r2, r3, #31 + 8004f36: 4413 add r3, r2 + 8004f38: 105b asrs r3, r3, #1 + 8004f3a: 65fb str r3, [r7, #92] ; 0x5c x5=xl-xd; - 8003c12: 6e7a ldr r2, [r7, #100] ; 0x64 - 8003c14: 6ebb ldr r3, [r7, #104] ; 0x68 - 8003c16: 1ad3 subs r3, r2, r3 - 8003c18: 65bb str r3, [r7, #88] ; 0x58 + 8004f3c: 6e7a ldr r2, [r7, #100] ; 0x64 + 8004f3e: 6ebb ldr r3, [r7, #104] ; 0x68 + 8004f40: 1ad3 subs r3, r2, r3 + 8004f42: 65bb str r3, [r7, #88] ; 0x58 y5=yl-yd; - 8003c1a: 6dfa ldr r2, [r7, #92] ; 0x5c - 8003c1c: 6e3b ldr r3, [r7, #96] ; 0x60 - 8003c1e: 1ad3 subs r3, r2, r3 - 8003c20: 657b str r3, [r7, #84] ; 0x54 + 8004f44: 6dfa ldr r2, [r7, #92] ; 0x5c + 8004f46: 6e3b ldr r3, [r7, #96] ; 0x60 + 8004f48: 1ad3 subs r3, r2, r3 + 8004f4a: 657b str r3, [r7, #84] ; 0x54 if(x5<0||y5<0) - 8003c22: 6dbb ldr r3, [r7, #88] ; 0x58 - 8003c24: 2b00 cmp r3, #0 - 8003c26: db02 blt.n 8003c2e - 8003c28: 6d7b ldr r3, [r7, #84] ; 0x54 - 8003c2a: 2b00 cmp r3, #0 - 8003c2c: da24 bge.n 8003c78 + 8004f4c: 6dbb ldr r3, [r7, #88] ; 0x58 + 8004f4e: 2b00 cmp r3, #0 + 8004f50: db02 blt.n 8004f58 + 8004f52: 6d7b ldr r3, [r7, #84] ; 0x54 + 8004f54: 2b00 cmp r3, #0 + 8004f56: da21 bge.n 8004f9c { sprintf(str,"ERROR"); - 8003c2e: 1d3b adds r3, r7, #4 - 8003c30: 4910 ldr r1, [pc, #64] ; (8003c74 ) - 8003c32: 4618 mov r0, r3 - 8003c34: f001 f81a bl 8004c6c + 8004f58: 1d3b adds r3, r7, #4 + 8004f5a: 490f ldr r1, [pc, #60] ; (8004f98 ) + 8004f5c: 4618 mov r0, r3 + 8004f5e: f001 f82f bl 8005fc0 LCD_ShowString(0,66+16+16+16+16,str,16,RED, GRAY); - 8003c38: 1d3a adds r2, r7, #4 - 8003c3a: f248 4330 movw r3, #33840 ; 0x8430 - 8003c3e: 9301 str r3, [sp, #4] - 8003c40: f44f 4378 mov.w r3, #63488 ; 0xf800 - 8003c44: 9300 str r3, [sp, #0] - 8003c46: 2310 movs r3, #16 - 8003c48: 2182 movs r1, #130 ; 0x82 - 8003c4a: 2000 movs r0, #0 - 8003c4c: f7ff fbae bl 80033ac + 8004f62: 1d3a adds r2, r7, #4 + 8004f64: f248 4330 movw r3, #33840 ; 0x8430 + 8004f68: 9301 str r3, [sp, #4] + 8004f6a: f44f 4378 mov.w r3, #63488 ; 0xf800 + 8004f6e: 9300 str r3, [sp, #0] + 8004f70: 2310 movs r3, #16 + 8004f72: 2182 movs r1, #130 ; 0x82 + 8004f74: 2000 movs r0, #0 + 8004f76: f7ff faa7 bl 80044c8 { - 8003c50: e0c8 b.n 8003de4 - 8003c52: bf00 nop - 8003c54: 08006f88 .word 0x08006f88 - 8003c58: 40011c00 .word 0x40011c00 - 8003c5c: 08006fa4 .word 0x08006fa4 - 8003c60: 08006fb0 .word 0x08006fb0 - 8003c64: 08006fbc .word 0x08006fbc - 8003c68: 08006fd0 .word 0x08006fd0 - 8003c6c: 08006fe4 .word 0x08006fe4 - 8003c70: 08006ff8 .word 0x08006ff8 - 8003c74: 0800700c .word 0x0800700c + 8004f7a: e0cb b.n 8005114 + 8004f7c: 40011c00 .word 0x40011c00 + 8004f80: 080082fc .word 0x080082fc + 8004f84: 08008308 .word 0x08008308 + 8004f88: 08008314 .word 0x08008314 + 8004f8c: 08008328 .word 0x08008328 + 8004f90: 0800833c .word 0x0800833c + 8004f94: 08008350 .word 0x08008350 + 8004f98: 08008364 .word 0x08008364 }else { acc_x=x5/260.0; - 8003c78: 6db8 ldr r0, [r7, #88] ; 0x58 - 8003c7a: f7fc fc2f bl 80004dc <__aeabi_i2d> - 8003c7e: f04f 0200 mov.w r2, #0 - 8003c82: 4b60 ldr r3, [pc, #384] ; (8003e04 ) - 8003c84: f7fc fdbe bl 8000804 <__aeabi_ddiv> - 8003c88: 4602 mov r2, r0 - 8003c8a: 460b mov r3, r1 - 8003c8c: 4610 mov r0, r2 - 8003c8e: 4619 mov r1, r3 - 8003c90: f7fc ff66 bl 8000b60 <__aeabi_d2f> - 8003c94: 4603 mov r3, r0 - 8003c96: 653b str r3, [r7, #80] ; 0x50 + 8004f9c: 6db8 ldr r0, [r7, #88] ; 0x58 + 8004f9e: f7fb fa9d bl 80004dc <__aeabi_i2d> + 8004fa2: f04f 0200 mov.w r2, #0 + 8004fa6: 4b66 ldr r3, [pc, #408] ; (8005140 ) + 8004fa8: f7fb fc2c bl 8000804 <__aeabi_ddiv> + 8004fac: 4602 mov r2, r0 + 8004fae: 460b mov r3, r1 + 8004fb0: 4610 mov r0, r2 + 8004fb2: 4619 mov r1, r3 + 8004fb4: f7fb fdd4 bl 8000b60 <__aeabi_d2f> + 8004fb8: 4603 mov r3, r0 + 8004fba: 653b str r3, [r7, #80] ; 0x50 acc_y=y5/180.0; - 8003c98: 6d78 ldr r0, [r7, #84] ; 0x54 - 8003c9a: f7fc fc1f bl 80004dc <__aeabi_i2d> - 8003c9e: f04f 0200 mov.w r2, #0 - 8003ca2: 4b59 ldr r3, [pc, #356] ; (8003e08 ) - 8003ca4: f7fc fdae bl 8000804 <__aeabi_ddiv> - 8003ca8: 4602 mov r2, r0 - 8003caa: 460b mov r3, r1 - 8003cac: 4610 mov r0, r2 - 8003cae: 4619 mov r1, r3 - 8003cb0: f7fc ff56 bl 8000b60 <__aeabi_d2f> - 8003cb4: 4603 mov r3, r0 - 8003cb6: 64fb str r3, [r7, #76] ; 0x4c + 8004fbc: 6d78 ldr r0, [r7, #84] ; 0x54 + 8004fbe: f7fb fa8d bl 80004dc <__aeabi_i2d> + 8004fc2: f04f 0200 mov.w r2, #0 + 8004fc6: 4b5f ldr r3, [pc, #380] ; (8005144 ) + 8004fc8: f7fb fc1c bl 8000804 <__aeabi_ddiv> + 8004fcc: 4602 mov r2, r0 + 8004fce: 460b mov r3, r1 + 8004fd0: 4610 mov r0, r2 + 8004fd2: 4619 mov r1, r3 + 8004fd4: f7fb fdc4 bl 8000b60 <__aeabi_d2f> + 8004fd8: 4603 mov r3, r0 + 8004fda: 64fb str r3, [r7, #76] ; 0x4c offset_x=(((xd/acc_x)-30)+((xl/acc_x)-290))/2; - 8003cb8: 6eb8 ldr r0, [r7, #104] ; 0x68 - 8003cba: f7fd f85b bl 8000d74 <__aeabi_i2f> - 8003cbe: 4603 mov r3, r0 - 8003cc0: 6d39 ldr r1, [r7, #80] ; 0x50 - 8003cc2: 4618 mov r0, r3 - 8003cc4: f7fd f95e bl 8000f84 <__aeabi_fdiv> - 8003cc8: 4603 mov r3, r0 - 8003cca: 4950 ldr r1, [pc, #320] ; (8003e0c ) - 8003ccc: 4618 mov r0, r3 - 8003cce: f7fc ff9b bl 8000c08 <__aeabi_fsub> - 8003cd2: 4603 mov r3, r0 - 8003cd4: 461c mov r4, r3 - 8003cd6: 6e78 ldr r0, [r7, #100] ; 0x64 - 8003cd8: f7fd f84c bl 8000d74 <__aeabi_i2f> - 8003cdc: 4603 mov r3, r0 - 8003cde: 6d39 ldr r1, [r7, #80] ; 0x50 - 8003ce0: 4618 mov r0, r3 - 8003ce2: f7fd f94f bl 8000f84 <__aeabi_fdiv> - 8003ce6: 4603 mov r3, r0 - 8003ce8: 4949 ldr r1, [pc, #292] ; (8003e10 ) - 8003cea: 4618 mov r0, r3 - 8003cec: f7fc ff8c bl 8000c08 <__aeabi_fsub> - 8003cf0: 4603 mov r3, r0 - 8003cf2: 4619 mov r1, r3 - 8003cf4: 4620 mov r0, r4 - 8003cf6: f7fc ff89 bl 8000c0c <__addsf3> - 8003cfa: 4603 mov r3, r0 - 8003cfc: f04f 4180 mov.w r1, #1073741824 ; 0x40000000 - 8003d00: 4618 mov r0, r3 - 8003d02: f7fd f93f bl 8000f84 <__aeabi_fdiv> - 8003d06: 4603 mov r3, r0 - 8003d08: 4618 mov r0, r3 - 8003d0a: f7fd f9d7 bl 80010bc <__aeabi_f2iz> - 8003d0e: 4603 mov r3, r0 - 8003d10: 64bb str r3, [r7, #72] ; 0x48 + 8004fdc: 6eb8 ldr r0, [r7, #104] ; 0x68 + 8004fde: f7fb fec9 bl 8000d74 <__aeabi_i2f> + 8004fe2: 4603 mov r3, r0 + 8004fe4: 6d39 ldr r1, [r7, #80] ; 0x50 + 8004fe6: 4618 mov r0, r3 + 8004fe8: f7fb ffcc bl 8000f84 <__aeabi_fdiv> + 8004fec: 4603 mov r3, r0 + 8004fee: 4956 ldr r1, [pc, #344] ; (8005148 ) + 8004ff0: 4618 mov r0, r3 + 8004ff2: f7fb fe09 bl 8000c08 <__aeabi_fsub> + 8004ff6: 4603 mov r3, r0 + 8004ff8: 461c mov r4, r3 + 8004ffa: 6e78 ldr r0, [r7, #100] ; 0x64 + 8004ffc: f7fb feba bl 8000d74 <__aeabi_i2f> + 8005000: 4603 mov r3, r0 + 8005002: 6d39 ldr r1, [r7, #80] ; 0x50 + 8005004: 4618 mov r0, r3 + 8005006: f7fb ffbd bl 8000f84 <__aeabi_fdiv> + 800500a: 4603 mov r3, r0 + 800500c: 494f ldr r1, [pc, #316] ; (800514c ) + 800500e: 4618 mov r0, r3 + 8005010: f7fb fdfa bl 8000c08 <__aeabi_fsub> + 8005014: 4603 mov r3, r0 + 8005016: 4619 mov r1, r3 + 8005018: 4620 mov r0, r4 + 800501a: f7fb fdf7 bl 8000c0c <__addsf3> + 800501e: 4603 mov r3, r0 + 8005020: f04f 4180 mov.w r1, #1073741824 ; 0x40000000 + 8005024: 4618 mov r0, r3 + 8005026: f7fb ffad bl 8000f84 <__aeabi_fdiv> + 800502a: 4603 mov r3, r0 + 800502c: 4618 mov r0, r3 + 800502e: f7fc f845 bl 80010bc <__aeabi_f2iz> + 8005032: 4603 mov r3, r0 + 8005034: 64bb str r3, [r7, #72] ; 0x48 offset_y=(((yd/acc_y)-30)+((yl/acc_y)-210))/2; - 8003d12: 6e38 ldr r0, [r7, #96] ; 0x60 - 8003d14: f7fd f82e bl 8000d74 <__aeabi_i2f> - 8003d18: 4603 mov r3, r0 - 8003d1a: 6cf9 ldr r1, [r7, #76] ; 0x4c - 8003d1c: 4618 mov r0, r3 - 8003d1e: f7fd f931 bl 8000f84 <__aeabi_fdiv> - 8003d22: 4603 mov r3, r0 - 8003d24: 4939 ldr r1, [pc, #228] ; (8003e0c ) - 8003d26: 4618 mov r0, r3 - 8003d28: f7fc ff6e bl 8000c08 <__aeabi_fsub> - 8003d2c: 4603 mov r3, r0 - 8003d2e: 461c mov r4, r3 - 8003d30: 6df8 ldr r0, [r7, #92] ; 0x5c - 8003d32: f7fd f81f bl 8000d74 <__aeabi_i2f> - 8003d36: 4603 mov r3, r0 - 8003d38: 6cf9 ldr r1, [r7, #76] ; 0x4c - 8003d3a: 4618 mov r0, r3 - 8003d3c: f7fd f922 bl 8000f84 <__aeabi_fdiv> - 8003d40: 4603 mov r3, r0 - 8003d42: 4934 ldr r1, [pc, #208] ; (8003e14 ) - 8003d44: 4618 mov r0, r3 - 8003d46: f7fc ff5f bl 8000c08 <__aeabi_fsub> - 8003d4a: 4603 mov r3, r0 - 8003d4c: 4619 mov r1, r3 - 8003d4e: 4620 mov r0, r4 - 8003d50: f7fc ff5c bl 8000c0c <__addsf3> - 8003d54: 4603 mov r3, r0 - 8003d56: f04f 4180 mov.w r1, #1073741824 ; 0x40000000 - 8003d5a: 4618 mov r0, r3 - 8003d5c: f7fd f912 bl 8000f84 <__aeabi_fdiv> - 8003d60: 4603 mov r3, r0 - 8003d62: 4618 mov r0, r3 - 8003d64: f7fd f9aa bl 80010bc <__aeabi_f2iz> - 8003d68: 4603 mov r3, r0 - 8003d6a: 647b str r3, [r7, #68] ; 0x44 + 8005036: 6e38 ldr r0, [r7, #96] ; 0x60 + 8005038: f7fb fe9c bl 8000d74 <__aeabi_i2f> + 800503c: 4603 mov r3, r0 + 800503e: 6cf9 ldr r1, [r7, #76] ; 0x4c + 8005040: 4618 mov r0, r3 + 8005042: f7fb ff9f bl 8000f84 <__aeabi_fdiv> + 8005046: 4603 mov r3, r0 + 8005048: 493f ldr r1, [pc, #252] ; (8005148 ) + 800504a: 4618 mov r0, r3 + 800504c: f7fb fddc bl 8000c08 <__aeabi_fsub> + 8005050: 4603 mov r3, r0 + 8005052: 461c mov r4, r3 + 8005054: 6df8 ldr r0, [r7, #92] ; 0x5c + 8005056: f7fb fe8d bl 8000d74 <__aeabi_i2f> + 800505a: 4603 mov r3, r0 + 800505c: 6cf9 ldr r1, [r7, #76] ; 0x4c + 800505e: 4618 mov r0, r3 + 8005060: f7fb ff90 bl 8000f84 <__aeabi_fdiv> + 8005064: 4603 mov r3, r0 + 8005066: 493a ldr r1, [pc, #232] ; (8005150 ) + 8005068: 4618 mov r0, r3 + 800506a: f7fb fdcd bl 8000c08 <__aeabi_fsub> + 800506e: 4603 mov r3, r0 + 8005070: 4619 mov r1, r3 + 8005072: 4620 mov r0, r4 + 8005074: f7fb fdca bl 8000c0c <__addsf3> + 8005078: 4603 mov r3, r0 + 800507a: f04f 4180 mov.w r1, #1073741824 ; 0x40000000 + 800507e: 4618 mov r0, r3 + 8005080: f7fb ff80 bl 8000f84 <__aeabi_fdiv> + 8005084: 4603 mov r3, r0 + 8005086: 4618 mov r0, r3 + 8005088: f7fc f818 bl 80010bc <__aeabi_f2iz> + 800508c: 4603 mov r3, r0 + 800508e: 647b str r3, [r7, #68] ; 0x44 tconfig.x_acc=acc_x; - 8003d6c: 4a2a ldr r2, [pc, #168] ; (8003e18 ) - 8003d6e: 6d3b ldr r3, [r7, #80] ; 0x50 - 8003d70: 6053 str r3, [r2, #4] + 8005090: 4a30 ldr r2, [pc, #192] ; (8005154 ) + 8005092: 6d3b ldr r3, [r7, #80] ; 0x50 + 8005094: 6053 str r3, [r2, #4] tconfig.x_offset=offset_x; - 8003d72: 4a29 ldr r2, [pc, #164] ; (8003e18 ) - 8003d74: 6cbb ldr r3, [r7, #72] ; 0x48 - 8003d76: 60d3 str r3, [r2, #12] + 8005096: 4a2f ldr r2, [pc, #188] ; (8005154 ) + 8005098: 6cbb ldr r3, [r7, #72] ; 0x48 + 800509a: 60d3 str r3, [r2, #12] tconfig.y_acc=acc_y; - 8003d78: 4a27 ldr r2, [pc, #156] ; (8003e18 ) - 8003d7a: 6cfb ldr r3, [r7, #76] ; 0x4c - 8003d7c: 6093 str r3, [r2, #8] + 800509c: 4a2d ldr r2, [pc, #180] ; (8005154 ) + 800509e: 6cfb ldr r3, [r7, #76] ; 0x4c + 80050a0: 6093 str r3, [r2, #8] tconfig.y_offset=offset_y; - 8003d7e: 4a26 ldr r2, [pc, #152] ; (8003e18 ) - 8003d80: 6c7b ldr r3, [r7, #68] ; 0x44 - 8003d82: 6113 str r3, [r2, #16] + 80050a2: 4a2c ldr r2, [pc, #176] ; (8005154 ) + 80050a4: 6c7b ldr r3, [r7, #68] ; 0x44 + 80050a6: 6113 str r3, [r2, #16] + + tconfig.begin=0xab; + 80050a8: 4b2a ldr r3, [pc, #168] ; (8005154 ) + 80050aa: 22ab movs r2, #171 ; 0xab + 80050ac: 701a strb r2, [r3, #0] + tconfig.end=0xcd; + 80050ae: 4b29 ldr r3, [pc, #164] ; (8005154 ) + 80050b0: 22cd movs r2, #205 ; 0xcd + 80050b2: 751a strb r2, [r3, #20] + sprintf(str,"x_acc=%f y_acc=%f",acc_x,acc_y); - 8003d84: 6d38 ldr r0, [r7, #80] ; 0x50 - 8003d86: f7fc fbbb bl 8000500 <__aeabi_f2d> - 8003d8a: 4604 mov r4, r0 - 8003d8c: 460d mov r5, r1 - 8003d8e: 6cf8 ldr r0, [r7, #76] ; 0x4c - 8003d90: f7fc fbb6 bl 8000500 <__aeabi_f2d> - 8003d94: 4602 mov r2, r0 - 8003d96: 460b mov r3, r1 - 8003d98: 1d38 adds r0, r7, #4 - 8003d9a: e9cd 2300 strd r2, r3, [sp] - 8003d9e: 4622 mov r2, r4 - 8003da0: 462b mov r3, r5 - 8003da2: 491e ldr r1, [pc, #120] ; (8003e1c ) - 8003da4: f000 ff62 bl 8004c6c + 80050b4: 6d38 ldr r0, [r7, #80] ; 0x50 + 80050b6: f7fb fa23 bl 8000500 <__aeabi_f2d> + 80050ba: 4604 mov r4, r0 + 80050bc: 460d mov r5, r1 + 80050be: 6cf8 ldr r0, [r7, #76] ; 0x4c + 80050c0: f7fb fa1e bl 8000500 <__aeabi_f2d> + 80050c4: 4602 mov r2, r0 + 80050c6: 460b mov r3, r1 + 80050c8: 1d38 adds r0, r7, #4 + 80050ca: e9cd 2300 strd r2, r3, [sp] + 80050ce: 4622 mov r2, r4 + 80050d0: 462b mov r3, r5 + 80050d2: 4921 ldr r1, [pc, #132] ; (8005158 ) + 80050d4: f000 ff74 bl 8005fc0 LCD_ShowString(0,66+16+16+16+16,str,16,RED,RED); - 8003da8: 1d3a adds r2, r7, #4 - 8003daa: f44f 4378 mov.w r3, #63488 ; 0xf800 - 8003dae: 9301 str r3, [sp, #4] - 8003db0: f44f 4378 mov.w r3, #63488 ; 0xf800 - 8003db4: 9300 str r3, [sp, #0] - 8003db6: 2310 movs r3, #16 - 8003db8: 2182 movs r1, #130 ; 0x82 - 8003dba: 2000 movs r0, #0 - 8003dbc: f7ff faf6 bl 80033ac + 80050d8: 1d3a adds r2, r7, #4 + 80050da: f44f 4378 mov.w r3, #63488 ; 0xf800 + 80050de: 9301 str r3, [sp, #4] + 80050e0: f44f 4378 mov.w r3, #63488 ; 0xf800 + 80050e4: 9300 str r3, [sp, #0] + 80050e6: 2310 movs r3, #16 + 80050e8: 2182 movs r1, #130 ; 0x82 + 80050ea: 2000 movs r0, #0 + 80050ec: f7ff f9ec bl 80044c8 sprintf(str,"x_offset=%d y_offset=%d",offset_x,offset_y); - 8003dc0: 1d38 adds r0, r7, #4 - 8003dc2: 6c7b ldr r3, [r7, #68] ; 0x44 - 8003dc4: 6cba ldr r2, [r7, #72] ; 0x48 - 8003dc6: 4916 ldr r1, [pc, #88] ; (8003e20 ) - 8003dc8: f000 ff50 bl 8004c6c + 80050f0: 1d38 adds r0, r7, #4 + 80050f2: 6c7b ldr r3, [r7, #68] ; 0x44 + 80050f4: 6cba ldr r2, [r7, #72] ; 0x48 + 80050f6: 4919 ldr r1, [pc, #100] ; (800515c ) + 80050f8: f000 ff62 bl 8005fc0 LCD_ShowString(0,66+16+16+16+16+16,str,16,RED,RED); - 8003dcc: 1d3a adds r2, r7, #4 - 8003dce: f44f 4378 mov.w r3, #63488 ; 0xf800 - 8003dd2: 9301 str r3, [sp, #4] - 8003dd4: f44f 4378 mov.w r3, #63488 ; 0xf800 - 8003dd8: 9300 str r3, [sp, #0] - 8003dda: 2310 movs r3, #16 - 8003ddc: 2192 movs r1, #146 ; 0x92 - 8003dde: 2000 movs r0, #0 - 8003de0: f7ff fae4 bl 80033ac + 80050fc: 1d3a adds r2, r7, #4 + 80050fe: f44f 4378 mov.w r3, #63488 ; 0xf800 + 8005102: 9301 str r3, [sp, #4] + 8005104: f44f 4378 mov.w r3, #63488 ; 0xf800 + 8005108: 9300 str r3, [sp, #0] + 800510a: 2310 movs r3, #16 + 800510c: 2192 movs r1, #146 ; 0x92 + 800510e: 2000 movs r0, #0 + 8005110: f7ff f9da bl 80044c8 } - + EEPROM_WRITE_BATY(16,(char *)&tconfig,sizeof(touch_config)); + 8005114: 2218 movs r2, #24 + 8005116: 490f ldr r1, [pc, #60] ; (8005154 ) + 8005118: 2010 movs r0, #16 + 800511a: f7ff fac1 bl 80046a0 HAL_Delay(1000); - 8003de4: f44f 707a mov.w r0, #1000 ; 0x3e8 - 8003de8: f7fd fce8 bl 80017bc - 8003dec: e006 b.n 8003dfc - while(HAL_GetTick() - 8003df2: 4602 mov r2, r0 - 8003df4: 6f3b ldr r3, [r7, #112] ; 0x70 - 8003df6: 4293 cmp r3, r2 - 8003df8: f63f ad89 bhi.w 800390e + 800511e: f44f 707a mov.w r0, #1000 ; 0x3e8 + 8005122: f7fc fbbb bl 800189c return; + 8005126: e008 b.n 800513a + while(HAL_GetTick() + 800512c: 4602 mov r2, r0 + 800512e: 6f3b ldr r3, [r7, #112] ; 0x70 + 8005130: 4293 cmp r3, r2 + 8005132: f63f ad81 bhi.w 8004c38 + 8005136: e000 b.n 800513a + return; + 8005138: bf00 nop } } } - 8003dfc: 3788 adds r7, #136 ; 0x88 - 8003dfe: 46bd mov sp, r7 - 8003e00: bdb0 pop {r4, r5, r7, pc} - 8003e02: bf00 nop - 8003e04: 40704000 .word 0x40704000 - 8003e08: 40668000 .word 0x40668000 - 8003e0c: 41f00000 .word 0x41f00000 - 8003e10: 43910000 .word 0x43910000 - 8003e14: 43520000 .word 0x43520000 - 8003e18: 20000260 .word 0x20000260 - 8003e1c: 08007014 .word 0x08007014 - 8003e20: 08007028 .word 0x08007028 + 800513a: 3788 adds r7, #136 ; 0x88 + 800513c: 46bd mov sp, r7 + 800513e: bdb0 pop {r4, r5, r7, pc} + 8005140: 40704000 .word 0x40704000 + 8005144: 40668000 .word 0x40668000 + 8005148: 41f00000 .word 0x41f00000 + 800514c: 43910000 .word 0x43910000 + 8005150: 43520000 .word 0x43520000 + 8005154: 200002c8 .word 0x200002c8 + 8005158: 0800836c .word 0x0800836c + 800515c: 08008380 .word 0x08008380 -08003e24 : +08005160 : extern touch_device t0; task run_loop;//主循环状态机 void main_app() { - 8003e24: b580 push {r7, lr} - 8003e26: b086 sub sp, #24 - 8003e28: af04 add r7, sp, #16 + 8005160: b580 push {r7, lr} + 8005162: b086 sub sp, #24 + 8005164: af04 add r7, sp, #16 LCDx_Init(); - 8003e2a: f7fe ff1b bl 8002c64 + 8005166: f7fe fe0b bl 8003d80 + EPPROM_SLOWWRITE_INIT(); + 800516a: f7ff fa27 bl 80045bc + TP_adjustment(); - 8003e2e: f7ff fd4b bl 80038c8 + 800516e: f7ff fd2d bl 8004bcc + UI *ui=UI_Init(BLACK); - 8003e32: 2000 movs r0, #0 - 8003e34: f000 f884 bl 8003f40 - 8003e38: 6078 str r0, [r7, #4] + 8005172: 2000 movs r0, #0 + 8005174: f000 f886 bl 8005284 + 8005178: 6078 str r0, [r7, #4] New_Window(ui,10,10,100,100,WHITE,"WHITE"); - 8003e3a: 4b27 ldr r3, [pc, #156] ; (8003ed8 ) - 8003e3c: 9302 str r3, [sp, #8] - 8003e3e: f64f 73ff movw r3, #65535 ; 0xffff - 8003e42: 9301 str r3, [sp, #4] - 8003e44: 2364 movs r3, #100 ; 0x64 - 8003e46: 9300 str r3, [sp, #0] - 8003e48: 2364 movs r3, #100 ; 0x64 - 8003e4a: 220a movs r2, #10 - 8003e4c: 210a movs r1, #10 - 8003e4e: 6878 ldr r0, [r7, #4] - 8003e50: f000 f895 bl 8003f7e + 800517a: 4b28 ldr r3, [pc, #160] ; (800521c ) + 800517c: 9302 str r3, [sp, #8] + 800517e: f64f 73ff movw r3, #65535 ; 0xffff + 8005182: 9301 str r3, [sp, #4] + 8005184: 2364 movs r3, #100 ; 0x64 + 8005186: 9300 str r3, [sp, #0] + 8005188: 2364 movs r3, #100 ; 0x64 + 800518a: 220a movs r2, #10 + 800518c: 210a movs r1, #10 + 800518e: 6878 ldr r0, [r7, #4] + 8005190: f000 f897 bl 80052c2 New_Window(ui,25,30,150,100,GREEN,"GREEN"); - 8003e54: 4b21 ldr r3, [pc, #132] ; (8003edc ) - 8003e56: 9302 str r3, [sp, #8] - 8003e58: f44f 63fc mov.w r3, #2016 ; 0x7e0 - 8003e5c: 9301 str r3, [sp, #4] - 8003e5e: 2364 movs r3, #100 ; 0x64 - 8003e60: 9300 str r3, [sp, #0] - 8003e62: 2396 movs r3, #150 ; 0x96 - 8003e64: 221e movs r2, #30 - 8003e66: 2119 movs r1, #25 - 8003e68: 6878 ldr r0, [r7, #4] - 8003e6a: f000 f888 bl 8003f7e + 8005194: 4b22 ldr r3, [pc, #136] ; (8005220 ) + 8005196: 9302 str r3, [sp, #8] + 8005198: f44f 63fc mov.w r3, #2016 ; 0x7e0 + 800519c: 9301 str r3, [sp, #4] + 800519e: 2364 movs r3, #100 ; 0x64 + 80051a0: 9300 str r3, [sp, #0] + 80051a2: 2396 movs r3, #150 ; 0x96 + 80051a4: 221e movs r2, #30 + 80051a6: 2119 movs r1, #25 + 80051a8: 6878 ldr r0, [r7, #4] + 80051aa: f000 f88a bl 80052c2 New_Window(ui,80,80,60,90,YELLOW,"YELLOW"); - 8003e6e: 4b1c ldr r3, [pc, #112] ; (8003ee0 ) - 8003e70: 9302 str r3, [sp, #8] - 8003e72: f64f 73e0 movw r3, #65504 ; 0xffe0 - 8003e76: 9301 str r3, [sp, #4] - 8003e78: 235a movs r3, #90 ; 0x5a - 8003e7a: 9300 str r3, [sp, #0] - 8003e7c: 233c movs r3, #60 ; 0x3c - 8003e7e: 2250 movs r2, #80 ; 0x50 - 8003e80: 2150 movs r1, #80 ; 0x50 - 8003e82: 6878 ldr r0, [r7, #4] - 8003e84: f000 f87b bl 8003f7e + 80051ae: 4b1d ldr r3, [pc, #116] ; (8005224 ) + 80051b0: 9302 str r3, [sp, #8] + 80051b2: f64f 73e0 movw r3, #65504 ; 0xffe0 + 80051b6: 9301 str r3, [sp, #4] + 80051b8: 235a movs r3, #90 ; 0x5a + 80051ba: 9300 str r3, [sp, #0] + 80051bc: 233c movs r3, #60 ; 0x3c + 80051be: 2250 movs r2, #80 ; 0x50 + 80051c0: 2150 movs r1, #80 ; 0x50 + 80051c2: 6878 ldr r0, [r7, #4] + 80051c4: f000 f87d bl 80052c2 New_Window(ui,120,90,70,60,MAGENTA,"MAGENTA"); - 8003e88: 4b16 ldr r3, [pc, #88] ; (8003ee4 ) - 8003e8a: 9302 str r3, [sp, #8] - 8003e8c: f64f 031f movw r3, #63519 ; 0xf81f - 8003e90: 9301 str r3, [sp, #4] - 8003e92: 233c movs r3, #60 ; 0x3c - 8003e94: 9300 str r3, [sp, #0] - 8003e96: 2346 movs r3, #70 ; 0x46 - 8003e98: 225a movs r2, #90 ; 0x5a - 8003e9a: 2178 movs r1, #120 ; 0x78 - 8003e9c: 6878 ldr r0, [r7, #4] - 8003e9e: f000 f86e bl 8003f7e + 80051c8: 4b17 ldr r3, [pc, #92] ; (8005228 ) + 80051ca: 9302 str r3, [sp, #8] + 80051cc: f64f 031f movw r3, #63519 ; 0xf81f + 80051d0: 9301 str r3, [sp, #4] + 80051d2: 233c movs r3, #60 ; 0x3c + 80051d4: 9300 str r3, [sp, #0] + 80051d6: 2346 movs r3, #70 ; 0x46 + 80051d8: 225a movs r2, #90 ; 0x5a + 80051da: 2178 movs r1, #120 ; 0x78 + 80051dc: 6878 ldr r0, [r7, #4] + 80051de: f000 f870 bl 80052c2 ui->refresh_ui_flag=1; - 8003ea2: 687b ldr r3, [r7, #4] - 8003ea4: 2201 movs r2, #1 - 8003ea6: 731a strb r2, [r3, #12] + 80051e2: 687b ldr r3, [r7, #4] + 80051e4: 2201 movs r2, #1 + 80051e6: 731a strb r2, [r3, #12] while(1) { LCD_set_dot(t0.pix_x, t0.pix_y, RED); - 8003ea8: 4b0f ldr r3, [pc, #60] ; (8003ee8 ) - 8003eaa: 685b ldr r3, [r3, #4] - 8003eac: b29b uxth r3, r3 - 8003eae: 4a0e ldr r2, [pc, #56] ; (8003ee8 ) - 8003eb0: 6892 ldr r2, [r2, #8] - 8003eb2: b291 uxth r1, r2 - 8003eb4: f44f 4278 mov.w r2, #63488 ; 0xf800 - 8003eb8: 4618 mov r0, r3 - 8003eba: f7ff f859 bl 8002f70 + 80051e8: 4b10 ldr r3, [pc, #64] ; (800522c ) + 80051ea: 685b ldr r3, [r3, #4] + 80051ec: b29b uxth r3, r3 + 80051ee: 4a0f ldr r2, [pc, #60] ; (800522c ) + 80051f0: 6892 ldr r2, [r2, #8] + 80051f2: b291 uxth r1, r2 + 80051f4: f44f 4278 mov.w r2, #63488 ; 0xf800 + 80051f8: 4618 mov r0, r3 + 80051fa: f7fe ff47 bl 800408c { } */ if(ui->refresh_ui_flag==1) - 8003ebe: 687b ldr r3, [r7, #4] - 8003ec0: 7b1b ldrb r3, [r3, #12] - 8003ec2: 2b01 cmp r3, #1 - 8003ec4: d105 bne.n 8003ed2 + 80051fe: 687b ldr r3, [r7, #4] + 8005200: 7b1b ldrb r3, [r3, #12] + 8005202: 2b01 cmp r3, #1 + 8005204: d105 bne.n 8005212 { ui->refresh_ui_flag=0; - 8003ec6: 687b ldr r3, [r7, #4] - 8003ec8: 2200 movs r2, #0 - 8003eca: 731a strb r2, [r3, #12] + 8005206: 687b ldr r3, [r7, #4] + 8005208: 2200 movs r2, #0 + 800520a: 731a strb r2, [r3, #12] Refresh_UI(ui); - 8003ecc: 6878 ldr r0, [r7, #4] - 8003ece: f000 f8bf bl 8004050 + 800520c: 6878 ldr r0, [r7, #4] + 800520e: f000 f8c1 bl 8005394 } TP_Server(); - 8003ed2: f7ff fc47 bl 8003764 + 8005212: f7ff fc29 bl 8004a68 + EEPROM_SLOWWRITE_SERVER(); + 8005216: f7ff f9eb bl 80045f0 LCD_set_dot(t0.pix_x, t0.pix_y, RED); - 8003ed6: e7e7 b.n 8003ea8 - 8003ed8: 08007040 .word 0x08007040 - 8003edc: 08007048 .word 0x08007048 - 8003ee0: 08007050 .word 0x08007050 - 8003ee4: 08007058 .word 0x08007058 - 8003ee8: 20000278 .word 0x20000278 + 800521a: e7e5 b.n 80051e8 + 800521c: 08008398 .word 0x08008398 + 8005220: 080083a0 .word 0x080083a0 + 8005224: 080083a8 .word 0x080083a8 + 8005228: 080083b0 .word 0x080083b0 + 800522c: 200002e0 .word 0x200002e0 -08003eec : +08005230 : */ #include "windows.h" void Inteface_SetCursor(uint16_t Xpos, uint16_t Ypos) { - 8003eec: b580 push {r7, lr} - 8003eee: b082 sub sp, #8 - 8003ef0: af00 add r7, sp, #0 - 8003ef2: 4603 mov r3, r0 - 8003ef4: 460a mov r2, r1 - 8003ef6: 80fb strh r3, [r7, #6] - 8003ef8: 4613 mov r3, r2 - 8003efa: 80bb strh r3, [r7, #4] + 8005230: b580 push {r7, lr} + 8005232: b082 sub sp, #8 + 8005234: af00 add r7, sp, #0 + 8005236: 4603 mov r3, r0 + 8005238: 460a mov r2, r1 + 800523a: 80fb strh r3, [r7, #6] + 800523c: 4613 mov r3, r2 + 800523e: 80bb strh r3, [r7, #4] LCD_SetCursor(Xpos,Ypos); //设置光标位置 - 8003efc: 88ba ldrh r2, [r7, #4] - 8003efe: 88fb ldrh r3, [r7, #6] - 8003f00: 4611 mov r1, r2 - 8003f02: 4618 mov r0, r3 - 8003f04: f7fe ffa4 bl 8002e50 + 8005240: 88ba ldrh r2, [r7, #4] + 8005242: 88fb ldrh r3, [r7, #6] + 8005244: 4611 mov r1, r2 + 8005246: 4618 mov r0, r3 + 8005248: f7fe fe90 bl 8003f6c LCD_REG_ADDRESS=lcddev.wramcmd; //开始写入GRAM - 8003f08: 4b04 ldr r3, [pc, #16] ; (8003f1c ) - 8003f0a: 79da ldrb r2, [r3, #7] - 8003f0c: f04f 43d8 mov.w r3, #1811939328 ; 0x6c000000 - 8003f10: b292 uxth r2, r2 - 8003f12: 801a strh r2, [r3, #0] + 800524c: 4b04 ldr r3, [pc, #16] ; (8005260 ) + 800524e: 79da ldrb r2, [r3, #7] + 8005250: f04f 43d8 mov.w r3, #1811939328 ; 0x6c000000 + 8005254: b292 uxth r2, r2 + 8005256: 801a strh r2, [r3, #0] } - 8003f14: bf00 nop - 8003f16: 3708 adds r7, #8 - 8003f18: 46bd mov sp, r7 - 8003f1a: bd80 pop {r7, pc} - 8003f1c: 20000254 .word 0x20000254 + 8005258: bf00 nop + 800525a: 3708 adds r7, #8 + 800525c: 46bd mov sp, r7 + 800525e: bd80 pop {r7, pc} + 8005260: 200002a8 .word 0x200002a8 -08003f20 : +08005264 : void Inteface_SetColor(uint16_t color) { - 8003f20: b480 push {r7} - 8003f22: b083 sub sp, #12 - 8003f24: af00 add r7, sp, #0 - 8003f26: 4603 mov r3, r0 - 8003f28: 80fb strh r3, [r7, #6] + 8005264: b480 push {r7} + 8005266: b083 sub sp, #12 + 8005268: af00 add r7, sp, #0 + 800526a: 4603 mov r3, r0 + 800526c: 80fb strh r3, [r7, #6] LCD_DATA_ADDRESS=color; - 8003f2a: 4a04 ldr r2, [pc, #16] ; (8003f3c ) - 8003f2c: 88fb ldrh r3, [r7, #6] - 8003f2e: 8013 strh r3, [r2, #0] + 800526e: 4a04 ldr r2, [pc, #16] ; (8005280 ) + 8005270: 88fb ldrh r3, [r7, #6] + 8005272: 8013 strh r3, [r2, #0] } - 8003f30: bf00 nop - 8003f32: 370c adds r7, #12 - 8003f34: 46bd mov sp, r7 - 8003f36: bc80 pop {r7} - 8003f38: 4770 bx lr - 8003f3a: bf00 nop - 8003f3c: 6c000800 .word 0x6c000800 + 8005274: bf00 nop + 8005276: 370c adds r7, #12 + 8005278: 46bd mov sp, r7 + 800527a: bc80 pop {r7} + 800527c: 4770 bx lr + 800527e: bf00 nop + 8005280: 6c000800 .word 0x6c000800 -08003f40 : +08005284 : UI *UI_Init(COLOR_16 background) { - 8003f40: b580 push {r7, lr} - 8003f42: b084 sub sp, #16 - 8003f44: af00 add r7, sp, #0 - 8003f46: 6078 str r0, [r7, #4] + 8005284: b580 push {r7, lr} + 8005286: b084 sub sp, #16 + 8005288: af00 add r7, sp, #0 + 800528a: 6078 str r0, [r7, #4] UI *ui; ui = (UI*)malloc(sizeof(UI)); - 8003f48: 2010 movs r0, #16 - 8003f4a: f000 f969 bl 8004220 - 8003f4e: 4603 mov r3, r0 - 8003f50: 60fb str r3, [r7, #12] + 800528c: 2010 movs r0, #16 + 800528e: f000 f969 bl 8005564 + 8005292: 4603 mov r3, r0 + 8005294: 60fb str r3, [r7, #12] if(ui!=NULL) - 8003f52: 68fb ldr r3, [r7, #12] - 8003f54: 2b00 cmp r3, #0 - 8003f56: d00d beq.n 8003f74 + 8005296: 68fb ldr r3, [r7, #12] + 8005298: 2b00 cmp r3, #0 + 800529a: d00d beq.n 80052b8 { ui->background=background; - 8003f58: 68fb ldr r3, [r7, #12] - 8003f5a: 687a ldr r2, [r7, #4] - 8003f5c: 601a str r2, [r3, #0] + 800529c: 68fb ldr r3, [r7, #12] + 800529e: 687a ldr r2, [r7, #4] + 80052a0: 601a str r2, [r3, #0] ui->windows=NULL; - 8003f5e: 68fb ldr r3, [r7, #12] - 8003f60: 2200 movs r2, #0 - 8003f62: 605a str r2, [r3, #4] + 80052a2: 68fb ldr r3, [r7, #12] + 80052a4: 2200 movs r2, #0 + 80052a6: 605a str r2, [r3, #4] ui->last_windows=NULL; - 8003f64: 68fb ldr r3, [r7, #12] - 8003f66: 2200 movs r2, #0 - 8003f68: 609a str r2, [r3, #8] + 80052a8: 68fb ldr r3, [r7, #12] + 80052aa: 2200 movs r2, #0 + 80052ac: 609a str r2, [r3, #8] ui->refresh_ui_flag=1; - 8003f6a: 68fb ldr r3, [r7, #12] - 8003f6c: 2201 movs r2, #1 - 8003f6e: 731a strb r2, [r3, #12] + 80052ae: 68fb ldr r3, [r7, #12] + 80052b0: 2201 movs r2, #1 + 80052b2: 731a strb r2, [r3, #12] ui->touch->acc_y=0; } */ return ui; - 8003f70: 68fb ldr r3, [r7, #12] - 8003f72: e000 b.n 8003f76 + 80052b4: 68fb ldr r3, [r7, #12] + 80052b6: e000 b.n 80052ba } return NULL; - 8003f74: 2300 movs r3, #0 + 80052b8: 2300 movs r3, #0 } - 8003f76: 4618 mov r0, r3 - 8003f78: 3710 adds r7, #16 - 8003f7a: 46bd mov sp, r7 - 8003f7c: bd80 pop {r7, pc} + 80052ba: 4618 mov r0, r3 + 80052bc: 3710 adds r7, #16 + 80052be: 46bd mov sp, r7 + 80052c0: bd80 pop {r7, pc} -08003f7e : +080052c2 : window *New_Window(UI *ui,uint16_t x,uint16_t y,uint16_t width,uint16_t high,COLOR_16 background,const char *title) { - 8003f7e: b580 push {r7, lr} - 8003f80: b088 sub sp, #32 - 8003f82: af00 add r7, sp, #0 - 8003f84: 60f8 str r0, [r7, #12] - 8003f86: 4608 mov r0, r1 - 8003f88: 4611 mov r1, r2 - 8003f8a: 461a mov r2, r3 - 8003f8c: 4603 mov r3, r0 - 8003f8e: 817b strh r3, [r7, #10] - 8003f90: 460b mov r3, r1 - 8003f92: 813b strh r3, [r7, #8] - 8003f94: 4613 mov r3, r2 - 8003f96: 80fb strh r3, [r7, #6] + 80052c2: b580 push {r7, lr} + 80052c4: b088 sub sp, #32 + 80052c6: af00 add r7, sp, #0 + 80052c8: 60f8 str r0, [r7, #12] + 80052ca: 4608 mov r0, r1 + 80052cc: 4611 mov r1, r2 + 80052ce: 461a mov r2, r3 + 80052d0: 4603 mov r3, r0 + 80052d2: 817b strh r3, [r7, #10] + 80052d4: 460b mov r3, r1 + 80052d6: 813b strh r3, [r7, #8] + 80052d8: 4613 mov r3, r2 + 80052da: 80fb strh r3, [r7, #6] window *temp_window; temp_window = (window*)malloc(sizeof(window)); - 8003f98: 201c movs r0, #28 - 8003f9a: f000 f941 bl 8004220 - 8003f9e: 4603 mov r3, r0 - 8003fa0: 617b str r3, [r7, #20] + 80052dc: 201c movs r0, #28 + 80052de: f000 f941 bl 8005564 + 80052e2: 4603 mov r3, r0 + 80052e4: 617b str r3, [r7, #20] if(temp_window!=NULL) - 8003fa2: 697b ldr r3, [r7, #20] - 8003fa4: 2b00 cmp r3, #0 - 8003fa6: d022 beq.n 8003fee + 80052e6: 697b ldr r3, [r7, #20] + 80052e8: 2b00 cmp r3, #0 + 80052ea: d022 beq.n 8005332 { temp_window->background=background; - 8003fa8: 697b ldr r3, [r7, #20] - 8003faa: 6afa ldr r2, [r7, #44] ; 0x2c - 8003fac: 609a str r2, [r3, #8] + 80052ec: 697b ldr r3, [r7, #20] + 80052ee: 6afa ldr r2, [r7, #44] ; 0x2c + 80052f0: 609a str r2, [r3, #8] temp_window->high=high; - 8003fae: 697b ldr r3, [r7, #20] - 8003fb0: 8d3a ldrh r2, [r7, #40] ; 0x28 - 8003fb2: 80da strh r2, [r3, #6] + 80052f2: 697b ldr r3, [r7, #20] + 80052f4: 8d3a ldrh r2, [r7, #40] ; 0x28 + 80052f6: 80da strh r2, [r3, #6] temp_window->width=width; - 8003fb4: 697b ldr r3, [r7, #20] - 8003fb6: 88fa ldrh r2, [r7, #6] - 8003fb8: 809a strh r2, [r3, #4] + 80052f8: 697b ldr r3, [r7, #20] + 80052fa: 88fa ldrh r2, [r7, #6] + 80052fc: 809a strh r2, [r3, #4] temp_window->x=x; - 8003fba: 697b ldr r3, [r7, #20] - 8003fbc: 897a ldrh r2, [r7, #10] - 8003fbe: 801a strh r2, [r3, #0] + 80052fe: 697b ldr r3, [r7, #20] + 8005300: 897a ldrh r2, [r7, #10] + 8005302: 801a strh r2, [r3, #0] temp_window->y=y; - 8003fc0: 697b ldr r3, [r7, #20] - 8003fc2: 893a ldrh r2, [r7, #8] - 8003fc4: 805a strh r2, [r3, #2] + 8005304: 697b ldr r3, [r7, #20] + 8005306: 893a ldrh r2, [r7, #8] + 8005308: 805a strh r2, [r3, #2] for(int a=0;a<16;a++) - 8003fc6: 2300 movs r3, #0 - 8003fc8: 61fb str r3, [r7, #28] - 8003fca: e00c b.n 8003fe6 + 800530a: 2300 movs r3, #0 + 800530c: 61fb str r3, [r7, #28] + 800530e: e00c b.n 800532a { temp_window->title[a]=title[a]; - 8003fcc: 69fb ldr r3, [r7, #28] - 8003fce: 6b3a ldr r2, [r7, #48] ; 0x30 - 8003fd0: 4413 add r3, r2 - 8003fd2: 7819 ldrb r1, [r3, #0] - 8003fd4: 697a ldr r2, [r7, #20] - 8003fd6: 69fb ldr r3, [r7, #28] - 8003fd8: 4413 add r3, r2 - 8003fda: 330c adds r3, #12 - 8003fdc: 460a mov r2, r1 - 8003fde: 701a strb r2, [r3, #0] + 8005310: 69fb ldr r3, [r7, #28] + 8005312: 6b3a ldr r2, [r7, #48] ; 0x30 + 8005314: 4413 add r3, r2 + 8005316: 7819 ldrb r1, [r3, #0] + 8005318: 697a ldr r2, [r7, #20] + 800531a: 69fb ldr r3, [r7, #28] + 800531c: 4413 add r3, r2 + 800531e: 330c adds r3, #12 + 8005320: 460a mov r2, r1 + 8005322: 701a strb r2, [r3, #0] for(int a=0;a<16;a++) - 8003fe0: 69fb ldr r3, [r7, #28] - 8003fe2: 3301 adds r3, #1 - 8003fe4: 61fb str r3, [r7, #28] - 8003fe6: 69fb ldr r3, [r7, #28] - 8003fe8: 2b0f cmp r3, #15 - 8003fea: ddef ble.n 8003fcc - 8003fec: e001 b.n 8003ff2 + 8005324: 69fb ldr r3, [r7, #28] + 8005326: 3301 adds r3, #1 + 8005328: 61fb str r3, [r7, #28] + 800532a: 69fb ldr r3, [r7, #28] + 800532c: 2b0f cmp r3, #15 + 800532e: ddef ble.n 8005310 + 8005330: e001 b.n 8005336 } }else{return NULL;} - 8003fee: 2300 movs r3, #0 - 8003ff0: e02a b.n 8004048 + 8005332: 2300 movs r3, #0 + 8005334: e02a b.n 800538c windows_stack *temp_windows_stack; temp_windows_stack=ui->last_windows; - 8003ff2: 68fb ldr r3, [r7, #12] - 8003ff4: 689b ldr r3, [r3, #8] - 8003ff6: 61bb str r3, [r7, #24] + 8005336: 68fb ldr r3, [r7, #12] + 8005338: 689b ldr r3, [r3, #8] + 800533a: 61bb str r3, [r7, #24] if(temp_windows_stack==NULL) - 8003ff8: 69bb ldr r3, [r7, #24] - 8003ffa: 2b00 cmp r3, #0 - 8003ffc: d10b bne.n 8004016 + 800533c: 69bb ldr r3, [r7, #24] + 800533e: 2b00 cmp r3, #0 + 8005340: d10b bne.n 800535a { temp_windows_stack=(windows_stack*)malloc(sizeof(windows_stack)); - 8003ffe: 200c movs r0, #12 - 8004000: f000 f90e bl 8004220 - 8004004: 4603 mov r3, r0 - 8004006: 61bb str r3, [r7, #24] + 8005342: 200c movs r0, #12 + 8005344: f000 f90e bl 8005564 + 8005348: 4603 mov r3, r0 + 800534a: 61bb str r3, [r7, #24] temp_windows_stack->up=NULL; - 8004008: 69bb ldr r3, [r7, #24] - 800400a: 2200 movs r2, #0 - 800400c: 601a str r2, [r3, #0] + 800534c: 69bb ldr r3, [r7, #24] + 800534e: 2200 movs r2, #0 + 8005350: 601a str r2, [r3, #0] ui->windows=temp_windows_stack; - 800400e: 68fb ldr r3, [r7, #12] - 8004010: 69ba ldr r2, [r7, #24] - 8004012: 605a str r2, [r3, #4] - 8004014: e00e b.n 8004034 + 8005352: 68fb ldr r3, [r7, #12] + 8005354: 69ba ldr r2, [r7, #24] + 8005356: 605a str r2, [r3, #4] + 8005358: e00e b.n 8005378 while(temp_windows_stack->next!=NULL) { temp_windows_stack=temp_windows_stack->next; } */ windows_stack *up=temp_windows_stack;//备份当前对象指针 - 8004016: 69bb ldr r3, [r7, #24] - 8004018: 613b str r3, [r7, #16] + 800535a: 69bb ldr r3, [r7, #24] + 800535c: 613b str r3, [r7, #16] temp_windows_stack->next=(windows_stack*)malloc(sizeof(windows_stack)); - 800401a: 200c movs r0, #12 - 800401c: f000 f900 bl 8004220 - 8004020: 4603 mov r3, r0 - 8004022: 461a mov r2, r3 - 8004024: 69bb ldr r3, [r7, #24] - 8004026: 609a str r2, [r3, #8] + 800535e: 200c movs r0, #12 + 8005360: f000 f900 bl 8005564 + 8005364: 4603 mov r3, r0 + 8005366: 461a mov r2, r3 + 8005368: 69bb ldr r3, [r7, #24] + 800536a: 609a str r2, [r3, #8] temp_windows_stack=temp_windows_stack->next; - 8004028: 69bb ldr r3, [r7, #24] - 800402a: 689b ldr r3, [r3, #8] - 800402c: 61bb str r3, [r7, #24] + 800536c: 69bb ldr r3, [r7, #24] + 800536e: 689b ldr r3, [r3, #8] + 8005370: 61bb str r3, [r7, #24] temp_windows_stack->up=up; - 800402e: 69bb ldr r3, [r7, #24] - 8004030: 693a ldr r2, [r7, #16] - 8004032: 601a str r2, [r3, #0] + 8005372: 69bb ldr r3, [r7, #24] + 8005374: 693a ldr r2, [r7, #16] + 8005376: 601a str r2, [r3, #0] } temp_windows_stack->next=NULL; - 8004034: 69bb ldr r3, [r7, #24] - 8004036: 2200 movs r2, #0 - 8004038: 609a str r2, [r3, #8] + 8005378: 69bb ldr r3, [r7, #24] + 800537a: 2200 movs r2, #0 + 800537c: 609a str r2, [r3, #8] temp_windows_stack->window=temp_window; - 800403a: 69bb ldr r3, [r7, #24] - 800403c: 697a ldr r2, [r7, #20] - 800403e: 605a str r2, [r3, #4] + 800537e: 69bb ldr r3, [r7, #24] + 8005380: 697a ldr r2, [r7, #20] + 8005382: 605a str r2, [r3, #4] ui->last_windows=temp_windows_stack; - 8004040: 68fb ldr r3, [r7, #12] - 8004042: 69ba ldr r2, [r7, #24] - 8004044: 609a str r2, [r3, #8] + 8005384: 68fb ldr r3, [r7, #12] + 8005386: 69ba ldr r2, [r7, #24] + 8005388: 609a str r2, [r3, #8] return temp_window; - 8004046: 697b ldr r3, [r7, #20] + 800538a: 697b ldr r3, [r7, #20] } - 8004048: 4618 mov r0, r3 - 800404a: 3720 adds r7, #32 - 800404c: 46bd mov sp, r7 - 800404e: bd80 pop {r7, pc} + 800538c: 4618 mov r0, r3 + 800538e: 3720 adds r7, #32 + 8005390: 46bd mov sp, r7 + 8005392: bd80 pop {r7, pc} -08004050 : +08005394 : * 很可惜 辛辛苦苦写的代码要被放弃 * 用算法实现遮挡关系计算真挺蠢 * * */ void Refresh_UI(UI *ui) { - 8004050: b580 push {r7, lr} - 8004052: b08a sub sp, #40 ; 0x28 - 8004054: af02 add r7, sp, #8 - 8004056: 6078 str r0, [r7, #4] + 8005394: b580 push {r7, lr} + 8005396: b08a sub sp, #40 ; 0x28 + 8005398: af02 add r7, sp, #8 + 800539a: 6078 str r0, [r7, #4] int flag=0; - 8004058: 2300 movs r3, #0 - 800405a: 61fb str r3, [r7, #28] + 800539c: 2300 movs r3, #0 + 800539e: 61fb str r3, [r7, #28] uint16_t dot_y=0,dot_x=0; - 800405c: 2300 movs r3, #0 - 800405e: 837b strh r3, [r7, #26] - 8004060: 2300 movs r3, #0 - 8004062: 833b strh r3, [r7, #24] + 80053a0: 2300 movs r3, #0 + 80053a2: 837b strh r3, [r7, #26] + 80053a4: 2300 movs r3, #0 + 80053a6: 833b strh r3, [r7, #24] //画背景 for(dot_y=0;dot_y<240;dot_y++) - 8004064: 2300 movs r3, #0 - 8004066: 837b strh r3, [r7, #26] - 8004068: e018 b.n 800409c + 80053a8: 2300 movs r3, #0 + 80053aa: 837b strh r3, [r7, #26] + 80053ac: e018 b.n 80053e0 { Inteface_SetCursor(dot_x,dot_y); - 800406a: 8b7a ldrh r2, [r7, #26] - 800406c: 8b3b ldrh r3, [r7, #24] - 800406e: 4611 mov r1, r2 - 8004070: 4618 mov r0, r3 - 8004072: f7ff ff3b bl 8003eec + 80053ae: 8b7a ldrh r2, [r7, #26] + 80053b0: 8b3b ldrh r3, [r7, #24] + 80053b2: 4611 mov r1, r2 + 80053b4: 4618 mov r0, r3 + 80053b6: f7ff ff3b bl 8005230 for(dot_x=0;dot_x<320;dot_x++) - 8004076: 2300 movs r3, #0 - 8004078: 833b strh r3, [r7, #24] - 800407a: e008 b.n 800408e + 80053ba: 2300 movs r3, #0 + 80053bc: 833b strh r3, [r7, #24] + 80053be: e008 b.n 80053d2 { Inteface_SetColor(ui->background); - 800407c: 687b ldr r3, [r7, #4] - 800407e: 681b ldr r3, [r3, #0] - 8004080: b29b uxth r3, r3 - 8004082: 4618 mov r0, r3 - 8004084: f7ff ff4c bl 8003f20 + 80053c0: 687b ldr r3, [r7, #4] + 80053c2: 681b ldr r3, [r3, #0] + 80053c4: b29b uxth r3, r3 + 80053c6: 4618 mov r0, r3 + 80053c8: f7ff ff4c bl 8005264 for(dot_x=0;dot_x<320;dot_x++) - 8004088: 8b3b ldrh r3, [r7, #24] - 800408a: 3301 adds r3, #1 - 800408c: 833b strh r3, [r7, #24] - 800408e: 8b3b ldrh r3, [r7, #24] - 8004090: f5b3 7fa0 cmp.w r3, #320 ; 0x140 - 8004094: d3f2 bcc.n 800407c + 80053cc: 8b3b ldrh r3, [r7, #24] + 80053ce: 3301 adds r3, #1 + 80053d0: 833b strh r3, [r7, #24] + 80053d2: 8b3b ldrh r3, [r7, #24] + 80053d4: f5b3 7fa0 cmp.w r3, #320 ; 0x140 + 80053d8: d3f2 bcc.n 80053c0 for(dot_y=0;dot_y<240;dot_y++) - 8004096: 8b7b ldrh r3, [r7, #26] - 8004098: 3301 adds r3, #1 - 800409a: 837b strh r3, [r7, #26] - 800409c: 8b7b ldrh r3, [r7, #26] - 800409e: 2bef cmp r3, #239 ; 0xef - 80040a0: d9e3 bls.n 800406a + 80053da: 8b7b ldrh r3, [r7, #26] + 80053dc: 3301 adds r3, #1 + 80053de: 837b strh r3, [r7, #26] + 80053e0: 8b7b ldrh r3, [r7, #26] + 80053e2: 2bef cmp r3, #239 ; 0xef + 80053e4: d9e3 bls.n 80053ae } window *temp_window; windows_stack *temp_windows_stack,*temp_windows_stack2; temp_windows_stack=ui->windows; - 80040a2: 687b ldr r3, [r7, #4] - 80040a4: 685b ldr r3, [r3, #4] - 80040a6: 617b str r3, [r7, #20] + 80053e6: 687b ldr r3, [r7, #4] + 80053e8: 685b ldr r3, [r3, #4] + 80053ea: 617b str r3, [r7, #20] do { if(temp_windows_stack!=NULL) - 80040a8: 697b ldr r3, [r7, #20] - 80040aa: 2b00 cmp r3, #0 - 80040ac: f000 8082 beq.w 80041b4 + 80053ec: 697b ldr r3, [r7, #20] + 80053ee: 2b00 cmp r3, #0 + 80053f0: f000 8082 beq.w 80054f8 { flag=1; - 80040b0: 2301 movs r3, #1 - 80040b2: 61fb str r3, [r7, #28] + 80053f4: 2301 movs r3, #1 + 80053f6: 61fb str r3, [r7, #28] // temp_window=temp_windows_stack->window;//取出窗口的资源句柄 - 80040b4: 697b ldr r3, [r7, #20] - 80040b6: 685b ldr r3, [r3, #4] - 80040b8: 60bb str r3, [r7, #8] + 80053f8: 697b ldr r3, [r7, #20] + 80053fa: 685b ldr r3, [r3, #4] + 80053fc: 60bb str r3, [r7, #8] //开始绘制窗口//填充窗口背景 for(uint16_t temp_y=0;temp_yhigh;temp_y++) - 80040ba: 2300 movs r3, #0 - 80040bc: 827b strh r3, [r7, #18] - 80040be: e033 b.n 8004128 + 80053fe: 2300 movs r3, #0 + 8005400: 827b strh r3, [r7, #18] + 8005402: e033 b.n 800546c { Inteface_SetCursor(temp_window->x,temp_window->y+temp_y); - 80040c0: 68bb ldr r3, [r7, #8] - 80040c2: 8818 ldrh r0, [r3, #0] - 80040c4: 68bb ldr r3, [r7, #8] - 80040c6: 885a ldrh r2, [r3, #2] - 80040c8: 8a7b ldrh r3, [r7, #18] - 80040ca: 4413 add r3, r2 - 80040cc: b29b uxth r3, r3 - 80040ce: 4619 mov r1, r3 - 80040d0: f7ff ff0c bl 8003eec + 8005404: 68bb ldr r3, [r7, #8] + 8005406: 8818 ldrh r0, [r3, #0] + 8005408: 68bb ldr r3, [r7, #8] + 800540a: 885a ldrh r2, [r3, #2] + 800540c: 8a7b ldrh r3, [r7, #18] + 800540e: 4413 add r3, r2 + 8005410: b29b uxth r3, r3 + 8005412: 4619 mov r1, r3 + 8005414: f7ff ff0c bl 8005230 for(uint16_t temp_i=0;temp_iwidth;temp_i++) - 80040d4: 2300 movs r3, #0 - 80040d6: 823b strh r3, [r7, #16] - 80040d8: e01e b.n 8004118 + 8005418: 2300 movs r3, #0 + 800541a: 823b strh r3, [r7, #16] + 800541c: e01e b.n 800545c { if(temp_i==0||temp_y==0||temp_i==temp_window->width-1||temp_y==temp_window->high-1) - 80040da: 8a3b ldrh r3, [r7, #16] - 80040dc: 2b00 cmp r3, #0 - 80040de: d00e beq.n 80040fe - 80040e0: 8a7b ldrh r3, [r7, #18] - 80040e2: 2b00 cmp r3, #0 - 80040e4: d00b beq.n 80040fe - 80040e6: 8a3a ldrh r2, [r7, #16] - 80040e8: 68bb ldr r3, [r7, #8] - 80040ea: 889b ldrh r3, [r3, #4] - 80040ec: 3b01 subs r3, #1 - 80040ee: 429a cmp r2, r3 - 80040f0: d005 beq.n 80040fe - 80040f2: 8a7a ldrh r2, [r7, #18] - 80040f4: 68bb ldr r3, [r7, #8] - 80040f6: 88db ldrh r3, [r3, #6] - 80040f8: 3b01 subs r3, #1 - 80040fa: 429a cmp r2, r3 - 80040fc: d103 bne.n 8004106 + 800541e: 8a3b ldrh r3, [r7, #16] + 8005420: 2b00 cmp r3, #0 + 8005422: d00e beq.n 8005442 + 8005424: 8a7b ldrh r3, [r7, #18] + 8005426: 2b00 cmp r3, #0 + 8005428: d00b beq.n 8005442 + 800542a: 8a3a ldrh r2, [r7, #16] + 800542c: 68bb ldr r3, [r7, #8] + 800542e: 889b ldrh r3, [r3, #4] + 8005430: 3b01 subs r3, #1 + 8005432: 429a cmp r2, r3 + 8005434: d005 beq.n 8005442 + 8005436: 8a7a ldrh r2, [r7, #18] + 8005438: 68bb ldr r3, [r7, #8] + 800543a: 88db ldrh r3, [r3, #6] + 800543c: 3b01 subs r3, #1 + 800543e: 429a cmp r2, r3 + 8005440: d103 bne.n 800544a { Inteface_SetColor(BLUE); - 80040fe: 201f movs r0, #31 - 8004100: f7ff ff0e bl 8003f20 - 8004104: e005 b.n 8004112 + 8005442: 201f movs r0, #31 + 8005444: f7ff ff0e bl 8005264 + 8005448: e005 b.n 8005456 }else { Inteface_SetColor(temp_window->background); - 8004106: 68bb ldr r3, [r7, #8] - 8004108: 689b ldr r3, [r3, #8] - 800410a: b29b uxth r3, r3 - 800410c: 4618 mov r0, r3 - 800410e: f7ff ff07 bl 8003f20 + 800544a: 68bb ldr r3, [r7, #8] + 800544c: 689b ldr r3, [r3, #8] + 800544e: b29b uxth r3, r3 + 8005450: 4618 mov r0, r3 + 8005452: f7ff ff07 bl 8005264 for(uint16_t temp_i=0;temp_iwidth;temp_i++) - 8004112: 8a3b ldrh r3, [r7, #16] - 8004114: 3301 adds r3, #1 - 8004116: 823b strh r3, [r7, #16] - 8004118: 68bb ldr r3, [r7, #8] - 800411a: 889b ldrh r3, [r3, #4] - 800411c: 8a3a ldrh r2, [r7, #16] - 800411e: 429a cmp r2, r3 - 8004120: d3db bcc.n 80040da + 8005456: 8a3b ldrh r3, [r7, #16] + 8005458: 3301 adds r3, #1 + 800545a: 823b strh r3, [r7, #16] + 800545c: 68bb ldr r3, [r7, #8] + 800545e: 889b ldrh r3, [r3, #4] + 8005460: 8a3a ldrh r2, [r7, #16] + 8005462: 429a cmp r2, r3 + 8005464: d3db bcc.n 800541e for(uint16_t temp_y=0;temp_yhigh;temp_y++) - 8004122: 8a7b ldrh r3, [r7, #18] - 8004124: 3301 adds r3, #1 - 8004126: 827b strh r3, [r7, #18] - 8004128: 68bb ldr r3, [r7, #8] - 800412a: 88db ldrh r3, [r3, #6] - 800412c: 8a7a ldrh r2, [r7, #18] - 800412e: 429a cmp r2, r3 - 8004130: d3c6 bcc.n 80040c0 + 8005466: 8a7b ldrh r3, [r7, #18] + 8005468: 3301 adds r3, #1 + 800546a: 827b strh r3, [r7, #18] + 800546c: 68bb ldr r3, [r7, #8] + 800546e: 88db ldrh r3, [r3, #6] + 8005470: 8a7a ldrh r2, [r7, #18] + 8005472: 429a cmp r2, r3 + 8005474: d3c6 bcc.n 8005404 } } } //绘制bar for(uint16_t temp_y=0;temp_y<16;temp_y++) - 8004132: 2300 movs r3, #0 - 8004134: 81fb strh r3, [r7, #14] - 8004136: e026 b.n 8004186 + 8005476: 2300 movs r3, #0 + 8005478: 81fb strh r3, [r7, #14] + 800547a: e026 b.n 80054ca { Inteface_SetCursor(temp_window->x,temp_window->y+temp_y); - 8004138: 68bb ldr r3, [r7, #8] - 800413a: 8818 ldrh r0, [r3, #0] - 800413c: 68bb ldr r3, [r7, #8] - 800413e: 885a ldrh r2, [r3, #2] - 8004140: 89fb ldrh r3, [r7, #14] - 8004142: 4413 add r3, r2 - 8004144: b29b uxth r3, r3 - 8004146: 4619 mov r1, r3 - 8004148: f7ff fed0 bl 8003eec + 800547c: 68bb ldr r3, [r7, #8] + 800547e: 8818 ldrh r0, [r3, #0] + 8005480: 68bb ldr r3, [r7, #8] + 8005482: 885a ldrh r2, [r3, #2] + 8005484: 89fb ldrh r3, [r7, #14] + 8005486: 4413 add r3, r2 + 8005488: b29b uxth r3, r3 + 800548a: 4619 mov r1, r3 + 800548c: f7ff fed0 bl 8005230 for(uint16_t temp_i=0;temp_iwidth;temp_i++) - 800414c: 2300 movs r3, #0 - 800414e: 81bb strh r3, [r7, #12] - 8004150: e011 b.n 8004176 + 8005490: 2300 movs r3, #0 + 8005492: 81bb strh r3, [r7, #12] + 8005494: e011 b.n 80054ba { if(temp_i>temp_window->width-16) - 8004152: 68bb ldr r3, [r7, #8] - 8004154: 889b ldrh r3, [r3, #4] - 8004156: f1a3 020f sub.w r2, r3, #15 - 800415a: 89bb ldrh r3, [r7, #12] - 800415c: 429a cmp r2, r3 - 800415e: dc04 bgt.n 800416a + 8005496: 68bb ldr r3, [r7, #8] + 8005498: 889b ldrh r3, [r3, #4] + 800549a: f1a3 020f sub.w r2, r3, #15 + 800549e: 89bb ldrh r3, [r7, #12] + 80054a0: 429a cmp r2, r3 + 80054a2: dc04 bgt.n 80054ae { Inteface_SetColor(RED); - 8004160: f44f 4078 mov.w r0, #63488 ; 0xf800 - 8004164: f7ff fedc bl 8003f20 - 8004168: e002 b.n 8004170 + 80054a4: f44f 4078 mov.w r0, #63488 ; 0xf800 + 80054a8: f7ff fedc bl 8005264 + 80054ac: e002 b.n 80054b4 }else { Inteface_SetColor(BLUE); - 800416a: 201f movs r0, #31 - 800416c: f7ff fed8 bl 8003f20 + 80054ae: 201f movs r0, #31 + 80054b0: f7ff fed8 bl 8005264 for(uint16_t temp_i=0;temp_iwidth;temp_i++) - 8004170: 89bb ldrh r3, [r7, #12] - 8004172: 3301 adds r3, #1 - 8004174: 81bb strh r3, [r7, #12] - 8004176: 68bb ldr r3, [r7, #8] - 8004178: 889b ldrh r3, [r3, #4] - 800417a: 89ba ldrh r2, [r7, #12] - 800417c: 429a cmp r2, r3 - 800417e: d3e8 bcc.n 8004152 + 80054b4: 89bb ldrh r3, [r7, #12] + 80054b6: 3301 adds r3, #1 + 80054b8: 81bb strh r3, [r7, #12] + 80054ba: 68bb ldr r3, [r7, #8] + 80054bc: 889b ldrh r3, [r3, #4] + 80054be: 89ba ldrh r2, [r7, #12] + 80054c0: 429a cmp r2, r3 + 80054c2: d3e8 bcc.n 8005496 for(uint16_t temp_y=0;temp_y<16;temp_y++) - 8004180: 89fb ldrh r3, [r7, #14] - 8004182: 3301 adds r3, #1 - 8004184: 81fb strh r3, [r7, #14] - 8004186: 89fb ldrh r3, [r7, #14] - 8004188: 2b0f cmp r3, #15 - 800418a: d9d5 bls.n 8004138 + 80054c4: 89fb ldrh r3, [r7, #14] + 80054c6: 3301 adds r3, #1 + 80054c8: 81fb strh r3, [r7, #14] + 80054ca: 89fb ldrh r3, [r7, #14] + 80054cc: 2b0f cmp r3, #15 + 80054ce: d9d5 bls.n 800547c } } } //显示title LCD_ShowString(temp_window->x,temp_window->y,&temp_window->title,16,WHITE,WHITE); - 800418c: 68bb ldr r3, [r7, #8] - 800418e: 8818 ldrh r0, [r3, #0] - 8004190: 68bb ldr r3, [r7, #8] - 8004192: 8859 ldrh r1, [r3, #2] - 8004194: 68bb ldr r3, [r7, #8] - 8004196: f103 020c add.w r2, r3, #12 - 800419a: f64f 73ff movw r3, #65535 ; 0xffff - 800419e: 9301 str r3, [sp, #4] - 80041a0: f64f 73ff movw r3, #65535 ; 0xffff - 80041a4: 9300 str r3, [sp, #0] - 80041a6: 2310 movs r3, #16 - 80041a8: f7ff f900 bl 80033ac + 80054d0: 68bb ldr r3, [r7, #8] + 80054d2: 8818 ldrh r0, [r3, #0] + 80054d4: 68bb ldr r3, [r7, #8] + 80054d6: 8859 ldrh r1, [r3, #2] + 80054d8: 68bb ldr r3, [r7, #8] + 80054da: f103 020c add.w r2, r3, #12 + 80054de: f64f 73ff movw r3, #65535 ; 0xffff + 80054e2: 9301 str r3, [sp, #4] + 80054e4: f64f 73ff movw r3, #65535 ; 0xffff + 80054e8: 9300 str r3, [sp, #0] + 80054ea: 2310 movs r3, #16 + 80054ec: f7fe ffec bl 80044c8 //绘制下一个窗口 temp_windows_stack=temp_windows_stack->next; - 80041ac: 697b ldr r3, [r7, #20] - 80041ae: 689b ldr r3, [r3, #8] - 80041b0: 617b str r3, [r7, #20] - 80041b2: e001 b.n 80041b8 + 80054f0: 697b ldr r3, [r7, #20] + 80054f2: 689b ldr r3, [r3, #8] + 80054f4: 617b str r3, [r7, #20] + 80054f6: e001 b.n 80054fc }else { flag=0; - 80041b4: 2300 movs r3, #0 - 80041b6: 61fb str r3, [r7, #28] + 80054f8: 2300 movs r3, #0 + 80054fa: 61fb str r3, [r7, #28] } }while(flag); - 80041b8: 69fb ldr r3, [r7, #28] - 80041ba: 2b00 cmp r3, #0 - 80041bc: f47f af74 bne.w 80040a8 + 80054fc: 69fb ldr r3, [r7, #28] + 80054fe: 2b00 cmp r3, #0 + 8005500: f47f af74 bne.w 80053ec } } */ } - 80041c0: bf00 nop - 80041c2: bf00 nop - 80041c4: 3720 adds r7, #32 - 80041c6: 46bd mov sp, r7 - 80041c8: bd80 pop {r7, pc} + 8005504: bf00 nop + 8005506: bf00 nop + 8005508: 3720 adds r7, #32 + 800550a: 46bd mov sp, r7 + 800550c: bd80 pop {r7, pc} ... -080041cc <__errno>: - 80041cc: 4b01 ldr r3, [pc, #4] ; (80041d4 <__errno+0x8>) - 80041ce: 6818 ldr r0, [r3, #0] - 80041d0: 4770 bx lr - 80041d2: bf00 nop - 80041d4: 2000000c .word 0x2000000c +08005510 <__errno>: + 8005510: 4b01 ldr r3, [pc, #4] ; (8005518 <__errno+0x8>) + 8005512: 6818 ldr r0, [r3, #0] + 8005514: 4770 bx lr + 8005516: bf00 nop + 8005518: 2000000c .word 0x2000000c -080041d8 <__libc_init_array>: - 80041d8: b570 push {r4, r5, r6, lr} - 80041da: 2600 movs r6, #0 - 80041dc: 4d0c ldr r5, [pc, #48] ; (8004210 <__libc_init_array+0x38>) - 80041de: 4c0d ldr r4, [pc, #52] ; (8004214 <__libc_init_array+0x3c>) - 80041e0: 1b64 subs r4, r4, r5 - 80041e2: 10a4 asrs r4, r4, #2 - 80041e4: 42a6 cmp r6, r4 - 80041e6: d109 bne.n 80041fc <__libc_init_array+0x24> - 80041e8: f002 feba bl 8006f60 <_init> - 80041ec: 2600 movs r6, #0 - 80041ee: 4d0a ldr r5, [pc, #40] ; (8004218 <__libc_init_array+0x40>) - 80041f0: 4c0a ldr r4, [pc, #40] ; (800421c <__libc_init_array+0x44>) - 80041f2: 1b64 subs r4, r4, r5 - 80041f4: 10a4 asrs r4, r4, #2 - 80041f6: 42a6 cmp r6, r4 - 80041f8: d105 bne.n 8004206 <__libc_init_array+0x2e> - 80041fa: bd70 pop {r4, r5, r6, pc} - 80041fc: f855 3b04 ldr.w r3, [r5], #4 - 8004200: 4798 blx r3 - 8004202: 3601 adds r6, #1 - 8004204: e7ee b.n 80041e4 <__libc_init_array+0xc> - 8004206: f855 3b04 ldr.w r3, [r5], #4 - 800420a: 4798 blx r3 - 800420c: 3601 adds r6, #1 - 800420e: e7f2 b.n 80041f6 <__libc_init_array+0x1e> - 8004210: 08007eb4 .word 0x08007eb4 - 8004214: 08007eb4 .word 0x08007eb4 - 8004218: 08007eb4 .word 0x08007eb4 - 800421c: 08007eb8 .word 0x08007eb8 +0800551c <__libc_init_array>: + 800551c: b570 push {r4, r5, r6, lr} + 800551e: 2600 movs r6, #0 + 8005520: 4d0c ldr r5, [pc, #48] ; (8005554 <__libc_init_array+0x38>) + 8005522: 4c0d ldr r4, [pc, #52] ; (8005558 <__libc_init_array+0x3c>) + 8005524: 1b64 subs r4, r4, r5 + 8005526: 10a4 asrs r4, r4, #2 + 8005528: 42a6 cmp r6, r4 + 800552a: d109 bne.n 8005540 <__libc_init_array+0x24> + 800552c: f002 fec4 bl 80082b8 <_init> + 8005530: 2600 movs r6, #0 + 8005532: 4d0a ldr r5, [pc, #40] ; (800555c <__libc_init_array+0x40>) + 8005534: 4c0a ldr r4, [pc, #40] ; (8005560 <__libc_init_array+0x44>) + 8005536: 1b64 subs r4, r4, r5 + 8005538: 10a4 asrs r4, r4, #2 + 800553a: 42a6 cmp r6, r4 + 800553c: d105 bne.n 800554a <__libc_init_array+0x2e> + 800553e: bd70 pop {r4, r5, r6, pc} + 8005540: f855 3b04 ldr.w r3, [r5], #4 + 8005544: 4798 blx r3 + 8005546: 3601 adds r6, #1 + 8005548: e7ee b.n 8005528 <__libc_init_array+0xc> + 800554a: f855 3b04 ldr.w r3, [r5], #4 + 800554e: 4798 blx r3 + 8005550: 3601 adds r6, #1 + 8005552: e7f2 b.n 800553a <__libc_init_array+0x1e> + 8005554: 08009214 .word 0x08009214 + 8005558: 08009214 .word 0x08009214 + 800555c: 08009214 .word 0x08009214 + 8005560: 08009218 .word 0x08009218 -08004220 : - 8004220: 4b02 ldr r3, [pc, #8] ; (800422c ) - 8004222: 4601 mov r1, r0 - 8004224: 6818 ldr r0, [r3, #0] - 8004226: f000 b857 b.w 80042d8 <_malloc_r> - 800422a: bf00 nop - 800422c: 2000000c .word 0x2000000c +08005564 : + 8005564: 4b02 ldr r3, [pc, #8] ; (8005570 ) + 8005566: 4601 mov r1, r0 + 8005568: 6818 ldr r0, [r3, #0] + 800556a: f000 b85f b.w 800562c <_malloc_r> + 800556e: bf00 nop + 8005570: 2000000c .word 0x2000000c -08004230 : - 8004230: 4603 mov r3, r0 - 8004232: 4402 add r2, r0 - 8004234: 4293 cmp r3, r2 - 8004236: d100 bne.n 800423a - 8004238: 4770 bx lr - 800423a: f803 1b01 strb.w r1, [r3], #1 - 800423e: e7f9 b.n 8004234 +08005574 : + 8005574: 4b02 ldr r3, [pc, #8] ; (8005580 ) + 8005576: 4601 mov r1, r0 + 8005578: 6818 ldr r0, [r3, #0] + 800557a: f000 b80b b.w 8005594 <_free_r> + 800557e: bf00 nop + 8005580: 2000000c .word 0x2000000c -08004240 <_free_r>: - 8004240: b538 push {r3, r4, r5, lr} - 8004242: 4605 mov r5, r0 - 8004244: 2900 cmp r1, #0 - 8004246: d043 beq.n 80042d0 <_free_r+0x90> - 8004248: f851 3c04 ldr.w r3, [r1, #-4] - 800424c: 1f0c subs r4, r1, #4 - 800424e: 2b00 cmp r3, #0 - 8004250: bfb8 it lt - 8004252: 18e4 addlt r4, r4, r3 - 8004254: f001 fbc6 bl 80059e4 <__malloc_lock> - 8004258: 4a1e ldr r2, [pc, #120] ; (80042d4 <_free_r+0x94>) - 800425a: 6813 ldr r3, [r2, #0] - 800425c: 4610 mov r0, r2 - 800425e: b933 cbnz r3, 800426e <_free_r+0x2e> - 8004260: 6063 str r3, [r4, #4] - 8004262: 6014 str r4, [r2, #0] - 8004264: 4628 mov r0, r5 - 8004266: e8bd 4038 ldmia.w sp!, {r3, r4, r5, lr} - 800426a: f001 bbc1 b.w 80059f0 <__malloc_unlock> - 800426e: 42a3 cmp r3, r4 - 8004270: d90a bls.n 8004288 <_free_r+0x48> - 8004272: 6821 ldr r1, [r4, #0] - 8004274: 1862 adds r2, r4, r1 - 8004276: 4293 cmp r3, r2 - 8004278: bf01 itttt eq - 800427a: 681a ldreq r2, [r3, #0] - 800427c: 685b ldreq r3, [r3, #4] - 800427e: 1852 addeq r2, r2, r1 - 8004280: 6022 streq r2, [r4, #0] - 8004282: 6063 str r3, [r4, #4] - 8004284: 6004 str r4, [r0, #0] - 8004286: e7ed b.n 8004264 <_free_r+0x24> - 8004288: 461a mov r2, r3 - 800428a: 685b ldr r3, [r3, #4] - 800428c: b10b cbz r3, 8004292 <_free_r+0x52> - 800428e: 42a3 cmp r3, r4 - 8004290: d9fa bls.n 8004288 <_free_r+0x48> - 8004292: 6811 ldr r1, [r2, #0] - 8004294: 1850 adds r0, r2, r1 - 8004296: 42a0 cmp r0, r4 - 8004298: d10b bne.n 80042b2 <_free_r+0x72> - 800429a: 6820 ldr r0, [r4, #0] - 800429c: 4401 add r1, r0 - 800429e: 1850 adds r0, r2, r1 - 80042a0: 4283 cmp r3, r0 - 80042a2: 6011 str r1, [r2, #0] - 80042a4: d1de bne.n 8004264 <_free_r+0x24> - 80042a6: 6818 ldr r0, [r3, #0] - 80042a8: 685b ldr r3, [r3, #4] - 80042aa: 4401 add r1, r0 - 80042ac: 6011 str r1, [r2, #0] - 80042ae: 6053 str r3, [r2, #4] - 80042b0: e7d8 b.n 8004264 <_free_r+0x24> - 80042b2: d902 bls.n 80042ba <_free_r+0x7a> - 80042b4: 230c movs r3, #12 - 80042b6: 602b str r3, [r5, #0] - 80042b8: e7d4 b.n 8004264 <_free_r+0x24> - 80042ba: 6820 ldr r0, [r4, #0] - 80042bc: 1821 adds r1, r4, r0 - 80042be: 428b cmp r3, r1 - 80042c0: bf01 itttt eq - 80042c2: 6819 ldreq r1, [r3, #0] - 80042c4: 685b ldreq r3, [r3, #4] - 80042c6: 1809 addeq r1, r1, r0 - 80042c8: 6021 streq r1, [r4, #0] - 80042ca: 6063 str r3, [r4, #4] - 80042cc: 6054 str r4, [r2, #4] - 80042ce: e7c9 b.n 8004264 <_free_r+0x24> - 80042d0: bd38 pop {r3, r4, r5, pc} - 80042d2: bf00 nop - 80042d4: 20000200 .word 0x20000200 +08005584 : + 8005584: 4603 mov r3, r0 + 8005586: 4402 add r2, r0 + 8005588: 4293 cmp r3, r2 + 800558a: d100 bne.n 800558e + 800558c: 4770 bx lr + 800558e: f803 1b01 strb.w r1, [r3], #1 + 8005592: e7f9 b.n 8005588 -080042d8 <_malloc_r>: - 80042d8: b5f8 push {r3, r4, r5, r6, r7, lr} - 80042da: 1ccd adds r5, r1, #3 - 80042dc: f025 0503 bic.w r5, r5, #3 - 80042e0: 3508 adds r5, #8 - 80042e2: 2d0c cmp r5, #12 - 80042e4: bf38 it cc - 80042e6: 250c movcc r5, #12 - 80042e8: 2d00 cmp r5, #0 - 80042ea: 4606 mov r6, r0 - 80042ec: db01 blt.n 80042f2 <_malloc_r+0x1a> - 80042ee: 42a9 cmp r1, r5 - 80042f0: d903 bls.n 80042fa <_malloc_r+0x22> - 80042f2: 230c movs r3, #12 - 80042f4: 6033 str r3, [r6, #0] - 80042f6: 2000 movs r0, #0 - 80042f8: bdf8 pop {r3, r4, r5, r6, r7, pc} - 80042fa: f001 fb73 bl 80059e4 <__malloc_lock> - 80042fe: 4921 ldr r1, [pc, #132] ; (8004384 <_malloc_r+0xac>) - 8004300: 680a ldr r2, [r1, #0] - 8004302: 4614 mov r4, r2 - 8004304: b99c cbnz r4, 800432e <_malloc_r+0x56> - 8004306: 4f20 ldr r7, [pc, #128] ; (8004388 <_malloc_r+0xb0>) - 8004308: 683b ldr r3, [r7, #0] - 800430a: b923 cbnz r3, 8004316 <_malloc_r+0x3e> - 800430c: 4621 mov r1, r4 - 800430e: 4630 mov r0, r6 - 8004310: f000 fc9c bl 8004c4c <_sbrk_r> - 8004314: 6038 str r0, [r7, #0] - 8004316: 4629 mov r1, r5 - 8004318: 4630 mov r0, r6 - 800431a: f000 fc97 bl 8004c4c <_sbrk_r> - 800431e: 1c43 adds r3, r0, #1 - 8004320: d123 bne.n 800436a <_malloc_r+0x92> - 8004322: 230c movs r3, #12 - 8004324: 4630 mov r0, r6 - 8004326: 6033 str r3, [r6, #0] - 8004328: f001 fb62 bl 80059f0 <__malloc_unlock> - 800432c: e7e3 b.n 80042f6 <_malloc_r+0x1e> - 800432e: 6823 ldr r3, [r4, #0] - 8004330: 1b5b subs r3, r3, r5 - 8004332: d417 bmi.n 8004364 <_malloc_r+0x8c> - 8004334: 2b0b cmp r3, #11 - 8004336: d903 bls.n 8004340 <_malloc_r+0x68> - 8004338: 6023 str r3, [r4, #0] - 800433a: 441c add r4, r3 - 800433c: 6025 str r5, [r4, #0] - 800433e: e004 b.n 800434a <_malloc_r+0x72> - 8004340: 6863 ldr r3, [r4, #4] - 8004342: 42a2 cmp r2, r4 - 8004344: bf0c ite eq - 8004346: 600b streq r3, [r1, #0] - 8004348: 6053 strne r3, [r2, #4] - 800434a: 4630 mov r0, r6 - 800434c: f001 fb50 bl 80059f0 <__malloc_unlock> - 8004350: f104 000b add.w r0, r4, #11 - 8004354: 1d23 adds r3, r4, #4 - 8004356: f020 0007 bic.w r0, r0, #7 - 800435a: 1ac2 subs r2, r0, r3 - 800435c: d0cc beq.n 80042f8 <_malloc_r+0x20> - 800435e: 1a1b subs r3, r3, r0 - 8004360: 50a3 str r3, [r4, r2] - 8004362: e7c9 b.n 80042f8 <_malloc_r+0x20> - 8004364: 4622 mov r2, r4 - 8004366: 6864 ldr r4, [r4, #4] - 8004368: e7cc b.n 8004304 <_malloc_r+0x2c> - 800436a: 1cc4 adds r4, r0, #3 - 800436c: f024 0403 bic.w r4, r4, #3 - 8004370: 42a0 cmp r0, r4 - 8004372: d0e3 beq.n 800433c <_malloc_r+0x64> - 8004374: 1a21 subs r1, r4, r0 - 8004376: 4630 mov r0, r6 - 8004378: f000 fc68 bl 8004c4c <_sbrk_r> - 800437c: 3001 adds r0, #1 - 800437e: d1dd bne.n 800433c <_malloc_r+0x64> - 8004380: e7cf b.n 8004322 <_malloc_r+0x4a> - 8004382: bf00 nop - 8004384: 20000200 .word 0x20000200 - 8004388: 20000204 .word 0x20000204 +08005594 <_free_r>: + 8005594: b538 push {r3, r4, r5, lr} + 8005596: 4605 mov r5, r0 + 8005598: 2900 cmp r1, #0 + 800559a: d043 beq.n 8005624 <_free_r+0x90> + 800559c: f851 3c04 ldr.w r3, [r1, #-4] + 80055a0: 1f0c subs r4, r1, #4 + 80055a2: 2b00 cmp r3, #0 + 80055a4: bfb8 it lt + 80055a6: 18e4 addlt r4, r4, r3 + 80055a8: f001 fbc8 bl 8006d3c <__malloc_lock> + 80055ac: 4a1e ldr r2, [pc, #120] ; (8005628 <_free_r+0x94>) + 80055ae: 6813 ldr r3, [r2, #0] + 80055b0: 4610 mov r0, r2 + 80055b2: b933 cbnz r3, 80055c2 <_free_r+0x2e> + 80055b4: 6063 str r3, [r4, #4] + 80055b6: 6014 str r4, [r2, #0] + 80055b8: 4628 mov r0, r5 + 80055ba: e8bd 4038 ldmia.w sp!, {r3, r4, r5, lr} + 80055be: f001 bbc3 b.w 8006d48 <__malloc_unlock> + 80055c2: 42a3 cmp r3, r4 + 80055c4: d90a bls.n 80055dc <_free_r+0x48> + 80055c6: 6821 ldr r1, [r4, #0] + 80055c8: 1862 adds r2, r4, r1 + 80055ca: 4293 cmp r3, r2 + 80055cc: bf01 itttt eq + 80055ce: 681a ldreq r2, [r3, #0] + 80055d0: 685b ldreq r3, [r3, #4] + 80055d2: 1852 addeq r2, r2, r1 + 80055d4: 6022 streq r2, [r4, #0] + 80055d6: 6063 str r3, [r4, #4] + 80055d8: 6004 str r4, [r0, #0] + 80055da: e7ed b.n 80055b8 <_free_r+0x24> + 80055dc: 461a mov r2, r3 + 80055de: 685b ldr r3, [r3, #4] + 80055e0: b10b cbz r3, 80055e6 <_free_r+0x52> + 80055e2: 42a3 cmp r3, r4 + 80055e4: d9fa bls.n 80055dc <_free_r+0x48> + 80055e6: 6811 ldr r1, [r2, #0] + 80055e8: 1850 adds r0, r2, r1 + 80055ea: 42a0 cmp r0, r4 + 80055ec: d10b bne.n 8005606 <_free_r+0x72> + 80055ee: 6820 ldr r0, [r4, #0] + 80055f0: 4401 add r1, r0 + 80055f2: 1850 adds r0, r2, r1 + 80055f4: 4283 cmp r3, r0 + 80055f6: 6011 str r1, [r2, #0] + 80055f8: d1de bne.n 80055b8 <_free_r+0x24> + 80055fa: 6818 ldr r0, [r3, #0] + 80055fc: 685b ldr r3, [r3, #4] + 80055fe: 4401 add r1, r0 + 8005600: 6011 str r1, [r2, #0] + 8005602: 6053 str r3, [r2, #4] + 8005604: e7d8 b.n 80055b8 <_free_r+0x24> + 8005606: d902 bls.n 800560e <_free_r+0x7a> + 8005608: 230c movs r3, #12 + 800560a: 602b str r3, [r5, #0] + 800560c: e7d4 b.n 80055b8 <_free_r+0x24> + 800560e: 6820 ldr r0, [r4, #0] + 8005610: 1821 adds r1, r4, r0 + 8005612: 428b cmp r3, r1 + 8005614: bf01 itttt eq + 8005616: 6819 ldreq r1, [r3, #0] + 8005618: 685b ldreq r3, [r3, #4] + 800561a: 1809 addeq r1, r1, r0 + 800561c: 6021 streq r1, [r4, #0] + 800561e: 6063 str r3, [r4, #4] + 8005620: 6054 str r4, [r2, #4] + 8005622: e7c9 b.n 80055b8 <_free_r+0x24> + 8005624: bd38 pop {r3, r4, r5, pc} + 8005626: bf00 nop + 8005628: 20000200 .word 0x20000200 -0800438c <__cvt>: - 800438c: 2b00 cmp r3, #0 - 800438e: e92d 47f0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, lr} - 8004392: 461f mov r7, r3 - 8004394: bfbb ittet lt - 8004396: f103 4300 addlt.w r3, r3, #2147483648 ; 0x80000000 - 800439a: 461f movlt r7, r3 - 800439c: 2300 movge r3, #0 - 800439e: 232d movlt r3, #45 ; 0x2d - 80043a0: b088 sub sp, #32 - 80043a2: 4614 mov r4, r2 - 80043a4: 9a12 ldr r2, [sp, #72] ; 0x48 - 80043a6: 9d10 ldr r5, [sp, #64] ; 0x40 - 80043a8: 7013 strb r3, [r2, #0] - 80043aa: 9b14 ldr r3, [sp, #80] ; 0x50 - 80043ac: f8dd a04c ldr.w sl, [sp, #76] ; 0x4c - 80043b0: f023 0820 bic.w r8, r3, #32 - 80043b4: f1b8 0f46 cmp.w r8, #70 ; 0x46 - 80043b8: d005 beq.n 80043c6 <__cvt+0x3a> - 80043ba: f1b8 0f45 cmp.w r8, #69 ; 0x45 - 80043be: d100 bne.n 80043c2 <__cvt+0x36> - 80043c0: 3501 adds r5, #1 - 80043c2: 2302 movs r3, #2 - 80043c4: e000 b.n 80043c8 <__cvt+0x3c> - 80043c6: 2303 movs r3, #3 - 80043c8: aa07 add r2, sp, #28 - 80043ca: 9204 str r2, [sp, #16] - 80043cc: aa06 add r2, sp, #24 - 80043ce: e9cd a202 strd sl, r2, [sp, #8] - 80043d2: e9cd 3500 strd r3, r5, [sp] - 80043d6: 4622 mov r2, r4 - 80043d8: 463b mov r3, r7 - 80043da: f000 fcf5 bl 8004dc8 <_dtoa_r> - 80043de: f1b8 0f47 cmp.w r8, #71 ; 0x47 - 80043e2: 4606 mov r6, r0 - 80043e4: d102 bne.n 80043ec <__cvt+0x60> - 80043e6: 9b11 ldr r3, [sp, #68] ; 0x44 - 80043e8: 07db lsls r3, r3, #31 - 80043ea: d522 bpl.n 8004432 <__cvt+0xa6> - 80043ec: f1b8 0f46 cmp.w r8, #70 ; 0x46 - 80043f0: eb06 0905 add.w r9, r6, r5 - 80043f4: d110 bne.n 8004418 <__cvt+0x8c> - 80043f6: 7833 ldrb r3, [r6, #0] - 80043f8: 2b30 cmp r3, #48 ; 0x30 - 80043fa: d10a bne.n 8004412 <__cvt+0x86> - 80043fc: 2200 movs r2, #0 - 80043fe: 2300 movs r3, #0 - 8004400: 4620 mov r0, r4 - 8004402: 4639 mov r1, r7 - 8004404: f7fc fb3c bl 8000a80 <__aeabi_dcmpeq> - 8004408: b918 cbnz r0, 8004412 <__cvt+0x86> - 800440a: f1c5 0501 rsb r5, r5, #1 - 800440e: f8ca 5000 str.w r5, [sl] - 8004412: f8da 3000 ldr.w r3, [sl] - 8004416: 4499 add r9, r3 - 8004418: 2200 movs r2, #0 - 800441a: 2300 movs r3, #0 - 800441c: 4620 mov r0, r4 - 800441e: 4639 mov r1, r7 - 8004420: f7fc fb2e bl 8000a80 <__aeabi_dcmpeq> - 8004424: b108 cbz r0, 800442a <__cvt+0x9e> - 8004426: f8cd 901c str.w r9, [sp, #28] - 800442a: 2230 movs r2, #48 ; 0x30 - 800442c: 9b07 ldr r3, [sp, #28] - 800442e: 454b cmp r3, r9 - 8004430: d307 bcc.n 8004442 <__cvt+0xb6> - 8004432: 4630 mov r0, r6 - 8004434: 9b07 ldr r3, [sp, #28] - 8004436: 9a15 ldr r2, [sp, #84] ; 0x54 - 8004438: 1b9b subs r3, r3, r6 - 800443a: 6013 str r3, [r2, #0] - 800443c: b008 add sp, #32 - 800443e: e8bd 87f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, pc} - 8004442: 1c59 adds r1, r3, #1 - 8004444: 9107 str r1, [sp, #28] - 8004446: 701a strb r2, [r3, #0] - 8004448: e7f0 b.n 800442c <__cvt+0xa0> +0800562c <_malloc_r>: + 800562c: b5f8 push {r3, r4, r5, r6, r7, lr} + 800562e: 1ccd adds r5, r1, #3 + 8005630: f025 0503 bic.w r5, r5, #3 + 8005634: 3508 adds r5, #8 + 8005636: 2d0c cmp r5, #12 + 8005638: bf38 it cc + 800563a: 250c movcc r5, #12 + 800563c: 2d00 cmp r5, #0 + 800563e: 4606 mov r6, r0 + 8005640: db01 blt.n 8005646 <_malloc_r+0x1a> + 8005642: 42a9 cmp r1, r5 + 8005644: d903 bls.n 800564e <_malloc_r+0x22> + 8005646: 230c movs r3, #12 + 8005648: 6033 str r3, [r6, #0] + 800564a: 2000 movs r0, #0 + 800564c: bdf8 pop {r3, r4, r5, r6, r7, pc} + 800564e: f001 fb75 bl 8006d3c <__malloc_lock> + 8005652: 4921 ldr r1, [pc, #132] ; (80056d8 <_malloc_r+0xac>) + 8005654: 680a ldr r2, [r1, #0] + 8005656: 4614 mov r4, r2 + 8005658: b99c cbnz r4, 8005682 <_malloc_r+0x56> + 800565a: 4f20 ldr r7, [pc, #128] ; (80056dc <_malloc_r+0xb0>) + 800565c: 683b ldr r3, [r7, #0] + 800565e: b923 cbnz r3, 800566a <_malloc_r+0x3e> + 8005660: 4621 mov r1, r4 + 8005662: 4630 mov r0, r6 + 8005664: f000 fc9c bl 8005fa0 <_sbrk_r> + 8005668: 6038 str r0, [r7, #0] + 800566a: 4629 mov r1, r5 + 800566c: 4630 mov r0, r6 + 800566e: f000 fc97 bl 8005fa0 <_sbrk_r> + 8005672: 1c43 adds r3, r0, #1 + 8005674: d123 bne.n 80056be <_malloc_r+0x92> + 8005676: 230c movs r3, #12 + 8005678: 4630 mov r0, r6 + 800567a: 6033 str r3, [r6, #0] + 800567c: f001 fb64 bl 8006d48 <__malloc_unlock> + 8005680: e7e3 b.n 800564a <_malloc_r+0x1e> + 8005682: 6823 ldr r3, [r4, #0] + 8005684: 1b5b subs r3, r3, r5 + 8005686: d417 bmi.n 80056b8 <_malloc_r+0x8c> + 8005688: 2b0b cmp r3, #11 + 800568a: d903 bls.n 8005694 <_malloc_r+0x68> + 800568c: 6023 str r3, [r4, #0] + 800568e: 441c add r4, r3 + 8005690: 6025 str r5, [r4, #0] + 8005692: e004 b.n 800569e <_malloc_r+0x72> + 8005694: 6863 ldr r3, [r4, #4] + 8005696: 42a2 cmp r2, r4 + 8005698: bf0c ite eq + 800569a: 600b streq r3, [r1, #0] + 800569c: 6053 strne r3, [r2, #4] + 800569e: 4630 mov r0, r6 + 80056a0: f001 fb52 bl 8006d48 <__malloc_unlock> + 80056a4: f104 000b add.w r0, r4, #11 + 80056a8: 1d23 adds r3, r4, #4 + 80056aa: f020 0007 bic.w r0, r0, #7 + 80056ae: 1ac2 subs r2, r0, r3 + 80056b0: d0cc beq.n 800564c <_malloc_r+0x20> + 80056b2: 1a1b subs r3, r3, r0 + 80056b4: 50a3 str r3, [r4, r2] + 80056b6: e7c9 b.n 800564c <_malloc_r+0x20> + 80056b8: 4622 mov r2, r4 + 80056ba: 6864 ldr r4, [r4, #4] + 80056bc: e7cc b.n 8005658 <_malloc_r+0x2c> + 80056be: 1cc4 adds r4, r0, #3 + 80056c0: f024 0403 bic.w r4, r4, #3 + 80056c4: 42a0 cmp r0, r4 + 80056c6: d0e3 beq.n 8005690 <_malloc_r+0x64> + 80056c8: 1a21 subs r1, r4, r0 + 80056ca: 4630 mov r0, r6 + 80056cc: f000 fc68 bl 8005fa0 <_sbrk_r> + 80056d0: 3001 adds r0, #1 + 80056d2: d1dd bne.n 8005690 <_malloc_r+0x64> + 80056d4: e7cf b.n 8005676 <_malloc_r+0x4a> + 80056d6: bf00 nop + 80056d8: 20000200 .word 0x20000200 + 80056dc: 20000204 .word 0x20000204 -0800444a <__exponent>: - 800444a: 4603 mov r3, r0 - 800444c: b5f7 push {r0, r1, r2, r4, r5, r6, r7, lr} - 800444e: 2900 cmp r1, #0 - 8004450: f803 2b02 strb.w r2, [r3], #2 - 8004454: bfb6 itet lt - 8004456: 222d movlt r2, #45 ; 0x2d - 8004458: 222b movge r2, #43 ; 0x2b - 800445a: 4249 neglt r1, r1 - 800445c: 2909 cmp r1, #9 - 800445e: 7042 strb r2, [r0, #1] - 8004460: dd2b ble.n 80044ba <__exponent+0x70> - 8004462: f10d 0407 add.w r4, sp, #7 - 8004466: 46a4 mov ip, r4 - 8004468: 270a movs r7, #10 - 800446a: fb91 f6f7 sdiv r6, r1, r7 - 800446e: 460a mov r2, r1 - 8004470: 46a6 mov lr, r4 - 8004472: fb07 1516 mls r5, r7, r6, r1 - 8004476: 2a63 cmp r2, #99 ; 0x63 - 8004478: f105 0530 add.w r5, r5, #48 ; 0x30 - 800447c: 4631 mov r1, r6 - 800447e: f104 34ff add.w r4, r4, #4294967295 ; 0xffffffff - 8004482: f80e 5c01 strb.w r5, [lr, #-1] - 8004486: dcf0 bgt.n 800446a <__exponent+0x20> - 8004488: 3130 adds r1, #48 ; 0x30 - 800448a: f1ae 0502 sub.w r5, lr, #2 - 800448e: f804 1c01 strb.w r1, [r4, #-1] - 8004492: 4629 mov r1, r5 - 8004494: 1c44 adds r4, r0, #1 - 8004496: 4561 cmp r1, ip - 8004498: d30a bcc.n 80044b0 <__exponent+0x66> - 800449a: f10d 0209 add.w r2, sp, #9 - 800449e: eba2 020e sub.w r2, r2, lr - 80044a2: 4565 cmp r5, ip - 80044a4: bf88 it hi - 80044a6: 2200 movhi r2, #0 - 80044a8: 4413 add r3, r2 - 80044aa: 1a18 subs r0, r3, r0 - 80044ac: b003 add sp, #12 - 80044ae: bdf0 pop {r4, r5, r6, r7, pc} - 80044b0: f811 2b01 ldrb.w r2, [r1], #1 - 80044b4: f804 2f01 strb.w r2, [r4, #1]! - 80044b8: e7ed b.n 8004496 <__exponent+0x4c> - 80044ba: 2330 movs r3, #48 ; 0x30 - 80044bc: 3130 adds r1, #48 ; 0x30 - 80044be: 7083 strb r3, [r0, #2] - 80044c0: 70c1 strb r1, [r0, #3] - 80044c2: 1d03 adds r3, r0, #4 - 80044c4: e7f1 b.n 80044aa <__exponent+0x60> +080056e0 <__cvt>: + 80056e0: 2b00 cmp r3, #0 + 80056e2: e92d 47f0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, lr} + 80056e6: 461f mov r7, r3 + 80056e8: bfbb ittet lt + 80056ea: f103 4300 addlt.w r3, r3, #2147483648 ; 0x80000000 + 80056ee: 461f movlt r7, r3 + 80056f0: 2300 movge r3, #0 + 80056f2: 232d movlt r3, #45 ; 0x2d + 80056f4: b088 sub sp, #32 + 80056f6: 4614 mov r4, r2 + 80056f8: 9a12 ldr r2, [sp, #72] ; 0x48 + 80056fa: 9d10 ldr r5, [sp, #64] ; 0x40 + 80056fc: 7013 strb r3, [r2, #0] + 80056fe: 9b14 ldr r3, [sp, #80] ; 0x50 + 8005700: f8dd a04c ldr.w sl, [sp, #76] ; 0x4c + 8005704: f023 0820 bic.w r8, r3, #32 + 8005708: f1b8 0f46 cmp.w r8, #70 ; 0x46 + 800570c: d005 beq.n 800571a <__cvt+0x3a> + 800570e: f1b8 0f45 cmp.w r8, #69 ; 0x45 + 8005712: d100 bne.n 8005716 <__cvt+0x36> + 8005714: 3501 adds r5, #1 + 8005716: 2302 movs r3, #2 + 8005718: e000 b.n 800571c <__cvt+0x3c> + 800571a: 2303 movs r3, #3 + 800571c: aa07 add r2, sp, #28 + 800571e: 9204 str r2, [sp, #16] + 8005720: aa06 add r2, sp, #24 + 8005722: e9cd a202 strd sl, r2, [sp, #8] + 8005726: e9cd 3500 strd r3, r5, [sp] + 800572a: 4622 mov r2, r4 + 800572c: 463b mov r3, r7 + 800572e: f000 fcf7 bl 8006120 <_dtoa_r> + 8005732: f1b8 0f47 cmp.w r8, #71 ; 0x47 + 8005736: 4606 mov r6, r0 + 8005738: d102 bne.n 8005740 <__cvt+0x60> + 800573a: 9b11 ldr r3, [sp, #68] ; 0x44 + 800573c: 07db lsls r3, r3, #31 + 800573e: d522 bpl.n 8005786 <__cvt+0xa6> + 8005740: f1b8 0f46 cmp.w r8, #70 ; 0x46 + 8005744: eb06 0905 add.w r9, r6, r5 + 8005748: d110 bne.n 800576c <__cvt+0x8c> + 800574a: 7833 ldrb r3, [r6, #0] + 800574c: 2b30 cmp r3, #48 ; 0x30 + 800574e: d10a bne.n 8005766 <__cvt+0x86> + 8005750: 2200 movs r2, #0 + 8005752: 2300 movs r3, #0 + 8005754: 4620 mov r0, r4 + 8005756: 4639 mov r1, r7 + 8005758: f7fb f992 bl 8000a80 <__aeabi_dcmpeq> + 800575c: b918 cbnz r0, 8005766 <__cvt+0x86> + 800575e: f1c5 0501 rsb r5, r5, #1 + 8005762: f8ca 5000 str.w r5, [sl] + 8005766: f8da 3000 ldr.w r3, [sl] + 800576a: 4499 add r9, r3 + 800576c: 2200 movs r2, #0 + 800576e: 2300 movs r3, #0 + 8005770: 4620 mov r0, r4 + 8005772: 4639 mov r1, r7 + 8005774: f7fb f984 bl 8000a80 <__aeabi_dcmpeq> + 8005778: b108 cbz r0, 800577e <__cvt+0x9e> + 800577a: f8cd 901c str.w r9, [sp, #28] + 800577e: 2230 movs r2, #48 ; 0x30 + 8005780: 9b07 ldr r3, [sp, #28] + 8005782: 454b cmp r3, r9 + 8005784: d307 bcc.n 8005796 <__cvt+0xb6> + 8005786: 4630 mov r0, r6 + 8005788: 9b07 ldr r3, [sp, #28] + 800578a: 9a15 ldr r2, [sp, #84] ; 0x54 + 800578c: 1b9b subs r3, r3, r6 + 800578e: 6013 str r3, [r2, #0] + 8005790: b008 add sp, #32 + 8005792: e8bd 87f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, pc} + 8005796: 1c59 adds r1, r3, #1 + 8005798: 9107 str r1, [sp, #28] + 800579a: 701a strb r2, [r3, #0] + 800579c: e7f0 b.n 8005780 <__cvt+0xa0> + +0800579e <__exponent>: + 800579e: 4603 mov r3, r0 + 80057a0: b5f7 push {r0, r1, r2, r4, r5, r6, r7, lr} + 80057a2: 2900 cmp r1, #0 + 80057a4: f803 2b02 strb.w r2, [r3], #2 + 80057a8: bfb6 itet lt + 80057aa: 222d movlt r2, #45 ; 0x2d + 80057ac: 222b movge r2, #43 ; 0x2b + 80057ae: 4249 neglt r1, r1 + 80057b0: 2909 cmp r1, #9 + 80057b2: 7042 strb r2, [r0, #1] + 80057b4: dd2b ble.n 800580e <__exponent+0x70> + 80057b6: f10d 0407 add.w r4, sp, #7 + 80057ba: 46a4 mov ip, r4 + 80057bc: 270a movs r7, #10 + 80057be: fb91 f6f7 sdiv r6, r1, r7 + 80057c2: 460a mov r2, r1 + 80057c4: 46a6 mov lr, r4 + 80057c6: fb07 1516 mls r5, r7, r6, r1 + 80057ca: 2a63 cmp r2, #99 ; 0x63 + 80057cc: f105 0530 add.w r5, r5, #48 ; 0x30 + 80057d0: 4631 mov r1, r6 + 80057d2: f104 34ff add.w r4, r4, #4294967295 ; 0xffffffff + 80057d6: f80e 5c01 strb.w r5, [lr, #-1] + 80057da: dcf0 bgt.n 80057be <__exponent+0x20> + 80057dc: 3130 adds r1, #48 ; 0x30 + 80057de: f1ae 0502 sub.w r5, lr, #2 + 80057e2: f804 1c01 strb.w r1, [r4, #-1] + 80057e6: 4629 mov r1, r5 + 80057e8: 1c44 adds r4, r0, #1 + 80057ea: 4561 cmp r1, ip + 80057ec: d30a bcc.n 8005804 <__exponent+0x66> + 80057ee: f10d 0209 add.w r2, sp, #9 + 80057f2: eba2 020e sub.w r2, r2, lr + 80057f6: 4565 cmp r5, ip + 80057f8: bf88 it hi + 80057fa: 2200 movhi r2, #0 + 80057fc: 4413 add r3, r2 + 80057fe: 1a18 subs r0, r3, r0 + 8005800: b003 add sp, #12 + 8005802: bdf0 pop {r4, r5, r6, r7, pc} + 8005804: f811 2b01 ldrb.w r2, [r1], #1 + 8005808: f804 2f01 strb.w r2, [r4, #1]! + 800580c: e7ed b.n 80057ea <__exponent+0x4c> + 800580e: 2330 movs r3, #48 ; 0x30 + 8005810: 3130 adds r1, #48 ; 0x30 + 8005812: 7083 strb r3, [r0, #2] + 8005814: 70c1 strb r1, [r0, #3] + 8005816: 1d03 adds r3, r0, #4 + 8005818: e7f1 b.n 80057fe <__exponent+0x60> ... -080044c8 <_printf_float>: - 80044c8: e92d 4ff0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, fp, lr} - 80044cc: b091 sub sp, #68 ; 0x44 - 80044ce: 460c mov r4, r1 - 80044d0: f8dd 8068 ldr.w r8, [sp, #104] ; 0x68 - 80044d4: 4616 mov r6, r2 - 80044d6: 461f mov r7, r3 - 80044d8: 4605 mov r5, r0 - 80044da: f001 fa63 bl 80059a4 <_localeconv_r> - 80044de: 6803 ldr r3, [r0, #0] - 80044e0: 4618 mov r0, r3 - 80044e2: 9309 str r3, [sp, #36] ; 0x24 - 80044e4: f7fb fea0 bl 8000228 - 80044e8: 2300 movs r3, #0 - 80044ea: 930e str r3, [sp, #56] ; 0x38 - 80044ec: f8d8 3000 ldr.w r3, [r8] - 80044f0: 900a str r0, [sp, #40] ; 0x28 - 80044f2: 3307 adds r3, #7 - 80044f4: f023 0307 bic.w r3, r3, #7 - 80044f8: f103 0208 add.w r2, r3, #8 - 80044fc: f894 9018 ldrb.w r9, [r4, #24] - 8004500: f8d4 b000 ldr.w fp, [r4] - 8004504: f8c8 2000 str.w r2, [r8] - 8004508: e9d3 2300 ldrd r2, r3, [r3] - 800450c: e9c4 2312 strd r2, r3, [r4, #72] ; 0x48 - 8004510: e9d4 8a12 ldrd r8, sl, [r4, #72] ; 0x48 - 8004514: f02a 4300 bic.w r3, sl, #2147483648 ; 0x80000000 - 8004518: 930b str r3, [sp, #44] ; 0x2c - 800451a: f04f 32ff mov.w r2, #4294967295 ; 0xffffffff - 800451e: 4640 mov r0, r8 - 8004520: 4b9c ldr r3, [pc, #624] ; (8004794 <_printf_float+0x2cc>) - 8004522: 990b ldr r1, [sp, #44] ; 0x2c - 8004524: f7fc fade bl 8000ae4 <__aeabi_dcmpun> - 8004528: bb70 cbnz r0, 8004588 <_printf_float+0xc0> - 800452a: f04f 32ff mov.w r2, #4294967295 ; 0xffffffff - 800452e: 4640 mov r0, r8 - 8004530: 4b98 ldr r3, [pc, #608] ; (8004794 <_printf_float+0x2cc>) - 8004532: 990b ldr r1, [sp, #44] ; 0x2c - 8004534: f7fc fab8 bl 8000aa8 <__aeabi_dcmple> - 8004538: bb30 cbnz r0, 8004588 <_printf_float+0xc0> - 800453a: 2200 movs r2, #0 - 800453c: 2300 movs r3, #0 - 800453e: 4640 mov r0, r8 - 8004540: 4651 mov r1, sl - 8004542: f7fc faa7 bl 8000a94 <__aeabi_dcmplt> - 8004546: b110 cbz r0, 800454e <_printf_float+0x86> - 8004548: 232d movs r3, #45 ; 0x2d - 800454a: f884 3043 strb.w r3, [r4, #67] ; 0x43 - 800454e: 4b92 ldr r3, [pc, #584] ; (8004798 <_printf_float+0x2d0>) - 8004550: 4892 ldr r0, [pc, #584] ; (800479c <_printf_float+0x2d4>) - 8004552: f1b9 0f47 cmp.w r9, #71 ; 0x47 - 8004556: bf94 ite ls - 8004558: 4698 movls r8, r3 - 800455a: 4680 movhi r8, r0 - 800455c: 2303 movs r3, #3 - 800455e: f04f 0a00 mov.w sl, #0 - 8004562: 6123 str r3, [r4, #16] - 8004564: f02b 0304 bic.w r3, fp, #4 - 8004568: 6023 str r3, [r4, #0] - 800456a: 4633 mov r3, r6 - 800456c: 4621 mov r1, r4 - 800456e: 4628 mov r0, r5 - 8004570: 9700 str r7, [sp, #0] - 8004572: aa0f add r2, sp, #60 ; 0x3c - 8004574: f000 f9d4 bl 8004920 <_printf_common> - 8004578: 3001 adds r0, #1 - 800457a: f040 8090 bne.w 800469e <_printf_float+0x1d6> - 800457e: f04f 30ff mov.w r0, #4294967295 ; 0xffffffff - 8004582: b011 add sp, #68 ; 0x44 - 8004584: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc} - 8004588: 4642 mov r2, r8 - 800458a: 4653 mov r3, sl - 800458c: 4640 mov r0, r8 - 800458e: 4651 mov r1, sl - 8004590: f7fc faa8 bl 8000ae4 <__aeabi_dcmpun> - 8004594: b148 cbz r0, 80045aa <_printf_float+0xe2> - 8004596: f1ba 0f00 cmp.w sl, #0 - 800459a: bfb8 it lt - 800459c: 232d movlt r3, #45 ; 0x2d - 800459e: 4880 ldr r0, [pc, #512] ; (80047a0 <_printf_float+0x2d8>) - 80045a0: bfb8 it lt - 80045a2: f884 3043 strblt.w r3, [r4, #67] ; 0x43 - 80045a6: 4b7f ldr r3, [pc, #508] ; (80047a4 <_printf_float+0x2dc>) - 80045a8: e7d3 b.n 8004552 <_printf_float+0x8a> - 80045aa: 6863 ldr r3, [r4, #4] - 80045ac: f009 01df and.w r1, r9, #223 ; 0xdf - 80045b0: 1c5a adds r2, r3, #1 - 80045b2: d142 bne.n 800463a <_printf_float+0x172> - 80045b4: 2306 movs r3, #6 - 80045b6: 6063 str r3, [r4, #4] - 80045b8: 2200 movs r2, #0 - 80045ba: 9206 str r2, [sp, #24] - 80045bc: aa0e add r2, sp, #56 ; 0x38 - 80045be: e9cd 9204 strd r9, r2, [sp, #16] - 80045c2: aa0d add r2, sp, #52 ; 0x34 - 80045c4: f44b 6380 orr.w r3, fp, #1024 ; 0x400 - 80045c8: 9203 str r2, [sp, #12] - 80045ca: f10d 0233 add.w r2, sp, #51 ; 0x33 - 80045ce: e9cd 3201 strd r3, r2, [sp, #4] - 80045d2: 6023 str r3, [r4, #0] - 80045d4: 6863 ldr r3, [r4, #4] - 80045d6: 4642 mov r2, r8 - 80045d8: 9300 str r3, [sp, #0] - 80045da: 4628 mov r0, r5 - 80045dc: 4653 mov r3, sl - 80045de: 910b str r1, [sp, #44] ; 0x2c - 80045e0: f7ff fed4 bl 800438c <__cvt> - 80045e4: 990b ldr r1, [sp, #44] ; 0x2c - 80045e6: 4680 mov r8, r0 - 80045e8: 2947 cmp r1, #71 ; 0x47 - 80045ea: 990d ldr r1, [sp, #52] ; 0x34 - 80045ec: d108 bne.n 8004600 <_printf_float+0x138> - 80045ee: 1cc8 adds r0, r1, #3 - 80045f0: db02 blt.n 80045f8 <_printf_float+0x130> - 80045f2: 6863 ldr r3, [r4, #4] - 80045f4: 4299 cmp r1, r3 - 80045f6: dd40 ble.n 800467a <_printf_float+0x1b2> - 80045f8: f1a9 0902 sub.w r9, r9, #2 - 80045fc: fa5f f989 uxtb.w r9, r9 - 8004600: f1b9 0f65 cmp.w r9, #101 ; 0x65 - 8004604: d81f bhi.n 8004646 <_printf_float+0x17e> - 8004606: 464a mov r2, r9 - 8004608: 3901 subs r1, #1 - 800460a: f104 0050 add.w r0, r4, #80 ; 0x50 - 800460e: 910d str r1, [sp, #52] ; 0x34 - 8004610: f7ff ff1b bl 800444a <__exponent> - 8004614: 9a0e ldr r2, [sp, #56] ; 0x38 - 8004616: 4682 mov sl, r0 - 8004618: 1813 adds r3, r2, r0 - 800461a: 2a01 cmp r2, #1 - 800461c: 6123 str r3, [r4, #16] - 800461e: dc02 bgt.n 8004626 <_printf_float+0x15e> - 8004620: 6822 ldr r2, [r4, #0] - 8004622: 07d2 lsls r2, r2, #31 - 8004624: d501 bpl.n 800462a <_printf_float+0x162> - 8004626: 3301 adds r3, #1 - 8004628: 6123 str r3, [r4, #16] - 800462a: f89d 3033 ldrb.w r3, [sp, #51] ; 0x33 - 800462e: 2b00 cmp r3, #0 - 8004630: d09b beq.n 800456a <_printf_float+0xa2> - 8004632: 232d movs r3, #45 ; 0x2d - 8004634: f884 3043 strb.w r3, [r4, #67] ; 0x43 - 8004638: e797 b.n 800456a <_printf_float+0xa2> - 800463a: 2947 cmp r1, #71 ; 0x47 - 800463c: d1bc bne.n 80045b8 <_printf_float+0xf0> - 800463e: 2b00 cmp r3, #0 - 8004640: d1ba bne.n 80045b8 <_printf_float+0xf0> - 8004642: 2301 movs r3, #1 - 8004644: e7b7 b.n 80045b6 <_printf_float+0xee> - 8004646: f1b9 0f66 cmp.w r9, #102 ; 0x66 - 800464a: d118 bne.n 800467e <_printf_float+0x1b6> - 800464c: 2900 cmp r1, #0 - 800464e: 6863 ldr r3, [r4, #4] - 8004650: dd0b ble.n 800466a <_printf_float+0x1a2> - 8004652: 6121 str r1, [r4, #16] - 8004654: b913 cbnz r3, 800465c <_printf_float+0x194> - 8004656: 6822 ldr r2, [r4, #0] - 8004658: 07d0 lsls r0, r2, #31 - 800465a: d502 bpl.n 8004662 <_printf_float+0x19a> - 800465c: 3301 adds r3, #1 - 800465e: 440b add r3, r1 - 8004660: 6123 str r3, [r4, #16] - 8004662: f04f 0a00 mov.w sl, #0 - 8004666: 65a1 str r1, [r4, #88] ; 0x58 - 8004668: e7df b.n 800462a <_printf_float+0x162> - 800466a: b913 cbnz r3, 8004672 <_printf_float+0x1aa> - 800466c: 6822 ldr r2, [r4, #0] - 800466e: 07d2 lsls r2, r2, #31 - 8004670: d501 bpl.n 8004676 <_printf_float+0x1ae> - 8004672: 3302 adds r3, #2 - 8004674: e7f4 b.n 8004660 <_printf_float+0x198> - 8004676: 2301 movs r3, #1 - 8004678: e7f2 b.n 8004660 <_printf_float+0x198> - 800467a: f04f 0967 mov.w r9, #103 ; 0x67 - 800467e: 9b0e ldr r3, [sp, #56] ; 0x38 - 8004680: 4299 cmp r1, r3 - 8004682: db05 blt.n 8004690 <_printf_float+0x1c8> - 8004684: 6823 ldr r3, [r4, #0] - 8004686: 6121 str r1, [r4, #16] - 8004688: 07d8 lsls r0, r3, #31 - 800468a: d5ea bpl.n 8004662 <_printf_float+0x19a> - 800468c: 1c4b adds r3, r1, #1 - 800468e: e7e7 b.n 8004660 <_printf_float+0x198> - 8004690: 2900 cmp r1, #0 - 8004692: bfcc ite gt - 8004694: 2201 movgt r2, #1 - 8004696: f1c1 0202 rsble r2, r1, #2 - 800469a: 4413 add r3, r2 - 800469c: e7e0 b.n 8004660 <_printf_float+0x198> - 800469e: 6823 ldr r3, [r4, #0] - 80046a0: 055a lsls r2, r3, #21 - 80046a2: d407 bmi.n 80046b4 <_printf_float+0x1ec> - 80046a4: 6923 ldr r3, [r4, #16] - 80046a6: 4642 mov r2, r8 - 80046a8: 4631 mov r1, r6 - 80046aa: 4628 mov r0, r5 - 80046ac: 47b8 blx r7 - 80046ae: 3001 adds r0, #1 - 80046b0: d12b bne.n 800470a <_printf_float+0x242> - 80046b2: e764 b.n 800457e <_printf_float+0xb6> - 80046b4: f1b9 0f65 cmp.w r9, #101 ; 0x65 - 80046b8: f240 80dd bls.w 8004876 <_printf_float+0x3ae> - 80046bc: e9d4 0112 ldrd r0, r1, [r4, #72] ; 0x48 - 80046c0: 2200 movs r2, #0 - 80046c2: 2300 movs r3, #0 - 80046c4: f7fc f9dc bl 8000a80 <__aeabi_dcmpeq> - 80046c8: 2800 cmp r0, #0 - 80046ca: d033 beq.n 8004734 <_printf_float+0x26c> - 80046cc: 2301 movs r3, #1 - 80046ce: 4631 mov r1, r6 - 80046d0: 4628 mov r0, r5 - 80046d2: 4a35 ldr r2, [pc, #212] ; (80047a8 <_printf_float+0x2e0>) - 80046d4: 47b8 blx r7 - 80046d6: 3001 adds r0, #1 - 80046d8: f43f af51 beq.w 800457e <_printf_float+0xb6> - 80046dc: e9dd 230d ldrd r2, r3, [sp, #52] ; 0x34 - 80046e0: 429a cmp r2, r3 - 80046e2: db02 blt.n 80046ea <_printf_float+0x222> - 80046e4: 6823 ldr r3, [r4, #0] - 80046e6: 07d8 lsls r0, r3, #31 - 80046e8: d50f bpl.n 800470a <_printf_float+0x242> - 80046ea: e9dd 2309 ldrd r2, r3, [sp, #36] ; 0x24 - 80046ee: 4631 mov r1, r6 - 80046f0: 4628 mov r0, r5 - 80046f2: 47b8 blx r7 - 80046f4: 3001 adds r0, #1 - 80046f6: f43f af42 beq.w 800457e <_printf_float+0xb6> - 80046fa: f04f 0800 mov.w r8, #0 - 80046fe: f104 091a add.w r9, r4, #26 - 8004702: 9b0e ldr r3, [sp, #56] ; 0x38 - 8004704: 3b01 subs r3, #1 - 8004706: 4543 cmp r3, r8 - 8004708: dc09 bgt.n 800471e <_printf_float+0x256> - 800470a: 6823 ldr r3, [r4, #0] - 800470c: 079b lsls r3, r3, #30 - 800470e: f100 8102 bmi.w 8004916 <_printf_float+0x44e> - 8004712: 68e0 ldr r0, [r4, #12] - 8004714: 9b0f ldr r3, [sp, #60] ; 0x3c - 8004716: 4298 cmp r0, r3 - 8004718: bfb8 it lt - 800471a: 4618 movlt r0, r3 - 800471c: e731 b.n 8004582 <_printf_float+0xba> - 800471e: 2301 movs r3, #1 - 8004720: 464a mov r2, r9 - 8004722: 4631 mov r1, r6 - 8004724: 4628 mov r0, r5 - 8004726: 47b8 blx r7 - 8004728: 3001 adds r0, #1 - 800472a: f43f af28 beq.w 800457e <_printf_float+0xb6> - 800472e: f108 0801 add.w r8, r8, #1 - 8004732: e7e6 b.n 8004702 <_printf_float+0x23a> - 8004734: 9b0d ldr r3, [sp, #52] ; 0x34 - 8004736: 2b00 cmp r3, #0 - 8004738: dc38 bgt.n 80047ac <_printf_float+0x2e4> - 800473a: 2301 movs r3, #1 - 800473c: 4631 mov r1, r6 - 800473e: 4628 mov r0, r5 - 8004740: 4a19 ldr r2, [pc, #100] ; (80047a8 <_printf_float+0x2e0>) - 8004742: 47b8 blx r7 - 8004744: 3001 adds r0, #1 - 8004746: f43f af1a beq.w 800457e <_printf_float+0xb6> - 800474a: e9dd 230d ldrd r2, r3, [sp, #52] ; 0x34 - 800474e: 4313 orrs r3, r2 - 8004750: d102 bne.n 8004758 <_printf_float+0x290> - 8004752: 6823 ldr r3, [r4, #0] - 8004754: 07d9 lsls r1, r3, #31 - 8004756: d5d8 bpl.n 800470a <_printf_float+0x242> - 8004758: e9dd 2309 ldrd r2, r3, [sp, #36] ; 0x24 - 800475c: 4631 mov r1, r6 - 800475e: 4628 mov r0, r5 - 8004760: 47b8 blx r7 - 8004762: 3001 adds r0, #1 - 8004764: f43f af0b beq.w 800457e <_printf_float+0xb6> - 8004768: f04f 0900 mov.w r9, #0 - 800476c: f104 0a1a add.w sl, r4, #26 - 8004770: 9b0d ldr r3, [sp, #52] ; 0x34 - 8004772: 425b negs r3, r3 - 8004774: 454b cmp r3, r9 - 8004776: dc01 bgt.n 800477c <_printf_float+0x2b4> - 8004778: 9b0e ldr r3, [sp, #56] ; 0x38 - 800477a: e794 b.n 80046a6 <_printf_float+0x1de> - 800477c: 2301 movs r3, #1 - 800477e: 4652 mov r2, sl - 8004780: 4631 mov r1, r6 - 8004782: 4628 mov r0, r5 - 8004784: 47b8 blx r7 - 8004786: 3001 adds r0, #1 - 8004788: f43f aef9 beq.w 800457e <_printf_float+0xb6> - 800478c: f109 0901 add.w r9, r9, #1 - 8004790: e7ee b.n 8004770 <_printf_float+0x2a8> - 8004792: bf00 nop - 8004794: 7fefffff .word 0x7fefffff - 8004798: 08007ad8 .word 0x08007ad8 - 800479c: 08007adc .word 0x08007adc - 80047a0: 08007ae4 .word 0x08007ae4 - 80047a4: 08007ae0 .word 0x08007ae0 - 80047a8: 08007ae8 .word 0x08007ae8 - 80047ac: 9a0e ldr r2, [sp, #56] ; 0x38 - 80047ae: 6da3 ldr r3, [r4, #88] ; 0x58 - 80047b0: 429a cmp r2, r3 - 80047b2: bfa8 it ge - 80047b4: 461a movge r2, r3 - 80047b6: 2a00 cmp r2, #0 - 80047b8: 4691 mov r9, r2 - 80047ba: dc37 bgt.n 800482c <_printf_float+0x364> - 80047bc: f04f 0b00 mov.w fp, #0 - 80047c0: ea29 79e9 bic.w r9, r9, r9, asr #31 - 80047c4: f104 021a add.w r2, r4, #26 - 80047c8: f8d4 a058 ldr.w sl, [r4, #88] ; 0x58 - 80047cc: ebaa 0309 sub.w r3, sl, r9 - 80047d0: 455b cmp r3, fp - 80047d2: dc33 bgt.n 800483c <_printf_float+0x374> - 80047d4: e9dd 230d ldrd r2, r3, [sp, #52] ; 0x34 - 80047d8: 429a cmp r2, r3 - 80047da: db3b blt.n 8004854 <_printf_float+0x38c> - 80047dc: 6823 ldr r3, [r4, #0] - 80047de: 07da lsls r2, r3, #31 - 80047e0: d438 bmi.n 8004854 <_printf_float+0x38c> - 80047e2: 9a0e ldr r2, [sp, #56] ; 0x38 - 80047e4: 990d ldr r1, [sp, #52] ; 0x34 - 80047e6: eba2 030a sub.w r3, r2, sl - 80047ea: eba2 0901 sub.w r9, r2, r1 - 80047ee: 4599 cmp r9, r3 - 80047f0: bfa8 it ge - 80047f2: 4699 movge r9, r3 - 80047f4: f1b9 0f00 cmp.w r9, #0 - 80047f8: dc34 bgt.n 8004864 <_printf_float+0x39c> - 80047fa: f04f 0800 mov.w r8, #0 - 80047fe: ea29 79e9 bic.w r9, r9, r9, asr #31 - 8004802: f104 0a1a add.w sl, r4, #26 - 8004806: e9dd 230d ldrd r2, r3, [sp, #52] ; 0x34 - 800480a: 1a9b subs r3, r3, r2 - 800480c: eba3 0309 sub.w r3, r3, r9 - 8004810: 4543 cmp r3, r8 - 8004812: f77f af7a ble.w 800470a <_printf_float+0x242> - 8004816: 2301 movs r3, #1 - 8004818: 4652 mov r2, sl - 800481a: 4631 mov r1, r6 - 800481c: 4628 mov r0, r5 - 800481e: 47b8 blx r7 - 8004820: 3001 adds r0, #1 - 8004822: f43f aeac beq.w 800457e <_printf_float+0xb6> - 8004826: f108 0801 add.w r8, r8, #1 - 800482a: e7ec b.n 8004806 <_printf_float+0x33e> - 800482c: 4613 mov r3, r2 - 800482e: 4631 mov r1, r6 - 8004830: 4642 mov r2, r8 - 8004832: 4628 mov r0, r5 - 8004834: 47b8 blx r7 - 8004836: 3001 adds r0, #1 - 8004838: d1c0 bne.n 80047bc <_printf_float+0x2f4> - 800483a: e6a0 b.n 800457e <_printf_float+0xb6> - 800483c: 2301 movs r3, #1 - 800483e: 4631 mov r1, r6 - 8004840: 4628 mov r0, r5 - 8004842: 920b str r2, [sp, #44] ; 0x2c - 8004844: 47b8 blx r7 - 8004846: 3001 adds r0, #1 - 8004848: f43f ae99 beq.w 800457e <_printf_float+0xb6> - 800484c: 9a0b ldr r2, [sp, #44] ; 0x2c - 800484e: f10b 0b01 add.w fp, fp, #1 - 8004852: e7b9 b.n 80047c8 <_printf_float+0x300> - 8004854: 4631 mov r1, r6 - 8004856: e9dd 2309 ldrd r2, r3, [sp, #36] ; 0x24 - 800485a: 4628 mov r0, r5 - 800485c: 47b8 blx r7 - 800485e: 3001 adds r0, #1 - 8004860: d1bf bne.n 80047e2 <_printf_float+0x31a> - 8004862: e68c b.n 800457e <_printf_float+0xb6> - 8004864: 464b mov r3, r9 - 8004866: 4631 mov r1, r6 - 8004868: 4628 mov r0, r5 - 800486a: eb08 020a add.w r2, r8, sl - 800486e: 47b8 blx r7 - 8004870: 3001 adds r0, #1 - 8004872: d1c2 bne.n 80047fa <_printf_float+0x332> - 8004874: e683 b.n 800457e <_printf_float+0xb6> - 8004876: 9a0e ldr r2, [sp, #56] ; 0x38 - 8004878: 2a01 cmp r2, #1 - 800487a: dc01 bgt.n 8004880 <_printf_float+0x3b8> - 800487c: 07db lsls r3, r3, #31 - 800487e: d537 bpl.n 80048f0 <_printf_float+0x428> - 8004880: 2301 movs r3, #1 - 8004882: 4642 mov r2, r8 - 8004884: 4631 mov r1, r6 - 8004886: 4628 mov r0, r5 - 8004888: 47b8 blx r7 - 800488a: 3001 adds r0, #1 - 800488c: f43f ae77 beq.w 800457e <_printf_float+0xb6> - 8004890: e9dd 2309 ldrd r2, r3, [sp, #36] ; 0x24 - 8004894: 4631 mov r1, r6 - 8004896: 4628 mov r0, r5 - 8004898: 47b8 blx r7 - 800489a: 3001 adds r0, #1 - 800489c: f43f ae6f beq.w 800457e <_printf_float+0xb6> - 80048a0: e9d4 0112 ldrd r0, r1, [r4, #72] ; 0x48 - 80048a4: 2200 movs r2, #0 - 80048a6: 2300 movs r3, #0 - 80048a8: f7fc f8ea bl 8000a80 <__aeabi_dcmpeq> - 80048ac: b9d8 cbnz r0, 80048e6 <_printf_float+0x41e> - 80048ae: 9b0e ldr r3, [sp, #56] ; 0x38 - 80048b0: f108 0201 add.w r2, r8, #1 - 80048b4: 3b01 subs r3, #1 - 80048b6: 4631 mov r1, r6 - 80048b8: 4628 mov r0, r5 - 80048ba: 47b8 blx r7 - 80048bc: 3001 adds r0, #1 - 80048be: d10e bne.n 80048de <_printf_float+0x416> - 80048c0: e65d b.n 800457e <_printf_float+0xb6> - 80048c2: 2301 movs r3, #1 - 80048c4: 464a mov r2, r9 - 80048c6: 4631 mov r1, r6 - 80048c8: 4628 mov r0, r5 - 80048ca: 47b8 blx r7 - 80048cc: 3001 adds r0, #1 - 80048ce: f43f ae56 beq.w 800457e <_printf_float+0xb6> - 80048d2: f108 0801 add.w r8, r8, #1 - 80048d6: 9b0e ldr r3, [sp, #56] ; 0x38 - 80048d8: 3b01 subs r3, #1 - 80048da: 4543 cmp r3, r8 - 80048dc: dcf1 bgt.n 80048c2 <_printf_float+0x3fa> - 80048de: 4653 mov r3, sl - 80048e0: f104 0250 add.w r2, r4, #80 ; 0x50 - 80048e4: e6e0 b.n 80046a8 <_printf_float+0x1e0> - 80048e6: f04f 0800 mov.w r8, #0 - 80048ea: f104 091a add.w r9, r4, #26 - 80048ee: e7f2 b.n 80048d6 <_printf_float+0x40e> - 80048f0: 2301 movs r3, #1 - 80048f2: 4642 mov r2, r8 - 80048f4: e7df b.n 80048b6 <_printf_float+0x3ee> - 80048f6: 2301 movs r3, #1 - 80048f8: 464a mov r2, r9 - 80048fa: 4631 mov r1, r6 - 80048fc: 4628 mov r0, r5 - 80048fe: 47b8 blx r7 - 8004900: 3001 adds r0, #1 - 8004902: f43f ae3c beq.w 800457e <_printf_float+0xb6> - 8004906: f108 0801 add.w r8, r8, #1 - 800490a: 68e3 ldr r3, [r4, #12] - 800490c: 990f ldr r1, [sp, #60] ; 0x3c - 800490e: 1a5b subs r3, r3, r1 - 8004910: 4543 cmp r3, r8 - 8004912: dcf0 bgt.n 80048f6 <_printf_float+0x42e> - 8004914: e6fd b.n 8004712 <_printf_float+0x24a> - 8004916: f04f 0800 mov.w r8, #0 - 800491a: f104 0919 add.w r9, r4, #25 - 800491e: e7f4 b.n 800490a <_printf_float+0x442> +0800581c <_printf_float>: + 800581c: e92d 4ff0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, fp, lr} + 8005820: b091 sub sp, #68 ; 0x44 + 8005822: 460c mov r4, r1 + 8005824: f8dd 8068 ldr.w r8, [sp, #104] ; 0x68 + 8005828: 4616 mov r6, r2 + 800582a: 461f mov r7, r3 + 800582c: 4605 mov r5, r0 + 800582e: f001 fa65 bl 8006cfc <_localeconv_r> + 8005832: 6803 ldr r3, [r0, #0] + 8005834: 4618 mov r0, r3 + 8005836: 9309 str r3, [sp, #36] ; 0x24 + 8005838: f7fa fcf6 bl 8000228 + 800583c: 2300 movs r3, #0 + 800583e: 930e str r3, [sp, #56] ; 0x38 + 8005840: f8d8 3000 ldr.w r3, [r8] + 8005844: 900a str r0, [sp, #40] ; 0x28 + 8005846: 3307 adds r3, #7 + 8005848: f023 0307 bic.w r3, r3, #7 + 800584c: f103 0208 add.w r2, r3, #8 + 8005850: f894 9018 ldrb.w r9, [r4, #24] + 8005854: f8d4 b000 ldr.w fp, [r4] + 8005858: f8c8 2000 str.w r2, [r8] + 800585c: e9d3 2300 ldrd r2, r3, [r3] + 8005860: e9c4 2312 strd r2, r3, [r4, #72] ; 0x48 + 8005864: e9d4 8a12 ldrd r8, sl, [r4, #72] ; 0x48 + 8005868: f02a 4300 bic.w r3, sl, #2147483648 ; 0x80000000 + 800586c: 930b str r3, [sp, #44] ; 0x2c + 800586e: f04f 32ff mov.w r2, #4294967295 ; 0xffffffff + 8005872: 4640 mov r0, r8 + 8005874: 4b9c ldr r3, [pc, #624] ; (8005ae8 <_printf_float+0x2cc>) + 8005876: 990b ldr r1, [sp, #44] ; 0x2c + 8005878: f7fb f934 bl 8000ae4 <__aeabi_dcmpun> + 800587c: bb70 cbnz r0, 80058dc <_printf_float+0xc0> + 800587e: f04f 32ff mov.w r2, #4294967295 ; 0xffffffff + 8005882: 4640 mov r0, r8 + 8005884: 4b98 ldr r3, [pc, #608] ; (8005ae8 <_printf_float+0x2cc>) + 8005886: 990b ldr r1, [sp, #44] ; 0x2c + 8005888: f7fb f90e bl 8000aa8 <__aeabi_dcmple> + 800588c: bb30 cbnz r0, 80058dc <_printf_float+0xc0> + 800588e: 2200 movs r2, #0 + 8005890: 2300 movs r3, #0 + 8005892: 4640 mov r0, r8 + 8005894: 4651 mov r1, sl + 8005896: f7fb f8fd bl 8000a94 <__aeabi_dcmplt> + 800589a: b110 cbz r0, 80058a2 <_printf_float+0x86> + 800589c: 232d movs r3, #45 ; 0x2d + 800589e: f884 3043 strb.w r3, [r4, #67] ; 0x43 + 80058a2: 4b92 ldr r3, [pc, #584] ; (8005aec <_printf_float+0x2d0>) + 80058a4: 4892 ldr r0, [pc, #584] ; (8005af0 <_printf_float+0x2d4>) + 80058a6: f1b9 0f47 cmp.w r9, #71 ; 0x47 + 80058aa: bf94 ite ls + 80058ac: 4698 movls r8, r3 + 80058ae: 4680 movhi r8, r0 + 80058b0: 2303 movs r3, #3 + 80058b2: f04f 0a00 mov.w sl, #0 + 80058b6: 6123 str r3, [r4, #16] + 80058b8: f02b 0304 bic.w r3, fp, #4 + 80058bc: 6023 str r3, [r4, #0] + 80058be: 4633 mov r3, r6 + 80058c0: 4621 mov r1, r4 + 80058c2: 4628 mov r0, r5 + 80058c4: 9700 str r7, [sp, #0] + 80058c6: aa0f add r2, sp, #60 ; 0x3c + 80058c8: f000 f9d4 bl 8005c74 <_printf_common> + 80058cc: 3001 adds r0, #1 + 80058ce: f040 8090 bne.w 80059f2 <_printf_float+0x1d6> + 80058d2: f04f 30ff mov.w r0, #4294967295 ; 0xffffffff + 80058d6: b011 add sp, #68 ; 0x44 + 80058d8: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc} + 80058dc: 4642 mov r2, r8 + 80058de: 4653 mov r3, sl + 80058e0: 4640 mov r0, r8 + 80058e2: 4651 mov r1, sl + 80058e4: f7fb f8fe bl 8000ae4 <__aeabi_dcmpun> + 80058e8: b148 cbz r0, 80058fe <_printf_float+0xe2> + 80058ea: f1ba 0f00 cmp.w sl, #0 + 80058ee: bfb8 it lt + 80058f0: 232d movlt r3, #45 ; 0x2d + 80058f2: 4880 ldr r0, [pc, #512] ; (8005af4 <_printf_float+0x2d8>) + 80058f4: bfb8 it lt + 80058f6: f884 3043 strblt.w r3, [r4, #67] ; 0x43 + 80058fa: 4b7f ldr r3, [pc, #508] ; (8005af8 <_printf_float+0x2dc>) + 80058fc: e7d3 b.n 80058a6 <_printf_float+0x8a> + 80058fe: 6863 ldr r3, [r4, #4] + 8005900: f009 01df and.w r1, r9, #223 ; 0xdf + 8005904: 1c5a adds r2, r3, #1 + 8005906: d142 bne.n 800598e <_printf_float+0x172> + 8005908: 2306 movs r3, #6 + 800590a: 6063 str r3, [r4, #4] + 800590c: 2200 movs r2, #0 + 800590e: 9206 str r2, [sp, #24] + 8005910: aa0e add r2, sp, #56 ; 0x38 + 8005912: e9cd 9204 strd r9, r2, [sp, #16] + 8005916: aa0d add r2, sp, #52 ; 0x34 + 8005918: f44b 6380 orr.w r3, fp, #1024 ; 0x400 + 800591c: 9203 str r2, [sp, #12] + 800591e: f10d 0233 add.w r2, sp, #51 ; 0x33 + 8005922: e9cd 3201 strd r3, r2, [sp, #4] + 8005926: 6023 str r3, [r4, #0] + 8005928: 6863 ldr r3, [r4, #4] + 800592a: 4642 mov r2, r8 + 800592c: 9300 str r3, [sp, #0] + 800592e: 4628 mov r0, r5 + 8005930: 4653 mov r3, sl + 8005932: 910b str r1, [sp, #44] ; 0x2c + 8005934: f7ff fed4 bl 80056e0 <__cvt> + 8005938: 990b ldr r1, [sp, #44] ; 0x2c + 800593a: 4680 mov r8, r0 + 800593c: 2947 cmp r1, #71 ; 0x47 + 800593e: 990d ldr r1, [sp, #52] ; 0x34 + 8005940: d108 bne.n 8005954 <_printf_float+0x138> + 8005942: 1cc8 adds r0, r1, #3 + 8005944: db02 blt.n 800594c <_printf_float+0x130> + 8005946: 6863 ldr r3, [r4, #4] + 8005948: 4299 cmp r1, r3 + 800594a: dd40 ble.n 80059ce <_printf_float+0x1b2> + 800594c: f1a9 0902 sub.w r9, r9, #2 + 8005950: fa5f f989 uxtb.w r9, r9 + 8005954: f1b9 0f65 cmp.w r9, #101 ; 0x65 + 8005958: d81f bhi.n 800599a <_printf_float+0x17e> + 800595a: 464a mov r2, r9 + 800595c: 3901 subs r1, #1 + 800595e: f104 0050 add.w r0, r4, #80 ; 0x50 + 8005962: 910d str r1, [sp, #52] ; 0x34 + 8005964: f7ff ff1b bl 800579e <__exponent> + 8005968: 9a0e ldr r2, [sp, #56] ; 0x38 + 800596a: 4682 mov sl, r0 + 800596c: 1813 adds r3, r2, r0 + 800596e: 2a01 cmp r2, #1 + 8005970: 6123 str r3, [r4, #16] + 8005972: dc02 bgt.n 800597a <_printf_float+0x15e> + 8005974: 6822 ldr r2, [r4, #0] + 8005976: 07d2 lsls r2, r2, #31 + 8005978: d501 bpl.n 800597e <_printf_float+0x162> + 800597a: 3301 adds r3, #1 + 800597c: 6123 str r3, [r4, #16] + 800597e: f89d 3033 ldrb.w r3, [sp, #51] ; 0x33 + 8005982: 2b00 cmp r3, #0 + 8005984: d09b beq.n 80058be <_printf_float+0xa2> + 8005986: 232d movs r3, #45 ; 0x2d + 8005988: f884 3043 strb.w r3, [r4, #67] ; 0x43 + 800598c: e797 b.n 80058be <_printf_float+0xa2> + 800598e: 2947 cmp r1, #71 ; 0x47 + 8005990: d1bc bne.n 800590c <_printf_float+0xf0> + 8005992: 2b00 cmp r3, #0 + 8005994: d1ba bne.n 800590c <_printf_float+0xf0> + 8005996: 2301 movs r3, #1 + 8005998: e7b7 b.n 800590a <_printf_float+0xee> + 800599a: f1b9 0f66 cmp.w r9, #102 ; 0x66 + 800599e: d118 bne.n 80059d2 <_printf_float+0x1b6> + 80059a0: 2900 cmp r1, #0 + 80059a2: 6863 ldr r3, [r4, #4] + 80059a4: dd0b ble.n 80059be <_printf_float+0x1a2> + 80059a6: 6121 str r1, [r4, #16] + 80059a8: b913 cbnz r3, 80059b0 <_printf_float+0x194> + 80059aa: 6822 ldr r2, [r4, #0] + 80059ac: 07d0 lsls r0, r2, #31 + 80059ae: d502 bpl.n 80059b6 <_printf_float+0x19a> + 80059b0: 3301 adds r3, #1 + 80059b2: 440b add r3, r1 + 80059b4: 6123 str r3, [r4, #16] + 80059b6: f04f 0a00 mov.w sl, #0 + 80059ba: 65a1 str r1, [r4, #88] ; 0x58 + 80059bc: e7df b.n 800597e <_printf_float+0x162> + 80059be: b913 cbnz r3, 80059c6 <_printf_float+0x1aa> + 80059c0: 6822 ldr r2, [r4, #0] + 80059c2: 07d2 lsls r2, r2, #31 + 80059c4: d501 bpl.n 80059ca <_printf_float+0x1ae> + 80059c6: 3302 adds r3, #2 + 80059c8: e7f4 b.n 80059b4 <_printf_float+0x198> + 80059ca: 2301 movs r3, #1 + 80059cc: e7f2 b.n 80059b4 <_printf_float+0x198> + 80059ce: f04f 0967 mov.w r9, #103 ; 0x67 + 80059d2: 9b0e ldr r3, [sp, #56] ; 0x38 + 80059d4: 4299 cmp r1, r3 + 80059d6: db05 blt.n 80059e4 <_printf_float+0x1c8> + 80059d8: 6823 ldr r3, [r4, #0] + 80059da: 6121 str r1, [r4, #16] + 80059dc: 07d8 lsls r0, r3, #31 + 80059de: d5ea bpl.n 80059b6 <_printf_float+0x19a> + 80059e0: 1c4b adds r3, r1, #1 + 80059e2: e7e7 b.n 80059b4 <_printf_float+0x198> + 80059e4: 2900 cmp r1, #0 + 80059e6: bfcc ite gt + 80059e8: 2201 movgt r2, #1 + 80059ea: f1c1 0202 rsble r2, r1, #2 + 80059ee: 4413 add r3, r2 + 80059f0: e7e0 b.n 80059b4 <_printf_float+0x198> + 80059f2: 6823 ldr r3, [r4, #0] + 80059f4: 055a lsls r2, r3, #21 + 80059f6: d407 bmi.n 8005a08 <_printf_float+0x1ec> + 80059f8: 6923 ldr r3, [r4, #16] + 80059fa: 4642 mov r2, r8 + 80059fc: 4631 mov r1, r6 + 80059fe: 4628 mov r0, r5 + 8005a00: 47b8 blx r7 + 8005a02: 3001 adds r0, #1 + 8005a04: d12b bne.n 8005a5e <_printf_float+0x242> + 8005a06: e764 b.n 80058d2 <_printf_float+0xb6> + 8005a08: f1b9 0f65 cmp.w r9, #101 ; 0x65 + 8005a0c: f240 80dd bls.w 8005bca <_printf_float+0x3ae> + 8005a10: e9d4 0112 ldrd r0, r1, [r4, #72] ; 0x48 + 8005a14: 2200 movs r2, #0 + 8005a16: 2300 movs r3, #0 + 8005a18: f7fb f832 bl 8000a80 <__aeabi_dcmpeq> + 8005a1c: 2800 cmp r0, #0 + 8005a1e: d033 beq.n 8005a88 <_printf_float+0x26c> + 8005a20: 2301 movs r3, #1 + 8005a22: 4631 mov r1, r6 + 8005a24: 4628 mov r0, r5 + 8005a26: 4a35 ldr r2, [pc, #212] ; (8005afc <_printf_float+0x2e0>) + 8005a28: 47b8 blx r7 + 8005a2a: 3001 adds r0, #1 + 8005a2c: f43f af51 beq.w 80058d2 <_printf_float+0xb6> + 8005a30: e9dd 230d ldrd r2, r3, [sp, #52] ; 0x34 + 8005a34: 429a cmp r2, r3 + 8005a36: db02 blt.n 8005a3e <_printf_float+0x222> + 8005a38: 6823 ldr r3, [r4, #0] + 8005a3a: 07d8 lsls r0, r3, #31 + 8005a3c: d50f bpl.n 8005a5e <_printf_float+0x242> + 8005a3e: e9dd 2309 ldrd r2, r3, [sp, #36] ; 0x24 + 8005a42: 4631 mov r1, r6 + 8005a44: 4628 mov r0, r5 + 8005a46: 47b8 blx r7 + 8005a48: 3001 adds r0, #1 + 8005a4a: f43f af42 beq.w 80058d2 <_printf_float+0xb6> + 8005a4e: f04f 0800 mov.w r8, #0 + 8005a52: f104 091a add.w r9, r4, #26 + 8005a56: 9b0e ldr r3, [sp, #56] ; 0x38 + 8005a58: 3b01 subs r3, #1 + 8005a5a: 4543 cmp r3, r8 + 8005a5c: dc09 bgt.n 8005a72 <_printf_float+0x256> + 8005a5e: 6823 ldr r3, [r4, #0] + 8005a60: 079b lsls r3, r3, #30 + 8005a62: f100 8102 bmi.w 8005c6a <_printf_float+0x44e> + 8005a66: 68e0 ldr r0, [r4, #12] + 8005a68: 9b0f ldr r3, [sp, #60] ; 0x3c + 8005a6a: 4298 cmp r0, r3 + 8005a6c: bfb8 it lt + 8005a6e: 4618 movlt r0, r3 + 8005a70: e731 b.n 80058d6 <_printf_float+0xba> + 8005a72: 2301 movs r3, #1 + 8005a74: 464a mov r2, r9 + 8005a76: 4631 mov r1, r6 + 8005a78: 4628 mov r0, r5 + 8005a7a: 47b8 blx r7 + 8005a7c: 3001 adds r0, #1 + 8005a7e: f43f af28 beq.w 80058d2 <_printf_float+0xb6> + 8005a82: f108 0801 add.w r8, r8, #1 + 8005a86: e7e6 b.n 8005a56 <_printf_float+0x23a> + 8005a88: 9b0d ldr r3, [sp, #52] ; 0x34 + 8005a8a: 2b00 cmp r3, #0 + 8005a8c: dc38 bgt.n 8005b00 <_printf_float+0x2e4> + 8005a8e: 2301 movs r3, #1 + 8005a90: 4631 mov r1, r6 + 8005a92: 4628 mov r0, r5 + 8005a94: 4a19 ldr r2, [pc, #100] ; (8005afc <_printf_float+0x2e0>) + 8005a96: 47b8 blx r7 + 8005a98: 3001 adds r0, #1 + 8005a9a: f43f af1a beq.w 80058d2 <_printf_float+0xb6> + 8005a9e: e9dd 230d ldrd r2, r3, [sp, #52] ; 0x34 + 8005aa2: 4313 orrs r3, r2 + 8005aa4: d102 bne.n 8005aac <_printf_float+0x290> + 8005aa6: 6823 ldr r3, [r4, #0] + 8005aa8: 07d9 lsls r1, r3, #31 + 8005aaa: d5d8 bpl.n 8005a5e <_printf_float+0x242> + 8005aac: e9dd 2309 ldrd r2, r3, [sp, #36] ; 0x24 + 8005ab0: 4631 mov r1, r6 + 8005ab2: 4628 mov r0, r5 + 8005ab4: 47b8 blx r7 + 8005ab6: 3001 adds r0, #1 + 8005ab8: f43f af0b beq.w 80058d2 <_printf_float+0xb6> + 8005abc: f04f 0900 mov.w r9, #0 + 8005ac0: f104 0a1a add.w sl, r4, #26 + 8005ac4: 9b0d ldr r3, [sp, #52] ; 0x34 + 8005ac6: 425b negs r3, r3 + 8005ac8: 454b cmp r3, r9 + 8005aca: dc01 bgt.n 8005ad0 <_printf_float+0x2b4> + 8005acc: 9b0e ldr r3, [sp, #56] ; 0x38 + 8005ace: e794 b.n 80059fa <_printf_float+0x1de> + 8005ad0: 2301 movs r3, #1 + 8005ad2: 4652 mov r2, sl + 8005ad4: 4631 mov r1, r6 + 8005ad6: 4628 mov r0, r5 + 8005ad8: 47b8 blx r7 + 8005ada: 3001 adds r0, #1 + 8005adc: f43f aef9 beq.w 80058d2 <_printf_float+0xb6> + 8005ae0: f109 0901 add.w r9, r9, #1 + 8005ae4: e7ee b.n 8005ac4 <_printf_float+0x2a8> + 8005ae6: bf00 nop + 8005ae8: 7fefffff .word 0x7fefffff + 8005aec: 08008e38 .word 0x08008e38 + 8005af0: 08008e3c .word 0x08008e3c + 8005af4: 08008e44 .word 0x08008e44 + 8005af8: 08008e40 .word 0x08008e40 + 8005afc: 08008e48 .word 0x08008e48 + 8005b00: 9a0e ldr r2, [sp, #56] ; 0x38 + 8005b02: 6da3 ldr r3, [r4, #88] ; 0x58 + 8005b04: 429a cmp r2, r3 + 8005b06: bfa8 it ge + 8005b08: 461a movge r2, r3 + 8005b0a: 2a00 cmp r2, #0 + 8005b0c: 4691 mov r9, r2 + 8005b0e: dc37 bgt.n 8005b80 <_printf_float+0x364> + 8005b10: f04f 0b00 mov.w fp, #0 + 8005b14: ea29 79e9 bic.w r9, r9, r9, asr #31 + 8005b18: f104 021a add.w r2, r4, #26 + 8005b1c: f8d4 a058 ldr.w sl, [r4, #88] ; 0x58 + 8005b20: ebaa 0309 sub.w r3, sl, r9 + 8005b24: 455b cmp r3, fp + 8005b26: dc33 bgt.n 8005b90 <_printf_float+0x374> + 8005b28: e9dd 230d ldrd r2, r3, [sp, #52] ; 0x34 + 8005b2c: 429a cmp r2, r3 + 8005b2e: db3b blt.n 8005ba8 <_printf_float+0x38c> + 8005b30: 6823 ldr r3, [r4, #0] + 8005b32: 07da lsls r2, r3, #31 + 8005b34: d438 bmi.n 8005ba8 <_printf_float+0x38c> + 8005b36: 9a0e ldr r2, [sp, #56] ; 0x38 + 8005b38: 990d ldr r1, [sp, #52] ; 0x34 + 8005b3a: eba2 030a sub.w r3, r2, sl + 8005b3e: eba2 0901 sub.w r9, r2, r1 + 8005b42: 4599 cmp r9, r3 + 8005b44: bfa8 it ge + 8005b46: 4699 movge r9, r3 + 8005b48: f1b9 0f00 cmp.w r9, #0 + 8005b4c: dc34 bgt.n 8005bb8 <_printf_float+0x39c> + 8005b4e: f04f 0800 mov.w r8, #0 + 8005b52: ea29 79e9 bic.w r9, r9, r9, asr #31 + 8005b56: f104 0a1a add.w sl, r4, #26 + 8005b5a: e9dd 230d ldrd r2, r3, [sp, #52] ; 0x34 + 8005b5e: 1a9b subs r3, r3, r2 + 8005b60: eba3 0309 sub.w r3, r3, r9 + 8005b64: 4543 cmp r3, r8 + 8005b66: f77f af7a ble.w 8005a5e <_printf_float+0x242> + 8005b6a: 2301 movs r3, #1 + 8005b6c: 4652 mov r2, sl + 8005b6e: 4631 mov r1, r6 + 8005b70: 4628 mov r0, r5 + 8005b72: 47b8 blx r7 + 8005b74: 3001 adds r0, #1 + 8005b76: f43f aeac beq.w 80058d2 <_printf_float+0xb6> + 8005b7a: f108 0801 add.w r8, r8, #1 + 8005b7e: e7ec b.n 8005b5a <_printf_float+0x33e> + 8005b80: 4613 mov r3, r2 + 8005b82: 4631 mov r1, r6 + 8005b84: 4642 mov r2, r8 + 8005b86: 4628 mov r0, r5 + 8005b88: 47b8 blx r7 + 8005b8a: 3001 adds r0, #1 + 8005b8c: d1c0 bne.n 8005b10 <_printf_float+0x2f4> + 8005b8e: e6a0 b.n 80058d2 <_printf_float+0xb6> + 8005b90: 2301 movs r3, #1 + 8005b92: 4631 mov r1, r6 + 8005b94: 4628 mov r0, r5 + 8005b96: 920b str r2, [sp, #44] ; 0x2c + 8005b98: 47b8 blx r7 + 8005b9a: 3001 adds r0, #1 + 8005b9c: f43f ae99 beq.w 80058d2 <_printf_float+0xb6> + 8005ba0: 9a0b ldr r2, [sp, #44] ; 0x2c + 8005ba2: f10b 0b01 add.w fp, fp, #1 + 8005ba6: e7b9 b.n 8005b1c <_printf_float+0x300> + 8005ba8: 4631 mov r1, r6 + 8005baa: e9dd 2309 ldrd r2, r3, [sp, #36] ; 0x24 + 8005bae: 4628 mov r0, r5 + 8005bb0: 47b8 blx r7 + 8005bb2: 3001 adds r0, #1 + 8005bb4: d1bf bne.n 8005b36 <_printf_float+0x31a> + 8005bb6: e68c b.n 80058d2 <_printf_float+0xb6> + 8005bb8: 464b mov r3, r9 + 8005bba: 4631 mov r1, r6 + 8005bbc: 4628 mov r0, r5 + 8005bbe: eb08 020a add.w r2, r8, sl + 8005bc2: 47b8 blx r7 + 8005bc4: 3001 adds r0, #1 + 8005bc6: d1c2 bne.n 8005b4e <_printf_float+0x332> + 8005bc8: e683 b.n 80058d2 <_printf_float+0xb6> + 8005bca: 9a0e ldr r2, [sp, #56] ; 0x38 + 8005bcc: 2a01 cmp r2, #1 + 8005bce: dc01 bgt.n 8005bd4 <_printf_float+0x3b8> + 8005bd0: 07db lsls r3, r3, #31 + 8005bd2: d537 bpl.n 8005c44 <_printf_float+0x428> + 8005bd4: 2301 movs r3, #1 + 8005bd6: 4642 mov r2, r8 + 8005bd8: 4631 mov r1, r6 + 8005bda: 4628 mov r0, r5 + 8005bdc: 47b8 blx r7 + 8005bde: 3001 adds r0, #1 + 8005be0: f43f ae77 beq.w 80058d2 <_printf_float+0xb6> + 8005be4: e9dd 2309 ldrd r2, r3, [sp, #36] ; 0x24 + 8005be8: 4631 mov r1, r6 + 8005bea: 4628 mov r0, r5 + 8005bec: 47b8 blx r7 + 8005bee: 3001 adds r0, #1 + 8005bf0: f43f ae6f beq.w 80058d2 <_printf_float+0xb6> + 8005bf4: e9d4 0112 ldrd r0, r1, [r4, #72] ; 0x48 + 8005bf8: 2200 movs r2, #0 + 8005bfa: 2300 movs r3, #0 + 8005bfc: f7fa ff40 bl 8000a80 <__aeabi_dcmpeq> + 8005c00: b9d8 cbnz r0, 8005c3a <_printf_float+0x41e> + 8005c02: 9b0e ldr r3, [sp, #56] ; 0x38 + 8005c04: f108 0201 add.w r2, r8, #1 + 8005c08: 3b01 subs r3, #1 + 8005c0a: 4631 mov r1, r6 + 8005c0c: 4628 mov r0, r5 + 8005c0e: 47b8 blx r7 + 8005c10: 3001 adds r0, #1 + 8005c12: d10e bne.n 8005c32 <_printf_float+0x416> + 8005c14: e65d b.n 80058d2 <_printf_float+0xb6> + 8005c16: 2301 movs r3, #1 + 8005c18: 464a mov r2, r9 + 8005c1a: 4631 mov r1, r6 + 8005c1c: 4628 mov r0, r5 + 8005c1e: 47b8 blx r7 + 8005c20: 3001 adds r0, #1 + 8005c22: f43f ae56 beq.w 80058d2 <_printf_float+0xb6> + 8005c26: f108 0801 add.w r8, r8, #1 + 8005c2a: 9b0e ldr r3, [sp, #56] ; 0x38 + 8005c2c: 3b01 subs r3, #1 + 8005c2e: 4543 cmp r3, r8 + 8005c30: dcf1 bgt.n 8005c16 <_printf_float+0x3fa> + 8005c32: 4653 mov r3, sl + 8005c34: f104 0250 add.w r2, r4, #80 ; 0x50 + 8005c38: e6e0 b.n 80059fc <_printf_float+0x1e0> + 8005c3a: f04f 0800 mov.w r8, #0 + 8005c3e: f104 091a add.w r9, r4, #26 + 8005c42: e7f2 b.n 8005c2a <_printf_float+0x40e> + 8005c44: 2301 movs r3, #1 + 8005c46: 4642 mov r2, r8 + 8005c48: e7df b.n 8005c0a <_printf_float+0x3ee> + 8005c4a: 2301 movs r3, #1 + 8005c4c: 464a mov r2, r9 + 8005c4e: 4631 mov r1, r6 + 8005c50: 4628 mov r0, r5 + 8005c52: 47b8 blx r7 + 8005c54: 3001 adds r0, #1 + 8005c56: f43f ae3c beq.w 80058d2 <_printf_float+0xb6> + 8005c5a: f108 0801 add.w r8, r8, #1 + 8005c5e: 68e3 ldr r3, [r4, #12] + 8005c60: 990f ldr r1, [sp, #60] ; 0x3c + 8005c62: 1a5b subs r3, r3, r1 + 8005c64: 4543 cmp r3, r8 + 8005c66: dcf0 bgt.n 8005c4a <_printf_float+0x42e> + 8005c68: e6fd b.n 8005a66 <_printf_float+0x24a> + 8005c6a: f04f 0800 mov.w r8, #0 + 8005c6e: f104 0919 add.w r9, r4, #25 + 8005c72: e7f4 b.n 8005c5e <_printf_float+0x442> -08004920 <_printf_common>: - 8004920: e92d 47f0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, lr} - 8004924: 4616 mov r6, r2 - 8004926: 4699 mov r9, r3 - 8004928: 688a ldr r2, [r1, #8] - 800492a: 690b ldr r3, [r1, #16] - 800492c: 4607 mov r7, r0 - 800492e: 4293 cmp r3, r2 - 8004930: bfb8 it lt - 8004932: 4613 movlt r3, r2 - 8004934: 6033 str r3, [r6, #0] - 8004936: f891 2043 ldrb.w r2, [r1, #67] ; 0x43 - 800493a: 460c mov r4, r1 - 800493c: f8dd 8020 ldr.w r8, [sp, #32] - 8004940: b10a cbz r2, 8004946 <_printf_common+0x26> - 8004942: 3301 adds r3, #1 - 8004944: 6033 str r3, [r6, #0] - 8004946: 6823 ldr r3, [r4, #0] - 8004948: 0699 lsls r1, r3, #26 - 800494a: bf42 ittt mi - 800494c: 6833 ldrmi r3, [r6, #0] - 800494e: 3302 addmi r3, #2 - 8004950: 6033 strmi r3, [r6, #0] - 8004952: 6825 ldr r5, [r4, #0] - 8004954: f015 0506 ands.w r5, r5, #6 - 8004958: d106 bne.n 8004968 <_printf_common+0x48> - 800495a: f104 0a19 add.w sl, r4, #25 - 800495e: 68e3 ldr r3, [r4, #12] - 8004960: 6832 ldr r2, [r6, #0] - 8004962: 1a9b subs r3, r3, r2 - 8004964: 42ab cmp r3, r5 - 8004966: dc28 bgt.n 80049ba <_printf_common+0x9a> - 8004968: f894 2043 ldrb.w r2, [r4, #67] ; 0x43 - 800496c: 1e13 subs r3, r2, #0 - 800496e: 6822 ldr r2, [r4, #0] - 8004970: bf18 it ne - 8004972: 2301 movne r3, #1 - 8004974: 0692 lsls r2, r2, #26 - 8004976: d42d bmi.n 80049d4 <_printf_common+0xb4> - 8004978: 4649 mov r1, r9 - 800497a: 4638 mov r0, r7 - 800497c: f104 0243 add.w r2, r4, #67 ; 0x43 - 8004980: 47c0 blx r8 - 8004982: 3001 adds r0, #1 - 8004984: d020 beq.n 80049c8 <_printf_common+0xa8> - 8004986: 6823 ldr r3, [r4, #0] - 8004988: 68e5 ldr r5, [r4, #12] - 800498a: f003 0306 and.w r3, r3, #6 - 800498e: 2b04 cmp r3, #4 - 8004990: bf18 it ne - 8004992: 2500 movne r5, #0 - 8004994: 6832 ldr r2, [r6, #0] - 8004996: f04f 0600 mov.w r6, #0 - 800499a: 68a3 ldr r3, [r4, #8] - 800499c: bf08 it eq - 800499e: 1aad subeq r5, r5, r2 - 80049a0: 6922 ldr r2, [r4, #16] - 80049a2: bf08 it eq - 80049a4: ea25 75e5 biceq.w r5, r5, r5, asr #31 - 80049a8: 4293 cmp r3, r2 - 80049aa: bfc4 itt gt - 80049ac: 1a9b subgt r3, r3, r2 - 80049ae: 18ed addgt r5, r5, r3 - 80049b0: 341a adds r4, #26 - 80049b2: 42b5 cmp r5, r6 - 80049b4: d11a bne.n 80049ec <_printf_common+0xcc> - 80049b6: 2000 movs r0, #0 - 80049b8: e008 b.n 80049cc <_printf_common+0xac> - 80049ba: 2301 movs r3, #1 - 80049bc: 4652 mov r2, sl - 80049be: 4649 mov r1, r9 - 80049c0: 4638 mov r0, r7 - 80049c2: 47c0 blx r8 - 80049c4: 3001 adds r0, #1 - 80049c6: d103 bne.n 80049d0 <_printf_common+0xb0> - 80049c8: f04f 30ff mov.w r0, #4294967295 ; 0xffffffff - 80049cc: e8bd 87f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, pc} - 80049d0: 3501 adds r5, #1 - 80049d2: e7c4 b.n 800495e <_printf_common+0x3e> - 80049d4: 2030 movs r0, #48 ; 0x30 - 80049d6: 18e1 adds r1, r4, r3 - 80049d8: f881 0043 strb.w r0, [r1, #67] ; 0x43 - 80049dc: 1c5a adds r2, r3, #1 - 80049de: f894 1045 ldrb.w r1, [r4, #69] ; 0x45 - 80049e2: 4422 add r2, r4 - 80049e4: 3302 adds r3, #2 - 80049e6: f882 1043 strb.w r1, [r2, #67] ; 0x43 - 80049ea: e7c5 b.n 8004978 <_printf_common+0x58> - 80049ec: 2301 movs r3, #1 - 80049ee: 4622 mov r2, r4 - 80049f0: 4649 mov r1, r9 - 80049f2: 4638 mov r0, r7 - 80049f4: 47c0 blx r8 - 80049f6: 3001 adds r0, #1 - 80049f8: d0e6 beq.n 80049c8 <_printf_common+0xa8> - 80049fa: 3601 adds r6, #1 - 80049fc: e7d9 b.n 80049b2 <_printf_common+0x92> +08005c74 <_printf_common>: + 8005c74: e92d 47f0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, lr} + 8005c78: 4616 mov r6, r2 + 8005c7a: 4699 mov r9, r3 + 8005c7c: 688a ldr r2, [r1, #8] + 8005c7e: 690b ldr r3, [r1, #16] + 8005c80: 4607 mov r7, r0 + 8005c82: 4293 cmp r3, r2 + 8005c84: bfb8 it lt + 8005c86: 4613 movlt r3, r2 + 8005c88: 6033 str r3, [r6, #0] + 8005c8a: f891 2043 ldrb.w r2, [r1, #67] ; 0x43 + 8005c8e: 460c mov r4, r1 + 8005c90: f8dd 8020 ldr.w r8, [sp, #32] + 8005c94: b10a cbz r2, 8005c9a <_printf_common+0x26> + 8005c96: 3301 adds r3, #1 + 8005c98: 6033 str r3, [r6, #0] + 8005c9a: 6823 ldr r3, [r4, #0] + 8005c9c: 0699 lsls r1, r3, #26 + 8005c9e: bf42 ittt mi + 8005ca0: 6833 ldrmi r3, [r6, #0] + 8005ca2: 3302 addmi r3, #2 + 8005ca4: 6033 strmi r3, [r6, #0] + 8005ca6: 6825 ldr r5, [r4, #0] + 8005ca8: f015 0506 ands.w r5, r5, #6 + 8005cac: d106 bne.n 8005cbc <_printf_common+0x48> + 8005cae: f104 0a19 add.w sl, r4, #25 + 8005cb2: 68e3 ldr r3, [r4, #12] + 8005cb4: 6832 ldr r2, [r6, #0] + 8005cb6: 1a9b subs r3, r3, r2 + 8005cb8: 42ab cmp r3, r5 + 8005cba: dc28 bgt.n 8005d0e <_printf_common+0x9a> + 8005cbc: f894 2043 ldrb.w r2, [r4, #67] ; 0x43 + 8005cc0: 1e13 subs r3, r2, #0 + 8005cc2: 6822 ldr r2, [r4, #0] + 8005cc4: bf18 it ne + 8005cc6: 2301 movne r3, #1 + 8005cc8: 0692 lsls r2, r2, #26 + 8005cca: d42d bmi.n 8005d28 <_printf_common+0xb4> + 8005ccc: 4649 mov r1, r9 + 8005cce: 4638 mov r0, r7 + 8005cd0: f104 0243 add.w r2, r4, #67 ; 0x43 + 8005cd4: 47c0 blx r8 + 8005cd6: 3001 adds r0, #1 + 8005cd8: d020 beq.n 8005d1c <_printf_common+0xa8> + 8005cda: 6823 ldr r3, [r4, #0] + 8005cdc: 68e5 ldr r5, [r4, #12] + 8005cde: f003 0306 and.w r3, r3, #6 + 8005ce2: 2b04 cmp r3, #4 + 8005ce4: bf18 it ne + 8005ce6: 2500 movne r5, #0 + 8005ce8: 6832 ldr r2, [r6, #0] + 8005cea: f04f 0600 mov.w r6, #0 + 8005cee: 68a3 ldr r3, [r4, #8] + 8005cf0: bf08 it eq + 8005cf2: 1aad subeq r5, r5, r2 + 8005cf4: 6922 ldr r2, [r4, #16] + 8005cf6: bf08 it eq + 8005cf8: ea25 75e5 biceq.w r5, r5, r5, asr #31 + 8005cfc: 4293 cmp r3, r2 + 8005cfe: bfc4 itt gt + 8005d00: 1a9b subgt r3, r3, r2 + 8005d02: 18ed addgt r5, r5, r3 + 8005d04: 341a adds r4, #26 + 8005d06: 42b5 cmp r5, r6 + 8005d08: d11a bne.n 8005d40 <_printf_common+0xcc> + 8005d0a: 2000 movs r0, #0 + 8005d0c: e008 b.n 8005d20 <_printf_common+0xac> + 8005d0e: 2301 movs r3, #1 + 8005d10: 4652 mov r2, sl + 8005d12: 4649 mov r1, r9 + 8005d14: 4638 mov r0, r7 + 8005d16: 47c0 blx r8 + 8005d18: 3001 adds r0, #1 + 8005d1a: d103 bne.n 8005d24 <_printf_common+0xb0> + 8005d1c: f04f 30ff mov.w r0, #4294967295 ; 0xffffffff + 8005d20: e8bd 87f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, pc} + 8005d24: 3501 adds r5, #1 + 8005d26: e7c4 b.n 8005cb2 <_printf_common+0x3e> + 8005d28: 2030 movs r0, #48 ; 0x30 + 8005d2a: 18e1 adds r1, r4, r3 + 8005d2c: f881 0043 strb.w r0, [r1, #67] ; 0x43 + 8005d30: 1c5a adds r2, r3, #1 + 8005d32: f894 1045 ldrb.w r1, [r4, #69] ; 0x45 + 8005d36: 4422 add r2, r4 + 8005d38: 3302 adds r3, #2 + 8005d3a: f882 1043 strb.w r1, [r2, #67] ; 0x43 + 8005d3e: e7c5 b.n 8005ccc <_printf_common+0x58> + 8005d40: 2301 movs r3, #1 + 8005d42: 4622 mov r2, r4 + 8005d44: 4649 mov r1, r9 + 8005d46: 4638 mov r0, r7 + 8005d48: 47c0 blx r8 + 8005d4a: 3001 adds r0, #1 + 8005d4c: d0e6 beq.n 8005d1c <_printf_common+0xa8> + 8005d4e: 3601 adds r6, #1 + 8005d50: e7d9 b.n 8005d06 <_printf_common+0x92> ... -08004a00 <_printf_i>: - 8004a00: e92d 47ff stmdb sp!, {r0, r1, r2, r3, r4, r5, r6, r7, r8, r9, sl, lr} - 8004a04: 460c mov r4, r1 - 8004a06: 7e27 ldrb r7, [r4, #24] - 8004a08: 4691 mov r9, r2 - 8004a0a: 2f78 cmp r7, #120 ; 0x78 - 8004a0c: 4680 mov r8, r0 - 8004a0e: 469a mov sl, r3 - 8004a10: 990c ldr r1, [sp, #48] ; 0x30 - 8004a12: f104 0243 add.w r2, r4, #67 ; 0x43 - 8004a16: d807 bhi.n 8004a28 <_printf_i+0x28> - 8004a18: 2f62 cmp r7, #98 ; 0x62 - 8004a1a: d80a bhi.n 8004a32 <_printf_i+0x32> - 8004a1c: 2f00 cmp r7, #0 - 8004a1e: f000 80d9 beq.w 8004bd4 <_printf_i+0x1d4> - 8004a22: 2f58 cmp r7, #88 ; 0x58 - 8004a24: f000 80a4 beq.w 8004b70 <_printf_i+0x170> - 8004a28: f104 0642 add.w r6, r4, #66 ; 0x42 - 8004a2c: f884 7042 strb.w r7, [r4, #66] ; 0x42 - 8004a30: e03a b.n 8004aa8 <_printf_i+0xa8> - 8004a32: f1a7 0363 sub.w r3, r7, #99 ; 0x63 - 8004a36: 2b15 cmp r3, #21 - 8004a38: d8f6 bhi.n 8004a28 <_printf_i+0x28> - 8004a3a: a001 add r0, pc, #4 ; (adr r0, 8004a40 <_printf_i+0x40>) - 8004a3c: f850 f023 ldr.w pc, [r0, r3, lsl #2] - 8004a40: 08004a99 .word 0x08004a99 - 8004a44: 08004aad .word 0x08004aad - 8004a48: 08004a29 .word 0x08004a29 - 8004a4c: 08004a29 .word 0x08004a29 - 8004a50: 08004a29 .word 0x08004a29 - 8004a54: 08004a29 .word 0x08004a29 - 8004a58: 08004aad .word 0x08004aad - 8004a5c: 08004a29 .word 0x08004a29 - 8004a60: 08004a29 .word 0x08004a29 - 8004a64: 08004a29 .word 0x08004a29 - 8004a68: 08004a29 .word 0x08004a29 - 8004a6c: 08004bbb .word 0x08004bbb - 8004a70: 08004add .word 0x08004add - 8004a74: 08004b9d .word 0x08004b9d - 8004a78: 08004a29 .word 0x08004a29 - 8004a7c: 08004a29 .word 0x08004a29 - 8004a80: 08004bdd .word 0x08004bdd - 8004a84: 08004a29 .word 0x08004a29 - 8004a88: 08004add .word 0x08004add - 8004a8c: 08004a29 .word 0x08004a29 - 8004a90: 08004a29 .word 0x08004a29 - 8004a94: 08004ba5 .word 0x08004ba5 - 8004a98: 680b ldr r3, [r1, #0] - 8004a9a: f104 0642 add.w r6, r4, #66 ; 0x42 - 8004a9e: 1d1a adds r2, r3, #4 - 8004aa0: 681b ldr r3, [r3, #0] - 8004aa2: 600a str r2, [r1, #0] - 8004aa4: f884 3042 strb.w r3, [r4, #66] ; 0x42 - 8004aa8: 2301 movs r3, #1 - 8004aaa: e0a4 b.n 8004bf6 <_printf_i+0x1f6> - 8004aac: 6825 ldr r5, [r4, #0] - 8004aae: 6808 ldr r0, [r1, #0] - 8004ab0: 062e lsls r6, r5, #24 - 8004ab2: f100 0304 add.w r3, r0, #4 - 8004ab6: d50a bpl.n 8004ace <_printf_i+0xce> - 8004ab8: 6805 ldr r5, [r0, #0] - 8004aba: 600b str r3, [r1, #0] - 8004abc: 2d00 cmp r5, #0 - 8004abe: da03 bge.n 8004ac8 <_printf_i+0xc8> - 8004ac0: 232d movs r3, #45 ; 0x2d - 8004ac2: 426d negs r5, r5 - 8004ac4: f884 3043 strb.w r3, [r4, #67] ; 0x43 - 8004ac8: 230a movs r3, #10 - 8004aca: 485e ldr r0, [pc, #376] ; (8004c44 <_printf_i+0x244>) - 8004acc: e019 b.n 8004b02 <_printf_i+0x102> - 8004ace: f015 0f40 tst.w r5, #64 ; 0x40 - 8004ad2: 6805 ldr r5, [r0, #0] - 8004ad4: 600b str r3, [r1, #0] - 8004ad6: bf18 it ne - 8004ad8: b22d sxthne r5, r5 - 8004ada: e7ef b.n 8004abc <_printf_i+0xbc> - 8004adc: 680b ldr r3, [r1, #0] - 8004ade: 6825 ldr r5, [r4, #0] - 8004ae0: 1d18 adds r0, r3, #4 - 8004ae2: 6008 str r0, [r1, #0] - 8004ae4: 0628 lsls r0, r5, #24 - 8004ae6: d501 bpl.n 8004aec <_printf_i+0xec> - 8004ae8: 681d ldr r5, [r3, #0] - 8004aea: e002 b.n 8004af2 <_printf_i+0xf2> - 8004aec: 0669 lsls r1, r5, #25 - 8004aee: d5fb bpl.n 8004ae8 <_printf_i+0xe8> - 8004af0: 881d ldrh r5, [r3, #0] - 8004af2: 2f6f cmp r7, #111 ; 0x6f - 8004af4: bf0c ite eq - 8004af6: 2308 moveq r3, #8 - 8004af8: 230a movne r3, #10 - 8004afa: 4852 ldr r0, [pc, #328] ; (8004c44 <_printf_i+0x244>) - 8004afc: 2100 movs r1, #0 - 8004afe: f884 1043 strb.w r1, [r4, #67] ; 0x43 - 8004b02: 6866 ldr r6, [r4, #4] - 8004b04: 2e00 cmp r6, #0 - 8004b06: bfa8 it ge - 8004b08: 6821 ldrge r1, [r4, #0] - 8004b0a: 60a6 str r6, [r4, #8] - 8004b0c: bfa4 itt ge - 8004b0e: f021 0104 bicge.w r1, r1, #4 - 8004b12: 6021 strge r1, [r4, #0] - 8004b14: b90d cbnz r5, 8004b1a <_printf_i+0x11a> - 8004b16: 2e00 cmp r6, #0 - 8004b18: d04d beq.n 8004bb6 <_printf_i+0x1b6> - 8004b1a: 4616 mov r6, r2 - 8004b1c: fbb5 f1f3 udiv r1, r5, r3 - 8004b20: fb03 5711 mls r7, r3, r1, r5 - 8004b24: 5dc7 ldrb r7, [r0, r7] - 8004b26: f806 7d01 strb.w r7, [r6, #-1]! - 8004b2a: 462f mov r7, r5 - 8004b2c: 42bb cmp r3, r7 - 8004b2e: 460d mov r5, r1 - 8004b30: d9f4 bls.n 8004b1c <_printf_i+0x11c> - 8004b32: 2b08 cmp r3, #8 - 8004b34: d10b bne.n 8004b4e <_printf_i+0x14e> - 8004b36: 6823 ldr r3, [r4, #0] - 8004b38: 07df lsls r7, r3, #31 - 8004b3a: d508 bpl.n 8004b4e <_printf_i+0x14e> - 8004b3c: 6923 ldr r3, [r4, #16] - 8004b3e: 6861 ldr r1, [r4, #4] - 8004b40: 4299 cmp r1, r3 - 8004b42: bfde ittt le - 8004b44: 2330 movle r3, #48 ; 0x30 - 8004b46: f806 3c01 strble.w r3, [r6, #-1] - 8004b4a: f106 36ff addle.w r6, r6, #4294967295 ; 0xffffffff - 8004b4e: 1b92 subs r2, r2, r6 - 8004b50: 6122 str r2, [r4, #16] - 8004b52: 464b mov r3, r9 - 8004b54: 4621 mov r1, r4 - 8004b56: 4640 mov r0, r8 - 8004b58: f8cd a000 str.w sl, [sp] - 8004b5c: aa03 add r2, sp, #12 - 8004b5e: f7ff fedf bl 8004920 <_printf_common> - 8004b62: 3001 adds r0, #1 - 8004b64: d14c bne.n 8004c00 <_printf_i+0x200> - 8004b66: f04f 30ff mov.w r0, #4294967295 ; 0xffffffff - 8004b6a: b004 add sp, #16 - 8004b6c: e8bd 87f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, pc} - 8004b70: 4834 ldr r0, [pc, #208] ; (8004c44 <_printf_i+0x244>) - 8004b72: f884 7045 strb.w r7, [r4, #69] ; 0x45 - 8004b76: 680e ldr r6, [r1, #0] - 8004b78: 6823 ldr r3, [r4, #0] - 8004b7a: f856 5b04 ldr.w r5, [r6], #4 - 8004b7e: 061f lsls r7, r3, #24 - 8004b80: 600e str r6, [r1, #0] - 8004b82: d514 bpl.n 8004bae <_printf_i+0x1ae> - 8004b84: 07d9 lsls r1, r3, #31 - 8004b86: bf44 itt mi - 8004b88: f043 0320 orrmi.w r3, r3, #32 - 8004b8c: 6023 strmi r3, [r4, #0] - 8004b8e: b91d cbnz r5, 8004b98 <_printf_i+0x198> - 8004b90: 6823 ldr r3, [r4, #0] - 8004b92: f023 0320 bic.w r3, r3, #32 - 8004b96: 6023 str r3, [r4, #0] - 8004b98: 2310 movs r3, #16 - 8004b9a: e7af b.n 8004afc <_printf_i+0xfc> - 8004b9c: 6823 ldr r3, [r4, #0] - 8004b9e: f043 0320 orr.w r3, r3, #32 - 8004ba2: 6023 str r3, [r4, #0] - 8004ba4: 2378 movs r3, #120 ; 0x78 - 8004ba6: 4828 ldr r0, [pc, #160] ; (8004c48 <_printf_i+0x248>) - 8004ba8: f884 3045 strb.w r3, [r4, #69] ; 0x45 - 8004bac: e7e3 b.n 8004b76 <_printf_i+0x176> - 8004bae: 065e lsls r6, r3, #25 - 8004bb0: bf48 it mi - 8004bb2: b2ad uxthmi r5, r5 - 8004bb4: e7e6 b.n 8004b84 <_printf_i+0x184> - 8004bb6: 4616 mov r6, r2 - 8004bb8: e7bb b.n 8004b32 <_printf_i+0x132> - 8004bba: 680b ldr r3, [r1, #0] - 8004bbc: 6826 ldr r6, [r4, #0] - 8004bbe: 1d1d adds r5, r3, #4 - 8004bc0: 6960 ldr r0, [r4, #20] - 8004bc2: 600d str r5, [r1, #0] - 8004bc4: 0635 lsls r5, r6, #24 - 8004bc6: 681b ldr r3, [r3, #0] - 8004bc8: d501 bpl.n 8004bce <_printf_i+0x1ce> - 8004bca: 6018 str r0, [r3, #0] - 8004bcc: e002 b.n 8004bd4 <_printf_i+0x1d4> - 8004bce: 0671 lsls r1, r6, #25 - 8004bd0: d5fb bpl.n 8004bca <_printf_i+0x1ca> - 8004bd2: 8018 strh r0, [r3, #0] - 8004bd4: 2300 movs r3, #0 - 8004bd6: 4616 mov r6, r2 - 8004bd8: 6123 str r3, [r4, #16] - 8004bda: e7ba b.n 8004b52 <_printf_i+0x152> - 8004bdc: 680b ldr r3, [r1, #0] - 8004bde: 1d1a adds r2, r3, #4 - 8004be0: 600a str r2, [r1, #0] - 8004be2: 681e ldr r6, [r3, #0] - 8004be4: 2100 movs r1, #0 - 8004be6: 4630 mov r0, r6 - 8004be8: 6862 ldr r2, [r4, #4] - 8004bea: f000 fedf bl 80059ac - 8004bee: b108 cbz r0, 8004bf4 <_printf_i+0x1f4> - 8004bf0: 1b80 subs r0, r0, r6 - 8004bf2: 6060 str r0, [r4, #4] - 8004bf4: 6863 ldr r3, [r4, #4] - 8004bf6: 6123 str r3, [r4, #16] - 8004bf8: 2300 movs r3, #0 - 8004bfa: f884 3043 strb.w r3, [r4, #67] ; 0x43 - 8004bfe: e7a8 b.n 8004b52 <_printf_i+0x152> - 8004c00: 4632 mov r2, r6 - 8004c02: 4649 mov r1, r9 - 8004c04: 4640 mov r0, r8 - 8004c06: 6923 ldr r3, [r4, #16] - 8004c08: 47d0 blx sl - 8004c0a: 3001 adds r0, #1 - 8004c0c: d0ab beq.n 8004b66 <_printf_i+0x166> - 8004c0e: 6823 ldr r3, [r4, #0] - 8004c10: 079b lsls r3, r3, #30 - 8004c12: d413 bmi.n 8004c3c <_printf_i+0x23c> - 8004c14: 68e0 ldr r0, [r4, #12] - 8004c16: 9b03 ldr r3, [sp, #12] - 8004c18: 4298 cmp r0, r3 - 8004c1a: bfb8 it lt - 8004c1c: 4618 movlt r0, r3 - 8004c1e: e7a4 b.n 8004b6a <_printf_i+0x16a> - 8004c20: 2301 movs r3, #1 - 8004c22: 4632 mov r2, r6 - 8004c24: 4649 mov r1, r9 - 8004c26: 4640 mov r0, r8 - 8004c28: 47d0 blx sl - 8004c2a: 3001 adds r0, #1 - 8004c2c: d09b beq.n 8004b66 <_printf_i+0x166> - 8004c2e: 3501 adds r5, #1 - 8004c30: 68e3 ldr r3, [r4, #12] - 8004c32: 9903 ldr r1, [sp, #12] - 8004c34: 1a5b subs r3, r3, r1 - 8004c36: 42ab cmp r3, r5 - 8004c38: dcf2 bgt.n 8004c20 <_printf_i+0x220> - 8004c3a: e7eb b.n 8004c14 <_printf_i+0x214> - 8004c3c: 2500 movs r5, #0 - 8004c3e: f104 0619 add.w r6, r4, #25 - 8004c42: e7f5 b.n 8004c30 <_printf_i+0x230> - 8004c44: 08007aea .word 0x08007aea - 8004c48: 08007afb .word 0x08007afb +08005d54 <_printf_i>: + 8005d54: e92d 47ff stmdb sp!, {r0, r1, r2, r3, r4, r5, r6, r7, r8, r9, sl, lr} + 8005d58: 460c mov r4, r1 + 8005d5a: 7e27 ldrb r7, [r4, #24] + 8005d5c: 4691 mov r9, r2 + 8005d5e: 2f78 cmp r7, #120 ; 0x78 + 8005d60: 4680 mov r8, r0 + 8005d62: 469a mov sl, r3 + 8005d64: 990c ldr r1, [sp, #48] ; 0x30 + 8005d66: f104 0243 add.w r2, r4, #67 ; 0x43 + 8005d6a: d807 bhi.n 8005d7c <_printf_i+0x28> + 8005d6c: 2f62 cmp r7, #98 ; 0x62 + 8005d6e: d80a bhi.n 8005d86 <_printf_i+0x32> + 8005d70: 2f00 cmp r7, #0 + 8005d72: f000 80d9 beq.w 8005f28 <_printf_i+0x1d4> + 8005d76: 2f58 cmp r7, #88 ; 0x58 + 8005d78: f000 80a4 beq.w 8005ec4 <_printf_i+0x170> + 8005d7c: f104 0642 add.w r6, r4, #66 ; 0x42 + 8005d80: f884 7042 strb.w r7, [r4, #66] ; 0x42 + 8005d84: e03a b.n 8005dfc <_printf_i+0xa8> + 8005d86: f1a7 0363 sub.w r3, r7, #99 ; 0x63 + 8005d8a: 2b15 cmp r3, #21 + 8005d8c: d8f6 bhi.n 8005d7c <_printf_i+0x28> + 8005d8e: a001 add r0, pc, #4 ; (adr r0, 8005d94 <_printf_i+0x40>) + 8005d90: f850 f023 ldr.w pc, [r0, r3, lsl #2] + 8005d94: 08005ded .word 0x08005ded + 8005d98: 08005e01 .word 0x08005e01 + 8005d9c: 08005d7d .word 0x08005d7d + 8005da0: 08005d7d .word 0x08005d7d + 8005da4: 08005d7d .word 0x08005d7d + 8005da8: 08005d7d .word 0x08005d7d + 8005dac: 08005e01 .word 0x08005e01 + 8005db0: 08005d7d .word 0x08005d7d + 8005db4: 08005d7d .word 0x08005d7d + 8005db8: 08005d7d .word 0x08005d7d + 8005dbc: 08005d7d .word 0x08005d7d + 8005dc0: 08005f0f .word 0x08005f0f + 8005dc4: 08005e31 .word 0x08005e31 + 8005dc8: 08005ef1 .word 0x08005ef1 + 8005dcc: 08005d7d .word 0x08005d7d + 8005dd0: 08005d7d .word 0x08005d7d + 8005dd4: 08005f31 .word 0x08005f31 + 8005dd8: 08005d7d .word 0x08005d7d + 8005ddc: 08005e31 .word 0x08005e31 + 8005de0: 08005d7d .word 0x08005d7d + 8005de4: 08005d7d .word 0x08005d7d + 8005de8: 08005ef9 .word 0x08005ef9 + 8005dec: 680b ldr r3, [r1, #0] + 8005dee: f104 0642 add.w r6, r4, #66 ; 0x42 + 8005df2: 1d1a adds r2, r3, #4 + 8005df4: 681b ldr r3, [r3, #0] + 8005df6: 600a str r2, [r1, #0] + 8005df8: f884 3042 strb.w r3, [r4, #66] ; 0x42 + 8005dfc: 2301 movs r3, #1 + 8005dfe: e0a4 b.n 8005f4a <_printf_i+0x1f6> + 8005e00: 6825 ldr r5, [r4, #0] + 8005e02: 6808 ldr r0, [r1, #0] + 8005e04: 062e lsls r6, r5, #24 + 8005e06: f100 0304 add.w r3, r0, #4 + 8005e0a: d50a bpl.n 8005e22 <_printf_i+0xce> + 8005e0c: 6805 ldr r5, [r0, #0] + 8005e0e: 600b str r3, [r1, #0] + 8005e10: 2d00 cmp r5, #0 + 8005e12: da03 bge.n 8005e1c <_printf_i+0xc8> + 8005e14: 232d movs r3, #45 ; 0x2d + 8005e16: 426d negs r5, r5 + 8005e18: f884 3043 strb.w r3, [r4, #67] ; 0x43 + 8005e1c: 230a movs r3, #10 + 8005e1e: 485e ldr r0, [pc, #376] ; (8005f98 <_printf_i+0x244>) + 8005e20: e019 b.n 8005e56 <_printf_i+0x102> + 8005e22: f015 0f40 tst.w r5, #64 ; 0x40 + 8005e26: 6805 ldr r5, [r0, #0] + 8005e28: 600b str r3, [r1, #0] + 8005e2a: bf18 it ne + 8005e2c: b22d sxthne r5, r5 + 8005e2e: e7ef b.n 8005e10 <_printf_i+0xbc> + 8005e30: 680b ldr r3, [r1, #0] + 8005e32: 6825 ldr r5, [r4, #0] + 8005e34: 1d18 adds r0, r3, #4 + 8005e36: 6008 str r0, [r1, #0] + 8005e38: 0628 lsls r0, r5, #24 + 8005e3a: d501 bpl.n 8005e40 <_printf_i+0xec> + 8005e3c: 681d ldr r5, [r3, #0] + 8005e3e: e002 b.n 8005e46 <_printf_i+0xf2> + 8005e40: 0669 lsls r1, r5, #25 + 8005e42: d5fb bpl.n 8005e3c <_printf_i+0xe8> + 8005e44: 881d ldrh r5, [r3, #0] + 8005e46: 2f6f cmp r7, #111 ; 0x6f + 8005e48: bf0c ite eq + 8005e4a: 2308 moveq r3, #8 + 8005e4c: 230a movne r3, #10 + 8005e4e: 4852 ldr r0, [pc, #328] ; (8005f98 <_printf_i+0x244>) + 8005e50: 2100 movs r1, #0 + 8005e52: f884 1043 strb.w r1, [r4, #67] ; 0x43 + 8005e56: 6866 ldr r6, [r4, #4] + 8005e58: 2e00 cmp r6, #0 + 8005e5a: bfa8 it ge + 8005e5c: 6821 ldrge r1, [r4, #0] + 8005e5e: 60a6 str r6, [r4, #8] + 8005e60: bfa4 itt ge + 8005e62: f021 0104 bicge.w r1, r1, #4 + 8005e66: 6021 strge r1, [r4, #0] + 8005e68: b90d cbnz r5, 8005e6e <_printf_i+0x11a> + 8005e6a: 2e00 cmp r6, #0 + 8005e6c: d04d beq.n 8005f0a <_printf_i+0x1b6> + 8005e6e: 4616 mov r6, r2 + 8005e70: fbb5 f1f3 udiv r1, r5, r3 + 8005e74: fb03 5711 mls r7, r3, r1, r5 + 8005e78: 5dc7 ldrb r7, [r0, r7] + 8005e7a: f806 7d01 strb.w r7, [r6, #-1]! + 8005e7e: 462f mov r7, r5 + 8005e80: 42bb cmp r3, r7 + 8005e82: 460d mov r5, r1 + 8005e84: d9f4 bls.n 8005e70 <_printf_i+0x11c> + 8005e86: 2b08 cmp r3, #8 + 8005e88: d10b bne.n 8005ea2 <_printf_i+0x14e> + 8005e8a: 6823 ldr r3, [r4, #0] + 8005e8c: 07df lsls r7, r3, #31 + 8005e8e: d508 bpl.n 8005ea2 <_printf_i+0x14e> + 8005e90: 6923 ldr r3, [r4, #16] + 8005e92: 6861 ldr r1, [r4, #4] + 8005e94: 4299 cmp r1, r3 + 8005e96: bfde ittt le + 8005e98: 2330 movle r3, #48 ; 0x30 + 8005e9a: f806 3c01 strble.w r3, [r6, #-1] + 8005e9e: f106 36ff addle.w r6, r6, #4294967295 ; 0xffffffff + 8005ea2: 1b92 subs r2, r2, r6 + 8005ea4: 6122 str r2, [r4, #16] + 8005ea6: 464b mov r3, r9 + 8005ea8: 4621 mov r1, r4 + 8005eaa: 4640 mov r0, r8 + 8005eac: f8cd a000 str.w sl, [sp] + 8005eb0: aa03 add r2, sp, #12 + 8005eb2: f7ff fedf bl 8005c74 <_printf_common> + 8005eb6: 3001 adds r0, #1 + 8005eb8: d14c bne.n 8005f54 <_printf_i+0x200> + 8005eba: f04f 30ff mov.w r0, #4294967295 ; 0xffffffff + 8005ebe: b004 add sp, #16 + 8005ec0: e8bd 87f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, pc} + 8005ec4: 4834 ldr r0, [pc, #208] ; (8005f98 <_printf_i+0x244>) + 8005ec6: f884 7045 strb.w r7, [r4, #69] ; 0x45 + 8005eca: 680e ldr r6, [r1, #0] + 8005ecc: 6823 ldr r3, [r4, #0] + 8005ece: f856 5b04 ldr.w r5, [r6], #4 + 8005ed2: 061f lsls r7, r3, #24 + 8005ed4: 600e str r6, [r1, #0] + 8005ed6: d514 bpl.n 8005f02 <_printf_i+0x1ae> + 8005ed8: 07d9 lsls r1, r3, #31 + 8005eda: bf44 itt mi + 8005edc: f043 0320 orrmi.w r3, r3, #32 + 8005ee0: 6023 strmi r3, [r4, #0] + 8005ee2: b91d cbnz r5, 8005eec <_printf_i+0x198> + 8005ee4: 6823 ldr r3, [r4, #0] + 8005ee6: f023 0320 bic.w r3, r3, #32 + 8005eea: 6023 str r3, [r4, #0] + 8005eec: 2310 movs r3, #16 + 8005eee: e7af b.n 8005e50 <_printf_i+0xfc> + 8005ef0: 6823 ldr r3, [r4, #0] + 8005ef2: f043 0320 orr.w r3, r3, #32 + 8005ef6: 6023 str r3, [r4, #0] + 8005ef8: 2378 movs r3, #120 ; 0x78 + 8005efa: 4828 ldr r0, [pc, #160] ; (8005f9c <_printf_i+0x248>) + 8005efc: f884 3045 strb.w r3, [r4, #69] ; 0x45 + 8005f00: e7e3 b.n 8005eca <_printf_i+0x176> + 8005f02: 065e lsls r6, r3, #25 + 8005f04: bf48 it mi + 8005f06: b2ad uxthmi r5, r5 + 8005f08: e7e6 b.n 8005ed8 <_printf_i+0x184> + 8005f0a: 4616 mov r6, r2 + 8005f0c: e7bb b.n 8005e86 <_printf_i+0x132> + 8005f0e: 680b ldr r3, [r1, #0] + 8005f10: 6826 ldr r6, [r4, #0] + 8005f12: 1d1d adds r5, r3, #4 + 8005f14: 6960 ldr r0, [r4, #20] + 8005f16: 600d str r5, [r1, #0] + 8005f18: 0635 lsls r5, r6, #24 + 8005f1a: 681b ldr r3, [r3, #0] + 8005f1c: d501 bpl.n 8005f22 <_printf_i+0x1ce> + 8005f1e: 6018 str r0, [r3, #0] + 8005f20: e002 b.n 8005f28 <_printf_i+0x1d4> + 8005f22: 0671 lsls r1, r6, #25 + 8005f24: d5fb bpl.n 8005f1e <_printf_i+0x1ca> + 8005f26: 8018 strh r0, [r3, #0] + 8005f28: 2300 movs r3, #0 + 8005f2a: 4616 mov r6, r2 + 8005f2c: 6123 str r3, [r4, #16] + 8005f2e: e7ba b.n 8005ea6 <_printf_i+0x152> + 8005f30: 680b ldr r3, [r1, #0] + 8005f32: 1d1a adds r2, r3, #4 + 8005f34: 600a str r2, [r1, #0] + 8005f36: 681e ldr r6, [r3, #0] + 8005f38: 2100 movs r1, #0 + 8005f3a: 4630 mov r0, r6 + 8005f3c: 6862 ldr r2, [r4, #4] + 8005f3e: f000 fee1 bl 8006d04 + 8005f42: b108 cbz r0, 8005f48 <_printf_i+0x1f4> + 8005f44: 1b80 subs r0, r0, r6 + 8005f46: 6060 str r0, [r4, #4] + 8005f48: 6863 ldr r3, [r4, #4] + 8005f4a: 6123 str r3, [r4, #16] + 8005f4c: 2300 movs r3, #0 + 8005f4e: f884 3043 strb.w r3, [r4, #67] ; 0x43 + 8005f52: e7a8 b.n 8005ea6 <_printf_i+0x152> + 8005f54: 4632 mov r2, r6 + 8005f56: 4649 mov r1, r9 + 8005f58: 4640 mov r0, r8 + 8005f5a: 6923 ldr r3, [r4, #16] + 8005f5c: 47d0 blx sl + 8005f5e: 3001 adds r0, #1 + 8005f60: d0ab beq.n 8005eba <_printf_i+0x166> + 8005f62: 6823 ldr r3, [r4, #0] + 8005f64: 079b lsls r3, r3, #30 + 8005f66: d413 bmi.n 8005f90 <_printf_i+0x23c> + 8005f68: 68e0 ldr r0, [r4, #12] + 8005f6a: 9b03 ldr r3, [sp, #12] + 8005f6c: 4298 cmp r0, r3 + 8005f6e: bfb8 it lt + 8005f70: 4618 movlt r0, r3 + 8005f72: e7a4 b.n 8005ebe <_printf_i+0x16a> + 8005f74: 2301 movs r3, #1 + 8005f76: 4632 mov r2, r6 + 8005f78: 4649 mov r1, r9 + 8005f7a: 4640 mov r0, r8 + 8005f7c: 47d0 blx sl + 8005f7e: 3001 adds r0, #1 + 8005f80: d09b beq.n 8005eba <_printf_i+0x166> + 8005f82: 3501 adds r5, #1 + 8005f84: 68e3 ldr r3, [r4, #12] + 8005f86: 9903 ldr r1, [sp, #12] + 8005f88: 1a5b subs r3, r3, r1 + 8005f8a: 42ab cmp r3, r5 + 8005f8c: dcf2 bgt.n 8005f74 <_printf_i+0x220> + 8005f8e: e7eb b.n 8005f68 <_printf_i+0x214> + 8005f90: 2500 movs r5, #0 + 8005f92: f104 0619 add.w r6, r4, #25 + 8005f96: e7f5 b.n 8005f84 <_printf_i+0x230> + 8005f98: 08008e4a .word 0x08008e4a + 8005f9c: 08008e5b .word 0x08008e5b -08004c4c <_sbrk_r>: - 8004c4c: b538 push {r3, r4, r5, lr} - 8004c4e: 2300 movs r3, #0 - 8004c50: 4d05 ldr r5, [pc, #20] ; (8004c68 <_sbrk_r+0x1c>) - 8004c52: 4604 mov r4, r0 - 8004c54: 4608 mov r0, r1 - 8004c56: 602b str r3, [r5, #0] - 8004c58: f7fc fcec bl 8001634 <_sbrk> - 8004c5c: 1c43 adds r3, r0, #1 - 8004c5e: d102 bne.n 8004c66 <_sbrk_r+0x1a> - 8004c60: 682b ldr r3, [r5, #0] - 8004c62: b103 cbz r3, 8004c66 <_sbrk_r+0x1a> - 8004c64: 6023 str r3, [r4, #0] - 8004c66: bd38 pop {r3, r4, r5, pc} - 8004c68: 20000288 .word 0x20000288 +08005fa0 <_sbrk_r>: + 8005fa0: b538 push {r3, r4, r5, lr} + 8005fa2: 2300 movs r3, #0 + 8005fa4: 4d05 ldr r5, [pc, #20] ; (8005fbc <_sbrk_r+0x1c>) + 8005fa6: 4604 mov r4, r0 + 8005fa8: 4608 mov r0, r1 + 8005faa: 602b str r3, [r5, #0] + 8005fac: f7fb fbb2 bl 8001714 <_sbrk> + 8005fb0: 1c43 adds r3, r0, #1 + 8005fb2: d102 bne.n 8005fba <_sbrk_r+0x1a> + 8005fb4: 682b ldr r3, [r5, #0] + 8005fb6: b103 cbz r3, 8005fba <_sbrk_r+0x1a> + 8005fb8: 6023 str r3, [r4, #0] + 8005fba: bd38 pop {r3, r4, r5, pc} + 8005fbc: 200002f0 .word 0x200002f0 -08004c6c : - 8004c6c: b40e push {r1, r2, r3} - 8004c6e: f06f 4100 mvn.w r1, #2147483648 ; 0x80000000 - 8004c72: b500 push {lr} - 8004c74: b09c sub sp, #112 ; 0x70 - 8004c76: ab1d add r3, sp, #116 ; 0x74 - 8004c78: 9002 str r0, [sp, #8] - 8004c7a: 9006 str r0, [sp, #24] - 8004c7c: 9107 str r1, [sp, #28] - 8004c7e: 9104 str r1, [sp, #16] - 8004c80: 4808 ldr r0, [pc, #32] ; (8004ca4 ) - 8004c82: 4909 ldr r1, [pc, #36] ; (8004ca8 ) - 8004c84: f853 2b04 ldr.w r2, [r3], #4 - 8004c88: 9105 str r1, [sp, #20] - 8004c8a: 6800 ldr r0, [r0, #0] - 8004c8c: a902 add r1, sp, #8 - 8004c8e: 9301 str r3, [sp, #4] - 8004c90: f001 faa0 bl 80061d4 <_svfiprintf_r> - 8004c94: 2200 movs r2, #0 - 8004c96: 9b02 ldr r3, [sp, #8] - 8004c98: 701a strb r2, [r3, #0] - 8004c9a: b01c add sp, #112 ; 0x70 - 8004c9c: f85d eb04 ldr.w lr, [sp], #4 - 8004ca0: b003 add sp, #12 - 8004ca2: 4770 bx lr - 8004ca4: 2000000c .word 0x2000000c - 8004ca8: ffff0208 .word 0xffff0208 +08005fc0 : + 8005fc0: b40e push {r1, r2, r3} + 8005fc2: f06f 4100 mvn.w r1, #2147483648 ; 0x80000000 + 8005fc6: b500 push {lr} + 8005fc8: b09c sub sp, #112 ; 0x70 + 8005fca: ab1d add r3, sp, #116 ; 0x74 + 8005fcc: 9002 str r0, [sp, #8] + 8005fce: 9006 str r0, [sp, #24] + 8005fd0: 9107 str r1, [sp, #28] + 8005fd2: 9104 str r1, [sp, #16] + 8005fd4: 4808 ldr r0, [pc, #32] ; (8005ff8 ) + 8005fd6: 4909 ldr r1, [pc, #36] ; (8005ffc ) + 8005fd8: f853 2b04 ldr.w r2, [r3], #4 + 8005fdc: 9105 str r1, [sp, #20] + 8005fde: 6800 ldr r0, [r0, #0] + 8005fe0: a902 add r1, sp, #8 + 8005fe2: 9301 str r3, [sp, #4] + 8005fe4: f001 faa2 bl 800752c <_svfiprintf_r> + 8005fe8: 2200 movs r2, #0 + 8005fea: 9b02 ldr r3, [sp, #8] + 8005fec: 701a strb r2, [r3, #0] + 8005fee: b01c add sp, #112 ; 0x70 + 8005ff0: f85d eb04 ldr.w lr, [sp], #4 + 8005ff4: b003 add sp, #12 + 8005ff6: 4770 bx lr + 8005ff8: 2000000c .word 0x2000000c + 8005ffc: ffff0208 .word 0xffff0208 -08004cac : - 8004cac: e92d 4ff7 stmdb sp!, {r0, r1, r2, r4, r5, r6, r7, r8, r9, sl, fp, lr} - 8004cb0: 6903 ldr r3, [r0, #16] - 8004cb2: 690c ldr r4, [r1, #16] - 8004cb4: 4607 mov r7, r0 - 8004cb6: 42a3 cmp r3, r4 - 8004cb8: f2c0 8083 blt.w 8004dc2 - 8004cbc: 3c01 subs r4, #1 - 8004cbe: f100 0514 add.w r5, r0, #20 - 8004cc2: f101 0814 add.w r8, r1, #20 - 8004cc6: eb05 0384 add.w r3, r5, r4, lsl #2 - 8004cca: 9301 str r3, [sp, #4] - 8004ccc: f858 3024 ldr.w r3, [r8, r4, lsl #2] - 8004cd0: f855 2024 ldr.w r2, [r5, r4, lsl #2] - 8004cd4: 3301 adds r3, #1 - 8004cd6: 429a cmp r2, r3 - 8004cd8: fbb2 f6f3 udiv r6, r2, r3 - 8004cdc: ea4f 0b84 mov.w fp, r4, lsl #2 - 8004ce0: eb08 0984 add.w r9, r8, r4, lsl #2 - 8004ce4: d332 bcc.n 8004d4c - 8004ce6: f04f 0e00 mov.w lr, #0 - 8004cea: 4640 mov r0, r8 - 8004cec: 46ac mov ip, r5 - 8004cee: 46f2 mov sl, lr - 8004cf0: f850 2b04 ldr.w r2, [r0], #4 - 8004cf4: b293 uxth r3, r2 - 8004cf6: fb06 e303 mla r3, r6, r3, lr - 8004cfa: 0c12 lsrs r2, r2, #16 - 8004cfc: ea4f 4e13 mov.w lr, r3, lsr #16 - 8004d00: fb06 e202 mla r2, r6, r2, lr - 8004d04: b29b uxth r3, r3 - 8004d06: ebaa 0303 sub.w r3, sl, r3 - 8004d0a: f8dc a000 ldr.w sl, [ip] - 8004d0e: ea4f 4e12 mov.w lr, r2, lsr #16 - 8004d12: fa1f fa8a uxth.w sl, sl - 8004d16: 4453 add r3, sl - 8004d18: fa1f fa82 uxth.w sl, r2 - 8004d1c: f8dc 2000 ldr.w r2, [ip] - 8004d20: 4581 cmp r9, r0 - 8004d22: ebca 4212 rsb r2, sl, r2, lsr #16 - 8004d26: eb02 4223 add.w r2, r2, r3, asr #16 - 8004d2a: b29b uxth r3, r3 - 8004d2c: ea43 4302 orr.w r3, r3, r2, lsl #16 - 8004d30: ea4f 4a22 mov.w sl, r2, asr #16 - 8004d34: f84c 3b04 str.w r3, [ip], #4 - 8004d38: d2da bcs.n 8004cf0 - 8004d3a: f855 300b ldr.w r3, [r5, fp] - 8004d3e: b92b cbnz r3, 8004d4c - 8004d40: 9b01 ldr r3, [sp, #4] - 8004d42: 3b04 subs r3, #4 - 8004d44: 429d cmp r5, r3 - 8004d46: 461a mov r2, r3 - 8004d48: d32f bcc.n 8004daa - 8004d4a: 613c str r4, [r7, #16] - 8004d4c: 4638 mov r0, r7 - 8004d4e: f001 f8cf bl 8005ef0 <__mcmp> - 8004d52: 2800 cmp r0, #0 - 8004d54: db25 blt.n 8004da2 - 8004d56: 4628 mov r0, r5 - 8004d58: f04f 0c00 mov.w ip, #0 - 8004d5c: 3601 adds r6, #1 - 8004d5e: f858 1b04 ldr.w r1, [r8], #4 - 8004d62: f8d0 e000 ldr.w lr, [r0] - 8004d66: b28b uxth r3, r1 - 8004d68: ebac 0303 sub.w r3, ip, r3 - 8004d6c: fa1f f28e uxth.w r2, lr - 8004d70: 4413 add r3, r2 - 8004d72: 0c0a lsrs r2, r1, #16 - 8004d74: ebc2 421e rsb r2, r2, lr, lsr #16 - 8004d78: eb02 4223 add.w r2, r2, r3, asr #16 - 8004d7c: b29b uxth r3, r3 - 8004d7e: ea43 4302 orr.w r3, r3, r2, lsl #16 - 8004d82: 45c1 cmp r9, r8 - 8004d84: ea4f 4c22 mov.w ip, r2, asr #16 - 8004d88: f840 3b04 str.w r3, [r0], #4 - 8004d8c: d2e7 bcs.n 8004d5e - 8004d8e: f855 2024 ldr.w r2, [r5, r4, lsl #2] - 8004d92: eb05 0384 add.w r3, r5, r4, lsl #2 - 8004d96: b922 cbnz r2, 8004da2 - 8004d98: 3b04 subs r3, #4 - 8004d9a: 429d cmp r5, r3 - 8004d9c: 461a mov r2, r3 - 8004d9e: d30a bcc.n 8004db6 - 8004da0: 613c str r4, [r7, #16] - 8004da2: 4630 mov r0, r6 - 8004da4: b003 add sp, #12 - 8004da6: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc} - 8004daa: 6812 ldr r2, [r2, #0] - 8004dac: 3b04 subs r3, #4 - 8004dae: 2a00 cmp r2, #0 - 8004db0: d1cb bne.n 8004d4a - 8004db2: 3c01 subs r4, #1 - 8004db4: e7c6 b.n 8004d44 - 8004db6: 6812 ldr r2, [r2, #0] - 8004db8: 3b04 subs r3, #4 - 8004dba: 2a00 cmp r2, #0 - 8004dbc: d1f0 bne.n 8004da0 - 8004dbe: 3c01 subs r4, #1 - 8004dc0: e7eb b.n 8004d9a - 8004dc2: 2000 movs r0, #0 - 8004dc4: e7ee b.n 8004da4 +08006000 : + 8006000: e92d 4ff7 stmdb sp!, {r0, r1, r2, r4, r5, r6, r7, r8, r9, sl, fp, lr} + 8006004: 6903 ldr r3, [r0, #16] + 8006006: 690c ldr r4, [r1, #16] + 8006008: 4607 mov r7, r0 + 800600a: 42a3 cmp r3, r4 + 800600c: f2c0 8083 blt.w 8006116 + 8006010: 3c01 subs r4, #1 + 8006012: f100 0514 add.w r5, r0, #20 + 8006016: f101 0814 add.w r8, r1, #20 + 800601a: eb05 0384 add.w r3, r5, r4, lsl #2 + 800601e: 9301 str r3, [sp, #4] + 8006020: f858 3024 ldr.w r3, [r8, r4, lsl #2] + 8006024: f855 2024 ldr.w r2, [r5, r4, lsl #2] + 8006028: 3301 adds r3, #1 + 800602a: 429a cmp r2, r3 + 800602c: fbb2 f6f3 udiv r6, r2, r3 + 8006030: ea4f 0b84 mov.w fp, r4, lsl #2 + 8006034: eb08 0984 add.w r9, r8, r4, lsl #2 + 8006038: d332 bcc.n 80060a0 + 800603a: f04f 0e00 mov.w lr, #0 + 800603e: 4640 mov r0, r8 + 8006040: 46ac mov ip, r5 + 8006042: 46f2 mov sl, lr + 8006044: f850 2b04 ldr.w r2, [r0], #4 + 8006048: b293 uxth r3, r2 + 800604a: fb06 e303 mla r3, r6, r3, lr + 800604e: 0c12 lsrs r2, r2, #16 + 8006050: ea4f 4e13 mov.w lr, r3, lsr #16 + 8006054: fb06 e202 mla r2, r6, r2, lr + 8006058: b29b uxth r3, r3 + 800605a: ebaa 0303 sub.w r3, sl, r3 + 800605e: f8dc a000 ldr.w sl, [ip] + 8006062: ea4f 4e12 mov.w lr, r2, lsr #16 + 8006066: fa1f fa8a uxth.w sl, sl + 800606a: 4453 add r3, sl + 800606c: fa1f fa82 uxth.w sl, r2 + 8006070: f8dc 2000 ldr.w r2, [ip] + 8006074: 4581 cmp r9, r0 + 8006076: ebca 4212 rsb r2, sl, r2, lsr #16 + 800607a: eb02 4223 add.w r2, r2, r3, asr #16 + 800607e: b29b uxth r3, r3 + 8006080: ea43 4302 orr.w r3, r3, r2, lsl #16 + 8006084: ea4f 4a22 mov.w sl, r2, asr #16 + 8006088: f84c 3b04 str.w r3, [ip], #4 + 800608c: d2da bcs.n 8006044 + 800608e: f855 300b ldr.w r3, [r5, fp] + 8006092: b92b cbnz r3, 80060a0 + 8006094: 9b01 ldr r3, [sp, #4] + 8006096: 3b04 subs r3, #4 + 8006098: 429d cmp r5, r3 + 800609a: 461a mov r2, r3 + 800609c: d32f bcc.n 80060fe + 800609e: 613c str r4, [r7, #16] + 80060a0: 4638 mov r0, r7 + 80060a2: f001 f8d1 bl 8007248 <__mcmp> + 80060a6: 2800 cmp r0, #0 + 80060a8: db25 blt.n 80060f6 + 80060aa: 4628 mov r0, r5 + 80060ac: f04f 0c00 mov.w ip, #0 + 80060b0: 3601 adds r6, #1 + 80060b2: f858 1b04 ldr.w r1, [r8], #4 + 80060b6: f8d0 e000 ldr.w lr, [r0] + 80060ba: b28b uxth r3, r1 + 80060bc: ebac 0303 sub.w r3, ip, r3 + 80060c0: fa1f f28e uxth.w r2, lr + 80060c4: 4413 add r3, r2 + 80060c6: 0c0a lsrs r2, r1, #16 + 80060c8: ebc2 421e rsb r2, r2, lr, lsr #16 + 80060cc: eb02 4223 add.w r2, r2, r3, asr #16 + 80060d0: b29b uxth r3, r3 + 80060d2: ea43 4302 orr.w r3, r3, r2, lsl #16 + 80060d6: 45c1 cmp r9, r8 + 80060d8: ea4f 4c22 mov.w ip, r2, asr #16 + 80060dc: f840 3b04 str.w r3, [r0], #4 + 80060e0: d2e7 bcs.n 80060b2 + 80060e2: f855 2024 ldr.w r2, [r5, r4, lsl #2] + 80060e6: eb05 0384 add.w r3, r5, r4, lsl #2 + 80060ea: b922 cbnz r2, 80060f6 + 80060ec: 3b04 subs r3, #4 + 80060ee: 429d cmp r5, r3 + 80060f0: 461a mov r2, r3 + 80060f2: d30a bcc.n 800610a + 80060f4: 613c str r4, [r7, #16] + 80060f6: 4630 mov r0, r6 + 80060f8: b003 add sp, #12 + 80060fa: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc} + 80060fe: 6812 ldr r2, [r2, #0] + 8006100: 3b04 subs r3, #4 + 8006102: 2a00 cmp r2, #0 + 8006104: d1cb bne.n 800609e + 8006106: 3c01 subs r4, #1 + 8006108: e7c6 b.n 8006098 + 800610a: 6812 ldr r2, [r2, #0] + 800610c: 3b04 subs r3, #4 + 800610e: 2a00 cmp r2, #0 + 8006110: d1f0 bne.n 80060f4 + 8006112: 3c01 subs r4, #1 + 8006114: e7eb b.n 80060ee + 8006116: 2000 movs r0, #0 + 8006118: e7ee b.n 80060f8 + 800611a: 0000 movs r0, r0 + 800611c: 0000 movs r0, r0 ... -08004dc8 <_dtoa_r>: - 8004dc8: e92d 4ff0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, fp, lr} - 8004dcc: 4616 mov r6, r2 - 8004dce: 461f mov r7, r3 - 8004dd0: 6a44 ldr r4, [r0, #36] ; 0x24 - 8004dd2: b099 sub sp, #100 ; 0x64 - 8004dd4: 4605 mov r5, r0 - 8004dd6: e9cd 6704 strd r6, r7, [sp, #16] - 8004dda: f8dd 8094 ldr.w r8, [sp, #148] ; 0x94 - 8004dde: b974 cbnz r4, 8004dfe <_dtoa_r+0x36> - 8004de0: 2010 movs r0, #16 - 8004de2: f7ff fa1d bl 8004220 - 8004de6: 4602 mov r2, r0 - 8004de8: 6268 str r0, [r5, #36] ; 0x24 - 8004dea: b920 cbnz r0, 8004df6 <_dtoa_r+0x2e> - 8004dec: 21ea movs r1, #234 ; 0xea - 8004dee: 4bae ldr r3, [pc, #696] ; (80050a8 <_dtoa_r+0x2e0>) - 8004df0: 48ae ldr r0, [pc, #696] ; (80050ac <_dtoa_r+0x2e4>) - 8004df2: f001 faef bl 80063d4 <__assert_func> - 8004df6: e9c0 4401 strd r4, r4, [r0, #4] - 8004dfa: 6004 str r4, [r0, #0] - 8004dfc: 60c4 str r4, [r0, #12] - 8004dfe: 6a6b ldr r3, [r5, #36] ; 0x24 - 8004e00: 6819 ldr r1, [r3, #0] - 8004e02: b151 cbz r1, 8004e1a <_dtoa_r+0x52> - 8004e04: 685a ldr r2, [r3, #4] - 8004e06: 2301 movs r3, #1 - 8004e08: 4093 lsls r3, r2 - 8004e0a: 604a str r2, [r1, #4] - 8004e0c: 608b str r3, [r1, #8] - 8004e0e: 4628 mov r0, r5 - 8004e10: f000 fe34 bl 8005a7c <_Bfree> - 8004e14: 2200 movs r2, #0 - 8004e16: 6a6b ldr r3, [r5, #36] ; 0x24 - 8004e18: 601a str r2, [r3, #0] - 8004e1a: 1e3b subs r3, r7, #0 - 8004e1c: bfaf iteee ge - 8004e1e: 2300 movge r3, #0 - 8004e20: 2201 movlt r2, #1 - 8004e22: f023 4300 biclt.w r3, r3, #2147483648 ; 0x80000000 - 8004e26: 9305 strlt r3, [sp, #20] - 8004e28: bfa8 it ge - 8004e2a: f8c8 3000 strge.w r3, [r8] - 8004e2e: f8dd 9014 ldr.w r9, [sp, #20] - 8004e32: 4b9f ldr r3, [pc, #636] ; (80050b0 <_dtoa_r+0x2e8>) - 8004e34: bfb8 it lt - 8004e36: f8c8 2000 strlt.w r2, [r8] - 8004e3a: ea33 0309 bics.w r3, r3, r9 - 8004e3e: d119 bne.n 8004e74 <_dtoa_r+0xac> - 8004e40: f242 730f movw r3, #9999 ; 0x270f - 8004e44: 9a24 ldr r2, [sp, #144] ; 0x90 - 8004e46: 6013 str r3, [r2, #0] - 8004e48: f3c9 0313 ubfx r3, r9, #0, #20 - 8004e4c: 4333 orrs r3, r6 - 8004e4e: f000 8580 beq.w 8005952 <_dtoa_r+0xb8a> - 8004e52: 9b26 ldr r3, [sp, #152] ; 0x98 - 8004e54: b953 cbnz r3, 8004e6c <_dtoa_r+0xa4> - 8004e56: 4b97 ldr r3, [pc, #604] ; (80050b4 <_dtoa_r+0x2ec>) - 8004e58: e022 b.n 8004ea0 <_dtoa_r+0xd8> - 8004e5a: 4b97 ldr r3, [pc, #604] ; (80050b8 <_dtoa_r+0x2f0>) - 8004e5c: 9308 str r3, [sp, #32] - 8004e5e: 3308 adds r3, #8 - 8004e60: 9a26 ldr r2, [sp, #152] ; 0x98 - 8004e62: 6013 str r3, [r2, #0] - 8004e64: 9808 ldr r0, [sp, #32] - 8004e66: b019 add sp, #100 ; 0x64 - 8004e68: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc} - 8004e6c: 4b91 ldr r3, [pc, #580] ; (80050b4 <_dtoa_r+0x2ec>) - 8004e6e: 9308 str r3, [sp, #32] - 8004e70: 3303 adds r3, #3 - 8004e72: e7f5 b.n 8004e60 <_dtoa_r+0x98> - 8004e74: e9dd 3404 ldrd r3, r4, [sp, #16] - 8004e78: e9cd 340c strd r3, r4, [sp, #48] ; 0x30 - 8004e7c: e9dd 010c ldrd r0, r1, [sp, #48] ; 0x30 - 8004e80: 2200 movs r2, #0 - 8004e82: 2300 movs r3, #0 - 8004e84: f7fb fdfc bl 8000a80 <__aeabi_dcmpeq> - 8004e88: 4680 mov r8, r0 - 8004e8a: b158 cbz r0, 8004ea4 <_dtoa_r+0xdc> - 8004e8c: 2301 movs r3, #1 - 8004e8e: 9a24 ldr r2, [sp, #144] ; 0x90 - 8004e90: 6013 str r3, [r2, #0] - 8004e92: 9b26 ldr r3, [sp, #152] ; 0x98 - 8004e94: 2b00 cmp r3, #0 - 8004e96: f000 8559 beq.w 800594c <_dtoa_r+0xb84> - 8004e9a: 4888 ldr r0, [pc, #544] ; (80050bc <_dtoa_r+0x2f4>) - 8004e9c: 6018 str r0, [r3, #0] - 8004e9e: 1e43 subs r3, r0, #1 - 8004ea0: 9308 str r3, [sp, #32] - 8004ea2: e7df b.n 8004e64 <_dtoa_r+0x9c> - 8004ea4: ab16 add r3, sp, #88 ; 0x58 - 8004ea6: 9301 str r3, [sp, #4] - 8004ea8: ab17 add r3, sp, #92 ; 0x5c - 8004eaa: 9300 str r3, [sp, #0] - 8004eac: 4628 mov r0, r5 - 8004eae: e9dd 230c ldrd r2, r3, [sp, #48] ; 0x30 - 8004eb2: f001 f8c9 bl 8006048 <__d2b> - 8004eb6: f3c9 540a ubfx r4, r9, #20, #11 - 8004eba: 4682 mov sl, r0 - 8004ebc: 2c00 cmp r4, #0 - 8004ebe: d07e beq.n 8004fbe <_dtoa_r+0x1f6> - 8004ec0: e9dd 010c ldrd r0, r1, [sp, #48] ; 0x30 - 8004ec4: 9b0d ldr r3, [sp, #52] ; 0x34 - 8004ec6: f2a4 34ff subw r4, r4, #1023 ; 0x3ff - 8004eca: f3c3 0313 ubfx r3, r3, #0, #20 - 8004ece: f043 517f orr.w r1, r3, #1069547520 ; 0x3fc00000 - 8004ed2: f441 1140 orr.w r1, r1, #3145728 ; 0x300000 - 8004ed6: f8cd 804c str.w r8, [sp, #76] ; 0x4c - 8004eda: 2200 movs r2, #0 - 8004edc: 4b78 ldr r3, [pc, #480] ; (80050c0 <_dtoa_r+0x2f8>) - 8004ede: f7fb f9af bl 8000240 <__aeabi_dsub> - 8004ee2: a36b add r3, pc, #428 ; (adr r3, 8005090 <_dtoa_r+0x2c8>) - 8004ee4: e9d3 2300 ldrd r2, r3, [r3] - 8004ee8: f7fb fb62 bl 80005b0 <__aeabi_dmul> - 8004eec: a36a add r3, pc, #424 ; (adr r3, 8005098 <_dtoa_r+0x2d0>) - 8004eee: e9d3 2300 ldrd r2, r3, [r3] - 8004ef2: f7fb f9a7 bl 8000244 <__adddf3> - 8004ef6: 4606 mov r6, r0 - 8004ef8: 4620 mov r0, r4 - 8004efa: 460f mov r7, r1 - 8004efc: f7fb faee bl 80004dc <__aeabi_i2d> - 8004f00: a367 add r3, pc, #412 ; (adr r3, 80050a0 <_dtoa_r+0x2d8>) - 8004f02: e9d3 2300 ldrd r2, r3, [r3] - 8004f06: f7fb fb53 bl 80005b0 <__aeabi_dmul> - 8004f0a: 4602 mov r2, r0 - 8004f0c: 460b mov r3, r1 - 8004f0e: 4630 mov r0, r6 - 8004f10: 4639 mov r1, r7 - 8004f12: f7fb f997 bl 8000244 <__adddf3> - 8004f16: 4606 mov r6, r0 - 8004f18: 460f mov r7, r1 - 8004f1a: f7fb fdf9 bl 8000b10 <__aeabi_d2iz> - 8004f1e: 2200 movs r2, #0 - 8004f20: 4681 mov r9, r0 - 8004f22: 2300 movs r3, #0 - 8004f24: 4630 mov r0, r6 - 8004f26: 4639 mov r1, r7 - 8004f28: f7fb fdb4 bl 8000a94 <__aeabi_dcmplt> - 8004f2c: b148 cbz r0, 8004f42 <_dtoa_r+0x17a> - 8004f2e: 4648 mov r0, r9 - 8004f30: f7fb fad4 bl 80004dc <__aeabi_i2d> - 8004f34: 4632 mov r2, r6 - 8004f36: 463b mov r3, r7 - 8004f38: f7fb fda2 bl 8000a80 <__aeabi_dcmpeq> - 8004f3c: b908 cbnz r0, 8004f42 <_dtoa_r+0x17a> - 8004f3e: f109 39ff add.w r9, r9, #4294967295 ; 0xffffffff - 8004f42: f1b9 0f16 cmp.w r9, #22 - 8004f46: d857 bhi.n 8004ff8 <_dtoa_r+0x230> - 8004f48: e9dd 010c ldrd r0, r1, [sp, #48] ; 0x30 - 8004f4c: 4b5d ldr r3, [pc, #372] ; (80050c4 <_dtoa_r+0x2fc>) - 8004f4e: eb03 03c9 add.w r3, r3, r9, lsl #3 - 8004f52: e9d3 2300 ldrd r2, r3, [r3] - 8004f56: f7fb fd9d bl 8000a94 <__aeabi_dcmplt> - 8004f5a: 2800 cmp r0, #0 - 8004f5c: d04e beq.n 8004ffc <_dtoa_r+0x234> - 8004f5e: 2300 movs r3, #0 - 8004f60: f109 39ff add.w r9, r9, #4294967295 ; 0xffffffff - 8004f64: 930f str r3, [sp, #60] ; 0x3c - 8004f66: 9b16 ldr r3, [sp, #88] ; 0x58 - 8004f68: 1b1c subs r4, r3, r4 - 8004f6a: 1e63 subs r3, r4, #1 - 8004f6c: 9309 str r3, [sp, #36] ; 0x24 - 8004f6e: bf49 itett mi - 8004f70: f1c4 0301 rsbmi r3, r4, #1 - 8004f74: 2300 movpl r3, #0 - 8004f76: 9306 strmi r3, [sp, #24] - 8004f78: 2300 movmi r3, #0 - 8004f7a: bf54 ite pl - 8004f7c: 9306 strpl r3, [sp, #24] - 8004f7e: 9309 strmi r3, [sp, #36] ; 0x24 - 8004f80: f1b9 0f00 cmp.w r9, #0 - 8004f84: db3c blt.n 8005000 <_dtoa_r+0x238> - 8004f86: 9b09 ldr r3, [sp, #36] ; 0x24 - 8004f88: f8cd 9038 str.w r9, [sp, #56] ; 0x38 - 8004f8c: 444b add r3, r9 - 8004f8e: 9309 str r3, [sp, #36] ; 0x24 - 8004f90: 2300 movs r3, #0 - 8004f92: 930a str r3, [sp, #40] ; 0x28 - 8004f94: 9b22 ldr r3, [sp, #136] ; 0x88 - 8004f96: 2b09 cmp r3, #9 - 8004f98: d86c bhi.n 8005074 <_dtoa_r+0x2ac> - 8004f9a: 2b05 cmp r3, #5 - 8004f9c: bfc4 itt gt - 8004f9e: 3b04 subgt r3, #4 - 8004fa0: 9322 strgt r3, [sp, #136] ; 0x88 - 8004fa2: 9b22 ldr r3, [sp, #136] ; 0x88 - 8004fa4: bfc8 it gt - 8004fa6: 2400 movgt r4, #0 - 8004fa8: f1a3 0302 sub.w r3, r3, #2 - 8004fac: bfd8 it le - 8004fae: 2401 movle r4, #1 - 8004fb0: 2b03 cmp r3, #3 - 8004fb2: f200 808b bhi.w 80050cc <_dtoa_r+0x304> - 8004fb6: e8df f003 tbb [pc, r3] - 8004fba: 4f2d .short 0x4f2d - 8004fbc: 5b4d .short 0x5b4d - 8004fbe: e9dd 4316 ldrd r4, r3, [sp, #88] ; 0x58 - 8004fc2: 441c add r4, r3 - 8004fc4: f204 4332 addw r3, r4, #1074 ; 0x432 - 8004fc8: 2b20 cmp r3, #32 - 8004fca: bfc3 ittte gt - 8004fcc: f1c3 0340 rsbgt r3, r3, #64 ; 0x40 - 8004fd0: f204 4012 addwgt r0, r4, #1042 ; 0x412 - 8004fd4: fa09 f303 lslgt.w r3, r9, r3 - 8004fd8: f1c3 0320 rsble r3, r3, #32 - 8004fdc: bfc6 itte gt - 8004fde: fa26 f000 lsrgt.w r0, r6, r0 - 8004fe2: 4318 orrgt r0, r3 - 8004fe4: fa06 f003 lslle.w r0, r6, r3 - 8004fe8: f7fb fa68 bl 80004bc <__aeabi_ui2d> - 8004fec: 2301 movs r3, #1 - 8004fee: f1a1 71f8 sub.w r1, r1, #32505856 ; 0x1f00000 - 8004ff2: 3c01 subs r4, #1 - 8004ff4: 9313 str r3, [sp, #76] ; 0x4c - 8004ff6: e770 b.n 8004eda <_dtoa_r+0x112> - 8004ff8: 2301 movs r3, #1 - 8004ffa: e7b3 b.n 8004f64 <_dtoa_r+0x19c> - 8004ffc: 900f str r0, [sp, #60] ; 0x3c - 8004ffe: e7b2 b.n 8004f66 <_dtoa_r+0x19e> - 8005000: 9b06 ldr r3, [sp, #24] - 8005002: eba3 0309 sub.w r3, r3, r9 - 8005006: 9306 str r3, [sp, #24] - 8005008: f1c9 0300 rsb r3, r9, #0 - 800500c: 930a str r3, [sp, #40] ; 0x28 - 800500e: 2300 movs r3, #0 - 8005010: 930e str r3, [sp, #56] ; 0x38 - 8005012: e7bf b.n 8004f94 <_dtoa_r+0x1cc> - 8005014: 2300 movs r3, #0 - 8005016: 930b str r3, [sp, #44] ; 0x2c - 8005018: 9b23 ldr r3, [sp, #140] ; 0x8c - 800501a: 2b00 cmp r3, #0 - 800501c: dc59 bgt.n 80050d2 <_dtoa_r+0x30a> - 800501e: f04f 0b01 mov.w fp, #1 - 8005022: 465b mov r3, fp - 8005024: f8cd b008 str.w fp, [sp, #8] - 8005028: f8cd b08c str.w fp, [sp, #140] ; 0x8c - 800502c: 2200 movs r2, #0 - 800502e: 6a68 ldr r0, [r5, #36] ; 0x24 - 8005030: 6042 str r2, [r0, #4] - 8005032: 2204 movs r2, #4 - 8005034: f102 0614 add.w r6, r2, #20 - 8005038: 429e cmp r6, r3 - 800503a: 6841 ldr r1, [r0, #4] - 800503c: d94f bls.n 80050de <_dtoa_r+0x316> - 800503e: 4628 mov r0, r5 - 8005040: f000 fcdc bl 80059fc <_Balloc> - 8005044: 9008 str r0, [sp, #32] - 8005046: 2800 cmp r0, #0 - 8005048: d14d bne.n 80050e6 <_dtoa_r+0x31e> - 800504a: 4602 mov r2, r0 - 800504c: f44f 71d5 mov.w r1, #426 ; 0x1aa - 8005050: 4b1d ldr r3, [pc, #116] ; (80050c8 <_dtoa_r+0x300>) - 8005052: e6cd b.n 8004df0 <_dtoa_r+0x28> - 8005054: 2301 movs r3, #1 - 8005056: e7de b.n 8005016 <_dtoa_r+0x24e> - 8005058: 2300 movs r3, #0 - 800505a: 930b str r3, [sp, #44] ; 0x2c - 800505c: 9b23 ldr r3, [sp, #140] ; 0x8c - 800505e: eb09 0b03 add.w fp, r9, r3 - 8005062: f10b 0301 add.w r3, fp, #1 - 8005066: 2b01 cmp r3, #1 - 8005068: 9302 str r3, [sp, #8] - 800506a: bfb8 it lt - 800506c: 2301 movlt r3, #1 - 800506e: e7dd b.n 800502c <_dtoa_r+0x264> - 8005070: 2301 movs r3, #1 - 8005072: e7f2 b.n 800505a <_dtoa_r+0x292> - 8005074: 2401 movs r4, #1 - 8005076: 2300 movs r3, #0 - 8005078: 940b str r4, [sp, #44] ; 0x2c - 800507a: 9322 str r3, [sp, #136] ; 0x88 - 800507c: f04f 3bff mov.w fp, #4294967295 ; 0xffffffff - 8005080: 2200 movs r2, #0 - 8005082: 2312 movs r3, #18 - 8005084: f8cd b008 str.w fp, [sp, #8] - 8005088: 9223 str r2, [sp, #140] ; 0x8c - 800508a: e7cf b.n 800502c <_dtoa_r+0x264> - 800508c: f3af 8000 nop.w - 8005090: 636f4361 .word 0x636f4361 - 8005094: 3fd287a7 .word 0x3fd287a7 - 8005098: 8b60c8b3 .word 0x8b60c8b3 - 800509c: 3fc68a28 .word 0x3fc68a28 - 80050a0: 509f79fb .word 0x509f79fb - 80050a4: 3fd34413 .word 0x3fd34413 - 80050a8: 08007b19 .word 0x08007b19 - 80050ac: 08007b30 .word 0x08007b30 - 80050b0: 7ff00000 .word 0x7ff00000 - 80050b4: 08007b15 .word 0x08007b15 - 80050b8: 08007b0c .word 0x08007b0c - 80050bc: 08007ae9 .word 0x08007ae9 - 80050c0: 3ff80000 .word 0x3ff80000 - 80050c4: 08007c28 .word 0x08007c28 - 80050c8: 08007b8f .word 0x08007b8f - 80050cc: 2301 movs r3, #1 - 80050ce: 930b str r3, [sp, #44] ; 0x2c - 80050d0: e7d4 b.n 800507c <_dtoa_r+0x2b4> - 80050d2: f8dd b08c ldr.w fp, [sp, #140] ; 0x8c - 80050d6: 465b mov r3, fp - 80050d8: f8cd b008 str.w fp, [sp, #8] - 80050dc: e7a6 b.n 800502c <_dtoa_r+0x264> - 80050de: 3101 adds r1, #1 - 80050e0: 6041 str r1, [r0, #4] - 80050e2: 0052 lsls r2, r2, #1 - 80050e4: e7a6 b.n 8005034 <_dtoa_r+0x26c> - 80050e6: 6a6b ldr r3, [r5, #36] ; 0x24 - 80050e8: 9a08 ldr r2, [sp, #32] - 80050ea: 601a str r2, [r3, #0] - 80050ec: 9b02 ldr r3, [sp, #8] - 80050ee: 2b0e cmp r3, #14 - 80050f0: f200 80a8 bhi.w 8005244 <_dtoa_r+0x47c> - 80050f4: 2c00 cmp r4, #0 - 80050f6: f000 80a5 beq.w 8005244 <_dtoa_r+0x47c> - 80050fa: f1b9 0f00 cmp.w r9, #0 - 80050fe: dd34 ble.n 800516a <_dtoa_r+0x3a2> - 8005100: 4a9a ldr r2, [pc, #616] ; (800536c <_dtoa_r+0x5a4>) - 8005102: f009 030f and.w r3, r9, #15 - 8005106: eb02 03c3 add.w r3, r2, r3, lsl #3 - 800510a: f419 7f80 tst.w r9, #256 ; 0x100 - 800510e: e9d3 3400 ldrd r3, r4, [r3] - 8005112: e9cd 3410 strd r3, r4, [sp, #64] ; 0x40 - 8005116: ea4f 1429 mov.w r4, r9, asr #4 - 800511a: d016 beq.n 800514a <_dtoa_r+0x382> - 800511c: e9dd 010c ldrd r0, r1, [sp, #48] ; 0x30 - 8005120: 4b93 ldr r3, [pc, #588] ; (8005370 <_dtoa_r+0x5a8>) - 8005122: 2703 movs r7, #3 - 8005124: e9d3 2308 ldrd r2, r3, [r3, #32] - 8005128: f7fb fb6c bl 8000804 <__aeabi_ddiv> - 800512c: e9cd 0104 strd r0, r1, [sp, #16] - 8005130: f004 040f and.w r4, r4, #15 - 8005134: 4e8e ldr r6, [pc, #568] ; (8005370 <_dtoa_r+0x5a8>) - 8005136: b954 cbnz r4, 800514e <_dtoa_r+0x386> - 8005138: e9dd 2310 ldrd r2, r3, [sp, #64] ; 0x40 - 800513c: e9dd 0104 ldrd r0, r1, [sp, #16] - 8005140: f7fb fb60 bl 8000804 <__aeabi_ddiv> - 8005144: e9cd 0104 strd r0, r1, [sp, #16] - 8005148: e029 b.n 800519e <_dtoa_r+0x3d6> - 800514a: 2702 movs r7, #2 - 800514c: e7f2 b.n 8005134 <_dtoa_r+0x36c> - 800514e: 07e1 lsls r1, r4, #31 - 8005150: d508 bpl.n 8005164 <_dtoa_r+0x39c> - 8005152: e9dd 0110 ldrd r0, r1, [sp, #64] ; 0x40 - 8005156: e9d6 2300 ldrd r2, r3, [r6] - 800515a: f7fb fa29 bl 80005b0 <__aeabi_dmul> - 800515e: e9cd 0110 strd r0, r1, [sp, #64] ; 0x40 - 8005162: 3701 adds r7, #1 - 8005164: 1064 asrs r4, r4, #1 - 8005166: 3608 adds r6, #8 - 8005168: e7e5 b.n 8005136 <_dtoa_r+0x36e> - 800516a: f000 80a5 beq.w 80052b8 <_dtoa_r+0x4f0> - 800516e: e9dd 010c ldrd r0, r1, [sp, #48] ; 0x30 - 8005172: f1c9 0400 rsb r4, r9, #0 - 8005176: 4b7d ldr r3, [pc, #500] ; (800536c <_dtoa_r+0x5a4>) - 8005178: f004 020f and.w r2, r4, #15 - 800517c: eb03 03c2 add.w r3, r3, r2, lsl #3 - 8005180: e9d3 2300 ldrd r2, r3, [r3] - 8005184: f7fb fa14 bl 80005b0 <__aeabi_dmul> - 8005188: 2702 movs r7, #2 - 800518a: 2300 movs r3, #0 - 800518c: e9cd 0104 strd r0, r1, [sp, #16] - 8005190: 4e77 ldr r6, [pc, #476] ; (8005370 <_dtoa_r+0x5a8>) - 8005192: 1124 asrs r4, r4, #4 - 8005194: 2c00 cmp r4, #0 - 8005196: f040 8084 bne.w 80052a2 <_dtoa_r+0x4da> - 800519a: 2b00 cmp r3, #0 - 800519c: d1d2 bne.n 8005144 <_dtoa_r+0x37c> - 800519e: 9b0f ldr r3, [sp, #60] ; 0x3c - 80051a0: 2b00 cmp r3, #0 - 80051a2: f000 808b beq.w 80052bc <_dtoa_r+0x4f4> - 80051a6: e9dd 3404 ldrd r3, r4, [sp, #16] - 80051aa: e9cd 3410 strd r3, r4, [sp, #64] ; 0x40 - 80051ae: e9dd 0110 ldrd r0, r1, [sp, #64] ; 0x40 - 80051b2: 2200 movs r2, #0 - 80051b4: 4b6f ldr r3, [pc, #444] ; (8005374 <_dtoa_r+0x5ac>) - 80051b6: f7fb fc6d bl 8000a94 <__aeabi_dcmplt> - 80051ba: 2800 cmp r0, #0 - 80051bc: d07e beq.n 80052bc <_dtoa_r+0x4f4> - 80051be: 9b02 ldr r3, [sp, #8] - 80051c0: 2b00 cmp r3, #0 - 80051c2: d07b beq.n 80052bc <_dtoa_r+0x4f4> - 80051c4: f1bb 0f00 cmp.w fp, #0 - 80051c8: dd38 ble.n 800523c <_dtoa_r+0x474> - 80051ca: e9dd 0110 ldrd r0, r1, [sp, #64] ; 0x40 - 80051ce: 2200 movs r2, #0 - 80051d0: 4b69 ldr r3, [pc, #420] ; (8005378 <_dtoa_r+0x5b0>) - 80051d2: f7fb f9ed bl 80005b0 <__aeabi_dmul> - 80051d6: 465c mov r4, fp - 80051d8: e9cd 0104 strd r0, r1, [sp, #16] - 80051dc: f109 38ff add.w r8, r9, #4294967295 ; 0xffffffff - 80051e0: 3701 adds r7, #1 - 80051e2: 4638 mov r0, r7 - 80051e4: f7fb f97a bl 80004dc <__aeabi_i2d> - 80051e8: e9dd 2304 ldrd r2, r3, [sp, #16] - 80051ec: f7fb f9e0 bl 80005b0 <__aeabi_dmul> - 80051f0: 2200 movs r2, #0 - 80051f2: 4b62 ldr r3, [pc, #392] ; (800537c <_dtoa_r+0x5b4>) - 80051f4: f7fb f826 bl 8000244 <__adddf3> - 80051f8: f1a1 7650 sub.w r6, r1, #54525952 ; 0x3400000 - 80051fc: e9cd 0110 strd r0, r1, [sp, #64] ; 0x40 - 8005200: 9611 str r6, [sp, #68] ; 0x44 - 8005202: 2c00 cmp r4, #0 - 8005204: d15d bne.n 80052c2 <_dtoa_r+0x4fa> - 8005206: e9dd 0104 ldrd r0, r1, [sp, #16] - 800520a: 2200 movs r2, #0 - 800520c: 4b5c ldr r3, [pc, #368] ; (8005380 <_dtoa_r+0x5b8>) - 800520e: f7fb f817 bl 8000240 <__aeabi_dsub> - 8005212: 4602 mov r2, r0 - 8005214: 460b mov r3, r1 - 8005216: e9cd 2304 strd r2, r3, [sp, #16] - 800521a: 4633 mov r3, r6 - 800521c: 9a10 ldr r2, [sp, #64] ; 0x40 - 800521e: f7fb fc57 bl 8000ad0 <__aeabi_dcmpgt> - 8005222: 2800 cmp r0, #0 - 8005224: f040 829e bne.w 8005764 <_dtoa_r+0x99c> - 8005228: e9dd 0104 ldrd r0, r1, [sp, #16] - 800522c: 9a10 ldr r2, [sp, #64] ; 0x40 - 800522e: f106 4300 add.w r3, r6, #2147483648 ; 0x80000000 - 8005232: f7fb fc2f bl 8000a94 <__aeabi_dcmplt> - 8005236: 2800 cmp r0, #0 - 8005238: f040 8292 bne.w 8005760 <_dtoa_r+0x998> - 800523c: e9dd 340c ldrd r3, r4, [sp, #48] ; 0x30 - 8005240: e9cd 3404 strd r3, r4, [sp, #16] - 8005244: 9b17 ldr r3, [sp, #92] ; 0x5c - 8005246: 2b00 cmp r3, #0 - 8005248: f2c0 8153 blt.w 80054f2 <_dtoa_r+0x72a> - 800524c: f1b9 0f0e cmp.w r9, #14 - 8005250: f300 814f bgt.w 80054f2 <_dtoa_r+0x72a> - 8005254: 4b45 ldr r3, [pc, #276] ; (800536c <_dtoa_r+0x5a4>) - 8005256: eb03 03c9 add.w r3, r3, r9, lsl #3 - 800525a: e9d3 3400 ldrd r3, r4, [r3] - 800525e: e9cd 3406 strd r3, r4, [sp, #24] - 8005262: 9b23 ldr r3, [sp, #140] ; 0x8c - 8005264: 2b00 cmp r3, #0 - 8005266: f280 80db bge.w 8005420 <_dtoa_r+0x658> - 800526a: 9b02 ldr r3, [sp, #8] - 800526c: 2b00 cmp r3, #0 - 800526e: f300 80d7 bgt.w 8005420 <_dtoa_r+0x658> - 8005272: f040 8274 bne.w 800575e <_dtoa_r+0x996> - 8005276: e9dd 0106 ldrd r0, r1, [sp, #24] - 800527a: 2200 movs r2, #0 - 800527c: 4b40 ldr r3, [pc, #256] ; (8005380 <_dtoa_r+0x5b8>) - 800527e: f7fb f997 bl 80005b0 <__aeabi_dmul> - 8005282: e9dd 2304 ldrd r2, r3, [sp, #16] - 8005286: f7fb fc19 bl 8000abc <__aeabi_dcmpge> - 800528a: 9c02 ldr r4, [sp, #8] - 800528c: 4626 mov r6, r4 - 800528e: 2800 cmp r0, #0 - 8005290: f040 824a bne.w 8005728 <_dtoa_r+0x960> - 8005294: 2331 movs r3, #49 ; 0x31 - 8005296: 9f08 ldr r7, [sp, #32] - 8005298: f109 0901 add.w r9, r9, #1 - 800529c: f807 3b01 strb.w r3, [r7], #1 - 80052a0: e246 b.n 8005730 <_dtoa_r+0x968> - 80052a2: 07e2 lsls r2, r4, #31 - 80052a4: d505 bpl.n 80052b2 <_dtoa_r+0x4ea> - 80052a6: e9d6 2300 ldrd r2, r3, [r6] - 80052aa: f7fb f981 bl 80005b0 <__aeabi_dmul> - 80052ae: 2301 movs r3, #1 - 80052b0: 3701 adds r7, #1 - 80052b2: 1064 asrs r4, r4, #1 - 80052b4: 3608 adds r6, #8 - 80052b6: e76d b.n 8005194 <_dtoa_r+0x3cc> - 80052b8: 2702 movs r7, #2 - 80052ba: e770 b.n 800519e <_dtoa_r+0x3d6> - 80052bc: 46c8 mov r8, r9 - 80052be: 9c02 ldr r4, [sp, #8] - 80052c0: e78f b.n 80051e2 <_dtoa_r+0x41a> - 80052c2: 9908 ldr r1, [sp, #32] - 80052c4: 4b29 ldr r3, [pc, #164] ; (800536c <_dtoa_r+0x5a4>) - 80052c6: 4421 add r1, r4 - 80052c8: 9112 str r1, [sp, #72] ; 0x48 - 80052ca: 990b ldr r1, [sp, #44] ; 0x2c - 80052cc: eb03 03c4 add.w r3, r3, r4, lsl #3 - 80052d0: e9dd 6710 ldrd r6, r7, [sp, #64] ; 0x40 - 80052d4: e953 2302 ldrd r2, r3, [r3, #-8] - 80052d8: 2900 cmp r1, #0 - 80052da: d055 beq.n 8005388 <_dtoa_r+0x5c0> - 80052dc: 2000 movs r0, #0 - 80052de: 4929 ldr r1, [pc, #164] ; (8005384 <_dtoa_r+0x5bc>) - 80052e0: f7fb fa90 bl 8000804 <__aeabi_ddiv> - 80052e4: 463b mov r3, r7 - 80052e6: 4632 mov r2, r6 - 80052e8: f7fa ffaa bl 8000240 <__aeabi_dsub> - 80052ec: e9cd 0110 strd r0, r1, [sp, #64] ; 0x40 - 80052f0: 9f08 ldr r7, [sp, #32] - 80052f2: e9dd 0104 ldrd r0, r1, [sp, #16] - 80052f6: f7fb fc0b bl 8000b10 <__aeabi_d2iz> - 80052fa: 4604 mov r4, r0 - 80052fc: f7fb f8ee bl 80004dc <__aeabi_i2d> - 8005300: 4602 mov r2, r0 - 8005302: 460b mov r3, r1 - 8005304: e9dd 0104 ldrd r0, r1, [sp, #16] - 8005308: f7fa ff9a bl 8000240 <__aeabi_dsub> - 800530c: 4602 mov r2, r0 - 800530e: 460b mov r3, r1 - 8005310: 3430 adds r4, #48 ; 0x30 - 8005312: e9cd 2304 strd r2, r3, [sp, #16] - 8005316: e9dd 2310 ldrd r2, r3, [sp, #64] ; 0x40 - 800531a: f807 4b01 strb.w r4, [r7], #1 - 800531e: f7fb fbb9 bl 8000a94 <__aeabi_dcmplt> - 8005322: 2800 cmp r0, #0 - 8005324: d174 bne.n 8005410 <_dtoa_r+0x648> - 8005326: e9dd 2304 ldrd r2, r3, [sp, #16] - 800532a: 2000 movs r0, #0 - 800532c: 4911 ldr r1, [pc, #68] ; (8005374 <_dtoa_r+0x5ac>) - 800532e: f7fa ff87 bl 8000240 <__aeabi_dsub> - 8005332: e9dd 2310 ldrd r2, r3, [sp, #64] ; 0x40 - 8005336: f7fb fbad bl 8000a94 <__aeabi_dcmplt> - 800533a: 2800 cmp r0, #0 - 800533c: f040 80b6 bne.w 80054ac <_dtoa_r+0x6e4> - 8005340: 9b12 ldr r3, [sp, #72] ; 0x48 - 8005342: 429f cmp r7, r3 - 8005344: f43f af7a beq.w 800523c <_dtoa_r+0x474> - 8005348: e9dd 0110 ldrd r0, r1, [sp, #64] ; 0x40 - 800534c: 2200 movs r2, #0 - 800534e: 4b0a ldr r3, [pc, #40] ; (8005378 <_dtoa_r+0x5b0>) - 8005350: f7fb f92e bl 80005b0 <__aeabi_dmul> - 8005354: 2200 movs r2, #0 - 8005356: e9cd 0110 strd r0, r1, [sp, #64] ; 0x40 - 800535a: e9dd 0104 ldrd r0, r1, [sp, #16] - 800535e: 4b06 ldr r3, [pc, #24] ; (8005378 <_dtoa_r+0x5b0>) - 8005360: f7fb f926 bl 80005b0 <__aeabi_dmul> - 8005364: e9cd 0104 strd r0, r1, [sp, #16] - 8005368: e7c3 b.n 80052f2 <_dtoa_r+0x52a> - 800536a: bf00 nop - 800536c: 08007c28 .word 0x08007c28 - 8005370: 08007c00 .word 0x08007c00 - 8005374: 3ff00000 .word 0x3ff00000 - 8005378: 40240000 .word 0x40240000 - 800537c: 401c0000 .word 0x401c0000 - 8005380: 40140000 .word 0x40140000 - 8005384: 3fe00000 .word 0x3fe00000 - 8005388: 4630 mov r0, r6 - 800538a: 4639 mov r1, r7 - 800538c: f7fb f910 bl 80005b0 <__aeabi_dmul> - 8005390: 9b12 ldr r3, [sp, #72] ; 0x48 - 8005392: e9cd 0110 strd r0, r1, [sp, #64] ; 0x40 - 8005396: 9c08 ldr r4, [sp, #32] - 8005398: 9314 str r3, [sp, #80] ; 0x50 - 800539a: e9dd 0104 ldrd r0, r1, [sp, #16] - 800539e: f7fb fbb7 bl 8000b10 <__aeabi_d2iz> - 80053a2: 9015 str r0, [sp, #84] ; 0x54 - 80053a4: f7fb f89a bl 80004dc <__aeabi_i2d> - 80053a8: 4602 mov r2, r0 - 80053aa: 460b mov r3, r1 - 80053ac: e9dd 0104 ldrd r0, r1, [sp, #16] - 80053b0: f7fa ff46 bl 8000240 <__aeabi_dsub> - 80053b4: 9b15 ldr r3, [sp, #84] ; 0x54 - 80053b6: 4606 mov r6, r0 - 80053b8: 3330 adds r3, #48 ; 0x30 - 80053ba: f804 3b01 strb.w r3, [r4], #1 - 80053be: 9b12 ldr r3, [sp, #72] ; 0x48 - 80053c0: 460f mov r7, r1 - 80053c2: 429c cmp r4, r3 - 80053c4: f04f 0200 mov.w r2, #0 - 80053c8: d124 bne.n 8005414 <_dtoa_r+0x64c> - 80053ca: e9dd 0110 ldrd r0, r1, [sp, #64] ; 0x40 - 80053ce: 4bb3 ldr r3, [pc, #716] ; (800569c <_dtoa_r+0x8d4>) - 80053d0: f7fa ff38 bl 8000244 <__adddf3> - 80053d4: 4602 mov r2, r0 - 80053d6: 460b mov r3, r1 - 80053d8: 4630 mov r0, r6 - 80053da: 4639 mov r1, r7 - 80053dc: f7fb fb78 bl 8000ad0 <__aeabi_dcmpgt> - 80053e0: 2800 cmp r0, #0 - 80053e2: d162 bne.n 80054aa <_dtoa_r+0x6e2> - 80053e4: e9dd 2310 ldrd r2, r3, [sp, #64] ; 0x40 - 80053e8: 2000 movs r0, #0 - 80053ea: 49ac ldr r1, [pc, #688] ; (800569c <_dtoa_r+0x8d4>) - 80053ec: f7fa ff28 bl 8000240 <__aeabi_dsub> - 80053f0: 4602 mov r2, r0 - 80053f2: 460b mov r3, r1 - 80053f4: 4630 mov r0, r6 - 80053f6: 4639 mov r1, r7 - 80053f8: f7fb fb4c bl 8000a94 <__aeabi_dcmplt> - 80053fc: 2800 cmp r0, #0 - 80053fe: f43f af1d beq.w 800523c <_dtoa_r+0x474> - 8005402: 9f14 ldr r7, [sp, #80] ; 0x50 - 8005404: 1e7b subs r3, r7, #1 - 8005406: 9314 str r3, [sp, #80] ; 0x50 - 8005408: f817 3c01 ldrb.w r3, [r7, #-1] - 800540c: 2b30 cmp r3, #48 ; 0x30 - 800540e: d0f8 beq.n 8005402 <_dtoa_r+0x63a> - 8005410: 46c1 mov r9, r8 - 8005412: e03a b.n 800548a <_dtoa_r+0x6c2> - 8005414: 4ba2 ldr r3, [pc, #648] ; (80056a0 <_dtoa_r+0x8d8>) - 8005416: f7fb f8cb bl 80005b0 <__aeabi_dmul> - 800541a: e9cd 0104 strd r0, r1, [sp, #16] - 800541e: e7bc b.n 800539a <_dtoa_r+0x5d2> - 8005420: 9f08 ldr r7, [sp, #32] - 8005422: e9dd 2306 ldrd r2, r3, [sp, #24] - 8005426: e9dd 0104 ldrd r0, r1, [sp, #16] - 800542a: f7fb f9eb bl 8000804 <__aeabi_ddiv> - 800542e: f7fb fb6f bl 8000b10 <__aeabi_d2iz> - 8005432: 4604 mov r4, r0 - 8005434: f7fb f852 bl 80004dc <__aeabi_i2d> - 8005438: e9dd 2306 ldrd r2, r3, [sp, #24] - 800543c: f7fb f8b8 bl 80005b0 <__aeabi_dmul> - 8005440: f104 0630 add.w r6, r4, #48 ; 0x30 - 8005444: 460b mov r3, r1 - 8005446: 4602 mov r2, r0 - 8005448: e9dd 0104 ldrd r0, r1, [sp, #16] - 800544c: f7fa fef8 bl 8000240 <__aeabi_dsub> - 8005450: f807 6b01 strb.w r6, [r7], #1 - 8005454: 9e08 ldr r6, [sp, #32] - 8005456: 9b02 ldr r3, [sp, #8] - 8005458: 1bbe subs r6, r7, r6 - 800545a: 42b3 cmp r3, r6 - 800545c: d13a bne.n 80054d4 <_dtoa_r+0x70c> - 800545e: 4602 mov r2, r0 - 8005460: 460b mov r3, r1 - 8005462: f7fa feef bl 8000244 <__adddf3> - 8005466: 4602 mov r2, r0 - 8005468: 460b mov r3, r1 - 800546a: e9cd 2302 strd r2, r3, [sp, #8] - 800546e: e9dd 2306 ldrd r2, r3, [sp, #24] - 8005472: f7fb fb2d bl 8000ad0 <__aeabi_dcmpgt> - 8005476: bb58 cbnz r0, 80054d0 <_dtoa_r+0x708> - 8005478: e9dd 2306 ldrd r2, r3, [sp, #24] - 800547c: e9dd 0102 ldrd r0, r1, [sp, #8] - 8005480: f7fb fafe bl 8000a80 <__aeabi_dcmpeq> - 8005484: b108 cbz r0, 800548a <_dtoa_r+0x6c2> - 8005486: 07e1 lsls r1, r4, #31 - 8005488: d422 bmi.n 80054d0 <_dtoa_r+0x708> - 800548a: 4628 mov r0, r5 - 800548c: 4651 mov r1, sl - 800548e: f000 faf5 bl 8005a7c <_Bfree> - 8005492: 2300 movs r3, #0 - 8005494: 703b strb r3, [r7, #0] - 8005496: 9b24 ldr r3, [sp, #144] ; 0x90 - 8005498: f109 0001 add.w r0, r9, #1 - 800549c: 6018 str r0, [r3, #0] - 800549e: 9b26 ldr r3, [sp, #152] ; 0x98 - 80054a0: 2b00 cmp r3, #0 - 80054a2: f43f acdf beq.w 8004e64 <_dtoa_r+0x9c> - 80054a6: 601f str r7, [r3, #0] - 80054a8: e4dc b.n 8004e64 <_dtoa_r+0x9c> - 80054aa: 4627 mov r7, r4 - 80054ac: 463b mov r3, r7 - 80054ae: 461f mov r7, r3 - 80054b0: f813 2d01 ldrb.w r2, [r3, #-1]! - 80054b4: 2a39 cmp r2, #57 ; 0x39 - 80054b6: d107 bne.n 80054c8 <_dtoa_r+0x700> - 80054b8: 9a08 ldr r2, [sp, #32] - 80054ba: 429a cmp r2, r3 - 80054bc: d1f7 bne.n 80054ae <_dtoa_r+0x6e6> - 80054be: 2230 movs r2, #48 ; 0x30 - 80054c0: 9908 ldr r1, [sp, #32] - 80054c2: f108 0801 add.w r8, r8, #1 - 80054c6: 700a strb r2, [r1, #0] - 80054c8: 781a ldrb r2, [r3, #0] - 80054ca: 3201 adds r2, #1 - 80054cc: 701a strb r2, [r3, #0] - 80054ce: e79f b.n 8005410 <_dtoa_r+0x648> - 80054d0: 46c8 mov r8, r9 - 80054d2: e7eb b.n 80054ac <_dtoa_r+0x6e4> - 80054d4: 2200 movs r2, #0 - 80054d6: 4b72 ldr r3, [pc, #456] ; (80056a0 <_dtoa_r+0x8d8>) - 80054d8: f7fb f86a bl 80005b0 <__aeabi_dmul> - 80054dc: 4602 mov r2, r0 - 80054de: 460b mov r3, r1 - 80054e0: e9cd 2304 strd r2, r3, [sp, #16] - 80054e4: 2200 movs r2, #0 - 80054e6: 2300 movs r3, #0 - 80054e8: f7fb faca bl 8000a80 <__aeabi_dcmpeq> - 80054ec: 2800 cmp r0, #0 - 80054ee: d098 beq.n 8005422 <_dtoa_r+0x65a> - 80054f0: e7cb b.n 800548a <_dtoa_r+0x6c2> - 80054f2: 9a0b ldr r2, [sp, #44] ; 0x2c - 80054f4: 2a00 cmp r2, #0 - 80054f6: f000 80cd beq.w 8005694 <_dtoa_r+0x8cc> - 80054fa: 9a22 ldr r2, [sp, #136] ; 0x88 - 80054fc: 2a01 cmp r2, #1 - 80054fe: f300 80af bgt.w 8005660 <_dtoa_r+0x898> - 8005502: 9a13 ldr r2, [sp, #76] ; 0x4c - 8005504: 2a00 cmp r2, #0 - 8005506: f000 80a7 beq.w 8005658 <_dtoa_r+0x890> - 800550a: f203 4333 addw r3, r3, #1075 ; 0x433 - 800550e: 9c0a ldr r4, [sp, #40] ; 0x28 - 8005510: 9f06 ldr r7, [sp, #24] - 8005512: 9a06 ldr r2, [sp, #24] - 8005514: 2101 movs r1, #1 - 8005516: 441a add r2, r3 - 8005518: 9206 str r2, [sp, #24] - 800551a: 9a09 ldr r2, [sp, #36] ; 0x24 - 800551c: 4628 mov r0, r5 - 800551e: 441a add r2, r3 - 8005520: 9209 str r2, [sp, #36] ; 0x24 - 8005522: f000 fb65 bl 8005bf0 <__i2b> - 8005526: 4606 mov r6, r0 - 8005528: 2f00 cmp r7, #0 - 800552a: dd0c ble.n 8005546 <_dtoa_r+0x77e> - 800552c: 9b09 ldr r3, [sp, #36] ; 0x24 - 800552e: 2b00 cmp r3, #0 - 8005530: dd09 ble.n 8005546 <_dtoa_r+0x77e> - 8005532: 42bb cmp r3, r7 - 8005534: bfa8 it ge - 8005536: 463b movge r3, r7 - 8005538: 9a06 ldr r2, [sp, #24] - 800553a: 1aff subs r7, r7, r3 - 800553c: 1ad2 subs r2, r2, r3 - 800553e: 9206 str r2, [sp, #24] - 8005540: 9a09 ldr r2, [sp, #36] ; 0x24 - 8005542: 1ad3 subs r3, r2, r3 - 8005544: 9309 str r3, [sp, #36] ; 0x24 - 8005546: 9b0a ldr r3, [sp, #40] ; 0x28 - 8005548: b1f3 cbz r3, 8005588 <_dtoa_r+0x7c0> - 800554a: 9b0b ldr r3, [sp, #44] ; 0x2c - 800554c: 2b00 cmp r3, #0 - 800554e: f000 80a9 beq.w 80056a4 <_dtoa_r+0x8dc> - 8005552: 2c00 cmp r4, #0 - 8005554: dd10 ble.n 8005578 <_dtoa_r+0x7b0> - 8005556: 4631 mov r1, r6 - 8005558: 4622 mov r2, r4 - 800555a: 4628 mov r0, r5 - 800555c: f000 fc02 bl 8005d64 <__pow5mult> - 8005560: 4652 mov r2, sl - 8005562: 4601 mov r1, r0 - 8005564: 4606 mov r6, r0 - 8005566: 4628 mov r0, r5 - 8005568: f000 fb58 bl 8005c1c <__multiply> - 800556c: 4680 mov r8, r0 - 800556e: 4651 mov r1, sl - 8005570: 4628 mov r0, r5 - 8005572: f000 fa83 bl 8005a7c <_Bfree> - 8005576: 46c2 mov sl, r8 - 8005578: 9b0a ldr r3, [sp, #40] ; 0x28 - 800557a: 1b1a subs r2, r3, r4 - 800557c: d004 beq.n 8005588 <_dtoa_r+0x7c0> - 800557e: 4651 mov r1, sl - 8005580: 4628 mov r0, r5 - 8005582: f000 fbef bl 8005d64 <__pow5mult> - 8005586: 4682 mov sl, r0 - 8005588: 2101 movs r1, #1 - 800558a: 4628 mov r0, r5 - 800558c: f000 fb30 bl 8005bf0 <__i2b> - 8005590: 9b0e ldr r3, [sp, #56] ; 0x38 - 8005592: 4604 mov r4, r0 - 8005594: 2b00 cmp r3, #0 - 8005596: f340 8087 ble.w 80056a8 <_dtoa_r+0x8e0> - 800559a: 461a mov r2, r3 - 800559c: 4601 mov r1, r0 - 800559e: 4628 mov r0, r5 - 80055a0: f000 fbe0 bl 8005d64 <__pow5mult> - 80055a4: 9b22 ldr r3, [sp, #136] ; 0x88 - 80055a6: 4604 mov r4, r0 - 80055a8: 2b01 cmp r3, #1 - 80055aa: f340 8080 ble.w 80056ae <_dtoa_r+0x8e6> - 80055ae: f04f 0800 mov.w r8, #0 - 80055b2: 6923 ldr r3, [r4, #16] - 80055b4: eb04 0383 add.w r3, r4, r3, lsl #2 - 80055b8: 6918 ldr r0, [r3, #16] - 80055ba: f000 facb bl 8005b54 <__hi0bits> - 80055be: f1c0 0020 rsb r0, r0, #32 - 80055c2: 9b09 ldr r3, [sp, #36] ; 0x24 - 80055c4: 4418 add r0, r3 - 80055c6: f010 001f ands.w r0, r0, #31 - 80055ca: f000 8092 beq.w 80056f2 <_dtoa_r+0x92a> - 80055ce: f1c0 0320 rsb r3, r0, #32 - 80055d2: 2b04 cmp r3, #4 - 80055d4: f340 808a ble.w 80056ec <_dtoa_r+0x924> - 80055d8: f1c0 001c rsb r0, r0, #28 - 80055dc: 9b06 ldr r3, [sp, #24] - 80055de: 4407 add r7, r0 - 80055e0: 4403 add r3, r0 - 80055e2: 9306 str r3, [sp, #24] - 80055e4: 9b09 ldr r3, [sp, #36] ; 0x24 - 80055e6: 4403 add r3, r0 - 80055e8: 9309 str r3, [sp, #36] ; 0x24 - 80055ea: 9b06 ldr r3, [sp, #24] - 80055ec: 2b00 cmp r3, #0 - 80055ee: dd05 ble.n 80055fc <_dtoa_r+0x834> - 80055f0: 4651 mov r1, sl - 80055f2: 461a mov r2, r3 - 80055f4: 4628 mov r0, r5 - 80055f6: f000 fc0f bl 8005e18 <__lshift> - 80055fa: 4682 mov sl, r0 - 80055fc: 9b09 ldr r3, [sp, #36] ; 0x24 - 80055fe: 2b00 cmp r3, #0 - 8005600: dd05 ble.n 800560e <_dtoa_r+0x846> - 8005602: 4621 mov r1, r4 - 8005604: 461a mov r2, r3 - 8005606: 4628 mov r0, r5 - 8005608: f000 fc06 bl 8005e18 <__lshift> - 800560c: 4604 mov r4, r0 - 800560e: 9b0f ldr r3, [sp, #60] ; 0x3c - 8005610: 2b00 cmp r3, #0 - 8005612: d070 beq.n 80056f6 <_dtoa_r+0x92e> - 8005614: 4621 mov r1, r4 - 8005616: 4650 mov r0, sl - 8005618: f000 fc6a bl 8005ef0 <__mcmp> - 800561c: 2800 cmp r0, #0 - 800561e: da6a bge.n 80056f6 <_dtoa_r+0x92e> - 8005620: 2300 movs r3, #0 - 8005622: 4651 mov r1, sl - 8005624: 220a movs r2, #10 - 8005626: 4628 mov r0, r5 - 8005628: f000 fa4a bl 8005ac0 <__multadd> - 800562c: 9b0b ldr r3, [sp, #44] ; 0x2c - 800562e: 4682 mov sl, r0 - 8005630: f109 39ff add.w r9, r9, #4294967295 ; 0xffffffff - 8005634: 2b00 cmp r3, #0 - 8005636: f000 8193 beq.w 8005960 <_dtoa_r+0xb98> - 800563a: 4631 mov r1, r6 - 800563c: 2300 movs r3, #0 - 800563e: 220a movs r2, #10 - 8005640: 4628 mov r0, r5 - 8005642: f000 fa3d bl 8005ac0 <__multadd> - 8005646: f1bb 0f00 cmp.w fp, #0 - 800564a: 4606 mov r6, r0 - 800564c: f300 8093 bgt.w 8005776 <_dtoa_r+0x9ae> - 8005650: 9b22 ldr r3, [sp, #136] ; 0x88 - 8005652: 2b02 cmp r3, #2 - 8005654: dc57 bgt.n 8005706 <_dtoa_r+0x93e> - 8005656: e08e b.n 8005776 <_dtoa_r+0x9ae> - 8005658: 9b16 ldr r3, [sp, #88] ; 0x58 - 800565a: f1c3 0336 rsb r3, r3, #54 ; 0x36 - 800565e: e756 b.n 800550e <_dtoa_r+0x746> - 8005660: 9b02 ldr r3, [sp, #8] - 8005662: 1e5c subs r4, r3, #1 - 8005664: 9b0a ldr r3, [sp, #40] ; 0x28 - 8005666: 42a3 cmp r3, r4 - 8005668: bfb7 itett lt - 800566a: 9b0a ldrlt r3, [sp, #40] ; 0x28 - 800566c: 1b1c subge r4, r3, r4 - 800566e: 1ae2 sublt r2, r4, r3 - 8005670: 9b0e ldrlt r3, [sp, #56] ; 0x38 - 8005672: bfbe ittt lt - 8005674: 940a strlt r4, [sp, #40] ; 0x28 - 8005676: 189b addlt r3, r3, r2 - 8005678: 930e strlt r3, [sp, #56] ; 0x38 - 800567a: 9b02 ldr r3, [sp, #8] - 800567c: bfb8 it lt - 800567e: 2400 movlt r4, #0 - 8005680: 2b00 cmp r3, #0 - 8005682: bfbb ittet lt - 8005684: 9b06 ldrlt r3, [sp, #24] - 8005686: 9a02 ldrlt r2, [sp, #8] - 8005688: 9f06 ldrge r7, [sp, #24] - 800568a: 1a9f sublt r7, r3, r2 - 800568c: bfac ite ge - 800568e: 9b02 ldrge r3, [sp, #8] - 8005690: 2300 movlt r3, #0 - 8005692: e73e b.n 8005512 <_dtoa_r+0x74a> - 8005694: 9c0a ldr r4, [sp, #40] ; 0x28 - 8005696: 9f06 ldr r7, [sp, #24] - 8005698: 9e0b ldr r6, [sp, #44] ; 0x2c - 800569a: e745 b.n 8005528 <_dtoa_r+0x760> - 800569c: 3fe00000 .word 0x3fe00000 - 80056a0: 40240000 .word 0x40240000 - 80056a4: 9a0a ldr r2, [sp, #40] ; 0x28 - 80056a6: e76a b.n 800557e <_dtoa_r+0x7b6> - 80056a8: 9b22 ldr r3, [sp, #136] ; 0x88 - 80056aa: 2b01 cmp r3, #1 - 80056ac: dc19 bgt.n 80056e2 <_dtoa_r+0x91a> - 80056ae: 9b04 ldr r3, [sp, #16] - 80056b0: b9bb cbnz r3, 80056e2 <_dtoa_r+0x91a> - 80056b2: 9b05 ldr r3, [sp, #20] - 80056b4: f3c3 0313 ubfx r3, r3, #0, #20 - 80056b8: b99b cbnz r3, 80056e2 <_dtoa_r+0x91a> - 80056ba: 9b05 ldr r3, [sp, #20] - 80056bc: f023 4300 bic.w r3, r3, #2147483648 ; 0x80000000 - 80056c0: 0d1b lsrs r3, r3, #20 - 80056c2: 051b lsls r3, r3, #20 - 80056c4: b183 cbz r3, 80056e8 <_dtoa_r+0x920> - 80056c6: f04f 0801 mov.w r8, #1 - 80056ca: 9b06 ldr r3, [sp, #24] - 80056cc: 3301 adds r3, #1 - 80056ce: 9306 str r3, [sp, #24] - 80056d0: 9b09 ldr r3, [sp, #36] ; 0x24 - 80056d2: 3301 adds r3, #1 - 80056d4: 9309 str r3, [sp, #36] ; 0x24 - 80056d6: 9b0e ldr r3, [sp, #56] ; 0x38 - 80056d8: 2b00 cmp r3, #0 - 80056da: f47f af6a bne.w 80055b2 <_dtoa_r+0x7ea> - 80056de: 2001 movs r0, #1 - 80056e0: e76f b.n 80055c2 <_dtoa_r+0x7fa> - 80056e2: f04f 0800 mov.w r8, #0 - 80056e6: e7f6 b.n 80056d6 <_dtoa_r+0x90e> - 80056e8: 4698 mov r8, r3 - 80056ea: e7f4 b.n 80056d6 <_dtoa_r+0x90e> - 80056ec: f43f af7d beq.w 80055ea <_dtoa_r+0x822> - 80056f0: 4618 mov r0, r3 - 80056f2: 301c adds r0, #28 - 80056f4: e772 b.n 80055dc <_dtoa_r+0x814> - 80056f6: 9b02 ldr r3, [sp, #8] - 80056f8: 2b00 cmp r3, #0 - 80056fa: dc36 bgt.n 800576a <_dtoa_r+0x9a2> - 80056fc: 9b22 ldr r3, [sp, #136] ; 0x88 - 80056fe: 2b02 cmp r3, #2 - 8005700: dd33 ble.n 800576a <_dtoa_r+0x9a2> - 8005702: f8dd b008 ldr.w fp, [sp, #8] - 8005706: f1bb 0f00 cmp.w fp, #0 - 800570a: d10d bne.n 8005728 <_dtoa_r+0x960> - 800570c: 4621 mov r1, r4 - 800570e: 465b mov r3, fp - 8005710: 2205 movs r2, #5 - 8005712: 4628 mov r0, r5 - 8005714: f000 f9d4 bl 8005ac0 <__multadd> - 8005718: 4601 mov r1, r0 - 800571a: 4604 mov r4, r0 - 800571c: 4650 mov r0, sl - 800571e: f000 fbe7 bl 8005ef0 <__mcmp> - 8005722: 2800 cmp r0, #0 - 8005724: f73f adb6 bgt.w 8005294 <_dtoa_r+0x4cc> - 8005728: 9b23 ldr r3, [sp, #140] ; 0x8c - 800572a: 9f08 ldr r7, [sp, #32] - 800572c: ea6f 0903 mvn.w r9, r3 - 8005730: f04f 0800 mov.w r8, #0 - 8005734: 4621 mov r1, r4 - 8005736: 4628 mov r0, r5 - 8005738: f000 f9a0 bl 8005a7c <_Bfree> - 800573c: 2e00 cmp r6, #0 - 800573e: f43f aea4 beq.w 800548a <_dtoa_r+0x6c2> - 8005742: f1b8 0f00 cmp.w r8, #0 - 8005746: d005 beq.n 8005754 <_dtoa_r+0x98c> - 8005748: 45b0 cmp r8, r6 - 800574a: d003 beq.n 8005754 <_dtoa_r+0x98c> - 800574c: 4641 mov r1, r8 - 800574e: 4628 mov r0, r5 - 8005750: f000 f994 bl 8005a7c <_Bfree> - 8005754: 4631 mov r1, r6 - 8005756: 4628 mov r0, r5 - 8005758: f000 f990 bl 8005a7c <_Bfree> - 800575c: e695 b.n 800548a <_dtoa_r+0x6c2> - 800575e: 2400 movs r4, #0 - 8005760: 4626 mov r6, r4 - 8005762: e7e1 b.n 8005728 <_dtoa_r+0x960> - 8005764: 46c1 mov r9, r8 - 8005766: 4626 mov r6, r4 - 8005768: e594 b.n 8005294 <_dtoa_r+0x4cc> - 800576a: 9b0b ldr r3, [sp, #44] ; 0x2c - 800576c: f8dd b008 ldr.w fp, [sp, #8] - 8005770: 2b00 cmp r3, #0 - 8005772: f000 80fc beq.w 800596e <_dtoa_r+0xba6> - 8005776: 2f00 cmp r7, #0 - 8005778: dd05 ble.n 8005786 <_dtoa_r+0x9be> - 800577a: 4631 mov r1, r6 - 800577c: 463a mov r2, r7 - 800577e: 4628 mov r0, r5 - 8005780: f000 fb4a bl 8005e18 <__lshift> - 8005784: 4606 mov r6, r0 - 8005786: f1b8 0f00 cmp.w r8, #0 - 800578a: d05c beq.n 8005846 <_dtoa_r+0xa7e> - 800578c: 4628 mov r0, r5 - 800578e: 6871 ldr r1, [r6, #4] - 8005790: f000 f934 bl 80059fc <_Balloc> - 8005794: 4607 mov r7, r0 - 8005796: b928 cbnz r0, 80057a4 <_dtoa_r+0x9dc> - 8005798: 4602 mov r2, r0 - 800579a: f240 21ea movw r1, #746 ; 0x2ea - 800579e: 4b7e ldr r3, [pc, #504] ; (8005998 <_dtoa_r+0xbd0>) - 80057a0: f7ff bb26 b.w 8004df0 <_dtoa_r+0x28> - 80057a4: 6932 ldr r2, [r6, #16] - 80057a6: f106 010c add.w r1, r6, #12 - 80057aa: 3202 adds r2, #2 - 80057ac: 0092 lsls r2, r2, #2 - 80057ae: 300c adds r0, #12 - 80057b0: f000 f90a bl 80059c8 - 80057b4: 2201 movs r2, #1 - 80057b6: 4639 mov r1, r7 - 80057b8: 4628 mov r0, r5 - 80057ba: f000 fb2d bl 8005e18 <__lshift> - 80057be: 46b0 mov r8, r6 - 80057c0: 4606 mov r6, r0 - 80057c2: 9b08 ldr r3, [sp, #32] - 80057c4: 3301 adds r3, #1 - 80057c6: 9302 str r3, [sp, #8] - 80057c8: 9b08 ldr r3, [sp, #32] - 80057ca: 445b add r3, fp - 80057cc: 930a str r3, [sp, #40] ; 0x28 - 80057ce: 9b04 ldr r3, [sp, #16] - 80057d0: f003 0301 and.w r3, r3, #1 - 80057d4: 9309 str r3, [sp, #36] ; 0x24 - 80057d6: 9b02 ldr r3, [sp, #8] - 80057d8: 4621 mov r1, r4 - 80057da: 4650 mov r0, sl - 80057dc: f103 3bff add.w fp, r3, #4294967295 ; 0xffffffff - 80057e0: f7ff fa64 bl 8004cac - 80057e4: 4603 mov r3, r0 - 80057e6: 4641 mov r1, r8 - 80057e8: 3330 adds r3, #48 ; 0x30 - 80057ea: 9004 str r0, [sp, #16] - 80057ec: 4650 mov r0, sl - 80057ee: 930b str r3, [sp, #44] ; 0x2c - 80057f0: f000 fb7e bl 8005ef0 <__mcmp> - 80057f4: 4632 mov r2, r6 - 80057f6: 9006 str r0, [sp, #24] - 80057f8: 4621 mov r1, r4 - 80057fa: 4628 mov r0, r5 - 80057fc: f000 fb94 bl 8005f28 <__mdiff> - 8005800: 68c2 ldr r2, [r0, #12] - 8005802: 4607 mov r7, r0 - 8005804: 9b0b ldr r3, [sp, #44] ; 0x2c - 8005806: bb02 cbnz r2, 800584a <_dtoa_r+0xa82> - 8005808: 4601 mov r1, r0 - 800580a: 4650 mov r0, sl - 800580c: f000 fb70 bl 8005ef0 <__mcmp> - 8005810: 4602 mov r2, r0 - 8005812: 9b0b ldr r3, [sp, #44] ; 0x2c - 8005814: 4639 mov r1, r7 - 8005816: 4628 mov r0, r5 - 8005818: e9cd 320b strd r3, r2, [sp, #44] ; 0x2c - 800581c: f000 f92e bl 8005a7c <_Bfree> - 8005820: 9b22 ldr r3, [sp, #136] ; 0x88 - 8005822: 9a0c ldr r2, [sp, #48] ; 0x30 - 8005824: 9f02 ldr r7, [sp, #8] - 8005826: ea43 0102 orr.w r1, r3, r2 - 800582a: 9b09 ldr r3, [sp, #36] ; 0x24 - 800582c: 430b orrs r3, r1 - 800582e: 9b0b ldr r3, [sp, #44] ; 0x2c - 8005830: d10d bne.n 800584e <_dtoa_r+0xa86> - 8005832: 2b39 cmp r3, #57 ; 0x39 - 8005834: d027 beq.n 8005886 <_dtoa_r+0xabe> - 8005836: 9a06 ldr r2, [sp, #24] - 8005838: 2a00 cmp r2, #0 - 800583a: dd01 ble.n 8005840 <_dtoa_r+0xa78> - 800583c: 9b04 ldr r3, [sp, #16] - 800583e: 3331 adds r3, #49 ; 0x31 - 8005840: f88b 3000 strb.w r3, [fp] - 8005844: e776 b.n 8005734 <_dtoa_r+0x96c> - 8005846: 4630 mov r0, r6 - 8005848: e7b9 b.n 80057be <_dtoa_r+0x9f6> - 800584a: 2201 movs r2, #1 - 800584c: e7e2 b.n 8005814 <_dtoa_r+0xa4c> - 800584e: 9906 ldr r1, [sp, #24] - 8005850: 2900 cmp r1, #0 - 8005852: db04 blt.n 800585e <_dtoa_r+0xa96> - 8005854: 9822 ldr r0, [sp, #136] ; 0x88 - 8005856: 4301 orrs r1, r0 - 8005858: 9809 ldr r0, [sp, #36] ; 0x24 - 800585a: 4301 orrs r1, r0 - 800585c: d120 bne.n 80058a0 <_dtoa_r+0xad8> - 800585e: 2a00 cmp r2, #0 - 8005860: ddee ble.n 8005840 <_dtoa_r+0xa78> - 8005862: 4651 mov r1, sl - 8005864: 2201 movs r2, #1 - 8005866: 4628 mov r0, r5 - 8005868: 9302 str r3, [sp, #8] - 800586a: f000 fad5 bl 8005e18 <__lshift> - 800586e: 4621 mov r1, r4 - 8005870: 4682 mov sl, r0 - 8005872: f000 fb3d bl 8005ef0 <__mcmp> - 8005876: 2800 cmp r0, #0 - 8005878: 9b02 ldr r3, [sp, #8] - 800587a: dc02 bgt.n 8005882 <_dtoa_r+0xaba> - 800587c: d1e0 bne.n 8005840 <_dtoa_r+0xa78> - 800587e: 07da lsls r2, r3, #31 - 8005880: d5de bpl.n 8005840 <_dtoa_r+0xa78> - 8005882: 2b39 cmp r3, #57 ; 0x39 - 8005884: d1da bne.n 800583c <_dtoa_r+0xa74> - 8005886: 2339 movs r3, #57 ; 0x39 - 8005888: f88b 3000 strb.w r3, [fp] - 800588c: 463b mov r3, r7 - 800588e: 461f mov r7, r3 - 8005890: f817 2c01 ldrb.w r2, [r7, #-1] - 8005894: 3b01 subs r3, #1 - 8005896: 2a39 cmp r2, #57 ; 0x39 - 8005898: d050 beq.n 800593c <_dtoa_r+0xb74> - 800589a: 3201 adds r2, #1 - 800589c: 701a strb r2, [r3, #0] - 800589e: e749 b.n 8005734 <_dtoa_r+0x96c> - 80058a0: 2a00 cmp r2, #0 - 80058a2: dd03 ble.n 80058ac <_dtoa_r+0xae4> - 80058a4: 2b39 cmp r3, #57 ; 0x39 - 80058a6: d0ee beq.n 8005886 <_dtoa_r+0xabe> - 80058a8: 3301 adds r3, #1 - 80058aa: e7c9 b.n 8005840 <_dtoa_r+0xa78> - 80058ac: 9a02 ldr r2, [sp, #8] - 80058ae: 990a ldr r1, [sp, #40] ; 0x28 - 80058b0: f802 3c01 strb.w r3, [r2, #-1] - 80058b4: 428a cmp r2, r1 - 80058b6: d02a beq.n 800590e <_dtoa_r+0xb46> - 80058b8: 4651 mov r1, sl - 80058ba: 2300 movs r3, #0 - 80058bc: 220a movs r2, #10 - 80058be: 4628 mov r0, r5 - 80058c0: f000 f8fe bl 8005ac0 <__multadd> - 80058c4: 45b0 cmp r8, r6 - 80058c6: 4682 mov sl, r0 - 80058c8: f04f 0300 mov.w r3, #0 - 80058cc: f04f 020a mov.w r2, #10 - 80058d0: 4641 mov r1, r8 - 80058d2: 4628 mov r0, r5 - 80058d4: d107 bne.n 80058e6 <_dtoa_r+0xb1e> - 80058d6: f000 f8f3 bl 8005ac0 <__multadd> - 80058da: 4680 mov r8, r0 - 80058dc: 4606 mov r6, r0 - 80058de: 9b02 ldr r3, [sp, #8] - 80058e0: 3301 adds r3, #1 - 80058e2: 9302 str r3, [sp, #8] - 80058e4: e777 b.n 80057d6 <_dtoa_r+0xa0e> - 80058e6: f000 f8eb bl 8005ac0 <__multadd> - 80058ea: 4631 mov r1, r6 - 80058ec: 4680 mov r8, r0 - 80058ee: 2300 movs r3, #0 - 80058f0: 220a movs r2, #10 - 80058f2: 4628 mov r0, r5 - 80058f4: f000 f8e4 bl 8005ac0 <__multadd> - 80058f8: 4606 mov r6, r0 - 80058fa: e7f0 b.n 80058de <_dtoa_r+0xb16> - 80058fc: f1bb 0f00 cmp.w fp, #0 - 8005900: bfcc ite gt - 8005902: 465f movgt r7, fp - 8005904: 2701 movle r7, #1 - 8005906: f04f 0800 mov.w r8, #0 - 800590a: 9a08 ldr r2, [sp, #32] - 800590c: 4417 add r7, r2 - 800590e: 4651 mov r1, sl - 8005910: 2201 movs r2, #1 - 8005912: 4628 mov r0, r5 - 8005914: 9302 str r3, [sp, #8] - 8005916: f000 fa7f bl 8005e18 <__lshift> - 800591a: 4621 mov r1, r4 - 800591c: 4682 mov sl, r0 - 800591e: f000 fae7 bl 8005ef0 <__mcmp> - 8005922: 2800 cmp r0, #0 - 8005924: dcb2 bgt.n 800588c <_dtoa_r+0xac4> - 8005926: d102 bne.n 800592e <_dtoa_r+0xb66> - 8005928: 9b02 ldr r3, [sp, #8] - 800592a: 07db lsls r3, r3, #31 - 800592c: d4ae bmi.n 800588c <_dtoa_r+0xac4> - 800592e: 463b mov r3, r7 - 8005930: 461f mov r7, r3 - 8005932: f813 2d01 ldrb.w r2, [r3, #-1]! - 8005936: 2a30 cmp r2, #48 ; 0x30 - 8005938: d0fa beq.n 8005930 <_dtoa_r+0xb68> - 800593a: e6fb b.n 8005734 <_dtoa_r+0x96c> - 800593c: 9a08 ldr r2, [sp, #32] - 800593e: 429a cmp r2, r3 - 8005940: d1a5 bne.n 800588e <_dtoa_r+0xac6> - 8005942: 2331 movs r3, #49 ; 0x31 - 8005944: f109 0901 add.w r9, r9, #1 - 8005948: 7013 strb r3, [r2, #0] - 800594a: e6f3 b.n 8005734 <_dtoa_r+0x96c> - 800594c: 4b13 ldr r3, [pc, #76] ; (800599c <_dtoa_r+0xbd4>) - 800594e: f7ff baa7 b.w 8004ea0 <_dtoa_r+0xd8> - 8005952: 9b26 ldr r3, [sp, #152] ; 0x98 - 8005954: 2b00 cmp r3, #0 - 8005956: f47f aa80 bne.w 8004e5a <_dtoa_r+0x92> - 800595a: 4b11 ldr r3, [pc, #68] ; (80059a0 <_dtoa_r+0xbd8>) - 800595c: f7ff baa0 b.w 8004ea0 <_dtoa_r+0xd8> - 8005960: f1bb 0f00 cmp.w fp, #0 - 8005964: dc03 bgt.n 800596e <_dtoa_r+0xba6> - 8005966: 9b22 ldr r3, [sp, #136] ; 0x88 - 8005968: 2b02 cmp r3, #2 - 800596a: f73f aecc bgt.w 8005706 <_dtoa_r+0x93e> - 800596e: 9f08 ldr r7, [sp, #32] - 8005970: 4621 mov r1, r4 - 8005972: 4650 mov r0, sl - 8005974: f7ff f99a bl 8004cac - 8005978: 9a08 ldr r2, [sp, #32] - 800597a: f100 0330 add.w r3, r0, #48 ; 0x30 - 800597e: f807 3b01 strb.w r3, [r7], #1 - 8005982: 1aba subs r2, r7, r2 - 8005984: 4593 cmp fp, r2 - 8005986: ddb9 ble.n 80058fc <_dtoa_r+0xb34> - 8005988: 4651 mov r1, sl - 800598a: 2300 movs r3, #0 - 800598c: 220a movs r2, #10 - 800598e: 4628 mov r0, r5 - 8005990: f000 f896 bl 8005ac0 <__multadd> - 8005994: 4682 mov sl, r0 - 8005996: e7eb b.n 8005970 <_dtoa_r+0xba8> - 8005998: 08007b8f .word 0x08007b8f - 800599c: 08007ae8 .word 0x08007ae8 - 80059a0: 08007b0c .word 0x08007b0c +08006120 <_dtoa_r>: + 8006120: e92d 4ff0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, fp, lr} + 8006124: 4616 mov r6, r2 + 8006126: 461f mov r7, r3 + 8006128: 6a44 ldr r4, [r0, #36] ; 0x24 + 800612a: b099 sub sp, #100 ; 0x64 + 800612c: 4605 mov r5, r0 + 800612e: e9cd 6704 strd r6, r7, [sp, #16] + 8006132: f8dd 8094 ldr.w r8, [sp, #148] ; 0x94 + 8006136: b974 cbnz r4, 8006156 <_dtoa_r+0x36> + 8006138: 2010 movs r0, #16 + 800613a: f7ff fa13 bl 8005564 + 800613e: 4602 mov r2, r0 + 8006140: 6268 str r0, [r5, #36] ; 0x24 + 8006142: b920 cbnz r0, 800614e <_dtoa_r+0x2e> + 8006144: 21ea movs r1, #234 ; 0xea + 8006146: 4bae ldr r3, [pc, #696] ; (8006400 <_dtoa_r+0x2e0>) + 8006148: 48ae ldr r0, [pc, #696] ; (8006404 <_dtoa_r+0x2e4>) + 800614a: f001 faef bl 800772c <__assert_func> + 800614e: e9c0 4401 strd r4, r4, [r0, #4] + 8006152: 6004 str r4, [r0, #0] + 8006154: 60c4 str r4, [r0, #12] + 8006156: 6a6b ldr r3, [r5, #36] ; 0x24 + 8006158: 6819 ldr r1, [r3, #0] + 800615a: b151 cbz r1, 8006172 <_dtoa_r+0x52> + 800615c: 685a ldr r2, [r3, #4] + 800615e: 2301 movs r3, #1 + 8006160: 4093 lsls r3, r2 + 8006162: 604a str r2, [r1, #4] + 8006164: 608b str r3, [r1, #8] + 8006166: 4628 mov r0, r5 + 8006168: f000 fe34 bl 8006dd4 <_Bfree> + 800616c: 2200 movs r2, #0 + 800616e: 6a6b ldr r3, [r5, #36] ; 0x24 + 8006170: 601a str r2, [r3, #0] + 8006172: 1e3b subs r3, r7, #0 + 8006174: bfaf iteee ge + 8006176: 2300 movge r3, #0 + 8006178: 2201 movlt r2, #1 + 800617a: f023 4300 biclt.w r3, r3, #2147483648 ; 0x80000000 + 800617e: 9305 strlt r3, [sp, #20] + 8006180: bfa8 it ge + 8006182: f8c8 3000 strge.w r3, [r8] + 8006186: f8dd 9014 ldr.w r9, [sp, #20] + 800618a: 4b9f ldr r3, [pc, #636] ; (8006408 <_dtoa_r+0x2e8>) + 800618c: bfb8 it lt + 800618e: f8c8 2000 strlt.w r2, [r8] + 8006192: ea33 0309 bics.w r3, r3, r9 + 8006196: d119 bne.n 80061cc <_dtoa_r+0xac> + 8006198: f242 730f movw r3, #9999 ; 0x270f + 800619c: 9a24 ldr r2, [sp, #144] ; 0x90 + 800619e: 6013 str r3, [r2, #0] + 80061a0: f3c9 0313 ubfx r3, r9, #0, #20 + 80061a4: 4333 orrs r3, r6 + 80061a6: f000 8580 beq.w 8006caa <_dtoa_r+0xb8a> + 80061aa: 9b26 ldr r3, [sp, #152] ; 0x98 + 80061ac: b953 cbnz r3, 80061c4 <_dtoa_r+0xa4> + 80061ae: 4b97 ldr r3, [pc, #604] ; (800640c <_dtoa_r+0x2ec>) + 80061b0: e022 b.n 80061f8 <_dtoa_r+0xd8> + 80061b2: 4b97 ldr r3, [pc, #604] ; (8006410 <_dtoa_r+0x2f0>) + 80061b4: 9308 str r3, [sp, #32] + 80061b6: 3308 adds r3, #8 + 80061b8: 9a26 ldr r2, [sp, #152] ; 0x98 + 80061ba: 6013 str r3, [r2, #0] + 80061bc: 9808 ldr r0, [sp, #32] + 80061be: b019 add sp, #100 ; 0x64 + 80061c0: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc} + 80061c4: 4b91 ldr r3, [pc, #580] ; (800640c <_dtoa_r+0x2ec>) + 80061c6: 9308 str r3, [sp, #32] + 80061c8: 3303 adds r3, #3 + 80061ca: e7f5 b.n 80061b8 <_dtoa_r+0x98> + 80061cc: e9dd 3404 ldrd r3, r4, [sp, #16] + 80061d0: e9cd 340c strd r3, r4, [sp, #48] ; 0x30 + 80061d4: e9dd 010c ldrd r0, r1, [sp, #48] ; 0x30 + 80061d8: 2200 movs r2, #0 + 80061da: 2300 movs r3, #0 + 80061dc: f7fa fc50 bl 8000a80 <__aeabi_dcmpeq> + 80061e0: 4680 mov r8, r0 + 80061e2: b158 cbz r0, 80061fc <_dtoa_r+0xdc> + 80061e4: 2301 movs r3, #1 + 80061e6: 9a24 ldr r2, [sp, #144] ; 0x90 + 80061e8: 6013 str r3, [r2, #0] + 80061ea: 9b26 ldr r3, [sp, #152] ; 0x98 + 80061ec: 2b00 cmp r3, #0 + 80061ee: f000 8559 beq.w 8006ca4 <_dtoa_r+0xb84> + 80061f2: 4888 ldr r0, [pc, #544] ; (8006414 <_dtoa_r+0x2f4>) + 80061f4: 6018 str r0, [r3, #0] + 80061f6: 1e43 subs r3, r0, #1 + 80061f8: 9308 str r3, [sp, #32] + 80061fa: e7df b.n 80061bc <_dtoa_r+0x9c> + 80061fc: ab16 add r3, sp, #88 ; 0x58 + 80061fe: 9301 str r3, [sp, #4] + 8006200: ab17 add r3, sp, #92 ; 0x5c + 8006202: 9300 str r3, [sp, #0] + 8006204: 4628 mov r0, r5 + 8006206: e9dd 230c ldrd r2, r3, [sp, #48] ; 0x30 + 800620a: f001 f8c9 bl 80073a0 <__d2b> + 800620e: f3c9 540a ubfx r4, r9, #20, #11 + 8006212: 4682 mov sl, r0 + 8006214: 2c00 cmp r4, #0 + 8006216: d07e beq.n 8006316 <_dtoa_r+0x1f6> + 8006218: e9dd 010c ldrd r0, r1, [sp, #48] ; 0x30 + 800621c: 9b0d ldr r3, [sp, #52] ; 0x34 + 800621e: f2a4 34ff subw r4, r4, #1023 ; 0x3ff + 8006222: f3c3 0313 ubfx r3, r3, #0, #20 + 8006226: f043 517f orr.w r1, r3, #1069547520 ; 0x3fc00000 + 800622a: f441 1140 orr.w r1, r1, #3145728 ; 0x300000 + 800622e: f8cd 804c str.w r8, [sp, #76] ; 0x4c + 8006232: 2200 movs r2, #0 + 8006234: 4b78 ldr r3, [pc, #480] ; (8006418 <_dtoa_r+0x2f8>) + 8006236: f7fa f803 bl 8000240 <__aeabi_dsub> + 800623a: a36b add r3, pc, #428 ; (adr r3, 80063e8 <_dtoa_r+0x2c8>) + 800623c: e9d3 2300 ldrd r2, r3, [r3] + 8006240: f7fa f9b6 bl 80005b0 <__aeabi_dmul> + 8006244: a36a add r3, pc, #424 ; (adr r3, 80063f0 <_dtoa_r+0x2d0>) + 8006246: e9d3 2300 ldrd r2, r3, [r3] + 800624a: f7f9 fffb bl 8000244 <__adddf3> + 800624e: 4606 mov r6, r0 + 8006250: 4620 mov r0, r4 + 8006252: 460f mov r7, r1 + 8006254: f7fa f942 bl 80004dc <__aeabi_i2d> + 8006258: a367 add r3, pc, #412 ; (adr r3, 80063f8 <_dtoa_r+0x2d8>) + 800625a: e9d3 2300 ldrd r2, r3, [r3] + 800625e: f7fa f9a7 bl 80005b0 <__aeabi_dmul> + 8006262: 4602 mov r2, r0 + 8006264: 460b mov r3, r1 + 8006266: 4630 mov r0, r6 + 8006268: 4639 mov r1, r7 + 800626a: f7f9 ffeb bl 8000244 <__adddf3> + 800626e: 4606 mov r6, r0 + 8006270: 460f mov r7, r1 + 8006272: f7fa fc4d bl 8000b10 <__aeabi_d2iz> + 8006276: 2200 movs r2, #0 + 8006278: 4681 mov r9, r0 + 800627a: 2300 movs r3, #0 + 800627c: 4630 mov r0, r6 + 800627e: 4639 mov r1, r7 + 8006280: f7fa fc08 bl 8000a94 <__aeabi_dcmplt> + 8006284: b148 cbz r0, 800629a <_dtoa_r+0x17a> + 8006286: 4648 mov r0, r9 + 8006288: f7fa f928 bl 80004dc <__aeabi_i2d> + 800628c: 4632 mov r2, r6 + 800628e: 463b mov r3, r7 + 8006290: f7fa fbf6 bl 8000a80 <__aeabi_dcmpeq> + 8006294: b908 cbnz r0, 800629a <_dtoa_r+0x17a> + 8006296: f109 39ff add.w r9, r9, #4294967295 ; 0xffffffff + 800629a: f1b9 0f16 cmp.w r9, #22 + 800629e: d857 bhi.n 8006350 <_dtoa_r+0x230> + 80062a0: e9dd 010c ldrd r0, r1, [sp, #48] ; 0x30 + 80062a4: 4b5d ldr r3, [pc, #372] ; (800641c <_dtoa_r+0x2fc>) + 80062a6: eb03 03c9 add.w r3, r3, r9, lsl #3 + 80062aa: e9d3 2300 ldrd r2, r3, [r3] + 80062ae: f7fa fbf1 bl 8000a94 <__aeabi_dcmplt> + 80062b2: 2800 cmp r0, #0 + 80062b4: d04e beq.n 8006354 <_dtoa_r+0x234> + 80062b6: 2300 movs r3, #0 + 80062b8: f109 39ff add.w r9, r9, #4294967295 ; 0xffffffff + 80062bc: 930f str r3, [sp, #60] ; 0x3c + 80062be: 9b16 ldr r3, [sp, #88] ; 0x58 + 80062c0: 1b1c subs r4, r3, r4 + 80062c2: 1e63 subs r3, r4, #1 + 80062c4: 9309 str r3, [sp, #36] ; 0x24 + 80062c6: bf49 itett mi + 80062c8: f1c4 0301 rsbmi r3, r4, #1 + 80062cc: 2300 movpl r3, #0 + 80062ce: 9306 strmi r3, [sp, #24] + 80062d0: 2300 movmi r3, #0 + 80062d2: bf54 ite pl + 80062d4: 9306 strpl r3, [sp, #24] + 80062d6: 9309 strmi r3, [sp, #36] ; 0x24 + 80062d8: f1b9 0f00 cmp.w r9, #0 + 80062dc: db3c blt.n 8006358 <_dtoa_r+0x238> + 80062de: 9b09 ldr r3, [sp, #36] ; 0x24 + 80062e0: f8cd 9038 str.w r9, [sp, #56] ; 0x38 + 80062e4: 444b add r3, r9 + 80062e6: 9309 str r3, [sp, #36] ; 0x24 + 80062e8: 2300 movs r3, #0 + 80062ea: 930a str r3, [sp, #40] ; 0x28 + 80062ec: 9b22 ldr r3, [sp, #136] ; 0x88 + 80062ee: 2b09 cmp r3, #9 + 80062f0: d86c bhi.n 80063cc <_dtoa_r+0x2ac> + 80062f2: 2b05 cmp r3, #5 + 80062f4: bfc4 itt gt + 80062f6: 3b04 subgt r3, #4 + 80062f8: 9322 strgt r3, [sp, #136] ; 0x88 + 80062fa: 9b22 ldr r3, [sp, #136] ; 0x88 + 80062fc: bfc8 it gt + 80062fe: 2400 movgt r4, #0 + 8006300: f1a3 0302 sub.w r3, r3, #2 + 8006304: bfd8 it le + 8006306: 2401 movle r4, #1 + 8006308: 2b03 cmp r3, #3 + 800630a: f200 808b bhi.w 8006424 <_dtoa_r+0x304> + 800630e: e8df f003 tbb [pc, r3] + 8006312: 4f2d .short 0x4f2d + 8006314: 5b4d .short 0x5b4d + 8006316: e9dd 4316 ldrd r4, r3, [sp, #88] ; 0x58 + 800631a: 441c add r4, r3 + 800631c: f204 4332 addw r3, r4, #1074 ; 0x432 + 8006320: 2b20 cmp r3, #32 + 8006322: bfc3 ittte gt + 8006324: f1c3 0340 rsbgt r3, r3, #64 ; 0x40 + 8006328: f204 4012 addwgt r0, r4, #1042 ; 0x412 + 800632c: fa09 f303 lslgt.w r3, r9, r3 + 8006330: f1c3 0320 rsble r3, r3, #32 + 8006334: bfc6 itte gt + 8006336: fa26 f000 lsrgt.w r0, r6, r0 + 800633a: 4318 orrgt r0, r3 + 800633c: fa06 f003 lslle.w r0, r6, r3 + 8006340: f7fa f8bc bl 80004bc <__aeabi_ui2d> + 8006344: 2301 movs r3, #1 + 8006346: f1a1 71f8 sub.w r1, r1, #32505856 ; 0x1f00000 + 800634a: 3c01 subs r4, #1 + 800634c: 9313 str r3, [sp, #76] ; 0x4c + 800634e: e770 b.n 8006232 <_dtoa_r+0x112> + 8006350: 2301 movs r3, #1 + 8006352: e7b3 b.n 80062bc <_dtoa_r+0x19c> + 8006354: 900f str r0, [sp, #60] ; 0x3c + 8006356: e7b2 b.n 80062be <_dtoa_r+0x19e> + 8006358: 9b06 ldr r3, [sp, #24] + 800635a: eba3 0309 sub.w r3, r3, r9 + 800635e: 9306 str r3, [sp, #24] + 8006360: f1c9 0300 rsb r3, r9, #0 + 8006364: 930a str r3, [sp, #40] ; 0x28 + 8006366: 2300 movs r3, #0 + 8006368: 930e str r3, [sp, #56] ; 0x38 + 800636a: e7bf b.n 80062ec <_dtoa_r+0x1cc> + 800636c: 2300 movs r3, #0 + 800636e: 930b str r3, [sp, #44] ; 0x2c + 8006370: 9b23 ldr r3, [sp, #140] ; 0x8c + 8006372: 2b00 cmp r3, #0 + 8006374: dc59 bgt.n 800642a <_dtoa_r+0x30a> + 8006376: f04f 0b01 mov.w fp, #1 + 800637a: 465b mov r3, fp + 800637c: f8cd b008 str.w fp, [sp, #8] + 8006380: f8cd b08c str.w fp, [sp, #140] ; 0x8c + 8006384: 2200 movs r2, #0 + 8006386: 6a68 ldr r0, [r5, #36] ; 0x24 + 8006388: 6042 str r2, [r0, #4] + 800638a: 2204 movs r2, #4 + 800638c: f102 0614 add.w r6, r2, #20 + 8006390: 429e cmp r6, r3 + 8006392: 6841 ldr r1, [r0, #4] + 8006394: d94f bls.n 8006436 <_dtoa_r+0x316> + 8006396: 4628 mov r0, r5 + 8006398: f000 fcdc bl 8006d54 <_Balloc> + 800639c: 9008 str r0, [sp, #32] + 800639e: 2800 cmp r0, #0 + 80063a0: d14d bne.n 800643e <_dtoa_r+0x31e> + 80063a2: 4602 mov r2, r0 + 80063a4: f44f 71d5 mov.w r1, #426 ; 0x1aa + 80063a8: 4b1d ldr r3, [pc, #116] ; (8006420 <_dtoa_r+0x300>) + 80063aa: e6cd b.n 8006148 <_dtoa_r+0x28> + 80063ac: 2301 movs r3, #1 + 80063ae: e7de b.n 800636e <_dtoa_r+0x24e> + 80063b0: 2300 movs r3, #0 + 80063b2: 930b str r3, [sp, #44] ; 0x2c + 80063b4: 9b23 ldr r3, [sp, #140] ; 0x8c + 80063b6: eb09 0b03 add.w fp, r9, r3 + 80063ba: f10b 0301 add.w r3, fp, #1 + 80063be: 2b01 cmp r3, #1 + 80063c0: 9302 str r3, [sp, #8] + 80063c2: bfb8 it lt + 80063c4: 2301 movlt r3, #1 + 80063c6: e7dd b.n 8006384 <_dtoa_r+0x264> + 80063c8: 2301 movs r3, #1 + 80063ca: e7f2 b.n 80063b2 <_dtoa_r+0x292> + 80063cc: 2401 movs r4, #1 + 80063ce: 2300 movs r3, #0 + 80063d0: 940b str r4, [sp, #44] ; 0x2c + 80063d2: 9322 str r3, [sp, #136] ; 0x88 + 80063d4: f04f 3bff mov.w fp, #4294967295 ; 0xffffffff + 80063d8: 2200 movs r2, #0 + 80063da: 2312 movs r3, #18 + 80063dc: f8cd b008 str.w fp, [sp, #8] + 80063e0: 9223 str r2, [sp, #140] ; 0x8c + 80063e2: e7cf b.n 8006384 <_dtoa_r+0x264> + 80063e4: f3af 8000 nop.w + 80063e8: 636f4361 .word 0x636f4361 + 80063ec: 3fd287a7 .word 0x3fd287a7 + 80063f0: 8b60c8b3 .word 0x8b60c8b3 + 80063f4: 3fc68a28 .word 0x3fc68a28 + 80063f8: 509f79fb .word 0x509f79fb + 80063fc: 3fd34413 .word 0x3fd34413 + 8006400: 08008e79 .word 0x08008e79 + 8006404: 08008e90 .word 0x08008e90 + 8006408: 7ff00000 .word 0x7ff00000 + 800640c: 08008e75 .word 0x08008e75 + 8006410: 08008e6c .word 0x08008e6c + 8006414: 08008e49 .word 0x08008e49 + 8006418: 3ff80000 .word 0x3ff80000 + 800641c: 08008f88 .word 0x08008f88 + 8006420: 08008eef .word 0x08008eef + 8006424: 2301 movs r3, #1 + 8006426: 930b str r3, [sp, #44] ; 0x2c + 8006428: e7d4 b.n 80063d4 <_dtoa_r+0x2b4> + 800642a: f8dd b08c ldr.w fp, [sp, #140] ; 0x8c + 800642e: 465b mov r3, fp + 8006430: f8cd b008 str.w fp, [sp, #8] + 8006434: e7a6 b.n 8006384 <_dtoa_r+0x264> + 8006436: 3101 adds r1, #1 + 8006438: 6041 str r1, [r0, #4] + 800643a: 0052 lsls r2, r2, #1 + 800643c: e7a6 b.n 800638c <_dtoa_r+0x26c> + 800643e: 6a6b ldr r3, [r5, #36] ; 0x24 + 8006440: 9a08 ldr r2, [sp, #32] + 8006442: 601a str r2, [r3, #0] + 8006444: 9b02 ldr r3, [sp, #8] + 8006446: 2b0e cmp r3, #14 + 8006448: f200 80a8 bhi.w 800659c <_dtoa_r+0x47c> + 800644c: 2c00 cmp r4, #0 + 800644e: f000 80a5 beq.w 800659c <_dtoa_r+0x47c> + 8006452: f1b9 0f00 cmp.w r9, #0 + 8006456: dd34 ble.n 80064c2 <_dtoa_r+0x3a2> + 8006458: 4a9a ldr r2, [pc, #616] ; (80066c4 <_dtoa_r+0x5a4>) + 800645a: f009 030f and.w r3, r9, #15 + 800645e: eb02 03c3 add.w r3, r2, r3, lsl #3 + 8006462: f419 7f80 tst.w r9, #256 ; 0x100 + 8006466: e9d3 3400 ldrd r3, r4, [r3] + 800646a: e9cd 3410 strd r3, r4, [sp, #64] ; 0x40 + 800646e: ea4f 1429 mov.w r4, r9, asr #4 + 8006472: d016 beq.n 80064a2 <_dtoa_r+0x382> + 8006474: e9dd 010c ldrd r0, r1, [sp, #48] ; 0x30 + 8006478: 4b93 ldr r3, [pc, #588] ; (80066c8 <_dtoa_r+0x5a8>) + 800647a: 2703 movs r7, #3 + 800647c: e9d3 2308 ldrd r2, r3, [r3, #32] + 8006480: f7fa f9c0 bl 8000804 <__aeabi_ddiv> + 8006484: e9cd 0104 strd r0, r1, [sp, #16] + 8006488: f004 040f and.w r4, r4, #15 + 800648c: 4e8e ldr r6, [pc, #568] ; (80066c8 <_dtoa_r+0x5a8>) + 800648e: b954 cbnz r4, 80064a6 <_dtoa_r+0x386> + 8006490: e9dd 2310 ldrd r2, r3, [sp, #64] ; 0x40 + 8006494: e9dd 0104 ldrd r0, r1, [sp, #16] + 8006498: f7fa f9b4 bl 8000804 <__aeabi_ddiv> + 800649c: e9cd 0104 strd r0, r1, [sp, #16] + 80064a0: e029 b.n 80064f6 <_dtoa_r+0x3d6> + 80064a2: 2702 movs r7, #2 + 80064a4: e7f2 b.n 800648c <_dtoa_r+0x36c> + 80064a6: 07e1 lsls r1, r4, #31 + 80064a8: d508 bpl.n 80064bc <_dtoa_r+0x39c> + 80064aa: e9dd 0110 ldrd r0, r1, [sp, #64] ; 0x40 + 80064ae: e9d6 2300 ldrd r2, r3, [r6] + 80064b2: f7fa f87d bl 80005b0 <__aeabi_dmul> + 80064b6: e9cd 0110 strd r0, r1, [sp, #64] ; 0x40 + 80064ba: 3701 adds r7, #1 + 80064bc: 1064 asrs r4, r4, #1 + 80064be: 3608 adds r6, #8 + 80064c0: e7e5 b.n 800648e <_dtoa_r+0x36e> + 80064c2: f000 80a5 beq.w 8006610 <_dtoa_r+0x4f0> + 80064c6: e9dd 010c ldrd r0, r1, [sp, #48] ; 0x30 + 80064ca: f1c9 0400 rsb r4, r9, #0 + 80064ce: 4b7d ldr r3, [pc, #500] ; (80066c4 <_dtoa_r+0x5a4>) + 80064d0: f004 020f and.w r2, r4, #15 + 80064d4: eb03 03c2 add.w r3, r3, r2, lsl #3 + 80064d8: e9d3 2300 ldrd r2, r3, [r3] + 80064dc: f7fa f868 bl 80005b0 <__aeabi_dmul> + 80064e0: 2702 movs r7, #2 + 80064e2: 2300 movs r3, #0 + 80064e4: e9cd 0104 strd r0, r1, [sp, #16] + 80064e8: 4e77 ldr r6, [pc, #476] ; (80066c8 <_dtoa_r+0x5a8>) + 80064ea: 1124 asrs r4, r4, #4 + 80064ec: 2c00 cmp r4, #0 + 80064ee: f040 8084 bne.w 80065fa <_dtoa_r+0x4da> + 80064f2: 2b00 cmp r3, #0 + 80064f4: d1d2 bne.n 800649c <_dtoa_r+0x37c> + 80064f6: 9b0f ldr r3, [sp, #60] ; 0x3c + 80064f8: 2b00 cmp r3, #0 + 80064fa: f000 808b beq.w 8006614 <_dtoa_r+0x4f4> + 80064fe: e9dd 3404 ldrd r3, r4, [sp, #16] + 8006502: e9cd 3410 strd r3, r4, [sp, #64] ; 0x40 + 8006506: e9dd 0110 ldrd r0, r1, [sp, #64] ; 0x40 + 800650a: 2200 movs r2, #0 + 800650c: 4b6f ldr r3, [pc, #444] ; (80066cc <_dtoa_r+0x5ac>) + 800650e: f7fa fac1 bl 8000a94 <__aeabi_dcmplt> + 8006512: 2800 cmp r0, #0 + 8006514: d07e beq.n 8006614 <_dtoa_r+0x4f4> + 8006516: 9b02 ldr r3, [sp, #8] + 8006518: 2b00 cmp r3, #0 + 800651a: d07b beq.n 8006614 <_dtoa_r+0x4f4> + 800651c: f1bb 0f00 cmp.w fp, #0 + 8006520: dd38 ble.n 8006594 <_dtoa_r+0x474> + 8006522: e9dd 0110 ldrd r0, r1, [sp, #64] ; 0x40 + 8006526: 2200 movs r2, #0 + 8006528: 4b69 ldr r3, [pc, #420] ; (80066d0 <_dtoa_r+0x5b0>) + 800652a: f7fa f841 bl 80005b0 <__aeabi_dmul> + 800652e: 465c mov r4, fp + 8006530: e9cd 0104 strd r0, r1, [sp, #16] + 8006534: f109 38ff add.w r8, r9, #4294967295 ; 0xffffffff + 8006538: 3701 adds r7, #1 + 800653a: 4638 mov r0, r7 + 800653c: f7f9 ffce bl 80004dc <__aeabi_i2d> + 8006540: e9dd 2304 ldrd r2, r3, [sp, #16] + 8006544: f7fa f834 bl 80005b0 <__aeabi_dmul> + 8006548: 2200 movs r2, #0 + 800654a: 4b62 ldr r3, [pc, #392] ; (80066d4 <_dtoa_r+0x5b4>) + 800654c: f7f9 fe7a bl 8000244 <__adddf3> + 8006550: f1a1 7650 sub.w r6, r1, #54525952 ; 0x3400000 + 8006554: e9cd 0110 strd r0, r1, [sp, #64] ; 0x40 + 8006558: 9611 str r6, [sp, #68] ; 0x44 + 800655a: 2c00 cmp r4, #0 + 800655c: d15d bne.n 800661a <_dtoa_r+0x4fa> + 800655e: e9dd 0104 ldrd r0, r1, [sp, #16] + 8006562: 2200 movs r2, #0 + 8006564: 4b5c ldr r3, [pc, #368] ; (80066d8 <_dtoa_r+0x5b8>) + 8006566: f7f9 fe6b bl 8000240 <__aeabi_dsub> + 800656a: 4602 mov r2, r0 + 800656c: 460b mov r3, r1 + 800656e: e9cd 2304 strd r2, r3, [sp, #16] + 8006572: 4633 mov r3, r6 + 8006574: 9a10 ldr r2, [sp, #64] ; 0x40 + 8006576: f7fa faab bl 8000ad0 <__aeabi_dcmpgt> + 800657a: 2800 cmp r0, #0 + 800657c: f040 829e bne.w 8006abc <_dtoa_r+0x99c> + 8006580: e9dd 0104 ldrd r0, r1, [sp, #16] + 8006584: 9a10 ldr r2, [sp, #64] ; 0x40 + 8006586: f106 4300 add.w r3, r6, #2147483648 ; 0x80000000 + 800658a: f7fa fa83 bl 8000a94 <__aeabi_dcmplt> + 800658e: 2800 cmp r0, #0 + 8006590: f040 8292 bne.w 8006ab8 <_dtoa_r+0x998> + 8006594: e9dd 340c ldrd r3, r4, [sp, #48] ; 0x30 + 8006598: e9cd 3404 strd r3, r4, [sp, #16] + 800659c: 9b17 ldr r3, [sp, #92] ; 0x5c + 800659e: 2b00 cmp r3, #0 + 80065a0: f2c0 8153 blt.w 800684a <_dtoa_r+0x72a> + 80065a4: f1b9 0f0e cmp.w r9, #14 + 80065a8: f300 814f bgt.w 800684a <_dtoa_r+0x72a> + 80065ac: 4b45 ldr r3, [pc, #276] ; (80066c4 <_dtoa_r+0x5a4>) + 80065ae: eb03 03c9 add.w r3, r3, r9, lsl #3 + 80065b2: e9d3 3400 ldrd r3, r4, [r3] + 80065b6: e9cd 3406 strd r3, r4, [sp, #24] + 80065ba: 9b23 ldr r3, [sp, #140] ; 0x8c + 80065bc: 2b00 cmp r3, #0 + 80065be: f280 80db bge.w 8006778 <_dtoa_r+0x658> + 80065c2: 9b02 ldr r3, [sp, #8] + 80065c4: 2b00 cmp r3, #0 + 80065c6: f300 80d7 bgt.w 8006778 <_dtoa_r+0x658> + 80065ca: f040 8274 bne.w 8006ab6 <_dtoa_r+0x996> + 80065ce: e9dd 0106 ldrd r0, r1, [sp, #24] + 80065d2: 2200 movs r2, #0 + 80065d4: 4b40 ldr r3, [pc, #256] ; (80066d8 <_dtoa_r+0x5b8>) + 80065d6: f7f9 ffeb bl 80005b0 <__aeabi_dmul> + 80065da: e9dd 2304 ldrd r2, r3, [sp, #16] + 80065de: f7fa fa6d bl 8000abc <__aeabi_dcmpge> + 80065e2: 9c02 ldr r4, [sp, #8] + 80065e4: 4626 mov r6, r4 + 80065e6: 2800 cmp r0, #0 + 80065e8: f040 824a bne.w 8006a80 <_dtoa_r+0x960> + 80065ec: 2331 movs r3, #49 ; 0x31 + 80065ee: 9f08 ldr r7, [sp, #32] + 80065f0: f109 0901 add.w r9, r9, #1 + 80065f4: f807 3b01 strb.w r3, [r7], #1 + 80065f8: e246 b.n 8006a88 <_dtoa_r+0x968> + 80065fa: 07e2 lsls r2, r4, #31 + 80065fc: d505 bpl.n 800660a <_dtoa_r+0x4ea> + 80065fe: e9d6 2300 ldrd r2, r3, [r6] + 8006602: f7f9 ffd5 bl 80005b0 <__aeabi_dmul> + 8006606: 2301 movs r3, #1 + 8006608: 3701 adds r7, #1 + 800660a: 1064 asrs r4, r4, #1 + 800660c: 3608 adds r6, #8 + 800660e: e76d b.n 80064ec <_dtoa_r+0x3cc> + 8006610: 2702 movs r7, #2 + 8006612: e770 b.n 80064f6 <_dtoa_r+0x3d6> + 8006614: 46c8 mov r8, r9 + 8006616: 9c02 ldr r4, [sp, #8] + 8006618: e78f b.n 800653a <_dtoa_r+0x41a> + 800661a: 9908 ldr r1, [sp, #32] + 800661c: 4b29 ldr r3, [pc, #164] ; (80066c4 <_dtoa_r+0x5a4>) + 800661e: 4421 add r1, r4 + 8006620: 9112 str r1, [sp, #72] ; 0x48 + 8006622: 990b ldr r1, [sp, #44] ; 0x2c + 8006624: eb03 03c4 add.w r3, r3, r4, lsl #3 + 8006628: e9dd 6710 ldrd r6, r7, [sp, #64] ; 0x40 + 800662c: e953 2302 ldrd r2, r3, [r3, #-8] + 8006630: 2900 cmp r1, #0 + 8006632: d055 beq.n 80066e0 <_dtoa_r+0x5c0> + 8006634: 2000 movs r0, #0 + 8006636: 4929 ldr r1, [pc, #164] ; (80066dc <_dtoa_r+0x5bc>) + 8006638: f7fa f8e4 bl 8000804 <__aeabi_ddiv> + 800663c: 463b mov r3, r7 + 800663e: 4632 mov r2, r6 + 8006640: f7f9 fdfe bl 8000240 <__aeabi_dsub> + 8006644: e9cd 0110 strd r0, r1, [sp, #64] ; 0x40 + 8006648: 9f08 ldr r7, [sp, #32] + 800664a: e9dd 0104 ldrd r0, r1, [sp, #16] + 800664e: f7fa fa5f bl 8000b10 <__aeabi_d2iz> + 8006652: 4604 mov r4, r0 + 8006654: f7f9 ff42 bl 80004dc <__aeabi_i2d> + 8006658: 4602 mov r2, r0 + 800665a: 460b mov r3, r1 + 800665c: e9dd 0104 ldrd r0, r1, [sp, #16] + 8006660: f7f9 fdee bl 8000240 <__aeabi_dsub> + 8006664: 4602 mov r2, r0 + 8006666: 460b mov r3, r1 + 8006668: 3430 adds r4, #48 ; 0x30 + 800666a: e9cd 2304 strd r2, r3, [sp, #16] + 800666e: e9dd 2310 ldrd r2, r3, [sp, #64] ; 0x40 + 8006672: f807 4b01 strb.w r4, [r7], #1 + 8006676: f7fa fa0d bl 8000a94 <__aeabi_dcmplt> + 800667a: 2800 cmp r0, #0 + 800667c: d174 bne.n 8006768 <_dtoa_r+0x648> + 800667e: e9dd 2304 ldrd r2, r3, [sp, #16] + 8006682: 2000 movs r0, #0 + 8006684: 4911 ldr r1, [pc, #68] ; (80066cc <_dtoa_r+0x5ac>) + 8006686: f7f9 fddb bl 8000240 <__aeabi_dsub> + 800668a: e9dd 2310 ldrd r2, r3, [sp, #64] ; 0x40 + 800668e: f7fa fa01 bl 8000a94 <__aeabi_dcmplt> + 8006692: 2800 cmp r0, #0 + 8006694: f040 80b6 bne.w 8006804 <_dtoa_r+0x6e4> + 8006698: 9b12 ldr r3, [sp, #72] ; 0x48 + 800669a: 429f cmp r7, r3 + 800669c: f43f af7a beq.w 8006594 <_dtoa_r+0x474> + 80066a0: e9dd 0110 ldrd r0, r1, [sp, #64] ; 0x40 + 80066a4: 2200 movs r2, #0 + 80066a6: 4b0a ldr r3, [pc, #40] ; (80066d0 <_dtoa_r+0x5b0>) + 80066a8: f7f9 ff82 bl 80005b0 <__aeabi_dmul> + 80066ac: 2200 movs r2, #0 + 80066ae: e9cd 0110 strd r0, r1, [sp, #64] ; 0x40 + 80066b2: e9dd 0104 ldrd r0, r1, [sp, #16] + 80066b6: 4b06 ldr r3, [pc, #24] ; (80066d0 <_dtoa_r+0x5b0>) + 80066b8: f7f9 ff7a bl 80005b0 <__aeabi_dmul> + 80066bc: e9cd 0104 strd r0, r1, [sp, #16] + 80066c0: e7c3 b.n 800664a <_dtoa_r+0x52a> + 80066c2: bf00 nop + 80066c4: 08008f88 .word 0x08008f88 + 80066c8: 08008f60 .word 0x08008f60 + 80066cc: 3ff00000 .word 0x3ff00000 + 80066d0: 40240000 .word 0x40240000 + 80066d4: 401c0000 .word 0x401c0000 + 80066d8: 40140000 .word 0x40140000 + 80066dc: 3fe00000 .word 0x3fe00000 + 80066e0: 4630 mov r0, r6 + 80066e2: 4639 mov r1, r7 + 80066e4: f7f9 ff64 bl 80005b0 <__aeabi_dmul> + 80066e8: 9b12 ldr r3, [sp, #72] ; 0x48 + 80066ea: e9cd 0110 strd r0, r1, [sp, #64] ; 0x40 + 80066ee: 9c08 ldr r4, [sp, #32] + 80066f0: 9314 str r3, [sp, #80] ; 0x50 + 80066f2: e9dd 0104 ldrd r0, r1, [sp, #16] + 80066f6: f7fa fa0b bl 8000b10 <__aeabi_d2iz> + 80066fa: 9015 str r0, [sp, #84] ; 0x54 + 80066fc: f7f9 feee bl 80004dc <__aeabi_i2d> + 8006700: 4602 mov r2, r0 + 8006702: 460b mov r3, r1 + 8006704: e9dd 0104 ldrd r0, r1, [sp, #16] + 8006708: f7f9 fd9a bl 8000240 <__aeabi_dsub> + 800670c: 9b15 ldr r3, [sp, #84] ; 0x54 + 800670e: 4606 mov r6, r0 + 8006710: 3330 adds r3, #48 ; 0x30 + 8006712: f804 3b01 strb.w r3, [r4], #1 + 8006716: 9b12 ldr r3, [sp, #72] ; 0x48 + 8006718: 460f mov r7, r1 + 800671a: 429c cmp r4, r3 + 800671c: f04f 0200 mov.w r2, #0 + 8006720: d124 bne.n 800676c <_dtoa_r+0x64c> + 8006722: e9dd 0110 ldrd r0, r1, [sp, #64] ; 0x40 + 8006726: 4bb3 ldr r3, [pc, #716] ; (80069f4 <_dtoa_r+0x8d4>) + 8006728: f7f9 fd8c bl 8000244 <__adddf3> + 800672c: 4602 mov r2, r0 + 800672e: 460b mov r3, r1 + 8006730: 4630 mov r0, r6 + 8006732: 4639 mov r1, r7 + 8006734: f7fa f9cc bl 8000ad0 <__aeabi_dcmpgt> + 8006738: 2800 cmp r0, #0 + 800673a: d162 bne.n 8006802 <_dtoa_r+0x6e2> + 800673c: e9dd 2310 ldrd r2, r3, [sp, #64] ; 0x40 + 8006740: 2000 movs r0, #0 + 8006742: 49ac ldr r1, [pc, #688] ; (80069f4 <_dtoa_r+0x8d4>) + 8006744: f7f9 fd7c bl 8000240 <__aeabi_dsub> + 8006748: 4602 mov r2, r0 + 800674a: 460b mov r3, r1 + 800674c: 4630 mov r0, r6 + 800674e: 4639 mov r1, r7 + 8006750: f7fa f9a0 bl 8000a94 <__aeabi_dcmplt> + 8006754: 2800 cmp r0, #0 + 8006756: f43f af1d beq.w 8006594 <_dtoa_r+0x474> + 800675a: 9f14 ldr r7, [sp, #80] ; 0x50 + 800675c: 1e7b subs r3, r7, #1 + 800675e: 9314 str r3, [sp, #80] ; 0x50 + 8006760: f817 3c01 ldrb.w r3, [r7, #-1] + 8006764: 2b30 cmp r3, #48 ; 0x30 + 8006766: d0f8 beq.n 800675a <_dtoa_r+0x63a> + 8006768: 46c1 mov r9, r8 + 800676a: e03a b.n 80067e2 <_dtoa_r+0x6c2> + 800676c: 4ba2 ldr r3, [pc, #648] ; (80069f8 <_dtoa_r+0x8d8>) + 800676e: f7f9 ff1f bl 80005b0 <__aeabi_dmul> + 8006772: e9cd 0104 strd r0, r1, [sp, #16] + 8006776: e7bc b.n 80066f2 <_dtoa_r+0x5d2> + 8006778: 9f08 ldr r7, [sp, #32] + 800677a: e9dd 2306 ldrd r2, r3, [sp, #24] + 800677e: e9dd 0104 ldrd r0, r1, [sp, #16] + 8006782: f7fa f83f bl 8000804 <__aeabi_ddiv> + 8006786: f7fa f9c3 bl 8000b10 <__aeabi_d2iz> + 800678a: 4604 mov r4, r0 + 800678c: f7f9 fea6 bl 80004dc <__aeabi_i2d> + 8006790: e9dd 2306 ldrd r2, r3, [sp, #24] + 8006794: f7f9 ff0c bl 80005b0 <__aeabi_dmul> + 8006798: f104 0630 add.w r6, r4, #48 ; 0x30 + 800679c: 460b mov r3, r1 + 800679e: 4602 mov r2, r0 + 80067a0: e9dd 0104 ldrd r0, r1, [sp, #16] + 80067a4: f7f9 fd4c bl 8000240 <__aeabi_dsub> + 80067a8: f807 6b01 strb.w r6, [r7], #1 + 80067ac: 9e08 ldr r6, [sp, #32] + 80067ae: 9b02 ldr r3, [sp, #8] + 80067b0: 1bbe subs r6, r7, r6 + 80067b2: 42b3 cmp r3, r6 + 80067b4: d13a bne.n 800682c <_dtoa_r+0x70c> + 80067b6: 4602 mov r2, r0 + 80067b8: 460b mov r3, r1 + 80067ba: f7f9 fd43 bl 8000244 <__adddf3> + 80067be: 4602 mov r2, r0 + 80067c0: 460b mov r3, r1 + 80067c2: e9cd 2302 strd r2, r3, [sp, #8] + 80067c6: e9dd 2306 ldrd r2, r3, [sp, #24] + 80067ca: f7fa f981 bl 8000ad0 <__aeabi_dcmpgt> + 80067ce: bb58 cbnz r0, 8006828 <_dtoa_r+0x708> + 80067d0: e9dd 2306 ldrd r2, r3, [sp, #24] + 80067d4: e9dd 0102 ldrd r0, r1, [sp, #8] + 80067d8: f7fa f952 bl 8000a80 <__aeabi_dcmpeq> + 80067dc: b108 cbz r0, 80067e2 <_dtoa_r+0x6c2> + 80067de: 07e1 lsls r1, r4, #31 + 80067e0: d422 bmi.n 8006828 <_dtoa_r+0x708> + 80067e2: 4628 mov r0, r5 + 80067e4: 4651 mov r1, sl + 80067e6: f000 faf5 bl 8006dd4 <_Bfree> + 80067ea: 2300 movs r3, #0 + 80067ec: 703b strb r3, [r7, #0] + 80067ee: 9b24 ldr r3, [sp, #144] ; 0x90 + 80067f0: f109 0001 add.w r0, r9, #1 + 80067f4: 6018 str r0, [r3, #0] + 80067f6: 9b26 ldr r3, [sp, #152] ; 0x98 + 80067f8: 2b00 cmp r3, #0 + 80067fa: f43f acdf beq.w 80061bc <_dtoa_r+0x9c> + 80067fe: 601f str r7, [r3, #0] + 8006800: e4dc b.n 80061bc <_dtoa_r+0x9c> + 8006802: 4627 mov r7, r4 + 8006804: 463b mov r3, r7 + 8006806: 461f mov r7, r3 + 8006808: f813 2d01 ldrb.w r2, [r3, #-1]! + 800680c: 2a39 cmp r2, #57 ; 0x39 + 800680e: d107 bne.n 8006820 <_dtoa_r+0x700> + 8006810: 9a08 ldr r2, [sp, #32] + 8006812: 429a cmp r2, r3 + 8006814: d1f7 bne.n 8006806 <_dtoa_r+0x6e6> + 8006816: 2230 movs r2, #48 ; 0x30 + 8006818: 9908 ldr r1, [sp, #32] + 800681a: f108 0801 add.w r8, r8, #1 + 800681e: 700a strb r2, [r1, #0] + 8006820: 781a ldrb r2, [r3, #0] + 8006822: 3201 adds r2, #1 + 8006824: 701a strb r2, [r3, #0] + 8006826: e79f b.n 8006768 <_dtoa_r+0x648> + 8006828: 46c8 mov r8, r9 + 800682a: e7eb b.n 8006804 <_dtoa_r+0x6e4> + 800682c: 2200 movs r2, #0 + 800682e: 4b72 ldr r3, [pc, #456] ; (80069f8 <_dtoa_r+0x8d8>) + 8006830: f7f9 febe bl 80005b0 <__aeabi_dmul> + 8006834: 4602 mov r2, r0 + 8006836: 460b mov r3, r1 + 8006838: e9cd 2304 strd r2, r3, [sp, #16] + 800683c: 2200 movs r2, #0 + 800683e: 2300 movs r3, #0 + 8006840: f7fa f91e bl 8000a80 <__aeabi_dcmpeq> + 8006844: 2800 cmp r0, #0 + 8006846: d098 beq.n 800677a <_dtoa_r+0x65a> + 8006848: e7cb b.n 80067e2 <_dtoa_r+0x6c2> + 800684a: 9a0b ldr r2, [sp, #44] ; 0x2c + 800684c: 2a00 cmp r2, #0 + 800684e: f000 80cd beq.w 80069ec <_dtoa_r+0x8cc> + 8006852: 9a22 ldr r2, [sp, #136] ; 0x88 + 8006854: 2a01 cmp r2, #1 + 8006856: f300 80af bgt.w 80069b8 <_dtoa_r+0x898> + 800685a: 9a13 ldr r2, [sp, #76] ; 0x4c + 800685c: 2a00 cmp r2, #0 + 800685e: f000 80a7 beq.w 80069b0 <_dtoa_r+0x890> + 8006862: f203 4333 addw r3, r3, #1075 ; 0x433 + 8006866: 9c0a ldr r4, [sp, #40] ; 0x28 + 8006868: 9f06 ldr r7, [sp, #24] + 800686a: 9a06 ldr r2, [sp, #24] + 800686c: 2101 movs r1, #1 + 800686e: 441a add r2, r3 + 8006870: 9206 str r2, [sp, #24] + 8006872: 9a09 ldr r2, [sp, #36] ; 0x24 + 8006874: 4628 mov r0, r5 + 8006876: 441a add r2, r3 + 8006878: 9209 str r2, [sp, #36] ; 0x24 + 800687a: f000 fb65 bl 8006f48 <__i2b> + 800687e: 4606 mov r6, r0 + 8006880: 2f00 cmp r7, #0 + 8006882: dd0c ble.n 800689e <_dtoa_r+0x77e> + 8006884: 9b09 ldr r3, [sp, #36] ; 0x24 + 8006886: 2b00 cmp r3, #0 + 8006888: dd09 ble.n 800689e <_dtoa_r+0x77e> + 800688a: 42bb cmp r3, r7 + 800688c: bfa8 it ge + 800688e: 463b movge r3, r7 + 8006890: 9a06 ldr r2, [sp, #24] + 8006892: 1aff subs r7, r7, r3 + 8006894: 1ad2 subs r2, r2, r3 + 8006896: 9206 str r2, [sp, #24] + 8006898: 9a09 ldr r2, [sp, #36] ; 0x24 + 800689a: 1ad3 subs r3, r2, r3 + 800689c: 9309 str r3, [sp, #36] ; 0x24 + 800689e: 9b0a ldr r3, [sp, #40] ; 0x28 + 80068a0: b1f3 cbz r3, 80068e0 <_dtoa_r+0x7c0> + 80068a2: 9b0b ldr r3, [sp, #44] ; 0x2c + 80068a4: 2b00 cmp r3, #0 + 80068a6: f000 80a9 beq.w 80069fc <_dtoa_r+0x8dc> + 80068aa: 2c00 cmp r4, #0 + 80068ac: dd10 ble.n 80068d0 <_dtoa_r+0x7b0> + 80068ae: 4631 mov r1, r6 + 80068b0: 4622 mov r2, r4 + 80068b2: 4628 mov r0, r5 + 80068b4: f000 fc02 bl 80070bc <__pow5mult> + 80068b8: 4652 mov r2, sl + 80068ba: 4601 mov r1, r0 + 80068bc: 4606 mov r6, r0 + 80068be: 4628 mov r0, r5 + 80068c0: f000 fb58 bl 8006f74 <__multiply> + 80068c4: 4680 mov r8, r0 + 80068c6: 4651 mov r1, sl + 80068c8: 4628 mov r0, r5 + 80068ca: f000 fa83 bl 8006dd4 <_Bfree> + 80068ce: 46c2 mov sl, r8 + 80068d0: 9b0a ldr r3, [sp, #40] ; 0x28 + 80068d2: 1b1a subs r2, r3, r4 + 80068d4: d004 beq.n 80068e0 <_dtoa_r+0x7c0> + 80068d6: 4651 mov r1, sl + 80068d8: 4628 mov r0, r5 + 80068da: f000 fbef bl 80070bc <__pow5mult> + 80068de: 4682 mov sl, r0 + 80068e0: 2101 movs r1, #1 + 80068e2: 4628 mov r0, r5 + 80068e4: f000 fb30 bl 8006f48 <__i2b> + 80068e8: 9b0e ldr r3, [sp, #56] ; 0x38 + 80068ea: 4604 mov r4, r0 + 80068ec: 2b00 cmp r3, #0 + 80068ee: f340 8087 ble.w 8006a00 <_dtoa_r+0x8e0> + 80068f2: 461a mov r2, r3 + 80068f4: 4601 mov r1, r0 + 80068f6: 4628 mov r0, r5 + 80068f8: f000 fbe0 bl 80070bc <__pow5mult> + 80068fc: 9b22 ldr r3, [sp, #136] ; 0x88 + 80068fe: 4604 mov r4, r0 + 8006900: 2b01 cmp r3, #1 + 8006902: f340 8080 ble.w 8006a06 <_dtoa_r+0x8e6> + 8006906: f04f 0800 mov.w r8, #0 + 800690a: 6923 ldr r3, [r4, #16] + 800690c: eb04 0383 add.w r3, r4, r3, lsl #2 + 8006910: 6918 ldr r0, [r3, #16] + 8006912: f000 facb bl 8006eac <__hi0bits> + 8006916: f1c0 0020 rsb r0, r0, #32 + 800691a: 9b09 ldr r3, [sp, #36] ; 0x24 + 800691c: 4418 add r0, r3 + 800691e: f010 001f ands.w r0, r0, #31 + 8006922: f000 8092 beq.w 8006a4a <_dtoa_r+0x92a> + 8006926: f1c0 0320 rsb r3, r0, #32 + 800692a: 2b04 cmp r3, #4 + 800692c: f340 808a ble.w 8006a44 <_dtoa_r+0x924> + 8006930: f1c0 001c rsb r0, r0, #28 + 8006934: 9b06 ldr r3, [sp, #24] + 8006936: 4407 add r7, r0 + 8006938: 4403 add r3, r0 + 800693a: 9306 str r3, [sp, #24] + 800693c: 9b09 ldr r3, [sp, #36] ; 0x24 + 800693e: 4403 add r3, r0 + 8006940: 9309 str r3, [sp, #36] ; 0x24 + 8006942: 9b06 ldr r3, [sp, #24] + 8006944: 2b00 cmp r3, #0 + 8006946: dd05 ble.n 8006954 <_dtoa_r+0x834> + 8006948: 4651 mov r1, sl + 800694a: 461a mov r2, r3 + 800694c: 4628 mov r0, r5 + 800694e: f000 fc0f bl 8007170 <__lshift> + 8006952: 4682 mov sl, r0 + 8006954: 9b09 ldr r3, [sp, #36] ; 0x24 + 8006956: 2b00 cmp r3, #0 + 8006958: dd05 ble.n 8006966 <_dtoa_r+0x846> + 800695a: 4621 mov r1, r4 + 800695c: 461a mov r2, r3 + 800695e: 4628 mov r0, r5 + 8006960: f000 fc06 bl 8007170 <__lshift> + 8006964: 4604 mov r4, r0 + 8006966: 9b0f ldr r3, [sp, #60] ; 0x3c + 8006968: 2b00 cmp r3, #0 + 800696a: d070 beq.n 8006a4e <_dtoa_r+0x92e> + 800696c: 4621 mov r1, r4 + 800696e: 4650 mov r0, sl + 8006970: f000 fc6a bl 8007248 <__mcmp> + 8006974: 2800 cmp r0, #0 + 8006976: da6a bge.n 8006a4e <_dtoa_r+0x92e> + 8006978: 2300 movs r3, #0 + 800697a: 4651 mov r1, sl + 800697c: 220a movs r2, #10 + 800697e: 4628 mov r0, r5 + 8006980: f000 fa4a bl 8006e18 <__multadd> + 8006984: 9b0b ldr r3, [sp, #44] ; 0x2c + 8006986: 4682 mov sl, r0 + 8006988: f109 39ff add.w r9, r9, #4294967295 ; 0xffffffff + 800698c: 2b00 cmp r3, #0 + 800698e: f000 8193 beq.w 8006cb8 <_dtoa_r+0xb98> + 8006992: 4631 mov r1, r6 + 8006994: 2300 movs r3, #0 + 8006996: 220a movs r2, #10 + 8006998: 4628 mov r0, r5 + 800699a: f000 fa3d bl 8006e18 <__multadd> + 800699e: f1bb 0f00 cmp.w fp, #0 + 80069a2: 4606 mov r6, r0 + 80069a4: f300 8093 bgt.w 8006ace <_dtoa_r+0x9ae> + 80069a8: 9b22 ldr r3, [sp, #136] ; 0x88 + 80069aa: 2b02 cmp r3, #2 + 80069ac: dc57 bgt.n 8006a5e <_dtoa_r+0x93e> + 80069ae: e08e b.n 8006ace <_dtoa_r+0x9ae> + 80069b0: 9b16 ldr r3, [sp, #88] ; 0x58 + 80069b2: f1c3 0336 rsb r3, r3, #54 ; 0x36 + 80069b6: e756 b.n 8006866 <_dtoa_r+0x746> + 80069b8: 9b02 ldr r3, [sp, #8] + 80069ba: 1e5c subs r4, r3, #1 + 80069bc: 9b0a ldr r3, [sp, #40] ; 0x28 + 80069be: 42a3 cmp r3, r4 + 80069c0: bfb7 itett lt + 80069c2: 9b0a ldrlt r3, [sp, #40] ; 0x28 + 80069c4: 1b1c subge r4, r3, r4 + 80069c6: 1ae2 sublt r2, r4, r3 + 80069c8: 9b0e ldrlt r3, [sp, #56] ; 0x38 + 80069ca: bfbe ittt lt + 80069cc: 940a strlt r4, [sp, #40] ; 0x28 + 80069ce: 189b addlt r3, r3, r2 + 80069d0: 930e strlt r3, [sp, #56] ; 0x38 + 80069d2: 9b02 ldr r3, [sp, #8] + 80069d4: bfb8 it lt + 80069d6: 2400 movlt r4, #0 + 80069d8: 2b00 cmp r3, #0 + 80069da: bfbb ittet lt + 80069dc: 9b06 ldrlt r3, [sp, #24] + 80069de: 9a02 ldrlt r2, [sp, #8] + 80069e0: 9f06 ldrge r7, [sp, #24] + 80069e2: 1a9f sublt r7, r3, r2 + 80069e4: bfac ite ge + 80069e6: 9b02 ldrge r3, [sp, #8] + 80069e8: 2300 movlt r3, #0 + 80069ea: e73e b.n 800686a <_dtoa_r+0x74a> + 80069ec: 9c0a ldr r4, [sp, #40] ; 0x28 + 80069ee: 9f06 ldr r7, [sp, #24] + 80069f0: 9e0b ldr r6, [sp, #44] ; 0x2c + 80069f2: e745 b.n 8006880 <_dtoa_r+0x760> + 80069f4: 3fe00000 .word 0x3fe00000 + 80069f8: 40240000 .word 0x40240000 + 80069fc: 9a0a ldr r2, [sp, #40] ; 0x28 + 80069fe: e76a b.n 80068d6 <_dtoa_r+0x7b6> + 8006a00: 9b22 ldr r3, [sp, #136] ; 0x88 + 8006a02: 2b01 cmp r3, #1 + 8006a04: dc19 bgt.n 8006a3a <_dtoa_r+0x91a> + 8006a06: 9b04 ldr r3, [sp, #16] + 8006a08: b9bb cbnz r3, 8006a3a <_dtoa_r+0x91a> + 8006a0a: 9b05 ldr r3, [sp, #20] + 8006a0c: f3c3 0313 ubfx r3, r3, #0, #20 + 8006a10: b99b cbnz r3, 8006a3a <_dtoa_r+0x91a> + 8006a12: 9b05 ldr r3, [sp, #20] + 8006a14: f023 4300 bic.w r3, r3, #2147483648 ; 0x80000000 + 8006a18: 0d1b lsrs r3, r3, #20 + 8006a1a: 051b lsls r3, r3, #20 + 8006a1c: b183 cbz r3, 8006a40 <_dtoa_r+0x920> + 8006a1e: f04f 0801 mov.w r8, #1 + 8006a22: 9b06 ldr r3, [sp, #24] + 8006a24: 3301 adds r3, #1 + 8006a26: 9306 str r3, [sp, #24] + 8006a28: 9b09 ldr r3, [sp, #36] ; 0x24 + 8006a2a: 3301 adds r3, #1 + 8006a2c: 9309 str r3, [sp, #36] ; 0x24 + 8006a2e: 9b0e ldr r3, [sp, #56] ; 0x38 + 8006a30: 2b00 cmp r3, #0 + 8006a32: f47f af6a bne.w 800690a <_dtoa_r+0x7ea> + 8006a36: 2001 movs r0, #1 + 8006a38: e76f b.n 800691a <_dtoa_r+0x7fa> + 8006a3a: f04f 0800 mov.w r8, #0 + 8006a3e: e7f6 b.n 8006a2e <_dtoa_r+0x90e> + 8006a40: 4698 mov r8, r3 + 8006a42: e7f4 b.n 8006a2e <_dtoa_r+0x90e> + 8006a44: f43f af7d beq.w 8006942 <_dtoa_r+0x822> + 8006a48: 4618 mov r0, r3 + 8006a4a: 301c adds r0, #28 + 8006a4c: e772 b.n 8006934 <_dtoa_r+0x814> + 8006a4e: 9b02 ldr r3, [sp, #8] + 8006a50: 2b00 cmp r3, #0 + 8006a52: dc36 bgt.n 8006ac2 <_dtoa_r+0x9a2> + 8006a54: 9b22 ldr r3, [sp, #136] ; 0x88 + 8006a56: 2b02 cmp r3, #2 + 8006a58: dd33 ble.n 8006ac2 <_dtoa_r+0x9a2> + 8006a5a: f8dd b008 ldr.w fp, [sp, #8] + 8006a5e: f1bb 0f00 cmp.w fp, #0 + 8006a62: d10d bne.n 8006a80 <_dtoa_r+0x960> + 8006a64: 4621 mov r1, r4 + 8006a66: 465b mov r3, fp + 8006a68: 2205 movs r2, #5 + 8006a6a: 4628 mov r0, r5 + 8006a6c: f000 f9d4 bl 8006e18 <__multadd> + 8006a70: 4601 mov r1, r0 + 8006a72: 4604 mov r4, r0 + 8006a74: 4650 mov r0, sl + 8006a76: f000 fbe7 bl 8007248 <__mcmp> + 8006a7a: 2800 cmp r0, #0 + 8006a7c: f73f adb6 bgt.w 80065ec <_dtoa_r+0x4cc> + 8006a80: 9b23 ldr r3, [sp, #140] ; 0x8c + 8006a82: 9f08 ldr r7, [sp, #32] + 8006a84: ea6f 0903 mvn.w r9, r3 + 8006a88: f04f 0800 mov.w r8, #0 + 8006a8c: 4621 mov r1, r4 + 8006a8e: 4628 mov r0, r5 + 8006a90: f000 f9a0 bl 8006dd4 <_Bfree> + 8006a94: 2e00 cmp r6, #0 + 8006a96: f43f aea4 beq.w 80067e2 <_dtoa_r+0x6c2> + 8006a9a: f1b8 0f00 cmp.w r8, #0 + 8006a9e: d005 beq.n 8006aac <_dtoa_r+0x98c> + 8006aa0: 45b0 cmp r8, r6 + 8006aa2: d003 beq.n 8006aac <_dtoa_r+0x98c> + 8006aa4: 4641 mov r1, r8 + 8006aa6: 4628 mov r0, r5 + 8006aa8: f000 f994 bl 8006dd4 <_Bfree> + 8006aac: 4631 mov r1, r6 + 8006aae: 4628 mov r0, r5 + 8006ab0: f000 f990 bl 8006dd4 <_Bfree> + 8006ab4: e695 b.n 80067e2 <_dtoa_r+0x6c2> + 8006ab6: 2400 movs r4, #0 + 8006ab8: 4626 mov r6, r4 + 8006aba: e7e1 b.n 8006a80 <_dtoa_r+0x960> + 8006abc: 46c1 mov r9, r8 + 8006abe: 4626 mov r6, r4 + 8006ac0: e594 b.n 80065ec <_dtoa_r+0x4cc> + 8006ac2: 9b0b ldr r3, [sp, #44] ; 0x2c + 8006ac4: f8dd b008 ldr.w fp, [sp, #8] + 8006ac8: 2b00 cmp r3, #0 + 8006aca: f000 80fc beq.w 8006cc6 <_dtoa_r+0xba6> + 8006ace: 2f00 cmp r7, #0 + 8006ad0: dd05 ble.n 8006ade <_dtoa_r+0x9be> + 8006ad2: 4631 mov r1, r6 + 8006ad4: 463a mov r2, r7 + 8006ad6: 4628 mov r0, r5 + 8006ad8: f000 fb4a bl 8007170 <__lshift> + 8006adc: 4606 mov r6, r0 + 8006ade: f1b8 0f00 cmp.w r8, #0 + 8006ae2: d05c beq.n 8006b9e <_dtoa_r+0xa7e> + 8006ae4: 4628 mov r0, r5 + 8006ae6: 6871 ldr r1, [r6, #4] + 8006ae8: f000 f934 bl 8006d54 <_Balloc> + 8006aec: 4607 mov r7, r0 + 8006aee: b928 cbnz r0, 8006afc <_dtoa_r+0x9dc> + 8006af0: 4602 mov r2, r0 + 8006af2: f240 21ea movw r1, #746 ; 0x2ea + 8006af6: 4b7e ldr r3, [pc, #504] ; (8006cf0 <_dtoa_r+0xbd0>) + 8006af8: f7ff bb26 b.w 8006148 <_dtoa_r+0x28> + 8006afc: 6932 ldr r2, [r6, #16] + 8006afe: f106 010c add.w r1, r6, #12 + 8006b02: 3202 adds r2, #2 + 8006b04: 0092 lsls r2, r2, #2 + 8006b06: 300c adds r0, #12 + 8006b08: f000 f90a bl 8006d20 + 8006b0c: 2201 movs r2, #1 + 8006b0e: 4639 mov r1, r7 + 8006b10: 4628 mov r0, r5 + 8006b12: f000 fb2d bl 8007170 <__lshift> + 8006b16: 46b0 mov r8, r6 + 8006b18: 4606 mov r6, r0 + 8006b1a: 9b08 ldr r3, [sp, #32] + 8006b1c: 3301 adds r3, #1 + 8006b1e: 9302 str r3, [sp, #8] + 8006b20: 9b08 ldr r3, [sp, #32] + 8006b22: 445b add r3, fp + 8006b24: 930a str r3, [sp, #40] ; 0x28 + 8006b26: 9b04 ldr r3, [sp, #16] + 8006b28: f003 0301 and.w r3, r3, #1 + 8006b2c: 9309 str r3, [sp, #36] ; 0x24 + 8006b2e: 9b02 ldr r3, [sp, #8] + 8006b30: 4621 mov r1, r4 + 8006b32: 4650 mov r0, sl + 8006b34: f103 3bff add.w fp, r3, #4294967295 ; 0xffffffff + 8006b38: f7ff fa62 bl 8006000 + 8006b3c: 4603 mov r3, r0 + 8006b3e: 4641 mov r1, r8 + 8006b40: 3330 adds r3, #48 ; 0x30 + 8006b42: 9004 str r0, [sp, #16] + 8006b44: 4650 mov r0, sl + 8006b46: 930b str r3, [sp, #44] ; 0x2c + 8006b48: f000 fb7e bl 8007248 <__mcmp> + 8006b4c: 4632 mov r2, r6 + 8006b4e: 9006 str r0, [sp, #24] + 8006b50: 4621 mov r1, r4 + 8006b52: 4628 mov r0, r5 + 8006b54: f000 fb94 bl 8007280 <__mdiff> + 8006b58: 68c2 ldr r2, [r0, #12] + 8006b5a: 4607 mov r7, r0 + 8006b5c: 9b0b ldr r3, [sp, #44] ; 0x2c + 8006b5e: bb02 cbnz r2, 8006ba2 <_dtoa_r+0xa82> + 8006b60: 4601 mov r1, r0 + 8006b62: 4650 mov r0, sl + 8006b64: f000 fb70 bl 8007248 <__mcmp> + 8006b68: 4602 mov r2, r0 + 8006b6a: 9b0b ldr r3, [sp, #44] ; 0x2c + 8006b6c: 4639 mov r1, r7 + 8006b6e: 4628 mov r0, r5 + 8006b70: e9cd 320b strd r3, r2, [sp, #44] ; 0x2c + 8006b74: f000 f92e bl 8006dd4 <_Bfree> + 8006b78: 9b22 ldr r3, [sp, #136] ; 0x88 + 8006b7a: 9a0c ldr r2, [sp, #48] ; 0x30 + 8006b7c: 9f02 ldr r7, [sp, #8] + 8006b7e: ea43 0102 orr.w r1, r3, r2 + 8006b82: 9b09 ldr r3, [sp, #36] ; 0x24 + 8006b84: 430b orrs r3, r1 + 8006b86: 9b0b ldr r3, [sp, #44] ; 0x2c + 8006b88: d10d bne.n 8006ba6 <_dtoa_r+0xa86> + 8006b8a: 2b39 cmp r3, #57 ; 0x39 + 8006b8c: d027 beq.n 8006bde <_dtoa_r+0xabe> + 8006b8e: 9a06 ldr r2, [sp, #24] + 8006b90: 2a00 cmp r2, #0 + 8006b92: dd01 ble.n 8006b98 <_dtoa_r+0xa78> + 8006b94: 9b04 ldr r3, [sp, #16] + 8006b96: 3331 adds r3, #49 ; 0x31 + 8006b98: f88b 3000 strb.w r3, [fp] + 8006b9c: e776 b.n 8006a8c <_dtoa_r+0x96c> + 8006b9e: 4630 mov r0, r6 + 8006ba0: e7b9 b.n 8006b16 <_dtoa_r+0x9f6> + 8006ba2: 2201 movs r2, #1 + 8006ba4: e7e2 b.n 8006b6c <_dtoa_r+0xa4c> + 8006ba6: 9906 ldr r1, [sp, #24] + 8006ba8: 2900 cmp r1, #0 + 8006baa: db04 blt.n 8006bb6 <_dtoa_r+0xa96> + 8006bac: 9822 ldr r0, [sp, #136] ; 0x88 + 8006bae: 4301 orrs r1, r0 + 8006bb0: 9809 ldr r0, [sp, #36] ; 0x24 + 8006bb2: 4301 orrs r1, r0 + 8006bb4: d120 bne.n 8006bf8 <_dtoa_r+0xad8> + 8006bb6: 2a00 cmp r2, #0 + 8006bb8: ddee ble.n 8006b98 <_dtoa_r+0xa78> + 8006bba: 4651 mov r1, sl + 8006bbc: 2201 movs r2, #1 + 8006bbe: 4628 mov r0, r5 + 8006bc0: 9302 str r3, [sp, #8] + 8006bc2: f000 fad5 bl 8007170 <__lshift> + 8006bc6: 4621 mov r1, r4 + 8006bc8: 4682 mov sl, r0 + 8006bca: f000 fb3d bl 8007248 <__mcmp> + 8006bce: 2800 cmp r0, #0 + 8006bd0: 9b02 ldr r3, [sp, #8] + 8006bd2: dc02 bgt.n 8006bda <_dtoa_r+0xaba> + 8006bd4: d1e0 bne.n 8006b98 <_dtoa_r+0xa78> + 8006bd6: 07da lsls r2, r3, #31 + 8006bd8: d5de bpl.n 8006b98 <_dtoa_r+0xa78> + 8006bda: 2b39 cmp r3, #57 ; 0x39 + 8006bdc: d1da bne.n 8006b94 <_dtoa_r+0xa74> + 8006bde: 2339 movs r3, #57 ; 0x39 + 8006be0: f88b 3000 strb.w r3, [fp] + 8006be4: 463b mov r3, r7 + 8006be6: 461f mov r7, r3 + 8006be8: f817 2c01 ldrb.w r2, [r7, #-1] + 8006bec: 3b01 subs r3, #1 + 8006bee: 2a39 cmp r2, #57 ; 0x39 + 8006bf0: d050 beq.n 8006c94 <_dtoa_r+0xb74> + 8006bf2: 3201 adds r2, #1 + 8006bf4: 701a strb r2, [r3, #0] + 8006bf6: e749 b.n 8006a8c <_dtoa_r+0x96c> + 8006bf8: 2a00 cmp r2, #0 + 8006bfa: dd03 ble.n 8006c04 <_dtoa_r+0xae4> + 8006bfc: 2b39 cmp r3, #57 ; 0x39 + 8006bfe: d0ee beq.n 8006bde <_dtoa_r+0xabe> + 8006c00: 3301 adds r3, #1 + 8006c02: e7c9 b.n 8006b98 <_dtoa_r+0xa78> + 8006c04: 9a02 ldr r2, [sp, #8] + 8006c06: 990a ldr r1, [sp, #40] ; 0x28 + 8006c08: f802 3c01 strb.w r3, [r2, #-1] + 8006c0c: 428a cmp r2, r1 + 8006c0e: d02a beq.n 8006c66 <_dtoa_r+0xb46> + 8006c10: 4651 mov r1, sl + 8006c12: 2300 movs r3, #0 + 8006c14: 220a movs r2, #10 + 8006c16: 4628 mov r0, r5 + 8006c18: f000 f8fe bl 8006e18 <__multadd> + 8006c1c: 45b0 cmp r8, r6 + 8006c1e: 4682 mov sl, r0 + 8006c20: f04f 0300 mov.w r3, #0 + 8006c24: f04f 020a mov.w r2, #10 + 8006c28: 4641 mov r1, r8 + 8006c2a: 4628 mov r0, r5 + 8006c2c: d107 bne.n 8006c3e <_dtoa_r+0xb1e> + 8006c2e: f000 f8f3 bl 8006e18 <__multadd> + 8006c32: 4680 mov r8, r0 + 8006c34: 4606 mov r6, r0 + 8006c36: 9b02 ldr r3, [sp, #8] + 8006c38: 3301 adds r3, #1 + 8006c3a: 9302 str r3, [sp, #8] + 8006c3c: e777 b.n 8006b2e <_dtoa_r+0xa0e> + 8006c3e: f000 f8eb bl 8006e18 <__multadd> + 8006c42: 4631 mov r1, r6 + 8006c44: 4680 mov r8, r0 + 8006c46: 2300 movs r3, #0 + 8006c48: 220a movs r2, #10 + 8006c4a: 4628 mov r0, r5 + 8006c4c: f000 f8e4 bl 8006e18 <__multadd> + 8006c50: 4606 mov r6, r0 + 8006c52: e7f0 b.n 8006c36 <_dtoa_r+0xb16> + 8006c54: f1bb 0f00 cmp.w fp, #0 + 8006c58: bfcc ite gt + 8006c5a: 465f movgt r7, fp + 8006c5c: 2701 movle r7, #1 + 8006c5e: f04f 0800 mov.w r8, #0 + 8006c62: 9a08 ldr r2, [sp, #32] + 8006c64: 4417 add r7, r2 + 8006c66: 4651 mov r1, sl + 8006c68: 2201 movs r2, #1 + 8006c6a: 4628 mov r0, r5 + 8006c6c: 9302 str r3, [sp, #8] + 8006c6e: f000 fa7f bl 8007170 <__lshift> + 8006c72: 4621 mov r1, r4 + 8006c74: 4682 mov sl, r0 + 8006c76: f000 fae7 bl 8007248 <__mcmp> + 8006c7a: 2800 cmp r0, #0 + 8006c7c: dcb2 bgt.n 8006be4 <_dtoa_r+0xac4> + 8006c7e: d102 bne.n 8006c86 <_dtoa_r+0xb66> + 8006c80: 9b02 ldr r3, [sp, #8] + 8006c82: 07db lsls r3, r3, #31 + 8006c84: d4ae bmi.n 8006be4 <_dtoa_r+0xac4> + 8006c86: 463b mov r3, r7 + 8006c88: 461f mov r7, r3 + 8006c8a: f813 2d01 ldrb.w r2, [r3, #-1]! + 8006c8e: 2a30 cmp r2, #48 ; 0x30 + 8006c90: d0fa beq.n 8006c88 <_dtoa_r+0xb68> + 8006c92: e6fb b.n 8006a8c <_dtoa_r+0x96c> + 8006c94: 9a08 ldr r2, [sp, #32] + 8006c96: 429a cmp r2, r3 + 8006c98: d1a5 bne.n 8006be6 <_dtoa_r+0xac6> + 8006c9a: 2331 movs r3, #49 ; 0x31 + 8006c9c: f109 0901 add.w r9, r9, #1 + 8006ca0: 7013 strb r3, [r2, #0] + 8006ca2: e6f3 b.n 8006a8c <_dtoa_r+0x96c> + 8006ca4: 4b13 ldr r3, [pc, #76] ; (8006cf4 <_dtoa_r+0xbd4>) + 8006ca6: f7ff baa7 b.w 80061f8 <_dtoa_r+0xd8> + 8006caa: 9b26 ldr r3, [sp, #152] ; 0x98 + 8006cac: 2b00 cmp r3, #0 + 8006cae: f47f aa80 bne.w 80061b2 <_dtoa_r+0x92> + 8006cb2: 4b11 ldr r3, [pc, #68] ; (8006cf8 <_dtoa_r+0xbd8>) + 8006cb4: f7ff baa0 b.w 80061f8 <_dtoa_r+0xd8> + 8006cb8: f1bb 0f00 cmp.w fp, #0 + 8006cbc: dc03 bgt.n 8006cc6 <_dtoa_r+0xba6> + 8006cbe: 9b22 ldr r3, [sp, #136] ; 0x88 + 8006cc0: 2b02 cmp r3, #2 + 8006cc2: f73f aecc bgt.w 8006a5e <_dtoa_r+0x93e> + 8006cc6: 9f08 ldr r7, [sp, #32] + 8006cc8: 4621 mov r1, r4 + 8006cca: 4650 mov r0, sl + 8006ccc: f7ff f998 bl 8006000 + 8006cd0: 9a08 ldr r2, [sp, #32] + 8006cd2: f100 0330 add.w r3, r0, #48 ; 0x30 + 8006cd6: f807 3b01 strb.w r3, [r7], #1 + 8006cda: 1aba subs r2, r7, r2 + 8006cdc: 4593 cmp fp, r2 + 8006cde: ddb9 ble.n 8006c54 <_dtoa_r+0xb34> + 8006ce0: 4651 mov r1, sl + 8006ce2: 2300 movs r3, #0 + 8006ce4: 220a movs r2, #10 + 8006ce6: 4628 mov r0, r5 + 8006ce8: f000 f896 bl 8006e18 <__multadd> + 8006cec: 4682 mov sl, r0 + 8006cee: e7eb b.n 8006cc8 <_dtoa_r+0xba8> + 8006cf0: 08008eef .word 0x08008eef + 8006cf4: 08008e48 .word 0x08008e48 + 8006cf8: 08008e6c .word 0x08008e6c -080059a4 <_localeconv_r>: - 80059a4: 4800 ldr r0, [pc, #0] ; (80059a8 <_localeconv_r+0x4>) - 80059a6: 4770 bx lr - 80059a8: 20000160 .word 0x20000160 +08006cfc <_localeconv_r>: + 8006cfc: 4800 ldr r0, [pc, #0] ; (8006d00 <_localeconv_r+0x4>) + 8006cfe: 4770 bx lr + 8006d00: 20000160 .word 0x20000160 -080059ac : - 80059ac: 4603 mov r3, r0 - 80059ae: b510 push {r4, lr} - 80059b0: b2c9 uxtb r1, r1 - 80059b2: 4402 add r2, r0 - 80059b4: 4293 cmp r3, r2 - 80059b6: 4618 mov r0, r3 - 80059b8: d101 bne.n 80059be - 80059ba: 2000 movs r0, #0 - 80059bc: e003 b.n 80059c6 - 80059be: 7804 ldrb r4, [r0, #0] - 80059c0: 3301 adds r3, #1 - 80059c2: 428c cmp r4, r1 - 80059c4: d1f6 bne.n 80059b4 - 80059c6: bd10 pop {r4, pc} +08006d04 : + 8006d04: 4603 mov r3, r0 + 8006d06: b510 push {r4, lr} + 8006d08: b2c9 uxtb r1, r1 + 8006d0a: 4402 add r2, r0 + 8006d0c: 4293 cmp r3, r2 + 8006d0e: 4618 mov r0, r3 + 8006d10: d101 bne.n 8006d16 + 8006d12: 2000 movs r0, #0 + 8006d14: e003 b.n 8006d1e + 8006d16: 7804 ldrb r4, [r0, #0] + 8006d18: 3301 adds r3, #1 + 8006d1a: 428c cmp r4, r1 + 8006d1c: d1f6 bne.n 8006d0c + 8006d1e: bd10 pop {r4, pc} -080059c8 : - 80059c8: 440a add r2, r1 - 80059ca: 4291 cmp r1, r2 - 80059cc: f100 33ff add.w r3, r0, #4294967295 ; 0xffffffff - 80059d0: d100 bne.n 80059d4 - 80059d2: 4770 bx lr - 80059d4: b510 push {r4, lr} - 80059d6: f811 4b01 ldrb.w r4, [r1], #1 - 80059da: 4291 cmp r1, r2 - 80059dc: f803 4f01 strb.w r4, [r3, #1]! - 80059e0: d1f9 bne.n 80059d6 - 80059e2: bd10 pop {r4, pc} +08006d20 : + 8006d20: 440a add r2, r1 + 8006d22: 4291 cmp r1, r2 + 8006d24: f100 33ff add.w r3, r0, #4294967295 ; 0xffffffff + 8006d28: d100 bne.n 8006d2c + 8006d2a: 4770 bx lr + 8006d2c: b510 push {r4, lr} + 8006d2e: f811 4b01 ldrb.w r4, [r1], #1 + 8006d32: 4291 cmp r1, r2 + 8006d34: f803 4f01 strb.w r4, [r3, #1]! + 8006d38: d1f9 bne.n 8006d2e + 8006d3a: bd10 pop {r4, pc} -080059e4 <__malloc_lock>: - 80059e4: 4801 ldr r0, [pc, #4] ; (80059ec <__malloc_lock+0x8>) - 80059e6: f000 bd26 b.w 8006436 <__retarget_lock_acquire_recursive> - 80059ea: bf00 nop - 80059ec: 20000290 .word 0x20000290 +08006d3c <__malloc_lock>: + 8006d3c: 4801 ldr r0, [pc, #4] ; (8006d44 <__malloc_lock+0x8>) + 8006d3e: f000 bd26 b.w 800778e <__retarget_lock_acquire_recursive> + 8006d42: bf00 nop + 8006d44: 200002f8 .word 0x200002f8 -080059f0 <__malloc_unlock>: - 80059f0: 4801 ldr r0, [pc, #4] ; (80059f8 <__malloc_unlock+0x8>) - 80059f2: f000 bd21 b.w 8006438 <__retarget_lock_release_recursive> - 80059f6: bf00 nop - 80059f8: 20000290 .word 0x20000290 +08006d48 <__malloc_unlock>: + 8006d48: 4801 ldr r0, [pc, #4] ; (8006d50 <__malloc_unlock+0x8>) + 8006d4a: f000 bd21 b.w 8007790 <__retarget_lock_release_recursive> + 8006d4e: bf00 nop + 8006d50: 200002f8 .word 0x200002f8 -080059fc <_Balloc>: - 80059fc: b570 push {r4, r5, r6, lr} - 80059fe: 6a46 ldr r6, [r0, #36] ; 0x24 - 8005a00: 4604 mov r4, r0 - 8005a02: 460d mov r5, r1 - 8005a04: b976 cbnz r6, 8005a24 <_Balloc+0x28> - 8005a06: 2010 movs r0, #16 - 8005a08: f7fe fc0a bl 8004220 - 8005a0c: 4602 mov r2, r0 - 8005a0e: 6260 str r0, [r4, #36] ; 0x24 - 8005a10: b920 cbnz r0, 8005a1c <_Balloc+0x20> - 8005a12: 2166 movs r1, #102 ; 0x66 - 8005a14: 4b17 ldr r3, [pc, #92] ; (8005a74 <_Balloc+0x78>) - 8005a16: 4818 ldr r0, [pc, #96] ; (8005a78 <_Balloc+0x7c>) - 8005a18: f000 fcdc bl 80063d4 <__assert_func> - 8005a1c: e9c0 6601 strd r6, r6, [r0, #4] - 8005a20: 6006 str r6, [r0, #0] - 8005a22: 60c6 str r6, [r0, #12] - 8005a24: 6a66 ldr r6, [r4, #36] ; 0x24 - 8005a26: 68f3 ldr r3, [r6, #12] - 8005a28: b183 cbz r3, 8005a4c <_Balloc+0x50> - 8005a2a: 6a63 ldr r3, [r4, #36] ; 0x24 - 8005a2c: 68db ldr r3, [r3, #12] - 8005a2e: f853 0025 ldr.w r0, [r3, r5, lsl #2] - 8005a32: b9b8 cbnz r0, 8005a64 <_Balloc+0x68> - 8005a34: 2101 movs r1, #1 - 8005a36: fa01 f605 lsl.w r6, r1, r5 - 8005a3a: 1d72 adds r2, r6, #5 - 8005a3c: 4620 mov r0, r4 - 8005a3e: 0092 lsls r2, r2, #2 - 8005a40: f000 fb5e bl 8006100 <_calloc_r> - 8005a44: b160 cbz r0, 8005a60 <_Balloc+0x64> - 8005a46: e9c0 5601 strd r5, r6, [r0, #4] - 8005a4a: e00e b.n 8005a6a <_Balloc+0x6e> - 8005a4c: 2221 movs r2, #33 ; 0x21 - 8005a4e: 2104 movs r1, #4 - 8005a50: 4620 mov r0, r4 - 8005a52: f000 fb55 bl 8006100 <_calloc_r> - 8005a56: 6a63 ldr r3, [r4, #36] ; 0x24 - 8005a58: 60f0 str r0, [r6, #12] - 8005a5a: 68db ldr r3, [r3, #12] - 8005a5c: 2b00 cmp r3, #0 - 8005a5e: d1e4 bne.n 8005a2a <_Balloc+0x2e> - 8005a60: 2000 movs r0, #0 - 8005a62: bd70 pop {r4, r5, r6, pc} - 8005a64: 6802 ldr r2, [r0, #0] - 8005a66: f843 2025 str.w r2, [r3, r5, lsl #2] - 8005a6a: 2300 movs r3, #0 - 8005a6c: e9c0 3303 strd r3, r3, [r0, #12] - 8005a70: e7f7 b.n 8005a62 <_Balloc+0x66> - 8005a72: bf00 nop - 8005a74: 08007b19 .word 0x08007b19 - 8005a78: 08007ba0 .word 0x08007ba0 - -08005a7c <_Bfree>: - 8005a7c: b570 push {r4, r5, r6, lr} - 8005a7e: 6a46 ldr r6, [r0, #36] ; 0x24 - 8005a80: 4605 mov r5, r0 - 8005a82: 460c mov r4, r1 - 8005a84: b976 cbnz r6, 8005aa4 <_Bfree+0x28> - 8005a86: 2010 movs r0, #16 - 8005a88: f7fe fbca bl 8004220 - 8005a8c: 4602 mov r2, r0 - 8005a8e: 6268 str r0, [r5, #36] ; 0x24 - 8005a90: b920 cbnz r0, 8005a9c <_Bfree+0x20> - 8005a92: 218a movs r1, #138 ; 0x8a - 8005a94: 4b08 ldr r3, [pc, #32] ; (8005ab8 <_Bfree+0x3c>) - 8005a96: 4809 ldr r0, [pc, #36] ; (8005abc <_Bfree+0x40>) - 8005a98: f000 fc9c bl 80063d4 <__assert_func> - 8005a9c: e9c0 6601 strd r6, r6, [r0, #4] - 8005aa0: 6006 str r6, [r0, #0] - 8005aa2: 60c6 str r6, [r0, #12] - 8005aa4: b13c cbz r4, 8005ab6 <_Bfree+0x3a> - 8005aa6: 6a6b ldr r3, [r5, #36] ; 0x24 - 8005aa8: 6862 ldr r2, [r4, #4] - 8005aaa: 68db ldr r3, [r3, #12] - 8005aac: f853 1022 ldr.w r1, [r3, r2, lsl #2] - 8005ab0: 6021 str r1, [r4, #0] - 8005ab2: f843 4022 str.w r4, [r3, r2, lsl #2] - 8005ab6: bd70 pop {r4, r5, r6, pc} - 8005ab8: 08007b19 .word 0x08007b19 - 8005abc: 08007ba0 .word 0x08007ba0 - -08005ac0 <__multadd>: - 8005ac0: e92d 41f0 stmdb sp!, {r4, r5, r6, r7, r8, lr} - 8005ac4: 4698 mov r8, r3 - 8005ac6: 460c mov r4, r1 - 8005ac8: 2300 movs r3, #0 - 8005aca: 690e ldr r6, [r1, #16] - 8005acc: 4607 mov r7, r0 - 8005ace: f101 0014 add.w r0, r1, #20 - 8005ad2: 6805 ldr r5, [r0, #0] - 8005ad4: 3301 adds r3, #1 - 8005ad6: b2a9 uxth r1, r5 - 8005ad8: fb02 8101 mla r1, r2, r1, r8 - 8005adc: 0c2d lsrs r5, r5, #16 - 8005ade: ea4f 4c11 mov.w ip, r1, lsr #16 - 8005ae2: fb02 c505 mla r5, r2, r5, ip - 8005ae6: b289 uxth r1, r1 - 8005ae8: eb01 4105 add.w r1, r1, r5, lsl #16 - 8005aec: 429e cmp r6, r3 - 8005aee: ea4f 4815 mov.w r8, r5, lsr #16 - 8005af2: f840 1b04 str.w r1, [r0], #4 - 8005af6: dcec bgt.n 8005ad2 <__multadd+0x12> - 8005af8: f1b8 0f00 cmp.w r8, #0 - 8005afc: d022 beq.n 8005b44 <__multadd+0x84> - 8005afe: 68a3 ldr r3, [r4, #8] - 8005b00: 42b3 cmp r3, r6 - 8005b02: dc19 bgt.n 8005b38 <__multadd+0x78> - 8005b04: 6861 ldr r1, [r4, #4] - 8005b06: 4638 mov r0, r7 - 8005b08: 3101 adds r1, #1 - 8005b0a: f7ff ff77 bl 80059fc <_Balloc> - 8005b0e: 4605 mov r5, r0 - 8005b10: b928 cbnz r0, 8005b1e <__multadd+0x5e> - 8005b12: 4602 mov r2, r0 - 8005b14: 21b5 movs r1, #181 ; 0xb5 - 8005b16: 4b0d ldr r3, [pc, #52] ; (8005b4c <__multadd+0x8c>) - 8005b18: 480d ldr r0, [pc, #52] ; (8005b50 <__multadd+0x90>) - 8005b1a: f000 fc5b bl 80063d4 <__assert_func> - 8005b1e: 6922 ldr r2, [r4, #16] - 8005b20: f104 010c add.w r1, r4, #12 - 8005b24: 3202 adds r2, #2 - 8005b26: 0092 lsls r2, r2, #2 - 8005b28: 300c adds r0, #12 - 8005b2a: f7ff ff4d bl 80059c8 - 8005b2e: 4621 mov r1, r4 - 8005b30: 4638 mov r0, r7 - 8005b32: f7ff ffa3 bl 8005a7c <_Bfree> - 8005b36: 462c mov r4, r5 - 8005b38: eb04 0386 add.w r3, r4, r6, lsl #2 - 8005b3c: 3601 adds r6, #1 - 8005b3e: f8c3 8014 str.w r8, [r3, #20] - 8005b42: 6126 str r6, [r4, #16] - 8005b44: 4620 mov r0, r4 - 8005b46: e8bd 81f0 ldmia.w sp!, {r4, r5, r6, r7, r8, pc} - 8005b4a: bf00 nop - 8005b4c: 08007b8f .word 0x08007b8f - 8005b50: 08007ba0 .word 0x08007ba0 - -08005b54 <__hi0bits>: - 8005b54: 0c02 lsrs r2, r0, #16 - 8005b56: 0412 lsls r2, r2, #16 - 8005b58: 4603 mov r3, r0 - 8005b5a: b9ca cbnz r2, 8005b90 <__hi0bits+0x3c> - 8005b5c: 0403 lsls r3, r0, #16 - 8005b5e: 2010 movs r0, #16 - 8005b60: f013 4f7f tst.w r3, #4278190080 ; 0xff000000 - 8005b64: bf04 itt eq - 8005b66: 021b lsleq r3, r3, #8 - 8005b68: 3008 addeq r0, #8 - 8005b6a: f013 4f70 tst.w r3, #4026531840 ; 0xf0000000 - 8005b6e: bf04 itt eq - 8005b70: 011b lsleq r3, r3, #4 - 8005b72: 3004 addeq r0, #4 - 8005b74: f013 4f40 tst.w r3, #3221225472 ; 0xc0000000 - 8005b78: bf04 itt eq - 8005b7a: 009b lsleq r3, r3, #2 - 8005b7c: 3002 addeq r0, #2 - 8005b7e: 2b00 cmp r3, #0 - 8005b80: db05 blt.n 8005b8e <__hi0bits+0x3a> - 8005b82: f013 4f80 tst.w r3, #1073741824 ; 0x40000000 - 8005b86: f100 0001 add.w r0, r0, #1 - 8005b8a: bf08 it eq - 8005b8c: 2020 moveq r0, #32 - 8005b8e: 4770 bx lr - 8005b90: 2000 movs r0, #0 - 8005b92: e7e5 b.n 8005b60 <__hi0bits+0xc> - -08005b94 <__lo0bits>: - 8005b94: 6803 ldr r3, [r0, #0] - 8005b96: 4602 mov r2, r0 - 8005b98: f013 0007 ands.w r0, r3, #7 - 8005b9c: d00b beq.n 8005bb6 <__lo0bits+0x22> - 8005b9e: 07d9 lsls r1, r3, #31 - 8005ba0: d422 bmi.n 8005be8 <__lo0bits+0x54> - 8005ba2: 0798 lsls r0, r3, #30 - 8005ba4: bf49 itett mi - 8005ba6: 085b lsrmi r3, r3, #1 - 8005ba8: 089b lsrpl r3, r3, #2 - 8005baa: 2001 movmi r0, #1 - 8005bac: 6013 strmi r3, [r2, #0] - 8005bae: bf5c itt pl - 8005bb0: 2002 movpl r0, #2 - 8005bb2: 6013 strpl r3, [r2, #0] - 8005bb4: 4770 bx lr - 8005bb6: b299 uxth r1, r3 - 8005bb8: b909 cbnz r1, 8005bbe <__lo0bits+0x2a> - 8005bba: 2010 movs r0, #16 - 8005bbc: 0c1b lsrs r3, r3, #16 - 8005bbe: f013 0fff tst.w r3, #255 ; 0xff - 8005bc2: bf04 itt eq - 8005bc4: 0a1b lsreq r3, r3, #8 - 8005bc6: 3008 addeq r0, #8 - 8005bc8: 0719 lsls r1, r3, #28 - 8005bca: bf04 itt eq - 8005bcc: 091b lsreq r3, r3, #4 - 8005bce: 3004 addeq r0, #4 - 8005bd0: 0799 lsls r1, r3, #30 - 8005bd2: bf04 itt eq - 8005bd4: 089b lsreq r3, r3, #2 - 8005bd6: 3002 addeq r0, #2 - 8005bd8: 07d9 lsls r1, r3, #31 - 8005bda: d403 bmi.n 8005be4 <__lo0bits+0x50> - 8005bdc: 085b lsrs r3, r3, #1 - 8005bde: f100 0001 add.w r0, r0, #1 - 8005be2: d003 beq.n 8005bec <__lo0bits+0x58> - 8005be4: 6013 str r3, [r2, #0] - 8005be6: 4770 bx lr - 8005be8: 2000 movs r0, #0 - 8005bea: 4770 bx lr - 8005bec: 2020 movs r0, #32 - 8005bee: 4770 bx lr - -08005bf0 <__i2b>: - 8005bf0: b510 push {r4, lr} - 8005bf2: 460c mov r4, r1 - 8005bf4: 2101 movs r1, #1 - 8005bf6: f7ff ff01 bl 80059fc <_Balloc> - 8005bfa: 4602 mov r2, r0 - 8005bfc: b928 cbnz r0, 8005c0a <__i2b+0x1a> - 8005bfe: f44f 71a0 mov.w r1, #320 ; 0x140 - 8005c02: 4b04 ldr r3, [pc, #16] ; (8005c14 <__i2b+0x24>) - 8005c04: 4804 ldr r0, [pc, #16] ; (8005c18 <__i2b+0x28>) - 8005c06: f000 fbe5 bl 80063d4 <__assert_func> - 8005c0a: 2301 movs r3, #1 - 8005c0c: 6144 str r4, [r0, #20] - 8005c0e: 6103 str r3, [r0, #16] - 8005c10: bd10 pop {r4, pc} - 8005c12: bf00 nop - 8005c14: 08007b8f .word 0x08007b8f - 8005c18: 08007ba0 .word 0x08007ba0 - -08005c1c <__multiply>: - 8005c1c: e92d 4ff0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, fp, lr} - 8005c20: 4614 mov r4, r2 - 8005c22: 690a ldr r2, [r1, #16] - 8005c24: 6923 ldr r3, [r4, #16] - 8005c26: 460d mov r5, r1 - 8005c28: 429a cmp r2, r3 - 8005c2a: bfbe ittt lt - 8005c2c: 460b movlt r3, r1 - 8005c2e: 4625 movlt r5, r4 - 8005c30: 461c movlt r4, r3 - 8005c32: f8d5 a010 ldr.w sl, [r5, #16] - 8005c36: f8d4 9010 ldr.w r9, [r4, #16] - 8005c3a: 68ab ldr r3, [r5, #8] - 8005c3c: 6869 ldr r1, [r5, #4] - 8005c3e: eb0a 0709 add.w r7, sl, r9 - 8005c42: 42bb cmp r3, r7 - 8005c44: b085 sub sp, #20 - 8005c46: bfb8 it lt - 8005c48: 3101 addlt r1, #1 - 8005c4a: f7ff fed7 bl 80059fc <_Balloc> - 8005c4e: b930 cbnz r0, 8005c5e <__multiply+0x42> - 8005c50: 4602 mov r2, r0 - 8005c52: f240 115d movw r1, #349 ; 0x15d - 8005c56: 4b41 ldr r3, [pc, #260] ; (8005d5c <__multiply+0x140>) - 8005c58: 4841 ldr r0, [pc, #260] ; (8005d60 <__multiply+0x144>) - 8005c5a: f000 fbbb bl 80063d4 <__assert_func> - 8005c5e: f100 0614 add.w r6, r0, #20 - 8005c62: 4633 mov r3, r6 - 8005c64: 2200 movs r2, #0 - 8005c66: eb06 0887 add.w r8, r6, r7, lsl #2 - 8005c6a: 4543 cmp r3, r8 - 8005c6c: d31e bcc.n 8005cac <__multiply+0x90> - 8005c6e: f105 0c14 add.w ip, r5, #20 - 8005c72: f104 0314 add.w r3, r4, #20 - 8005c76: eb0c 0c8a add.w ip, ip, sl, lsl #2 - 8005c7a: eb03 0289 add.w r2, r3, r9, lsl #2 - 8005c7e: 9202 str r2, [sp, #8] - 8005c80: ebac 0205 sub.w r2, ip, r5 - 8005c84: 3a15 subs r2, #21 - 8005c86: f022 0203 bic.w r2, r2, #3 - 8005c8a: 3204 adds r2, #4 - 8005c8c: f105 0115 add.w r1, r5, #21 - 8005c90: 458c cmp ip, r1 - 8005c92: bf38 it cc - 8005c94: 2204 movcc r2, #4 - 8005c96: 9201 str r2, [sp, #4] - 8005c98: 9a02 ldr r2, [sp, #8] - 8005c9a: 9303 str r3, [sp, #12] - 8005c9c: 429a cmp r2, r3 - 8005c9e: d808 bhi.n 8005cb2 <__multiply+0x96> - 8005ca0: 2f00 cmp r7, #0 - 8005ca2: dc55 bgt.n 8005d50 <__multiply+0x134> - 8005ca4: 6107 str r7, [r0, #16] - 8005ca6: b005 add sp, #20 - 8005ca8: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc} - 8005cac: f843 2b04 str.w r2, [r3], #4 - 8005cb0: e7db b.n 8005c6a <__multiply+0x4e> - 8005cb2: f8b3 a000 ldrh.w sl, [r3] - 8005cb6: f1ba 0f00 cmp.w sl, #0 - 8005cba: d020 beq.n 8005cfe <__multiply+0xe2> - 8005cbc: 46b1 mov r9, r6 - 8005cbe: 2200 movs r2, #0 - 8005cc0: f105 0e14 add.w lr, r5, #20 - 8005cc4: f85e 4b04 ldr.w r4, [lr], #4 - 8005cc8: f8d9 b000 ldr.w fp, [r9] - 8005ccc: b2a1 uxth r1, r4 - 8005cce: fa1f fb8b uxth.w fp, fp - 8005cd2: fb0a b101 mla r1, sl, r1, fp - 8005cd6: 4411 add r1, r2 - 8005cd8: f8d9 2000 ldr.w r2, [r9] - 8005cdc: 0c24 lsrs r4, r4, #16 - 8005cde: 0c12 lsrs r2, r2, #16 - 8005ce0: fb0a 2404 mla r4, sl, r4, r2 - 8005ce4: eb04 4411 add.w r4, r4, r1, lsr #16 - 8005ce8: b289 uxth r1, r1 - 8005cea: ea41 4104 orr.w r1, r1, r4, lsl #16 - 8005cee: 45f4 cmp ip, lr - 8005cf0: ea4f 4214 mov.w r2, r4, lsr #16 - 8005cf4: f849 1b04 str.w r1, [r9], #4 - 8005cf8: d8e4 bhi.n 8005cc4 <__multiply+0xa8> - 8005cfa: 9901 ldr r1, [sp, #4] - 8005cfc: 5072 str r2, [r6, r1] - 8005cfe: 9a03 ldr r2, [sp, #12] - 8005d00: 3304 adds r3, #4 - 8005d02: f8b2 9002 ldrh.w r9, [r2, #2] - 8005d06: f1b9 0f00 cmp.w r9, #0 - 8005d0a: d01f beq.n 8005d4c <__multiply+0x130> - 8005d0c: 46b6 mov lr, r6 - 8005d0e: f04f 0a00 mov.w sl, #0 - 8005d12: 6834 ldr r4, [r6, #0] - 8005d14: f105 0114 add.w r1, r5, #20 - 8005d18: 880a ldrh r2, [r1, #0] - 8005d1a: f8be b002 ldrh.w fp, [lr, #2] - 8005d1e: b2a4 uxth r4, r4 - 8005d20: fb09 b202 mla r2, r9, r2, fp - 8005d24: 4492 add sl, r2 - 8005d26: ea44 440a orr.w r4, r4, sl, lsl #16 - 8005d2a: f84e 4b04 str.w r4, [lr], #4 - 8005d2e: f851 4b04 ldr.w r4, [r1], #4 - 8005d32: f8be 2000 ldrh.w r2, [lr] - 8005d36: 0c24 lsrs r4, r4, #16 - 8005d38: fb09 2404 mla r4, r9, r4, r2 - 8005d3c: 458c cmp ip, r1 - 8005d3e: eb04 441a add.w r4, r4, sl, lsr #16 - 8005d42: ea4f 4a14 mov.w sl, r4, lsr #16 - 8005d46: d8e7 bhi.n 8005d18 <__multiply+0xfc> - 8005d48: 9a01 ldr r2, [sp, #4] - 8005d4a: 50b4 str r4, [r6, r2] - 8005d4c: 3604 adds r6, #4 - 8005d4e: e7a3 b.n 8005c98 <__multiply+0x7c> - 8005d50: f858 3d04 ldr.w r3, [r8, #-4]! - 8005d54: 2b00 cmp r3, #0 - 8005d56: d1a5 bne.n 8005ca4 <__multiply+0x88> - 8005d58: 3f01 subs r7, #1 - 8005d5a: e7a1 b.n 8005ca0 <__multiply+0x84> - 8005d5c: 08007b8f .word 0x08007b8f - 8005d60: 08007ba0 .word 0x08007ba0 - -08005d64 <__pow5mult>: - 8005d64: e92d 43f8 stmdb sp!, {r3, r4, r5, r6, r7, r8, r9, lr} - 8005d68: 4615 mov r5, r2 - 8005d6a: f012 0203 ands.w r2, r2, #3 - 8005d6e: 4606 mov r6, r0 - 8005d70: 460f mov r7, r1 - 8005d72: d007 beq.n 8005d84 <__pow5mult+0x20> - 8005d74: 4c25 ldr r4, [pc, #148] ; (8005e0c <__pow5mult+0xa8>) - 8005d76: 3a01 subs r2, #1 - 8005d78: 2300 movs r3, #0 - 8005d7a: f854 2022 ldr.w r2, [r4, r2, lsl #2] - 8005d7e: f7ff fe9f bl 8005ac0 <__multadd> - 8005d82: 4607 mov r7, r0 - 8005d84: 10ad asrs r5, r5, #2 - 8005d86: d03d beq.n 8005e04 <__pow5mult+0xa0> - 8005d88: 6a74 ldr r4, [r6, #36] ; 0x24 - 8005d8a: b97c cbnz r4, 8005dac <__pow5mult+0x48> - 8005d8c: 2010 movs r0, #16 - 8005d8e: f7fe fa47 bl 8004220 - 8005d92: 4602 mov r2, r0 - 8005d94: 6270 str r0, [r6, #36] ; 0x24 - 8005d96: b928 cbnz r0, 8005da4 <__pow5mult+0x40> - 8005d98: f44f 71d7 mov.w r1, #430 ; 0x1ae - 8005d9c: 4b1c ldr r3, [pc, #112] ; (8005e10 <__pow5mult+0xac>) - 8005d9e: 481d ldr r0, [pc, #116] ; (8005e14 <__pow5mult+0xb0>) - 8005da0: f000 fb18 bl 80063d4 <__assert_func> - 8005da4: e9c0 4401 strd r4, r4, [r0, #4] - 8005da8: 6004 str r4, [r0, #0] - 8005daa: 60c4 str r4, [r0, #12] - 8005dac: f8d6 8024 ldr.w r8, [r6, #36] ; 0x24 - 8005db0: f8d8 4008 ldr.w r4, [r8, #8] - 8005db4: b94c cbnz r4, 8005dca <__pow5mult+0x66> - 8005db6: f240 2171 movw r1, #625 ; 0x271 - 8005dba: 4630 mov r0, r6 - 8005dbc: f7ff ff18 bl 8005bf0 <__i2b> - 8005dc0: 2300 movs r3, #0 - 8005dc2: 4604 mov r4, r0 - 8005dc4: f8c8 0008 str.w r0, [r8, #8] - 8005dc8: 6003 str r3, [r0, #0] - 8005dca: f04f 0900 mov.w r9, #0 - 8005dce: 07eb lsls r3, r5, #31 - 8005dd0: d50a bpl.n 8005de8 <__pow5mult+0x84> - 8005dd2: 4639 mov r1, r7 - 8005dd4: 4622 mov r2, r4 - 8005dd6: 4630 mov r0, r6 - 8005dd8: f7ff ff20 bl 8005c1c <__multiply> - 8005ddc: 4680 mov r8, r0 - 8005dde: 4639 mov r1, r7 - 8005de0: 4630 mov r0, r6 - 8005de2: f7ff fe4b bl 8005a7c <_Bfree> - 8005de6: 4647 mov r7, r8 - 8005de8: 106d asrs r5, r5, #1 - 8005dea: d00b beq.n 8005e04 <__pow5mult+0xa0> - 8005dec: 6820 ldr r0, [r4, #0] - 8005dee: b938 cbnz r0, 8005e00 <__pow5mult+0x9c> - 8005df0: 4622 mov r2, r4 - 8005df2: 4621 mov r1, r4 - 8005df4: 4630 mov r0, r6 - 8005df6: f7ff ff11 bl 8005c1c <__multiply> - 8005dfa: 6020 str r0, [r4, #0] - 8005dfc: f8c0 9000 str.w r9, [r0] - 8005e00: 4604 mov r4, r0 - 8005e02: e7e4 b.n 8005dce <__pow5mult+0x6a> - 8005e04: 4638 mov r0, r7 - 8005e06: e8bd 83f8 ldmia.w sp!, {r3, r4, r5, r6, r7, r8, r9, pc} - 8005e0a: bf00 nop - 8005e0c: 08007cf0 .word 0x08007cf0 - 8005e10: 08007b19 .word 0x08007b19 - 8005e14: 08007ba0 .word 0x08007ba0 - -08005e18 <__lshift>: - 8005e18: e92d 47f0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, lr} - 8005e1c: 460c mov r4, r1 - 8005e1e: 4607 mov r7, r0 - 8005e20: 4691 mov r9, r2 - 8005e22: 6923 ldr r3, [r4, #16] - 8005e24: 6849 ldr r1, [r1, #4] - 8005e26: eb03 1862 add.w r8, r3, r2, asr #5 - 8005e2a: 68a3 ldr r3, [r4, #8] - 8005e2c: ea4f 1a62 mov.w sl, r2, asr #5 - 8005e30: f108 0601 add.w r6, r8, #1 - 8005e34: 42b3 cmp r3, r6 - 8005e36: db0b blt.n 8005e50 <__lshift+0x38> - 8005e38: 4638 mov r0, r7 - 8005e3a: f7ff fddf bl 80059fc <_Balloc> - 8005e3e: 4605 mov r5, r0 - 8005e40: b948 cbnz r0, 8005e56 <__lshift+0x3e> - 8005e42: 4602 mov r2, r0 - 8005e44: f240 11d9 movw r1, #473 ; 0x1d9 - 8005e48: 4b27 ldr r3, [pc, #156] ; (8005ee8 <__lshift+0xd0>) - 8005e4a: 4828 ldr r0, [pc, #160] ; (8005eec <__lshift+0xd4>) - 8005e4c: f000 fac2 bl 80063d4 <__assert_func> - 8005e50: 3101 adds r1, #1 - 8005e52: 005b lsls r3, r3, #1 - 8005e54: e7ee b.n 8005e34 <__lshift+0x1c> - 8005e56: 2300 movs r3, #0 - 8005e58: f100 0114 add.w r1, r0, #20 - 8005e5c: f100 0210 add.w r2, r0, #16 - 8005e60: 4618 mov r0, r3 - 8005e62: 4553 cmp r3, sl - 8005e64: db33 blt.n 8005ece <__lshift+0xb6> - 8005e66: 6920 ldr r0, [r4, #16] - 8005e68: ea2a 7aea bic.w sl, sl, sl, asr #31 - 8005e6c: f104 0314 add.w r3, r4, #20 - 8005e70: f019 091f ands.w r9, r9, #31 - 8005e74: eb01 018a add.w r1, r1, sl, lsl #2 - 8005e78: eb03 0c80 add.w ip, r3, r0, lsl #2 - 8005e7c: d02b beq.n 8005ed6 <__lshift+0xbe> - 8005e7e: 468a mov sl, r1 - 8005e80: 2200 movs r2, #0 - 8005e82: f1c9 0e20 rsb lr, r9, #32 - 8005e86: 6818 ldr r0, [r3, #0] - 8005e88: fa00 f009 lsl.w r0, r0, r9 - 8005e8c: 4302 orrs r2, r0 - 8005e8e: f84a 2b04 str.w r2, [sl], #4 - 8005e92: f853 2b04 ldr.w r2, [r3], #4 - 8005e96: 459c cmp ip, r3 - 8005e98: fa22 f20e lsr.w r2, r2, lr - 8005e9c: d8f3 bhi.n 8005e86 <__lshift+0x6e> - 8005e9e: ebac 0304 sub.w r3, ip, r4 - 8005ea2: 3b15 subs r3, #21 - 8005ea4: f023 0303 bic.w r3, r3, #3 - 8005ea8: 3304 adds r3, #4 - 8005eaa: f104 0015 add.w r0, r4, #21 - 8005eae: 4584 cmp ip, r0 - 8005eb0: bf38 it cc - 8005eb2: 2304 movcc r3, #4 - 8005eb4: 50ca str r2, [r1, r3] - 8005eb6: b10a cbz r2, 8005ebc <__lshift+0xa4> - 8005eb8: f108 0602 add.w r6, r8, #2 - 8005ebc: 3e01 subs r6, #1 - 8005ebe: 4638 mov r0, r7 - 8005ec0: 4621 mov r1, r4 - 8005ec2: 612e str r6, [r5, #16] - 8005ec4: f7ff fdda bl 8005a7c <_Bfree> - 8005ec8: 4628 mov r0, r5 - 8005eca: e8bd 87f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, pc} - 8005ece: f842 0f04 str.w r0, [r2, #4]! - 8005ed2: 3301 adds r3, #1 - 8005ed4: e7c5 b.n 8005e62 <__lshift+0x4a> - 8005ed6: 3904 subs r1, #4 - 8005ed8: f853 2b04 ldr.w r2, [r3], #4 - 8005edc: 459c cmp ip, r3 - 8005ede: f841 2f04 str.w r2, [r1, #4]! - 8005ee2: d8f9 bhi.n 8005ed8 <__lshift+0xc0> - 8005ee4: e7ea b.n 8005ebc <__lshift+0xa4> - 8005ee6: bf00 nop - 8005ee8: 08007b8f .word 0x08007b8f - 8005eec: 08007ba0 .word 0x08007ba0 - -08005ef0 <__mcmp>: - 8005ef0: 4603 mov r3, r0 - 8005ef2: 690a ldr r2, [r1, #16] - 8005ef4: 6900 ldr r0, [r0, #16] - 8005ef6: b530 push {r4, r5, lr} - 8005ef8: 1a80 subs r0, r0, r2 - 8005efa: d10d bne.n 8005f18 <__mcmp+0x28> - 8005efc: 3314 adds r3, #20 - 8005efe: 3114 adds r1, #20 - 8005f00: eb03 0482 add.w r4, r3, r2, lsl #2 - 8005f04: eb01 0182 add.w r1, r1, r2, lsl #2 - 8005f08: f854 5d04 ldr.w r5, [r4, #-4]! - 8005f0c: f851 2d04 ldr.w r2, [r1, #-4]! - 8005f10: 4295 cmp r5, r2 - 8005f12: d002 beq.n 8005f1a <__mcmp+0x2a> - 8005f14: d304 bcc.n 8005f20 <__mcmp+0x30> - 8005f16: 2001 movs r0, #1 - 8005f18: bd30 pop {r4, r5, pc} - 8005f1a: 42a3 cmp r3, r4 - 8005f1c: d3f4 bcc.n 8005f08 <__mcmp+0x18> - 8005f1e: e7fb b.n 8005f18 <__mcmp+0x28> - 8005f20: f04f 30ff mov.w r0, #4294967295 ; 0xffffffff - 8005f24: e7f8 b.n 8005f18 <__mcmp+0x28> - ... - -08005f28 <__mdiff>: - 8005f28: e92d 4ff8 stmdb sp!, {r3, r4, r5, r6, r7, r8, r9, sl, fp, lr} - 8005f2c: 460c mov r4, r1 - 8005f2e: 4606 mov r6, r0 - 8005f30: 4611 mov r1, r2 - 8005f32: 4620 mov r0, r4 - 8005f34: 4692 mov sl, r2 - 8005f36: f7ff ffdb bl 8005ef0 <__mcmp> - 8005f3a: 1e05 subs r5, r0, #0 - 8005f3c: d111 bne.n 8005f62 <__mdiff+0x3a> - 8005f3e: 4629 mov r1, r5 - 8005f40: 4630 mov r0, r6 - 8005f42: f7ff fd5b bl 80059fc <_Balloc> - 8005f46: 4602 mov r2, r0 - 8005f48: b928 cbnz r0, 8005f56 <__mdiff+0x2e> - 8005f4a: f240 2132 movw r1, #562 ; 0x232 - 8005f4e: 4b3c ldr r3, [pc, #240] ; (8006040 <__mdiff+0x118>) - 8005f50: 483c ldr r0, [pc, #240] ; (8006044 <__mdiff+0x11c>) - 8005f52: f000 fa3f bl 80063d4 <__assert_func> - 8005f56: 2301 movs r3, #1 - 8005f58: e9c0 3504 strd r3, r5, [r0, #16] - 8005f5c: 4610 mov r0, r2 - 8005f5e: e8bd 8ff8 ldmia.w sp!, {r3, r4, r5, r6, r7, r8, r9, sl, fp, pc} - 8005f62: bfa4 itt ge - 8005f64: 4653 movge r3, sl - 8005f66: 46a2 movge sl, r4 - 8005f68: 4630 mov r0, r6 - 8005f6a: f8da 1004 ldr.w r1, [sl, #4] - 8005f6e: bfa6 itte ge - 8005f70: 461c movge r4, r3 - 8005f72: 2500 movge r5, #0 - 8005f74: 2501 movlt r5, #1 - 8005f76: f7ff fd41 bl 80059fc <_Balloc> - 8005f7a: 4602 mov r2, r0 - 8005f7c: b918 cbnz r0, 8005f86 <__mdiff+0x5e> - 8005f7e: f44f 7110 mov.w r1, #576 ; 0x240 - 8005f82: 4b2f ldr r3, [pc, #188] ; (8006040 <__mdiff+0x118>) - 8005f84: e7e4 b.n 8005f50 <__mdiff+0x28> - 8005f86: f100 0814 add.w r8, r0, #20 - 8005f8a: f8da 7010 ldr.w r7, [sl, #16] - 8005f8e: 60c5 str r5, [r0, #12] - 8005f90: f04f 0c00 mov.w ip, #0 - 8005f94: f10a 0514 add.w r5, sl, #20 - 8005f98: f10a 0010 add.w r0, sl, #16 - 8005f9c: 46c2 mov sl, r8 - 8005f9e: 6926 ldr r6, [r4, #16] - 8005fa0: f104 0914 add.w r9, r4, #20 - 8005fa4: eb05 0e87 add.w lr, r5, r7, lsl #2 - 8005fa8: eb09 0686 add.w r6, r9, r6, lsl #2 - 8005fac: f850 bf04 ldr.w fp, [r0, #4]! - 8005fb0: f859 3b04 ldr.w r3, [r9], #4 - 8005fb4: fa1f f18b uxth.w r1, fp - 8005fb8: 4461 add r1, ip - 8005fba: fa1f fc83 uxth.w ip, r3 - 8005fbe: 0c1b lsrs r3, r3, #16 - 8005fc0: eba1 010c sub.w r1, r1, ip - 8005fc4: ebc3 431b rsb r3, r3, fp, lsr #16 - 8005fc8: eb03 4321 add.w r3, r3, r1, asr #16 - 8005fcc: b289 uxth r1, r1 - 8005fce: ea4f 4c23 mov.w ip, r3, asr #16 - 8005fd2: 454e cmp r6, r9 - 8005fd4: ea41 4303 orr.w r3, r1, r3, lsl #16 - 8005fd8: f84a 3b04 str.w r3, [sl], #4 - 8005fdc: d8e6 bhi.n 8005fac <__mdiff+0x84> - 8005fde: 1b33 subs r3, r6, r4 - 8005fe0: 3b15 subs r3, #21 - 8005fe2: f023 0303 bic.w r3, r3, #3 - 8005fe6: 3415 adds r4, #21 - 8005fe8: 3304 adds r3, #4 - 8005fea: 42a6 cmp r6, r4 - 8005fec: bf38 it cc - 8005fee: 2304 movcc r3, #4 - 8005ff0: 441d add r5, r3 - 8005ff2: 4443 add r3, r8 - 8005ff4: 461e mov r6, r3 - 8005ff6: 462c mov r4, r5 - 8005ff8: 4574 cmp r4, lr - 8005ffa: d30e bcc.n 800601a <__mdiff+0xf2> - 8005ffc: f10e 0103 add.w r1, lr, #3 - 8006000: 1b49 subs r1, r1, r5 - 8006002: f021 0103 bic.w r1, r1, #3 - 8006006: 3d03 subs r5, #3 - 8006008: 45ae cmp lr, r5 - 800600a: bf38 it cc - 800600c: 2100 movcc r1, #0 - 800600e: 4419 add r1, r3 - 8006010: f851 3d04 ldr.w r3, [r1, #-4]! - 8006014: b18b cbz r3, 800603a <__mdiff+0x112> - 8006016: 6117 str r7, [r2, #16] - 8006018: e7a0 b.n 8005f5c <__mdiff+0x34> - 800601a: f854 8b04 ldr.w r8, [r4], #4 - 800601e: fa1f f188 uxth.w r1, r8 - 8006022: 4461 add r1, ip - 8006024: 1408 asrs r0, r1, #16 - 8006026: eb00 4018 add.w r0, r0, r8, lsr #16 - 800602a: b289 uxth r1, r1 - 800602c: ea41 4100 orr.w r1, r1, r0, lsl #16 - 8006030: ea4f 4c20 mov.w ip, r0, asr #16 - 8006034: f846 1b04 str.w r1, [r6], #4 - 8006038: e7de b.n 8005ff8 <__mdiff+0xd0> - 800603a: 3f01 subs r7, #1 - 800603c: e7e8 b.n 8006010 <__mdiff+0xe8> - 800603e: bf00 nop - 8006040: 08007b8f .word 0x08007b8f - 8006044: 08007ba0 .word 0x08007ba0 - -08006048 <__d2b>: - 8006048: e92d 41f3 stmdb sp!, {r0, r1, r4, r5, r6, r7, r8, lr} - 800604c: 2101 movs r1, #1 - 800604e: e9dd 7608 ldrd r7, r6, [sp, #32] - 8006052: 4690 mov r8, r2 - 8006054: 461d mov r5, r3 - 8006056: f7ff fcd1 bl 80059fc <_Balloc> - 800605a: 4604 mov r4, r0 - 800605c: b930 cbnz r0, 800606c <__d2b+0x24> - 800605e: 4602 mov r2, r0 - 8006060: f240 310a movw r1, #778 ; 0x30a - 8006064: 4b24 ldr r3, [pc, #144] ; (80060f8 <__d2b+0xb0>) - 8006066: 4825 ldr r0, [pc, #148] ; (80060fc <__d2b+0xb4>) - 8006068: f000 f9b4 bl 80063d4 <__assert_func> - 800606c: f3c5 0313 ubfx r3, r5, #0, #20 - 8006070: f3c5 550a ubfx r5, r5, #20, #11 - 8006074: bb2d cbnz r5, 80060c2 <__d2b+0x7a> - 8006076: 9301 str r3, [sp, #4] - 8006078: f1b8 0300 subs.w r3, r8, #0 - 800607c: d026 beq.n 80060cc <__d2b+0x84> - 800607e: 4668 mov r0, sp - 8006080: 9300 str r3, [sp, #0] - 8006082: f7ff fd87 bl 8005b94 <__lo0bits> - 8006086: 9900 ldr r1, [sp, #0] - 8006088: b1f0 cbz r0, 80060c8 <__d2b+0x80> - 800608a: 9a01 ldr r2, [sp, #4] - 800608c: f1c0 0320 rsb r3, r0, #32 - 8006090: fa02 f303 lsl.w r3, r2, r3 - 8006094: 430b orrs r3, r1 - 8006096: 40c2 lsrs r2, r0 - 8006098: 6163 str r3, [r4, #20] - 800609a: 9201 str r2, [sp, #4] - 800609c: 9b01 ldr r3, [sp, #4] - 800609e: 2b00 cmp r3, #0 - 80060a0: bf14 ite ne - 80060a2: 2102 movne r1, #2 - 80060a4: 2101 moveq r1, #1 - 80060a6: 61a3 str r3, [r4, #24] - 80060a8: 6121 str r1, [r4, #16] - 80060aa: b1c5 cbz r5, 80060de <__d2b+0x96> - 80060ac: f2a5 4533 subw r5, r5, #1075 ; 0x433 - 80060b0: 4405 add r5, r0 - 80060b2: f1c0 0035 rsb r0, r0, #53 ; 0x35 - 80060b6: 603d str r5, [r7, #0] - 80060b8: 6030 str r0, [r6, #0] - 80060ba: 4620 mov r0, r4 - 80060bc: b002 add sp, #8 - 80060be: e8bd 81f0 ldmia.w sp!, {r4, r5, r6, r7, r8, pc} - 80060c2: f443 1380 orr.w r3, r3, #1048576 ; 0x100000 - 80060c6: e7d6 b.n 8006076 <__d2b+0x2e> - 80060c8: 6161 str r1, [r4, #20] - 80060ca: e7e7 b.n 800609c <__d2b+0x54> - 80060cc: a801 add r0, sp, #4 - 80060ce: f7ff fd61 bl 8005b94 <__lo0bits> - 80060d2: 2101 movs r1, #1 - 80060d4: 9b01 ldr r3, [sp, #4] - 80060d6: 6121 str r1, [r4, #16] - 80060d8: 6163 str r3, [r4, #20] - 80060da: 3020 adds r0, #32 - 80060dc: e7e5 b.n 80060aa <__d2b+0x62> - 80060de: eb04 0381 add.w r3, r4, r1, lsl #2 - 80060e2: f2a0 4032 subw r0, r0, #1074 ; 0x432 - 80060e6: 6038 str r0, [r7, #0] - 80060e8: 6918 ldr r0, [r3, #16] - 80060ea: f7ff fd33 bl 8005b54 <__hi0bits> - 80060ee: ebc0 1141 rsb r1, r0, r1, lsl #5 - 80060f2: 6031 str r1, [r6, #0] - 80060f4: e7e1 b.n 80060ba <__d2b+0x72> - 80060f6: bf00 nop - 80060f8: 08007b8f .word 0x08007b8f - 80060fc: 08007ba0 .word 0x08007ba0 - -08006100 <_calloc_r>: - 8006100: b538 push {r3, r4, r5, lr} - 8006102: fb02 f501 mul.w r5, r2, r1 - 8006106: 4629 mov r1, r5 - 8006108: f7fe f8e6 bl 80042d8 <_malloc_r> - 800610c: 4604 mov r4, r0 - 800610e: b118 cbz r0, 8006118 <_calloc_r+0x18> - 8006110: 462a mov r2, r5 - 8006112: 2100 movs r1, #0 - 8006114: f7fe f88c bl 8004230 - 8006118: 4620 mov r0, r4 - 800611a: bd38 pop {r3, r4, r5, pc} - -0800611c <__ssputs_r>: - 800611c: e92d 47f0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, lr} - 8006120: 688e ldr r6, [r1, #8] - 8006122: 4682 mov sl, r0 - 8006124: 429e cmp r6, r3 - 8006126: 460c mov r4, r1 - 8006128: 4690 mov r8, r2 - 800612a: 461f mov r7, r3 - 800612c: d838 bhi.n 80061a0 <__ssputs_r+0x84> - 800612e: 898a ldrh r2, [r1, #12] - 8006130: f412 6f90 tst.w r2, #1152 ; 0x480 - 8006134: d032 beq.n 800619c <__ssputs_r+0x80> - 8006136: 6825 ldr r5, [r4, #0] - 8006138: 6909 ldr r1, [r1, #16] - 800613a: 3301 adds r3, #1 - 800613c: eba5 0901 sub.w r9, r5, r1 - 8006140: 6965 ldr r5, [r4, #20] - 8006142: 444b add r3, r9 - 8006144: eb05 0545 add.w r5, r5, r5, lsl #1 - 8006148: eb05 75d5 add.w r5, r5, r5, lsr #31 - 800614c: 106d asrs r5, r5, #1 - 800614e: 429d cmp r5, r3 - 8006150: bf38 it cc - 8006152: 461d movcc r5, r3 - 8006154: 0553 lsls r3, r2, #21 - 8006156: d531 bpl.n 80061bc <__ssputs_r+0xa0> - 8006158: 4629 mov r1, r5 - 800615a: f7fe f8bd bl 80042d8 <_malloc_r> - 800615e: 4606 mov r6, r0 - 8006160: b950 cbnz r0, 8006178 <__ssputs_r+0x5c> - 8006162: 230c movs r3, #12 - 8006164: f04f 30ff mov.w r0, #4294967295 ; 0xffffffff - 8006168: f8ca 3000 str.w r3, [sl] - 800616c: 89a3 ldrh r3, [r4, #12] - 800616e: f043 0340 orr.w r3, r3, #64 ; 0x40 - 8006172: 81a3 strh r3, [r4, #12] - 8006174: e8bd 87f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, pc} - 8006178: 464a mov r2, r9 - 800617a: 6921 ldr r1, [r4, #16] - 800617c: f7ff fc24 bl 80059c8 - 8006180: 89a3 ldrh r3, [r4, #12] - 8006182: f423 6390 bic.w r3, r3, #1152 ; 0x480 - 8006186: f043 0380 orr.w r3, r3, #128 ; 0x80 - 800618a: 81a3 strh r3, [r4, #12] - 800618c: 6126 str r6, [r4, #16] - 800618e: 444e add r6, r9 - 8006190: 6026 str r6, [r4, #0] - 8006192: 463e mov r6, r7 - 8006194: 6165 str r5, [r4, #20] - 8006196: eba5 0509 sub.w r5, r5, r9 - 800619a: 60a5 str r5, [r4, #8] - 800619c: 42be cmp r6, r7 - 800619e: d900 bls.n 80061a2 <__ssputs_r+0x86> - 80061a0: 463e mov r6, r7 - 80061a2: 4632 mov r2, r6 - 80061a4: 4641 mov r1, r8 - 80061a6: 6820 ldr r0, [r4, #0] - 80061a8: f000 f959 bl 800645e - 80061ac: 68a3 ldr r3, [r4, #8] - 80061ae: 6822 ldr r2, [r4, #0] - 80061b0: 1b9b subs r3, r3, r6 - 80061b2: 4432 add r2, r6 - 80061b4: 2000 movs r0, #0 - 80061b6: 60a3 str r3, [r4, #8] - 80061b8: 6022 str r2, [r4, #0] - 80061ba: e7db b.n 8006174 <__ssputs_r+0x58> - 80061bc: 462a mov r2, r5 - 80061be: f000 f968 bl 8006492 <_realloc_r> - 80061c2: 4606 mov r6, r0 - 80061c4: 2800 cmp r0, #0 - 80061c6: d1e1 bne.n 800618c <__ssputs_r+0x70> - 80061c8: 4650 mov r0, sl - 80061ca: 6921 ldr r1, [r4, #16] - 80061cc: f7fe f838 bl 8004240 <_free_r> - 80061d0: e7c7 b.n 8006162 <__ssputs_r+0x46> - ... - -080061d4 <_svfiprintf_r>: - 80061d4: e92d 4ff0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, fp, lr} - 80061d8: 4698 mov r8, r3 - 80061da: 898b ldrh r3, [r1, #12] - 80061dc: 4607 mov r7, r0 - 80061de: 061b lsls r3, r3, #24 - 80061e0: 460d mov r5, r1 - 80061e2: 4614 mov r4, r2 - 80061e4: b09d sub sp, #116 ; 0x74 - 80061e6: d50e bpl.n 8006206 <_svfiprintf_r+0x32> - 80061e8: 690b ldr r3, [r1, #16] - 80061ea: b963 cbnz r3, 8006206 <_svfiprintf_r+0x32> - 80061ec: 2140 movs r1, #64 ; 0x40 - 80061ee: f7fe f873 bl 80042d8 <_malloc_r> - 80061f2: 6028 str r0, [r5, #0] - 80061f4: 6128 str r0, [r5, #16] - 80061f6: b920 cbnz r0, 8006202 <_svfiprintf_r+0x2e> - 80061f8: 230c movs r3, #12 - 80061fa: 603b str r3, [r7, #0] - 80061fc: f04f 30ff mov.w r0, #4294967295 ; 0xffffffff - 8006200: e0d1 b.n 80063a6 <_svfiprintf_r+0x1d2> - 8006202: 2340 movs r3, #64 ; 0x40 - 8006204: 616b str r3, [r5, #20] - 8006206: 2300 movs r3, #0 - 8006208: 9309 str r3, [sp, #36] ; 0x24 - 800620a: 2320 movs r3, #32 - 800620c: f88d 3029 strb.w r3, [sp, #41] ; 0x29 - 8006210: 2330 movs r3, #48 ; 0x30 - 8006212: f04f 0901 mov.w r9, #1 - 8006216: f8cd 800c str.w r8, [sp, #12] - 800621a: f8df 81a4 ldr.w r8, [pc, #420] ; 80063c0 <_svfiprintf_r+0x1ec> - 800621e: f88d 302a strb.w r3, [sp, #42] ; 0x2a - 8006222: 4623 mov r3, r4 - 8006224: 469a mov sl, r3 - 8006226: f813 2b01 ldrb.w r2, [r3], #1 - 800622a: b10a cbz r2, 8006230 <_svfiprintf_r+0x5c> - 800622c: 2a25 cmp r2, #37 ; 0x25 - 800622e: d1f9 bne.n 8006224 <_svfiprintf_r+0x50> - 8006230: ebba 0b04 subs.w fp, sl, r4 - 8006234: d00b beq.n 800624e <_svfiprintf_r+0x7a> - 8006236: 465b mov r3, fp - 8006238: 4622 mov r2, r4 - 800623a: 4629 mov r1, r5 - 800623c: 4638 mov r0, r7 - 800623e: f7ff ff6d bl 800611c <__ssputs_r> - 8006242: 3001 adds r0, #1 - 8006244: f000 80aa beq.w 800639c <_svfiprintf_r+0x1c8> - 8006248: 9a09 ldr r2, [sp, #36] ; 0x24 - 800624a: 445a add r2, fp - 800624c: 9209 str r2, [sp, #36] ; 0x24 - 800624e: f89a 3000 ldrb.w r3, [sl] - 8006252: 2b00 cmp r3, #0 - 8006254: f000 80a2 beq.w 800639c <_svfiprintf_r+0x1c8> - 8006258: 2300 movs r3, #0 - 800625a: f04f 32ff mov.w r2, #4294967295 ; 0xffffffff - 800625e: e9cd 2305 strd r2, r3, [sp, #20] - 8006262: f10a 0a01 add.w sl, sl, #1 - 8006266: 9304 str r3, [sp, #16] - 8006268: 9307 str r3, [sp, #28] - 800626a: f88d 3053 strb.w r3, [sp, #83] ; 0x53 - 800626e: 931a str r3, [sp, #104] ; 0x68 - 8006270: 4654 mov r4, sl - 8006272: 2205 movs r2, #5 - 8006274: f814 1b01 ldrb.w r1, [r4], #1 - 8006278: 4851 ldr r0, [pc, #324] ; (80063c0 <_svfiprintf_r+0x1ec>) - 800627a: f7ff fb97 bl 80059ac - 800627e: 9a04 ldr r2, [sp, #16] - 8006280: b9d8 cbnz r0, 80062ba <_svfiprintf_r+0xe6> - 8006282: 06d0 lsls r0, r2, #27 - 8006284: bf44 itt mi - 8006286: 2320 movmi r3, #32 - 8006288: f88d 3053 strbmi.w r3, [sp, #83] ; 0x53 - 800628c: 0711 lsls r1, r2, #28 - 800628e: bf44 itt mi - 8006290: 232b movmi r3, #43 ; 0x2b - 8006292: f88d 3053 strbmi.w r3, [sp, #83] ; 0x53 - 8006296: f89a 3000 ldrb.w r3, [sl] - 800629a: 2b2a cmp r3, #42 ; 0x2a - 800629c: d015 beq.n 80062ca <_svfiprintf_r+0xf6> - 800629e: 4654 mov r4, sl - 80062a0: 2000 movs r0, #0 - 80062a2: f04f 0c0a mov.w ip, #10 - 80062a6: 9a07 ldr r2, [sp, #28] - 80062a8: 4621 mov r1, r4 - 80062aa: f811 3b01 ldrb.w r3, [r1], #1 - 80062ae: 3b30 subs r3, #48 ; 0x30 - 80062b0: 2b09 cmp r3, #9 - 80062b2: d94e bls.n 8006352 <_svfiprintf_r+0x17e> - 80062b4: b1b0 cbz r0, 80062e4 <_svfiprintf_r+0x110> - 80062b6: 9207 str r2, [sp, #28] - 80062b8: e014 b.n 80062e4 <_svfiprintf_r+0x110> - 80062ba: eba0 0308 sub.w r3, r0, r8 - 80062be: fa09 f303 lsl.w r3, r9, r3 - 80062c2: 4313 orrs r3, r2 - 80062c4: 46a2 mov sl, r4 - 80062c6: 9304 str r3, [sp, #16] - 80062c8: e7d2 b.n 8006270 <_svfiprintf_r+0x9c> - 80062ca: 9b03 ldr r3, [sp, #12] - 80062cc: 1d19 adds r1, r3, #4 - 80062ce: 681b ldr r3, [r3, #0] - 80062d0: 9103 str r1, [sp, #12] - 80062d2: 2b00 cmp r3, #0 - 80062d4: bfbb ittet lt - 80062d6: 425b neglt r3, r3 - 80062d8: f042 0202 orrlt.w r2, r2, #2 - 80062dc: 9307 strge r3, [sp, #28] - 80062de: 9307 strlt r3, [sp, #28] - 80062e0: bfb8 it lt - 80062e2: 9204 strlt r2, [sp, #16] - 80062e4: 7823 ldrb r3, [r4, #0] - 80062e6: 2b2e cmp r3, #46 ; 0x2e - 80062e8: d10c bne.n 8006304 <_svfiprintf_r+0x130> - 80062ea: 7863 ldrb r3, [r4, #1] - 80062ec: 2b2a cmp r3, #42 ; 0x2a - 80062ee: d135 bne.n 800635c <_svfiprintf_r+0x188> - 80062f0: 9b03 ldr r3, [sp, #12] - 80062f2: 3402 adds r4, #2 - 80062f4: 1d1a adds r2, r3, #4 - 80062f6: 681b ldr r3, [r3, #0] - 80062f8: 9203 str r2, [sp, #12] - 80062fa: 2b00 cmp r3, #0 - 80062fc: bfb8 it lt - 80062fe: f04f 33ff movlt.w r3, #4294967295 ; 0xffffffff - 8006302: 9305 str r3, [sp, #20] - 8006304: f8df a0c8 ldr.w sl, [pc, #200] ; 80063d0 <_svfiprintf_r+0x1fc> - 8006308: 2203 movs r2, #3 - 800630a: 4650 mov r0, sl - 800630c: 7821 ldrb r1, [r4, #0] - 800630e: f7ff fb4d bl 80059ac - 8006312: b140 cbz r0, 8006326 <_svfiprintf_r+0x152> - 8006314: 2340 movs r3, #64 ; 0x40 - 8006316: eba0 000a sub.w r0, r0, sl - 800631a: fa03 f000 lsl.w r0, r3, r0 - 800631e: 9b04 ldr r3, [sp, #16] - 8006320: 3401 adds r4, #1 - 8006322: 4303 orrs r3, r0 - 8006324: 9304 str r3, [sp, #16] - 8006326: f814 1b01 ldrb.w r1, [r4], #1 - 800632a: 2206 movs r2, #6 - 800632c: 4825 ldr r0, [pc, #148] ; (80063c4 <_svfiprintf_r+0x1f0>) - 800632e: f88d 1028 strb.w r1, [sp, #40] ; 0x28 - 8006332: f7ff fb3b bl 80059ac - 8006336: 2800 cmp r0, #0 - 8006338: d038 beq.n 80063ac <_svfiprintf_r+0x1d8> - 800633a: 4b23 ldr r3, [pc, #140] ; (80063c8 <_svfiprintf_r+0x1f4>) - 800633c: bb1b cbnz r3, 8006386 <_svfiprintf_r+0x1b2> - 800633e: 9b03 ldr r3, [sp, #12] - 8006340: 3307 adds r3, #7 - 8006342: f023 0307 bic.w r3, r3, #7 - 8006346: 3308 adds r3, #8 - 8006348: 9303 str r3, [sp, #12] - 800634a: 9b09 ldr r3, [sp, #36] ; 0x24 - 800634c: 4433 add r3, r6 - 800634e: 9309 str r3, [sp, #36] ; 0x24 - 8006350: e767 b.n 8006222 <_svfiprintf_r+0x4e> - 8006352: 460c mov r4, r1 - 8006354: 2001 movs r0, #1 - 8006356: fb0c 3202 mla r2, ip, r2, r3 - 800635a: e7a5 b.n 80062a8 <_svfiprintf_r+0xd4> - 800635c: 2300 movs r3, #0 - 800635e: f04f 0c0a mov.w ip, #10 - 8006362: 4619 mov r1, r3 - 8006364: 3401 adds r4, #1 - 8006366: 9305 str r3, [sp, #20] - 8006368: 4620 mov r0, r4 - 800636a: f810 2b01 ldrb.w r2, [r0], #1 - 800636e: 3a30 subs r2, #48 ; 0x30 - 8006370: 2a09 cmp r2, #9 - 8006372: d903 bls.n 800637c <_svfiprintf_r+0x1a8> - 8006374: 2b00 cmp r3, #0 - 8006376: d0c5 beq.n 8006304 <_svfiprintf_r+0x130> - 8006378: 9105 str r1, [sp, #20] - 800637a: e7c3 b.n 8006304 <_svfiprintf_r+0x130> - 800637c: 4604 mov r4, r0 - 800637e: 2301 movs r3, #1 - 8006380: fb0c 2101 mla r1, ip, r1, r2 - 8006384: e7f0 b.n 8006368 <_svfiprintf_r+0x194> - 8006386: ab03 add r3, sp, #12 - 8006388: 9300 str r3, [sp, #0] - 800638a: 462a mov r2, r5 - 800638c: 4638 mov r0, r7 - 800638e: 4b0f ldr r3, [pc, #60] ; (80063cc <_svfiprintf_r+0x1f8>) - 8006390: a904 add r1, sp, #16 - 8006392: f7fe f899 bl 80044c8 <_printf_float> - 8006396: 1c42 adds r2, r0, #1 - 8006398: 4606 mov r6, r0 - 800639a: d1d6 bne.n 800634a <_svfiprintf_r+0x176> - 800639c: 89ab ldrh r3, [r5, #12] - 800639e: 065b lsls r3, r3, #25 - 80063a0: f53f af2c bmi.w 80061fc <_svfiprintf_r+0x28> - 80063a4: 9809 ldr r0, [sp, #36] ; 0x24 - 80063a6: b01d add sp, #116 ; 0x74 - 80063a8: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc} - 80063ac: ab03 add r3, sp, #12 - 80063ae: 9300 str r3, [sp, #0] - 80063b0: 462a mov r2, r5 - 80063b2: 4638 mov r0, r7 - 80063b4: 4b05 ldr r3, [pc, #20] ; (80063cc <_svfiprintf_r+0x1f8>) - 80063b6: a904 add r1, sp, #16 - 80063b8: f7fe fb22 bl 8004a00 <_printf_i> - 80063bc: e7eb b.n 8006396 <_svfiprintf_r+0x1c2> - 80063be: bf00 nop - 80063c0: 08007cfc .word 0x08007cfc - 80063c4: 08007d06 .word 0x08007d06 - 80063c8: 080044c9 .word 0x080044c9 - 80063cc: 0800611d .word 0x0800611d - 80063d0: 08007d02 .word 0x08007d02 - -080063d4 <__assert_func>: - 80063d4: b51f push {r0, r1, r2, r3, r4, lr} - 80063d6: 4614 mov r4, r2 - 80063d8: 461a mov r2, r3 - 80063da: 4b09 ldr r3, [pc, #36] ; (8006400 <__assert_func+0x2c>) - 80063dc: 4605 mov r5, r0 - 80063de: 681b ldr r3, [r3, #0] - 80063e0: 68d8 ldr r0, [r3, #12] - 80063e2: b14c cbz r4, 80063f8 <__assert_func+0x24> - 80063e4: 4b07 ldr r3, [pc, #28] ; (8006404 <__assert_func+0x30>) - 80063e6: e9cd 3401 strd r3, r4, [sp, #4] - 80063ea: 9100 str r1, [sp, #0] - 80063ec: 462b mov r3, r5 - 80063ee: 4906 ldr r1, [pc, #24] ; (8006408 <__assert_func+0x34>) - 80063f0: f000 f80e bl 8006410 - 80063f4: f000 fa98 bl 8006928 - 80063f8: 4b04 ldr r3, [pc, #16] ; (800640c <__assert_func+0x38>) - 80063fa: 461c mov r4, r3 - 80063fc: e7f3 b.n 80063e6 <__assert_func+0x12> - 80063fe: bf00 nop - 8006400: 2000000c .word 0x2000000c - 8006404: 08007d0d .word 0x08007d0d - 8006408: 08007d1a .word 0x08007d1a - 800640c: 08007d48 .word 0x08007d48 - -08006410 : - 8006410: b40e push {r1, r2, r3} - 8006412: b503 push {r0, r1, lr} - 8006414: 4601 mov r1, r0 - 8006416: ab03 add r3, sp, #12 - 8006418: 4805 ldr r0, [pc, #20] ; (8006430 ) - 800641a: f853 2b04 ldr.w r2, [r3], #4 - 800641e: 6800 ldr r0, [r0, #0] - 8006420: 9301 str r3, [sp, #4] - 8006422: f000 f883 bl 800652c <_vfiprintf_r> - 8006426: b002 add sp, #8 - 8006428: f85d eb04 ldr.w lr, [sp], #4 - 800642c: b003 add sp, #12 - 800642e: 4770 bx lr - 8006430: 2000000c .word 0x2000000c - -08006434 <__retarget_lock_init_recursive>: - 8006434: 4770 bx lr - -08006436 <__retarget_lock_acquire_recursive>: - 8006436: 4770 bx lr - -08006438 <__retarget_lock_release_recursive>: - 8006438: 4770 bx lr - -0800643a <__ascii_mbtowc>: - 800643a: b082 sub sp, #8 - 800643c: b901 cbnz r1, 8006440 <__ascii_mbtowc+0x6> - 800643e: a901 add r1, sp, #4 - 8006440: b142 cbz r2, 8006454 <__ascii_mbtowc+0x1a> - 8006442: b14b cbz r3, 8006458 <__ascii_mbtowc+0x1e> - 8006444: 7813 ldrb r3, [r2, #0] - 8006446: 600b str r3, [r1, #0] - 8006448: 7812 ldrb r2, [r2, #0] - 800644a: 1e10 subs r0, r2, #0 - 800644c: bf18 it ne - 800644e: 2001 movne r0, #1 - 8006450: b002 add sp, #8 - 8006452: 4770 bx lr - 8006454: 4610 mov r0, r2 - 8006456: e7fb b.n 8006450 <__ascii_mbtowc+0x16> - 8006458: f06f 0001 mvn.w r0, #1 - 800645c: e7f8 b.n 8006450 <__ascii_mbtowc+0x16> - -0800645e : - 800645e: 4288 cmp r0, r1 - 8006460: b510 push {r4, lr} - 8006462: eb01 0402 add.w r4, r1, r2 - 8006466: d902 bls.n 800646e - 8006468: 4284 cmp r4, r0 - 800646a: 4623 mov r3, r4 - 800646c: d807 bhi.n 800647e - 800646e: 1e43 subs r3, r0, #1 - 8006470: 42a1 cmp r1, r4 - 8006472: d008 beq.n 8006486 - 8006474: f811 2b01 ldrb.w r2, [r1], #1 - 8006478: f803 2f01 strb.w r2, [r3, #1]! - 800647c: e7f8 b.n 8006470 - 800647e: 4601 mov r1, r0 - 8006480: 4402 add r2, r0 - 8006482: 428a cmp r2, r1 - 8006484: d100 bne.n 8006488 - 8006486: bd10 pop {r4, pc} - 8006488: f813 4d01 ldrb.w r4, [r3, #-1]! - 800648c: f802 4d01 strb.w r4, [r2, #-1]! - 8006490: e7f7 b.n 8006482 - -08006492 <_realloc_r>: - 8006492: b5f8 push {r3, r4, r5, r6, r7, lr} - 8006494: 4607 mov r7, r0 - 8006496: 4614 mov r4, r2 - 8006498: 460e mov r6, r1 - 800649a: b921 cbnz r1, 80064a6 <_realloc_r+0x14> - 800649c: 4611 mov r1, r2 - 800649e: e8bd 40f8 ldmia.w sp!, {r3, r4, r5, r6, r7, lr} - 80064a2: f7fd bf19 b.w 80042d8 <_malloc_r> - 80064a6: b922 cbnz r2, 80064b2 <_realloc_r+0x20> - 80064a8: f7fd feca bl 8004240 <_free_r> - 80064ac: 4625 mov r5, r4 - 80064ae: 4628 mov r0, r5 - 80064b0: bdf8 pop {r3, r4, r5, r6, r7, pc} - 80064b2: f000 fc5d bl 8006d70 <_malloc_usable_size_r> - 80064b6: 42a0 cmp r0, r4 - 80064b8: d20f bcs.n 80064da <_realloc_r+0x48> - 80064ba: 4621 mov r1, r4 - 80064bc: 4638 mov r0, r7 - 80064be: f7fd ff0b bl 80042d8 <_malloc_r> - 80064c2: 4605 mov r5, r0 - 80064c4: 2800 cmp r0, #0 - 80064c6: d0f2 beq.n 80064ae <_realloc_r+0x1c> - 80064c8: 4631 mov r1, r6 - 80064ca: 4622 mov r2, r4 - 80064cc: f7ff fa7c bl 80059c8 - 80064d0: 4631 mov r1, r6 - 80064d2: 4638 mov r0, r7 - 80064d4: f7fd feb4 bl 8004240 <_free_r> - 80064d8: e7e9 b.n 80064ae <_realloc_r+0x1c> - 80064da: 4635 mov r5, r6 - 80064dc: e7e7 b.n 80064ae <_realloc_r+0x1c> - -080064de <__sfputc_r>: - 80064de: 6893 ldr r3, [r2, #8] - 80064e0: b410 push {r4} - 80064e2: 3b01 subs r3, #1 - 80064e4: 2b00 cmp r3, #0 - 80064e6: 6093 str r3, [r2, #8] - 80064e8: da07 bge.n 80064fa <__sfputc_r+0x1c> - 80064ea: 6994 ldr r4, [r2, #24] - 80064ec: 42a3 cmp r3, r4 - 80064ee: db01 blt.n 80064f4 <__sfputc_r+0x16> - 80064f0: 290a cmp r1, #10 - 80064f2: d102 bne.n 80064fa <__sfputc_r+0x1c> - 80064f4: bc10 pop {r4} - 80064f6: f000 b949 b.w 800678c <__swbuf_r> - 80064fa: 6813 ldr r3, [r2, #0] - 80064fc: 1c58 adds r0, r3, #1 - 80064fe: 6010 str r0, [r2, #0] - 8006500: 7019 strb r1, [r3, #0] - 8006502: 4608 mov r0, r1 - 8006504: bc10 pop {r4} - 8006506: 4770 bx lr - -08006508 <__sfputs_r>: - 8006508: b5f8 push {r3, r4, r5, r6, r7, lr} - 800650a: 4606 mov r6, r0 - 800650c: 460f mov r7, r1 - 800650e: 4614 mov r4, r2 - 8006510: 18d5 adds r5, r2, r3 - 8006512: 42ac cmp r4, r5 - 8006514: d101 bne.n 800651a <__sfputs_r+0x12> - 8006516: 2000 movs r0, #0 - 8006518: e007 b.n 800652a <__sfputs_r+0x22> - 800651a: 463a mov r2, r7 - 800651c: 4630 mov r0, r6 - 800651e: f814 1b01 ldrb.w r1, [r4], #1 - 8006522: f7ff ffdc bl 80064de <__sfputc_r> - 8006526: 1c43 adds r3, r0, #1 - 8006528: d1f3 bne.n 8006512 <__sfputs_r+0xa> - 800652a: bdf8 pop {r3, r4, r5, r6, r7, pc} - -0800652c <_vfiprintf_r>: - 800652c: e92d 4ff0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, fp, lr} - 8006530: 460d mov r5, r1 - 8006532: 4614 mov r4, r2 - 8006534: 4698 mov r8, r3 - 8006536: 4606 mov r6, r0 - 8006538: b09d sub sp, #116 ; 0x74 - 800653a: b118 cbz r0, 8006544 <_vfiprintf_r+0x18> - 800653c: 6983 ldr r3, [r0, #24] - 800653e: b90b cbnz r3, 8006544 <_vfiprintf_r+0x18> - 8006540: f000 fb14 bl 8006b6c <__sinit> - 8006544: 4b89 ldr r3, [pc, #548] ; (800676c <_vfiprintf_r+0x240>) - 8006546: 429d cmp r5, r3 - 8006548: d11b bne.n 8006582 <_vfiprintf_r+0x56> - 800654a: 6875 ldr r5, [r6, #4] - 800654c: 6e6b ldr r3, [r5, #100] ; 0x64 - 800654e: 07d9 lsls r1, r3, #31 - 8006550: d405 bmi.n 800655e <_vfiprintf_r+0x32> - 8006552: 89ab ldrh r3, [r5, #12] - 8006554: 059a lsls r2, r3, #22 - 8006556: d402 bmi.n 800655e <_vfiprintf_r+0x32> - 8006558: 6da8 ldr r0, [r5, #88] ; 0x58 - 800655a: f7ff ff6c bl 8006436 <__retarget_lock_acquire_recursive> - 800655e: 89ab ldrh r3, [r5, #12] - 8006560: 071b lsls r3, r3, #28 - 8006562: d501 bpl.n 8006568 <_vfiprintf_r+0x3c> - 8006564: 692b ldr r3, [r5, #16] - 8006566: b9eb cbnz r3, 80065a4 <_vfiprintf_r+0x78> - 8006568: 4629 mov r1, r5 - 800656a: 4630 mov r0, r6 - 800656c: f000 f96e bl 800684c <__swsetup_r> - 8006570: b1c0 cbz r0, 80065a4 <_vfiprintf_r+0x78> - 8006572: 6e6b ldr r3, [r5, #100] ; 0x64 - 8006574: 07dc lsls r4, r3, #31 - 8006576: d50e bpl.n 8006596 <_vfiprintf_r+0x6a> - 8006578: f04f 30ff mov.w r0, #4294967295 ; 0xffffffff - 800657c: b01d add sp, #116 ; 0x74 - 800657e: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc} - 8006582: 4b7b ldr r3, [pc, #492] ; (8006770 <_vfiprintf_r+0x244>) - 8006584: 429d cmp r5, r3 - 8006586: d101 bne.n 800658c <_vfiprintf_r+0x60> - 8006588: 68b5 ldr r5, [r6, #8] - 800658a: e7df b.n 800654c <_vfiprintf_r+0x20> - 800658c: 4b79 ldr r3, [pc, #484] ; (8006774 <_vfiprintf_r+0x248>) - 800658e: 429d cmp r5, r3 - 8006590: bf08 it eq - 8006592: 68f5 ldreq r5, [r6, #12] - 8006594: e7da b.n 800654c <_vfiprintf_r+0x20> - 8006596: 89ab ldrh r3, [r5, #12] - 8006598: 0598 lsls r0, r3, #22 - 800659a: d4ed bmi.n 8006578 <_vfiprintf_r+0x4c> - 800659c: 6da8 ldr r0, [r5, #88] ; 0x58 - 800659e: f7ff ff4b bl 8006438 <__retarget_lock_release_recursive> - 80065a2: e7e9 b.n 8006578 <_vfiprintf_r+0x4c> - 80065a4: 2300 movs r3, #0 - 80065a6: 9309 str r3, [sp, #36] ; 0x24 - 80065a8: 2320 movs r3, #32 - 80065aa: f88d 3029 strb.w r3, [sp, #41] ; 0x29 - 80065ae: 2330 movs r3, #48 ; 0x30 - 80065b0: f04f 0901 mov.w r9, #1 - 80065b4: f8cd 800c str.w r8, [sp, #12] - 80065b8: f8df 81bc ldr.w r8, [pc, #444] ; 8006778 <_vfiprintf_r+0x24c> - 80065bc: f88d 302a strb.w r3, [sp, #42] ; 0x2a - 80065c0: 4623 mov r3, r4 - 80065c2: 469a mov sl, r3 - 80065c4: f813 2b01 ldrb.w r2, [r3], #1 - 80065c8: b10a cbz r2, 80065ce <_vfiprintf_r+0xa2> - 80065ca: 2a25 cmp r2, #37 ; 0x25 - 80065cc: d1f9 bne.n 80065c2 <_vfiprintf_r+0x96> - 80065ce: ebba 0b04 subs.w fp, sl, r4 - 80065d2: d00b beq.n 80065ec <_vfiprintf_r+0xc0> - 80065d4: 465b mov r3, fp - 80065d6: 4622 mov r2, r4 - 80065d8: 4629 mov r1, r5 - 80065da: 4630 mov r0, r6 - 80065dc: f7ff ff94 bl 8006508 <__sfputs_r> - 80065e0: 3001 adds r0, #1 - 80065e2: f000 80aa beq.w 800673a <_vfiprintf_r+0x20e> - 80065e6: 9a09 ldr r2, [sp, #36] ; 0x24 - 80065e8: 445a add r2, fp - 80065ea: 9209 str r2, [sp, #36] ; 0x24 - 80065ec: f89a 3000 ldrb.w r3, [sl] - 80065f0: 2b00 cmp r3, #0 - 80065f2: f000 80a2 beq.w 800673a <_vfiprintf_r+0x20e> - 80065f6: 2300 movs r3, #0 - 80065f8: f04f 32ff mov.w r2, #4294967295 ; 0xffffffff - 80065fc: e9cd 2305 strd r2, r3, [sp, #20] - 8006600: f10a 0a01 add.w sl, sl, #1 - 8006604: 9304 str r3, [sp, #16] - 8006606: 9307 str r3, [sp, #28] - 8006608: f88d 3053 strb.w r3, [sp, #83] ; 0x53 - 800660c: 931a str r3, [sp, #104] ; 0x68 - 800660e: 4654 mov r4, sl - 8006610: 2205 movs r2, #5 - 8006612: f814 1b01 ldrb.w r1, [r4], #1 - 8006616: 4858 ldr r0, [pc, #352] ; (8006778 <_vfiprintf_r+0x24c>) - 8006618: f7ff f9c8 bl 80059ac - 800661c: 9a04 ldr r2, [sp, #16] - 800661e: b9d8 cbnz r0, 8006658 <_vfiprintf_r+0x12c> - 8006620: 06d1 lsls r1, r2, #27 - 8006622: bf44 itt mi - 8006624: 2320 movmi r3, #32 - 8006626: f88d 3053 strbmi.w r3, [sp, #83] ; 0x53 - 800662a: 0713 lsls r3, r2, #28 - 800662c: bf44 itt mi - 800662e: 232b movmi r3, #43 ; 0x2b - 8006630: f88d 3053 strbmi.w r3, [sp, #83] ; 0x53 - 8006634: f89a 3000 ldrb.w r3, [sl] - 8006638: 2b2a cmp r3, #42 ; 0x2a - 800663a: d015 beq.n 8006668 <_vfiprintf_r+0x13c> - 800663c: 4654 mov r4, sl - 800663e: 2000 movs r0, #0 - 8006640: f04f 0c0a mov.w ip, #10 - 8006644: 9a07 ldr r2, [sp, #28] - 8006646: 4621 mov r1, r4 - 8006648: f811 3b01 ldrb.w r3, [r1], #1 - 800664c: 3b30 subs r3, #48 ; 0x30 - 800664e: 2b09 cmp r3, #9 - 8006650: d94e bls.n 80066f0 <_vfiprintf_r+0x1c4> - 8006652: b1b0 cbz r0, 8006682 <_vfiprintf_r+0x156> - 8006654: 9207 str r2, [sp, #28] - 8006656: e014 b.n 8006682 <_vfiprintf_r+0x156> - 8006658: eba0 0308 sub.w r3, r0, r8 - 800665c: fa09 f303 lsl.w r3, r9, r3 - 8006660: 4313 orrs r3, r2 - 8006662: 46a2 mov sl, r4 - 8006664: 9304 str r3, [sp, #16] - 8006666: e7d2 b.n 800660e <_vfiprintf_r+0xe2> - 8006668: 9b03 ldr r3, [sp, #12] - 800666a: 1d19 adds r1, r3, #4 - 800666c: 681b ldr r3, [r3, #0] - 800666e: 9103 str r1, [sp, #12] - 8006670: 2b00 cmp r3, #0 - 8006672: bfbb ittet lt - 8006674: 425b neglt r3, r3 - 8006676: f042 0202 orrlt.w r2, r2, #2 - 800667a: 9307 strge r3, [sp, #28] - 800667c: 9307 strlt r3, [sp, #28] - 800667e: bfb8 it lt - 8006680: 9204 strlt r2, [sp, #16] - 8006682: 7823 ldrb r3, [r4, #0] - 8006684: 2b2e cmp r3, #46 ; 0x2e - 8006686: d10c bne.n 80066a2 <_vfiprintf_r+0x176> - 8006688: 7863 ldrb r3, [r4, #1] - 800668a: 2b2a cmp r3, #42 ; 0x2a - 800668c: d135 bne.n 80066fa <_vfiprintf_r+0x1ce> - 800668e: 9b03 ldr r3, [sp, #12] - 8006690: 3402 adds r4, #2 - 8006692: 1d1a adds r2, r3, #4 - 8006694: 681b ldr r3, [r3, #0] - 8006696: 9203 str r2, [sp, #12] - 8006698: 2b00 cmp r3, #0 - 800669a: bfb8 it lt - 800669c: f04f 33ff movlt.w r3, #4294967295 ; 0xffffffff - 80066a0: 9305 str r3, [sp, #20] - 80066a2: f8df a0e4 ldr.w sl, [pc, #228] ; 8006788 <_vfiprintf_r+0x25c> - 80066a6: 2203 movs r2, #3 - 80066a8: 4650 mov r0, sl - 80066aa: 7821 ldrb r1, [r4, #0] - 80066ac: f7ff f97e bl 80059ac - 80066b0: b140 cbz r0, 80066c4 <_vfiprintf_r+0x198> - 80066b2: 2340 movs r3, #64 ; 0x40 - 80066b4: eba0 000a sub.w r0, r0, sl - 80066b8: fa03 f000 lsl.w r0, r3, r0 - 80066bc: 9b04 ldr r3, [sp, #16] - 80066be: 3401 adds r4, #1 - 80066c0: 4303 orrs r3, r0 - 80066c2: 9304 str r3, [sp, #16] - 80066c4: f814 1b01 ldrb.w r1, [r4], #1 - 80066c8: 2206 movs r2, #6 - 80066ca: 482c ldr r0, [pc, #176] ; (800677c <_vfiprintf_r+0x250>) - 80066cc: f88d 1028 strb.w r1, [sp, #40] ; 0x28 - 80066d0: f7ff f96c bl 80059ac - 80066d4: 2800 cmp r0, #0 - 80066d6: d03f beq.n 8006758 <_vfiprintf_r+0x22c> - 80066d8: 4b29 ldr r3, [pc, #164] ; (8006780 <_vfiprintf_r+0x254>) - 80066da: bb1b cbnz r3, 8006724 <_vfiprintf_r+0x1f8> - 80066dc: 9b03 ldr r3, [sp, #12] - 80066de: 3307 adds r3, #7 - 80066e0: f023 0307 bic.w r3, r3, #7 - 80066e4: 3308 adds r3, #8 - 80066e6: 9303 str r3, [sp, #12] - 80066e8: 9b09 ldr r3, [sp, #36] ; 0x24 - 80066ea: 443b add r3, r7 - 80066ec: 9309 str r3, [sp, #36] ; 0x24 - 80066ee: e767 b.n 80065c0 <_vfiprintf_r+0x94> - 80066f0: 460c mov r4, r1 - 80066f2: 2001 movs r0, #1 - 80066f4: fb0c 3202 mla r2, ip, r2, r3 - 80066f8: e7a5 b.n 8006646 <_vfiprintf_r+0x11a> - 80066fa: 2300 movs r3, #0 - 80066fc: f04f 0c0a mov.w ip, #10 - 8006700: 4619 mov r1, r3 - 8006702: 3401 adds r4, #1 - 8006704: 9305 str r3, [sp, #20] - 8006706: 4620 mov r0, r4 - 8006708: f810 2b01 ldrb.w r2, [r0], #1 - 800670c: 3a30 subs r2, #48 ; 0x30 - 800670e: 2a09 cmp r2, #9 - 8006710: d903 bls.n 800671a <_vfiprintf_r+0x1ee> - 8006712: 2b00 cmp r3, #0 - 8006714: d0c5 beq.n 80066a2 <_vfiprintf_r+0x176> - 8006716: 9105 str r1, [sp, #20] - 8006718: e7c3 b.n 80066a2 <_vfiprintf_r+0x176> - 800671a: 4604 mov r4, r0 - 800671c: 2301 movs r3, #1 - 800671e: fb0c 2101 mla r1, ip, r1, r2 - 8006722: e7f0 b.n 8006706 <_vfiprintf_r+0x1da> - 8006724: ab03 add r3, sp, #12 - 8006726: 9300 str r3, [sp, #0] - 8006728: 462a mov r2, r5 - 800672a: 4630 mov r0, r6 - 800672c: 4b15 ldr r3, [pc, #84] ; (8006784 <_vfiprintf_r+0x258>) - 800672e: a904 add r1, sp, #16 - 8006730: f7fd feca bl 80044c8 <_printf_float> - 8006734: 4607 mov r7, r0 - 8006736: 1c78 adds r0, r7, #1 - 8006738: d1d6 bne.n 80066e8 <_vfiprintf_r+0x1bc> - 800673a: 6e6b ldr r3, [r5, #100] ; 0x64 - 800673c: 07d9 lsls r1, r3, #31 - 800673e: d405 bmi.n 800674c <_vfiprintf_r+0x220> - 8006740: 89ab ldrh r3, [r5, #12] - 8006742: 059a lsls r2, r3, #22 - 8006744: d402 bmi.n 800674c <_vfiprintf_r+0x220> - 8006746: 6da8 ldr r0, [r5, #88] ; 0x58 - 8006748: f7ff fe76 bl 8006438 <__retarget_lock_release_recursive> - 800674c: 89ab ldrh r3, [r5, #12] - 800674e: 065b lsls r3, r3, #25 - 8006750: f53f af12 bmi.w 8006578 <_vfiprintf_r+0x4c> - 8006754: 9809 ldr r0, [sp, #36] ; 0x24 - 8006756: e711 b.n 800657c <_vfiprintf_r+0x50> - 8006758: ab03 add r3, sp, #12 - 800675a: 9300 str r3, [sp, #0] - 800675c: 462a mov r2, r5 - 800675e: 4630 mov r0, r6 - 8006760: 4b08 ldr r3, [pc, #32] ; (8006784 <_vfiprintf_r+0x258>) - 8006762: a904 add r1, sp, #16 - 8006764: f7fe f94c bl 8004a00 <_printf_i> - 8006768: e7e4 b.n 8006734 <_vfiprintf_r+0x208> - 800676a: bf00 nop - 800676c: 08007e74 .word 0x08007e74 - 8006770: 08007e94 .word 0x08007e94 - 8006774: 08007e54 .word 0x08007e54 - 8006778: 08007cfc .word 0x08007cfc - 800677c: 08007d06 .word 0x08007d06 - 8006780: 080044c9 .word 0x080044c9 - 8006784: 08006509 .word 0x08006509 - 8006788: 08007d02 .word 0x08007d02 - -0800678c <__swbuf_r>: - 800678c: b5f8 push {r3, r4, r5, r6, r7, lr} - 800678e: 460e mov r6, r1 - 8006790: 4614 mov r4, r2 - 8006792: 4605 mov r5, r0 - 8006794: b118 cbz r0, 800679e <__swbuf_r+0x12> - 8006796: 6983 ldr r3, [r0, #24] - 8006798: b90b cbnz r3, 800679e <__swbuf_r+0x12> - 800679a: f000 f9e7 bl 8006b6c <__sinit> - 800679e: 4b21 ldr r3, [pc, #132] ; (8006824 <__swbuf_r+0x98>) - 80067a0: 429c cmp r4, r3 - 80067a2: d12b bne.n 80067fc <__swbuf_r+0x70> - 80067a4: 686c ldr r4, [r5, #4] - 80067a6: 69a3 ldr r3, [r4, #24] - 80067a8: 60a3 str r3, [r4, #8] - 80067aa: 89a3 ldrh r3, [r4, #12] - 80067ac: 071a lsls r2, r3, #28 - 80067ae: d52f bpl.n 8006810 <__swbuf_r+0x84> - 80067b0: 6923 ldr r3, [r4, #16] - 80067b2: b36b cbz r3, 8006810 <__swbuf_r+0x84> - 80067b4: 6923 ldr r3, [r4, #16] - 80067b6: 6820 ldr r0, [r4, #0] - 80067b8: b2f6 uxtb r6, r6 - 80067ba: 1ac0 subs r0, r0, r3 - 80067bc: 6963 ldr r3, [r4, #20] - 80067be: 4637 mov r7, r6 - 80067c0: 4283 cmp r3, r0 - 80067c2: dc04 bgt.n 80067ce <__swbuf_r+0x42> - 80067c4: 4621 mov r1, r4 - 80067c6: 4628 mov r0, r5 - 80067c8: f000 f93c bl 8006a44 <_fflush_r> - 80067cc: bb30 cbnz r0, 800681c <__swbuf_r+0x90> - 80067ce: 68a3 ldr r3, [r4, #8] - 80067d0: 3001 adds r0, #1 - 80067d2: 3b01 subs r3, #1 - 80067d4: 60a3 str r3, [r4, #8] - 80067d6: 6823 ldr r3, [r4, #0] - 80067d8: 1c5a adds r2, r3, #1 - 80067da: 6022 str r2, [r4, #0] - 80067dc: 701e strb r6, [r3, #0] - 80067de: 6963 ldr r3, [r4, #20] - 80067e0: 4283 cmp r3, r0 - 80067e2: d004 beq.n 80067ee <__swbuf_r+0x62> - 80067e4: 89a3 ldrh r3, [r4, #12] - 80067e6: 07db lsls r3, r3, #31 - 80067e8: d506 bpl.n 80067f8 <__swbuf_r+0x6c> - 80067ea: 2e0a cmp r6, #10 - 80067ec: d104 bne.n 80067f8 <__swbuf_r+0x6c> - 80067ee: 4621 mov r1, r4 - 80067f0: 4628 mov r0, r5 - 80067f2: f000 f927 bl 8006a44 <_fflush_r> - 80067f6: b988 cbnz r0, 800681c <__swbuf_r+0x90> - 80067f8: 4638 mov r0, r7 - 80067fa: bdf8 pop {r3, r4, r5, r6, r7, pc} - 80067fc: 4b0a ldr r3, [pc, #40] ; (8006828 <__swbuf_r+0x9c>) - 80067fe: 429c cmp r4, r3 - 8006800: d101 bne.n 8006806 <__swbuf_r+0x7a> - 8006802: 68ac ldr r4, [r5, #8] - 8006804: e7cf b.n 80067a6 <__swbuf_r+0x1a> - 8006806: 4b09 ldr r3, [pc, #36] ; (800682c <__swbuf_r+0xa0>) - 8006808: 429c cmp r4, r3 - 800680a: bf08 it eq - 800680c: 68ec ldreq r4, [r5, #12] - 800680e: e7ca b.n 80067a6 <__swbuf_r+0x1a> - 8006810: 4621 mov r1, r4 - 8006812: 4628 mov r0, r5 - 8006814: f000 f81a bl 800684c <__swsetup_r> - 8006818: 2800 cmp r0, #0 - 800681a: d0cb beq.n 80067b4 <__swbuf_r+0x28> - 800681c: f04f 37ff mov.w r7, #4294967295 ; 0xffffffff - 8006820: e7ea b.n 80067f8 <__swbuf_r+0x6c> - 8006822: bf00 nop - 8006824: 08007e74 .word 0x08007e74 - 8006828: 08007e94 .word 0x08007e94 - 800682c: 08007e54 .word 0x08007e54 - -08006830 <__ascii_wctomb>: - 8006830: 4603 mov r3, r0 - 8006832: 4608 mov r0, r1 - 8006834: b141 cbz r1, 8006848 <__ascii_wctomb+0x18> - 8006836: 2aff cmp r2, #255 ; 0xff - 8006838: d904 bls.n 8006844 <__ascii_wctomb+0x14> - 800683a: 228a movs r2, #138 ; 0x8a - 800683c: f04f 30ff mov.w r0, #4294967295 ; 0xffffffff - 8006840: 601a str r2, [r3, #0] - 8006842: 4770 bx lr - 8006844: 2001 movs r0, #1 - 8006846: 700a strb r2, [r1, #0] - 8006848: 4770 bx lr - ... - -0800684c <__swsetup_r>: - 800684c: 4b32 ldr r3, [pc, #200] ; (8006918 <__swsetup_r+0xcc>) - 800684e: b570 push {r4, r5, r6, lr} - 8006850: 681d ldr r5, [r3, #0] - 8006852: 4606 mov r6, r0 - 8006854: 460c mov r4, r1 - 8006856: b125 cbz r5, 8006862 <__swsetup_r+0x16> - 8006858: 69ab ldr r3, [r5, #24] - 800685a: b913 cbnz r3, 8006862 <__swsetup_r+0x16> - 800685c: 4628 mov r0, r5 - 800685e: f000 f985 bl 8006b6c <__sinit> - 8006862: 4b2e ldr r3, [pc, #184] ; (800691c <__swsetup_r+0xd0>) - 8006864: 429c cmp r4, r3 - 8006866: d10f bne.n 8006888 <__swsetup_r+0x3c> - 8006868: 686c ldr r4, [r5, #4] - 800686a: 89a3 ldrh r3, [r4, #12] - 800686c: f9b4 200c ldrsh.w r2, [r4, #12] - 8006870: 0719 lsls r1, r3, #28 - 8006872: d42c bmi.n 80068ce <__swsetup_r+0x82> - 8006874: 06dd lsls r5, r3, #27 - 8006876: d411 bmi.n 800689c <__swsetup_r+0x50> - 8006878: 2309 movs r3, #9 - 800687a: 6033 str r3, [r6, #0] - 800687c: f042 0340 orr.w r3, r2, #64 ; 0x40 - 8006880: f04f 30ff mov.w r0, #4294967295 ; 0xffffffff - 8006884: 81a3 strh r3, [r4, #12] - 8006886: e03e b.n 8006906 <__swsetup_r+0xba> - 8006888: 4b25 ldr r3, [pc, #148] ; (8006920 <__swsetup_r+0xd4>) - 800688a: 429c cmp r4, r3 - 800688c: d101 bne.n 8006892 <__swsetup_r+0x46> - 800688e: 68ac ldr r4, [r5, #8] - 8006890: e7eb b.n 800686a <__swsetup_r+0x1e> - 8006892: 4b24 ldr r3, [pc, #144] ; (8006924 <__swsetup_r+0xd8>) - 8006894: 429c cmp r4, r3 - 8006896: bf08 it eq - 8006898: 68ec ldreq r4, [r5, #12] - 800689a: e7e6 b.n 800686a <__swsetup_r+0x1e> - 800689c: 0758 lsls r0, r3, #29 - 800689e: d512 bpl.n 80068c6 <__swsetup_r+0x7a> - 80068a0: 6b61 ldr r1, [r4, #52] ; 0x34 - 80068a2: b141 cbz r1, 80068b6 <__swsetup_r+0x6a> - 80068a4: f104 0344 add.w r3, r4, #68 ; 0x44 - 80068a8: 4299 cmp r1, r3 - 80068aa: d002 beq.n 80068b2 <__swsetup_r+0x66> - 80068ac: 4630 mov r0, r6 - 80068ae: f7fd fcc7 bl 8004240 <_free_r> - 80068b2: 2300 movs r3, #0 - 80068b4: 6363 str r3, [r4, #52] ; 0x34 - 80068b6: 89a3 ldrh r3, [r4, #12] - 80068b8: f023 0324 bic.w r3, r3, #36 ; 0x24 - 80068bc: 81a3 strh r3, [r4, #12] - 80068be: 2300 movs r3, #0 - 80068c0: 6063 str r3, [r4, #4] - 80068c2: 6923 ldr r3, [r4, #16] - 80068c4: 6023 str r3, [r4, #0] - 80068c6: 89a3 ldrh r3, [r4, #12] - 80068c8: f043 0308 orr.w r3, r3, #8 - 80068cc: 81a3 strh r3, [r4, #12] - 80068ce: 6923 ldr r3, [r4, #16] - 80068d0: b94b cbnz r3, 80068e6 <__swsetup_r+0x9a> - 80068d2: 89a3 ldrh r3, [r4, #12] - 80068d4: f403 7320 and.w r3, r3, #640 ; 0x280 - 80068d8: f5b3 7f00 cmp.w r3, #512 ; 0x200 - 80068dc: d003 beq.n 80068e6 <__swsetup_r+0x9a> - 80068de: 4621 mov r1, r4 - 80068e0: 4630 mov r0, r6 - 80068e2: f000 fa05 bl 8006cf0 <__smakebuf_r> - 80068e6: 89a0 ldrh r0, [r4, #12] - 80068e8: f9b4 200c ldrsh.w r2, [r4, #12] - 80068ec: f010 0301 ands.w r3, r0, #1 - 80068f0: d00a beq.n 8006908 <__swsetup_r+0xbc> - 80068f2: 2300 movs r3, #0 - 80068f4: 60a3 str r3, [r4, #8] - 80068f6: 6963 ldr r3, [r4, #20] - 80068f8: 425b negs r3, r3 - 80068fa: 61a3 str r3, [r4, #24] - 80068fc: 6923 ldr r3, [r4, #16] - 80068fe: b943 cbnz r3, 8006912 <__swsetup_r+0xc6> - 8006900: f010 0080 ands.w r0, r0, #128 ; 0x80 - 8006904: d1ba bne.n 800687c <__swsetup_r+0x30> - 8006906: bd70 pop {r4, r5, r6, pc} - 8006908: 0781 lsls r1, r0, #30 - 800690a: bf58 it pl - 800690c: 6963 ldrpl r3, [r4, #20] - 800690e: 60a3 str r3, [r4, #8] - 8006910: e7f4 b.n 80068fc <__swsetup_r+0xb0> - 8006912: 2000 movs r0, #0 - 8006914: e7f7 b.n 8006906 <__swsetup_r+0xba> - 8006916: bf00 nop - 8006918: 2000000c .word 0x2000000c - 800691c: 08007e74 .word 0x08007e74 - 8006920: 08007e94 .word 0x08007e94 - 8006924: 08007e54 .word 0x08007e54 - -08006928 : - 8006928: 2006 movs r0, #6 - 800692a: b508 push {r3, lr} - 800692c: f000 fa50 bl 8006dd0 - 8006930: 2001 movs r0, #1 - 8006932: f7fa fe0b bl 800154c <_exit> - ... - -08006938 <__sflush_r>: - 8006938: 898a ldrh r2, [r1, #12] - 800693a: e92d 41f0 stmdb sp!, {r4, r5, r6, r7, r8, lr} - 800693e: 4605 mov r5, r0 - 8006940: 0710 lsls r0, r2, #28 - 8006942: 460c mov r4, r1 - 8006944: d458 bmi.n 80069f8 <__sflush_r+0xc0> - 8006946: 684b ldr r3, [r1, #4] - 8006948: 2b00 cmp r3, #0 - 800694a: dc05 bgt.n 8006958 <__sflush_r+0x20> - 800694c: 6c0b ldr r3, [r1, #64] ; 0x40 - 800694e: 2b00 cmp r3, #0 - 8006950: dc02 bgt.n 8006958 <__sflush_r+0x20> - 8006952: 2000 movs r0, #0 - 8006954: e8bd 81f0 ldmia.w sp!, {r4, r5, r6, r7, r8, pc} - 8006958: 6ae6 ldr r6, [r4, #44] ; 0x2c - 800695a: 2e00 cmp r6, #0 - 800695c: d0f9 beq.n 8006952 <__sflush_r+0x1a> - 800695e: 2300 movs r3, #0 - 8006960: f412 5280 ands.w r2, r2, #4096 ; 0x1000 - 8006964: 682f ldr r7, [r5, #0] - 8006966: 602b str r3, [r5, #0] - 8006968: d032 beq.n 80069d0 <__sflush_r+0x98> - 800696a: 6d60 ldr r0, [r4, #84] ; 0x54 - 800696c: 89a3 ldrh r3, [r4, #12] - 800696e: 075a lsls r2, r3, #29 - 8006970: d505 bpl.n 800697e <__sflush_r+0x46> - 8006972: 6863 ldr r3, [r4, #4] - 8006974: 1ac0 subs r0, r0, r3 - 8006976: 6b63 ldr r3, [r4, #52] ; 0x34 - 8006978: b10b cbz r3, 800697e <__sflush_r+0x46> - 800697a: 6c23 ldr r3, [r4, #64] ; 0x40 - 800697c: 1ac0 subs r0, r0, r3 - 800697e: 2300 movs r3, #0 - 8006980: 4602 mov r2, r0 - 8006982: 6ae6 ldr r6, [r4, #44] ; 0x2c - 8006984: 4628 mov r0, r5 - 8006986: 6a21 ldr r1, [r4, #32] - 8006988: 47b0 blx r6 - 800698a: 1c43 adds r3, r0, #1 - 800698c: 89a3 ldrh r3, [r4, #12] - 800698e: d106 bne.n 800699e <__sflush_r+0x66> - 8006990: 6829 ldr r1, [r5, #0] - 8006992: 291d cmp r1, #29 - 8006994: d82c bhi.n 80069f0 <__sflush_r+0xb8> - 8006996: 4a2a ldr r2, [pc, #168] ; (8006a40 <__sflush_r+0x108>) - 8006998: 40ca lsrs r2, r1 - 800699a: 07d6 lsls r6, r2, #31 - 800699c: d528 bpl.n 80069f0 <__sflush_r+0xb8> - 800699e: 2200 movs r2, #0 - 80069a0: 6062 str r2, [r4, #4] - 80069a2: 6922 ldr r2, [r4, #16] - 80069a4: 04d9 lsls r1, r3, #19 - 80069a6: 6022 str r2, [r4, #0] - 80069a8: d504 bpl.n 80069b4 <__sflush_r+0x7c> - 80069aa: 1c42 adds r2, r0, #1 - 80069ac: d101 bne.n 80069b2 <__sflush_r+0x7a> - 80069ae: 682b ldr r3, [r5, #0] - 80069b0: b903 cbnz r3, 80069b4 <__sflush_r+0x7c> - 80069b2: 6560 str r0, [r4, #84] ; 0x54 - 80069b4: 6b61 ldr r1, [r4, #52] ; 0x34 - 80069b6: 602f str r7, [r5, #0] - 80069b8: 2900 cmp r1, #0 - 80069ba: d0ca beq.n 8006952 <__sflush_r+0x1a> - 80069bc: f104 0344 add.w r3, r4, #68 ; 0x44 - 80069c0: 4299 cmp r1, r3 - 80069c2: d002 beq.n 80069ca <__sflush_r+0x92> - 80069c4: 4628 mov r0, r5 - 80069c6: f7fd fc3b bl 8004240 <_free_r> - 80069ca: 2000 movs r0, #0 - 80069cc: 6360 str r0, [r4, #52] ; 0x34 - 80069ce: e7c1 b.n 8006954 <__sflush_r+0x1c> - 80069d0: 6a21 ldr r1, [r4, #32] - 80069d2: 2301 movs r3, #1 - 80069d4: 4628 mov r0, r5 - 80069d6: 47b0 blx r6 - 80069d8: 1c41 adds r1, r0, #1 - 80069da: d1c7 bne.n 800696c <__sflush_r+0x34> - 80069dc: 682b ldr r3, [r5, #0] - 80069de: 2b00 cmp r3, #0 - 80069e0: d0c4 beq.n 800696c <__sflush_r+0x34> - 80069e2: 2b1d cmp r3, #29 - 80069e4: d001 beq.n 80069ea <__sflush_r+0xb2> - 80069e6: 2b16 cmp r3, #22 - 80069e8: d101 bne.n 80069ee <__sflush_r+0xb6> - 80069ea: 602f str r7, [r5, #0] - 80069ec: e7b1 b.n 8006952 <__sflush_r+0x1a> - 80069ee: 89a3 ldrh r3, [r4, #12] - 80069f0: f043 0340 orr.w r3, r3, #64 ; 0x40 - 80069f4: 81a3 strh r3, [r4, #12] - 80069f6: e7ad b.n 8006954 <__sflush_r+0x1c> - 80069f8: 690f ldr r7, [r1, #16] - 80069fa: 2f00 cmp r7, #0 - 80069fc: d0a9 beq.n 8006952 <__sflush_r+0x1a> - 80069fe: 0793 lsls r3, r2, #30 - 8006a00: bf18 it ne - 8006a02: 2300 movne r3, #0 - 8006a04: 680e ldr r6, [r1, #0] - 8006a06: bf08 it eq - 8006a08: 694b ldreq r3, [r1, #20] - 8006a0a: eba6 0807 sub.w r8, r6, r7 - 8006a0e: 600f str r7, [r1, #0] - 8006a10: 608b str r3, [r1, #8] - 8006a12: f1b8 0f00 cmp.w r8, #0 - 8006a16: dd9c ble.n 8006952 <__sflush_r+0x1a> - 8006a18: 4643 mov r3, r8 - 8006a1a: 463a mov r2, r7 - 8006a1c: 4628 mov r0, r5 - 8006a1e: 6a21 ldr r1, [r4, #32] - 8006a20: 6aa6 ldr r6, [r4, #40] ; 0x28 - 8006a22: 47b0 blx r6 - 8006a24: 2800 cmp r0, #0 - 8006a26: dc06 bgt.n 8006a36 <__sflush_r+0xfe> - 8006a28: 89a3 ldrh r3, [r4, #12] - 8006a2a: f04f 30ff mov.w r0, #4294967295 ; 0xffffffff - 8006a2e: f043 0340 orr.w r3, r3, #64 ; 0x40 - 8006a32: 81a3 strh r3, [r4, #12] - 8006a34: e78e b.n 8006954 <__sflush_r+0x1c> - 8006a36: 4407 add r7, r0 - 8006a38: eba8 0800 sub.w r8, r8, r0 - 8006a3c: e7e9 b.n 8006a12 <__sflush_r+0xda> - 8006a3e: bf00 nop - 8006a40: 20400001 .word 0x20400001 - -08006a44 <_fflush_r>: - 8006a44: b538 push {r3, r4, r5, lr} - 8006a46: 690b ldr r3, [r1, #16] - 8006a48: 4605 mov r5, r0 - 8006a4a: 460c mov r4, r1 - 8006a4c: b913 cbnz r3, 8006a54 <_fflush_r+0x10> - 8006a4e: 2500 movs r5, #0 - 8006a50: 4628 mov r0, r5 - 8006a52: bd38 pop {r3, r4, r5, pc} - 8006a54: b118 cbz r0, 8006a5e <_fflush_r+0x1a> - 8006a56: 6983 ldr r3, [r0, #24] - 8006a58: b90b cbnz r3, 8006a5e <_fflush_r+0x1a> - 8006a5a: f000 f887 bl 8006b6c <__sinit> - 8006a5e: 4b14 ldr r3, [pc, #80] ; (8006ab0 <_fflush_r+0x6c>) - 8006a60: 429c cmp r4, r3 - 8006a62: d11b bne.n 8006a9c <_fflush_r+0x58> - 8006a64: 686c ldr r4, [r5, #4] - 8006a66: f9b4 300c ldrsh.w r3, [r4, #12] - 8006a6a: 2b00 cmp r3, #0 - 8006a6c: d0ef beq.n 8006a4e <_fflush_r+0xa> - 8006a6e: 6e62 ldr r2, [r4, #100] ; 0x64 - 8006a70: 07d0 lsls r0, r2, #31 - 8006a72: d404 bmi.n 8006a7e <_fflush_r+0x3a> - 8006a74: 0599 lsls r1, r3, #22 - 8006a76: d402 bmi.n 8006a7e <_fflush_r+0x3a> - 8006a78: 6da0 ldr r0, [r4, #88] ; 0x58 - 8006a7a: f7ff fcdc bl 8006436 <__retarget_lock_acquire_recursive> - 8006a7e: 4628 mov r0, r5 - 8006a80: 4621 mov r1, r4 - 8006a82: f7ff ff59 bl 8006938 <__sflush_r> - 8006a86: 6e63 ldr r3, [r4, #100] ; 0x64 - 8006a88: 4605 mov r5, r0 - 8006a8a: 07da lsls r2, r3, #31 - 8006a8c: d4e0 bmi.n 8006a50 <_fflush_r+0xc> - 8006a8e: 89a3 ldrh r3, [r4, #12] - 8006a90: 059b lsls r3, r3, #22 - 8006a92: d4dd bmi.n 8006a50 <_fflush_r+0xc> - 8006a94: 6da0 ldr r0, [r4, #88] ; 0x58 - 8006a96: f7ff fccf bl 8006438 <__retarget_lock_release_recursive> - 8006a9a: e7d9 b.n 8006a50 <_fflush_r+0xc> - 8006a9c: 4b05 ldr r3, [pc, #20] ; (8006ab4 <_fflush_r+0x70>) - 8006a9e: 429c cmp r4, r3 - 8006aa0: d101 bne.n 8006aa6 <_fflush_r+0x62> - 8006aa2: 68ac ldr r4, [r5, #8] - 8006aa4: e7df b.n 8006a66 <_fflush_r+0x22> - 8006aa6: 4b04 ldr r3, [pc, #16] ; (8006ab8 <_fflush_r+0x74>) - 8006aa8: 429c cmp r4, r3 - 8006aaa: bf08 it eq - 8006aac: 68ec ldreq r4, [r5, #12] - 8006aae: e7da b.n 8006a66 <_fflush_r+0x22> - 8006ab0: 08007e74 .word 0x08007e74 - 8006ab4: 08007e94 .word 0x08007e94 - 8006ab8: 08007e54 .word 0x08007e54 - -08006abc : - 8006abc: 2300 movs r3, #0 - 8006abe: b510 push {r4, lr} - 8006ac0: 4604 mov r4, r0 - 8006ac2: e9c0 3300 strd r3, r3, [r0] - 8006ac6: e9c0 3304 strd r3, r3, [r0, #16] - 8006aca: 6083 str r3, [r0, #8] - 8006acc: 8181 strh r1, [r0, #12] - 8006ace: 6643 str r3, [r0, #100] ; 0x64 - 8006ad0: 81c2 strh r2, [r0, #14] - 8006ad2: 6183 str r3, [r0, #24] - 8006ad4: 4619 mov r1, r3 - 8006ad6: 2208 movs r2, #8 - 8006ad8: 305c adds r0, #92 ; 0x5c - 8006ada: f7fd fba9 bl 8004230 - 8006ade: 4b05 ldr r3, [pc, #20] ; (8006af4 ) - 8006ae0: 6224 str r4, [r4, #32] - 8006ae2: 6263 str r3, [r4, #36] ; 0x24 - 8006ae4: 4b04 ldr r3, [pc, #16] ; (8006af8 ) - 8006ae6: 62a3 str r3, [r4, #40] ; 0x28 - 8006ae8: 4b04 ldr r3, [pc, #16] ; (8006afc ) - 8006aea: 62e3 str r3, [r4, #44] ; 0x2c - 8006aec: 4b04 ldr r3, [pc, #16] ; (8006b00 ) - 8006aee: 6323 str r3, [r4, #48] ; 0x30 - 8006af0: bd10 pop {r4, pc} - 8006af2: bf00 nop - 8006af4: 08006e09 .word 0x08006e09 - 8006af8: 08006e2b .word 0x08006e2b - 8006afc: 08006e63 .word 0x08006e63 - 8006b00: 08006e87 .word 0x08006e87 - -08006b04 <_cleanup_r>: - 8006b04: 4901 ldr r1, [pc, #4] ; (8006b0c <_cleanup_r+0x8>) - 8006b06: f000 b8af b.w 8006c68 <_fwalk_reent> - 8006b0a: bf00 nop - 8006b0c: 08006a45 .word 0x08006a45 - -08006b10 <__sfmoreglue>: - 8006b10: b570 push {r4, r5, r6, lr} - 8006b12: 2568 movs r5, #104 ; 0x68 - 8006b14: 1e4a subs r2, r1, #1 - 8006b16: 4355 muls r5, r2 - 8006b18: 460e mov r6, r1 - 8006b1a: f105 0174 add.w r1, r5, #116 ; 0x74 - 8006b1e: f7fd fbdb bl 80042d8 <_malloc_r> - 8006b22: 4604 mov r4, r0 - 8006b24: b140 cbz r0, 8006b38 <__sfmoreglue+0x28> - 8006b26: 2100 movs r1, #0 - 8006b28: e9c0 1600 strd r1, r6, [r0] - 8006b2c: 300c adds r0, #12 - 8006b2e: 60a0 str r0, [r4, #8] - 8006b30: f105 0268 add.w r2, r5, #104 ; 0x68 - 8006b34: f7fd fb7c bl 8004230 - 8006b38: 4620 mov r0, r4 - 8006b3a: bd70 pop {r4, r5, r6, pc} - -08006b3c <__sfp_lock_acquire>: - 8006b3c: 4801 ldr r0, [pc, #4] ; (8006b44 <__sfp_lock_acquire+0x8>) - 8006b3e: f7ff bc7a b.w 8006436 <__retarget_lock_acquire_recursive> - 8006b42: bf00 nop - 8006b44: 20000294 .word 0x20000294 - -08006b48 <__sfp_lock_release>: - 8006b48: 4801 ldr r0, [pc, #4] ; (8006b50 <__sfp_lock_release+0x8>) - 8006b4a: f7ff bc75 b.w 8006438 <__retarget_lock_release_recursive> - 8006b4e: bf00 nop - 8006b50: 20000294 .word 0x20000294 - -08006b54 <__sinit_lock_acquire>: - 8006b54: 4801 ldr r0, [pc, #4] ; (8006b5c <__sinit_lock_acquire+0x8>) - 8006b56: f7ff bc6e b.w 8006436 <__retarget_lock_acquire_recursive> - 8006b5a: bf00 nop - 8006b5c: 2000028f .word 0x2000028f - -08006b60 <__sinit_lock_release>: - 8006b60: 4801 ldr r0, [pc, #4] ; (8006b68 <__sinit_lock_release+0x8>) - 8006b62: f7ff bc69 b.w 8006438 <__retarget_lock_release_recursive> - 8006b66: bf00 nop - 8006b68: 2000028f .word 0x2000028f - -08006b6c <__sinit>: - 8006b6c: b510 push {r4, lr} - 8006b6e: 4604 mov r4, r0 - 8006b70: f7ff fff0 bl 8006b54 <__sinit_lock_acquire> - 8006b74: 69a3 ldr r3, [r4, #24] - 8006b76: b11b cbz r3, 8006b80 <__sinit+0x14> - 8006b78: e8bd 4010 ldmia.w sp!, {r4, lr} - 8006b7c: f7ff bff0 b.w 8006b60 <__sinit_lock_release> - 8006b80: e9c4 3312 strd r3, r3, [r4, #72] ; 0x48 - 8006b84: 6523 str r3, [r4, #80] ; 0x50 - 8006b86: 4b13 ldr r3, [pc, #76] ; (8006bd4 <__sinit+0x68>) - 8006b88: 4a13 ldr r2, [pc, #76] ; (8006bd8 <__sinit+0x6c>) - 8006b8a: 681b ldr r3, [r3, #0] - 8006b8c: 62a2 str r2, [r4, #40] ; 0x28 - 8006b8e: 42a3 cmp r3, r4 - 8006b90: bf08 it eq - 8006b92: 2301 moveq r3, #1 - 8006b94: 4620 mov r0, r4 - 8006b96: bf08 it eq - 8006b98: 61a3 streq r3, [r4, #24] - 8006b9a: f000 f81f bl 8006bdc <__sfp> - 8006b9e: 6060 str r0, [r4, #4] - 8006ba0: 4620 mov r0, r4 - 8006ba2: f000 f81b bl 8006bdc <__sfp> - 8006ba6: 60a0 str r0, [r4, #8] - 8006ba8: 4620 mov r0, r4 - 8006baa: f000 f817 bl 8006bdc <__sfp> - 8006bae: 2200 movs r2, #0 - 8006bb0: 2104 movs r1, #4 - 8006bb2: 60e0 str r0, [r4, #12] - 8006bb4: 6860 ldr r0, [r4, #4] - 8006bb6: f7ff ff81 bl 8006abc - 8006bba: 2201 movs r2, #1 - 8006bbc: 2109 movs r1, #9 - 8006bbe: 68a0 ldr r0, [r4, #8] - 8006bc0: f7ff ff7c bl 8006abc - 8006bc4: 2202 movs r2, #2 - 8006bc6: 2112 movs r1, #18 - 8006bc8: 68e0 ldr r0, [r4, #12] - 8006bca: f7ff ff77 bl 8006abc - 8006bce: 2301 movs r3, #1 - 8006bd0: 61a3 str r3, [r4, #24] - 8006bd2: e7d1 b.n 8006b78 <__sinit+0xc> - 8006bd4: 08007ad4 .word 0x08007ad4 - 8006bd8: 08006b05 .word 0x08006b05 - -08006bdc <__sfp>: - 8006bdc: b5f8 push {r3, r4, r5, r6, r7, lr} - 8006bde: 4607 mov r7, r0 - 8006be0: f7ff ffac bl 8006b3c <__sfp_lock_acquire> - 8006be4: 4b1e ldr r3, [pc, #120] ; (8006c60 <__sfp+0x84>) - 8006be6: 681e ldr r6, [r3, #0] - 8006be8: 69b3 ldr r3, [r6, #24] - 8006bea: b913 cbnz r3, 8006bf2 <__sfp+0x16> - 8006bec: 4630 mov r0, r6 - 8006bee: f7ff ffbd bl 8006b6c <__sinit> - 8006bf2: 3648 adds r6, #72 ; 0x48 - 8006bf4: e9d6 3401 ldrd r3, r4, [r6, #4] - 8006bf8: 3b01 subs r3, #1 - 8006bfa: d503 bpl.n 8006c04 <__sfp+0x28> - 8006bfc: 6833 ldr r3, [r6, #0] - 8006bfe: b30b cbz r3, 8006c44 <__sfp+0x68> - 8006c00: 6836 ldr r6, [r6, #0] - 8006c02: e7f7 b.n 8006bf4 <__sfp+0x18> - 8006c04: f9b4 500c ldrsh.w r5, [r4, #12] - 8006c08: b9d5 cbnz r5, 8006c40 <__sfp+0x64> - 8006c0a: 4b16 ldr r3, [pc, #88] ; (8006c64 <__sfp+0x88>) - 8006c0c: f104 0058 add.w r0, r4, #88 ; 0x58 - 8006c10: 60e3 str r3, [r4, #12] - 8006c12: 6665 str r5, [r4, #100] ; 0x64 - 8006c14: f7ff fc0e bl 8006434 <__retarget_lock_init_recursive> - 8006c18: f7ff ff96 bl 8006b48 <__sfp_lock_release> - 8006c1c: 2208 movs r2, #8 - 8006c1e: 4629 mov r1, r5 - 8006c20: e9c4 5501 strd r5, r5, [r4, #4] - 8006c24: e9c4 5504 strd r5, r5, [r4, #16] - 8006c28: 6025 str r5, [r4, #0] - 8006c2a: 61a5 str r5, [r4, #24] - 8006c2c: f104 005c add.w r0, r4, #92 ; 0x5c - 8006c30: f7fd fafe bl 8004230 - 8006c34: e9c4 550d strd r5, r5, [r4, #52] ; 0x34 - 8006c38: e9c4 5512 strd r5, r5, [r4, #72] ; 0x48 - 8006c3c: 4620 mov r0, r4 - 8006c3e: bdf8 pop {r3, r4, r5, r6, r7, pc} - 8006c40: 3468 adds r4, #104 ; 0x68 - 8006c42: e7d9 b.n 8006bf8 <__sfp+0x1c> - 8006c44: 2104 movs r1, #4 - 8006c46: 4638 mov r0, r7 - 8006c48: f7ff ff62 bl 8006b10 <__sfmoreglue> - 8006c4c: 4604 mov r4, r0 - 8006c4e: 6030 str r0, [r6, #0] - 8006c50: 2800 cmp r0, #0 - 8006c52: d1d5 bne.n 8006c00 <__sfp+0x24> - 8006c54: f7ff ff78 bl 8006b48 <__sfp_lock_release> - 8006c58: 230c movs r3, #12 - 8006c5a: 603b str r3, [r7, #0] - 8006c5c: e7ee b.n 8006c3c <__sfp+0x60> - 8006c5e: bf00 nop - 8006c60: 08007ad4 .word 0x08007ad4 - 8006c64: ffff0001 .word 0xffff0001 - -08006c68 <_fwalk_reent>: - 8006c68: e92d 43f8 stmdb sp!, {r3, r4, r5, r6, r7, r8, r9, lr} - 8006c6c: 4606 mov r6, r0 - 8006c6e: 4688 mov r8, r1 - 8006c70: 2700 movs r7, #0 - 8006c72: f100 0448 add.w r4, r0, #72 ; 0x48 - 8006c76: e9d4 9501 ldrd r9, r5, [r4, #4] - 8006c7a: f1b9 0901 subs.w r9, r9, #1 - 8006c7e: d505 bpl.n 8006c8c <_fwalk_reent+0x24> - 8006c80: 6824 ldr r4, [r4, #0] - 8006c82: 2c00 cmp r4, #0 - 8006c84: d1f7 bne.n 8006c76 <_fwalk_reent+0xe> - 8006c86: 4638 mov r0, r7 - 8006c88: e8bd 83f8 ldmia.w sp!, {r3, r4, r5, r6, r7, r8, r9, pc} - 8006c8c: 89ab ldrh r3, [r5, #12] - 8006c8e: 2b01 cmp r3, #1 - 8006c90: d907 bls.n 8006ca2 <_fwalk_reent+0x3a> - 8006c92: f9b5 300e ldrsh.w r3, [r5, #14] - 8006c96: 3301 adds r3, #1 - 8006c98: d003 beq.n 8006ca2 <_fwalk_reent+0x3a> - 8006c9a: 4629 mov r1, r5 - 8006c9c: 4630 mov r0, r6 - 8006c9e: 47c0 blx r8 - 8006ca0: 4307 orrs r7, r0 - 8006ca2: 3568 adds r5, #104 ; 0x68 - 8006ca4: e7e9 b.n 8006c7a <_fwalk_reent+0x12> - -08006ca6 <__swhatbuf_r>: - 8006ca6: b570 push {r4, r5, r6, lr} - 8006ca8: 460e mov r6, r1 - 8006caa: f9b1 100e ldrsh.w r1, [r1, #14] - 8006cae: 4614 mov r4, r2 - 8006cb0: 2900 cmp r1, #0 - 8006cb2: 461d mov r5, r3 - 8006cb4: b096 sub sp, #88 ; 0x58 - 8006cb6: da07 bge.n 8006cc8 <__swhatbuf_r+0x22> - 8006cb8: 2300 movs r3, #0 - 8006cba: 602b str r3, [r5, #0] - 8006cbc: 89b3 ldrh r3, [r6, #12] - 8006cbe: 061a lsls r2, r3, #24 - 8006cc0: d410 bmi.n 8006ce4 <__swhatbuf_r+0x3e> - 8006cc2: f44f 6380 mov.w r3, #1024 ; 0x400 - 8006cc6: e00e b.n 8006ce6 <__swhatbuf_r+0x40> - 8006cc8: 466a mov r2, sp - 8006cca: f000 f903 bl 8006ed4 <_fstat_r> - 8006cce: 2800 cmp r0, #0 - 8006cd0: dbf2 blt.n 8006cb8 <__swhatbuf_r+0x12> - 8006cd2: 9a01 ldr r2, [sp, #4] - 8006cd4: f402 4270 and.w r2, r2, #61440 ; 0xf000 - 8006cd8: f5a2 5300 sub.w r3, r2, #8192 ; 0x2000 - 8006cdc: 425a negs r2, r3 - 8006cde: 415a adcs r2, r3 - 8006ce0: 602a str r2, [r5, #0] - 8006ce2: e7ee b.n 8006cc2 <__swhatbuf_r+0x1c> - 8006ce4: 2340 movs r3, #64 ; 0x40 - 8006ce6: 2000 movs r0, #0 - 8006ce8: 6023 str r3, [r4, #0] - 8006cea: b016 add sp, #88 ; 0x58 - 8006cec: bd70 pop {r4, r5, r6, pc} - ... - -08006cf0 <__smakebuf_r>: - 8006cf0: 898b ldrh r3, [r1, #12] - 8006cf2: b573 push {r0, r1, r4, r5, r6, lr} - 8006cf4: 079d lsls r5, r3, #30 - 8006cf6: 4606 mov r6, r0 - 8006cf8: 460c mov r4, r1 - 8006cfa: d507 bpl.n 8006d0c <__smakebuf_r+0x1c> - 8006cfc: f104 0347 add.w r3, r4, #71 ; 0x47 - 8006d00: 6023 str r3, [r4, #0] - 8006d02: 6123 str r3, [r4, #16] - 8006d04: 2301 movs r3, #1 - 8006d06: 6163 str r3, [r4, #20] - 8006d08: b002 add sp, #8 - 8006d0a: bd70 pop {r4, r5, r6, pc} - 8006d0c: 466a mov r2, sp - 8006d0e: ab01 add r3, sp, #4 - 8006d10: f7ff ffc9 bl 8006ca6 <__swhatbuf_r> - 8006d14: 9900 ldr r1, [sp, #0] - 8006d16: 4605 mov r5, r0 - 8006d18: 4630 mov r0, r6 - 8006d1a: f7fd fadd bl 80042d8 <_malloc_r> - 8006d1e: b948 cbnz r0, 8006d34 <__smakebuf_r+0x44> - 8006d20: f9b4 300c ldrsh.w r3, [r4, #12] - 8006d24: 059a lsls r2, r3, #22 - 8006d26: d4ef bmi.n 8006d08 <__smakebuf_r+0x18> - 8006d28: f023 0303 bic.w r3, r3, #3 - 8006d2c: f043 0302 orr.w r3, r3, #2 - 8006d30: 81a3 strh r3, [r4, #12] - 8006d32: e7e3 b.n 8006cfc <__smakebuf_r+0xc> - 8006d34: 4b0d ldr r3, [pc, #52] ; (8006d6c <__smakebuf_r+0x7c>) - 8006d36: 62b3 str r3, [r6, #40] ; 0x28 - 8006d38: 89a3 ldrh r3, [r4, #12] - 8006d3a: 6020 str r0, [r4, #0] - 8006d3c: f043 0380 orr.w r3, r3, #128 ; 0x80 - 8006d40: 81a3 strh r3, [r4, #12] - 8006d42: 9b00 ldr r3, [sp, #0] - 8006d44: 6120 str r0, [r4, #16] - 8006d46: 6163 str r3, [r4, #20] - 8006d48: 9b01 ldr r3, [sp, #4] - 8006d4a: b15b cbz r3, 8006d64 <__smakebuf_r+0x74> - 8006d4c: 4630 mov r0, r6 - 8006d4e: f9b4 100e ldrsh.w r1, [r4, #14] - 8006d52: f000 f8d1 bl 8006ef8 <_isatty_r> - 8006d56: b128 cbz r0, 8006d64 <__smakebuf_r+0x74> - 8006d58: 89a3 ldrh r3, [r4, #12] - 8006d5a: f023 0303 bic.w r3, r3, #3 - 8006d5e: f043 0301 orr.w r3, r3, #1 - 8006d62: 81a3 strh r3, [r4, #12] - 8006d64: 89a0 ldrh r0, [r4, #12] - 8006d66: 4305 orrs r5, r0 - 8006d68: 81a5 strh r5, [r4, #12] - 8006d6a: e7cd b.n 8006d08 <__smakebuf_r+0x18> - 8006d6c: 08006b05 .word 0x08006b05 - -08006d70 <_malloc_usable_size_r>: - 8006d70: f851 3c04 ldr.w r3, [r1, #-4] - 8006d74: 1f18 subs r0, r3, #4 - 8006d76: 2b00 cmp r3, #0 - 8006d78: bfbc itt lt - 8006d7a: 580b ldrlt r3, [r1, r0] - 8006d7c: 18c0 addlt r0, r0, r3 - 8006d7e: 4770 bx lr - -08006d80 <_raise_r>: - 8006d80: 291f cmp r1, #31 - 8006d82: b538 push {r3, r4, r5, lr} - 8006d84: 4604 mov r4, r0 - 8006d86: 460d mov r5, r1 - 8006d88: d904 bls.n 8006d94 <_raise_r+0x14> - 8006d8a: 2316 movs r3, #22 - 8006d8c: 6003 str r3, [r0, #0] - 8006d8e: f04f 30ff mov.w r0, #4294967295 ; 0xffffffff - 8006d92: bd38 pop {r3, r4, r5, pc} - 8006d94: 6c42 ldr r2, [r0, #68] ; 0x44 - 8006d96: b112 cbz r2, 8006d9e <_raise_r+0x1e> - 8006d98: f852 3021 ldr.w r3, [r2, r1, lsl #2] - 8006d9c: b94b cbnz r3, 8006db2 <_raise_r+0x32> - 8006d9e: 4620 mov r0, r4 - 8006da0: f000 f830 bl 8006e04 <_getpid_r> - 8006da4: 462a mov r2, r5 - 8006da6: 4601 mov r1, r0 +08006d54 <_Balloc>: + 8006d54: b570 push {r4, r5, r6, lr} + 8006d56: 6a46 ldr r6, [r0, #36] ; 0x24 + 8006d58: 4604 mov r4, r0 + 8006d5a: 460d mov r5, r1 + 8006d5c: b976 cbnz r6, 8006d7c <_Balloc+0x28> + 8006d5e: 2010 movs r0, #16 + 8006d60: f7fe fc00 bl 8005564 + 8006d64: 4602 mov r2, r0 + 8006d66: 6260 str r0, [r4, #36] ; 0x24 + 8006d68: b920 cbnz r0, 8006d74 <_Balloc+0x20> + 8006d6a: 2166 movs r1, #102 ; 0x66 + 8006d6c: 4b17 ldr r3, [pc, #92] ; (8006dcc <_Balloc+0x78>) + 8006d6e: 4818 ldr r0, [pc, #96] ; (8006dd0 <_Balloc+0x7c>) + 8006d70: f000 fcdc bl 800772c <__assert_func> + 8006d74: e9c0 6601 strd r6, r6, [r0, #4] + 8006d78: 6006 str r6, [r0, #0] + 8006d7a: 60c6 str r6, [r0, #12] + 8006d7c: 6a66 ldr r6, [r4, #36] ; 0x24 + 8006d7e: 68f3 ldr r3, [r6, #12] + 8006d80: b183 cbz r3, 8006da4 <_Balloc+0x50> + 8006d82: 6a63 ldr r3, [r4, #36] ; 0x24 + 8006d84: 68db ldr r3, [r3, #12] + 8006d86: f853 0025 ldr.w r0, [r3, r5, lsl #2] + 8006d8a: b9b8 cbnz r0, 8006dbc <_Balloc+0x68> + 8006d8c: 2101 movs r1, #1 + 8006d8e: fa01 f605 lsl.w r6, r1, r5 + 8006d92: 1d72 adds r2, r6, #5 + 8006d94: 4620 mov r0, r4 + 8006d96: 0092 lsls r2, r2, #2 + 8006d98: f000 fb5e bl 8007458 <_calloc_r> + 8006d9c: b160 cbz r0, 8006db8 <_Balloc+0x64> + 8006d9e: e9c0 5601 strd r5, r6, [r0, #4] + 8006da2: e00e b.n 8006dc2 <_Balloc+0x6e> + 8006da4: 2221 movs r2, #33 ; 0x21 + 8006da6: 2104 movs r1, #4 8006da8: 4620 mov r0, r4 - 8006daa: e8bd 4038 ldmia.w sp!, {r3, r4, r5, lr} - 8006dae: f000 b817 b.w 8006de0 <_kill_r> - 8006db2: 2b01 cmp r3, #1 - 8006db4: d00a beq.n 8006dcc <_raise_r+0x4c> - 8006db6: 1c59 adds r1, r3, #1 - 8006db8: d103 bne.n 8006dc2 <_raise_r+0x42> - 8006dba: 2316 movs r3, #22 - 8006dbc: 6003 str r3, [r0, #0] - 8006dbe: 2001 movs r0, #1 - 8006dc0: e7e7 b.n 8006d92 <_raise_r+0x12> - 8006dc2: 2400 movs r4, #0 - 8006dc4: 4628 mov r0, r5 - 8006dc6: f842 4025 str.w r4, [r2, r5, lsl #2] - 8006dca: 4798 blx r3 - 8006dcc: 2000 movs r0, #0 - 8006dce: e7e0 b.n 8006d92 <_raise_r+0x12> + 8006daa: f000 fb55 bl 8007458 <_calloc_r> + 8006dae: 6a63 ldr r3, [r4, #36] ; 0x24 + 8006db0: 60f0 str r0, [r6, #12] + 8006db2: 68db ldr r3, [r3, #12] + 8006db4: 2b00 cmp r3, #0 + 8006db6: d1e4 bne.n 8006d82 <_Balloc+0x2e> + 8006db8: 2000 movs r0, #0 + 8006dba: bd70 pop {r4, r5, r6, pc} + 8006dbc: 6802 ldr r2, [r0, #0] + 8006dbe: f843 2025 str.w r2, [r3, r5, lsl #2] + 8006dc2: 2300 movs r3, #0 + 8006dc4: e9c0 3303 strd r3, r3, [r0, #12] + 8006dc8: e7f7 b.n 8006dba <_Balloc+0x66> + 8006dca: bf00 nop + 8006dcc: 08008e79 .word 0x08008e79 + 8006dd0: 08008f00 .word 0x08008f00 -08006dd0 : - 8006dd0: 4b02 ldr r3, [pc, #8] ; (8006ddc ) - 8006dd2: 4601 mov r1, r0 - 8006dd4: 6818 ldr r0, [r3, #0] - 8006dd6: f7ff bfd3 b.w 8006d80 <_raise_r> - 8006dda: bf00 nop - 8006ddc: 2000000c .word 0x2000000c +08006dd4 <_Bfree>: + 8006dd4: b570 push {r4, r5, r6, lr} + 8006dd6: 6a46 ldr r6, [r0, #36] ; 0x24 + 8006dd8: 4605 mov r5, r0 + 8006dda: 460c mov r4, r1 + 8006ddc: b976 cbnz r6, 8006dfc <_Bfree+0x28> + 8006dde: 2010 movs r0, #16 + 8006de0: f7fe fbc0 bl 8005564 + 8006de4: 4602 mov r2, r0 + 8006de6: 6268 str r0, [r5, #36] ; 0x24 + 8006de8: b920 cbnz r0, 8006df4 <_Bfree+0x20> + 8006dea: 218a movs r1, #138 ; 0x8a + 8006dec: 4b08 ldr r3, [pc, #32] ; (8006e10 <_Bfree+0x3c>) + 8006dee: 4809 ldr r0, [pc, #36] ; (8006e14 <_Bfree+0x40>) + 8006df0: f000 fc9c bl 800772c <__assert_func> + 8006df4: e9c0 6601 strd r6, r6, [r0, #4] + 8006df8: 6006 str r6, [r0, #0] + 8006dfa: 60c6 str r6, [r0, #12] + 8006dfc: b13c cbz r4, 8006e0e <_Bfree+0x3a> + 8006dfe: 6a6b ldr r3, [r5, #36] ; 0x24 + 8006e00: 6862 ldr r2, [r4, #4] + 8006e02: 68db ldr r3, [r3, #12] + 8006e04: f853 1022 ldr.w r1, [r3, r2, lsl #2] + 8006e08: 6021 str r1, [r4, #0] + 8006e0a: f843 4022 str.w r4, [r3, r2, lsl #2] + 8006e0e: bd70 pop {r4, r5, r6, pc} + 8006e10: 08008e79 .word 0x08008e79 + 8006e14: 08008f00 .word 0x08008f00 -08006de0 <_kill_r>: - 8006de0: b538 push {r3, r4, r5, lr} - 8006de2: 2300 movs r3, #0 - 8006de4: 4d06 ldr r5, [pc, #24] ; (8006e00 <_kill_r+0x20>) - 8006de6: 4604 mov r4, r0 - 8006de8: 4608 mov r0, r1 - 8006dea: 4611 mov r1, r2 - 8006dec: 602b str r3, [r5, #0] - 8006dee: f7fa fb9d bl 800152c <_kill> - 8006df2: 1c43 adds r3, r0, #1 - 8006df4: d102 bne.n 8006dfc <_kill_r+0x1c> - 8006df6: 682b ldr r3, [r5, #0] - 8006df8: b103 cbz r3, 8006dfc <_kill_r+0x1c> - 8006dfa: 6023 str r3, [r4, #0] - 8006dfc: bd38 pop {r3, r4, r5, pc} - 8006dfe: bf00 nop - 8006e00: 20000288 .word 0x20000288 +08006e18 <__multadd>: + 8006e18: e92d 41f0 stmdb sp!, {r4, r5, r6, r7, r8, lr} + 8006e1c: 4698 mov r8, r3 + 8006e1e: 460c mov r4, r1 + 8006e20: 2300 movs r3, #0 + 8006e22: 690e ldr r6, [r1, #16] + 8006e24: 4607 mov r7, r0 + 8006e26: f101 0014 add.w r0, r1, #20 + 8006e2a: 6805 ldr r5, [r0, #0] + 8006e2c: 3301 adds r3, #1 + 8006e2e: b2a9 uxth r1, r5 + 8006e30: fb02 8101 mla r1, r2, r1, r8 + 8006e34: 0c2d lsrs r5, r5, #16 + 8006e36: ea4f 4c11 mov.w ip, r1, lsr #16 + 8006e3a: fb02 c505 mla r5, r2, r5, ip + 8006e3e: b289 uxth r1, r1 + 8006e40: eb01 4105 add.w r1, r1, r5, lsl #16 + 8006e44: 429e cmp r6, r3 + 8006e46: ea4f 4815 mov.w r8, r5, lsr #16 + 8006e4a: f840 1b04 str.w r1, [r0], #4 + 8006e4e: dcec bgt.n 8006e2a <__multadd+0x12> + 8006e50: f1b8 0f00 cmp.w r8, #0 + 8006e54: d022 beq.n 8006e9c <__multadd+0x84> + 8006e56: 68a3 ldr r3, [r4, #8] + 8006e58: 42b3 cmp r3, r6 + 8006e5a: dc19 bgt.n 8006e90 <__multadd+0x78> + 8006e5c: 6861 ldr r1, [r4, #4] + 8006e5e: 4638 mov r0, r7 + 8006e60: 3101 adds r1, #1 + 8006e62: f7ff ff77 bl 8006d54 <_Balloc> + 8006e66: 4605 mov r5, r0 + 8006e68: b928 cbnz r0, 8006e76 <__multadd+0x5e> + 8006e6a: 4602 mov r2, r0 + 8006e6c: 21b5 movs r1, #181 ; 0xb5 + 8006e6e: 4b0d ldr r3, [pc, #52] ; (8006ea4 <__multadd+0x8c>) + 8006e70: 480d ldr r0, [pc, #52] ; (8006ea8 <__multadd+0x90>) + 8006e72: f000 fc5b bl 800772c <__assert_func> + 8006e76: 6922 ldr r2, [r4, #16] + 8006e78: f104 010c add.w r1, r4, #12 + 8006e7c: 3202 adds r2, #2 + 8006e7e: 0092 lsls r2, r2, #2 + 8006e80: 300c adds r0, #12 + 8006e82: f7ff ff4d bl 8006d20 + 8006e86: 4621 mov r1, r4 + 8006e88: 4638 mov r0, r7 + 8006e8a: f7ff ffa3 bl 8006dd4 <_Bfree> + 8006e8e: 462c mov r4, r5 + 8006e90: eb04 0386 add.w r3, r4, r6, lsl #2 + 8006e94: 3601 adds r6, #1 + 8006e96: f8c3 8014 str.w r8, [r3, #20] + 8006e9a: 6126 str r6, [r4, #16] + 8006e9c: 4620 mov r0, r4 + 8006e9e: e8bd 81f0 ldmia.w sp!, {r4, r5, r6, r7, r8, pc} + 8006ea2: bf00 nop + 8006ea4: 08008eef .word 0x08008eef + 8006ea8: 08008f00 .word 0x08008f00 -08006e04 <_getpid_r>: - 8006e04: f7fa bb8b b.w 800151e <_getpid> +08006eac <__hi0bits>: + 8006eac: 0c02 lsrs r2, r0, #16 + 8006eae: 0412 lsls r2, r2, #16 + 8006eb0: 4603 mov r3, r0 + 8006eb2: b9ca cbnz r2, 8006ee8 <__hi0bits+0x3c> + 8006eb4: 0403 lsls r3, r0, #16 + 8006eb6: 2010 movs r0, #16 + 8006eb8: f013 4f7f tst.w r3, #4278190080 ; 0xff000000 + 8006ebc: bf04 itt eq + 8006ebe: 021b lsleq r3, r3, #8 + 8006ec0: 3008 addeq r0, #8 + 8006ec2: f013 4f70 tst.w r3, #4026531840 ; 0xf0000000 + 8006ec6: bf04 itt eq + 8006ec8: 011b lsleq r3, r3, #4 + 8006eca: 3004 addeq r0, #4 + 8006ecc: f013 4f40 tst.w r3, #3221225472 ; 0xc0000000 + 8006ed0: bf04 itt eq + 8006ed2: 009b lsleq r3, r3, #2 + 8006ed4: 3002 addeq r0, #2 + 8006ed6: 2b00 cmp r3, #0 + 8006ed8: db05 blt.n 8006ee6 <__hi0bits+0x3a> + 8006eda: f013 4f80 tst.w r3, #1073741824 ; 0x40000000 + 8006ede: f100 0001 add.w r0, r0, #1 + 8006ee2: bf08 it eq + 8006ee4: 2020 moveq r0, #32 + 8006ee6: 4770 bx lr + 8006ee8: 2000 movs r0, #0 + 8006eea: e7e5 b.n 8006eb8 <__hi0bits+0xc> -08006e08 <__sread>: - 8006e08: b510 push {r4, lr} - 8006e0a: 460c mov r4, r1 - 8006e0c: f9b1 100e ldrsh.w r1, [r1, #14] - 8006e10: f000 f894 bl 8006f3c <_read_r> - 8006e14: 2800 cmp r0, #0 - 8006e16: bfab itete ge - 8006e18: 6d63 ldrge r3, [r4, #84] ; 0x54 - 8006e1a: 89a3 ldrhlt r3, [r4, #12] - 8006e1c: 181b addge r3, r3, r0 - 8006e1e: f423 5380 biclt.w r3, r3, #4096 ; 0x1000 - 8006e22: bfac ite ge - 8006e24: 6563 strge r3, [r4, #84] ; 0x54 - 8006e26: 81a3 strhlt r3, [r4, #12] - 8006e28: bd10 pop {r4, pc} +08006eec <__lo0bits>: + 8006eec: 6803 ldr r3, [r0, #0] + 8006eee: 4602 mov r2, r0 + 8006ef0: f013 0007 ands.w r0, r3, #7 + 8006ef4: d00b beq.n 8006f0e <__lo0bits+0x22> + 8006ef6: 07d9 lsls r1, r3, #31 + 8006ef8: d422 bmi.n 8006f40 <__lo0bits+0x54> + 8006efa: 0798 lsls r0, r3, #30 + 8006efc: bf49 itett mi + 8006efe: 085b lsrmi r3, r3, #1 + 8006f00: 089b lsrpl r3, r3, #2 + 8006f02: 2001 movmi r0, #1 + 8006f04: 6013 strmi r3, [r2, #0] + 8006f06: bf5c itt pl + 8006f08: 2002 movpl r0, #2 + 8006f0a: 6013 strpl r3, [r2, #0] + 8006f0c: 4770 bx lr + 8006f0e: b299 uxth r1, r3 + 8006f10: b909 cbnz r1, 8006f16 <__lo0bits+0x2a> + 8006f12: 2010 movs r0, #16 + 8006f14: 0c1b lsrs r3, r3, #16 + 8006f16: f013 0fff tst.w r3, #255 ; 0xff + 8006f1a: bf04 itt eq + 8006f1c: 0a1b lsreq r3, r3, #8 + 8006f1e: 3008 addeq r0, #8 + 8006f20: 0719 lsls r1, r3, #28 + 8006f22: bf04 itt eq + 8006f24: 091b lsreq r3, r3, #4 + 8006f26: 3004 addeq r0, #4 + 8006f28: 0799 lsls r1, r3, #30 + 8006f2a: bf04 itt eq + 8006f2c: 089b lsreq r3, r3, #2 + 8006f2e: 3002 addeq r0, #2 + 8006f30: 07d9 lsls r1, r3, #31 + 8006f32: d403 bmi.n 8006f3c <__lo0bits+0x50> + 8006f34: 085b lsrs r3, r3, #1 + 8006f36: f100 0001 add.w r0, r0, #1 + 8006f3a: d003 beq.n 8006f44 <__lo0bits+0x58> + 8006f3c: 6013 str r3, [r2, #0] + 8006f3e: 4770 bx lr + 8006f40: 2000 movs r0, #0 + 8006f42: 4770 bx lr + 8006f44: 2020 movs r0, #32 + 8006f46: 4770 bx lr -08006e2a <__swrite>: - 8006e2a: e92d 41f0 stmdb sp!, {r4, r5, r6, r7, r8, lr} - 8006e2e: 461f mov r7, r3 - 8006e30: 898b ldrh r3, [r1, #12] - 8006e32: 4605 mov r5, r0 - 8006e34: 05db lsls r3, r3, #23 - 8006e36: 460c mov r4, r1 - 8006e38: 4616 mov r6, r2 - 8006e3a: d505 bpl.n 8006e48 <__swrite+0x1e> - 8006e3c: 2302 movs r3, #2 - 8006e3e: 2200 movs r2, #0 - 8006e40: f9b1 100e ldrsh.w r1, [r1, #14] - 8006e44: f000 f868 bl 8006f18 <_lseek_r> - 8006e48: 89a3 ldrh r3, [r4, #12] - 8006e4a: 4632 mov r2, r6 - 8006e4c: f423 5380 bic.w r3, r3, #4096 ; 0x1000 - 8006e50: 81a3 strh r3, [r4, #12] - 8006e52: 4628 mov r0, r5 - 8006e54: 463b mov r3, r7 - 8006e56: f9b4 100e ldrsh.w r1, [r4, #14] - 8006e5a: e8bd 41f0 ldmia.w sp!, {r4, r5, r6, r7, r8, lr} - 8006e5e: f000 b817 b.w 8006e90 <_write_r> +08006f48 <__i2b>: + 8006f48: b510 push {r4, lr} + 8006f4a: 460c mov r4, r1 + 8006f4c: 2101 movs r1, #1 + 8006f4e: f7ff ff01 bl 8006d54 <_Balloc> + 8006f52: 4602 mov r2, r0 + 8006f54: b928 cbnz r0, 8006f62 <__i2b+0x1a> + 8006f56: f44f 71a0 mov.w r1, #320 ; 0x140 + 8006f5a: 4b04 ldr r3, [pc, #16] ; (8006f6c <__i2b+0x24>) + 8006f5c: 4804 ldr r0, [pc, #16] ; (8006f70 <__i2b+0x28>) + 8006f5e: f000 fbe5 bl 800772c <__assert_func> + 8006f62: 2301 movs r3, #1 + 8006f64: 6144 str r4, [r0, #20] + 8006f66: 6103 str r3, [r0, #16] + 8006f68: bd10 pop {r4, pc} + 8006f6a: bf00 nop + 8006f6c: 08008eef .word 0x08008eef + 8006f70: 08008f00 .word 0x08008f00 -08006e62 <__sseek>: - 8006e62: b510 push {r4, lr} - 8006e64: 460c mov r4, r1 - 8006e66: f9b1 100e ldrsh.w r1, [r1, #14] - 8006e6a: f000 f855 bl 8006f18 <_lseek_r> - 8006e6e: 1c43 adds r3, r0, #1 - 8006e70: 89a3 ldrh r3, [r4, #12] - 8006e72: bf15 itete ne - 8006e74: 6560 strne r0, [r4, #84] ; 0x54 - 8006e76: f423 5380 biceq.w r3, r3, #4096 ; 0x1000 - 8006e7a: f443 5380 orrne.w r3, r3, #4096 ; 0x1000 - 8006e7e: 81a3 strheq r3, [r4, #12] - 8006e80: bf18 it ne - 8006e82: 81a3 strhne r3, [r4, #12] - 8006e84: bd10 pop {r4, pc} +08006f74 <__multiply>: + 8006f74: e92d 4ff0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, fp, lr} + 8006f78: 4614 mov r4, r2 + 8006f7a: 690a ldr r2, [r1, #16] + 8006f7c: 6923 ldr r3, [r4, #16] + 8006f7e: 460d mov r5, r1 + 8006f80: 429a cmp r2, r3 + 8006f82: bfbe ittt lt + 8006f84: 460b movlt r3, r1 + 8006f86: 4625 movlt r5, r4 + 8006f88: 461c movlt r4, r3 + 8006f8a: f8d5 a010 ldr.w sl, [r5, #16] + 8006f8e: f8d4 9010 ldr.w r9, [r4, #16] + 8006f92: 68ab ldr r3, [r5, #8] + 8006f94: 6869 ldr r1, [r5, #4] + 8006f96: eb0a 0709 add.w r7, sl, r9 + 8006f9a: 42bb cmp r3, r7 + 8006f9c: b085 sub sp, #20 + 8006f9e: bfb8 it lt + 8006fa0: 3101 addlt r1, #1 + 8006fa2: f7ff fed7 bl 8006d54 <_Balloc> + 8006fa6: b930 cbnz r0, 8006fb6 <__multiply+0x42> + 8006fa8: 4602 mov r2, r0 + 8006faa: f240 115d movw r1, #349 ; 0x15d + 8006fae: 4b41 ldr r3, [pc, #260] ; (80070b4 <__multiply+0x140>) + 8006fb0: 4841 ldr r0, [pc, #260] ; (80070b8 <__multiply+0x144>) + 8006fb2: f000 fbbb bl 800772c <__assert_func> + 8006fb6: f100 0614 add.w r6, r0, #20 + 8006fba: 4633 mov r3, r6 + 8006fbc: 2200 movs r2, #0 + 8006fbe: eb06 0887 add.w r8, r6, r7, lsl #2 + 8006fc2: 4543 cmp r3, r8 + 8006fc4: d31e bcc.n 8007004 <__multiply+0x90> + 8006fc6: f105 0c14 add.w ip, r5, #20 + 8006fca: f104 0314 add.w r3, r4, #20 + 8006fce: eb0c 0c8a add.w ip, ip, sl, lsl #2 + 8006fd2: eb03 0289 add.w r2, r3, r9, lsl #2 + 8006fd6: 9202 str r2, [sp, #8] + 8006fd8: ebac 0205 sub.w r2, ip, r5 + 8006fdc: 3a15 subs r2, #21 + 8006fde: f022 0203 bic.w r2, r2, #3 + 8006fe2: 3204 adds r2, #4 + 8006fe4: f105 0115 add.w r1, r5, #21 + 8006fe8: 458c cmp ip, r1 + 8006fea: bf38 it cc + 8006fec: 2204 movcc r2, #4 + 8006fee: 9201 str r2, [sp, #4] + 8006ff0: 9a02 ldr r2, [sp, #8] + 8006ff2: 9303 str r3, [sp, #12] + 8006ff4: 429a cmp r2, r3 + 8006ff6: d808 bhi.n 800700a <__multiply+0x96> + 8006ff8: 2f00 cmp r7, #0 + 8006ffa: dc55 bgt.n 80070a8 <__multiply+0x134> + 8006ffc: 6107 str r7, [r0, #16] + 8006ffe: b005 add sp, #20 + 8007000: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc} + 8007004: f843 2b04 str.w r2, [r3], #4 + 8007008: e7db b.n 8006fc2 <__multiply+0x4e> + 800700a: f8b3 a000 ldrh.w sl, [r3] + 800700e: f1ba 0f00 cmp.w sl, #0 + 8007012: d020 beq.n 8007056 <__multiply+0xe2> + 8007014: 46b1 mov r9, r6 + 8007016: 2200 movs r2, #0 + 8007018: f105 0e14 add.w lr, r5, #20 + 800701c: f85e 4b04 ldr.w r4, [lr], #4 + 8007020: f8d9 b000 ldr.w fp, [r9] + 8007024: b2a1 uxth r1, r4 + 8007026: fa1f fb8b uxth.w fp, fp + 800702a: fb0a b101 mla r1, sl, r1, fp + 800702e: 4411 add r1, r2 + 8007030: f8d9 2000 ldr.w r2, [r9] + 8007034: 0c24 lsrs r4, r4, #16 + 8007036: 0c12 lsrs r2, r2, #16 + 8007038: fb0a 2404 mla r4, sl, r4, r2 + 800703c: eb04 4411 add.w r4, r4, r1, lsr #16 + 8007040: b289 uxth r1, r1 + 8007042: ea41 4104 orr.w r1, r1, r4, lsl #16 + 8007046: 45f4 cmp ip, lr + 8007048: ea4f 4214 mov.w r2, r4, lsr #16 + 800704c: f849 1b04 str.w r1, [r9], #4 + 8007050: d8e4 bhi.n 800701c <__multiply+0xa8> + 8007052: 9901 ldr r1, [sp, #4] + 8007054: 5072 str r2, [r6, r1] + 8007056: 9a03 ldr r2, [sp, #12] + 8007058: 3304 adds r3, #4 + 800705a: f8b2 9002 ldrh.w r9, [r2, #2] + 800705e: f1b9 0f00 cmp.w r9, #0 + 8007062: d01f beq.n 80070a4 <__multiply+0x130> + 8007064: 46b6 mov lr, r6 + 8007066: f04f 0a00 mov.w sl, #0 + 800706a: 6834 ldr r4, [r6, #0] + 800706c: f105 0114 add.w r1, r5, #20 + 8007070: 880a ldrh r2, [r1, #0] + 8007072: f8be b002 ldrh.w fp, [lr, #2] + 8007076: b2a4 uxth r4, r4 + 8007078: fb09 b202 mla r2, r9, r2, fp + 800707c: 4492 add sl, r2 + 800707e: ea44 440a orr.w r4, r4, sl, lsl #16 + 8007082: f84e 4b04 str.w r4, [lr], #4 + 8007086: f851 4b04 ldr.w r4, [r1], #4 + 800708a: f8be 2000 ldrh.w r2, [lr] + 800708e: 0c24 lsrs r4, r4, #16 + 8007090: fb09 2404 mla r4, r9, r4, r2 + 8007094: 458c cmp ip, r1 + 8007096: eb04 441a add.w r4, r4, sl, lsr #16 + 800709a: ea4f 4a14 mov.w sl, r4, lsr #16 + 800709e: d8e7 bhi.n 8007070 <__multiply+0xfc> + 80070a0: 9a01 ldr r2, [sp, #4] + 80070a2: 50b4 str r4, [r6, r2] + 80070a4: 3604 adds r6, #4 + 80070a6: e7a3 b.n 8006ff0 <__multiply+0x7c> + 80070a8: f858 3d04 ldr.w r3, [r8, #-4]! + 80070ac: 2b00 cmp r3, #0 + 80070ae: d1a5 bne.n 8006ffc <__multiply+0x88> + 80070b0: 3f01 subs r7, #1 + 80070b2: e7a1 b.n 8006ff8 <__multiply+0x84> + 80070b4: 08008eef .word 0x08008eef + 80070b8: 08008f00 .word 0x08008f00 -08006e86 <__sclose>: - 8006e86: f9b1 100e ldrsh.w r1, [r1, #14] - 8006e8a: f000 b813 b.w 8006eb4 <_close_r> +080070bc <__pow5mult>: + 80070bc: e92d 43f8 stmdb sp!, {r3, r4, r5, r6, r7, r8, r9, lr} + 80070c0: 4615 mov r5, r2 + 80070c2: f012 0203 ands.w r2, r2, #3 + 80070c6: 4606 mov r6, r0 + 80070c8: 460f mov r7, r1 + 80070ca: d007 beq.n 80070dc <__pow5mult+0x20> + 80070cc: 4c25 ldr r4, [pc, #148] ; (8007164 <__pow5mult+0xa8>) + 80070ce: 3a01 subs r2, #1 + 80070d0: 2300 movs r3, #0 + 80070d2: f854 2022 ldr.w r2, [r4, r2, lsl #2] + 80070d6: f7ff fe9f bl 8006e18 <__multadd> + 80070da: 4607 mov r7, r0 + 80070dc: 10ad asrs r5, r5, #2 + 80070de: d03d beq.n 800715c <__pow5mult+0xa0> + 80070e0: 6a74 ldr r4, [r6, #36] ; 0x24 + 80070e2: b97c cbnz r4, 8007104 <__pow5mult+0x48> + 80070e4: 2010 movs r0, #16 + 80070e6: f7fe fa3d bl 8005564 + 80070ea: 4602 mov r2, r0 + 80070ec: 6270 str r0, [r6, #36] ; 0x24 + 80070ee: b928 cbnz r0, 80070fc <__pow5mult+0x40> + 80070f0: f44f 71d7 mov.w r1, #430 ; 0x1ae + 80070f4: 4b1c ldr r3, [pc, #112] ; (8007168 <__pow5mult+0xac>) + 80070f6: 481d ldr r0, [pc, #116] ; (800716c <__pow5mult+0xb0>) + 80070f8: f000 fb18 bl 800772c <__assert_func> + 80070fc: e9c0 4401 strd r4, r4, [r0, #4] + 8007100: 6004 str r4, [r0, #0] + 8007102: 60c4 str r4, [r0, #12] + 8007104: f8d6 8024 ldr.w r8, [r6, #36] ; 0x24 + 8007108: f8d8 4008 ldr.w r4, [r8, #8] + 800710c: b94c cbnz r4, 8007122 <__pow5mult+0x66> + 800710e: f240 2171 movw r1, #625 ; 0x271 + 8007112: 4630 mov r0, r6 + 8007114: f7ff ff18 bl 8006f48 <__i2b> + 8007118: 2300 movs r3, #0 + 800711a: 4604 mov r4, r0 + 800711c: f8c8 0008 str.w r0, [r8, #8] + 8007120: 6003 str r3, [r0, #0] + 8007122: f04f 0900 mov.w r9, #0 + 8007126: 07eb lsls r3, r5, #31 + 8007128: d50a bpl.n 8007140 <__pow5mult+0x84> + 800712a: 4639 mov r1, r7 + 800712c: 4622 mov r2, r4 + 800712e: 4630 mov r0, r6 + 8007130: f7ff ff20 bl 8006f74 <__multiply> + 8007134: 4680 mov r8, r0 + 8007136: 4639 mov r1, r7 + 8007138: 4630 mov r0, r6 + 800713a: f7ff fe4b bl 8006dd4 <_Bfree> + 800713e: 4647 mov r7, r8 + 8007140: 106d asrs r5, r5, #1 + 8007142: d00b beq.n 800715c <__pow5mult+0xa0> + 8007144: 6820 ldr r0, [r4, #0] + 8007146: b938 cbnz r0, 8007158 <__pow5mult+0x9c> + 8007148: 4622 mov r2, r4 + 800714a: 4621 mov r1, r4 + 800714c: 4630 mov r0, r6 + 800714e: f7ff ff11 bl 8006f74 <__multiply> + 8007152: 6020 str r0, [r4, #0] + 8007154: f8c0 9000 str.w r9, [r0] + 8007158: 4604 mov r4, r0 + 800715a: e7e4 b.n 8007126 <__pow5mult+0x6a> + 800715c: 4638 mov r0, r7 + 800715e: e8bd 83f8 ldmia.w sp!, {r3, r4, r5, r6, r7, r8, r9, pc} + 8007162: bf00 nop + 8007164: 08009050 .word 0x08009050 + 8007168: 08008e79 .word 0x08008e79 + 800716c: 08008f00 .word 0x08008f00 + +08007170 <__lshift>: + 8007170: e92d 47f0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, lr} + 8007174: 460c mov r4, r1 + 8007176: 4607 mov r7, r0 + 8007178: 4691 mov r9, r2 + 800717a: 6923 ldr r3, [r4, #16] + 800717c: 6849 ldr r1, [r1, #4] + 800717e: eb03 1862 add.w r8, r3, r2, asr #5 + 8007182: 68a3 ldr r3, [r4, #8] + 8007184: ea4f 1a62 mov.w sl, r2, asr #5 + 8007188: f108 0601 add.w r6, r8, #1 + 800718c: 42b3 cmp r3, r6 + 800718e: db0b blt.n 80071a8 <__lshift+0x38> + 8007190: 4638 mov r0, r7 + 8007192: f7ff fddf bl 8006d54 <_Balloc> + 8007196: 4605 mov r5, r0 + 8007198: b948 cbnz r0, 80071ae <__lshift+0x3e> + 800719a: 4602 mov r2, r0 + 800719c: f240 11d9 movw r1, #473 ; 0x1d9 + 80071a0: 4b27 ldr r3, [pc, #156] ; (8007240 <__lshift+0xd0>) + 80071a2: 4828 ldr r0, [pc, #160] ; (8007244 <__lshift+0xd4>) + 80071a4: f000 fac2 bl 800772c <__assert_func> + 80071a8: 3101 adds r1, #1 + 80071aa: 005b lsls r3, r3, #1 + 80071ac: e7ee b.n 800718c <__lshift+0x1c> + 80071ae: 2300 movs r3, #0 + 80071b0: f100 0114 add.w r1, r0, #20 + 80071b4: f100 0210 add.w r2, r0, #16 + 80071b8: 4618 mov r0, r3 + 80071ba: 4553 cmp r3, sl + 80071bc: db33 blt.n 8007226 <__lshift+0xb6> + 80071be: 6920 ldr r0, [r4, #16] + 80071c0: ea2a 7aea bic.w sl, sl, sl, asr #31 + 80071c4: f104 0314 add.w r3, r4, #20 + 80071c8: f019 091f ands.w r9, r9, #31 + 80071cc: eb01 018a add.w r1, r1, sl, lsl #2 + 80071d0: eb03 0c80 add.w ip, r3, r0, lsl #2 + 80071d4: d02b beq.n 800722e <__lshift+0xbe> + 80071d6: 468a mov sl, r1 + 80071d8: 2200 movs r2, #0 + 80071da: f1c9 0e20 rsb lr, r9, #32 + 80071de: 6818 ldr r0, [r3, #0] + 80071e0: fa00 f009 lsl.w r0, r0, r9 + 80071e4: 4302 orrs r2, r0 + 80071e6: f84a 2b04 str.w r2, [sl], #4 + 80071ea: f853 2b04 ldr.w r2, [r3], #4 + 80071ee: 459c cmp ip, r3 + 80071f0: fa22 f20e lsr.w r2, r2, lr + 80071f4: d8f3 bhi.n 80071de <__lshift+0x6e> + 80071f6: ebac 0304 sub.w r3, ip, r4 + 80071fa: 3b15 subs r3, #21 + 80071fc: f023 0303 bic.w r3, r3, #3 + 8007200: 3304 adds r3, #4 + 8007202: f104 0015 add.w r0, r4, #21 + 8007206: 4584 cmp ip, r0 + 8007208: bf38 it cc + 800720a: 2304 movcc r3, #4 + 800720c: 50ca str r2, [r1, r3] + 800720e: b10a cbz r2, 8007214 <__lshift+0xa4> + 8007210: f108 0602 add.w r6, r8, #2 + 8007214: 3e01 subs r6, #1 + 8007216: 4638 mov r0, r7 + 8007218: 4621 mov r1, r4 + 800721a: 612e str r6, [r5, #16] + 800721c: f7ff fdda bl 8006dd4 <_Bfree> + 8007220: 4628 mov r0, r5 + 8007222: e8bd 87f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, pc} + 8007226: f842 0f04 str.w r0, [r2, #4]! + 800722a: 3301 adds r3, #1 + 800722c: e7c5 b.n 80071ba <__lshift+0x4a> + 800722e: 3904 subs r1, #4 + 8007230: f853 2b04 ldr.w r2, [r3], #4 + 8007234: 459c cmp ip, r3 + 8007236: f841 2f04 str.w r2, [r1, #4]! + 800723a: d8f9 bhi.n 8007230 <__lshift+0xc0> + 800723c: e7ea b.n 8007214 <__lshift+0xa4> + 800723e: bf00 nop + 8007240: 08008eef .word 0x08008eef + 8007244: 08008f00 .word 0x08008f00 + +08007248 <__mcmp>: + 8007248: 4603 mov r3, r0 + 800724a: 690a ldr r2, [r1, #16] + 800724c: 6900 ldr r0, [r0, #16] + 800724e: b530 push {r4, r5, lr} + 8007250: 1a80 subs r0, r0, r2 + 8007252: d10d bne.n 8007270 <__mcmp+0x28> + 8007254: 3314 adds r3, #20 + 8007256: 3114 adds r1, #20 + 8007258: eb03 0482 add.w r4, r3, r2, lsl #2 + 800725c: eb01 0182 add.w r1, r1, r2, lsl #2 + 8007260: f854 5d04 ldr.w r5, [r4, #-4]! + 8007264: f851 2d04 ldr.w r2, [r1, #-4]! + 8007268: 4295 cmp r5, r2 + 800726a: d002 beq.n 8007272 <__mcmp+0x2a> + 800726c: d304 bcc.n 8007278 <__mcmp+0x30> + 800726e: 2001 movs r0, #1 + 8007270: bd30 pop {r4, r5, pc} + 8007272: 42a3 cmp r3, r4 + 8007274: d3f4 bcc.n 8007260 <__mcmp+0x18> + 8007276: e7fb b.n 8007270 <__mcmp+0x28> + 8007278: f04f 30ff mov.w r0, #4294967295 ; 0xffffffff + 800727c: e7f8 b.n 8007270 <__mcmp+0x28> ... -08006e90 <_write_r>: - 8006e90: b538 push {r3, r4, r5, lr} - 8006e92: 4604 mov r4, r0 - 8006e94: 4608 mov r0, r1 - 8006e96: 4611 mov r1, r2 - 8006e98: 2200 movs r2, #0 - 8006e9a: 4d05 ldr r5, [pc, #20] ; (8006eb0 <_write_r+0x20>) - 8006e9c: 602a str r2, [r5, #0] - 8006e9e: 461a mov r2, r3 - 8006ea0: f7fa fb7b bl 800159a <_write> - 8006ea4: 1c43 adds r3, r0, #1 - 8006ea6: d102 bne.n 8006eae <_write_r+0x1e> - 8006ea8: 682b ldr r3, [r5, #0] - 8006eaa: b103 cbz r3, 8006eae <_write_r+0x1e> - 8006eac: 6023 str r3, [r4, #0] - 8006eae: bd38 pop {r3, r4, r5, pc} - 8006eb0: 20000288 .word 0x20000288 +08007280 <__mdiff>: + 8007280: e92d 4ff8 stmdb sp!, {r3, r4, r5, r6, r7, r8, r9, sl, fp, lr} + 8007284: 460c mov r4, r1 + 8007286: 4606 mov r6, r0 + 8007288: 4611 mov r1, r2 + 800728a: 4620 mov r0, r4 + 800728c: 4692 mov sl, r2 + 800728e: f7ff ffdb bl 8007248 <__mcmp> + 8007292: 1e05 subs r5, r0, #0 + 8007294: d111 bne.n 80072ba <__mdiff+0x3a> + 8007296: 4629 mov r1, r5 + 8007298: 4630 mov r0, r6 + 800729a: f7ff fd5b bl 8006d54 <_Balloc> + 800729e: 4602 mov r2, r0 + 80072a0: b928 cbnz r0, 80072ae <__mdiff+0x2e> + 80072a2: f240 2132 movw r1, #562 ; 0x232 + 80072a6: 4b3c ldr r3, [pc, #240] ; (8007398 <__mdiff+0x118>) + 80072a8: 483c ldr r0, [pc, #240] ; (800739c <__mdiff+0x11c>) + 80072aa: f000 fa3f bl 800772c <__assert_func> + 80072ae: 2301 movs r3, #1 + 80072b0: e9c0 3504 strd r3, r5, [r0, #16] + 80072b4: 4610 mov r0, r2 + 80072b6: e8bd 8ff8 ldmia.w sp!, {r3, r4, r5, r6, r7, r8, r9, sl, fp, pc} + 80072ba: bfa4 itt ge + 80072bc: 4653 movge r3, sl + 80072be: 46a2 movge sl, r4 + 80072c0: 4630 mov r0, r6 + 80072c2: f8da 1004 ldr.w r1, [sl, #4] + 80072c6: bfa6 itte ge + 80072c8: 461c movge r4, r3 + 80072ca: 2500 movge r5, #0 + 80072cc: 2501 movlt r5, #1 + 80072ce: f7ff fd41 bl 8006d54 <_Balloc> + 80072d2: 4602 mov r2, r0 + 80072d4: b918 cbnz r0, 80072de <__mdiff+0x5e> + 80072d6: f44f 7110 mov.w r1, #576 ; 0x240 + 80072da: 4b2f ldr r3, [pc, #188] ; (8007398 <__mdiff+0x118>) + 80072dc: e7e4 b.n 80072a8 <__mdiff+0x28> + 80072de: f100 0814 add.w r8, r0, #20 + 80072e2: f8da 7010 ldr.w r7, [sl, #16] + 80072e6: 60c5 str r5, [r0, #12] + 80072e8: f04f 0c00 mov.w ip, #0 + 80072ec: f10a 0514 add.w r5, sl, #20 + 80072f0: f10a 0010 add.w r0, sl, #16 + 80072f4: 46c2 mov sl, r8 + 80072f6: 6926 ldr r6, [r4, #16] + 80072f8: f104 0914 add.w r9, r4, #20 + 80072fc: eb05 0e87 add.w lr, r5, r7, lsl #2 + 8007300: eb09 0686 add.w r6, r9, r6, lsl #2 + 8007304: f850 bf04 ldr.w fp, [r0, #4]! + 8007308: f859 3b04 ldr.w r3, [r9], #4 + 800730c: fa1f f18b uxth.w r1, fp + 8007310: 4461 add r1, ip + 8007312: fa1f fc83 uxth.w ip, r3 + 8007316: 0c1b lsrs r3, r3, #16 + 8007318: eba1 010c sub.w r1, r1, ip + 800731c: ebc3 431b rsb r3, r3, fp, lsr #16 + 8007320: eb03 4321 add.w r3, r3, r1, asr #16 + 8007324: b289 uxth r1, r1 + 8007326: ea4f 4c23 mov.w ip, r3, asr #16 + 800732a: 454e cmp r6, r9 + 800732c: ea41 4303 orr.w r3, r1, r3, lsl #16 + 8007330: f84a 3b04 str.w r3, [sl], #4 + 8007334: d8e6 bhi.n 8007304 <__mdiff+0x84> + 8007336: 1b33 subs r3, r6, r4 + 8007338: 3b15 subs r3, #21 + 800733a: f023 0303 bic.w r3, r3, #3 + 800733e: 3415 adds r4, #21 + 8007340: 3304 adds r3, #4 + 8007342: 42a6 cmp r6, r4 + 8007344: bf38 it cc + 8007346: 2304 movcc r3, #4 + 8007348: 441d add r5, r3 + 800734a: 4443 add r3, r8 + 800734c: 461e mov r6, r3 + 800734e: 462c mov r4, r5 + 8007350: 4574 cmp r4, lr + 8007352: d30e bcc.n 8007372 <__mdiff+0xf2> + 8007354: f10e 0103 add.w r1, lr, #3 + 8007358: 1b49 subs r1, r1, r5 + 800735a: f021 0103 bic.w r1, r1, #3 + 800735e: 3d03 subs r5, #3 + 8007360: 45ae cmp lr, r5 + 8007362: bf38 it cc + 8007364: 2100 movcc r1, #0 + 8007366: 4419 add r1, r3 + 8007368: f851 3d04 ldr.w r3, [r1, #-4]! + 800736c: b18b cbz r3, 8007392 <__mdiff+0x112> + 800736e: 6117 str r7, [r2, #16] + 8007370: e7a0 b.n 80072b4 <__mdiff+0x34> + 8007372: f854 8b04 ldr.w r8, [r4], #4 + 8007376: fa1f f188 uxth.w r1, r8 + 800737a: 4461 add r1, ip + 800737c: 1408 asrs r0, r1, #16 + 800737e: eb00 4018 add.w r0, r0, r8, lsr #16 + 8007382: b289 uxth r1, r1 + 8007384: ea41 4100 orr.w r1, r1, r0, lsl #16 + 8007388: ea4f 4c20 mov.w ip, r0, asr #16 + 800738c: f846 1b04 str.w r1, [r6], #4 + 8007390: e7de b.n 8007350 <__mdiff+0xd0> + 8007392: 3f01 subs r7, #1 + 8007394: e7e8 b.n 8007368 <__mdiff+0xe8> + 8007396: bf00 nop + 8007398: 08008eef .word 0x08008eef + 800739c: 08008f00 .word 0x08008f00 -08006eb4 <_close_r>: - 8006eb4: b538 push {r3, r4, r5, lr} - 8006eb6: 2300 movs r3, #0 - 8006eb8: 4d05 ldr r5, [pc, #20] ; (8006ed0 <_close_r+0x1c>) - 8006eba: 4604 mov r4, r0 - 8006ebc: 4608 mov r0, r1 - 8006ebe: 602b str r3, [r5, #0] - 8006ec0: f7fa fb87 bl 80015d2 <_close> - 8006ec4: 1c43 adds r3, r0, #1 - 8006ec6: d102 bne.n 8006ece <_close_r+0x1a> - 8006ec8: 682b ldr r3, [r5, #0] - 8006eca: b103 cbz r3, 8006ece <_close_r+0x1a> - 8006ecc: 6023 str r3, [r4, #0] - 8006ece: bd38 pop {r3, r4, r5, pc} - 8006ed0: 20000288 .word 0x20000288 +080073a0 <__d2b>: + 80073a0: e92d 41f3 stmdb sp!, {r0, r1, r4, r5, r6, r7, r8, lr} + 80073a4: 2101 movs r1, #1 + 80073a6: e9dd 7608 ldrd r7, r6, [sp, #32] + 80073aa: 4690 mov r8, r2 + 80073ac: 461d mov r5, r3 + 80073ae: f7ff fcd1 bl 8006d54 <_Balloc> + 80073b2: 4604 mov r4, r0 + 80073b4: b930 cbnz r0, 80073c4 <__d2b+0x24> + 80073b6: 4602 mov r2, r0 + 80073b8: f240 310a movw r1, #778 ; 0x30a + 80073bc: 4b24 ldr r3, [pc, #144] ; (8007450 <__d2b+0xb0>) + 80073be: 4825 ldr r0, [pc, #148] ; (8007454 <__d2b+0xb4>) + 80073c0: f000 f9b4 bl 800772c <__assert_func> + 80073c4: f3c5 0313 ubfx r3, r5, #0, #20 + 80073c8: f3c5 550a ubfx r5, r5, #20, #11 + 80073cc: bb2d cbnz r5, 800741a <__d2b+0x7a> + 80073ce: 9301 str r3, [sp, #4] + 80073d0: f1b8 0300 subs.w r3, r8, #0 + 80073d4: d026 beq.n 8007424 <__d2b+0x84> + 80073d6: 4668 mov r0, sp + 80073d8: 9300 str r3, [sp, #0] + 80073da: f7ff fd87 bl 8006eec <__lo0bits> + 80073de: 9900 ldr r1, [sp, #0] + 80073e0: b1f0 cbz r0, 8007420 <__d2b+0x80> + 80073e2: 9a01 ldr r2, [sp, #4] + 80073e4: f1c0 0320 rsb r3, r0, #32 + 80073e8: fa02 f303 lsl.w r3, r2, r3 + 80073ec: 430b orrs r3, r1 + 80073ee: 40c2 lsrs r2, r0 + 80073f0: 6163 str r3, [r4, #20] + 80073f2: 9201 str r2, [sp, #4] + 80073f4: 9b01 ldr r3, [sp, #4] + 80073f6: 2b00 cmp r3, #0 + 80073f8: bf14 ite ne + 80073fa: 2102 movne r1, #2 + 80073fc: 2101 moveq r1, #1 + 80073fe: 61a3 str r3, [r4, #24] + 8007400: 6121 str r1, [r4, #16] + 8007402: b1c5 cbz r5, 8007436 <__d2b+0x96> + 8007404: f2a5 4533 subw r5, r5, #1075 ; 0x433 + 8007408: 4405 add r5, r0 + 800740a: f1c0 0035 rsb r0, r0, #53 ; 0x35 + 800740e: 603d str r5, [r7, #0] + 8007410: 6030 str r0, [r6, #0] + 8007412: 4620 mov r0, r4 + 8007414: b002 add sp, #8 + 8007416: e8bd 81f0 ldmia.w sp!, {r4, r5, r6, r7, r8, pc} + 800741a: f443 1380 orr.w r3, r3, #1048576 ; 0x100000 + 800741e: e7d6 b.n 80073ce <__d2b+0x2e> + 8007420: 6161 str r1, [r4, #20] + 8007422: e7e7 b.n 80073f4 <__d2b+0x54> + 8007424: a801 add r0, sp, #4 + 8007426: f7ff fd61 bl 8006eec <__lo0bits> + 800742a: 2101 movs r1, #1 + 800742c: 9b01 ldr r3, [sp, #4] + 800742e: 6121 str r1, [r4, #16] + 8007430: 6163 str r3, [r4, #20] + 8007432: 3020 adds r0, #32 + 8007434: e7e5 b.n 8007402 <__d2b+0x62> + 8007436: eb04 0381 add.w r3, r4, r1, lsl #2 + 800743a: f2a0 4032 subw r0, r0, #1074 ; 0x432 + 800743e: 6038 str r0, [r7, #0] + 8007440: 6918 ldr r0, [r3, #16] + 8007442: f7ff fd33 bl 8006eac <__hi0bits> + 8007446: ebc0 1141 rsb r1, r0, r1, lsl #5 + 800744a: 6031 str r1, [r6, #0] + 800744c: e7e1 b.n 8007412 <__d2b+0x72> + 800744e: bf00 nop + 8007450: 08008eef .word 0x08008eef + 8007454: 08008f00 .word 0x08008f00 -08006ed4 <_fstat_r>: - 8006ed4: b538 push {r3, r4, r5, lr} - 8006ed6: 2300 movs r3, #0 - 8006ed8: 4d06 ldr r5, [pc, #24] ; (8006ef4 <_fstat_r+0x20>) - 8006eda: 4604 mov r4, r0 - 8006edc: 4608 mov r0, r1 - 8006ede: 4611 mov r1, r2 - 8006ee0: 602b str r3, [r5, #0] - 8006ee2: f7fa fb81 bl 80015e8 <_fstat> - 8006ee6: 1c43 adds r3, r0, #1 - 8006ee8: d102 bne.n 8006ef0 <_fstat_r+0x1c> - 8006eea: 682b ldr r3, [r5, #0] - 8006eec: b103 cbz r3, 8006ef0 <_fstat_r+0x1c> - 8006eee: 6023 str r3, [r4, #0] - 8006ef0: bd38 pop {r3, r4, r5, pc} - 8006ef2: bf00 nop - 8006ef4: 20000288 .word 0x20000288 +08007458 <_calloc_r>: + 8007458: b538 push {r3, r4, r5, lr} + 800745a: fb02 f501 mul.w r5, r2, r1 + 800745e: 4629 mov r1, r5 + 8007460: f7fe f8e4 bl 800562c <_malloc_r> + 8007464: 4604 mov r4, r0 + 8007466: b118 cbz r0, 8007470 <_calloc_r+0x18> + 8007468: 462a mov r2, r5 + 800746a: 2100 movs r1, #0 + 800746c: f7fe f88a bl 8005584 + 8007470: 4620 mov r0, r4 + 8007472: bd38 pop {r3, r4, r5, pc} -08006ef8 <_isatty_r>: - 8006ef8: b538 push {r3, r4, r5, lr} - 8006efa: 2300 movs r3, #0 - 8006efc: 4d05 ldr r5, [pc, #20] ; (8006f14 <_isatty_r+0x1c>) - 8006efe: 4604 mov r4, r0 - 8006f00: 4608 mov r0, r1 - 8006f02: 602b str r3, [r5, #0] - 8006f04: f7fa fb7f bl 8001606 <_isatty> - 8006f08: 1c43 adds r3, r0, #1 - 8006f0a: d102 bne.n 8006f12 <_isatty_r+0x1a> - 8006f0c: 682b ldr r3, [r5, #0] - 8006f0e: b103 cbz r3, 8006f12 <_isatty_r+0x1a> - 8006f10: 6023 str r3, [r4, #0] - 8006f12: bd38 pop {r3, r4, r5, pc} - 8006f14: 20000288 .word 0x20000288 +08007474 <__ssputs_r>: + 8007474: e92d 47f0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, lr} + 8007478: 688e ldr r6, [r1, #8] + 800747a: 4682 mov sl, r0 + 800747c: 429e cmp r6, r3 + 800747e: 460c mov r4, r1 + 8007480: 4690 mov r8, r2 + 8007482: 461f mov r7, r3 + 8007484: d838 bhi.n 80074f8 <__ssputs_r+0x84> + 8007486: 898a ldrh r2, [r1, #12] + 8007488: f412 6f90 tst.w r2, #1152 ; 0x480 + 800748c: d032 beq.n 80074f4 <__ssputs_r+0x80> + 800748e: 6825 ldr r5, [r4, #0] + 8007490: 6909 ldr r1, [r1, #16] + 8007492: 3301 adds r3, #1 + 8007494: eba5 0901 sub.w r9, r5, r1 + 8007498: 6965 ldr r5, [r4, #20] + 800749a: 444b add r3, r9 + 800749c: eb05 0545 add.w r5, r5, r5, lsl #1 + 80074a0: eb05 75d5 add.w r5, r5, r5, lsr #31 + 80074a4: 106d asrs r5, r5, #1 + 80074a6: 429d cmp r5, r3 + 80074a8: bf38 it cc + 80074aa: 461d movcc r5, r3 + 80074ac: 0553 lsls r3, r2, #21 + 80074ae: d531 bpl.n 8007514 <__ssputs_r+0xa0> + 80074b0: 4629 mov r1, r5 + 80074b2: f7fe f8bb bl 800562c <_malloc_r> + 80074b6: 4606 mov r6, r0 + 80074b8: b950 cbnz r0, 80074d0 <__ssputs_r+0x5c> + 80074ba: 230c movs r3, #12 + 80074bc: f04f 30ff mov.w r0, #4294967295 ; 0xffffffff + 80074c0: f8ca 3000 str.w r3, [sl] + 80074c4: 89a3 ldrh r3, [r4, #12] + 80074c6: f043 0340 orr.w r3, r3, #64 ; 0x40 + 80074ca: 81a3 strh r3, [r4, #12] + 80074cc: e8bd 87f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, pc} + 80074d0: 464a mov r2, r9 + 80074d2: 6921 ldr r1, [r4, #16] + 80074d4: f7ff fc24 bl 8006d20 + 80074d8: 89a3 ldrh r3, [r4, #12] + 80074da: f423 6390 bic.w r3, r3, #1152 ; 0x480 + 80074de: f043 0380 orr.w r3, r3, #128 ; 0x80 + 80074e2: 81a3 strh r3, [r4, #12] + 80074e4: 6126 str r6, [r4, #16] + 80074e6: 444e add r6, r9 + 80074e8: 6026 str r6, [r4, #0] + 80074ea: 463e mov r6, r7 + 80074ec: 6165 str r5, [r4, #20] + 80074ee: eba5 0509 sub.w r5, r5, r9 + 80074f2: 60a5 str r5, [r4, #8] + 80074f4: 42be cmp r6, r7 + 80074f6: d900 bls.n 80074fa <__ssputs_r+0x86> + 80074f8: 463e mov r6, r7 + 80074fa: 4632 mov r2, r6 + 80074fc: 4641 mov r1, r8 + 80074fe: 6820 ldr r0, [r4, #0] + 8007500: f000 f959 bl 80077b6 + 8007504: 68a3 ldr r3, [r4, #8] + 8007506: 6822 ldr r2, [r4, #0] + 8007508: 1b9b subs r3, r3, r6 + 800750a: 4432 add r2, r6 + 800750c: 2000 movs r0, #0 + 800750e: 60a3 str r3, [r4, #8] + 8007510: 6022 str r2, [r4, #0] + 8007512: e7db b.n 80074cc <__ssputs_r+0x58> + 8007514: 462a mov r2, r5 + 8007516: f000 f968 bl 80077ea <_realloc_r> + 800751a: 4606 mov r6, r0 + 800751c: 2800 cmp r0, #0 + 800751e: d1e1 bne.n 80074e4 <__ssputs_r+0x70> + 8007520: 4650 mov r0, sl + 8007522: 6921 ldr r1, [r4, #16] + 8007524: f7fe f836 bl 8005594 <_free_r> + 8007528: e7c7 b.n 80074ba <__ssputs_r+0x46> + ... -08006f18 <_lseek_r>: - 8006f18: b538 push {r3, r4, r5, lr} - 8006f1a: 4604 mov r4, r0 - 8006f1c: 4608 mov r0, r1 - 8006f1e: 4611 mov r1, r2 - 8006f20: 2200 movs r2, #0 - 8006f22: 4d05 ldr r5, [pc, #20] ; (8006f38 <_lseek_r+0x20>) - 8006f24: 602a str r2, [r5, #0] - 8006f26: 461a mov r2, r3 - 8006f28: f7fa fb77 bl 800161a <_lseek> - 8006f2c: 1c43 adds r3, r0, #1 - 8006f2e: d102 bne.n 8006f36 <_lseek_r+0x1e> - 8006f30: 682b ldr r3, [r5, #0] - 8006f32: b103 cbz r3, 8006f36 <_lseek_r+0x1e> - 8006f34: 6023 str r3, [r4, #0] - 8006f36: bd38 pop {r3, r4, r5, pc} - 8006f38: 20000288 .word 0x20000288 +0800752c <_svfiprintf_r>: + 800752c: e92d 4ff0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, fp, lr} + 8007530: 4698 mov r8, r3 + 8007532: 898b ldrh r3, [r1, #12] + 8007534: 4607 mov r7, r0 + 8007536: 061b lsls r3, r3, #24 + 8007538: 460d mov r5, r1 + 800753a: 4614 mov r4, r2 + 800753c: b09d sub sp, #116 ; 0x74 + 800753e: d50e bpl.n 800755e <_svfiprintf_r+0x32> + 8007540: 690b ldr r3, [r1, #16] + 8007542: b963 cbnz r3, 800755e <_svfiprintf_r+0x32> + 8007544: 2140 movs r1, #64 ; 0x40 + 8007546: f7fe f871 bl 800562c <_malloc_r> + 800754a: 6028 str r0, [r5, #0] + 800754c: 6128 str r0, [r5, #16] + 800754e: b920 cbnz r0, 800755a <_svfiprintf_r+0x2e> + 8007550: 230c movs r3, #12 + 8007552: 603b str r3, [r7, #0] + 8007554: f04f 30ff mov.w r0, #4294967295 ; 0xffffffff + 8007558: e0d1 b.n 80076fe <_svfiprintf_r+0x1d2> + 800755a: 2340 movs r3, #64 ; 0x40 + 800755c: 616b str r3, [r5, #20] + 800755e: 2300 movs r3, #0 + 8007560: 9309 str r3, [sp, #36] ; 0x24 + 8007562: 2320 movs r3, #32 + 8007564: f88d 3029 strb.w r3, [sp, #41] ; 0x29 + 8007568: 2330 movs r3, #48 ; 0x30 + 800756a: f04f 0901 mov.w r9, #1 + 800756e: f8cd 800c str.w r8, [sp, #12] + 8007572: f8df 81a4 ldr.w r8, [pc, #420] ; 8007718 <_svfiprintf_r+0x1ec> + 8007576: f88d 302a strb.w r3, [sp, #42] ; 0x2a + 800757a: 4623 mov r3, r4 + 800757c: 469a mov sl, r3 + 800757e: f813 2b01 ldrb.w r2, [r3], #1 + 8007582: b10a cbz r2, 8007588 <_svfiprintf_r+0x5c> + 8007584: 2a25 cmp r2, #37 ; 0x25 + 8007586: d1f9 bne.n 800757c <_svfiprintf_r+0x50> + 8007588: ebba 0b04 subs.w fp, sl, r4 + 800758c: d00b beq.n 80075a6 <_svfiprintf_r+0x7a> + 800758e: 465b mov r3, fp + 8007590: 4622 mov r2, r4 + 8007592: 4629 mov r1, r5 + 8007594: 4638 mov r0, r7 + 8007596: f7ff ff6d bl 8007474 <__ssputs_r> + 800759a: 3001 adds r0, #1 + 800759c: f000 80aa beq.w 80076f4 <_svfiprintf_r+0x1c8> + 80075a0: 9a09 ldr r2, [sp, #36] ; 0x24 + 80075a2: 445a add r2, fp + 80075a4: 9209 str r2, [sp, #36] ; 0x24 + 80075a6: f89a 3000 ldrb.w r3, [sl] + 80075aa: 2b00 cmp r3, #0 + 80075ac: f000 80a2 beq.w 80076f4 <_svfiprintf_r+0x1c8> + 80075b0: 2300 movs r3, #0 + 80075b2: f04f 32ff mov.w r2, #4294967295 ; 0xffffffff + 80075b6: e9cd 2305 strd r2, r3, [sp, #20] + 80075ba: f10a 0a01 add.w sl, sl, #1 + 80075be: 9304 str r3, [sp, #16] + 80075c0: 9307 str r3, [sp, #28] + 80075c2: f88d 3053 strb.w r3, [sp, #83] ; 0x53 + 80075c6: 931a str r3, [sp, #104] ; 0x68 + 80075c8: 4654 mov r4, sl + 80075ca: 2205 movs r2, #5 + 80075cc: f814 1b01 ldrb.w r1, [r4], #1 + 80075d0: 4851 ldr r0, [pc, #324] ; (8007718 <_svfiprintf_r+0x1ec>) + 80075d2: f7ff fb97 bl 8006d04 + 80075d6: 9a04 ldr r2, [sp, #16] + 80075d8: b9d8 cbnz r0, 8007612 <_svfiprintf_r+0xe6> + 80075da: 06d0 lsls r0, r2, #27 + 80075dc: bf44 itt mi + 80075de: 2320 movmi r3, #32 + 80075e0: f88d 3053 strbmi.w r3, [sp, #83] ; 0x53 + 80075e4: 0711 lsls r1, r2, #28 + 80075e6: bf44 itt mi + 80075e8: 232b movmi r3, #43 ; 0x2b + 80075ea: f88d 3053 strbmi.w r3, [sp, #83] ; 0x53 + 80075ee: f89a 3000 ldrb.w r3, [sl] + 80075f2: 2b2a cmp r3, #42 ; 0x2a + 80075f4: d015 beq.n 8007622 <_svfiprintf_r+0xf6> + 80075f6: 4654 mov r4, sl + 80075f8: 2000 movs r0, #0 + 80075fa: f04f 0c0a mov.w ip, #10 + 80075fe: 9a07 ldr r2, [sp, #28] + 8007600: 4621 mov r1, r4 + 8007602: f811 3b01 ldrb.w r3, [r1], #1 + 8007606: 3b30 subs r3, #48 ; 0x30 + 8007608: 2b09 cmp r3, #9 + 800760a: d94e bls.n 80076aa <_svfiprintf_r+0x17e> + 800760c: b1b0 cbz r0, 800763c <_svfiprintf_r+0x110> + 800760e: 9207 str r2, [sp, #28] + 8007610: e014 b.n 800763c <_svfiprintf_r+0x110> + 8007612: eba0 0308 sub.w r3, r0, r8 + 8007616: fa09 f303 lsl.w r3, r9, r3 + 800761a: 4313 orrs r3, r2 + 800761c: 46a2 mov sl, r4 + 800761e: 9304 str r3, [sp, #16] + 8007620: e7d2 b.n 80075c8 <_svfiprintf_r+0x9c> + 8007622: 9b03 ldr r3, [sp, #12] + 8007624: 1d19 adds r1, r3, #4 + 8007626: 681b ldr r3, [r3, #0] + 8007628: 9103 str r1, [sp, #12] + 800762a: 2b00 cmp r3, #0 + 800762c: bfbb ittet lt + 800762e: 425b neglt r3, r3 + 8007630: f042 0202 orrlt.w r2, r2, #2 + 8007634: 9307 strge r3, [sp, #28] + 8007636: 9307 strlt r3, [sp, #28] + 8007638: bfb8 it lt + 800763a: 9204 strlt r2, [sp, #16] + 800763c: 7823 ldrb r3, [r4, #0] + 800763e: 2b2e cmp r3, #46 ; 0x2e + 8007640: d10c bne.n 800765c <_svfiprintf_r+0x130> + 8007642: 7863 ldrb r3, [r4, #1] + 8007644: 2b2a cmp r3, #42 ; 0x2a + 8007646: d135 bne.n 80076b4 <_svfiprintf_r+0x188> + 8007648: 9b03 ldr r3, [sp, #12] + 800764a: 3402 adds r4, #2 + 800764c: 1d1a adds r2, r3, #4 + 800764e: 681b ldr r3, [r3, #0] + 8007650: 9203 str r2, [sp, #12] + 8007652: 2b00 cmp r3, #0 + 8007654: bfb8 it lt + 8007656: f04f 33ff movlt.w r3, #4294967295 ; 0xffffffff + 800765a: 9305 str r3, [sp, #20] + 800765c: f8df a0c8 ldr.w sl, [pc, #200] ; 8007728 <_svfiprintf_r+0x1fc> + 8007660: 2203 movs r2, #3 + 8007662: 4650 mov r0, sl + 8007664: 7821 ldrb r1, [r4, #0] + 8007666: f7ff fb4d bl 8006d04 + 800766a: b140 cbz r0, 800767e <_svfiprintf_r+0x152> + 800766c: 2340 movs r3, #64 ; 0x40 + 800766e: eba0 000a sub.w r0, r0, sl + 8007672: fa03 f000 lsl.w r0, r3, r0 + 8007676: 9b04 ldr r3, [sp, #16] + 8007678: 3401 adds r4, #1 + 800767a: 4303 orrs r3, r0 + 800767c: 9304 str r3, [sp, #16] + 800767e: f814 1b01 ldrb.w r1, [r4], #1 + 8007682: 2206 movs r2, #6 + 8007684: 4825 ldr r0, [pc, #148] ; (800771c <_svfiprintf_r+0x1f0>) + 8007686: f88d 1028 strb.w r1, [sp, #40] ; 0x28 + 800768a: f7ff fb3b bl 8006d04 + 800768e: 2800 cmp r0, #0 + 8007690: d038 beq.n 8007704 <_svfiprintf_r+0x1d8> + 8007692: 4b23 ldr r3, [pc, #140] ; (8007720 <_svfiprintf_r+0x1f4>) + 8007694: bb1b cbnz r3, 80076de <_svfiprintf_r+0x1b2> + 8007696: 9b03 ldr r3, [sp, #12] + 8007698: 3307 adds r3, #7 + 800769a: f023 0307 bic.w r3, r3, #7 + 800769e: 3308 adds r3, #8 + 80076a0: 9303 str r3, [sp, #12] + 80076a2: 9b09 ldr r3, [sp, #36] ; 0x24 + 80076a4: 4433 add r3, r6 + 80076a6: 9309 str r3, [sp, #36] ; 0x24 + 80076a8: e767 b.n 800757a <_svfiprintf_r+0x4e> + 80076aa: 460c mov r4, r1 + 80076ac: 2001 movs r0, #1 + 80076ae: fb0c 3202 mla r2, ip, r2, r3 + 80076b2: e7a5 b.n 8007600 <_svfiprintf_r+0xd4> + 80076b4: 2300 movs r3, #0 + 80076b6: f04f 0c0a mov.w ip, #10 + 80076ba: 4619 mov r1, r3 + 80076bc: 3401 adds r4, #1 + 80076be: 9305 str r3, [sp, #20] + 80076c0: 4620 mov r0, r4 + 80076c2: f810 2b01 ldrb.w r2, [r0], #1 + 80076c6: 3a30 subs r2, #48 ; 0x30 + 80076c8: 2a09 cmp r2, #9 + 80076ca: d903 bls.n 80076d4 <_svfiprintf_r+0x1a8> + 80076cc: 2b00 cmp r3, #0 + 80076ce: d0c5 beq.n 800765c <_svfiprintf_r+0x130> + 80076d0: 9105 str r1, [sp, #20] + 80076d2: e7c3 b.n 800765c <_svfiprintf_r+0x130> + 80076d4: 4604 mov r4, r0 + 80076d6: 2301 movs r3, #1 + 80076d8: fb0c 2101 mla r1, ip, r1, r2 + 80076dc: e7f0 b.n 80076c0 <_svfiprintf_r+0x194> + 80076de: ab03 add r3, sp, #12 + 80076e0: 9300 str r3, [sp, #0] + 80076e2: 462a mov r2, r5 + 80076e4: 4638 mov r0, r7 + 80076e6: 4b0f ldr r3, [pc, #60] ; (8007724 <_svfiprintf_r+0x1f8>) + 80076e8: a904 add r1, sp, #16 + 80076ea: f7fe f897 bl 800581c <_printf_float> + 80076ee: 1c42 adds r2, r0, #1 + 80076f0: 4606 mov r6, r0 + 80076f2: d1d6 bne.n 80076a2 <_svfiprintf_r+0x176> + 80076f4: 89ab ldrh r3, [r5, #12] + 80076f6: 065b lsls r3, r3, #25 + 80076f8: f53f af2c bmi.w 8007554 <_svfiprintf_r+0x28> + 80076fc: 9809 ldr r0, [sp, #36] ; 0x24 + 80076fe: b01d add sp, #116 ; 0x74 + 8007700: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc} + 8007704: ab03 add r3, sp, #12 + 8007706: 9300 str r3, [sp, #0] + 8007708: 462a mov r2, r5 + 800770a: 4638 mov r0, r7 + 800770c: 4b05 ldr r3, [pc, #20] ; (8007724 <_svfiprintf_r+0x1f8>) + 800770e: a904 add r1, sp, #16 + 8007710: f7fe fb20 bl 8005d54 <_printf_i> + 8007714: e7eb b.n 80076ee <_svfiprintf_r+0x1c2> + 8007716: bf00 nop + 8007718: 0800905c .word 0x0800905c + 800771c: 08009066 .word 0x08009066 + 8007720: 0800581d .word 0x0800581d + 8007724: 08007475 .word 0x08007475 + 8007728: 08009062 .word 0x08009062 -08006f3c <_read_r>: - 8006f3c: b538 push {r3, r4, r5, lr} - 8006f3e: 4604 mov r4, r0 - 8006f40: 4608 mov r0, r1 - 8006f42: 4611 mov r1, r2 - 8006f44: 2200 movs r2, #0 - 8006f46: 4d05 ldr r5, [pc, #20] ; (8006f5c <_read_r+0x20>) - 8006f48: 602a str r2, [r5, #0] - 8006f4a: 461a mov r2, r3 - 8006f4c: f7fa fb08 bl 8001560 <_read> - 8006f50: 1c43 adds r3, r0, #1 - 8006f52: d102 bne.n 8006f5a <_read_r+0x1e> - 8006f54: 682b ldr r3, [r5, #0] - 8006f56: b103 cbz r3, 8006f5a <_read_r+0x1e> - 8006f58: 6023 str r3, [r4, #0] - 8006f5a: bd38 pop {r3, r4, r5, pc} - 8006f5c: 20000288 .word 0x20000288 +0800772c <__assert_func>: + 800772c: b51f push {r0, r1, r2, r3, r4, lr} + 800772e: 4614 mov r4, r2 + 8007730: 461a mov r2, r3 + 8007732: 4b09 ldr r3, [pc, #36] ; (8007758 <__assert_func+0x2c>) + 8007734: 4605 mov r5, r0 + 8007736: 681b ldr r3, [r3, #0] + 8007738: 68d8 ldr r0, [r3, #12] + 800773a: b14c cbz r4, 8007750 <__assert_func+0x24> + 800773c: 4b07 ldr r3, [pc, #28] ; (800775c <__assert_func+0x30>) + 800773e: e9cd 3401 strd r3, r4, [sp, #4] + 8007742: 9100 str r1, [sp, #0] + 8007744: 462b mov r3, r5 + 8007746: 4906 ldr r1, [pc, #24] ; (8007760 <__assert_func+0x34>) + 8007748: f000 f80e bl 8007768 + 800774c: f000 fa98 bl 8007c80 + 8007750: 4b04 ldr r3, [pc, #16] ; (8007764 <__assert_func+0x38>) + 8007752: 461c mov r4, r3 + 8007754: e7f3 b.n 800773e <__assert_func+0x12> + 8007756: bf00 nop + 8007758: 2000000c .word 0x2000000c + 800775c: 0800906d .word 0x0800906d + 8007760: 0800907a .word 0x0800907a + 8007764: 080090a8 .word 0x080090a8 -08006f60 <_init>: - 8006f60: b5f8 push {r3, r4, r5, r6, r7, lr} - 8006f62: bf00 nop - 8006f64: bcf8 pop {r3, r4, r5, r6, r7} - 8006f66: bc08 pop {r3} - 8006f68: 469e mov lr, r3 - 8006f6a: 4770 bx lr +08007768 : + 8007768: b40e push {r1, r2, r3} + 800776a: b503 push {r0, r1, lr} + 800776c: 4601 mov r1, r0 + 800776e: ab03 add r3, sp, #12 + 8007770: 4805 ldr r0, [pc, #20] ; (8007788 ) + 8007772: f853 2b04 ldr.w r2, [r3], #4 + 8007776: 6800 ldr r0, [r0, #0] + 8007778: 9301 str r3, [sp, #4] + 800777a: f000 f883 bl 8007884 <_vfiprintf_r> + 800777e: b002 add sp, #8 + 8007780: f85d eb04 ldr.w lr, [sp], #4 + 8007784: b003 add sp, #12 + 8007786: 4770 bx lr + 8007788: 2000000c .word 0x2000000c -08006f6c <_fini>: - 8006f6c: b5f8 push {r3, r4, r5, r6, r7, lr} - 8006f6e: bf00 nop - 8006f70: bcf8 pop {r3, r4, r5, r6, r7} - 8006f72: bc08 pop {r3} - 8006f74: 469e mov lr, r3 - 8006f76: 4770 bx lr +0800778c <__retarget_lock_init_recursive>: + 800778c: 4770 bx lr + +0800778e <__retarget_lock_acquire_recursive>: + 800778e: 4770 bx lr + +08007790 <__retarget_lock_release_recursive>: + 8007790: 4770 bx lr + +08007792 <__ascii_mbtowc>: + 8007792: b082 sub sp, #8 + 8007794: b901 cbnz r1, 8007798 <__ascii_mbtowc+0x6> + 8007796: a901 add r1, sp, #4 + 8007798: b142 cbz r2, 80077ac <__ascii_mbtowc+0x1a> + 800779a: b14b cbz r3, 80077b0 <__ascii_mbtowc+0x1e> + 800779c: 7813 ldrb r3, [r2, #0] + 800779e: 600b str r3, [r1, #0] + 80077a0: 7812 ldrb r2, [r2, #0] + 80077a2: 1e10 subs r0, r2, #0 + 80077a4: bf18 it ne + 80077a6: 2001 movne r0, #1 + 80077a8: b002 add sp, #8 + 80077aa: 4770 bx lr + 80077ac: 4610 mov r0, r2 + 80077ae: e7fb b.n 80077a8 <__ascii_mbtowc+0x16> + 80077b0: f06f 0001 mvn.w r0, #1 + 80077b4: e7f8 b.n 80077a8 <__ascii_mbtowc+0x16> + +080077b6 : + 80077b6: 4288 cmp r0, r1 + 80077b8: b510 push {r4, lr} + 80077ba: eb01 0402 add.w r4, r1, r2 + 80077be: d902 bls.n 80077c6 + 80077c0: 4284 cmp r4, r0 + 80077c2: 4623 mov r3, r4 + 80077c4: d807 bhi.n 80077d6 + 80077c6: 1e43 subs r3, r0, #1 + 80077c8: 42a1 cmp r1, r4 + 80077ca: d008 beq.n 80077de + 80077cc: f811 2b01 ldrb.w r2, [r1], #1 + 80077d0: f803 2f01 strb.w r2, [r3, #1]! + 80077d4: e7f8 b.n 80077c8 + 80077d6: 4601 mov r1, r0 + 80077d8: 4402 add r2, r0 + 80077da: 428a cmp r2, r1 + 80077dc: d100 bne.n 80077e0 + 80077de: bd10 pop {r4, pc} + 80077e0: f813 4d01 ldrb.w r4, [r3, #-1]! + 80077e4: f802 4d01 strb.w r4, [r2, #-1]! + 80077e8: e7f7 b.n 80077da + +080077ea <_realloc_r>: + 80077ea: b5f8 push {r3, r4, r5, r6, r7, lr} + 80077ec: 4607 mov r7, r0 + 80077ee: 4614 mov r4, r2 + 80077f0: 460e mov r6, r1 + 80077f2: b921 cbnz r1, 80077fe <_realloc_r+0x14> + 80077f4: 4611 mov r1, r2 + 80077f6: e8bd 40f8 ldmia.w sp!, {r3, r4, r5, r6, r7, lr} + 80077fa: f7fd bf17 b.w 800562c <_malloc_r> + 80077fe: b922 cbnz r2, 800780a <_realloc_r+0x20> + 8007800: f7fd fec8 bl 8005594 <_free_r> + 8007804: 4625 mov r5, r4 + 8007806: 4628 mov r0, r5 + 8007808: bdf8 pop {r3, r4, r5, r6, r7, pc} + 800780a: f000 fc5d bl 80080c8 <_malloc_usable_size_r> + 800780e: 42a0 cmp r0, r4 + 8007810: d20f bcs.n 8007832 <_realloc_r+0x48> + 8007812: 4621 mov r1, r4 + 8007814: 4638 mov r0, r7 + 8007816: f7fd ff09 bl 800562c <_malloc_r> + 800781a: 4605 mov r5, r0 + 800781c: 2800 cmp r0, #0 + 800781e: d0f2 beq.n 8007806 <_realloc_r+0x1c> + 8007820: 4631 mov r1, r6 + 8007822: 4622 mov r2, r4 + 8007824: f7ff fa7c bl 8006d20 + 8007828: 4631 mov r1, r6 + 800782a: 4638 mov r0, r7 + 800782c: f7fd feb2 bl 8005594 <_free_r> + 8007830: e7e9 b.n 8007806 <_realloc_r+0x1c> + 8007832: 4635 mov r5, r6 + 8007834: e7e7 b.n 8007806 <_realloc_r+0x1c> + +08007836 <__sfputc_r>: + 8007836: 6893 ldr r3, [r2, #8] + 8007838: b410 push {r4} + 800783a: 3b01 subs r3, #1 + 800783c: 2b00 cmp r3, #0 + 800783e: 6093 str r3, [r2, #8] + 8007840: da07 bge.n 8007852 <__sfputc_r+0x1c> + 8007842: 6994 ldr r4, [r2, #24] + 8007844: 42a3 cmp r3, r4 + 8007846: db01 blt.n 800784c <__sfputc_r+0x16> + 8007848: 290a cmp r1, #10 + 800784a: d102 bne.n 8007852 <__sfputc_r+0x1c> + 800784c: bc10 pop {r4} + 800784e: f000 b949 b.w 8007ae4 <__swbuf_r> + 8007852: 6813 ldr r3, [r2, #0] + 8007854: 1c58 adds r0, r3, #1 + 8007856: 6010 str r0, [r2, #0] + 8007858: 7019 strb r1, [r3, #0] + 800785a: 4608 mov r0, r1 + 800785c: bc10 pop {r4} + 800785e: 4770 bx lr + +08007860 <__sfputs_r>: + 8007860: b5f8 push {r3, r4, r5, r6, r7, lr} + 8007862: 4606 mov r6, r0 + 8007864: 460f mov r7, r1 + 8007866: 4614 mov r4, r2 + 8007868: 18d5 adds r5, r2, r3 + 800786a: 42ac cmp r4, r5 + 800786c: d101 bne.n 8007872 <__sfputs_r+0x12> + 800786e: 2000 movs r0, #0 + 8007870: e007 b.n 8007882 <__sfputs_r+0x22> + 8007872: 463a mov r2, r7 + 8007874: 4630 mov r0, r6 + 8007876: f814 1b01 ldrb.w r1, [r4], #1 + 800787a: f7ff ffdc bl 8007836 <__sfputc_r> + 800787e: 1c43 adds r3, r0, #1 + 8007880: d1f3 bne.n 800786a <__sfputs_r+0xa> + 8007882: bdf8 pop {r3, r4, r5, r6, r7, pc} + +08007884 <_vfiprintf_r>: + 8007884: e92d 4ff0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, fp, lr} + 8007888: 460d mov r5, r1 + 800788a: 4614 mov r4, r2 + 800788c: 4698 mov r8, r3 + 800788e: 4606 mov r6, r0 + 8007890: b09d sub sp, #116 ; 0x74 + 8007892: b118 cbz r0, 800789c <_vfiprintf_r+0x18> + 8007894: 6983 ldr r3, [r0, #24] + 8007896: b90b cbnz r3, 800789c <_vfiprintf_r+0x18> + 8007898: f000 fb14 bl 8007ec4 <__sinit> + 800789c: 4b89 ldr r3, [pc, #548] ; (8007ac4 <_vfiprintf_r+0x240>) + 800789e: 429d cmp r5, r3 + 80078a0: d11b bne.n 80078da <_vfiprintf_r+0x56> + 80078a2: 6875 ldr r5, [r6, #4] + 80078a4: 6e6b ldr r3, [r5, #100] ; 0x64 + 80078a6: 07d9 lsls r1, r3, #31 + 80078a8: d405 bmi.n 80078b6 <_vfiprintf_r+0x32> + 80078aa: 89ab ldrh r3, [r5, #12] + 80078ac: 059a lsls r2, r3, #22 + 80078ae: d402 bmi.n 80078b6 <_vfiprintf_r+0x32> + 80078b0: 6da8 ldr r0, [r5, #88] ; 0x58 + 80078b2: f7ff ff6c bl 800778e <__retarget_lock_acquire_recursive> + 80078b6: 89ab ldrh r3, [r5, #12] + 80078b8: 071b lsls r3, r3, #28 + 80078ba: d501 bpl.n 80078c0 <_vfiprintf_r+0x3c> + 80078bc: 692b ldr r3, [r5, #16] + 80078be: b9eb cbnz r3, 80078fc <_vfiprintf_r+0x78> + 80078c0: 4629 mov r1, r5 + 80078c2: 4630 mov r0, r6 + 80078c4: f000 f96e bl 8007ba4 <__swsetup_r> + 80078c8: b1c0 cbz r0, 80078fc <_vfiprintf_r+0x78> + 80078ca: 6e6b ldr r3, [r5, #100] ; 0x64 + 80078cc: 07dc lsls r4, r3, #31 + 80078ce: d50e bpl.n 80078ee <_vfiprintf_r+0x6a> + 80078d0: f04f 30ff mov.w r0, #4294967295 ; 0xffffffff + 80078d4: b01d add sp, #116 ; 0x74 + 80078d6: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc} + 80078da: 4b7b ldr r3, [pc, #492] ; (8007ac8 <_vfiprintf_r+0x244>) + 80078dc: 429d cmp r5, r3 + 80078de: d101 bne.n 80078e4 <_vfiprintf_r+0x60> + 80078e0: 68b5 ldr r5, [r6, #8] + 80078e2: e7df b.n 80078a4 <_vfiprintf_r+0x20> + 80078e4: 4b79 ldr r3, [pc, #484] ; (8007acc <_vfiprintf_r+0x248>) + 80078e6: 429d cmp r5, r3 + 80078e8: bf08 it eq + 80078ea: 68f5 ldreq r5, [r6, #12] + 80078ec: e7da b.n 80078a4 <_vfiprintf_r+0x20> + 80078ee: 89ab ldrh r3, [r5, #12] + 80078f0: 0598 lsls r0, r3, #22 + 80078f2: d4ed bmi.n 80078d0 <_vfiprintf_r+0x4c> + 80078f4: 6da8 ldr r0, [r5, #88] ; 0x58 + 80078f6: f7ff ff4b bl 8007790 <__retarget_lock_release_recursive> + 80078fa: e7e9 b.n 80078d0 <_vfiprintf_r+0x4c> + 80078fc: 2300 movs r3, #0 + 80078fe: 9309 str r3, [sp, #36] ; 0x24 + 8007900: 2320 movs r3, #32 + 8007902: f88d 3029 strb.w r3, [sp, #41] ; 0x29 + 8007906: 2330 movs r3, #48 ; 0x30 + 8007908: f04f 0901 mov.w r9, #1 + 800790c: f8cd 800c str.w r8, [sp, #12] + 8007910: f8df 81bc ldr.w r8, [pc, #444] ; 8007ad0 <_vfiprintf_r+0x24c> + 8007914: f88d 302a strb.w r3, [sp, #42] ; 0x2a + 8007918: 4623 mov r3, r4 + 800791a: 469a mov sl, r3 + 800791c: f813 2b01 ldrb.w r2, [r3], #1 + 8007920: b10a cbz r2, 8007926 <_vfiprintf_r+0xa2> + 8007922: 2a25 cmp r2, #37 ; 0x25 + 8007924: d1f9 bne.n 800791a <_vfiprintf_r+0x96> + 8007926: ebba 0b04 subs.w fp, sl, r4 + 800792a: d00b beq.n 8007944 <_vfiprintf_r+0xc0> + 800792c: 465b mov r3, fp + 800792e: 4622 mov r2, r4 + 8007930: 4629 mov r1, r5 + 8007932: 4630 mov r0, r6 + 8007934: f7ff ff94 bl 8007860 <__sfputs_r> + 8007938: 3001 adds r0, #1 + 800793a: f000 80aa beq.w 8007a92 <_vfiprintf_r+0x20e> + 800793e: 9a09 ldr r2, [sp, #36] ; 0x24 + 8007940: 445a add r2, fp + 8007942: 9209 str r2, [sp, #36] ; 0x24 + 8007944: f89a 3000 ldrb.w r3, [sl] + 8007948: 2b00 cmp r3, #0 + 800794a: f000 80a2 beq.w 8007a92 <_vfiprintf_r+0x20e> + 800794e: 2300 movs r3, #0 + 8007950: f04f 32ff mov.w r2, #4294967295 ; 0xffffffff + 8007954: e9cd 2305 strd r2, r3, [sp, #20] + 8007958: f10a 0a01 add.w sl, sl, #1 + 800795c: 9304 str r3, [sp, #16] + 800795e: 9307 str r3, [sp, #28] + 8007960: f88d 3053 strb.w r3, [sp, #83] ; 0x53 + 8007964: 931a str r3, [sp, #104] ; 0x68 + 8007966: 4654 mov r4, sl + 8007968: 2205 movs r2, #5 + 800796a: f814 1b01 ldrb.w r1, [r4], #1 + 800796e: 4858 ldr r0, [pc, #352] ; (8007ad0 <_vfiprintf_r+0x24c>) + 8007970: f7ff f9c8 bl 8006d04 + 8007974: 9a04 ldr r2, [sp, #16] + 8007976: b9d8 cbnz r0, 80079b0 <_vfiprintf_r+0x12c> + 8007978: 06d1 lsls r1, r2, #27 + 800797a: bf44 itt mi + 800797c: 2320 movmi r3, #32 + 800797e: f88d 3053 strbmi.w r3, [sp, #83] ; 0x53 + 8007982: 0713 lsls r3, r2, #28 + 8007984: bf44 itt mi + 8007986: 232b movmi r3, #43 ; 0x2b + 8007988: f88d 3053 strbmi.w r3, [sp, #83] ; 0x53 + 800798c: f89a 3000 ldrb.w r3, [sl] + 8007990: 2b2a cmp r3, #42 ; 0x2a + 8007992: d015 beq.n 80079c0 <_vfiprintf_r+0x13c> + 8007994: 4654 mov r4, sl + 8007996: 2000 movs r0, #0 + 8007998: f04f 0c0a mov.w ip, #10 + 800799c: 9a07 ldr r2, [sp, #28] + 800799e: 4621 mov r1, r4 + 80079a0: f811 3b01 ldrb.w r3, [r1], #1 + 80079a4: 3b30 subs r3, #48 ; 0x30 + 80079a6: 2b09 cmp r3, #9 + 80079a8: d94e bls.n 8007a48 <_vfiprintf_r+0x1c4> + 80079aa: b1b0 cbz r0, 80079da <_vfiprintf_r+0x156> + 80079ac: 9207 str r2, [sp, #28] + 80079ae: e014 b.n 80079da <_vfiprintf_r+0x156> + 80079b0: eba0 0308 sub.w r3, r0, r8 + 80079b4: fa09 f303 lsl.w r3, r9, r3 + 80079b8: 4313 orrs r3, r2 + 80079ba: 46a2 mov sl, r4 + 80079bc: 9304 str r3, [sp, #16] + 80079be: e7d2 b.n 8007966 <_vfiprintf_r+0xe2> + 80079c0: 9b03 ldr r3, [sp, #12] + 80079c2: 1d19 adds r1, r3, #4 + 80079c4: 681b ldr r3, [r3, #0] + 80079c6: 9103 str r1, [sp, #12] + 80079c8: 2b00 cmp r3, #0 + 80079ca: bfbb ittet lt + 80079cc: 425b neglt r3, r3 + 80079ce: f042 0202 orrlt.w r2, r2, #2 + 80079d2: 9307 strge r3, [sp, #28] + 80079d4: 9307 strlt r3, [sp, #28] + 80079d6: bfb8 it lt + 80079d8: 9204 strlt r2, [sp, #16] + 80079da: 7823 ldrb r3, [r4, #0] + 80079dc: 2b2e cmp r3, #46 ; 0x2e + 80079de: d10c bne.n 80079fa <_vfiprintf_r+0x176> + 80079e0: 7863 ldrb r3, [r4, #1] + 80079e2: 2b2a cmp r3, #42 ; 0x2a + 80079e4: d135 bne.n 8007a52 <_vfiprintf_r+0x1ce> + 80079e6: 9b03 ldr r3, [sp, #12] + 80079e8: 3402 adds r4, #2 + 80079ea: 1d1a adds r2, r3, #4 + 80079ec: 681b ldr r3, [r3, #0] + 80079ee: 9203 str r2, [sp, #12] + 80079f0: 2b00 cmp r3, #0 + 80079f2: bfb8 it lt + 80079f4: f04f 33ff movlt.w r3, #4294967295 ; 0xffffffff + 80079f8: 9305 str r3, [sp, #20] + 80079fa: f8df a0e4 ldr.w sl, [pc, #228] ; 8007ae0 <_vfiprintf_r+0x25c> + 80079fe: 2203 movs r2, #3 + 8007a00: 4650 mov r0, sl + 8007a02: 7821 ldrb r1, [r4, #0] + 8007a04: f7ff f97e bl 8006d04 + 8007a08: b140 cbz r0, 8007a1c <_vfiprintf_r+0x198> + 8007a0a: 2340 movs r3, #64 ; 0x40 + 8007a0c: eba0 000a sub.w r0, r0, sl + 8007a10: fa03 f000 lsl.w r0, r3, r0 + 8007a14: 9b04 ldr r3, [sp, #16] + 8007a16: 3401 adds r4, #1 + 8007a18: 4303 orrs r3, r0 + 8007a1a: 9304 str r3, [sp, #16] + 8007a1c: f814 1b01 ldrb.w r1, [r4], #1 + 8007a20: 2206 movs r2, #6 + 8007a22: 482c ldr r0, [pc, #176] ; (8007ad4 <_vfiprintf_r+0x250>) + 8007a24: f88d 1028 strb.w r1, [sp, #40] ; 0x28 + 8007a28: f7ff f96c bl 8006d04 + 8007a2c: 2800 cmp r0, #0 + 8007a2e: d03f beq.n 8007ab0 <_vfiprintf_r+0x22c> + 8007a30: 4b29 ldr r3, [pc, #164] ; (8007ad8 <_vfiprintf_r+0x254>) + 8007a32: bb1b cbnz r3, 8007a7c <_vfiprintf_r+0x1f8> + 8007a34: 9b03 ldr r3, [sp, #12] + 8007a36: 3307 adds r3, #7 + 8007a38: f023 0307 bic.w r3, r3, #7 + 8007a3c: 3308 adds r3, #8 + 8007a3e: 9303 str r3, [sp, #12] + 8007a40: 9b09 ldr r3, [sp, #36] ; 0x24 + 8007a42: 443b add r3, r7 + 8007a44: 9309 str r3, [sp, #36] ; 0x24 + 8007a46: e767 b.n 8007918 <_vfiprintf_r+0x94> + 8007a48: 460c mov r4, r1 + 8007a4a: 2001 movs r0, #1 + 8007a4c: fb0c 3202 mla r2, ip, r2, r3 + 8007a50: e7a5 b.n 800799e <_vfiprintf_r+0x11a> + 8007a52: 2300 movs r3, #0 + 8007a54: f04f 0c0a mov.w ip, #10 + 8007a58: 4619 mov r1, r3 + 8007a5a: 3401 adds r4, #1 + 8007a5c: 9305 str r3, [sp, #20] + 8007a5e: 4620 mov r0, r4 + 8007a60: f810 2b01 ldrb.w r2, [r0], #1 + 8007a64: 3a30 subs r2, #48 ; 0x30 + 8007a66: 2a09 cmp r2, #9 + 8007a68: d903 bls.n 8007a72 <_vfiprintf_r+0x1ee> + 8007a6a: 2b00 cmp r3, #0 + 8007a6c: d0c5 beq.n 80079fa <_vfiprintf_r+0x176> + 8007a6e: 9105 str r1, [sp, #20] + 8007a70: e7c3 b.n 80079fa <_vfiprintf_r+0x176> + 8007a72: 4604 mov r4, r0 + 8007a74: 2301 movs r3, #1 + 8007a76: fb0c 2101 mla r1, ip, r1, r2 + 8007a7a: e7f0 b.n 8007a5e <_vfiprintf_r+0x1da> + 8007a7c: ab03 add r3, sp, #12 + 8007a7e: 9300 str r3, [sp, #0] + 8007a80: 462a mov r2, r5 + 8007a82: 4630 mov r0, r6 + 8007a84: 4b15 ldr r3, [pc, #84] ; (8007adc <_vfiprintf_r+0x258>) + 8007a86: a904 add r1, sp, #16 + 8007a88: f7fd fec8 bl 800581c <_printf_float> + 8007a8c: 4607 mov r7, r0 + 8007a8e: 1c78 adds r0, r7, #1 + 8007a90: d1d6 bne.n 8007a40 <_vfiprintf_r+0x1bc> + 8007a92: 6e6b ldr r3, [r5, #100] ; 0x64 + 8007a94: 07d9 lsls r1, r3, #31 + 8007a96: d405 bmi.n 8007aa4 <_vfiprintf_r+0x220> + 8007a98: 89ab ldrh r3, [r5, #12] + 8007a9a: 059a lsls r2, r3, #22 + 8007a9c: d402 bmi.n 8007aa4 <_vfiprintf_r+0x220> + 8007a9e: 6da8 ldr r0, [r5, #88] ; 0x58 + 8007aa0: f7ff fe76 bl 8007790 <__retarget_lock_release_recursive> + 8007aa4: 89ab ldrh r3, [r5, #12] + 8007aa6: 065b lsls r3, r3, #25 + 8007aa8: f53f af12 bmi.w 80078d0 <_vfiprintf_r+0x4c> + 8007aac: 9809 ldr r0, [sp, #36] ; 0x24 + 8007aae: e711 b.n 80078d4 <_vfiprintf_r+0x50> + 8007ab0: ab03 add r3, sp, #12 + 8007ab2: 9300 str r3, [sp, #0] + 8007ab4: 462a mov r2, r5 + 8007ab6: 4630 mov r0, r6 + 8007ab8: 4b08 ldr r3, [pc, #32] ; (8007adc <_vfiprintf_r+0x258>) + 8007aba: a904 add r1, sp, #16 + 8007abc: f7fe f94a bl 8005d54 <_printf_i> + 8007ac0: e7e4 b.n 8007a8c <_vfiprintf_r+0x208> + 8007ac2: bf00 nop + 8007ac4: 080091d4 .word 0x080091d4 + 8007ac8: 080091f4 .word 0x080091f4 + 8007acc: 080091b4 .word 0x080091b4 + 8007ad0: 0800905c .word 0x0800905c + 8007ad4: 08009066 .word 0x08009066 + 8007ad8: 0800581d .word 0x0800581d + 8007adc: 08007861 .word 0x08007861 + 8007ae0: 08009062 .word 0x08009062 + +08007ae4 <__swbuf_r>: + 8007ae4: b5f8 push {r3, r4, r5, r6, r7, lr} + 8007ae6: 460e mov r6, r1 + 8007ae8: 4614 mov r4, r2 + 8007aea: 4605 mov r5, r0 + 8007aec: b118 cbz r0, 8007af6 <__swbuf_r+0x12> + 8007aee: 6983 ldr r3, [r0, #24] + 8007af0: b90b cbnz r3, 8007af6 <__swbuf_r+0x12> + 8007af2: f000 f9e7 bl 8007ec4 <__sinit> + 8007af6: 4b21 ldr r3, [pc, #132] ; (8007b7c <__swbuf_r+0x98>) + 8007af8: 429c cmp r4, r3 + 8007afa: d12b bne.n 8007b54 <__swbuf_r+0x70> + 8007afc: 686c ldr r4, [r5, #4] + 8007afe: 69a3 ldr r3, [r4, #24] + 8007b00: 60a3 str r3, [r4, #8] + 8007b02: 89a3 ldrh r3, [r4, #12] + 8007b04: 071a lsls r2, r3, #28 + 8007b06: d52f bpl.n 8007b68 <__swbuf_r+0x84> + 8007b08: 6923 ldr r3, [r4, #16] + 8007b0a: b36b cbz r3, 8007b68 <__swbuf_r+0x84> + 8007b0c: 6923 ldr r3, [r4, #16] + 8007b0e: 6820 ldr r0, [r4, #0] + 8007b10: b2f6 uxtb r6, r6 + 8007b12: 1ac0 subs r0, r0, r3 + 8007b14: 6963 ldr r3, [r4, #20] + 8007b16: 4637 mov r7, r6 + 8007b18: 4283 cmp r3, r0 + 8007b1a: dc04 bgt.n 8007b26 <__swbuf_r+0x42> + 8007b1c: 4621 mov r1, r4 + 8007b1e: 4628 mov r0, r5 + 8007b20: f000 f93c bl 8007d9c <_fflush_r> + 8007b24: bb30 cbnz r0, 8007b74 <__swbuf_r+0x90> + 8007b26: 68a3 ldr r3, [r4, #8] + 8007b28: 3001 adds r0, #1 + 8007b2a: 3b01 subs r3, #1 + 8007b2c: 60a3 str r3, [r4, #8] + 8007b2e: 6823 ldr r3, [r4, #0] + 8007b30: 1c5a adds r2, r3, #1 + 8007b32: 6022 str r2, [r4, #0] + 8007b34: 701e strb r6, [r3, #0] + 8007b36: 6963 ldr r3, [r4, #20] + 8007b38: 4283 cmp r3, r0 + 8007b3a: d004 beq.n 8007b46 <__swbuf_r+0x62> + 8007b3c: 89a3 ldrh r3, [r4, #12] + 8007b3e: 07db lsls r3, r3, #31 + 8007b40: d506 bpl.n 8007b50 <__swbuf_r+0x6c> + 8007b42: 2e0a cmp r6, #10 + 8007b44: d104 bne.n 8007b50 <__swbuf_r+0x6c> + 8007b46: 4621 mov r1, r4 + 8007b48: 4628 mov r0, r5 + 8007b4a: f000 f927 bl 8007d9c <_fflush_r> + 8007b4e: b988 cbnz r0, 8007b74 <__swbuf_r+0x90> + 8007b50: 4638 mov r0, r7 + 8007b52: bdf8 pop {r3, r4, r5, r6, r7, pc} + 8007b54: 4b0a ldr r3, [pc, #40] ; (8007b80 <__swbuf_r+0x9c>) + 8007b56: 429c cmp r4, r3 + 8007b58: d101 bne.n 8007b5e <__swbuf_r+0x7a> + 8007b5a: 68ac ldr r4, [r5, #8] + 8007b5c: e7cf b.n 8007afe <__swbuf_r+0x1a> + 8007b5e: 4b09 ldr r3, [pc, #36] ; (8007b84 <__swbuf_r+0xa0>) + 8007b60: 429c cmp r4, r3 + 8007b62: bf08 it eq + 8007b64: 68ec ldreq r4, [r5, #12] + 8007b66: e7ca b.n 8007afe <__swbuf_r+0x1a> + 8007b68: 4621 mov r1, r4 + 8007b6a: 4628 mov r0, r5 + 8007b6c: f000 f81a bl 8007ba4 <__swsetup_r> + 8007b70: 2800 cmp r0, #0 + 8007b72: d0cb beq.n 8007b0c <__swbuf_r+0x28> + 8007b74: f04f 37ff mov.w r7, #4294967295 ; 0xffffffff + 8007b78: e7ea b.n 8007b50 <__swbuf_r+0x6c> + 8007b7a: bf00 nop + 8007b7c: 080091d4 .word 0x080091d4 + 8007b80: 080091f4 .word 0x080091f4 + 8007b84: 080091b4 .word 0x080091b4 + +08007b88 <__ascii_wctomb>: + 8007b88: 4603 mov r3, r0 + 8007b8a: 4608 mov r0, r1 + 8007b8c: b141 cbz r1, 8007ba0 <__ascii_wctomb+0x18> + 8007b8e: 2aff cmp r2, #255 ; 0xff + 8007b90: d904 bls.n 8007b9c <__ascii_wctomb+0x14> + 8007b92: 228a movs r2, #138 ; 0x8a + 8007b94: f04f 30ff mov.w r0, #4294967295 ; 0xffffffff + 8007b98: 601a str r2, [r3, #0] + 8007b9a: 4770 bx lr + 8007b9c: 2001 movs r0, #1 + 8007b9e: 700a strb r2, [r1, #0] + 8007ba0: 4770 bx lr + ... + +08007ba4 <__swsetup_r>: + 8007ba4: 4b32 ldr r3, [pc, #200] ; (8007c70 <__swsetup_r+0xcc>) + 8007ba6: b570 push {r4, r5, r6, lr} + 8007ba8: 681d ldr r5, [r3, #0] + 8007baa: 4606 mov r6, r0 + 8007bac: 460c mov r4, r1 + 8007bae: b125 cbz r5, 8007bba <__swsetup_r+0x16> + 8007bb0: 69ab ldr r3, [r5, #24] + 8007bb2: b913 cbnz r3, 8007bba <__swsetup_r+0x16> + 8007bb4: 4628 mov r0, r5 + 8007bb6: f000 f985 bl 8007ec4 <__sinit> + 8007bba: 4b2e ldr r3, [pc, #184] ; (8007c74 <__swsetup_r+0xd0>) + 8007bbc: 429c cmp r4, r3 + 8007bbe: d10f bne.n 8007be0 <__swsetup_r+0x3c> + 8007bc0: 686c ldr r4, [r5, #4] + 8007bc2: 89a3 ldrh r3, [r4, #12] + 8007bc4: f9b4 200c ldrsh.w r2, [r4, #12] + 8007bc8: 0719 lsls r1, r3, #28 + 8007bca: d42c bmi.n 8007c26 <__swsetup_r+0x82> + 8007bcc: 06dd lsls r5, r3, #27 + 8007bce: d411 bmi.n 8007bf4 <__swsetup_r+0x50> + 8007bd0: 2309 movs r3, #9 + 8007bd2: 6033 str r3, [r6, #0] + 8007bd4: f042 0340 orr.w r3, r2, #64 ; 0x40 + 8007bd8: f04f 30ff mov.w r0, #4294967295 ; 0xffffffff + 8007bdc: 81a3 strh r3, [r4, #12] + 8007bde: e03e b.n 8007c5e <__swsetup_r+0xba> + 8007be0: 4b25 ldr r3, [pc, #148] ; (8007c78 <__swsetup_r+0xd4>) + 8007be2: 429c cmp r4, r3 + 8007be4: d101 bne.n 8007bea <__swsetup_r+0x46> + 8007be6: 68ac ldr r4, [r5, #8] + 8007be8: e7eb b.n 8007bc2 <__swsetup_r+0x1e> + 8007bea: 4b24 ldr r3, [pc, #144] ; (8007c7c <__swsetup_r+0xd8>) + 8007bec: 429c cmp r4, r3 + 8007bee: bf08 it eq + 8007bf0: 68ec ldreq r4, [r5, #12] + 8007bf2: e7e6 b.n 8007bc2 <__swsetup_r+0x1e> + 8007bf4: 0758 lsls r0, r3, #29 + 8007bf6: d512 bpl.n 8007c1e <__swsetup_r+0x7a> + 8007bf8: 6b61 ldr r1, [r4, #52] ; 0x34 + 8007bfa: b141 cbz r1, 8007c0e <__swsetup_r+0x6a> + 8007bfc: f104 0344 add.w r3, r4, #68 ; 0x44 + 8007c00: 4299 cmp r1, r3 + 8007c02: d002 beq.n 8007c0a <__swsetup_r+0x66> + 8007c04: 4630 mov r0, r6 + 8007c06: f7fd fcc5 bl 8005594 <_free_r> + 8007c0a: 2300 movs r3, #0 + 8007c0c: 6363 str r3, [r4, #52] ; 0x34 + 8007c0e: 89a3 ldrh r3, [r4, #12] + 8007c10: f023 0324 bic.w r3, r3, #36 ; 0x24 + 8007c14: 81a3 strh r3, [r4, #12] + 8007c16: 2300 movs r3, #0 + 8007c18: 6063 str r3, [r4, #4] + 8007c1a: 6923 ldr r3, [r4, #16] + 8007c1c: 6023 str r3, [r4, #0] + 8007c1e: 89a3 ldrh r3, [r4, #12] + 8007c20: f043 0308 orr.w r3, r3, #8 + 8007c24: 81a3 strh r3, [r4, #12] + 8007c26: 6923 ldr r3, [r4, #16] + 8007c28: b94b cbnz r3, 8007c3e <__swsetup_r+0x9a> + 8007c2a: 89a3 ldrh r3, [r4, #12] + 8007c2c: f403 7320 and.w r3, r3, #640 ; 0x280 + 8007c30: f5b3 7f00 cmp.w r3, #512 ; 0x200 + 8007c34: d003 beq.n 8007c3e <__swsetup_r+0x9a> + 8007c36: 4621 mov r1, r4 + 8007c38: 4630 mov r0, r6 + 8007c3a: f000 fa05 bl 8008048 <__smakebuf_r> + 8007c3e: 89a0 ldrh r0, [r4, #12] + 8007c40: f9b4 200c ldrsh.w r2, [r4, #12] + 8007c44: f010 0301 ands.w r3, r0, #1 + 8007c48: d00a beq.n 8007c60 <__swsetup_r+0xbc> + 8007c4a: 2300 movs r3, #0 + 8007c4c: 60a3 str r3, [r4, #8] + 8007c4e: 6963 ldr r3, [r4, #20] + 8007c50: 425b negs r3, r3 + 8007c52: 61a3 str r3, [r4, #24] + 8007c54: 6923 ldr r3, [r4, #16] + 8007c56: b943 cbnz r3, 8007c6a <__swsetup_r+0xc6> + 8007c58: f010 0080 ands.w r0, r0, #128 ; 0x80 + 8007c5c: d1ba bne.n 8007bd4 <__swsetup_r+0x30> + 8007c5e: bd70 pop {r4, r5, r6, pc} + 8007c60: 0781 lsls r1, r0, #30 + 8007c62: bf58 it pl + 8007c64: 6963 ldrpl r3, [r4, #20] + 8007c66: 60a3 str r3, [r4, #8] + 8007c68: e7f4 b.n 8007c54 <__swsetup_r+0xb0> + 8007c6a: 2000 movs r0, #0 + 8007c6c: e7f7 b.n 8007c5e <__swsetup_r+0xba> + 8007c6e: bf00 nop + 8007c70: 2000000c .word 0x2000000c + 8007c74: 080091d4 .word 0x080091d4 + 8007c78: 080091f4 .word 0x080091f4 + 8007c7c: 080091b4 .word 0x080091b4 + +08007c80 : + 8007c80: 2006 movs r0, #6 + 8007c82: b508 push {r3, lr} + 8007c84: f000 fa50 bl 8008128 + 8007c88: 2001 movs r0, #1 + 8007c8a: f7f9 fccf bl 800162c <_exit> + ... + +08007c90 <__sflush_r>: + 8007c90: 898a ldrh r2, [r1, #12] + 8007c92: e92d 41f0 stmdb sp!, {r4, r5, r6, r7, r8, lr} + 8007c96: 4605 mov r5, r0 + 8007c98: 0710 lsls r0, r2, #28 + 8007c9a: 460c mov r4, r1 + 8007c9c: d458 bmi.n 8007d50 <__sflush_r+0xc0> + 8007c9e: 684b ldr r3, [r1, #4] + 8007ca0: 2b00 cmp r3, #0 + 8007ca2: dc05 bgt.n 8007cb0 <__sflush_r+0x20> + 8007ca4: 6c0b ldr r3, [r1, #64] ; 0x40 + 8007ca6: 2b00 cmp r3, #0 + 8007ca8: dc02 bgt.n 8007cb0 <__sflush_r+0x20> + 8007caa: 2000 movs r0, #0 + 8007cac: e8bd 81f0 ldmia.w sp!, {r4, r5, r6, r7, r8, pc} + 8007cb0: 6ae6 ldr r6, [r4, #44] ; 0x2c + 8007cb2: 2e00 cmp r6, #0 + 8007cb4: d0f9 beq.n 8007caa <__sflush_r+0x1a> + 8007cb6: 2300 movs r3, #0 + 8007cb8: f412 5280 ands.w r2, r2, #4096 ; 0x1000 + 8007cbc: 682f ldr r7, [r5, #0] + 8007cbe: 602b str r3, [r5, #0] + 8007cc0: d032 beq.n 8007d28 <__sflush_r+0x98> + 8007cc2: 6d60 ldr r0, [r4, #84] ; 0x54 + 8007cc4: 89a3 ldrh r3, [r4, #12] + 8007cc6: 075a lsls r2, r3, #29 + 8007cc8: d505 bpl.n 8007cd6 <__sflush_r+0x46> + 8007cca: 6863 ldr r3, [r4, #4] + 8007ccc: 1ac0 subs r0, r0, r3 + 8007cce: 6b63 ldr r3, [r4, #52] ; 0x34 + 8007cd0: b10b cbz r3, 8007cd6 <__sflush_r+0x46> + 8007cd2: 6c23 ldr r3, [r4, #64] ; 0x40 + 8007cd4: 1ac0 subs r0, r0, r3 + 8007cd6: 2300 movs r3, #0 + 8007cd8: 4602 mov r2, r0 + 8007cda: 6ae6 ldr r6, [r4, #44] ; 0x2c + 8007cdc: 4628 mov r0, r5 + 8007cde: 6a21 ldr r1, [r4, #32] + 8007ce0: 47b0 blx r6 + 8007ce2: 1c43 adds r3, r0, #1 + 8007ce4: 89a3 ldrh r3, [r4, #12] + 8007ce6: d106 bne.n 8007cf6 <__sflush_r+0x66> + 8007ce8: 6829 ldr r1, [r5, #0] + 8007cea: 291d cmp r1, #29 + 8007cec: d82c bhi.n 8007d48 <__sflush_r+0xb8> + 8007cee: 4a2a ldr r2, [pc, #168] ; (8007d98 <__sflush_r+0x108>) + 8007cf0: 40ca lsrs r2, r1 + 8007cf2: 07d6 lsls r6, r2, #31 + 8007cf4: d528 bpl.n 8007d48 <__sflush_r+0xb8> + 8007cf6: 2200 movs r2, #0 + 8007cf8: 6062 str r2, [r4, #4] + 8007cfa: 6922 ldr r2, [r4, #16] + 8007cfc: 04d9 lsls r1, r3, #19 + 8007cfe: 6022 str r2, [r4, #0] + 8007d00: d504 bpl.n 8007d0c <__sflush_r+0x7c> + 8007d02: 1c42 adds r2, r0, #1 + 8007d04: d101 bne.n 8007d0a <__sflush_r+0x7a> + 8007d06: 682b ldr r3, [r5, #0] + 8007d08: b903 cbnz r3, 8007d0c <__sflush_r+0x7c> + 8007d0a: 6560 str r0, [r4, #84] ; 0x54 + 8007d0c: 6b61 ldr r1, [r4, #52] ; 0x34 + 8007d0e: 602f str r7, [r5, #0] + 8007d10: 2900 cmp r1, #0 + 8007d12: d0ca beq.n 8007caa <__sflush_r+0x1a> + 8007d14: f104 0344 add.w r3, r4, #68 ; 0x44 + 8007d18: 4299 cmp r1, r3 + 8007d1a: d002 beq.n 8007d22 <__sflush_r+0x92> + 8007d1c: 4628 mov r0, r5 + 8007d1e: f7fd fc39 bl 8005594 <_free_r> + 8007d22: 2000 movs r0, #0 + 8007d24: 6360 str r0, [r4, #52] ; 0x34 + 8007d26: e7c1 b.n 8007cac <__sflush_r+0x1c> + 8007d28: 6a21 ldr r1, [r4, #32] + 8007d2a: 2301 movs r3, #1 + 8007d2c: 4628 mov r0, r5 + 8007d2e: 47b0 blx r6 + 8007d30: 1c41 adds r1, r0, #1 + 8007d32: d1c7 bne.n 8007cc4 <__sflush_r+0x34> + 8007d34: 682b ldr r3, [r5, #0] + 8007d36: 2b00 cmp r3, #0 + 8007d38: d0c4 beq.n 8007cc4 <__sflush_r+0x34> + 8007d3a: 2b1d cmp r3, #29 + 8007d3c: d001 beq.n 8007d42 <__sflush_r+0xb2> + 8007d3e: 2b16 cmp r3, #22 + 8007d40: d101 bne.n 8007d46 <__sflush_r+0xb6> + 8007d42: 602f str r7, [r5, #0] + 8007d44: e7b1 b.n 8007caa <__sflush_r+0x1a> + 8007d46: 89a3 ldrh r3, [r4, #12] + 8007d48: f043 0340 orr.w r3, r3, #64 ; 0x40 + 8007d4c: 81a3 strh r3, [r4, #12] + 8007d4e: e7ad b.n 8007cac <__sflush_r+0x1c> + 8007d50: 690f ldr r7, [r1, #16] + 8007d52: 2f00 cmp r7, #0 + 8007d54: d0a9 beq.n 8007caa <__sflush_r+0x1a> + 8007d56: 0793 lsls r3, r2, #30 + 8007d58: bf18 it ne + 8007d5a: 2300 movne r3, #0 + 8007d5c: 680e ldr r6, [r1, #0] + 8007d5e: bf08 it eq + 8007d60: 694b ldreq r3, [r1, #20] + 8007d62: eba6 0807 sub.w r8, r6, r7 + 8007d66: 600f str r7, [r1, #0] + 8007d68: 608b str r3, [r1, #8] + 8007d6a: f1b8 0f00 cmp.w r8, #0 + 8007d6e: dd9c ble.n 8007caa <__sflush_r+0x1a> + 8007d70: 4643 mov r3, r8 + 8007d72: 463a mov r2, r7 + 8007d74: 4628 mov r0, r5 + 8007d76: 6a21 ldr r1, [r4, #32] + 8007d78: 6aa6 ldr r6, [r4, #40] ; 0x28 + 8007d7a: 47b0 blx r6 + 8007d7c: 2800 cmp r0, #0 + 8007d7e: dc06 bgt.n 8007d8e <__sflush_r+0xfe> + 8007d80: 89a3 ldrh r3, [r4, #12] + 8007d82: f04f 30ff mov.w r0, #4294967295 ; 0xffffffff + 8007d86: f043 0340 orr.w r3, r3, #64 ; 0x40 + 8007d8a: 81a3 strh r3, [r4, #12] + 8007d8c: e78e b.n 8007cac <__sflush_r+0x1c> + 8007d8e: 4407 add r7, r0 + 8007d90: eba8 0800 sub.w r8, r8, r0 + 8007d94: e7e9 b.n 8007d6a <__sflush_r+0xda> + 8007d96: bf00 nop + 8007d98: 20400001 .word 0x20400001 + +08007d9c <_fflush_r>: + 8007d9c: b538 push {r3, r4, r5, lr} + 8007d9e: 690b ldr r3, [r1, #16] + 8007da0: 4605 mov r5, r0 + 8007da2: 460c mov r4, r1 + 8007da4: b913 cbnz r3, 8007dac <_fflush_r+0x10> + 8007da6: 2500 movs r5, #0 + 8007da8: 4628 mov r0, r5 + 8007daa: bd38 pop {r3, r4, r5, pc} + 8007dac: b118 cbz r0, 8007db6 <_fflush_r+0x1a> + 8007dae: 6983 ldr r3, [r0, #24] + 8007db0: b90b cbnz r3, 8007db6 <_fflush_r+0x1a> + 8007db2: f000 f887 bl 8007ec4 <__sinit> + 8007db6: 4b14 ldr r3, [pc, #80] ; (8007e08 <_fflush_r+0x6c>) + 8007db8: 429c cmp r4, r3 + 8007dba: d11b bne.n 8007df4 <_fflush_r+0x58> + 8007dbc: 686c ldr r4, [r5, #4] + 8007dbe: f9b4 300c ldrsh.w r3, [r4, #12] + 8007dc2: 2b00 cmp r3, #0 + 8007dc4: d0ef beq.n 8007da6 <_fflush_r+0xa> + 8007dc6: 6e62 ldr r2, [r4, #100] ; 0x64 + 8007dc8: 07d0 lsls r0, r2, #31 + 8007dca: d404 bmi.n 8007dd6 <_fflush_r+0x3a> + 8007dcc: 0599 lsls r1, r3, #22 + 8007dce: d402 bmi.n 8007dd6 <_fflush_r+0x3a> + 8007dd0: 6da0 ldr r0, [r4, #88] ; 0x58 + 8007dd2: f7ff fcdc bl 800778e <__retarget_lock_acquire_recursive> + 8007dd6: 4628 mov r0, r5 + 8007dd8: 4621 mov r1, r4 + 8007dda: f7ff ff59 bl 8007c90 <__sflush_r> + 8007dde: 6e63 ldr r3, [r4, #100] ; 0x64 + 8007de0: 4605 mov r5, r0 + 8007de2: 07da lsls r2, r3, #31 + 8007de4: d4e0 bmi.n 8007da8 <_fflush_r+0xc> + 8007de6: 89a3 ldrh r3, [r4, #12] + 8007de8: 059b lsls r3, r3, #22 + 8007dea: d4dd bmi.n 8007da8 <_fflush_r+0xc> + 8007dec: 6da0 ldr r0, [r4, #88] ; 0x58 + 8007dee: f7ff fccf bl 8007790 <__retarget_lock_release_recursive> + 8007df2: e7d9 b.n 8007da8 <_fflush_r+0xc> + 8007df4: 4b05 ldr r3, [pc, #20] ; (8007e0c <_fflush_r+0x70>) + 8007df6: 429c cmp r4, r3 + 8007df8: d101 bne.n 8007dfe <_fflush_r+0x62> + 8007dfa: 68ac ldr r4, [r5, #8] + 8007dfc: e7df b.n 8007dbe <_fflush_r+0x22> + 8007dfe: 4b04 ldr r3, [pc, #16] ; (8007e10 <_fflush_r+0x74>) + 8007e00: 429c cmp r4, r3 + 8007e02: bf08 it eq + 8007e04: 68ec ldreq r4, [r5, #12] + 8007e06: e7da b.n 8007dbe <_fflush_r+0x22> + 8007e08: 080091d4 .word 0x080091d4 + 8007e0c: 080091f4 .word 0x080091f4 + 8007e10: 080091b4 .word 0x080091b4 + +08007e14 : + 8007e14: 2300 movs r3, #0 + 8007e16: b510 push {r4, lr} + 8007e18: 4604 mov r4, r0 + 8007e1a: e9c0 3300 strd r3, r3, [r0] + 8007e1e: e9c0 3304 strd r3, r3, [r0, #16] + 8007e22: 6083 str r3, [r0, #8] + 8007e24: 8181 strh r1, [r0, #12] + 8007e26: 6643 str r3, [r0, #100] ; 0x64 + 8007e28: 81c2 strh r2, [r0, #14] + 8007e2a: 6183 str r3, [r0, #24] + 8007e2c: 4619 mov r1, r3 + 8007e2e: 2208 movs r2, #8 + 8007e30: 305c adds r0, #92 ; 0x5c + 8007e32: f7fd fba7 bl 8005584 + 8007e36: 4b05 ldr r3, [pc, #20] ; (8007e4c ) + 8007e38: 6224 str r4, [r4, #32] + 8007e3a: 6263 str r3, [r4, #36] ; 0x24 + 8007e3c: 4b04 ldr r3, [pc, #16] ; (8007e50 ) + 8007e3e: 62a3 str r3, [r4, #40] ; 0x28 + 8007e40: 4b04 ldr r3, [pc, #16] ; (8007e54 ) + 8007e42: 62e3 str r3, [r4, #44] ; 0x2c + 8007e44: 4b04 ldr r3, [pc, #16] ; (8007e58 ) + 8007e46: 6323 str r3, [r4, #48] ; 0x30 + 8007e48: bd10 pop {r4, pc} + 8007e4a: bf00 nop + 8007e4c: 08008161 .word 0x08008161 + 8007e50: 08008183 .word 0x08008183 + 8007e54: 080081bb .word 0x080081bb + 8007e58: 080081df .word 0x080081df + +08007e5c <_cleanup_r>: + 8007e5c: 4901 ldr r1, [pc, #4] ; (8007e64 <_cleanup_r+0x8>) + 8007e5e: f000 b8af b.w 8007fc0 <_fwalk_reent> + 8007e62: bf00 nop + 8007e64: 08007d9d .word 0x08007d9d + +08007e68 <__sfmoreglue>: + 8007e68: b570 push {r4, r5, r6, lr} + 8007e6a: 2568 movs r5, #104 ; 0x68 + 8007e6c: 1e4a subs r2, r1, #1 + 8007e6e: 4355 muls r5, r2 + 8007e70: 460e mov r6, r1 + 8007e72: f105 0174 add.w r1, r5, #116 ; 0x74 + 8007e76: f7fd fbd9 bl 800562c <_malloc_r> + 8007e7a: 4604 mov r4, r0 + 8007e7c: b140 cbz r0, 8007e90 <__sfmoreglue+0x28> + 8007e7e: 2100 movs r1, #0 + 8007e80: e9c0 1600 strd r1, r6, [r0] + 8007e84: 300c adds r0, #12 + 8007e86: 60a0 str r0, [r4, #8] + 8007e88: f105 0268 add.w r2, r5, #104 ; 0x68 + 8007e8c: f7fd fb7a bl 8005584 + 8007e90: 4620 mov r0, r4 + 8007e92: bd70 pop {r4, r5, r6, pc} + +08007e94 <__sfp_lock_acquire>: + 8007e94: 4801 ldr r0, [pc, #4] ; (8007e9c <__sfp_lock_acquire+0x8>) + 8007e96: f7ff bc7a b.w 800778e <__retarget_lock_acquire_recursive> + 8007e9a: bf00 nop + 8007e9c: 200002fc .word 0x200002fc + +08007ea0 <__sfp_lock_release>: + 8007ea0: 4801 ldr r0, [pc, #4] ; (8007ea8 <__sfp_lock_release+0x8>) + 8007ea2: f7ff bc75 b.w 8007790 <__retarget_lock_release_recursive> + 8007ea6: bf00 nop + 8007ea8: 200002fc .word 0x200002fc + +08007eac <__sinit_lock_acquire>: + 8007eac: 4801 ldr r0, [pc, #4] ; (8007eb4 <__sinit_lock_acquire+0x8>) + 8007eae: f7ff bc6e b.w 800778e <__retarget_lock_acquire_recursive> + 8007eb2: bf00 nop + 8007eb4: 200002f7 .word 0x200002f7 + +08007eb8 <__sinit_lock_release>: + 8007eb8: 4801 ldr r0, [pc, #4] ; (8007ec0 <__sinit_lock_release+0x8>) + 8007eba: f7ff bc69 b.w 8007790 <__retarget_lock_release_recursive> + 8007ebe: bf00 nop + 8007ec0: 200002f7 .word 0x200002f7 + +08007ec4 <__sinit>: + 8007ec4: b510 push {r4, lr} + 8007ec6: 4604 mov r4, r0 + 8007ec8: f7ff fff0 bl 8007eac <__sinit_lock_acquire> + 8007ecc: 69a3 ldr r3, [r4, #24] + 8007ece: b11b cbz r3, 8007ed8 <__sinit+0x14> + 8007ed0: e8bd 4010 ldmia.w sp!, {r4, lr} + 8007ed4: f7ff bff0 b.w 8007eb8 <__sinit_lock_release> + 8007ed8: e9c4 3312 strd r3, r3, [r4, #72] ; 0x48 + 8007edc: 6523 str r3, [r4, #80] ; 0x50 + 8007ede: 4b13 ldr r3, [pc, #76] ; (8007f2c <__sinit+0x68>) + 8007ee0: 4a13 ldr r2, [pc, #76] ; (8007f30 <__sinit+0x6c>) + 8007ee2: 681b ldr r3, [r3, #0] + 8007ee4: 62a2 str r2, [r4, #40] ; 0x28 + 8007ee6: 42a3 cmp r3, r4 + 8007ee8: bf08 it eq + 8007eea: 2301 moveq r3, #1 + 8007eec: 4620 mov r0, r4 + 8007eee: bf08 it eq + 8007ef0: 61a3 streq r3, [r4, #24] + 8007ef2: f000 f81f bl 8007f34 <__sfp> + 8007ef6: 6060 str r0, [r4, #4] + 8007ef8: 4620 mov r0, r4 + 8007efa: f000 f81b bl 8007f34 <__sfp> + 8007efe: 60a0 str r0, [r4, #8] + 8007f00: 4620 mov r0, r4 + 8007f02: f000 f817 bl 8007f34 <__sfp> + 8007f06: 2200 movs r2, #0 + 8007f08: 2104 movs r1, #4 + 8007f0a: 60e0 str r0, [r4, #12] + 8007f0c: 6860 ldr r0, [r4, #4] + 8007f0e: f7ff ff81 bl 8007e14 + 8007f12: 2201 movs r2, #1 + 8007f14: 2109 movs r1, #9 + 8007f16: 68a0 ldr r0, [r4, #8] + 8007f18: f7ff ff7c bl 8007e14 + 8007f1c: 2202 movs r2, #2 + 8007f1e: 2112 movs r1, #18 + 8007f20: 68e0 ldr r0, [r4, #12] + 8007f22: f7ff ff77 bl 8007e14 + 8007f26: 2301 movs r3, #1 + 8007f28: 61a3 str r3, [r4, #24] + 8007f2a: e7d1 b.n 8007ed0 <__sinit+0xc> + 8007f2c: 08008e34 .word 0x08008e34 + 8007f30: 08007e5d .word 0x08007e5d + +08007f34 <__sfp>: + 8007f34: b5f8 push {r3, r4, r5, r6, r7, lr} + 8007f36: 4607 mov r7, r0 + 8007f38: f7ff ffac bl 8007e94 <__sfp_lock_acquire> + 8007f3c: 4b1e ldr r3, [pc, #120] ; (8007fb8 <__sfp+0x84>) + 8007f3e: 681e ldr r6, [r3, #0] + 8007f40: 69b3 ldr r3, [r6, #24] + 8007f42: b913 cbnz r3, 8007f4a <__sfp+0x16> + 8007f44: 4630 mov r0, r6 + 8007f46: f7ff ffbd bl 8007ec4 <__sinit> + 8007f4a: 3648 adds r6, #72 ; 0x48 + 8007f4c: e9d6 3401 ldrd r3, r4, [r6, #4] + 8007f50: 3b01 subs r3, #1 + 8007f52: d503 bpl.n 8007f5c <__sfp+0x28> + 8007f54: 6833 ldr r3, [r6, #0] + 8007f56: b30b cbz r3, 8007f9c <__sfp+0x68> + 8007f58: 6836 ldr r6, [r6, #0] + 8007f5a: e7f7 b.n 8007f4c <__sfp+0x18> + 8007f5c: f9b4 500c ldrsh.w r5, [r4, #12] + 8007f60: b9d5 cbnz r5, 8007f98 <__sfp+0x64> + 8007f62: 4b16 ldr r3, [pc, #88] ; (8007fbc <__sfp+0x88>) + 8007f64: f104 0058 add.w r0, r4, #88 ; 0x58 + 8007f68: 60e3 str r3, [r4, #12] + 8007f6a: 6665 str r5, [r4, #100] ; 0x64 + 8007f6c: f7ff fc0e bl 800778c <__retarget_lock_init_recursive> + 8007f70: f7ff ff96 bl 8007ea0 <__sfp_lock_release> + 8007f74: 2208 movs r2, #8 + 8007f76: 4629 mov r1, r5 + 8007f78: e9c4 5501 strd r5, r5, [r4, #4] + 8007f7c: e9c4 5504 strd r5, r5, [r4, #16] + 8007f80: 6025 str r5, [r4, #0] + 8007f82: 61a5 str r5, [r4, #24] + 8007f84: f104 005c add.w r0, r4, #92 ; 0x5c + 8007f88: f7fd fafc bl 8005584 + 8007f8c: e9c4 550d strd r5, r5, [r4, #52] ; 0x34 + 8007f90: e9c4 5512 strd r5, r5, [r4, #72] ; 0x48 + 8007f94: 4620 mov r0, r4 + 8007f96: bdf8 pop {r3, r4, r5, r6, r7, pc} + 8007f98: 3468 adds r4, #104 ; 0x68 + 8007f9a: e7d9 b.n 8007f50 <__sfp+0x1c> + 8007f9c: 2104 movs r1, #4 + 8007f9e: 4638 mov r0, r7 + 8007fa0: f7ff ff62 bl 8007e68 <__sfmoreglue> + 8007fa4: 4604 mov r4, r0 + 8007fa6: 6030 str r0, [r6, #0] + 8007fa8: 2800 cmp r0, #0 + 8007faa: d1d5 bne.n 8007f58 <__sfp+0x24> + 8007fac: f7ff ff78 bl 8007ea0 <__sfp_lock_release> + 8007fb0: 230c movs r3, #12 + 8007fb2: 603b str r3, [r7, #0] + 8007fb4: e7ee b.n 8007f94 <__sfp+0x60> + 8007fb6: bf00 nop + 8007fb8: 08008e34 .word 0x08008e34 + 8007fbc: ffff0001 .word 0xffff0001 + +08007fc0 <_fwalk_reent>: + 8007fc0: e92d 43f8 stmdb sp!, {r3, r4, r5, r6, r7, r8, r9, lr} + 8007fc4: 4606 mov r6, r0 + 8007fc6: 4688 mov r8, r1 + 8007fc8: 2700 movs r7, #0 + 8007fca: f100 0448 add.w r4, r0, #72 ; 0x48 + 8007fce: e9d4 9501 ldrd r9, r5, [r4, #4] + 8007fd2: f1b9 0901 subs.w r9, r9, #1 + 8007fd6: d505 bpl.n 8007fe4 <_fwalk_reent+0x24> + 8007fd8: 6824 ldr r4, [r4, #0] + 8007fda: 2c00 cmp r4, #0 + 8007fdc: d1f7 bne.n 8007fce <_fwalk_reent+0xe> + 8007fde: 4638 mov r0, r7 + 8007fe0: e8bd 83f8 ldmia.w sp!, {r3, r4, r5, r6, r7, r8, r9, pc} + 8007fe4: 89ab ldrh r3, [r5, #12] + 8007fe6: 2b01 cmp r3, #1 + 8007fe8: d907 bls.n 8007ffa <_fwalk_reent+0x3a> + 8007fea: f9b5 300e ldrsh.w r3, [r5, #14] + 8007fee: 3301 adds r3, #1 + 8007ff0: d003 beq.n 8007ffa <_fwalk_reent+0x3a> + 8007ff2: 4629 mov r1, r5 + 8007ff4: 4630 mov r0, r6 + 8007ff6: 47c0 blx r8 + 8007ff8: 4307 orrs r7, r0 + 8007ffa: 3568 adds r5, #104 ; 0x68 + 8007ffc: e7e9 b.n 8007fd2 <_fwalk_reent+0x12> + +08007ffe <__swhatbuf_r>: + 8007ffe: b570 push {r4, r5, r6, lr} + 8008000: 460e mov r6, r1 + 8008002: f9b1 100e ldrsh.w r1, [r1, #14] + 8008006: 4614 mov r4, r2 + 8008008: 2900 cmp r1, #0 + 800800a: 461d mov r5, r3 + 800800c: b096 sub sp, #88 ; 0x58 + 800800e: da07 bge.n 8008020 <__swhatbuf_r+0x22> + 8008010: 2300 movs r3, #0 + 8008012: 602b str r3, [r5, #0] + 8008014: 89b3 ldrh r3, [r6, #12] + 8008016: 061a lsls r2, r3, #24 + 8008018: d410 bmi.n 800803c <__swhatbuf_r+0x3e> + 800801a: f44f 6380 mov.w r3, #1024 ; 0x400 + 800801e: e00e b.n 800803e <__swhatbuf_r+0x40> + 8008020: 466a mov r2, sp + 8008022: f000 f903 bl 800822c <_fstat_r> + 8008026: 2800 cmp r0, #0 + 8008028: dbf2 blt.n 8008010 <__swhatbuf_r+0x12> + 800802a: 9a01 ldr r2, [sp, #4] + 800802c: f402 4270 and.w r2, r2, #61440 ; 0xf000 + 8008030: f5a2 5300 sub.w r3, r2, #8192 ; 0x2000 + 8008034: 425a negs r2, r3 + 8008036: 415a adcs r2, r3 + 8008038: 602a str r2, [r5, #0] + 800803a: e7ee b.n 800801a <__swhatbuf_r+0x1c> + 800803c: 2340 movs r3, #64 ; 0x40 + 800803e: 2000 movs r0, #0 + 8008040: 6023 str r3, [r4, #0] + 8008042: b016 add sp, #88 ; 0x58 + 8008044: bd70 pop {r4, r5, r6, pc} + ... + +08008048 <__smakebuf_r>: + 8008048: 898b ldrh r3, [r1, #12] + 800804a: b573 push {r0, r1, r4, r5, r6, lr} + 800804c: 079d lsls r5, r3, #30 + 800804e: 4606 mov r6, r0 + 8008050: 460c mov r4, r1 + 8008052: d507 bpl.n 8008064 <__smakebuf_r+0x1c> + 8008054: f104 0347 add.w r3, r4, #71 ; 0x47 + 8008058: 6023 str r3, [r4, #0] + 800805a: 6123 str r3, [r4, #16] + 800805c: 2301 movs r3, #1 + 800805e: 6163 str r3, [r4, #20] + 8008060: b002 add sp, #8 + 8008062: bd70 pop {r4, r5, r6, pc} + 8008064: 466a mov r2, sp + 8008066: ab01 add r3, sp, #4 + 8008068: f7ff ffc9 bl 8007ffe <__swhatbuf_r> + 800806c: 9900 ldr r1, [sp, #0] + 800806e: 4605 mov r5, r0 + 8008070: 4630 mov r0, r6 + 8008072: f7fd fadb bl 800562c <_malloc_r> + 8008076: b948 cbnz r0, 800808c <__smakebuf_r+0x44> + 8008078: f9b4 300c ldrsh.w r3, [r4, #12] + 800807c: 059a lsls r2, r3, #22 + 800807e: d4ef bmi.n 8008060 <__smakebuf_r+0x18> + 8008080: f023 0303 bic.w r3, r3, #3 + 8008084: f043 0302 orr.w r3, r3, #2 + 8008088: 81a3 strh r3, [r4, #12] + 800808a: e7e3 b.n 8008054 <__smakebuf_r+0xc> + 800808c: 4b0d ldr r3, [pc, #52] ; (80080c4 <__smakebuf_r+0x7c>) + 800808e: 62b3 str r3, [r6, #40] ; 0x28 + 8008090: 89a3 ldrh r3, [r4, #12] + 8008092: 6020 str r0, [r4, #0] + 8008094: f043 0380 orr.w r3, r3, #128 ; 0x80 + 8008098: 81a3 strh r3, [r4, #12] + 800809a: 9b00 ldr r3, [sp, #0] + 800809c: 6120 str r0, [r4, #16] + 800809e: 6163 str r3, [r4, #20] + 80080a0: 9b01 ldr r3, [sp, #4] + 80080a2: b15b cbz r3, 80080bc <__smakebuf_r+0x74> + 80080a4: 4630 mov r0, r6 + 80080a6: f9b4 100e ldrsh.w r1, [r4, #14] + 80080aa: f000 f8d1 bl 8008250 <_isatty_r> + 80080ae: b128 cbz r0, 80080bc <__smakebuf_r+0x74> + 80080b0: 89a3 ldrh r3, [r4, #12] + 80080b2: f023 0303 bic.w r3, r3, #3 + 80080b6: f043 0301 orr.w r3, r3, #1 + 80080ba: 81a3 strh r3, [r4, #12] + 80080bc: 89a0 ldrh r0, [r4, #12] + 80080be: 4305 orrs r5, r0 + 80080c0: 81a5 strh r5, [r4, #12] + 80080c2: e7cd b.n 8008060 <__smakebuf_r+0x18> + 80080c4: 08007e5d .word 0x08007e5d + +080080c8 <_malloc_usable_size_r>: + 80080c8: f851 3c04 ldr.w r3, [r1, #-4] + 80080cc: 1f18 subs r0, r3, #4 + 80080ce: 2b00 cmp r3, #0 + 80080d0: bfbc itt lt + 80080d2: 580b ldrlt r3, [r1, r0] + 80080d4: 18c0 addlt r0, r0, r3 + 80080d6: 4770 bx lr + +080080d8 <_raise_r>: + 80080d8: 291f cmp r1, #31 + 80080da: b538 push {r3, r4, r5, lr} + 80080dc: 4604 mov r4, r0 + 80080de: 460d mov r5, r1 + 80080e0: d904 bls.n 80080ec <_raise_r+0x14> + 80080e2: 2316 movs r3, #22 + 80080e4: 6003 str r3, [r0, #0] + 80080e6: f04f 30ff mov.w r0, #4294967295 ; 0xffffffff + 80080ea: bd38 pop {r3, r4, r5, pc} + 80080ec: 6c42 ldr r2, [r0, #68] ; 0x44 + 80080ee: b112 cbz r2, 80080f6 <_raise_r+0x1e> + 80080f0: f852 3021 ldr.w r3, [r2, r1, lsl #2] + 80080f4: b94b cbnz r3, 800810a <_raise_r+0x32> + 80080f6: 4620 mov r0, r4 + 80080f8: f000 f830 bl 800815c <_getpid_r> + 80080fc: 462a mov r2, r5 + 80080fe: 4601 mov r1, r0 + 8008100: 4620 mov r0, r4 + 8008102: e8bd 4038 ldmia.w sp!, {r3, r4, r5, lr} + 8008106: f000 b817 b.w 8008138 <_kill_r> + 800810a: 2b01 cmp r3, #1 + 800810c: d00a beq.n 8008124 <_raise_r+0x4c> + 800810e: 1c59 adds r1, r3, #1 + 8008110: d103 bne.n 800811a <_raise_r+0x42> + 8008112: 2316 movs r3, #22 + 8008114: 6003 str r3, [r0, #0] + 8008116: 2001 movs r0, #1 + 8008118: e7e7 b.n 80080ea <_raise_r+0x12> + 800811a: 2400 movs r4, #0 + 800811c: 4628 mov r0, r5 + 800811e: f842 4025 str.w r4, [r2, r5, lsl #2] + 8008122: 4798 blx r3 + 8008124: 2000 movs r0, #0 + 8008126: e7e0 b.n 80080ea <_raise_r+0x12> + +08008128 : + 8008128: 4b02 ldr r3, [pc, #8] ; (8008134 ) + 800812a: 4601 mov r1, r0 + 800812c: 6818 ldr r0, [r3, #0] + 800812e: f7ff bfd3 b.w 80080d8 <_raise_r> + 8008132: bf00 nop + 8008134: 2000000c .word 0x2000000c + +08008138 <_kill_r>: + 8008138: b538 push {r3, r4, r5, lr} + 800813a: 2300 movs r3, #0 + 800813c: 4d06 ldr r5, [pc, #24] ; (8008158 <_kill_r+0x20>) + 800813e: 4604 mov r4, r0 + 8008140: 4608 mov r0, r1 + 8008142: 4611 mov r1, r2 + 8008144: 602b str r3, [r5, #0] + 8008146: f7f9 fa61 bl 800160c <_kill> + 800814a: 1c43 adds r3, r0, #1 + 800814c: d102 bne.n 8008154 <_kill_r+0x1c> + 800814e: 682b ldr r3, [r5, #0] + 8008150: b103 cbz r3, 8008154 <_kill_r+0x1c> + 8008152: 6023 str r3, [r4, #0] + 8008154: bd38 pop {r3, r4, r5, pc} + 8008156: bf00 nop + 8008158: 200002f0 .word 0x200002f0 + +0800815c <_getpid_r>: + 800815c: f7f9 ba4f b.w 80015fe <_getpid> + +08008160 <__sread>: + 8008160: b510 push {r4, lr} + 8008162: 460c mov r4, r1 + 8008164: f9b1 100e ldrsh.w r1, [r1, #14] + 8008168: f000 f894 bl 8008294 <_read_r> + 800816c: 2800 cmp r0, #0 + 800816e: bfab itete ge + 8008170: 6d63 ldrge r3, [r4, #84] ; 0x54 + 8008172: 89a3 ldrhlt r3, [r4, #12] + 8008174: 181b addge r3, r3, r0 + 8008176: f423 5380 biclt.w r3, r3, #4096 ; 0x1000 + 800817a: bfac ite ge + 800817c: 6563 strge r3, [r4, #84] ; 0x54 + 800817e: 81a3 strhlt r3, [r4, #12] + 8008180: bd10 pop {r4, pc} + +08008182 <__swrite>: + 8008182: e92d 41f0 stmdb sp!, {r4, r5, r6, r7, r8, lr} + 8008186: 461f mov r7, r3 + 8008188: 898b ldrh r3, [r1, #12] + 800818a: 4605 mov r5, r0 + 800818c: 05db lsls r3, r3, #23 + 800818e: 460c mov r4, r1 + 8008190: 4616 mov r6, r2 + 8008192: d505 bpl.n 80081a0 <__swrite+0x1e> + 8008194: 2302 movs r3, #2 + 8008196: 2200 movs r2, #0 + 8008198: f9b1 100e ldrsh.w r1, [r1, #14] + 800819c: f000 f868 bl 8008270 <_lseek_r> + 80081a0: 89a3 ldrh r3, [r4, #12] + 80081a2: 4632 mov r2, r6 + 80081a4: f423 5380 bic.w r3, r3, #4096 ; 0x1000 + 80081a8: 81a3 strh r3, [r4, #12] + 80081aa: 4628 mov r0, r5 + 80081ac: 463b mov r3, r7 + 80081ae: f9b4 100e ldrsh.w r1, [r4, #14] + 80081b2: e8bd 41f0 ldmia.w sp!, {r4, r5, r6, r7, r8, lr} + 80081b6: f000 b817 b.w 80081e8 <_write_r> + +080081ba <__sseek>: + 80081ba: b510 push {r4, lr} + 80081bc: 460c mov r4, r1 + 80081be: f9b1 100e ldrsh.w r1, [r1, #14] + 80081c2: f000 f855 bl 8008270 <_lseek_r> + 80081c6: 1c43 adds r3, r0, #1 + 80081c8: 89a3 ldrh r3, [r4, #12] + 80081ca: bf15 itete ne + 80081cc: 6560 strne r0, [r4, #84] ; 0x54 + 80081ce: f423 5380 biceq.w r3, r3, #4096 ; 0x1000 + 80081d2: f443 5380 orrne.w r3, r3, #4096 ; 0x1000 + 80081d6: 81a3 strheq r3, [r4, #12] + 80081d8: bf18 it ne + 80081da: 81a3 strhne r3, [r4, #12] + 80081dc: bd10 pop {r4, pc} + +080081de <__sclose>: + 80081de: f9b1 100e ldrsh.w r1, [r1, #14] + 80081e2: f000 b813 b.w 800820c <_close_r> + ... + +080081e8 <_write_r>: + 80081e8: b538 push {r3, r4, r5, lr} + 80081ea: 4604 mov r4, r0 + 80081ec: 4608 mov r0, r1 + 80081ee: 4611 mov r1, r2 + 80081f0: 2200 movs r2, #0 + 80081f2: 4d05 ldr r5, [pc, #20] ; (8008208 <_write_r+0x20>) + 80081f4: 602a str r2, [r5, #0] + 80081f6: 461a mov r2, r3 + 80081f8: f7f9 fa3f bl 800167a <_write> + 80081fc: 1c43 adds r3, r0, #1 + 80081fe: d102 bne.n 8008206 <_write_r+0x1e> + 8008200: 682b ldr r3, [r5, #0] + 8008202: b103 cbz r3, 8008206 <_write_r+0x1e> + 8008204: 6023 str r3, [r4, #0] + 8008206: bd38 pop {r3, r4, r5, pc} + 8008208: 200002f0 .word 0x200002f0 + +0800820c <_close_r>: + 800820c: b538 push {r3, r4, r5, lr} + 800820e: 2300 movs r3, #0 + 8008210: 4d05 ldr r5, [pc, #20] ; (8008228 <_close_r+0x1c>) + 8008212: 4604 mov r4, r0 + 8008214: 4608 mov r0, r1 + 8008216: 602b str r3, [r5, #0] + 8008218: f7f9 fa4b bl 80016b2 <_close> + 800821c: 1c43 adds r3, r0, #1 + 800821e: d102 bne.n 8008226 <_close_r+0x1a> + 8008220: 682b ldr r3, [r5, #0] + 8008222: b103 cbz r3, 8008226 <_close_r+0x1a> + 8008224: 6023 str r3, [r4, #0] + 8008226: bd38 pop {r3, r4, r5, pc} + 8008228: 200002f0 .word 0x200002f0 + +0800822c <_fstat_r>: + 800822c: b538 push {r3, r4, r5, lr} + 800822e: 2300 movs r3, #0 + 8008230: 4d06 ldr r5, [pc, #24] ; (800824c <_fstat_r+0x20>) + 8008232: 4604 mov r4, r0 + 8008234: 4608 mov r0, r1 + 8008236: 4611 mov r1, r2 + 8008238: 602b str r3, [r5, #0] + 800823a: f7f9 fa45 bl 80016c8 <_fstat> + 800823e: 1c43 adds r3, r0, #1 + 8008240: d102 bne.n 8008248 <_fstat_r+0x1c> + 8008242: 682b ldr r3, [r5, #0] + 8008244: b103 cbz r3, 8008248 <_fstat_r+0x1c> + 8008246: 6023 str r3, [r4, #0] + 8008248: bd38 pop {r3, r4, r5, pc} + 800824a: bf00 nop + 800824c: 200002f0 .word 0x200002f0 + +08008250 <_isatty_r>: + 8008250: b538 push {r3, r4, r5, lr} + 8008252: 2300 movs r3, #0 + 8008254: 4d05 ldr r5, [pc, #20] ; (800826c <_isatty_r+0x1c>) + 8008256: 4604 mov r4, r0 + 8008258: 4608 mov r0, r1 + 800825a: 602b str r3, [r5, #0] + 800825c: f7f9 fa43 bl 80016e6 <_isatty> + 8008260: 1c43 adds r3, r0, #1 + 8008262: d102 bne.n 800826a <_isatty_r+0x1a> + 8008264: 682b ldr r3, [r5, #0] + 8008266: b103 cbz r3, 800826a <_isatty_r+0x1a> + 8008268: 6023 str r3, [r4, #0] + 800826a: bd38 pop {r3, r4, r5, pc} + 800826c: 200002f0 .word 0x200002f0 + +08008270 <_lseek_r>: + 8008270: b538 push {r3, r4, r5, lr} + 8008272: 4604 mov r4, r0 + 8008274: 4608 mov r0, r1 + 8008276: 4611 mov r1, r2 + 8008278: 2200 movs r2, #0 + 800827a: 4d05 ldr r5, [pc, #20] ; (8008290 <_lseek_r+0x20>) + 800827c: 602a str r2, [r5, #0] + 800827e: 461a mov r2, r3 + 8008280: f7f9 fa3b bl 80016fa <_lseek> + 8008284: 1c43 adds r3, r0, #1 + 8008286: d102 bne.n 800828e <_lseek_r+0x1e> + 8008288: 682b ldr r3, [r5, #0] + 800828a: b103 cbz r3, 800828e <_lseek_r+0x1e> + 800828c: 6023 str r3, [r4, #0] + 800828e: bd38 pop {r3, r4, r5, pc} + 8008290: 200002f0 .word 0x200002f0 + +08008294 <_read_r>: + 8008294: b538 push {r3, r4, r5, lr} + 8008296: 4604 mov r4, r0 + 8008298: 4608 mov r0, r1 + 800829a: 4611 mov r1, r2 + 800829c: 2200 movs r2, #0 + 800829e: 4d05 ldr r5, [pc, #20] ; (80082b4 <_read_r+0x20>) + 80082a0: 602a str r2, [r5, #0] + 80082a2: 461a mov r2, r3 + 80082a4: f7f9 f9cc bl 8001640 <_read> + 80082a8: 1c43 adds r3, r0, #1 + 80082aa: d102 bne.n 80082b2 <_read_r+0x1e> + 80082ac: 682b ldr r3, [r5, #0] + 80082ae: b103 cbz r3, 80082b2 <_read_r+0x1e> + 80082b0: 6023 str r3, [r4, #0] + 80082b2: bd38 pop {r3, r4, r5, pc} + 80082b4: 200002f0 .word 0x200002f0 + +080082b8 <_init>: + 80082b8: b5f8 push {r3, r4, r5, r6, r7, lr} + 80082ba: bf00 nop + 80082bc: bcf8 pop {r3, r4, r5, r6, r7} + 80082be: bc08 pop {r3} + 80082c0: 469e mov lr, r3 + 80082c2: 4770 bx lr + +080082c4 <_fini>: + 80082c4: b5f8 push {r3, r4, r5, r6, r7, lr} + 80082c6: bf00 nop + 80082c8: bcf8 pop {r3, r4, r5, r6, r7} + 80082ca: bc08 pop {r3} + 80082cc: 469e mov lr, r3 + 80082ce: 4770 bx lr diff --git a/Debug/m3s.map b/Debug/m3s.map index 335de3a..dd4b07f 100644 --- a/Debug/m3s.map +++ b/Debug/m3s.map @@ -9,7 +9,7 @@ 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/v7-m/nofp/libc_nano.a(lib_a-init.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/../../../../arm-none-eabi/lib/thumb/v7-m/nofp/crt0.o (__libc_init_array) /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/v7-m/nofp/libc_nano.a(lib_a-malloc.o) - ./SW_APPs/windows.o (malloc) + ./HW_Devices/eeprom.o (malloc) /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/v7-m/nofp/libc_nano.a(lib_a-memset.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/../../../../arm-none-eabi/lib/thumb/v7-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/v7-m/nofp/libc_nano.a(lib_a-nano-freer.o) @@ -133,6 +133,7 @@ __lock___arc4random_mutex 0x1 /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/v7-m/nofp/libc_nano.a(lib_a-lock.o) errno 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/../../../../arm-none-eabi/lib/thumb/v7-m/nofp/libc_nano.a(lib_a-reent.o) tconfig 0x18 ./HW_Devices/touch.o +hi2c2 0x54 ./Core/Src/main.o uwTick 0x4 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.o pFlash 0x20 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.o __lock___env_recursive_mutex @@ -142,6 +143,8 @@ __lock___sinit_recursive_mutex hsram1 0x48 ./Core/Src/main.o __lock___malloc_recursive_mutex 0x1 /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/v7-m/nofp/libc_nano.a(lib_a-lock.o) +eeprom_write_buffer + 0x14 ./HW_Devices/eeprom.o lcddev 0xa ./HW_Devices/LCD.o t0 0x10 ./HW_Devices/touch.o __lock___at_quick_exit_mutex @@ -201,6 +204,7 @@ Discarded input sections .group 0x0000000000000000 0xc ./Core/Src/main.o .group 0x0000000000000000 0xc ./Core/Src/main.o .group 0x0000000000000000 0xc ./Core/Src/main.o + .group 0x0000000000000000 0xc ./Core/Src/main.o .text 0x0000000000000000 0x0 ./Core/Src/main.o .data 0x0000000000000000 0x0 ./Core/Src/main.o .bss 0x0000000000000000 0x0 ./Core/Src/main.o @@ -240,9 +244,12 @@ Discarded input sections .group 0x0000000000000000 0xc ./Core/Src/stm32f1xx_hal_msp.o .group 0x0000000000000000 0xc ./Core/Src/stm32f1xx_hal_msp.o .group 0x0000000000000000 0xc ./Core/Src/stm32f1xx_hal_msp.o + .group 0x0000000000000000 0xc ./Core/Src/stm32f1xx_hal_msp.o .text 0x0000000000000000 0x0 ./Core/Src/stm32f1xx_hal_msp.o .data 0x0000000000000000 0x0 ./Core/Src/stm32f1xx_hal_msp.o .bss 0x0000000000000000 0x0 ./Core/Src/stm32f1xx_hal_msp.o + .text.HAL_I2C_MspDeInit + 0x0000000000000000 0x48 ./Core/Src/stm32f1xx_hal_msp.o .bss.FSMC_DeInitialized 0x0000000000000000 0x4 ./Core/Src/stm32f1xx_hal_msp.o .text.HAL_FSMC_MspDeInit @@ -250,7 +257,7 @@ Discarded input sections .text.HAL_SRAM_MspDeInit 0x0000000000000000 0x14 ./Core/Src/stm32f1xx_hal_msp.o .debug_macro 0x0000000000000000 0xa9c ./Core/Src/stm32f1xx_hal_msp.o - .debug_macro 0x0000000000000000 0x215 ./Core/Src/stm32f1xx_hal_msp.o + .debug_macro 0x0000000000000000 0x21b ./Core/Src/stm32f1xx_hal_msp.o .debug_macro 0x0000000000000000 0x2e ./Core/Src/stm32f1xx_hal_msp.o .debug_macro 0x0000000000000000 0x22 ./Core/Src/stm32f1xx_hal_msp.o .debug_macro 0x0000000000000000 0x22 ./Core/Src/stm32f1xx_hal_msp.o @@ -282,6 +289,7 @@ Discarded input sections .debug_macro 0x0000000000000000 0x88 ./Core/Src/stm32f1xx_hal_msp.o .debug_macro 0x0000000000000000 0x24f ./Core/Src/stm32f1xx_hal_msp.o .debug_macro 0x0000000000000000 0x356 ./Core/Src/stm32f1xx_hal_msp.o + .debug_macro 0x0000000000000000 0x287 ./Core/Src/stm32f1xx_hal_msp.o .debug_macro 0x0000000000000000 0x141 ./Core/Src/stm32f1xx_hal_msp.o .debug_macro 0x0000000000000000 0xb5 ./Core/Src/stm32f1xx_hal_msp.o .debug_macro 0x0000000000000000 0x4c ./Core/Src/stm32f1xx_hal_msp.o @@ -321,11 +329,12 @@ Discarded input sections .group 0x0000000000000000 0xc ./Core/Src/stm32f1xx_it.o .group 0x0000000000000000 0xc ./Core/Src/stm32f1xx_it.o .group 0x0000000000000000 0xc ./Core/Src/stm32f1xx_it.o + .group 0x0000000000000000 0xc ./Core/Src/stm32f1xx_it.o .text 0x0000000000000000 0x0 ./Core/Src/stm32f1xx_it.o .data 0x0000000000000000 0x0 ./Core/Src/stm32f1xx_it.o .bss 0x0000000000000000 0x0 ./Core/Src/stm32f1xx_it.o .debug_macro 0x0000000000000000 0xa9c ./Core/Src/stm32f1xx_it.o - .debug_macro 0x0000000000000000 0x215 ./Core/Src/stm32f1xx_it.o + .debug_macro 0x0000000000000000 0x21b ./Core/Src/stm32f1xx_it.o .debug_macro 0x0000000000000000 0x2e ./Core/Src/stm32f1xx_it.o .debug_macro 0x0000000000000000 0x22 ./Core/Src/stm32f1xx_it.o .debug_macro 0x0000000000000000 0x22 ./Core/Src/stm32f1xx_it.o @@ -357,6 +366,7 @@ Discarded input sections .debug_macro 0x0000000000000000 0x88 ./Core/Src/stm32f1xx_it.o .debug_macro 0x0000000000000000 0x24f ./Core/Src/stm32f1xx_it.o .debug_macro 0x0000000000000000 0x356 ./Core/Src/stm32f1xx_it.o + .debug_macro 0x0000000000000000 0x287 ./Core/Src/stm32f1xx_it.o .debug_macro 0x0000000000000000 0x141 ./Core/Src/stm32f1xx_it.o .debug_macro 0x0000000000000000 0xb5 ./Core/Src/stm32f1xx_it.o .debug_macro 0x0000000000000000 0x4c ./Core/Src/stm32f1xx_it.o @@ -507,11 +517,10 @@ Discarded input sections .group 0x0000000000000000 0xc ./Core/Src/system_stm32f1xx.o .group 0x0000000000000000 0xc ./Core/Src/system_stm32f1xx.o .group 0x0000000000000000 0xc ./Core/Src/system_stm32f1xx.o + .group 0x0000000000000000 0xc ./Core/Src/system_stm32f1xx.o .text 0x0000000000000000 0x0 ./Core/Src/system_stm32f1xx.o .data 0x0000000000000000 0x0 ./Core/Src/system_stm32f1xx.o .bss 0x0000000000000000 0x0 ./Core/Src/system_stm32f1xx.o - .rodata.APBPrescTable - 0x0000000000000000 0x8 ./Core/Src/system_stm32f1xx.o .text.SystemCoreClockUpdate 0x0000000000000000 0xe4 ./Core/Src/system_stm32f1xx.o .debug_macro 0x0000000000000000 0xa9c ./Core/Src/system_stm32f1xx.o @@ -529,7 +538,7 @@ Discarded input sections .debug_macro 0x0000000000000000 0xd23 ./Core/Src/system_stm32f1xx.o .debug_macro 0x0000000000000000 0xfd8c ./Core/Src/system_stm32f1xx.o .debug_macro 0x0000000000000000 0x6d ./Core/Src/system_stm32f1xx.o - .debug_macro 0x0000000000000000 0x215 ./Core/Src/system_stm32f1xx.o + .debug_macro 0x0000000000000000 0x21b ./Core/Src/system_stm32f1xx.o .debug_macro 0x0000000000000000 0x3468 ./Core/Src/system_stm32f1xx.o .debug_macro 0x0000000000000000 0x174 ./Core/Src/system_stm32f1xx.o .debug_macro 0x0000000000000000 0x5c ./Core/Src/system_stm32f1xx.o @@ -547,6 +556,7 @@ Discarded input sections .debug_macro 0x0000000000000000 0x88 ./Core/Src/system_stm32f1xx.o .debug_macro 0x0000000000000000 0x24f ./Core/Src/system_stm32f1xx.o .debug_macro 0x0000000000000000 0x356 ./Core/Src/system_stm32f1xx.o + .debug_macro 0x0000000000000000 0x287 ./Core/Src/system_stm32f1xx.o .debug_macro 0x0000000000000000 0x141 ./Core/Src/system_stm32f1xx.o .debug_macro 0x0000000000000000 0xb5 ./Core/Src/system_stm32f1xx.o .text 0x0000000000000000 0x14 ./Core/Startup/startup_stm32f103zetx.o @@ -587,6 +597,7 @@ Discarded input sections .group 0x0000000000000000 0xc ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.o .group 0x0000000000000000 0xc ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.o .group 0x0000000000000000 0xc ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.o + .group 0x0000000000000000 0xc ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.o .text 0x0000000000000000 0x0 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.o .data 0x0000000000000000 0x0 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.o .bss 0x0000000000000000 0x0 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.o @@ -631,7 +642,7 @@ Discarded input sections .text.HAL_DBGMCU_DisableDBGStandbyMode 0x0000000000000000 0x1c ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.o .debug_macro 0x0000000000000000 0xa9c ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.o - .debug_macro 0x0000000000000000 0x215 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.o + .debug_macro 0x0000000000000000 0x21b ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.o .debug_macro 0x0000000000000000 0x2e ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.o .debug_macro 0x0000000000000000 0x22 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.o .debug_macro 0x0000000000000000 0x22 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.o @@ -663,6 +674,7 @@ Discarded input sections .debug_macro 0x0000000000000000 0x88 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.o .debug_macro 0x0000000000000000 0x24f ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.o .debug_macro 0x0000000000000000 0x356 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.o + .debug_macro 0x0000000000000000 0x287 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.o .debug_macro 0x0000000000000000 0x141 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.o .debug_macro 0x0000000000000000 0xb5 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.o .group 0x0000000000000000 0xc ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.o @@ -700,6 +712,7 @@ Discarded input sections .group 0x0000000000000000 0xc ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.o .group 0x0000000000000000 0xc ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.o .group 0x0000000000000000 0xc ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.o + .group 0x0000000000000000 0xc ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.o .text 0x0000000000000000 0x0 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.o .data 0x0000000000000000 0x0 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.o .bss 0x0000000000000000 0x0 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.o @@ -746,7 +759,7 @@ Discarded input sections .text.HAL_SYSTICK_Callback 0x0000000000000000 0xc ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.o .debug_macro 0x0000000000000000 0xa9c ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.o - .debug_macro 0x0000000000000000 0x215 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.o + .debug_macro 0x0000000000000000 0x21b ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.o .debug_macro 0x0000000000000000 0x2e ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.o .debug_macro 0x0000000000000000 0x22 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.o .debug_macro 0x0000000000000000 0x22 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.o @@ -778,6 +791,7 @@ Discarded input sections .debug_macro 0x0000000000000000 0x88 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.o .debug_macro 0x0000000000000000 0x24f ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.o .debug_macro 0x0000000000000000 0x356 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.o + .debug_macro 0x0000000000000000 0x287 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.o .debug_macro 0x0000000000000000 0x141 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.o .debug_macro 0x0000000000000000 0xb5 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.o .group 0x0000000000000000 0xc ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_dma.o @@ -815,6 +829,7 @@ Discarded input sections .group 0x0000000000000000 0xc ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_dma.o .group 0x0000000000000000 0xc ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_dma.o .group 0x0000000000000000 0xc ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_dma.o + .group 0x0000000000000000 0xc ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_dma.o .text 0x0000000000000000 0x0 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_dma.o .data 0x0000000000000000 0x0 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_dma.o .bss 0x0000000000000000 0x0 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_dma.o @@ -849,9 +864,9 @@ Discarded input sections .debug_aranges 0x0000000000000000 0x80 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_dma.o .debug_ranges 0x0000000000000000 0x70 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_dma.o - .debug_macro 0x0000000000000000 0x19e ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_dma.o + .debug_macro 0x0000000000000000 0x1a8 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_dma.o .debug_macro 0x0000000000000000 0xa9c ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_dma.o - .debug_macro 0x0000000000000000 0x215 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_dma.o + .debug_macro 0x0000000000000000 0x21b ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_dma.o .debug_macro 0x0000000000000000 0x2e ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_dma.o .debug_macro 0x0000000000000000 0x22 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_dma.o .debug_macro 0x0000000000000000 0x22 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_dma.o @@ -883,10 +898,11 @@ Discarded input sections .debug_macro 0x0000000000000000 0x88 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_dma.o .debug_macro 0x0000000000000000 0x24f ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_dma.o .debug_macro 0x0000000000000000 0x356 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_dma.o + .debug_macro 0x0000000000000000 0x287 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_dma.o .debug_macro 0x0000000000000000 0x141 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_dma.o .debug_macro 0x0000000000000000 0xb5 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_dma.o - .debug_line 0x0000000000000000 0x1268 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_dma.o - .debug_str 0x0000000000000000 0x8b6b7 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_dma.o + .debug_line 0x0000000000000000 0x127f ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_dma.o + .debug_str 0x0000000000000000 0x8cfa3 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_dma.o .comment 0x0000000000000000 0x54 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_dma.o .debug_frame 0x0000000000000000 0x20c ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_dma.o .ARM.attributes @@ -926,6 +942,7 @@ Discarded input sections .group 0x0000000000000000 0xc ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.o .group 0x0000000000000000 0xc ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.o .group 0x0000000000000000 0xc ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.o + .group 0x0000000000000000 0xc ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.o .text 0x0000000000000000 0x0 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.o .data 0x0000000000000000 0x0 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.o .bss 0x0000000000000000 0x0 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.o @@ -952,9 +969,9 @@ Discarded input sections .debug_aranges 0x0000000000000000 0x60 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.o .debug_ranges 0x0000000000000000 0x50 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.o - .debug_macro 0x0000000000000000 0x19e ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.o + .debug_macro 0x0000000000000000 0x1a8 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.o .debug_macro 0x0000000000000000 0xa9c ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.o - .debug_macro 0x0000000000000000 0x215 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.o + .debug_macro 0x0000000000000000 0x21b ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.o .debug_macro 0x0000000000000000 0x2e ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.o .debug_macro 0x0000000000000000 0x22 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.o .debug_macro 0x0000000000000000 0x22 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.o @@ -986,10 +1003,11 @@ Discarded input sections .debug_macro 0x0000000000000000 0x88 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.o .debug_macro 0x0000000000000000 0x24f ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.o .debug_macro 0x0000000000000000 0x356 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.o + .debug_macro 0x0000000000000000 0x287 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.o .debug_macro 0x0000000000000000 0x141 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.o .debug_macro 0x0000000000000000 0xb5 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.o - .debug_line 0x0000000000000000 0x966 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.o - .debug_str 0x0000000000000000 0x8b49c ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.o + .debug_line 0x0000000000000000 0x97d ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.o + .debug_str 0x0000000000000000 0x8cd88 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.o .comment 0x0000000000000000 0x54 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.o .debug_frame 0x0000000000000000 0x174 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.o .ARM.attributes @@ -1029,6 +1047,7 @@ Discarded input sections .group 0x0000000000000000 0xc ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.o .group 0x0000000000000000 0xc ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.o .group 0x0000000000000000 0xc ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.o + .group 0x0000000000000000 0xc ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.o .text 0x0000000000000000 0x0 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.o .data 0x0000000000000000 0x0 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.o .bss 0x0000000000000000 0x0 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.o @@ -1065,9 +1084,9 @@ Discarded input sections .debug_aranges 0x0000000000000000 0x88 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.o .debug_ranges 0x0000000000000000 0x78 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.o - .debug_macro 0x0000000000000000 0x19e ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.o + .debug_macro 0x0000000000000000 0x1a8 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.o .debug_macro 0x0000000000000000 0xa9c ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.o - .debug_macro 0x0000000000000000 0x215 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.o + .debug_macro 0x0000000000000000 0x21b ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.o .debug_macro 0x0000000000000000 0x2e ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.o .debug_macro 0x0000000000000000 0x22 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.o .debug_macro 0x0000000000000000 0x22 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.o @@ -1099,10 +1118,11 @@ Discarded input sections .debug_macro 0x0000000000000000 0x88 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.o .debug_macro 0x0000000000000000 0x24f ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.o .debug_macro 0x0000000000000000 0x356 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.o + .debug_macro 0x0000000000000000 0x287 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.o .debug_macro 0x0000000000000000 0x141 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.o .debug_macro 0x0000000000000000 0xb5 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.o - .debug_line 0x0000000000000000 0xa1b ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.o - .debug_str 0x0000000000000000 0x8b5b2 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.o + .debug_line 0x0000000000000000 0xa32 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.o + .debug_str 0x0000000000000000 0x8ce9e ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.o .comment 0x0000000000000000 0x54 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.o .debug_frame 0x0000000000000000 0x20c ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.o .ARM.attributes @@ -1143,6 +1163,7 @@ Discarded input sections .group 0x0000000000000000 0xc ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash_ex.o .group 0x0000000000000000 0xc ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash_ex.o .group 0x0000000000000000 0xc ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash_ex.o + .group 0x0000000000000000 0xc ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash_ex.o .text 0x0000000000000000 0x0 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash_ex.o .data 0x0000000000000000 0x0 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash_ex.o .bss 0x0000000000000000 0x0 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash_ex.o @@ -1183,9 +1204,9 @@ Discarded input sections .debug_aranges 0x0000000000000000 0x98 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash_ex.o .debug_ranges 0x0000000000000000 0x88 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash_ex.o - .debug_macro 0x0000000000000000 0x1b0 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash_ex.o + .debug_macro 0x0000000000000000 0x1ba ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash_ex.o .debug_macro 0x0000000000000000 0xa9c ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash_ex.o - .debug_macro 0x0000000000000000 0x215 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash_ex.o + .debug_macro 0x0000000000000000 0x21b ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash_ex.o .debug_macro 0x0000000000000000 0x2e ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash_ex.o .debug_macro 0x0000000000000000 0x22 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash_ex.o .debug_macro 0x0000000000000000 0x22 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash_ex.o @@ -1217,10 +1238,11 @@ Discarded input sections .debug_macro 0x0000000000000000 0x88 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash_ex.o .debug_macro 0x0000000000000000 0x24f ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash_ex.o .debug_macro 0x0000000000000000 0x356 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash_ex.o + .debug_macro 0x0000000000000000 0x287 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash_ex.o .debug_macro 0x0000000000000000 0x141 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash_ex.o .debug_macro 0x0000000000000000 0xb5 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash_ex.o - .debug_line 0x0000000000000000 0xb0c ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash_ex.o - .debug_str 0x0000000000000000 0x8b776 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash_ex.o + .debug_line 0x0000000000000000 0xb23 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash_ex.o + .debug_str 0x0000000000000000 0x8d062 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash_ex.o .comment 0x0000000000000000 0x54 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash_ex.o .debug_frame 0x0000000000000000 0x258 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash_ex.o .ARM.attributes @@ -1260,6 +1282,7 @@ Discarded input sections .group 0x0000000000000000 0xc ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio.o .group 0x0000000000000000 0xc ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio.o .group 0x0000000000000000 0xc ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio.o + .group 0x0000000000000000 0xc ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio.o .text 0x0000000000000000 0x0 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio.o .data 0x0000000000000000 0x0 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio.o .bss 0x0000000000000000 0x0 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio.o @@ -1274,7 +1297,7 @@ Discarded input sections .text.HAL_GPIO_EXTI_Callback 0x0000000000000000 0x14 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio.o .debug_macro 0x0000000000000000 0xa9c ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio.o - .debug_macro 0x0000000000000000 0x215 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio.o + .debug_macro 0x0000000000000000 0x21b ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio.o .debug_macro 0x0000000000000000 0x2e ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio.o .debug_macro 0x0000000000000000 0x22 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio.o .debug_macro 0x0000000000000000 0x22 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio.o @@ -1306,6 +1329,7 @@ Discarded input sections .debug_macro 0x0000000000000000 0x88 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio.o .debug_macro 0x0000000000000000 0x24f ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio.o .debug_macro 0x0000000000000000 0x356 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio.o + .debug_macro 0x0000000000000000 0x287 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio.o .debug_macro 0x0000000000000000 0x141 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio.o .debug_macro 0x0000000000000000 0xb5 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio.o .group 0x0000000000000000 0xc ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio_ex.o @@ -1343,6 +1367,7 @@ Discarded input sections .group 0x0000000000000000 0xc ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio_ex.o .group 0x0000000000000000 0xc ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio_ex.o .group 0x0000000000000000 0xc ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio_ex.o + .group 0x0000000000000000 0xc ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio_ex.o .text 0x0000000000000000 0x0 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio_ex.o .data 0x0000000000000000 0x0 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio_ex.o .bss 0x0000000000000000 0x0 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio_ex.o @@ -1357,9 +1382,9 @@ Discarded input sections .debug_aranges 0x0000000000000000 0x30 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio_ex.o .debug_ranges 0x0000000000000000 0x20 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio_ex.o - .debug_macro 0x0000000000000000 0x19e ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio_ex.o + .debug_macro 0x0000000000000000 0x1a8 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio_ex.o .debug_macro 0x0000000000000000 0xa9c ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio_ex.o - .debug_macro 0x0000000000000000 0x215 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio_ex.o + .debug_macro 0x0000000000000000 0x21b ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio_ex.o .debug_macro 0x0000000000000000 0x2e ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio_ex.o .debug_macro 0x0000000000000000 0x22 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio_ex.o .debug_macro 0x0000000000000000 0x22 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio_ex.o @@ -1391,14 +1416,231 @@ Discarded input sections .debug_macro 0x0000000000000000 0x88 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio_ex.o .debug_macro 0x0000000000000000 0x24f ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio_ex.o .debug_macro 0x0000000000000000 0x356 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio_ex.o + .debug_macro 0x0000000000000000 0x287 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio_ex.o .debug_macro 0x0000000000000000 0x141 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio_ex.o .debug_macro 0x0000000000000000 0xb5 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio_ex.o - .debug_line 0x0000000000000000 0x6d4 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio_ex.o - .debug_str 0x0000000000000000 0x8b31d ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio_ex.o + .debug_line 0x0000000000000000 0x6eb ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio_ex.o + .debug_str 0x0000000000000000 0x8cc09 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio_ex.o .comment 0x0000000000000000 0x54 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio_ex.o .debug_frame 0x0000000000000000 0x78 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio_ex.o .ARM.attributes 0x0000000000000000 0x2d ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio_ex.o + .group 0x0000000000000000 0xc ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + .group 0x0000000000000000 0xc ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + .group 0x0000000000000000 0xc ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + .group 0x0000000000000000 0xc ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + .group 0x0000000000000000 0xc ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + .group 0x0000000000000000 0xc ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + .group 0x0000000000000000 0xc ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + .group 0x0000000000000000 0xc ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + .group 0x0000000000000000 0xc ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + .group 0x0000000000000000 0xc ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + .group 0x0000000000000000 0xc ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + .group 0x0000000000000000 0xc ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + .group 0x0000000000000000 0xc ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + .group 0x0000000000000000 0xc ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + .group 0x0000000000000000 0xc ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + .group 0x0000000000000000 0xc ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + .group 0x0000000000000000 0xc ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + .group 0x0000000000000000 0xc ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + .group 0x0000000000000000 0xc ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + .group 0x0000000000000000 0xc ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + .group 0x0000000000000000 0xc ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + .group 0x0000000000000000 0xc ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + .group 0x0000000000000000 0xc ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + .group 0x0000000000000000 0xc ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + .group 0x0000000000000000 0xc ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + .group 0x0000000000000000 0xc ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + .group 0x0000000000000000 0xc ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + .group 0x0000000000000000 0xc ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + .group 0x0000000000000000 0xc ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + .group 0x0000000000000000 0xc ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + .group 0x0000000000000000 0xc ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + .group 0x0000000000000000 0xc ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + .group 0x0000000000000000 0xc ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + .group 0x0000000000000000 0xc ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + .group 0x0000000000000000 0xc ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + .group 0x0000000000000000 0xc ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + .text 0x0000000000000000 0x0 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + .data 0x0000000000000000 0x0 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + .bss 0x0000000000000000 0x0 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + .text.HAL_I2C_DeInit + 0x0000000000000000 0x5e ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + .text.HAL_I2C_MspInit + 0x0000000000000000 0x12 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + .text.HAL_I2C_MspDeInit + 0x0000000000000000 0x12 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + .text.HAL_I2C_Master_Transmit + 0x0000000000000000 0x1fc ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + .text.HAL_I2C_Master_Receive + 0x0000000000000000 0x4c0 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + .text.HAL_I2C_Slave_Transmit + 0x0000000000000000 0x22c ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + .text.HAL_I2C_Slave_Receive + 0x0000000000000000 0x214 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + .text.HAL_I2C_Master_Transmit_IT + 0x0000000000000000 0x148 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + .text.HAL_I2C_Master_Receive_IT + 0x0000000000000000 0x158 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + .text.HAL_I2C_Slave_Transmit_IT + 0x0000000000000000 0xdc ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + .text.HAL_I2C_Slave_Receive_IT + 0x0000000000000000 0xdc ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + .text.HAL_I2C_Master_Transmit_DMA + 0x0000000000000000 0x250 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + .text.HAL_I2C_Master_Receive_DMA + 0x0000000000000000 0x250 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + .text.HAL_I2C_Slave_Transmit_DMA + 0x0000000000000000 0x194 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + .text.HAL_I2C_Slave_Receive_DMA + 0x0000000000000000 0x194 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + .text.HAL_I2C_Mem_Write_IT + 0x0000000000000000 0x160 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + .text.HAL_I2C_Mem_Read_IT + 0x0000000000000000 0x178 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + .text.HAL_I2C_Mem_Write_DMA + 0x0000000000000000 0x29c ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + .text.HAL_I2C_Mem_Read_DMA + 0x0000000000000000 0x2fc ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + .text.HAL_I2C_IsDeviceReady + 0x0000000000000000 0x25c ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + .text.HAL_I2C_Master_Seq_Transmit_IT + 0x0000000000000000 0x18c ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + .text.HAL_I2C_Master_Seq_Transmit_DMA + 0x0000000000000000 0x2c4 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + .text.HAL_I2C_Master_Seq_Receive_IT + 0x0000000000000000 0x1f8 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + .text.HAL_I2C_Master_Seq_Receive_DMA + 0x0000000000000000 0x36c ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + .text.HAL_I2C_Slave_Seq_Transmit_IT + 0x0000000000000000 0xe4 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + .text.HAL_I2C_Slave_Seq_Transmit_DMA + 0x0000000000000000 0x274 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + .text.HAL_I2C_Slave_Seq_Receive_IT + 0x0000000000000000 0xe4 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + .text.HAL_I2C_Slave_Seq_Receive_DMA + 0x0000000000000000 0x274 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + .text.HAL_I2C_EnableListen_IT + 0x0000000000000000 0x6a ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + .text.HAL_I2C_DisableListen_IT + 0x0000000000000000 0x74 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + .text.HAL_I2C_Master_Abort_IT + 0x0000000000000000 0x9e ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + .text.HAL_I2C_EV_IRQHandler + 0x0000000000000000 0x2e2 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + .text.HAL_I2C_ER_IRQHandler + 0x0000000000000000 0x15e ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + .text.HAL_I2C_MasterTxCpltCallback + 0x0000000000000000 0x12 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + .text.HAL_I2C_MasterRxCpltCallback + 0x0000000000000000 0x12 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + .text.HAL_I2C_SlaveTxCpltCallback + 0x0000000000000000 0x12 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + .text.HAL_I2C_SlaveRxCpltCallback + 0x0000000000000000 0x12 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + .text.HAL_I2C_AddrCallback + 0x0000000000000000 0x1a ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + .text.HAL_I2C_ListenCpltCallback + 0x0000000000000000 0x12 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + .text.HAL_I2C_MemTxCpltCallback + 0x0000000000000000 0x12 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + .text.HAL_I2C_MemRxCpltCallback + 0x0000000000000000 0x12 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + .text.HAL_I2C_ErrorCallback + 0x0000000000000000 0x12 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + .text.HAL_I2C_AbortCpltCallback + 0x0000000000000000 0x12 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + .text.HAL_I2C_GetState + 0x0000000000000000 0x1a ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + .text.HAL_I2C_GetMode + 0x0000000000000000 0x1a ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + .text.HAL_I2C_GetError + 0x0000000000000000 0x16 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + .text.I2C_MasterTransmit_TXE + 0x0000000000000000 0x138 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + .text.I2C_MasterTransmit_BTF + 0x0000000000000000 0xec ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + .text.I2C_MemoryTransmit_TXE_BTF + 0x0000000000000000 0x128 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + .text.I2C_MasterReceive_RXNE + 0x0000000000000000 0x162 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + .text.I2C_MasterReceive_BTF + 0x0000000000000000 0x1d4 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + .text.I2C_Master_SB + 0x0000000000000000 0x10a ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + .text.I2C_Master_ADD10 + 0x0000000000000000 0x52 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + .text.I2C_Master_ADDR + 0x0000000000000000 0x336 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + .text.I2C_SlaveTransmit_TXE + 0x0000000000000000 0x7a ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + .text.I2C_SlaveTransmit_BTF + 0x0000000000000000 0x40 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + .text.I2C_SlaveReceive_RXNE + 0x0000000000000000 0x7c ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + .text.I2C_SlaveReceive_BTF + 0x0000000000000000 0x42 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + .text.I2C_Slave_ADDR + 0x0000000000000000 0x94 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + .text.I2C_Slave_STOPF + 0x0000000000000000 0x260 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + .text.I2C_Slave_AF + 0x0000000000000000 0xe0 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + .text.I2C_ITError + 0x0000000000000000 0x264 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + .text.I2C_MasterRequestWrite + 0x0000000000000000 0x104 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + .text.I2C_MasterRequestRead + 0x0000000000000000 0x19c ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + .text.I2C_DMAXferCplt + 0x0000000000000000 0x1aa ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + .text.I2C_DMAError + 0x0000000000000000 0x6e ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + .text.I2C_DMAAbort + 0x0000000000000000 0x150 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + .text.I2C_WaitOnSTOPFlagUntilTimeout + 0x0000000000000000 0x7a ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + .text.I2C_WaitOnSTOPRequestThroughIT + 0x0000000000000000 0x64 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + .text.I2C_ConvertOtherXferOptions + 0x0000000000000000 0x34 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + .debug_macro 0x0000000000000000 0xa9c ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + .debug_macro 0x0000000000000000 0x21b ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + .debug_macro 0x0000000000000000 0x2e ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + .debug_macro 0x0000000000000000 0x22 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + .debug_macro 0x0000000000000000 0x22 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + .debug_macro 0x0000000000000000 0x8e ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + .debug_macro 0x0000000000000000 0x51 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + .debug_macro 0x0000000000000000 0x103 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + .debug_macro 0x0000000000000000 0x6a ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + .debug_macro 0x0000000000000000 0x1df ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + .debug_macro 0x0000000000000000 0x1c ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + .debug_macro 0x0000000000000000 0x22 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + .debug_macro 0x0000000000000000 0xc3 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + .debug_macro 0x0000000000000000 0xd23 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + .debug_macro 0x0000000000000000 0xfd8c ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + .debug_macro 0x0000000000000000 0x6d ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + .debug_macro 0x0000000000000000 0x3468 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + .debug_macro 0x0000000000000000 0x174 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + .debug_macro 0x0000000000000000 0x5c ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + .debug_macro 0x0000000000000000 0x5be ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + .debug_macro 0x0000000000000000 0x4d5 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + .debug_macro 0x0000000000000000 0x1cb ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + .debug_macro 0x0000000000000000 0x114 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + .debug_macro 0x0000000000000000 0x1ea ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + .debug_macro 0x0000000000000000 0x27 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + .debug_macro 0x0000000000000000 0x144 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + .debug_macro 0x0000000000000000 0x1bc ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + .debug_macro 0x0000000000000000 0x30 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + .debug_macro 0x0000000000000000 0x3c ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + .debug_macro 0x0000000000000000 0x57 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + .debug_macro 0x0000000000000000 0x88 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + .debug_macro 0x0000000000000000 0x24f ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + .debug_macro 0x0000000000000000 0x356 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + .debug_macro 0x0000000000000000 0x287 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + .debug_macro 0x0000000000000000 0x141 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + .debug_macro 0x0000000000000000 0xb5 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + .group 0x0000000000000000 0xc ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_pwr.o .group 0x0000000000000000 0xc ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_pwr.o .group 0x0000000000000000 0xc ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_pwr.o .group 0x0000000000000000 0xc ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_pwr.o @@ -1478,9 +1720,9 @@ Discarded input sections .debug_aranges 0x0000000000000000 0xa8 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_pwr.o .debug_ranges 0x0000000000000000 0x98 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_pwr.o - .debug_macro 0x0000000000000000 0x1fe ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_pwr.o + .debug_macro 0x0000000000000000 0x208 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_pwr.o .debug_macro 0x0000000000000000 0xa9c ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_pwr.o - .debug_macro 0x0000000000000000 0x215 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_pwr.o + .debug_macro 0x0000000000000000 0x21b ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_pwr.o .debug_macro 0x0000000000000000 0x2e ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_pwr.o .debug_macro 0x0000000000000000 0x22 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_pwr.o .debug_macro 0x0000000000000000 0x22 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_pwr.o @@ -1512,10 +1754,11 @@ Discarded input sections .debug_macro 0x0000000000000000 0x88 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_pwr.o .debug_macro 0x0000000000000000 0x24f ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_pwr.o .debug_macro 0x0000000000000000 0x356 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_pwr.o + .debug_macro 0x0000000000000000 0x287 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_pwr.o .debug_macro 0x0000000000000000 0x141 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_pwr.o .debug_macro 0x0000000000000000 0xb5 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_pwr.o - .debug_line 0x0000000000000000 0x8c0 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_pwr.o - .debug_str 0x0000000000000000 0x8b83f ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_pwr.o + .debug_line 0x0000000000000000 0x8d7 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_pwr.o + .debug_str 0x0000000000000000 0x8d12b ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_pwr.o .comment 0x0000000000000000 0x54 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_pwr.o .debug_frame 0x0000000000000000 0x270 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_pwr.o .ARM.attributes @@ -1555,6 +1798,7 @@ Discarded input sections .group 0x0000000000000000 0xc ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.o .group 0x0000000000000000 0xc ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.o .group 0x0000000000000000 0xc ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.o + .group 0x0000000000000000 0xc ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.o .text 0x0000000000000000 0x0 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.o .data 0x0000000000000000 0x0 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.o .bss 0x0000000000000000 0x0 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.o @@ -1566,10 +1810,6 @@ Discarded input sections 0x0000000000000000 0x18 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.o .text.HAL_RCC_DisableCSS 0x0000000000000000 0x18 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.o - .text.HAL_RCC_GetHCLKFreq - 0x0000000000000000 0x14 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.o - .text.HAL_RCC_GetPCLK1Freq - 0x0000000000000000 0x28 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.o .text.HAL_RCC_GetPCLK2Freq 0x0000000000000000 0x28 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.o .text.HAL_RCC_GetOscConfig @@ -1581,7 +1821,7 @@ Discarded input sections .text.HAL_RCC_CSSCallback 0x0000000000000000 0xc ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.o .debug_macro 0x0000000000000000 0xa9c ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.o - .debug_macro 0x0000000000000000 0x215 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.o + .debug_macro 0x0000000000000000 0x21b ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.o .debug_macro 0x0000000000000000 0x2e ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.o .debug_macro 0x0000000000000000 0x22 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.o .debug_macro 0x0000000000000000 0x22 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.o @@ -1613,6 +1853,7 @@ Discarded input sections .debug_macro 0x0000000000000000 0x88 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.o .debug_macro 0x0000000000000000 0x24f ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.o .debug_macro 0x0000000000000000 0x356 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.o + .debug_macro 0x0000000000000000 0x287 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.o .debug_macro 0x0000000000000000 0x141 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.o .debug_macro 0x0000000000000000 0xb5 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.o .group 0x0000000000000000 0xc ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc_ex.o @@ -1650,6 +1891,7 @@ Discarded input sections .group 0x0000000000000000 0xc ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc_ex.o .group 0x0000000000000000 0xc ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc_ex.o .group 0x0000000000000000 0xc ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc_ex.o + .group 0x0000000000000000 0xc ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc_ex.o .text 0x0000000000000000 0x0 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc_ex.o .data 0x0000000000000000 0x0 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc_ex.o .bss 0x0000000000000000 0x0 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc_ex.o @@ -1665,9 +1907,9 @@ Discarded input sections .debug_aranges 0x0000000000000000 0x30 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc_ex.o .debug_ranges 0x0000000000000000 0x20 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc_ex.o - .debug_macro 0x0000000000000000 0x19e ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc_ex.o + .debug_macro 0x0000000000000000 0x1a8 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc_ex.o .debug_macro 0x0000000000000000 0xa9c ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc_ex.o - .debug_macro 0x0000000000000000 0x215 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc_ex.o + .debug_macro 0x0000000000000000 0x21b ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc_ex.o .debug_macro 0x0000000000000000 0x2e ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc_ex.o .debug_macro 0x0000000000000000 0x22 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc_ex.o .debug_macro 0x0000000000000000 0x22 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc_ex.o @@ -1699,10 +1941,11 @@ Discarded input sections .debug_macro 0x0000000000000000 0x88 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc_ex.o .debug_macro 0x0000000000000000 0x24f ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc_ex.o .debug_macro 0x0000000000000000 0x356 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc_ex.o + .debug_macro 0x0000000000000000 0x287 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc_ex.o .debug_macro 0x0000000000000000 0x141 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc_ex.o .debug_macro 0x0000000000000000 0xb5 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc_ex.o - .debug_line 0x0000000000000000 0x89c ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc_ex.o - .debug_str 0x0000000000000000 0x8b48c ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc_ex.o + .debug_line 0x0000000000000000 0x8b3 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc_ex.o + .debug_str 0x0000000000000000 0x8cd78 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc_ex.o .comment 0x0000000000000000 0x54 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc_ex.o .debug_frame 0x0000000000000000 0x84 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc_ex.o .ARM.attributes @@ -1742,6 +1985,7 @@ Discarded input sections .group 0x0000000000000000 0xc ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_sram.o .group 0x0000000000000000 0xc ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_sram.o .group 0x0000000000000000 0xc ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_sram.o + .group 0x0000000000000000 0xc ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_sram.o .text 0x0000000000000000 0x0 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_sram.o .data 0x0000000000000000 0x0 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_sram.o .bss 0x0000000000000000 0x0 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_sram.o @@ -1784,7 +2028,7 @@ Discarded input sections .text.SRAM_DMAError 0x0000000000000000 0x34 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_sram.o .debug_macro 0x0000000000000000 0xa9c ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_sram.o - .debug_macro 0x0000000000000000 0x215 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_sram.o + .debug_macro 0x0000000000000000 0x21b ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_sram.o .debug_macro 0x0000000000000000 0x2e ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_sram.o .debug_macro 0x0000000000000000 0x22 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_sram.o .debug_macro 0x0000000000000000 0x22 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_sram.o @@ -1816,6 +2060,7 @@ Discarded input sections .debug_macro 0x0000000000000000 0x88 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_sram.o .debug_macro 0x0000000000000000 0x24f ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_sram.o .debug_macro 0x0000000000000000 0x356 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_sram.o + .debug_macro 0x0000000000000000 0x287 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_sram.o .debug_macro 0x0000000000000000 0x141 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_sram.o .debug_macro 0x0000000000000000 0xb5 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_sram.o .group 0x0000000000000000 0xc ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim.o @@ -1853,6 +2098,7 @@ Discarded input sections .group 0x0000000000000000 0xc ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim.o .group 0x0000000000000000 0xc ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim.o .group 0x0000000000000000 0xc ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim.o + .group 0x0000000000000000 0xc ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim.o .text 0x0000000000000000 0x0 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim.o .data 0x0000000000000000 0x0 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim.o .bss 0x0000000000000000 0x0 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim.o @@ -1860,9 +2106,9 @@ Discarded input sections .debug_abbrev 0x0000000000000000 0x9a ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim.o .debug_aranges 0x0000000000000000 0x18 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim.o - .debug_macro 0x0000000000000000 0x19f ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim.o + .debug_macro 0x0000000000000000 0x1a9 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim.o .debug_macro 0x0000000000000000 0xa9c ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim.o - .debug_macro 0x0000000000000000 0x215 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim.o + .debug_macro 0x0000000000000000 0x21b ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim.o .debug_macro 0x0000000000000000 0x2e ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim.o .debug_macro 0x0000000000000000 0x22 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim.o .debug_macro 0x0000000000000000 0x22 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim.o @@ -1894,10 +2140,11 @@ Discarded input sections .debug_macro 0x0000000000000000 0x88 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim.o .debug_macro 0x0000000000000000 0x24f ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim.o .debug_macro 0x0000000000000000 0x356 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim.o + .debug_macro 0x0000000000000000 0x287 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim.o .debug_macro 0x0000000000000000 0x141 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim.o .debug_macro 0x0000000000000000 0xb5 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim.o - .debug_line 0x0000000000000000 0x688 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim.o - .debug_str 0x0000000000000000 0x8b27d ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim.o + .debug_line 0x0000000000000000 0x69f ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim.o + .debug_str 0x0000000000000000 0x8cb69 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim.o .comment 0x0000000000000000 0x54 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim.o .ARM.attributes 0x0000000000000000 0x33 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim.o @@ -1936,6 +2183,7 @@ Discarded input sections .group 0x0000000000000000 0xc ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim_ex.o .group 0x0000000000000000 0xc ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim_ex.o .group 0x0000000000000000 0xc ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim_ex.o + .group 0x0000000000000000 0xc ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim_ex.o .text 0x0000000000000000 0x0 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim_ex.o .data 0x0000000000000000 0x0 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim_ex.o .bss 0x0000000000000000 0x0 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim_ex.o @@ -1943,9 +2191,9 @@ Discarded input sections .debug_abbrev 0x0000000000000000 0x9a ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim_ex.o .debug_aranges 0x0000000000000000 0x18 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim_ex.o - .debug_macro 0x0000000000000000 0x19e ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim_ex.o + .debug_macro 0x0000000000000000 0x1a8 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim_ex.o .debug_macro 0x0000000000000000 0xa9c ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim_ex.o - .debug_macro 0x0000000000000000 0x215 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim_ex.o + .debug_macro 0x0000000000000000 0x21b ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim_ex.o .debug_macro 0x0000000000000000 0x2e ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim_ex.o .debug_macro 0x0000000000000000 0x22 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim_ex.o .debug_macro 0x0000000000000000 0x22 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim_ex.o @@ -1977,10 +2225,11 @@ Discarded input sections .debug_macro 0x0000000000000000 0x88 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim_ex.o .debug_macro 0x0000000000000000 0x24f ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim_ex.o .debug_macro 0x0000000000000000 0x356 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim_ex.o + .debug_macro 0x0000000000000000 0x287 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim_ex.o .debug_macro 0x0000000000000000 0x141 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim_ex.o .debug_macro 0x0000000000000000 0xb5 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim_ex.o - .debug_line 0x0000000000000000 0x68b ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim_ex.o - .debug_str 0x0000000000000000 0x8b280 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim_ex.o + .debug_line 0x0000000000000000 0x6a2 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim_ex.o + .debug_str 0x0000000000000000 0x8cb6c ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim_ex.o .comment 0x0000000000000000 0x54 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim_ex.o .ARM.attributes 0x0000000000000000 0x33 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim_ex.o @@ -2019,6 +2268,7 @@ Discarded input sections .group 0x0000000000000000 0xc ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_fsmc.o .group 0x0000000000000000 0xc ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_fsmc.o .group 0x0000000000000000 0xc ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_fsmc.o + .group 0x0000000000000000 0xc ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_fsmc.o .text 0x0000000000000000 0x0 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_fsmc.o .data 0x0000000000000000 0x0 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_fsmc.o .bss 0x0000000000000000 0x0 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_fsmc.o @@ -2053,7 +2303,7 @@ Discarded input sections .text.FSMC_PCCARD_DeInit 0x0000000000000000 0x44 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_fsmc.o .debug_macro 0x0000000000000000 0xa9c ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_fsmc.o - .debug_macro 0x0000000000000000 0x215 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_fsmc.o + .debug_macro 0x0000000000000000 0x21b ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_fsmc.o .debug_macro 0x0000000000000000 0x2e ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_fsmc.o .debug_macro 0x0000000000000000 0x22 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_fsmc.o .debug_macro 0x0000000000000000 0x22 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_fsmc.o @@ -2085,6 +2335,7 @@ Discarded input sections .debug_macro 0x0000000000000000 0x88 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_fsmc.o .debug_macro 0x0000000000000000 0x24f ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_fsmc.o .debug_macro 0x0000000000000000 0x356 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_fsmc.o + .debug_macro 0x0000000000000000 0x287 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_fsmc.o .debug_macro 0x0000000000000000 0x141 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_fsmc.o .debug_macro 0x0000000000000000 0xb5 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_fsmc.o .group 0x0000000000000000 0xc ./HW_Devices/LCD.o @@ -2124,6 +2375,7 @@ Discarded input sections .group 0x0000000000000000 0xc ./HW_Devices/LCD.o .group 0x0000000000000000 0xc ./HW_Devices/LCD.o .group 0x0000000000000000 0xc ./HW_Devices/LCD.o + .group 0x0000000000000000 0xc ./HW_Devices/LCD.o .text 0x0000000000000000 0x0 ./HW_Devices/LCD.o .data 0x0000000000000000 0x0 ./HW_Devices/LCD.o .bss 0x0000000000000000 0x0 ./HW_Devices/LCD.o @@ -2144,7 +2396,7 @@ Discarded input sections .text.LCD_ReadPoint 0x0000000000000000 0x160 ./HW_Devices/LCD.o .debug_macro 0x0000000000000000 0xa9c ./HW_Devices/LCD.o - .debug_macro 0x0000000000000000 0x215 ./HW_Devices/LCD.o + .debug_macro 0x0000000000000000 0x21b ./HW_Devices/LCD.o .debug_macro 0x0000000000000000 0x2e ./HW_Devices/LCD.o .debug_macro 0x0000000000000000 0x22 ./HW_Devices/LCD.o .debug_macro 0x0000000000000000 0x22 ./HW_Devices/LCD.o @@ -2176,9 +2428,89 @@ Discarded input sections .debug_macro 0x0000000000000000 0x88 ./HW_Devices/LCD.o .debug_macro 0x0000000000000000 0x24f ./HW_Devices/LCD.o .debug_macro 0x0000000000000000 0x356 ./HW_Devices/LCD.o + .debug_macro 0x0000000000000000 0x287 ./HW_Devices/LCD.o .debug_macro 0x0000000000000000 0x141 ./HW_Devices/LCD.o .debug_macro 0x0000000000000000 0xb5 ./HW_Devices/LCD.o .debug_macro 0x0000000000000000 0x4c ./HW_Devices/LCD.o + .group 0x0000000000000000 0xc ./HW_Devices/eeprom.o + .group 0x0000000000000000 0xc ./HW_Devices/eeprom.o + .group 0x0000000000000000 0xc ./HW_Devices/eeprom.o + .group 0x0000000000000000 0xc ./HW_Devices/eeprom.o + .group 0x0000000000000000 0xc ./HW_Devices/eeprom.o + .group 0x0000000000000000 0xc ./HW_Devices/eeprom.o + .group 0x0000000000000000 0xc ./HW_Devices/eeprom.o + .group 0x0000000000000000 0xc ./HW_Devices/eeprom.o + .group 0x0000000000000000 0xc ./HW_Devices/eeprom.o + .group 0x0000000000000000 0xc ./HW_Devices/eeprom.o + .group 0x0000000000000000 0xc ./HW_Devices/eeprom.o + .group 0x0000000000000000 0xc ./HW_Devices/eeprom.o + .group 0x0000000000000000 0xc ./HW_Devices/eeprom.o + .group 0x0000000000000000 0xc ./HW_Devices/eeprom.o + .group 0x0000000000000000 0xc ./HW_Devices/eeprom.o + .group 0x0000000000000000 0xc ./HW_Devices/eeprom.o + .group 0x0000000000000000 0xc ./HW_Devices/eeprom.o + .group 0x0000000000000000 0xc ./HW_Devices/eeprom.o + .group 0x0000000000000000 0xc ./HW_Devices/eeprom.o + .group 0x0000000000000000 0xc ./HW_Devices/eeprom.o + .group 0x0000000000000000 0xc ./HW_Devices/eeprom.o + .group 0x0000000000000000 0xc ./HW_Devices/eeprom.o + .group 0x0000000000000000 0xc ./HW_Devices/eeprom.o + .group 0x0000000000000000 0xc ./HW_Devices/eeprom.o + .group 0x0000000000000000 0xc ./HW_Devices/eeprom.o + .group 0x0000000000000000 0xc ./HW_Devices/eeprom.o + .group 0x0000000000000000 0xc ./HW_Devices/eeprom.o + .group 0x0000000000000000 0xc ./HW_Devices/eeprom.o + .group 0x0000000000000000 0xc ./HW_Devices/eeprom.o + .group 0x0000000000000000 0xc ./HW_Devices/eeprom.o + .group 0x0000000000000000 0xc ./HW_Devices/eeprom.o + .group 0x0000000000000000 0xc ./HW_Devices/eeprom.o + .group 0x0000000000000000 0xc ./HW_Devices/eeprom.o + .group 0x0000000000000000 0xc ./HW_Devices/eeprom.o + .group 0x0000000000000000 0xc ./HW_Devices/eeprom.o + .group 0x0000000000000000 0xc ./HW_Devices/eeprom.o + .group 0x0000000000000000 0xc ./HW_Devices/eeprom.o + .text 0x0000000000000000 0x0 ./HW_Devices/eeprom.o + .data 0x0000000000000000 0x0 ./HW_Devices/eeprom.o + .bss 0x0000000000000000 0x0 ./HW_Devices/eeprom.o + .debug_macro 0x0000000000000000 0xa9c ./HW_Devices/eeprom.o + .debug_macro 0x0000000000000000 0x21b ./HW_Devices/eeprom.o + .debug_macro 0x0000000000000000 0x2e ./HW_Devices/eeprom.o + .debug_macro 0x0000000000000000 0x22 ./HW_Devices/eeprom.o + .debug_macro 0x0000000000000000 0x22 ./HW_Devices/eeprom.o + .debug_macro 0x0000000000000000 0x8e ./HW_Devices/eeprom.o + .debug_macro 0x0000000000000000 0x51 ./HW_Devices/eeprom.o + .debug_macro 0x0000000000000000 0x103 ./HW_Devices/eeprom.o + .debug_macro 0x0000000000000000 0x6a ./HW_Devices/eeprom.o + .debug_macro 0x0000000000000000 0x1df ./HW_Devices/eeprom.o + .debug_macro 0x0000000000000000 0x1c ./HW_Devices/eeprom.o + .debug_macro 0x0000000000000000 0x22 ./HW_Devices/eeprom.o + .debug_macro 0x0000000000000000 0xc3 ./HW_Devices/eeprom.o + .debug_macro 0x0000000000000000 0xd23 ./HW_Devices/eeprom.o + .debug_macro 0x0000000000000000 0xfd8c ./HW_Devices/eeprom.o + .debug_macro 0x0000000000000000 0x6d ./HW_Devices/eeprom.o + .debug_macro 0x0000000000000000 0x3468 ./HW_Devices/eeprom.o + .debug_macro 0x0000000000000000 0x174 ./HW_Devices/eeprom.o + .debug_macro 0x0000000000000000 0x5c ./HW_Devices/eeprom.o + .debug_macro 0x0000000000000000 0x5be ./HW_Devices/eeprom.o + .debug_macro 0x0000000000000000 0x4d5 ./HW_Devices/eeprom.o + .debug_macro 0x0000000000000000 0x1cb ./HW_Devices/eeprom.o + .debug_macro 0x0000000000000000 0x114 ./HW_Devices/eeprom.o + .debug_macro 0x0000000000000000 0x1ea ./HW_Devices/eeprom.o + .debug_macro 0x0000000000000000 0x27 ./HW_Devices/eeprom.o + .debug_macro 0x0000000000000000 0x144 ./HW_Devices/eeprom.o + .debug_macro 0x0000000000000000 0x1bc ./HW_Devices/eeprom.o + .debug_macro 0x0000000000000000 0x30 ./HW_Devices/eeprom.o + .debug_macro 0x0000000000000000 0x3c ./HW_Devices/eeprom.o + .debug_macro 0x0000000000000000 0x57 ./HW_Devices/eeprom.o + .debug_macro 0x0000000000000000 0x88 ./HW_Devices/eeprom.o + .debug_macro 0x0000000000000000 0x24f ./HW_Devices/eeprom.o + .debug_macro 0x0000000000000000 0x356 ./HW_Devices/eeprom.o + .debug_macro 0x0000000000000000 0x287 ./HW_Devices/eeprom.o + .debug_macro 0x0000000000000000 0x141 ./HW_Devices/eeprom.o + .debug_macro 0x0000000000000000 0xb5 ./HW_Devices/eeprom.o + .debug_macro 0x0000000000000000 0x4c ./HW_Devices/eeprom.o + .group 0x0000000000000000 0xc ./HW_Devices/touch.o + .group 0x0000000000000000 0xc ./HW_Devices/touch.o .group 0x0000000000000000 0xc ./HW_Devices/touch.o .group 0x0000000000000000 0xc ./HW_Devices/touch.o .group 0x0000000000000000 0xc ./HW_Devices/touch.o @@ -2221,7 +2553,7 @@ Discarded input sections .data 0x0000000000000000 0x0 ./HW_Devices/touch.o .bss 0x0000000000000000 0x0 ./HW_Devices/touch.o .debug_macro 0x0000000000000000 0xa9c ./HW_Devices/touch.o - .debug_macro 0x0000000000000000 0x215 ./HW_Devices/touch.o + .debug_macro 0x0000000000000000 0x21b ./HW_Devices/touch.o .debug_macro 0x0000000000000000 0x2e ./HW_Devices/touch.o .debug_macro 0x0000000000000000 0x22 ./HW_Devices/touch.o .debug_macro 0x0000000000000000 0x22 ./HW_Devices/touch.o @@ -2253,6 +2585,7 @@ Discarded input sections .debug_macro 0x0000000000000000 0x88 ./HW_Devices/touch.o .debug_macro 0x0000000000000000 0x24f ./HW_Devices/touch.o .debug_macro 0x0000000000000000 0x356 ./HW_Devices/touch.o + .debug_macro 0x0000000000000000 0x287 ./HW_Devices/touch.o .debug_macro 0x0000000000000000 0x141 ./HW_Devices/touch.o .debug_macro 0x0000000000000000 0xb5 ./HW_Devices/touch.o .debug_macro 0x0000000000000000 0x4c ./HW_Devices/touch.o @@ -2294,11 +2627,13 @@ Discarded input sections .group 0x0000000000000000 0xc ./SW_APPs/Main_APP.o .group 0x0000000000000000 0xc ./SW_APPs/Main_APP.o .group 0x0000000000000000 0xc ./SW_APPs/Main_APP.o + .group 0x0000000000000000 0xc ./SW_APPs/Main_APP.o + .group 0x0000000000000000 0xc ./SW_APPs/Main_APP.o .text 0x0000000000000000 0x0 ./SW_APPs/Main_APP.o .data 0x0000000000000000 0x0 ./SW_APPs/Main_APP.o .bss 0x0000000000000000 0x0 ./SW_APPs/Main_APP.o .debug_macro 0x0000000000000000 0xa9c ./SW_APPs/Main_APP.o - .debug_macro 0x0000000000000000 0x215 ./SW_APPs/Main_APP.o + .debug_macro 0x0000000000000000 0x21b ./SW_APPs/Main_APP.o .debug_macro 0x0000000000000000 0x2e ./SW_APPs/Main_APP.o .debug_macro 0x0000000000000000 0x22 ./SW_APPs/Main_APP.o .debug_macro 0x0000000000000000 0x22 ./SW_APPs/Main_APP.o @@ -2330,10 +2665,12 @@ Discarded input sections .debug_macro 0x0000000000000000 0x88 ./SW_APPs/Main_APP.o .debug_macro 0x0000000000000000 0x24f ./SW_APPs/Main_APP.o .debug_macro 0x0000000000000000 0x356 ./SW_APPs/Main_APP.o + .debug_macro 0x0000000000000000 0x287 ./SW_APPs/Main_APP.o .debug_macro 0x0000000000000000 0x141 ./SW_APPs/Main_APP.o .debug_macro 0x0000000000000000 0xb5 ./SW_APPs/Main_APP.o .debug_macro 0x0000000000000000 0x4c ./SW_APPs/Main_APP.o .debug_macro 0x0000000000000000 0x38b ./SW_APPs/Main_APP.o + .debug_macro 0x0000000000000000 0x10 ./SW_APPs/Main_APP.o COMMON 0x0000000000000000 0x8 ./SW_APPs/Main_APP.o .group 0x0000000000000000 0xc ./SW_APPs/windows.o .group 0x0000000000000000 0xc ./SW_APPs/windows.o @@ -2372,6 +2709,7 @@ Discarded input sections .group 0x0000000000000000 0xc ./SW_APPs/windows.o .group 0x0000000000000000 0xc ./SW_APPs/windows.o .group 0x0000000000000000 0xc ./SW_APPs/windows.o + .group 0x0000000000000000 0xc ./SW_APPs/windows.o .text 0x0000000000000000 0x0 ./SW_APPs/windows.o .data 0x0000000000000000 0x0 ./SW_APPs/windows.o .bss 0x0000000000000000 0x0 ./SW_APPs/windows.o @@ -2382,7 +2720,7 @@ Discarded input sections .text.Set_Windows_XY_BY_ACC 0x0000000000000000 0x36 ./SW_APPs/windows.o .debug_macro 0x0000000000000000 0xa9c ./SW_APPs/windows.o - .debug_macro 0x0000000000000000 0x215 ./SW_APPs/windows.o + .debug_macro 0x0000000000000000 0x21b ./SW_APPs/windows.o .debug_macro 0x0000000000000000 0x2e ./SW_APPs/windows.o .debug_macro 0x0000000000000000 0x22 ./SW_APPs/windows.o .debug_macro 0x0000000000000000 0x22 ./SW_APPs/windows.o @@ -2414,6 +2752,7 @@ Discarded input sections .debug_macro 0x0000000000000000 0x88 ./SW_APPs/windows.o .debug_macro 0x0000000000000000 0x24f ./SW_APPs/windows.o .debug_macro 0x0000000000000000 0x356 ./SW_APPs/windows.o + .debug_macro 0x0000000000000000 0x287 ./SW_APPs/windows.o .debug_macro 0x0000000000000000 0x141 ./SW_APPs/windows.o .debug_macro 0x0000000000000000 0xb5 ./SW_APPs/windows.o .debug_macro 0x0000000000000000 0x4c ./SW_APPs/windows.o @@ -2436,7 +2775,6 @@ Discarded input sections .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/../../../../arm-none-eabi/lib/thumb/v7-m/nofp/libc_nano.a(lib_a-malloc.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/../../../../arm-none-eabi/lib/thumb/v7-m/nofp/libc_nano.a(lib_a-malloc.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/v7-m/nofp/libc_nano.a(lib_a-malloc.o) - .text.free 0x0000000000000000 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/v7-m/nofp/libc_nano.a(lib_a-malloc.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/../../../../arm-none-eabi/lib/thumb/v7-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/../../../../arm-none-eabi/lib/thumb/v7-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/v7-m/nofp/libc_nano.a(lib_a-memset.o) @@ -2727,6 +3065,7 @@ LOAD ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.o LOAD ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash_ex.o LOAD ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio.o LOAD ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio_ex.o +LOAD ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o LOAD ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_pwr.o LOAD ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.o LOAD ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc_ex.o @@ -2735,6 +3074,7 @@ LOAD ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim.o LOAD ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim_ex.o LOAD ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_fsmc.o LOAD ./HW_Devices/LCD.o +LOAD ./HW_Devices/eeprom.o LOAD ./HW_Devices/touch.o LOAD ./SW_APPs/Main_APP.o LOAD ./SW_APPs/windows.o @@ -2769,7 +3109,7 @@ LOAD /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.id 0x0000000008000000 g_pfnVectors 0x00000000080001e4 . = ALIGN (0x4) -.text 0x00000000080001e8 0x6d90 +.text 0x00000000080001e8 0x80e8 0x00000000080001e8 . = ALIGN (0x4) *(.text) .text 0x00000000080001e8 0x40 /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/v7-m/nofp/crtbegin.o @@ -2844,651 +3184,710 @@ LOAD /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.id 0x00000000080010bc __fixsfsi 0x00000000080010bc __aeabi_f2iz *(.text*) - .text.main 0x0000000008001108 0x1a ./Core/Src/main.o + .text.main 0x0000000008001108 0x1e ./Core/Src/main.o 0x0000000008001108 main .text.SystemClock_Config - 0x0000000008001122 0x8a ./Core/Src/main.o - 0x0000000008001122 SystemClock_Config + 0x0000000008001126 0x8a ./Core/Src/main.o + 0x0000000008001126 SystemClock_Config + .text.MX_I2C2_Init + 0x00000000080011b0 0x5c ./Core/Src/main.o .text.MX_GPIO_Init - 0x00000000080011ac 0x130 ./Core/Src/main.o + 0x000000000800120c 0x130 ./Core/Src/main.o .text.MX_FSMC_Init - 0x00000000080012dc 0xc8 ./Core/Src/main.o + 0x000000000800133c 0xc8 ./Core/Src/main.o .text.Error_Handler - 0x00000000080013a4 0xa ./Core/Src/main.o - 0x00000000080013a4 Error_Handler - *fill* 0x00000000080013ae 0x2 + 0x0000000008001404 0xa ./Core/Src/main.o + 0x0000000008001404 Error_Handler + *fill* 0x000000000800140e 0x2 .text.HAL_MspInit - 0x00000000080013b0 0x64 ./Core/Src/stm32f1xx_hal_msp.o - 0x00000000080013b0 HAL_MspInit + 0x0000000008001410 0x64 ./Core/Src/stm32f1xx_hal_msp.o + 0x0000000008001410 HAL_MspInit + .text.HAL_I2C_MspInit + 0x0000000008001474 0x80 ./Core/Src/stm32f1xx_hal_msp.o + 0x0000000008001474 HAL_I2C_MspInit .text.HAL_FSMC_MspInit - 0x0000000008001414 0xa8 ./Core/Src/stm32f1xx_hal_msp.o + 0x00000000080014f4 0xa8 ./Core/Src/stm32f1xx_hal_msp.o .text.HAL_SRAM_MspInit - 0x00000000080014bc 0x14 ./Core/Src/stm32f1xx_hal_msp.o - 0x00000000080014bc HAL_SRAM_MspInit + 0x000000000800159c 0x14 ./Core/Src/stm32f1xx_hal_msp.o + 0x000000000800159c HAL_SRAM_MspInit .text.NMI_Handler - 0x00000000080014d0 0x6 ./Core/Src/stm32f1xx_it.o - 0x00000000080014d0 NMI_Handler + 0x00000000080015b0 0x6 ./Core/Src/stm32f1xx_it.o + 0x00000000080015b0 NMI_Handler .text.HardFault_Handler - 0x00000000080014d6 0x6 ./Core/Src/stm32f1xx_it.o - 0x00000000080014d6 HardFault_Handler + 0x00000000080015b6 0x6 ./Core/Src/stm32f1xx_it.o + 0x00000000080015b6 HardFault_Handler .text.MemManage_Handler - 0x00000000080014dc 0x6 ./Core/Src/stm32f1xx_it.o - 0x00000000080014dc MemManage_Handler + 0x00000000080015bc 0x6 ./Core/Src/stm32f1xx_it.o + 0x00000000080015bc MemManage_Handler .text.BusFault_Handler - 0x00000000080014e2 0x6 ./Core/Src/stm32f1xx_it.o - 0x00000000080014e2 BusFault_Handler + 0x00000000080015c2 0x6 ./Core/Src/stm32f1xx_it.o + 0x00000000080015c2 BusFault_Handler .text.UsageFault_Handler - 0x00000000080014e8 0x6 ./Core/Src/stm32f1xx_it.o - 0x00000000080014e8 UsageFault_Handler + 0x00000000080015c8 0x6 ./Core/Src/stm32f1xx_it.o + 0x00000000080015c8 UsageFault_Handler .text.SVC_Handler - 0x00000000080014ee 0xc ./Core/Src/stm32f1xx_it.o - 0x00000000080014ee SVC_Handler + 0x00000000080015ce 0xc ./Core/Src/stm32f1xx_it.o + 0x00000000080015ce SVC_Handler .text.DebugMon_Handler - 0x00000000080014fa 0xc ./Core/Src/stm32f1xx_it.o - 0x00000000080014fa DebugMon_Handler + 0x00000000080015da 0xc ./Core/Src/stm32f1xx_it.o + 0x00000000080015da DebugMon_Handler .text.PendSV_Handler - 0x0000000008001506 0xc ./Core/Src/stm32f1xx_it.o - 0x0000000008001506 PendSV_Handler + 0x00000000080015e6 0xc ./Core/Src/stm32f1xx_it.o + 0x00000000080015e6 PendSV_Handler .text.SysTick_Handler - 0x0000000008001512 0xc ./Core/Src/stm32f1xx_it.o - 0x0000000008001512 SysTick_Handler - .text._getpid 0x000000000800151e 0xe ./Core/Src/syscalls.o - 0x000000000800151e _getpid - .text._kill 0x000000000800152c 0x20 ./Core/Src/syscalls.o - 0x000000000800152c _kill - .text._exit 0x000000000800154c 0x14 ./Core/Src/syscalls.o - 0x000000000800154c _exit - .text._read 0x0000000008001560 0x3a ./Core/Src/syscalls.o - 0x0000000008001560 _read - .text._write 0x000000000800159a 0x38 ./Core/Src/syscalls.o - 0x000000000800159a _write - .text._close 0x00000000080015d2 0x16 ./Core/Src/syscalls.o - 0x00000000080015d2 _close - .text._fstat 0x00000000080015e8 0x1e ./Core/Src/syscalls.o - 0x00000000080015e8 _fstat - .text._isatty 0x0000000008001606 0x14 ./Core/Src/syscalls.o - 0x0000000008001606 _isatty - .text._lseek 0x000000000800161a 0x18 ./Core/Src/syscalls.o - 0x000000000800161a _lseek - *fill* 0x0000000008001632 0x2 - .text._sbrk 0x0000000008001634 0x6c ./Core/Src/sysmem.o - 0x0000000008001634 _sbrk + 0x00000000080015f2 0xc ./Core/Src/stm32f1xx_it.o + 0x00000000080015f2 SysTick_Handler + .text._getpid 0x00000000080015fe 0xe ./Core/Src/syscalls.o + 0x00000000080015fe _getpid + .text._kill 0x000000000800160c 0x20 ./Core/Src/syscalls.o + 0x000000000800160c _kill + .text._exit 0x000000000800162c 0x14 ./Core/Src/syscalls.o + 0x000000000800162c _exit + .text._read 0x0000000008001640 0x3a ./Core/Src/syscalls.o + 0x0000000008001640 _read + .text._write 0x000000000800167a 0x38 ./Core/Src/syscalls.o + 0x000000000800167a _write + .text._close 0x00000000080016b2 0x16 ./Core/Src/syscalls.o + 0x00000000080016b2 _close + .text._fstat 0x00000000080016c8 0x1e ./Core/Src/syscalls.o + 0x00000000080016c8 _fstat + .text._isatty 0x00000000080016e6 0x14 ./Core/Src/syscalls.o + 0x00000000080016e6 _isatty + .text._lseek 0x00000000080016fa 0x18 ./Core/Src/syscalls.o + 0x00000000080016fa _lseek + *fill* 0x0000000008001712 0x2 + .text._sbrk 0x0000000008001714 0x6c ./Core/Src/sysmem.o + 0x0000000008001714 _sbrk .text.SystemInit - 0x00000000080016a0 0xc ./Core/Src/system_stm32f1xx.o - 0x00000000080016a0 SystemInit + 0x0000000008001780 0xc ./Core/Src/system_stm32f1xx.o + 0x0000000008001780 SystemInit .text.Reset_Handler - 0x00000000080016ac 0x48 ./Core/Startup/startup_stm32f103zetx.o - 0x00000000080016ac Reset_Handler + 0x000000000800178c 0x48 ./Core/Startup/startup_stm32f103zetx.o + 0x000000000800178c Reset_Handler .text.Default_Handler - 0x00000000080016f4 0x2 ./Core/Startup/startup_stm32f103zetx.o - 0x00000000080016f4 DMA2_Channel3_IRQHandler - 0x00000000080016f4 EXTI2_IRQHandler - 0x00000000080016f4 TIM8_TRG_COM_IRQHandler - 0x00000000080016f4 TIM8_CC_IRQHandler - 0x00000000080016f4 TIM1_CC_IRQHandler - 0x00000000080016f4 TIM6_IRQHandler - 0x00000000080016f4 PVD_IRQHandler - 0x00000000080016f4 SDIO_IRQHandler - 0x00000000080016f4 EXTI3_IRQHandler - 0x00000000080016f4 EXTI0_IRQHandler - 0x00000000080016f4 I2C2_EV_IRQHandler - 0x00000000080016f4 ADC1_2_IRQHandler - 0x00000000080016f4 SPI1_IRQHandler - 0x00000000080016f4 TAMPER_IRQHandler - 0x00000000080016f4 TIM8_UP_IRQHandler - 0x00000000080016f4 DMA2_Channel2_IRQHandler - 0x00000000080016f4 DMA1_Channel4_IRQHandler - 0x00000000080016f4 USART3_IRQHandler - 0x00000000080016f4 RTC_IRQHandler - 0x00000000080016f4 DMA1_Channel7_IRQHandler - 0x00000000080016f4 CAN1_RX1_IRQHandler - 0x00000000080016f4 UART5_IRQHandler - 0x00000000080016f4 ADC3_IRQHandler - 0x00000000080016f4 TIM4_IRQHandler - 0x00000000080016f4 DMA2_Channel1_IRQHandler - 0x00000000080016f4 I2C1_EV_IRQHandler - 0x00000000080016f4 DMA1_Channel6_IRQHandler - 0x00000000080016f4 UART4_IRQHandler - 0x00000000080016f4 TIM3_IRQHandler - 0x00000000080016f4 RCC_IRQHandler - 0x00000000080016f4 TIM1_TRG_COM_IRQHandler - 0x00000000080016f4 DMA1_Channel1_IRQHandler - 0x00000000080016f4 Default_Handler - 0x00000000080016f4 EXTI15_10_IRQHandler - 0x00000000080016f4 TIM7_IRQHandler - 0x00000000080016f4 TIM5_IRQHandler - 0x00000000080016f4 EXTI9_5_IRQHandler - 0x00000000080016f4 SPI2_IRQHandler - 0x00000000080016f4 DMA1_Channel5_IRQHandler - 0x00000000080016f4 EXTI4_IRQHandler - 0x00000000080016f4 USB_LP_CAN1_RX0_IRQHandler - 0x00000000080016f4 USB_HP_CAN1_TX_IRQHandler - 0x00000000080016f4 DMA1_Channel3_IRQHandler - 0x00000000080016f4 FSMC_IRQHandler - 0x00000000080016f4 TIM1_UP_IRQHandler - 0x00000000080016f4 WWDG_IRQHandler - 0x00000000080016f4 TIM2_IRQHandler - 0x00000000080016f4 TIM1_BRK_IRQHandler - 0x00000000080016f4 EXTI1_IRQHandler - 0x00000000080016f4 DMA2_Channel4_5_IRQHandler - 0x00000000080016f4 USART2_IRQHandler - 0x00000000080016f4 I2C2_ER_IRQHandler - 0x00000000080016f4 DMA1_Channel2_IRQHandler - 0x00000000080016f4 TIM8_BRK_IRQHandler - 0x00000000080016f4 CAN1_SCE_IRQHandler - 0x00000000080016f4 FLASH_IRQHandler - 0x00000000080016f4 USART1_IRQHandler - 0x00000000080016f4 SPI3_IRQHandler - 0x00000000080016f4 I2C1_ER_IRQHandler - 0x00000000080016f4 USBWakeUp_IRQHandler - 0x00000000080016f4 RTC_Alarm_IRQHandler - *fill* 0x00000000080016f6 0x2 + 0x00000000080017d4 0x2 ./Core/Startup/startup_stm32f103zetx.o + 0x00000000080017d4 DMA2_Channel3_IRQHandler + 0x00000000080017d4 EXTI2_IRQHandler + 0x00000000080017d4 TIM8_TRG_COM_IRQHandler + 0x00000000080017d4 TIM8_CC_IRQHandler + 0x00000000080017d4 TIM1_CC_IRQHandler + 0x00000000080017d4 TIM6_IRQHandler + 0x00000000080017d4 PVD_IRQHandler + 0x00000000080017d4 SDIO_IRQHandler + 0x00000000080017d4 EXTI3_IRQHandler + 0x00000000080017d4 EXTI0_IRQHandler + 0x00000000080017d4 I2C2_EV_IRQHandler + 0x00000000080017d4 ADC1_2_IRQHandler + 0x00000000080017d4 SPI1_IRQHandler + 0x00000000080017d4 TAMPER_IRQHandler + 0x00000000080017d4 TIM8_UP_IRQHandler + 0x00000000080017d4 DMA2_Channel2_IRQHandler + 0x00000000080017d4 DMA1_Channel4_IRQHandler + 0x00000000080017d4 USART3_IRQHandler + 0x00000000080017d4 RTC_IRQHandler + 0x00000000080017d4 DMA1_Channel7_IRQHandler + 0x00000000080017d4 CAN1_RX1_IRQHandler + 0x00000000080017d4 UART5_IRQHandler + 0x00000000080017d4 ADC3_IRQHandler + 0x00000000080017d4 TIM4_IRQHandler + 0x00000000080017d4 DMA2_Channel1_IRQHandler + 0x00000000080017d4 I2C1_EV_IRQHandler + 0x00000000080017d4 DMA1_Channel6_IRQHandler + 0x00000000080017d4 UART4_IRQHandler + 0x00000000080017d4 TIM3_IRQHandler + 0x00000000080017d4 RCC_IRQHandler + 0x00000000080017d4 TIM1_TRG_COM_IRQHandler + 0x00000000080017d4 DMA1_Channel1_IRQHandler + 0x00000000080017d4 Default_Handler + 0x00000000080017d4 EXTI15_10_IRQHandler + 0x00000000080017d4 TIM7_IRQHandler + 0x00000000080017d4 TIM5_IRQHandler + 0x00000000080017d4 EXTI9_5_IRQHandler + 0x00000000080017d4 SPI2_IRQHandler + 0x00000000080017d4 DMA1_Channel5_IRQHandler + 0x00000000080017d4 EXTI4_IRQHandler + 0x00000000080017d4 USB_LP_CAN1_RX0_IRQHandler + 0x00000000080017d4 USB_HP_CAN1_TX_IRQHandler + 0x00000000080017d4 DMA1_Channel3_IRQHandler + 0x00000000080017d4 FSMC_IRQHandler + 0x00000000080017d4 TIM1_UP_IRQHandler + 0x00000000080017d4 WWDG_IRQHandler + 0x00000000080017d4 TIM2_IRQHandler + 0x00000000080017d4 TIM1_BRK_IRQHandler + 0x00000000080017d4 EXTI1_IRQHandler + 0x00000000080017d4 DMA2_Channel4_5_IRQHandler + 0x00000000080017d4 USART2_IRQHandler + 0x00000000080017d4 I2C2_ER_IRQHandler + 0x00000000080017d4 DMA1_Channel2_IRQHandler + 0x00000000080017d4 TIM8_BRK_IRQHandler + 0x00000000080017d4 CAN1_SCE_IRQHandler + 0x00000000080017d4 FLASH_IRQHandler + 0x00000000080017d4 USART1_IRQHandler + 0x00000000080017d4 SPI3_IRQHandler + 0x00000000080017d4 I2C1_ER_IRQHandler + 0x00000000080017d4 USBWakeUp_IRQHandler + 0x00000000080017d4 RTC_Alarm_IRQHandler + *fill* 0x00000000080017d6 0x2 .text.HAL_Init - 0x00000000080016f8 0x2c ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.o - 0x00000000080016f8 HAL_Init + 0x00000000080017d8 0x2c ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.o + 0x00000000080017d8 HAL_Init .text.HAL_InitTick - 0x0000000008001724 0x60 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.o - 0x0000000008001724 HAL_InitTick + 0x0000000008001804 0x60 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.o + 0x0000000008001804 HAL_InitTick .text.HAL_IncTick - 0x0000000008001784 0x24 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.o - 0x0000000008001784 HAL_IncTick + 0x0000000008001864 0x24 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.o + 0x0000000008001864 HAL_IncTick .text.HAL_GetTick - 0x00000000080017a8 0x14 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.o - 0x00000000080017a8 HAL_GetTick + 0x0000000008001888 0x14 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.o + 0x0000000008001888 HAL_GetTick .text.HAL_Delay - 0x00000000080017bc 0x48 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.o - 0x00000000080017bc HAL_Delay + 0x000000000800189c 0x48 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.o + 0x000000000800189c HAL_Delay .text.__NVIC_SetPriorityGrouping - 0x0000000008001804 0x48 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.o + 0x00000000080018e4 0x48 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.o .text.__NVIC_GetPriorityGrouping - 0x000000000800184c 0x1c ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.o + 0x000000000800192c 0x1c ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.o .text.__NVIC_SetPriority - 0x0000000008001868 0x54 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.o + 0x0000000008001948 0x54 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.o .text.NVIC_EncodePriority - 0x00000000080018bc 0x64 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.o + 0x000000000800199c 0x64 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.o .text.SysTick_Config - 0x0000000008001920 0x44 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.o + 0x0000000008001a00 0x44 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.o .text.HAL_NVIC_SetPriorityGrouping - 0x0000000008001964 0x16 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.o - 0x0000000008001964 HAL_NVIC_SetPriorityGrouping + 0x0000000008001a44 0x16 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.o + 0x0000000008001a44 HAL_NVIC_SetPriorityGrouping .text.HAL_NVIC_SetPriority - 0x000000000800197a 0x38 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.o - 0x000000000800197a HAL_NVIC_SetPriority + 0x0000000008001a5a 0x38 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.o + 0x0000000008001a5a HAL_NVIC_SetPriority .text.HAL_SYSTICK_Config - 0x00000000080019b2 0x18 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.o - 0x00000000080019b2 HAL_SYSTICK_Config - *fill* 0x00000000080019ca 0x2 + 0x0000000008001a92 0x18 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.o + 0x0000000008001a92 HAL_SYSTICK_Config + *fill* 0x0000000008001aaa 0x2 .text.HAL_GPIO_Init - 0x00000000080019cc 0x328 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio.o - 0x00000000080019cc HAL_GPIO_Init + 0x0000000008001aac 0x328 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio.o + 0x0000000008001aac HAL_GPIO_Init .text.HAL_GPIO_ReadPin - 0x0000000008001cf4 0x2e ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio.o - 0x0000000008001cf4 HAL_GPIO_ReadPin + 0x0000000008001dd4 0x2e ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio.o + 0x0000000008001dd4 HAL_GPIO_ReadPin .text.HAL_GPIO_WritePin - 0x0000000008001d22 0x30 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio.o - 0x0000000008001d22 HAL_GPIO_WritePin - *fill* 0x0000000008001d52 0x2 + 0x0000000008001e02 0x30 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio.o + 0x0000000008001e02 HAL_GPIO_WritePin + *fill* 0x0000000008001e32 0x2 + .text.HAL_I2C_Init + 0x0000000008001e34 0x288 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + 0x0000000008001e34 HAL_I2C_Init + .text.HAL_I2C_Mem_Write + 0x00000000080020bc 0x1f4 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + 0x00000000080020bc HAL_I2C_Mem_Write + .text.HAL_I2C_Mem_Read + 0x00000000080022b0 0x4d0 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + 0x00000000080022b0 HAL_I2C_Mem_Read + .text.I2C_RequestMemoryWrite + 0x0000000008002780 0x12c ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + .text.I2C_RequestMemoryRead + 0x00000000080028ac 0x1d0 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + .text.I2C_WaitOnFlagUntilTimeout + 0x0000000008002a7c 0xae ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + .text.I2C_WaitOnMasterAddressFlagUntilTimeout + 0x0000000008002b2a 0xfe ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + .text.I2C_WaitOnTXEFlagUntilTimeout + 0x0000000008002c28 0x82 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + .text.I2C_WaitOnBTFFlagUntilTimeout + 0x0000000008002caa 0x82 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + .text.I2C_WaitOnRXNEFlagUntilTimeout + 0x0000000008002d2c 0xac ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + .text.I2C_IsAcknowledgeFailed + 0x0000000008002dd8 0x5c ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o .text.HAL_RCC_OscConfig - 0x0000000008001d54 0x500 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.o - 0x0000000008001d54 HAL_RCC_OscConfig + 0x0000000008002e34 0x500 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.o + 0x0000000008002e34 HAL_RCC_OscConfig .text.HAL_RCC_ClockConfig - 0x0000000008002254 0x1d4 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.o - 0x0000000008002254 HAL_RCC_ClockConfig + 0x0000000008003334 0x1d4 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.o + 0x0000000008003334 HAL_RCC_ClockConfig .text.HAL_RCC_GetSysClockFreq - 0x0000000008002428 0xc0 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.o - 0x0000000008002428 HAL_RCC_GetSysClockFreq + 0x0000000008003508 0xc0 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.o + 0x0000000008003508 HAL_RCC_GetSysClockFreq + .text.HAL_RCC_GetHCLKFreq + 0x00000000080035c8 0x14 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.o + 0x00000000080035c8 HAL_RCC_GetHCLKFreq + .text.HAL_RCC_GetPCLK1Freq + 0x00000000080035dc 0x28 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.o + 0x00000000080035dc HAL_RCC_GetPCLK1Freq .text.RCC_Delay - 0x00000000080024e8 0x3c ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.o + 0x0000000008003604 0x3c ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.o .text.HAL_SRAM_Init - 0x0000000008002524 0x9a ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_sram.o - 0x0000000008002524 HAL_SRAM_Init - *fill* 0x00000000080025be 0x2 + 0x0000000008003640 0x9a ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_sram.o + 0x0000000008003640 HAL_SRAM_Init + *fill* 0x00000000080036da 0x2 .text.FSMC_NORSRAM_Init - 0x00000000080025c0 0xd4 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_fsmc.o - 0x00000000080025c0 FSMC_NORSRAM_Init + 0x00000000080036dc 0xd4 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_fsmc.o + 0x00000000080036dc FSMC_NORSRAM_Init .text.FSMC_NORSRAM_Timing_Init - 0x0000000008002694 0x68 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_fsmc.o - 0x0000000008002694 FSMC_NORSRAM_Timing_Init + 0x00000000080037b0 0x68 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_fsmc.o + 0x00000000080037b0 FSMC_NORSRAM_Timing_Init .text.FSMC_NORSRAM_Extended_Timing_Init - 0x00000000080026fc 0x70 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_fsmc.o - 0x00000000080026fc FSMC_NORSRAM_Extended_Timing_Init + 0x0000000008003818 0x70 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_fsmc.o + 0x0000000008003818 FSMC_NORSRAM_Extended_Timing_Init .text.LCD_WR_REG - 0x000000000800276c 0x1c ./HW_Devices/LCD.o - 0x000000000800276c LCD_WR_REG + 0x0000000008003888 0x1c ./HW_Devices/LCD.o + 0x0000000008003888 LCD_WR_REG .text.LCD_WR_DATA - 0x0000000008002788 0x20 ./HW_Devices/LCD.o - 0x0000000008002788 LCD_WR_DATA + 0x00000000080038a4 0x20 ./HW_Devices/LCD.o + 0x00000000080038a4 LCD_WR_DATA .text.LCD_WriteReg - 0x00000000080027a8 0x2c ./HW_Devices/LCD.o - 0x00000000080027a8 LCD_WriteReg + 0x00000000080038c4 0x2c ./HW_Devices/LCD.o + 0x00000000080038c4 LCD_WriteReg .text.LCD_ReadReg - 0x00000000080027d4 0x28 ./HW_Devices/LCD.o - 0x00000000080027d4 LCD_ReadReg + 0x00000000080038f0 0x28 ./HW_Devices/LCD.o + 0x00000000080038f0 LCD_ReadReg .text.LCD_Scan_Dir - 0x00000000080027fc 0x2dc ./HW_Devices/LCD.o - 0x00000000080027fc LCD_Scan_Dir + 0x0000000008003918 0x2dc ./HW_Devices/LCD.o + 0x0000000008003918 LCD_Scan_Dir .text.LCD_Display_Dir - 0x0000000008002ad8 0x18c ./HW_Devices/LCD.o - 0x0000000008002ad8 LCD_Display_Dir + 0x0000000008003bf4 0x18c ./HW_Devices/LCD.o + 0x0000000008003bf4 LCD_Display_Dir .text.LCDx_Init - 0x0000000008002c64 0x1ec ./HW_Devices/LCD.o - 0x0000000008002c64 LCDx_Init + 0x0000000008003d80 0x1ec ./HW_Devices/LCD.o + 0x0000000008003d80 LCDx_Init .text.LCD_SetCursor - 0x0000000008002e50 0x120 ./HW_Devices/LCD.o - 0x0000000008002e50 LCD_SetCursor + 0x0000000008003f6c 0x120 ./HW_Devices/LCD.o + 0x0000000008003f6c LCD_SetCursor .text.LCD_set_dot - 0x0000000008002f70 0x40 ./HW_Devices/LCD.o - 0x0000000008002f70 LCD_set_dot + 0x000000000800408c 0x40 ./HW_Devices/LCD.o + 0x000000000800408c LCD_set_dot .text.LCD_Clear - 0x0000000008002fb0 0xa4 ./HW_Devices/LCD.o - 0x0000000008002fb0 LCD_Clear + 0x00000000080040cc 0xa4 ./HW_Devices/LCD.o + 0x00000000080040cc LCD_Clear .text.LCD_DrawLine - 0x0000000008003054 0x10a ./HW_Devices/LCD.o - 0x0000000008003054 LCD_DrawLine + 0x0000000008004170 0x10a ./HW_Devices/LCD.o + 0x0000000008004170 LCD_DrawLine .text.Draw_Circle - 0x000000000800315e 0x156 ./HW_Devices/LCD.o - 0x000000000800315e Draw_Circle + 0x000000000800427a 0x156 ./HW_Devices/LCD.o + 0x000000000800427a Draw_Circle .text.LCD_ShowChar - 0x00000000080032b4 0xf8 ./HW_Devices/LCD.o - 0x00000000080032b4 LCD_ShowChar + 0x00000000080043d0 0xf8 ./HW_Devices/LCD.o + 0x00000000080043d0 LCD_ShowChar .text.LCD_ShowString - 0x00000000080033ac 0x7c ./HW_Devices/LCD.o - 0x00000000080033ac LCD_ShowString + 0x00000000080044c8 0x7c ./HW_Devices/LCD.o + 0x00000000080044c8 LCD_ShowString + .text.IIC_SAND_DATE + 0x0000000008004544 0x3c ./HW_Devices/eeprom.o + 0x0000000008004544 IIC_SAND_DATE + .text.IIC_READ_DATE + 0x0000000008004580 0x3c ./HW_Devices/eeprom.o + 0x0000000008004580 IIC_READ_DATE + .text.EPPROM_SLOWWRITE_INIT + 0x00000000080045bc 0x34 ./HW_Devices/eeprom.o + 0x00000000080045bc EPPROM_SLOWWRITE_INIT + .text.EEPROM_SLOWWRITE_SERVER + 0x00000000080045f0 0x8c ./HW_Devices/eeprom.o + 0x00000000080045f0 EEPROM_SLOWWRITE_SERVER + .text.EEPROM_READ_BATY + 0x000000000800467c 0x24 ./HW_Devices/eeprom.o + 0x000000000800467c EEPROM_READ_BATY + .text.EEPROM_WRITE_BATY + 0x00000000080046a0 0x8c ./HW_Devices/eeprom.o + 0x00000000080046a0 EEPROM_WRITE_BATY .text.TP_Write_Byte - 0x0000000008003428 0x6c ./HW_Devices/touch.o - 0x0000000008003428 TP_Write_Byte + 0x000000000800472c 0x6c ./HW_Devices/touch.o + 0x000000000800472c TP_Write_Byte .text.TP_Read_AD - 0x0000000008003494 0xc8 ./HW_Devices/touch.o - 0x0000000008003494 TP_Read_AD + 0x0000000008004798 0xc8 ./HW_Devices/touch.o + 0x0000000008004798 TP_Read_AD .text.TP_Read_XOY - 0x000000000800355c 0x104 ./HW_Devices/touch.o - 0x000000000800355c TP_Read_XOY + 0x0000000008004860 0x104 ./HW_Devices/touch.o + 0x0000000008004860 TP_Read_XOY .text.TP_Read_XY_ADC - 0x0000000008003660 0x32 ./HW_Devices/touch.o - 0x0000000008003660 TP_Read_XY_ADC + 0x0000000008004964 0x32 ./HW_Devices/touch.o + 0x0000000008004964 TP_Read_XY_ADC .text.TP_Read_XY2 - 0x0000000008003692 0xd0 ./HW_Devices/touch.o - 0x0000000008003692 TP_Read_XY2 - *fill* 0x0000000008003762 0x2 + 0x0000000008004996 0xd0 ./HW_Devices/touch.o + 0x0000000008004996 TP_Read_XY2 + *fill* 0x0000000008004a66 0x2 .text.TP_Server - 0x0000000008003764 0xac ./HW_Devices/touch.o - 0x0000000008003764 TP_Server + 0x0000000008004a68 0xac ./HW_Devices/touch.o + 0x0000000008004a68 TP_Server .text.TP_DrwaTrage - 0x0000000008003810 0xb8 ./HW_Devices/touch.o - 0x0000000008003810 TP_DrwaTrage + 0x0000000008004b14 0xb8 ./HW_Devices/touch.o + 0x0000000008004b14 TP_DrwaTrage .text.TP_adjustment - 0x00000000080038c8 0x55c ./HW_Devices/touch.o - 0x00000000080038c8 TP_adjustment + 0x0000000008004bcc 0x594 ./HW_Devices/touch.o + 0x0000000008004bcc TP_adjustment .text.main_app - 0x0000000008003e24 0xc8 ./SW_APPs/Main_APP.o - 0x0000000008003e24 main_app + 0x0000000008005160 0xd0 ./SW_APPs/Main_APP.o + 0x0000000008005160 main_app .text.Inteface_SetCursor - 0x0000000008003eec 0x34 ./SW_APPs/windows.o - 0x0000000008003eec Inteface_SetCursor + 0x0000000008005230 0x34 ./SW_APPs/windows.o + 0x0000000008005230 Inteface_SetCursor .text.Inteface_SetColor - 0x0000000008003f20 0x20 ./SW_APPs/windows.o - 0x0000000008003f20 Inteface_SetColor - .text.UI_Init 0x0000000008003f40 0x3e ./SW_APPs/windows.o - 0x0000000008003f40 UI_Init + 0x0000000008005264 0x20 ./SW_APPs/windows.o + 0x0000000008005264 Inteface_SetColor + .text.UI_Init 0x0000000008005284 0x3e ./SW_APPs/windows.o + 0x0000000008005284 UI_Init .text.New_Window - 0x0000000008003f7e 0xd2 ./SW_APPs/windows.o - 0x0000000008003f7e New_Window + 0x00000000080052c2 0xd2 ./SW_APPs/windows.o + 0x00000000080052c2 New_Window .text.Refresh_UI - 0x0000000008004050 0x17a ./SW_APPs/windows.o - 0x0000000008004050 Refresh_UI - *fill* 0x00000000080041ca 0x2 - .text.__errno 0x00000000080041cc 0xc /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/v7-m/nofp/libc_nano.a(lib_a-errno.o) - 0x00000000080041cc __errno + 0x0000000008005394 0x17a ./SW_APPs/windows.o + 0x0000000008005394 Refresh_UI + *fill* 0x000000000800550e 0x2 + .text.__errno 0x0000000008005510 0xc /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/v7-m/nofp/libc_nano.a(lib_a-errno.o) + 0x0000000008005510 __errno .text.__libc_init_array - 0x00000000080041d8 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/v7-m/nofp/libc_nano.a(lib_a-init.o) - 0x00000000080041d8 __libc_init_array - .text.malloc 0x0000000008004220 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/v7-m/nofp/libc_nano.a(lib_a-malloc.o) - 0x0000000008004220 malloc - .text.memset 0x0000000008004230 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/v7-m/nofp/libc_nano.a(lib_a-memset.o) - 0x0000000008004230 memset - .text._free_r 0x0000000008004240 0x98 /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/v7-m/nofp/libc_nano.a(lib_a-nano-freer.o) - 0x0000000008004240 _free_r + 0x000000000800551c 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/v7-m/nofp/libc_nano.a(lib_a-init.o) + 0x000000000800551c __libc_init_array + .text.malloc 0x0000000008005564 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/v7-m/nofp/libc_nano.a(lib_a-malloc.o) + 0x0000000008005564 malloc + .text.free 0x0000000008005574 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/v7-m/nofp/libc_nano.a(lib_a-malloc.o) + 0x0000000008005574 free + .text.memset 0x0000000008005584 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/v7-m/nofp/libc_nano.a(lib_a-memset.o) + 0x0000000008005584 memset + .text._free_r 0x0000000008005594 0x98 /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/v7-m/nofp/libc_nano.a(lib_a-nano-freer.o) + 0x0000000008005594 _free_r .text._malloc_r - 0x00000000080042d8 0xb4 /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/v7-m/nofp/libc_nano.a(lib_a-nano-mallocr.o) - 0x00000000080042d8 _malloc_r - .text.__cvt 0x000000000800438c 0xbe /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/v7-m/nofp/libc_nano.a(lib_a-nano-vfprintf_float.o) - 0x000000000800438c __cvt + 0x000000000800562c 0xb4 /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/v7-m/nofp/libc_nano.a(lib_a-nano-mallocr.o) + 0x000000000800562c _malloc_r + .text.__cvt 0x00000000080056e0 0xbe /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/v7-m/nofp/libc_nano.a(lib_a-nano-vfprintf_float.o) + 0x00000000080056e0 __cvt .text.__exponent - 0x000000000800444a 0x7c /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/v7-m/nofp/libc_nano.a(lib_a-nano-vfprintf_float.o) - 0x000000000800444a __exponent - *fill* 0x00000000080044c6 0x2 + 0x000000000800579e 0x7c /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/v7-m/nofp/libc_nano.a(lib_a-nano-vfprintf_float.o) + 0x000000000800579e __exponent + *fill* 0x000000000800581a 0x2 .text._printf_float - 0x00000000080044c8 0x458 /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/v7-m/nofp/libc_nano.a(lib_a-nano-vfprintf_float.o) - 0x00000000080044c8 _printf_float + 0x000000000800581c 0x458 /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/v7-m/nofp/libc_nano.a(lib_a-nano-vfprintf_float.o) + 0x000000000800581c _printf_float .text._printf_common - 0x0000000008004920 0xde /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/v7-m/nofp/libc_nano.a(lib_a-nano-vfprintf_i.o) - 0x0000000008004920 _printf_common - *fill* 0x00000000080049fe 0x2 + 0x0000000008005c74 0xde /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/v7-m/nofp/libc_nano.a(lib_a-nano-vfprintf_i.o) + 0x0000000008005c74 _printf_common + *fill* 0x0000000008005d52 0x2 .text._printf_i - 0x0000000008004a00 0x24c /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/v7-m/nofp/libc_nano.a(lib_a-nano-vfprintf_i.o) - 0x0000000008004a00 _printf_i - .text._sbrk_r 0x0000000008004c4c 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/v7-m/nofp/libc_nano.a(lib_a-sbrkr.o) - 0x0000000008004c4c _sbrk_r - .text.sprintf 0x0000000008004c6c 0x40 /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/v7-m/nofp/libc_nano.a(lib_a-sprintf.o) - 0x0000000008004c6c sprintf - 0x0000000008004c6c siprintf - .text.quorem 0x0000000008004cac 0x11a /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/v7-m/nofp/libc_nano.a(lib_a-dtoa.o) - *fill* 0x0000000008004dc6 0x2 - .text._dtoa_r 0x0000000008004dc8 0xbdc /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/v7-m/nofp/libc_nano.a(lib_a-dtoa.o) - 0x0000000008004dc8 _dtoa_r + 0x0000000008005d54 0x24c /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/v7-m/nofp/libc_nano.a(lib_a-nano-vfprintf_i.o) + 0x0000000008005d54 _printf_i + .text._sbrk_r 0x0000000008005fa0 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/v7-m/nofp/libc_nano.a(lib_a-sbrkr.o) + 0x0000000008005fa0 _sbrk_r + .text.sprintf 0x0000000008005fc0 0x40 /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/v7-m/nofp/libc_nano.a(lib_a-sprintf.o) + 0x0000000008005fc0 sprintf + 0x0000000008005fc0 siprintf + .text.quorem 0x0000000008006000 0x11a /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/v7-m/nofp/libc_nano.a(lib_a-dtoa.o) + *fill* 0x000000000800611a 0x6 + .text._dtoa_r 0x0000000008006120 0xbdc /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/v7-m/nofp/libc_nano.a(lib_a-dtoa.o) + 0x0000000008006120 _dtoa_r .text._localeconv_r - 0x00000000080059a4 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/../../../../arm-none-eabi/lib/thumb/v7-m/nofp/libc_nano.a(lib_a-localeconv.o) - 0x00000000080059a4 _localeconv_r - .text.memchr 0x00000000080059ac 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/../../../../arm-none-eabi/lib/thumb/v7-m/nofp/libc_nano.a(lib_a-memchr-stub.o) - 0x00000000080059ac memchr - .text.memcpy 0x00000000080059c8 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/../../../../arm-none-eabi/lib/thumb/v7-m/nofp/libc_nano.a(lib_a-memcpy-stub.o) - 0x00000000080059c8 memcpy + 0x0000000008006cfc 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/../../../../arm-none-eabi/lib/thumb/v7-m/nofp/libc_nano.a(lib_a-localeconv.o) + 0x0000000008006cfc _localeconv_r + .text.memchr 0x0000000008006d04 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/../../../../arm-none-eabi/lib/thumb/v7-m/nofp/libc_nano.a(lib_a-memchr-stub.o) + 0x0000000008006d04 memchr + .text.memcpy 0x0000000008006d20 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/../../../../arm-none-eabi/lib/thumb/v7-m/nofp/libc_nano.a(lib_a-memcpy-stub.o) + 0x0000000008006d20 memcpy .text.__malloc_lock - 0x00000000080059e4 0xc /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/v7-m/nofp/libc_nano.a(lib_a-mlock.o) - 0x00000000080059e4 __malloc_lock + 0x0000000008006d3c 0xc /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/v7-m/nofp/libc_nano.a(lib_a-mlock.o) + 0x0000000008006d3c __malloc_lock .text.__malloc_unlock - 0x00000000080059f0 0xc /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/v7-m/nofp/libc_nano.a(lib_a-mlock.o) - 0x00000000080059f0 __malloc_unlock - .text._Balloc 0x00000000080059fc 0x80 /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/v7-m/nofp/libc_nano.a(lib_a-mprec.o) - 0x00000000080059fc _Balloc - .text._Bfree 0x0000000008005a7c 0x44 /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/v7-m/nofp/libc_nano.a(lib_a-mprec.o) - 0x0000000008005a7c _Bfree + 0x0000000008006d48 0xc /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/v7-m/nofp/libc_nano.a(lib_a-mlock.o) + 0x0000000008006d48 __malloc_unlock + .text._Balloc 0x0000000008006d54 0x80 /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/v7-m/nofp/libc_nano.a(lib_a-mprec.o) + 0x0000000008006d54 _Balloc + .text._Bfree 0x0000000008006dd4 0x44 /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/v7-m/nofp/libc_nano.a(lib_a-mprec.o) + 0x0000000008006dd4 _Bfree .text.__multadd - 0x0000000008005ac0 0x94 /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/v7-m/nofp/libc_nano.a(lib_a-mprec.o) - 0x0000000008005ac0 __multadd + 0x0000000008006e18 0x94 /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/v7-m/nofp/libc_nano.a(lib_a-mprec.o) + 0x0000000008006e18 __multadd .text.__hi0bits - 0x0000000008005b54 0x40 /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/v7-m/nofp/libc_nano.a(lib_a-mprec.o) - 0x0000000008005b54 __hi0bits + 0x0000000008006eac 0x40 /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/v7-m/nofp/libc_nano.a(lib_a-mprec.o) + 0x0000000008006eac __hi0bits .text.__lo0bits - 0x0000000008005b94 0x5c /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/v7-m/nofp/libc_nano.a(lib_a-mprec.o) - 0x0000000008005b94 __lo0bits - .text.__i2b 0x0000000008005bf0 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/v7-m/nofp/libc_nano.a(lib_a-mprec.o) - 0x0000000008005bf0 __i2b + 0x0000000008006eec 0x5c /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/v7-m/nofp/libc_nano.a(lib_a-mprec.o) + 0x0000000008006eec __lo0bits + .text.__i2b 0x0000000008006f48 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/v7-m/nofp/libc_nano.a(lib_a-mprec.o) + 0x0000000008006f48 __i2b .text.__multiply - 0x0000000008005c1c 0x148 /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/v7-m/nofp/libc_nano.a(lib_a-mprec.o) - 0x0000000008005c1c __multiply + 0x0000000008006f74 0x148 /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/v7-m/nofp/libc_nano.a(lib_a-mprec.o) + 0x0000000008006f74 __multiply .text.__pow5mult - 0x0000000008005d64 0xb4 /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/v7-m/nofp/libc_nano.a(lib_a-mprec.o) - 0x0000000008005d64 __pow5mult + 0x00000000080070bc 0xb4 /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/v7-m/nofp/libc_nano.a(lib_a-mprec.o) + 0x00000000080070bc __pow5mult .text.__lshift - 0x0000000008005e18 0xd8 /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/v7-m/nofp/libc_nano.a(lib_a-mprec.o) - 0x0000000008005e18 __lshift - .text.__mcmp 0x0000000008005ef0 0x36 /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/v7-m/nofp/libc_nano.a(lib_a-mprec.o) - 0x0000000008005ef0 __mcmp - *fill* 0x0000000008005f26 0x2 - .text.__mdiff 0x0000000008005f28 0x120 /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/v7-m/nofp/libc_nano.a(lib_a-mprec.o) - 0x0000000008005f28 __mdiff - .text.__d2b 0x0000000008006048 0xb8 /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/v7-m/nofp/libc_nano.a(lib_a-mprec.o) - 0x0000000008006048 __d2b + 0x0000000008007170 0xd8 /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/v7-m/nofp/libc_nano.a(lib_a-mprec.o) + 0x0000000008007170 __lshift + .text.__mcmp 0x0000000008007248 0x36 /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/v7-m/nofp/libc_nano.a(lib_a-mprec.o) + 0x0000000008007248 __mcmp + *fill* 0x000000000800727e 0x2 + .text.__mdiff 0x0000000008007280 0x120 /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/v7-m/nofp/libc_nano.a(lib_a-mprec.o) + 0x0000000008007280 __mdiff + .text.__d2b 0x00000000080073a0 0xb8 /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/v7-m/nofp/libc_nano.a(lib_a-mprec.o) + 0x00000000080073a0 __d2b .text._calloc_r - 0x0000000008006100 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/../../../../arm-none-eabi/lib/thumb/v7-m/nofp/libc_nano.a(lib_a-nano-callocr.o) - 0x0000000008006100 _calloc_r + 0x0000000008007458 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/../../../../arm-none-eabi/lib/thumb/v7-m/nofp/libc_nano.a(lib_a-nano-callocr.o) + 0x0000000008007458 _calloc_r .text.__ssputs_r - 0x000000000800611c 0xb6 /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/v7-m/nofp/libc_nano.a(lib_a-nano-svfprintf.o) - 0x000000000800611c __ssputs_r - *fill* 0x00000000080061d2 0x2 + 0x0000000008007474 0xb6 /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/v7-m/nofp/libc_nano.a(lib_a-nano-svfprintf.o) + 0x0000000008007474 __ssputs_r + *fill* 0x000000000800752a 0x2 .text._svfprintf_r - 0x00000000080061d4 0x200 /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/v7-m/nofp/libc_nano.a(lib_a-nano-svfprintf.o) - 0x00000000080061d4 _svfprintf_r - 0x00000000080061d4 _svfiprintf_r + 0x000000000800752c 0x200 /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/v7-m/nofp/libc_nano.a(lib_a-nano-svfprintf.o) + 0x000000000800752c _svfprintf_r + 0x000000000800752c _svfiprintf_r .text.__assert_func - 0x00000000080063d4 0x3c /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/v7-m/nofp/libc_nano.a(lib_a-assert.o) - 0x00000000080063d4 __assert_func - .text.fprintf 0x0000000008006410 0x24 /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/v7-m/nofp/libc_nano.a(lib_a-fprintf.o) - 0x0000000008006410 fprintf - 0x0000000008006410 fiprintf + 0x000000000800772c 0x3c /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/v7-m/nofp/libc_nano.a(lib_a-assert.o) + 0x000000000800772c __assert_func + .text.fprintf 0x0000000008007768 0x24 /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/v7-m/nofp/libc_nano.a(lib_a-fprintf.o) + 0x0000000008007768 fprintf + 0x0000000008007768 fiprintf .text.__retarget_lock_init_recursive - 0x0000000008006434 0x2 /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/v7-m/nofp/libc_nano.a(lib_a-lock.o) - 0x0000000008006434 __retarget_lock_init_recursive + 0x000000000800778c 0x2 /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/v7-m/nofp/libc_nano.a(lib_a-lock.o) + 0x000000000800778c __retarget_lock_init_recursive .text.__retarget_lock_acquire_recursive - 0x0000000008006436 0x2 /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/v7-m/nofp/libc_nano.a(lib_a-lock.o) - 0x0000000008006436 __retarget_lock_acquire_recursive + 0x000000000800778e 0x2 /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/v7-m/nofp/libc_nano.a(lib_a-lock.o) + 0x000000000800778e __retarget_lock_acquire_recursive .text.__retarget_lock_release_recursive - 0x0000000008006438 0x2 /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/v7-m/nofp/libc_nano.a(lib_a-lock.o) - 0x0000000008006438 __retarget_lock_release_recursive + 0x0000000008007790 0x2 /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/v7-m/nofp/libc_nano.a(lib_a-lock.o) + 0x0000000008007790 __retarget_lock_release_recursive .text.__ascii_mbtowc - 0x000000000800643a 0x24 /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/v7-m/nofp/libc_nano.a(lib_a-mbtowc_r.o) - 0x000000000800643a __ascii_mbtowc - .text.memmove 0x000000000800645e 0x34 /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/v7-m/nofp/libc_nano.a(lib_a-memmove.o) - 0x000000000800645e memmove + 0x0000000008007792 0x24 /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/v7-m/nofp/libc_nano.a(lib_a-mbtowc_r.o) + 0x0000000008007792 __ascii_mbtowc + .text.memmove 0x00000000080077b6 0x34 /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/v7-m/nofp/libc_nano.a(lib_a-memmove.o) + 0x00000000080077b6 memmove .text._realloc_r - 0x0000000008006492 0x4c /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/v7-m/nofp/libc_nano.a(lib_a-nano-reallocr.o) - 0x0000000008006492 _realloc_r + 0x00000000080077ea 0x4c /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/v7-m/nofp/libc_nano.a(lib_a-nano-reallocr.o) + 0x00000000080077ea _realloc_r .text.__sfputc_r - 0x00000000080064de 0x2a /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/v7-m/nofp/libc_nano.a(lib_a-nano-vfprintf.o) + 0x0000000008007836 0x2a /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/v7-m/nofp/libc_nano.a(lib_a-nano-vfprintf.o) .text.__sfputs_r - 0x0000000008006508 0x24 /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/v7-m/nofp/libc_nano.a(lib_a-nano-vfprintf.o) - 0x0000000008006508 __sfputs_r + 0x0000000008007860 0x24 /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/v7-m/nofp/libc_nano.a(lib_a-nano-vfprintf.o) + 0x0000000008007860 __sfputs_r .text._vfprintf_r - 0x000000000800652c 0x260 /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/v7-m/nofp/libc_nano.a(lib_a-nano-vfprintf.o) - 0x000000000800652c _vfiprintf_r - 0x000000000800652c _vfprintf_r + 0x0000000008007884 0x260 /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/v7-m/nofp/libc_nano.a(lib_a-nano-vfprintf.o) + 0x0000000008007884 _vfiprintf_r + 0x0000000008007884 _vfprintf_r .text.__swbuf_r - 0x000000000800678c 0xa4 /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/v7-m/nofp/libc_nano.a(lib_a-wbuf.o) - 0x000000000800678c __swbuf_r + 0x0000000008007ae4 0xa4 /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/v7-m/nofp/libc_nano.a(lib_a-wbuf.o) + 0x0000000008007ae4 __swbuf_r .text.__ascii_wctomb - 0x0000000008006830 0x1a /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/v7-m/nofp/libc_nano.a(lib_a-wctomb_r.o) - 0x0000000008006830 __ascii_wctomb - *fill* 0x000000000800684a 0x2 + 0x0000000008007b88 0x1a /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/v7-m/nofp/libc_nano.a(lib_a-wctomb_r.o) + 0x0000000008007b88 __ascii_wctomb + *fill* 0x0000000008007ba2 0x2 .text.__swsetup_r - 0x000000000800684c 0xdc /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/v7-m/nofp/libc_nano.a(lib_a-wsetup.o) - 0x000000000800684c __swsetup_r - .text.abort 0x0000000008006928 0xe /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/v7-m/nofp/libc_nano.a(lib_a-abort.o) - 0x0000000008006928 abort - *fill* 0x0000000008006936 0x2 + 0x0000000008007ba4 0xdc /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/v7-m/nofp/libc_nano.a(lib_a-wsetup.o) + 0x0000000008007ba4 __swsetup_r + .text.abort 0x0000000008007c80 0xe /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/v7-m/nofp/libc_nano.a(lib_a-abort.o) + 0x0000000008007c80 abort + *fill* 0x0000000008007c8e 0x2 .text.__sflush_r - 0x0000000008006938 0x10c /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/v7-m/nofp/libc_nano.a(lib_a-fflush.o) - 0x0000000008006938 __sflush_r + 0x0000000008007c90 0x10c /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/v7-m/nofp/libc_nano.a(lib_a-fflush.o) + 0x0000000008007c90 __sflush_r .text._fflush_r - 0x0000000008006a44 0x78 /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/v7-m/nofp/libc_nano.a(lib_a-fflush.o) - 0x0000000008006a44 _fflush_r - .text.std 0x0000000008006abc 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/v7-m/nofp/libc_nano.a(lib_a-findfp.o) + 0x0000000008007d9c 0x78 /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/v7-m/nofp/libc_nano.a(lib_a-fflush.o) + 0x0000000008007d9c _fflush_r + .text.std 0x0000000008007e14 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/v7-m/nofp/libc_nano.a(lib_a-findfp.o) .text._cleanup_r - 0x0000000008006b04 0xc /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/v7-m/nofp/libc_nano.a(lib_a-findfp.o) - 0x0000000008006b04 _cleanup_r + 0x0000000008007e5c 0xc /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/v7-m/nofp/libc_nano.a(lib_a-findfp.o) + 0x0000000008007e5c _cleanup_r .text.__sfmoreglue - 0x0000000008006b10 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/v7-m/nofp/libc_nano.a(lib_a-findfp.o) - 0x0000000008006b10 __sfmoreglue + 0x0000000008007e68 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/v7-m/nofp/libc_nano.a(lib_a-findfp.o) + 0x0000000008007e68 __sfmoreglue .text.__sfp_lock_acquire - 0x0000000008006b3c 0xc /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/v7-m/nofp/libc_nano.a(lib_a-findfp.o) - 0x0000000008006b3c __sfp_lock_acquire + 0x0000000008007e94 0xc /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/v7-m/nofp/libc_nano.a(lib_a-findfp.o) + 0x0000000008007e94 __sfp_lock_acquire .text.__sfp_lock_release - 0x0000000008006b48 0xc /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/v7-m/nofp/libc_nano.a(lib_a-findfp.o) - 0x0000000008006b48 __sfp_lock_release + 0x0000000008007ea0 0xc /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/v7-m/nofp/libc_nano.a(lib_a-findfp.o) + 0x0000000008007ea0 __sfp_lock_release .text.__sinit_lock_acquire - 0x0000000008006b54 0xc /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/v7-m/nofp/libc_nano.a(lib_a-findfp.o) - 0x0000000008006b54 __sinit_lock_acquire + 0x0000000008007eac 0xc /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/v7-m/nofp/libc_nano.a(lib_a-findfp.o) + 0x0000000008007eac __sinit_lock_acquire .text.__sinit_lock_release - 0x0000000008006b60 0xc /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/v7-m/nofp/libc_nano.a(lib_a-findfp.o) - 0x0000000008006b60 __sinit_lock_release - .text.__sinit 0x0000000008006b6c 0x70 /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/v7-m/nofp/libc_nano.a(lib_a-findfp.o) - 0x0000000008006b6c __sinit - .text.__sfp 0x0000000008006bdc 0x8c /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/v7-m/nofp/libc_nano.a(lib_a-findfp.o) - 0x0000000008006bdc __sfp + 0x0000000008007eb8 0xc /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/v7-m/nofp/libc_nano.a(lib_a-findfp.o) + 0x0000000008007eb8 __sinit_lock_release + .text.__sinit 0x0000000008007ec4 0x70 /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/v7-m/nofp/libc_nano.a(lib_a-findfp.o) + 0x0000000008007ec4 __sinit + .text.__sfp 0x0000000008007f34 0x8c /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/v7-m/nofp/libc_nano.a(lib_a-findfp.o) + 0x0000000008007f34 __sfp .text._fwalk_reent - 0x0000000008006c68 0x3e /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/v7-m/nofp/libc_nano.a(lib_a-fwalk.o) - 0x0000000008006c68 _fwalk_reent + 0x0000000008007fc0 0x3e /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/v7-m/nofp/libc_nano.a(lib_a-fwalk.o) + 0x0000000008007fc0 _fwalk_reent .text.__swhatbuf_r - 0x0000000008006ca6 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/v7-m/nofp/libc_nano.a(lib_a-makebuf.o) - 0x0000000008006ca6 __swhatbuf_r - *fill* 0x0000000008006cee 0x2 + 0x0000000008007ffe 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/v7-m/nofp/libc_nano.a(lib_a-makebuf.o) + 0x0000000008007ffe __swhatbuf_r + *fill* 0x0000000008008046 0x2 .text.__smakebuf_r - 0x0000000008006cf0 0x80 /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/v7-m/nofp/libc_nano.a(lib_a-makebuf.o) - 0x0000000008006cf0 __smakebuf_r + 0x0000000008008048 0x80 /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/v7-m/nofp/libc_nano.a(lib_a-makebuf.o) + 0x0000000008008048 __smakebuf_r .text._malloc_usable_size_r - 0x0000000008006d70 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/v7-m/nofp/libc_nano.a(lib_a-nano-msizer.o) - 0x0000000008006d70 _malloc_usable_size_r + 0x00000000080080c8 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/v7-m/nofp/libc_nano.a(lib_a-nano-msizer.o) + 0x00000000080080c8 _malloc_usable_size_r .text._raise_r - 0x0000000008006d80 0x50 /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/v7-m/nofp/libc_nano.a(lib_a-signal.o) - 0x0000000008006d80 _raise_r - .text.raise 0x0000000008006dd0 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/v7-m/nofp/libc_nano.a(lib_a-signal.o) - 0x0000000008006dd0 raise - .text._kill_r 0x0000000008006de0 0x24 /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/v7-m/nofp/libc_nano.a(lib_a-signalr.o) - 0x0000000008006de0 _kill_r + 0x00000000080080d8 0x50 /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/v7-m/nofp/libc_nano.a(lib_a-signal.o) + 0x00000000080080d8 _raise_r + .text.raise 0x0000000008008128 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/v7-m/nofp/libc_nano.a(lib_a-signal.o) + 0x0000000008008128 raise + .text._kill_r 0x0000000008008138 0x24 /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/v7-m/nofp/libc_nano.a(lib_a-signalr.o) + 0x0000000008008138 _kill_r .text._getpid_r - 0x0000000008006e04 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/../../../../arm-none-eabi/lib/thumb/v7-m/nofp/libc_nano.a(lib_a-signalr.o) - 0x0000000008006e04 _getpid_r - .text.__sread 0x0000000008006e08 0x22 /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/v7-m/nofp/libc_nano.a(lib_a-stdio.o) - 0x0000000008006e08 __sread + 0x000000000800815c 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/../../../../arm-none-eabi/lib/thumb/v7-m/nofp/libc_nano.a(lib_a-signalr.o) + 0x000000000800815c _getpid_r + .text.__sread 0x0000000008008160 0x22 /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/v7-m/nofp/libc_nano.a(lib_a-stdio.o) + 0x0000000008008160 __sread .text.__swrite - 0x0000000008006e2a 0x38 /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/v7-m/nofp/libc_nano.a(lib_a-stdio.o) - 0x0000000008006e2a __swrite - .text.__sseek 0x0000000008006e62 0x24 /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/v7-m/nofp/libc_nano.a(lib_a-stdio.o) - 0x0000000008006e62 __sseek + 0x0000000008008182 0x38 /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/v7-m/nofp/libc_nano.a(lib_a-stdio.o) + 0x0000000008008182 __swrite + .text.__sseek 0x00000000080081ba 0x24 /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/v7-m/nofp/libc_nano.a(lib_a-stdio.o) + 0x00000000080081ba __sseek .text.__sclose - 0x0000000008006e86 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/../../../../arm-none-eabi/lib/thumb/v7-m/nofp/libc_nano.a(lib_a-stdio.o) - 0x0000000008006e86 __sclose - *fill* 0x0000000008006e8e 0x2 + 0x00000000080081de 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/../../../../arm-none-eabi/lib/thumb/v7-m/nofp/libc_nano.a(lib_a-stdio.o) + 0x00000000080081de __sclose + *fill* 0x00000000080081e6 0x2 .text._write_r - 0x0000000008006e90 0x24 /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/v7-m/nofp/libc_nano.a(lib_a-writer.o) - 0x0000000008006e90 _write_r + 0x00000000080081e8 0x24 /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/v7-m/nofp/libc_nano.a(lib_a-writer.o) + 0x00000000080081e8 _write_r .text._close_r - 0x0000000008006eb4 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/v7-m/nofp/libc_nano.a(lib_a-closer.o) - 0x0000000008006eb4 _close_r + 0x000000000800820c 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/v7-m/nofp/libc_nano.a(lib_a-closer.o) + 0x000000000800820c _close_r .text._fstat_r - 0x0000000008006ed4 0x24 /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/v7-m/nofp/libc_nano.a(lib_a-fstatr.o) - 0x0000000008006ed4 _fstat_r + 0x000000000800822c 0x24 /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/v7-m/nofp/libc_nano.a(lib_a-fstatr.o) + 0x000000000800822c _fstat_r .text._isatty_r - 0x0000000008006ef8 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/v7-m/nofp/libc_nano.a(lib_a-isattyr.o) - 0x0000000008006ef8 _isatty_r + 0x0000000008008250 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/v7-m/nofp/libc_nano.a(lib_a-isattyr.o) + 0x0000000008008250 _isatty_r .text._lseek_r - 0x0000000008006f18 0x24 /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/v7-m/nofp/libc_nano.a(lib_a-lseekr.o) - 0x0000000008006f18 _lseek_r - .text._read_r 0x0000000008006f3c 0x24 /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/v7-m/nofp/libc_nano.a(lib_a-readr.o) - 0x0000000008006f3c _read_r + 0x0000000008008270 0x24 /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/v7-m/nofp/libc_nano.a(lib_a-lseekr.o) + 0x0000000008008270 _lseek_r + .text._read_r 0x0000000008008294 0x24 /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/v7-m/nofp/libc_nano.a(lib_a-readr.o) + 0x0000000008008294 _read_r *(.glue_7) - .glue_7 0x0000000008006f60 0x0 linker stubs + .glue_7 0x00000000080082b8 0x0 linker stubs *(.glue_7t) - .glue_7t 0x0000000008006f60 0x0 linker stubs + .glue_7t 0x00000000080082b8 0x0 linker stubs *(.eh_frame) - .eh_frame 0x0000000008006f60 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/v7-m/nofp/crtbegin.o + .eh_frame 0x00000000080082b8 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/v7-m/nofp/crtbegin.o *(.init) - .init 0x0000000008006f60 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/v7-m/nofp/crti.o - 0x0000000008006f60 _init - .init 0x0000000008006f64 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/v7-m/nofp/crtn.o + .init 0x00000000080082b8 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/v7-m/nofp/crti.o + 0x00000000080082b8 _init + .init 0x00000000080082bc 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/v7-m/nofp/crtn.o *(.fini) - .fini 0x0000000008006f6c 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/v7-m/nofp/crti.o - 0x0000000008006f6c _fini - .fini 0x0000000008006f70 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/v7-m/nofp/crtn.o - 0x0000000008006f78 . = ALIGN (0x4) - 0x0000000008006f78 _etext = . + .fini 0x00000000080082c4 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/v7-m/nofp/crti.o + 0x00000000080082c4 _fini + .fini 0x00000000080082c8 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/v7-m/nofp/crtn.o + 0x00000000080082d0 . = ALIGN (0x4) + 0x00000000080082d0 _etext = . -.vfp11_veneer 0x0000000008006f78 0x0 - .vfp11_veneer 0x0000000008006f78 0x0 linker stubs +.vfp11_veneer 0x00000000080082d0 0x0 + .vfp11_veneer 0x00000000080082d0 0x0 linker stubs -.v4_bx 0x0000000008006f78 0x0 - .v4_bx 0x0000000008006f78 0x0 linker stubs +.v4_bx 0x00000000080082d0 0x0 + .v4_bx 0x00000000080082d0 0x0 linker stubs -.iplt 0x0000000008006f78 0x0 - .iplt 0x0000000008006f78 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/v7-m/nofp/crtbegin.o +.iplt 0x00000000080082d0 0x0 + .iplt 0x00000000080082d0 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/v7-m/nofp/crtbegin.o -.rodata 0x0000000008006f78 0xf3c - 0x0000000008006f78 . = ALIGN (0x4) +.rodata 0x00000000080082d0 0xf44 + 0x00000000080082d0 . = ALIGN (0x4) *(.rodata) - .rodata 0x0000000008006f78 0x10 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.o - .rodata 0x0000000008006f88 0xb8 ./HW_Devices/touch.o - .rodata 0x0000000008007040 0x20 ./SW_APPs/Main_APP.o + .rodata 0x00000000080082d0 0x10 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.o + .rodata 0x00000000080082e0 0xb8 ./HW_Devices/touch.o + .rodata 0x0000000008008398 0x20 ./SW_APPs/Main_APP.o *(.rodata*) .rodata.AHBPrescTable - 0x0000000008007060 0x10 ./Core/Src/system_stm32f1xx.o - 0x0000000008007060 AHBPrescTable + 0x00000000080083b8 0x10 ./Core/Src/system_stm32f1xx.o + 0x00000000080083b8 AHBPrescTable + .rodata.APBPrescTable + 0x00000000080083c8 0x8 ./Core/Src/system_stm32f1xx.o + 0x00000000080083c8 APBPrescTable .rodata.asc2_1206 - 0x0000000008007070 0x474 ./HW_Devices/LCD.o - 0x0000000008007070 asc2_1206 + 0x00000000080083d0 0x474 ./HW_Devices/LCD.o + 0x00000000080083d0 asc2_1206 .rodata.asc2_1608 - 0x00000000080074e4 0x5f0 ./HW_Devices/LCD.o - 0x00000000080074e4 asc2_1608 + 0x0000000008008844 0x5f0 ./HW_Devices/LCD.o + 0x0000000008008844 asc2_1608 .rodata._global_impure_ptr - 0x0000000008007ad4 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/../../../../arm-none-eabi/lib/thumb/v7-m/nofp/libc_nano.a(lib_a-impure.o) - 0x0000000008007ad4 _global_impure_ptr + 0x0000000008008e34 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/../../../../arm-none-eabi/lib/thumb/v7-m/nofp/libc_nano.a(lib_a-impure.o) + 0x0000000008008e34 _global_impure_ptr .rodata._printf_float.str1.1 - 0x0000000008007ad8 0x12 /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/v7-m/nofp/libc_nano.a(lib_a-nano-vfprintf_float.o) + 0x0000000008008e38 0x12 /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/v7-m/nofp/libc_nano.a(lib_a-nano-vfprintf_float.o) .rodata._printf_i.str1.1 - 0x0000000008007aea 0x22 /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/v7-m/nofp/libc_nano.a(lib_a-nano-vfprintf_i.o) + 0x0000000008008e4a 0x22 /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/v7-m/nofp/libc_nano.a(lib_a-nano-vfprintf_i.o) .rodata._dtoa_r.str1.1 - 0x0000000008007b0c 0x94 /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/v7-m/nofp/libc_nano.a(lib_a-dtoa.o) + 0x0000000008008e6c 0x94 /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/v7-m/nofp/libc_nano.a(lib_a-dtoa.o) 0x96 (size before relaxing) .rodata._Balloc.str1.1 - 0x0000000008007ba0 0x60 /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/v7-m/nofp/libc_nano.a(lib_a-mprec.o) + 0x0000000008008f00 0x60 /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/v7-m/nofp/libc_nano.a(lib_a-mprec.o) 0x77 (size before relaxing) .rodata.__multadd.str1.1 - 0x0000000008007c00 0x11 /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/v7-m/nofp/libc_nano.a(lib_a-mprec.o) + 0x0000000008008f60 0x11 /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/v7-m/nofp/libc_nano.a(lib_a-mprec.o) .rodata.__mprec_bigtens - 0x0000000008007c00 0x28 /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/v7-m/nofp/libc_nano.a(lib_a-mprec.o) - 0x0000000008007c00 __mprec_bigtens + 0x0000000008008f60 0x28 /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/v7-m/nofp/libc_nano.a(lib_a-mprec.o) + 0x0000000008008f60 __mprec_bigtens .rodata.__mprec_tens - 0x0000000008007c28 0xc8 /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/v7-m/nofp/libc_nano.a(lib_a-mprec.o) - 0x0000000008007c28 __mprec_tens + 0x0000000008008f88 0xc8 /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/v7-m/nofp/libc_nano.a(lib_a-mprec.o) + 0x0000000008008f88 __mprec_tens .rodata.p05.6150 - 0x0000000008007cf0 0xc /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/v7-m/nofp/libc_nano.a(lib_a-mprec.o) + 0x0000000008009050 0xc /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/v7-m/nofp/libc_nano.a(lib_a-mprec.o) .rodata._svfprintf_r.str1.1 - 0x0000000008007cfc 0x11 /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/v7-m/nofp/libc_nano.a(lib_a-nano-svfprintf.o) + 0x000000000800905c 0x11 /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/v7-m/nofp/libc_nano.a(lib_a-nano-svfprintf.o) .rodata.__assert_func.str1.1 - 0x0000000008007d0d 0x3c /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/v7-m/nofp/libc_nano.a(lib_a-assert.o) + 0x000000000800906d 0x3c /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/v7-m/nofp/libc_nano.a(lib_a-assert.o) 0x3d (size before relaxing) .rodata._setlocale_r.str1.1 - 0x0000000008007d49 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/../../../../arm-none-eabi/lib/thumb/v7-m/nofp/libc_nano.a(lib_a-locale.o) + 0x00000000080090a9 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/../../../../arm-none-eabi/lib/thumb/v7-m/nofp/libc_nano.a(lib_a-locale.o) 0x9 (size before relaxing) .rodata.str1.1 - 0x0000000008007d51 0x2 /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/v7-m/nofp/libc_nano.a(lib_a-locale.o) + 0x00000000080090b1 0x2 /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/v7-m/nofp/libc_nano.a(lib_a-locale.o) .rodata._vfprintf_r.str1.1 - 0x0000000008007d53 0x11 /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/v7-m/nofp/libc_nano.a(lib_a-nano-vfprintf.o) + 0x00000000080090b3 0x11 /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/v7-m/nofp/libc_nano.a(lib_a-nano-vfprintf.o) .rodata._ctype_ - 0x0000000008007d53 0x101 /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/v7-m/nofp/libc_nano.a(lib_a-ctype_.o) - 0x0000000008007d53 _ctype_ + 0x00000000080090b3 0x101 /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/v7-m/nofp/libc_nano.a(lib_a-ctype_.o) + 0x00000000080090b3 _ctype_ .rodata.__sf_fake_stderr - 0x0000000008007e54 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/v7-m/nofp/libc_nano.a(lib_a-findfp.o) - 0x0000000008007e54 __sf_fake_stderr + 0x00000000080091b4 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/v7-m/nofp/libc_nano.a(lib_a-findfp.o) + 0x00000000080091b4 __sf_fake_stderr .rodata.__sf_fake_stdin - 0x0000000008007e74 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/v7-m/nofp/libc_nano.a(lib_a-findfp.o) - 0x0000000008007e74 __sf_fake_stdin + 0x00000000080091d4 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/v7-m/nofp/libc_nano.a(lib_a-findfp.o) + 0x00000000080091d4 __sf_fake_stdin .rodata.__sf_fake_stdout - 0x0000000008007e94 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/v7-m/nofp/libc_nano.a(lib_a-findfp.o) - 0x0000000008007e94 __sf_fake_stdout - 0x0000000008007eb4 . = ALIGN (0x4) + 0x00000000080091f4 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/v7-m/nofp/libc_nano.a(lib_a-findfp.o) + 0x00000000080091f4 __sf_fake_stdout + 0x0000000008009214 . = ALIGN (0x4) -.rel.dyn 0x0000000008007eb4 0x0 - .rel.iplt 0x0000000008007eb4 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/v7-m/nofp/crtbegin.o +.rel.dyn 0x0000000008009214 0x0 + .rel.iplt 0x0000000008009214 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/v7-m/nofp/crtbegin.o -.ARM.extab 0x0000000008007eb4 0x0 - 0x0000000008007eb4 . = ALIGN (0x4) +.ARM.extab 0x0000000008009214 0x0 + 0x0000000008009214 . = ALIGN (0x4) *(.ARM.extab* .gnu.linkonce.armextab.*) - 0x0000000008007eb4 . = ALIGN (0x4) + 0x0000000008009214 . = ALIGN (0x4) -.ARM 0x0000000008007eb4 0x0 - 0x0000000008007eb4 . = ALIGN (0x4) - 0x0000000008007eb4 __exidx_start = . +.ARM 0x0000000008009214 0x0 + 0x0000000008009214 . = ALIGN (0x4) + 0x0000000008009214 __exidx_start = . *(.ARM.exidx*) - 0x0000000008007eb4 __exidx_end = . - 0x0000000008007eb4 . = ALIGN (0x4) + 0x0000000008009214 __exidx_end = . + 0x0000000008009214 . = ALIGN (0x4) -.preinit_array 0x0000000008007eb4 0x0 - 0x0000000008007eb4 . = ALIGN (0x4) - 0x0000000008007eb4 PROVIDE (__preinit_array_start = .) +.preinit_array 0x0000000008009214 0x0 + 0x0000000008009214 . = ALIGN (0x4) + 0x0000000008009214 PROVIDE (__preinit_array_start = .) *(.preinit_array*) - 0x0000000008007eb4 PROVIDE (__preinit_array_end = .) - 0x0000000008007eb4 . = ALIGN (0x4) + 0x0000000008009214 PROVIDE (__preinit_array_end = .) + 0x0000000008009214 . = ALIGN (0x4) -.init_array 0x0000000008007eb4 0x4 - 0x0000000008007eb4 . = ALIGN (0x4) - 0x0000000008007eb4 PROVIDE (__init_array_start = .) +.init_array 0x0000000008009214 0x4 + 0x0000000008009214 . = ALIGN (0x4) + 0x0000000008009214 PROVIDE (__init_array_start = .) *(SORT_BY_NAME(.init_array.*)) *(.init_array*) - .init_array 0x0000000008007eb4 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/v7-m/nofp/crtbegin.o - 0x0000000008007eb8 PROVIDE (__init_array_end = .) - 0x0000000008007eb8 . = ALIGN (0x4) + .init_array 0x0000000008009214 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/v7-m/nofp/crtbegin.o + 0x0000000008009218 PROVIDE (__init_array_end = .) + 0x0000000008009218 . = ALIGN (0x4) -.fini_array 0x0000000008007eb8 0x4 - 0x0000000008007eb8 . = ALIGN (0x4) +.fini_array 0x0000000008009218 0x4 + 0x0000000008009218 . = ALIGN (0x4) [!provide] PROVIDE (__fini_array_start = .) *(SORT_BY_NAME(.fini_array.*)) *(.fini_array*) - .fini_array 0x0000000008007eb8 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/v7-m/nofp/crtbegin.o + .fini_array 0x0000000008009218 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/v7-m/nofp/crtbegin.o [!provide] PROVIDE (__fini_array_end = .) - 0x0000000008007ebc . = ALIGN (0x4) - 0x0000000008007ebc _sidata = LOADADDR (.data) + 0x000000000800921c . = ALIGN (0x4) + 0x000000000800921c _sidata = LOADADDR (.data) -.data 0x0000000020000000 0x1dc load address 0x0000000008007ebc +.data 0x0000000020000000 0x1dc load address 0x000000000800921c 0x0000000020000000 . = ALIGN (0x4) 0x0000000020000000 _sdata = . *(.data) @@ -3516,11 +3915,11 @@ LOAD /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.id 0x00000000200001dc . = ALIGN (0x4) 0x00000000200001dc _edata = . -.igot.plt 0x00000000200001dc 0x0 load address 0x0000000008008098 +.igot.plt 0x00000000200001dc 0x0 load address 0x00000000080093f8 .igot.plt 0x00000000200001dc 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/v7-m/nofp/crtbegin.o 0x00000000200001dc . = ALIGN (0x4) -.bss 0x00000000200001dc 0xbc load address 0x0000000008008098 +.bss 0x00000000200001dc 0x124 load address 0x00000000080093f8 0x00000000200001dc _sbss = . 0x00000000200001dc __bss_start__ = _sbss *(.bss) @@ -3537,43 +3936,46 @@ LOAD /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.id 0x0000000020000204 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/../../../../arm-none-eabi/lib/thumb/v7-m/nofp/libc_nano.a(lib_a-nano-mallocr.o) 0x0000000020000204 __malloc_sbrk_start *(COMMON) - COMMON 0x0000000020000208 0x48 ./Core/Src/main.o - 0x0000000020000208 hsram1 - COMMON 0x0000000020000250 0x4 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.o - 0x0000000020000250 uwTick - COMMON 0x0000000020000254 0xa ./HW_Devices/LCD.o - 0x0000000020000254 lcddev - *fill* 0x000000002000025e 0x2 - COMMON 0x0000000020000260 0x28 ./HW_Devices/touch.o - 0x0000000020000260 tconfig - 0x0000000020000278 t0 - COMMON 0x0000000020000288 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/../../../../arm-none-eabi/lib/thumb/v7-m/nofp/libc_nano.a(lib_a-reent.o) - 0x0000000020000288 errno - COMMON 0x000000002000028c 0x9 /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/v7-m/nofp/libc_nano.a(lib_a-lock.o) - 0x000000002000028c __lock___atexit_recursive_mutex - 0x000000002000028d __lock___arc4random_mutex - 0x000000002000028e __lock___env_recursive_mutex - 0x000000002000028f __lock___sinit_recursive_mutex - 0x0000000020000290 __lock___malloc_recursive_mutex - 0x0000000020000291 __lock___at_quick_exit_mutex - 0x0000000020000292 __lock___dd_hash_mutex - 0x0000000020000293 __lock___tz_mutex - 0x0000000020000294 __lock___sfp_recursive_mutex - 0x0000000020000298 . = ALIGN (0x4) - *fill* 0x0000000020000295 0x3 - 0x0000000020000298 _ebss = . - 0x0000000020000298 __bss_end__ = _ebss + COMMON 0x0000000020000208 0x9c ./Core/Src/main.o + 0x0000000020000208 hi2c2 + 0x000000002000025c hsram1 + COMMON 0x00000000200002a4 0x4 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.o + 0x00000000200002a4 uwTick + COMMON 0x00000000200002a8 0xa ./HW_Devices/LCD.o + 0x00000000200002a8 lcddev + *fill* 0x00000000200002b2 0x2 + COMMON 0x00000000200002b4 0x14 ./HW_Devices/eeprom.o + 0x00000000200002b4 eeprom_write_buffer + COMMON 0x00000000200002c8 0x28 ./HW_Devices/touch.o + 0x00000000200002c8 tconfig + 0x00000000200002e0 t0 + COMMON 0x00000000200002f0 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/../../../../arm-none-eabi/lib/thumb/v7-m/nofp/libc_nano.a(lib_a-reent.o) + 0x00000000200002f0 errno + COMMON 0x00000000200002f4 0x9 /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/v7-m/nofp/libc_nano.a(lib_a-lock.o) + 0x00000000200002f4 __lock___atexit_recursive_mutex + 0x00000000200002f5 __lock___arc4random_mutex + 0x00000000200002f6 __lock___env_recursive_mutex + 0x00000000200002f7 __lock___sinit_recursive_mutex + 0x00000000200002f8 __lock___malloc_recursive_mutex + 0x00000000200002f9 __lock___at_quick_exit_mutex + 0x00000000200002fa __lock___dd_hash_mutex + 0x00000000200002fb __lock___tz_mutex + 0x00000000200002fc __lock___sfp_recursive_mutex + 0x0000000020000300 . = ALIGN (0x4) + *fill* 0x00000000200002fd 0x3 + 0x0000000020000300 _ebss = . + 0x0000000020000300 __bss_end__ = _ebss ._user_heap_stack - 0x0000000020000298 0x600 load address 0x0000000008008098 - 0x0000000020000298 . = ALIGN (0x8) + 0x0000000020000300 0x600 load address 0x00000000080093f8 + 0x0000000020000300 . = ALIGN (0x8) [!provide] PROVIDE (end = .) - 0x0000000020000298 PROVIDE (_end = .) - 0x0000000020000498 . = (. + _Min_Heap_Size) - *fill* 0x0000000020000298 0x200 - 0x0000000020000898 . = (. + _Min_Stack_Size) - *fill* 0x0000000020000498 0x400 - 0x0000000020000898 . = ALIGN (0x8) + 0x0000000020000300 PROVIDE (_end = .) + 0x0000000020000500 . = (. + _Min_Heap_Size) + *fill* 0x0000000020000300 0x200 + 0x0000000020000900 . = (. + _Min_Stack_Size) + *fill* 0x0000000020000500 0x400 + 0x0000000020000900 . = ALIGN (0x8) /DISCARD/ libc.a(*) @@ -3608,391 +4010,415 @@ LOAD /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.id .ARM.attributes 0x00000000000001d3 0x2d ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio.o .ARM.attributes - 0x0000000000000200 0x2d ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.o + 0x0000000000000200 0x2d ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o .ARM.attributes - 0x000000000000022d 0x2d ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_sram.o + 0x000000000000022d 0x2d ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.o .ARM.attributes - 0x000000000000025a 0x2d ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_fsmc.o + 0x000000000000025a 0x2d ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_sram.o .ARM.attributes - 0x0000000000000287 0x2d ./HW_Devices/LCD.o + 0x0000000000000287 0x2d ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_fsmc.o .ARM.attributes - 0x00000000000002b4 0x2d ./HW_Devices/touch.o + 0x00000000000002b4 0x2d ./HW_Devices/LCD.o .ARM.attributes - 0x00000000000002e1 0x2d ./SW_APPs/Main_APP.o + 0x00000000000002e1 0x2d ./HW_Devices/eeprom.o .ARM.attributes - 0x000000000000030e 0x2d ./SW_APPs/windows.o + 0x000000000000030e 0x2d ./HW_Devices/touch.o .ARM.attributes - 0x000000000000033b 0x2d /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/v7-m/nofp/libc_nano.a(lib_a-errno.o) + 0x000000000000033b 0x2d ./SW_APPs/Main_APP.o .ARM.attributes - 0x0000000000000368 0x2d /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/v7-m/nofp/libc_nano.a(lib_a-impure.o) + 0x0000000000000368 0x2d ./SW_APPs/windows.o .ARM.attributes - 0x0000000000000395 0x2d /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/v7-m/nofp/libc_nano.a(lib_a-init.o) + 0x0000000000000395 0x2d /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/v7-m/nofp/libc_nano.a(lib_a-errno.o) .ARM.attributes - 0x00000000000003c2 0x2d /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/v7-m/nofp/libc_nano.a(lib_a-malloc.o) + 0x00000000000003c2 0x2d /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/v7-m/nofp/libc_nano.a(lib_a-impure.o) .ARM.attributes - 0x00000000000003ef 0x2d /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/v7-m/nofp/libc_nano.a(lib_a-memset.o) + 0x00000000000003ef 0x2d /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/v7-m/nofp/libc_nano.a(lib_a-init.o) .ARM.attributes - 0x000000000000041c 0x2d /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/v7-m/nofp/libc_nano.a(lib_a-nano-freer.o) + 0x000000000000041c 0x2d /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/v7-m/nofp/libc_nano.a(lib_a-malloc.o) .ARM.attributes - 0x0000000000000449 0x2d /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/v7-m/nofp/libc_nano.a(lib_a-nano-mallocr.o) + 0x0000000000000449 0x2d /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/v7-m/nofp/libc_nano.a(lib_a-memset.o) .ARM.attributes - 0x0000000000000476 0x2d /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/v7-m/nofp/libc_nano.a(lib_a-nano-vfprintf_float.o) + 0x0000000000000476 0x2d /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/v7-m/nofp/libc_nano.a(lib_a-nano-freer.o) .ARM.attributes - 0x00000000000004a3 0x2d /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/v7-m/nofp/libc_nano.a(lib_a-nano-vfprintf_i.o) + 0x00000000000004a3 0x2d /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/v7-m/nofp/libc_nano.a(lib_a-nano-mallocr.o) .ARM.attributes - 0x00000000000004d0 0x2d /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/v7-m/nofp/libc_nano.a(lib_a-sbrkr.o) + 0x00000000000004d0 0x2d /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/v7-m/nofp/libc_nano.a(lib_a-nano-vfprintf_float.o) .ARM.attributes - 0x00000000000004fd 0x2d /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/v7-m/nofp/libc_nano.a(lib_a-sprintf.o) + 0x00000000000004fd 0x2d /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/v7-m/nofp/libc_nano.a(lib_a-nano-vfprintf_i.o) .ARM.attributes - 0x000000000000052a 0x17 /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/v7-m/nofp/libc_nano.a(lib_a-strlen.o) + 0x000000000000052a 0x2d /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/v7-m/nofp/libc_nano.a(lib_a-sbrkr.o) .ARM.attributes - 0x0000000000000541 0x2d /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/v7-m/nofp/libc_nano.a(lib_a-dtoa.o) + 0x0000000000000557 0x2d /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/v7-m/nofp/libc_nano.a(lib_a-sprintf.o) .ARM.attributes - 0x000000000000056e 0x2d /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/v7-m/nofp/libc_nano.a(lib_a-localeconv.o) + 0x0000000000000584 0x17 /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/v7-m/nofp/libc_nano.a(lib_a-strlen.o) .ARM.attributes - 0x000000000000059b 0x2d /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/v7-m/nofp/libc_nano.a(lib_a-memchr-stub.o) + 0x000000000000059b 0x2d /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/v7-m/nofp/libc_nano.a(lib_a-dtoa.o) .ARM.attributes - 0x00000000000005c8 0x2d /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/v7-m/nofp/libc_nano.a(lib_a-memcpy-stub.o) + 0x00000000000005c8 0x2d /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/v7-m/nofp/libc_nano.a(lib_a-localeconv.o) .ARM.attributes - 0x00000000000005f5 0x2d /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/v7-m/nofp/libc_nano.a(lib_a-mlock.o) + 0x00000000000005f5 0x2d /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/v7-m/nofp/libc_nano.a(lib_a-memchr-stub.o) .ARM.attributes - 0x0000000000000622 0x2d /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/v7-m/nofp/libc_nano.a(lib_a-mprec.o) + 0x0000000000000622 0x2d /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/v7-m/nofp/libc_nano.a(lib_a-memcpy-stub.o) .ARM.attributes - 0x000000000000064f 0x2d /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/v7-m/nofp/libc_nano.a(lib_a-nano-callocr.o) + 0x000000000000064f 0x2d /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/v7-m/nofp/libc_nano.a(lib_a-mlock.o) .ARM.attributes - 0x000000000000067c 0x2d /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/v7-m/nofp/libc_nano.a(lib_a-nano-svfprintf.o) + 0x000000000000067c 0x2d /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/v7-m/nofp/libc_nano.a(lib_a-mprec.o) .ARM.attributes - 0x00000000000006a9 0x2d /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/v7-m/nofp/libc_nano.a(lib_a-reent.o) + 0x00000000000006a9 0x2d /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/v7-m/nofp/libc_nano.a(lib_a-nano-callocr.o) .ARM.attributes - 0x00000000000006d6 0x2d /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/v7-m/nofp/libc_nano.a(lib_a-assert.o) + 0x00000000000006d6 0x2d /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/v7-m/nofp/libc_nano.a(lib_a-nano-svfprintf.o) .ARM.attributes - 0x0000000000000703 0x2d /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/v7-m/nofp/libc_nano.a(lib_a-fprintf.o) + 0x0000000000000703 0x2d /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/v7-m/nofp/libc_nano.a(lib_a-reent.o) .ARM.attributes - 0x0000000000000730 0x2d /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/v7-m/nofp/libc_nano.a(lib_a-locale.o) + 0x0000000000000730 0x2d /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/v7-m/nofp/libc_nano.a(lib_a-assert.o) .ARM.attributes - 0x000000000000075d 0x2d /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/v7-m/nofp/libc_nano.a(lib_a-lock.o) + 0x000000000000075d 0x2d /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/v7-m/nofp/libc_nano.a(lib_a-fprintf.o) .ARM.attributes - 0x000000000000078a 0x2d /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/v7-m/nofp/libc_nano.a(lib_a-mbtowc_r.o) + 0x000000000000078a 0x2d /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/v7-m/nofp/libc_nano.a(lib_a-locale.o) .ARM.attributes - 0x00000000000007b7 0x2d /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/v7-m/nofp/libc_nano.a(lib_a-memmove.o) + 0x00000000000007b7 0x2d /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/v7-m/nofp/libc_nano.a(lib_a-lock.o) .ARM.attributes - 0x00000000000007e4 0x2d /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/v7-m/nofp/libc_nano.a(lib_a-nano-reallocr.o) + 0x00000000000007e4 0x2d /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/v7-m/nofp/libc_nano.a(lib_a-mbtowc_r.o) .ARM.attributes - 0x0000000000000811 0x2d /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/v7-m/nofp/libc_nano.a(lib_a-nano-vfprintf.o) + 0x0000000000000811 0x2d /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/v7-m/nofp/libc_nano.a(lib_a-memmove.o) .ARM.attributes - 0x000000000000083e 0x2d /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/v7-m/nofp/libc_nano.a(lib_a-wbuf.o) + 0x000000000000083e 0x2d /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/v7-m/nofp/libc_nano.a(lib_a-nano-reallocr.o) .ARM.attributes - 0x000000000000086b 0x2d /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/v7-m/nofp/libc_nano.a(lib_a-wctomb_r.o) + 0x000000000000086b 0x2d /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/v7-m/nofp/libc_nano.a(lib_a-nano-vfprintf.o) .ARM.attributes - 0x0000000000000898 0x2d /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/v7-m/nofp/libc_nano.a(lib_a-wsetup.o) + 0x0000000000000898 0x2d /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/v7-m/nofp/libc_nano.a(lib_a-wbuf.o) .ARM.attributes - 0x00000000000008c5 0x2d /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/v7-m/nofp/libc_nano.a(lib_a-abort.o) + 0x00000000000008c5 0x2d /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/v7-m/nofp/libc_nano.a(lib_a-wctomb_r.o) .ARM.attributes - 0x00000000000008f2 0x2d /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/v7-m/nofp/libc_nano.a(lib_a-ctype_.o) + 0x00000000000008f2 0x2d /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/v7-m/nofp/libc_nano.a(lib_a-wsetup.o) .ARM.attributes - 0x000000000000091f 0x2d /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/v7-m/nofp/libc_nano.a(lib_a-fflush.o) + 0x000000000000091f 0x2d /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/v7-m/nofp/libc_nano.a(lib_a-abort.o) .ARM.attributes - 0x000000000000094c 0x2d /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/v7-m/nofp/libc_nano.a(lib_a-findfp.o) + 0x000000000000094c 0x2d /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/v7-m/nofp/libc_nano.a(lib_a-ctype_.o) .ARM.attributes - 0x0000000000000979 0x2d /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/v7-m/nofp/libc_nano.a(lib_a-fwalk.o) + 0x0000000000000979 0x2d /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/v7-m/nofp/libc_nano.a(lib_a-fflush.o) .ARM.attributes - 0x00000000000009a6 0x2d /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/v7-m/nofp/libc_nano.a(lib_a-makebuf.o) + 0x00000000000009a6 0x2d /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/v7-m/nofp/libc_nano.a(lib_a-findfp.o) .ARM.attributes - 0x00000000000009d3 0x2d /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/v7-m/nofp/libc_nano.a(lib_a-nano-msizer.o) + 0x00000000000009d3 0x2d /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/v7-m/nofp/libc_nano.a(lib_a-fwalk.o) .ARM.attributes - 0x0000000000000a00 0x2d /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/v7-m/nofp/libc_nano.a(lib_a-signal.o) + 0x0000000000000a00 0x2d /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/v7-m/nofp/libc_nano.a(lib_a-makebuf.o) .ARM.attributes - 0x0000000000000a2d 0x2d /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/v7-m/nofp/libc_nano.a(lib_a-signalr.o) + 0x0000000000000a2d 0x2d /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/v7-m/nofp/libc_nano.a(lib_a-nano-msizer.o) .ARM.attributes - 0x0000000000000a5a 0x2d /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/v7-m/nofp/libc_nano.a(lib_a-stdio.o) + 0x0000000000000a5a 0x2d /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/v7-m/nofp/libc_nano.a(lib_a-signal.o) .ARM.attributes - 0x0000000000000a87 0x2d /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/v7-m/nofp/libc_nano.a(lib_a-writer.o) + 0x0000000000000a87 0x2d /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/v7-m/nofp/libc_nano.a(lib_a-signalr.o) .ARM.attributes - 0x0000000000000ab4 0x2d /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/v7-m/nofp/libc_nano.a(lib_a-closer.o) + 0x0000000000000ab4 0x2d /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/v7-m/nofp/libc_nano.a(lib_a-stdio.o) .ARM.attributes - 0x0000000000000ae1 0x2d /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/v7-m/nofp/libc_nano.a(lib_a-fstatr.o) + 0x0000000000000ae1 0x2d /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/v7-m/nofp/libc_nano.a(lib_a-writer.o) .ARM.attributes - 0x0000000000000b0e 0x2d /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/v7-m/nofp/libc_nano.a(lib_a-isattyr.o) + 0x0000000000000b0e 0x2d /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/v7-m/nofp/libc_nano.a(lib_a-closer.o) .ARM.attributes - 0x0000000000000b3b 0x2d /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/v7-m/nofp/libc_nano.a(lib_a-lseekr.o) + 0x0000000000000b3b 0x2d /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/v7-m/nofp/libc_nano.a(lib_a-fstatr.o) .ARM.attributes - 0x0000000000000b68 0x2d /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/v7-m/nofp/libc_nano.a(lib_a-readr.o) + 0x0000000000000b68 0x2d /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/v7-m/nofp/libc_nano.a(lib_a-isattyr.o) .ARM.attributes - 0x0000000000000b95 0x1d /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/v7-m/nofp/libgcc.a(_arm_addsubdf3.o) + 0x0000000000000b95 0x2d /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/v7-m/nofp/libc_nano.a(lib_a-lseekr.o) .ARM.attributes - 0x0000000000000bb2 0x1d /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/v7-m/nofp/libgcc.a(_arm_muldivdf3.o) + 0x0000000000000bc2 0x2d /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/v7-m/nofp/libc_nano.a(lib_a-readr.o) .ARM.attributes - 0x0000000000000bcf 0x1d /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/v7-m/nofp/libgcc.a(_arm_cmpdf2.o) + 0x0000000000000bef 0x1d /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/v7-m/nofp/libgcc.a(_arm_addsubdf3.o) .ARM.attributes - 0x0000000000000bec 0x1d /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/v7-m/nofp/libgcc.a(_arm_unorddf2.o) + 0x0000000000000c0c 0x1d /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/v7-m/nofp/libgcc.a(_arm_muldivdf3.o) .ARM.attributes - 0x0000000000000c09 0x1d /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/v7-m/nofp/libgcc.a(_arm_fixdfsi.o) + 0x0000000000000c29 0x1d /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/v7-m/nofp/libgcc.a(_arm_cmpdf2.o) .ARM.attributes - 0x0000000000000c26 0x1d /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/v7-m/nofp/libgcc.a(_arm_truncdfsf2.o) + 0x0000000000000c46 0x1d /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/v7-m/nofp/libgcc.a(_arm_unorddf2.o) .ARM.attributes - 0x0000000000000c43 0x1d /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/v7-m/nofp/libgcc.a(_arm_addsubsf3.o) + 0x0000000000000c63 0x1d /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/v7-m/nofp/libgcc.a(_arm_fixdfsi.o) .ARM.attributes - 0x0000000000000c60 0x1d /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/v7-m/nofp/libgcc.a(_arm_muldivsf3.o) + 0x0000000000000c80 0x1d /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/v7-m/nofp/libgcc.a(_arm_truncdfsf2.o) .ARM.attributes - 0x0000000000000c7d 0x1d /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/v7-m/nofp/libgcc.a(_arm_fixsfsi.o) + 0x0000000000000c9d 0x1d /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/v7-m/nofp/libgcc.a(_arm_addsubsf3.o) .ARM.attributes - 0x0000000000000c9a 0x1d /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/v7-m/nofp/crtn.o + 0x0000000000000cba 0x1d /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/v7-m/nofp/libgcc.a(_arm_muldivsf3.o) + .ARM.attributes + 0x0000000000000cd7 0x1d /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/v7-m/nofp/libgcc.a(_arm_fixsfsi.o) + .ARM.attributes + 0x0000000000000cf4 0x1d /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/v7-m/nofp/crtn.o OUTPUT(m3s.elf elf32-littlearm) 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/v7-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/v7-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/v7-m/nofp/libgcc.a -.debug_info 0x0000000000000000 0x8b21 - .debug_info 0x0000000000000000 0xacb ./Core/Src/main.o - .debug_info 0x0000000000000acb 0x8bf ./Core/Src/stm32f1xx_hal_msp.o - .debug_info 0x000000000000138a 0x222 ./Core/Src/stm32f1xx_it.o - .debug_info 0x00000000000015ac 0xfa8 ./Core/Src/syscalls.o - .debug_info 0x0000000000002554 0xa25 ./Core/Src/sysmem.o - .debug_info 0x0000000000002f79 0x2be ./Core/Src/system_stm32f1xx.o - .debug_info 0x0000000000003237 0x22 ./Core/Startup/startup_stm32f103zetx.o - .debug_info 0x0000000000003259 0x7d0 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.o - .debug_info 0x0000000000003a29 0xc42 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.o - .debug_info 0x000000000000466b 0x701 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio.o - .debug_info 0x0000000000004d6c 0x88e ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.o - .debug_info 0x00000000000055fa 0xd4b ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_sram.o - .debug_info 0x0000000000006345 0xae7 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_fsmc.o - .debug_info 0x0000000000006e2c 0xa30 ./HW_Devices/LCD.o - .debug_info 0x000000000000785c 0x857 ./HW_Devices/touch.o - .debug_info 0x00000000000080b3 0x3fb ./SW_APPs/Main_APP.o - .debug_info 0x00000000000084ae 0x673 ./SW_APPs/windows.o +.debug_info 0x0000000000000000 0xc1f6 + .debug_info 0x0000000000000000 0xda0 ./Core/Src/main.o + .debug_info 0x0000000000000da0 0xc09 ./Core/Src/stm32f1xx_hal_msp.o + .debug_info 0x00000000000019a9 0x222 ./Core/Src/stm32f1xx_it.o + .debug_info 0x0000000000001bcb 0xfa8 ./Core/Src/syscalls.o + .debug_info 0x0000000000002b73 0xa25 ./Core/Src/sysmem.o + .debug_info 0x0000000000003598 0x2be ./Core/Src/system_stm32f1xx.o + .debug_info 0x0000000000003856 0x22 ./Core/Startup/startup_stm32f103zetx.o + .debug_info 0x0000000000003878 0x7d0 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.o + .debug_info 0x0000000000004048 0xc42 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.o + .debug_info 0x0000000000004c8a 0x701 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio.o + .debug_info 0x000000000000538b 0x278e ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + .debug_info 0x0000000000007b19 0x88e ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.o + .debug_info 0x00000000000083a7 0xd4b ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_sram.o + .debug_info 0x00000000000090f2 0xae7 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_fsmc.o + .debug_info 0x0000000000009bd9 0xa30 ./HW_Devices/LCD.o + .debug_info 0x000000000000a609 0x928 ./HW_Devices/eeprom.o + .debug_info 0x000000000000af31 0x857 ./HW_Devices/touch.o + .debug_info 0x000000000000b788 0x3fb ./SW_APPs/Main_APP.o + .debug_info 0x000000000000bb83 0x673 ./SW_APPs/windows.o -.debug_abbrev 0x0000000000000000 0x1f6c - .debug_abbrev 0x0000000000000000 0x208 ./Core/Src/main.o - .debug_abbrev 0x0000000000000208 0x1de ./Core/Src/stm32f1xx_hal_msp.o - .debug_abbrev 0x00000000000003e6 0xd2 ./Core/Src/stm32f1xx_it.o - .debug_abbrev 0x00000000000004b8 0x286 ./Core/Src/syscalls.o - .debug_abbrev 0x000000000000073e 0x1bf ./Core/Src/sysmem.o - .debug_abbrev 0x00000000000008fd 0x14e ./Core/Src/system_stm32f1xx.o - .debug_abbrev 0x0000000000000a4b 0x12 ./Core/Startup/startup_stm32f103zetx.o - .debug_abbrev 0x0000000000000a5d 0x1ed ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.o - .debug_abbrev 0x0000000000000c4a 0x313 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.o - .debug_abbrev 0x0000000000000f5d 0x1e8 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio.o - .debug_abbrev 0x0000000000001145 0x273 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.o - .debug_abbrev 0x00000000000013b8 0x1f2 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_sram.o - .debug_abbrev 0x00000000000015aa 0x1ae ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_fsmc.o - .debug_abbrev 0x0000000000001758 0x28b ./HW_Devices/LCD.o - .debug_abbrev 0x00000000000019e3 0x22a ./HW_Devices/touch.o - .debug_abbrev 0x0000000000001c0d 0x149 ./SW_APPs/Main_APP.o - .debug_abbrev 0x0000000000001d56 0x216 ./SW_APPs/windows.o +.debug_abbrev 0x0000000000000000 0x2461 + .debug_abbrev 0x0000000000000000 0x220 ./Core/Src/main.o + .debug_abbrev 0x0000000000000220 0x20b ./Core/Src/stm32f1xx_hal_msp.o + .debug_abbrev 0x000000000000042b 0xd2 ./Core/Src/stm32f1xx_it.o + .debug_abbrev 0x00000000000004fd 0x286 ./Core/Src/syscalls.o + .debug_abbrev 0x0000000000000783 0x1bf ./Core/Src/sysmem.o + .debug_abbrev 0x0000000000000942 0x14e ./Core/Src/system_stm32f1xx.o + .debug_abbrev 0x0000000000000a90 0x12 ./Core/Startup/startup_stm32f103zetx.o + .debug_abbrev 0x0000000000000aa2 0x1ed ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.o + .debug_abbrev 0x0000000000000c8f 0x313 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.o + .debug_abbrev 0x0000000000000fa2 0x1e8 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio.o + .debug_abbrev 0x000000000000118a 0x288 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + .debug_abbrev 0x0000000000001412 0x273 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.o + .debug_abbrev 0x0000000000001685 0x1f2 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_sram.o + .debug_abbrev 0x0000000000001877 0x1ae ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_fsmc.o + .debug_abbrev 0x0000000000001a25 0x28b ./HW_Devices/LCD.o + .debug_abbrev 0x0000000000001cb0 0x228 ./HW_Devices/eeprom.o + .debug_abbrev 0x0000000000001ed8 0x22a ./HW_Devices/touch.o + .debug_abbrev 0x0000000000002102 0x149 ./SW_APPs/Main_APP.o + .debug_abbrev 0x000000000000224b 0x216 ./SW_APPs/windows.o -.debug_aranges 0x0000000000000000 0x7b8 +.debug_aranges 0x0000000000000000 0xab8 .debug_aranges - 0x0000000000000000 0x40 ./Core/Src/main.o + 0x0000000000000000 0x48 ./Core/Src/main.o .debug_aranges - 0x0000000000000040 0x40 ./Core/Src/stm32f1xx_hal_msp.o + 0x0000000000000048 0x50 ./Core/Src/stm32f1xx_hal_msp.o .debug_aranges - 0x0000000000000080 0x60 ./Core/Src/stm32f1xx_it.o + 0x0000000000000098 0x60 ./Core/Src/stm32f1xx_it.o .debug_aranges - 0x00000000000000e0 0xa8 ./Core/Src/syscalls.o + 0x00000000000000f8 0xa8 ./Core/Src/syscalls.o .debug_aranges - 0x0000000000000188 0x20 ./Core/Src/sysmem.o + 0x00000000000001a0 0x20 ./Core/Src/sysmem.o .debug_aranges - 0x00000000000001a8 0x28 ./Core/Src/system_stm32f1xx.o + 0x00000000000001c0 0x28 ./Core/Src/system_stm32f1xx.o .debug_aranges - 0x00000000000001d0 0x28 ./Core/Startup/startup_stm32f103zetx.o + 0x00000000000001e8 0x28 ./Core/Startup/startup_stm32f103zetx.o .debug_aranges - 0x00000000000001f8 0xe0 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.o + 0x0000000000000210 0xe0 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.o .debug_aranges - 0x00000000000002d8 0x100 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.o + 0x00000000000002f0 0x100 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.o .debug_aranges - 0x00000000000003d8 0x58 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio.o + 0x00000000000003f0 0x58 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio.o .debug_aranges - 0x0000000000000430 0x90 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.o + 0x0000000000000448 0x2a0 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o .debug_aranges - 0x00000000000004c0 0xb8 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_sram.o + 0x00000000000006e8 0x90 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.o .debug_aranges - 0x0000000000000578 0xa8 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_fsmc.o + 0x0000000000000778 0xb8 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_sram.o .debug_aranges - 0x0000000000000620 0xc8 ./HW_Devices/LCD.o + 0x0000000000000830 0xa8 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_fsmc.o .debug_aranges - 0x00000000000006e8 0x58 ./HW_Devices/touch.o + 0x00000000000008d8 0xc8 ./HW_Devices/LCD.o .debug_aranges - 0x0000000000000740 0x20 ./SW_APPs/Main_APP.o + 0x00000000000009a0 0x48 ./HW_Devices/eeprom.o .debug_aranges - 0x0000000000000760 0x58 ./SW_APPs/windows.o + 0x00000000000009e8 0x58 ./HW_Devices/touch.o + .debug_aranges + 0x0000000000000a40 0x20 ./SW_APPs/Main_APP.o + .debug_aranges + 0x0000000000000a60 0x58 ./SW_APPs/windows.o -.debug_ranges 0x0000000000000000 0x6b0 - .debug_ranges 0x0000000000000000 0x30 ./Core/Src/main.o - .debug_ranges 0x0000000000000030 0x30 ./Core/Src/stm32f1xx_hal_msp.o - .debug_ranges 0x0000000000000060 0x50 ./Core/Src/stm32f1xx_it.o - .debug_ranges 0x00000000000000b0 0x98 ./Core/Src/syscalls.o - .debug_ranges 0x0000000000000148 0x10 ./Core/Src/sysmem.o - .debug_ranges 0x0000000000000158 0x18 ./Core/Src/system_stm32f1xx.o - .debug_ranges 0x0000000000000170 0x20 ./Core/Startup/startup_stm32f103zetx.o - .debug_ranges 0x0000000000000190 0xd0 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.o - .debug_ranges 0x0000000000000260 0xf0 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.o - .debug_ranges 0x0000000000000350 0x48 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio.o - .debug_ranges 0x0000000000000398 0x80 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.o - .debug_ranges 0x0000000000000418 0xa8 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_sram.o - .debug_ranges 0x00000000000004c0 0x98 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_fsmc.o - .debug_ranges 0x0000000000000558 0xb8 ./HW_Devices/LCD.o - .debug_ranges 0x0000000000000610 0x48 ./HW_Devices/touch.o - .debug_ranges 0x0000000000000658 0x10 ./SW_APPs/Main_APP.o - .debug_ranges 0x0000000000000668 0x48 ./SW_APPs/windows.o +.debug_ranges 0x0000000000000000 0x9d0 + .debug_ranges 0x0000000000000000 0x38 ./Core/Src/main.o + .debug_ranges 0x0000000000000038 0x40 ./Core/Src/stm32f1xx_hal_msp.o + .debug_ranges 0x0000000000000078 0x50 ./Core/Src/stm32f1xx_it.o + .debug_ranges 0x00000000000000c8 0x98 ./Core/Src/syscalls.o + .debug_ranges 0x0000000000000160 0x10 ./Core/Src/sysmem.o + .debug_ranges 0x0000000000000170 0x18 ./Core/Src/system_stm32f1xx.o + .debug_ranges 0x0000000000000188 0x20 ./Core/Startup/startup_stm32f103zetx.o + .debug_ranges 0x00000000000001a8 0xd0 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.o + .debug_ranges 0x0000000000000278 0xf0 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.o + .debug_ranges 0x0000000000000368 0x48 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio.o + .debug_ranges 0x00000000000003b0 0x2b8 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + .debug_ranges 0x0000000000000668 0x80 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.o + .debug_ranges 0x00000000000006e8 0xa8 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_sram.o + .debug_ranges 0x0000000000000790 0x98 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_fsmc.o + .debug_ranges 0x0000000000000828 0xb8 ./HW_Devices/LCD.o + .debug_ranges 0x00000000000008e0 0x50 ./HW_Devices/eeprom.o + .debug_ranges 0x0000000000000930 0x48 ./HW_Devices/touch.o + .debug_ranges 0x0000000000000978 0x10 ./SW_APPs/Main_APP.o + .debug_ranges 0x0000000000000988 0x48 ./SW_APPs/windows.o -.debug_macro 0x0000000000000000 0x1aa8a - .debug_macro 0x0000000000000000 0x1b7 ./Core/Src/main.o - .debug_macro 0x00000000000001b7 0xa9c ./Core/Src/main.o - .debug_macro 0x0000000000000c53 0x215 ./Core/Src/main.o - .debug_macro 0x0000000000000e68 0x2e ./Core/Src/main.o - .debug_macro 0x0000000000000e96 0x22 ./Core/Src/main.o - .debug_macro 0x0000000000000eb8 0x22 ./Core/Src/main.o - .debug_macro 0x0000000000000eda 0x8e ./Core/Src/main.o - .debug_macro 0x0000000000000f68 0x51 ./Core/Src/main.o - .debug_macro 0x0000000000000fb9 0x103 ./Core/Src/main.o - .debug_macro 0x00000000000010bc 0x6a ./Core/Src/main.o - .debug_macro 0x0000000000001126 0x1df ./Core/Src/main.o - .debug_macro 0x0000000000001305 0x1c ./Core/Src/main.o - .debug_macro 0x0000000000001321 0x22 ./Core/Src/main.o - .debug_macro 0x0000000000001343 0xc3 ./Core/Src/main.o - .debug_macro 0x0000000000001406 0xd23 ./Core/Src/main.o - .debug_macro 0x0000000000002129 0xfd8c ./Core/Src/main.o - .debug_macro 0x0000000000011eb5 0x6d ./Core/Src/main.o - .debug_macro 0x0000000000011f22 0x3468 ./Core/Src/main.o - .debug_macro 0x000000000001538a 0x174 ./Core/Src/main.o - .debug_macro 0x00000000000154fe 0x5c ./Core/Src/main.o - .debug_macro 0x000000000001555a 0x5be ./Core/Src/main.o - .debug_macro 0x0000000000015b18 0x4d5 ./Core/Src/main.o - .debug_macro 0x0000000000015fed 0x1cb ./Core/Src/main.o - .debug_macro 0x00000000000161b8 0x114 ./Core/Src/main.o - .debug_macro 0x00000000000162cc 0x1ea ./Core/Src/main.o - .debug_macro 0x00000000000164b6 0x27 ./Core/Src/main.o - .debug_macro 0x00000000000164dd 0x144 ./Core/Src/main.o - .debug_macro 0x0000000000016621 0x1bc ./Core/Src/main.o - .debug_macro 0x00000000000167dd 0x30 ./Core/Src/main.o - .debug_macro 0x000000000001680d 0x3c ./Core/Src/main.o - .debug_macro 0x0000000000016849 0x57 ./Core/Src/main.o - .debug_macro 0x00000000000168a0 0x88 ./Core/Src/main.o - .debug_macro 0x0000000000016928 0x24f ./Core/Src/main.o - .debug_macro 0x0000000000016b77 0x356 ./Core/Src/main.o - .debug_macro 0x0000000000016ecd 0x141 ./Core/Src/main.o - .debug_macro 0x000000000001700e 0xb5 ./Core/Src/main.o - .debug_macro 0x00000000000170c3 0x4c ./Core/Src/main.o - .debug_macro 0x000000000001710f 0x1ad ./Core/Src/stm32f1xx_hal_msp.o - .debug_macro 0x00000000000172bc 0x1b7 ./Core/Src/stm32f1xx_it.o - .debug_macro 0x0000000000017473 0x24c ./Core/Src/syscalls.o - .debug_macro 0x00000000000176bf 0x4c ./Core/Src/syscalls.o - .debug_macro 0x000000000001770b 0x18 ./Core/Src/syscalls.o - .debug_macro 0x0000000000017723 0x94 ./Core/Src/syscalls.o - .debug_macro 0x00000000000177b7 0x3c ./Core/Src/syscalls.o - .debug_macro 0x00000000000177f3 0x34 ./Core/Src/syscalls.o - .debug_macro 0x0000000000017827 0x57 ./Core/Src/syscalls.o - .debug_macro 0x000000000001787e 0x339 ./Core/Src/syscalls.o - .debug_macro 0x0000000000017bb7 0x16 ./Core/Src/syscalls.o - .debug_macro 0x0000000000017bcd 0x43 ./Core/Src/syscalls.o - .debug_macro 0x0000000000017c10 0x34 ./Core/Src/syscalls.o - .debug_macro 0x0000000000017c44 0x10 ./Core/Src/syscalls.o - .debug_macro 0x0000000000017c54 0x58 ./Core/Src/syscalls.o - .debug_macro 0x0000000000017cac 0x71 ./Core/Src/syscalls.o - .debug_macro 0x0000000000017d1d 0x1c ./Core/Src/syscalls.o - .debug_macro 0x0000000000017d39 0x12a ./Core/Src/syscalls.o - .debug_macro 0x0000000000017e63 0x10 ./Core/Src/syscalls.o - .debug_macro 0x0000000000017e73 0x35 ./Core/Src/syscalls.o - .debug_macro 0x0000000000017ea8 0x10 ./Core/Src/syscalls.o - .debug_macro 0x0000000000017eb8 0x10 ./Core/Src/syscalls.o - .debug_macro 0x0000000000017ec8 0x10 ./Core/Src/syscalls.o - .debug_macro 0x0000000000017ed8 0x1c ./Core/Src/syscalls.o - .debug_macro 0x0000000000017ef4 0x52 ./Core/Src/syscalls.o - .debug_macro 0x0000000000017f46 0x22 ./Core/Src/syscalls.o - .debug_macro 0x0000000000017f68 0x10 ./Core/Src/syscalls.o - .debug_macro 0x0000000000017f78 0x40 ./Core/Src/syscalls.o - .debug_macro 0x0000000000017fb8 0xd5 ./Core/Src/syscalls.o - .debug_macro 0x000000000001808d 0x1c ./Core/Src/syscalls.o - .debug_macro 0x00000000000180a9 0x3d ./Core/Src/syscalls.o - .debug_macro 0x00000000000180e6 0x35 ./Core/Src/syscalls.o - .debug_macro 0x000000000001811b 0x12c ./Core/Src/syscalls.o - .debug_macro 0x0000000000018247 0x16 ./Core/Src/syscalls.o - .debug_macro 0x000000000001825d 0x16 ./Core/Src/syscalls.o - .debug_macro 0x0000000000018273 0x29 ./Core/Src/syscalls.o - .debug_macro 0x000000000001829c 0x10 ./Core/Src/syscalls.o - .debug_macro 0x00000000000182ac 0x241 ./Core/Src/syscalls.o - .debug_macro 0x00000000000184ed 0x1c ./Core/Src/syscalls.o - .debug_macro 0x0000000000018509 0x10 ./Core/Src/syscalls.o - .debug_macro 0x0000000000018519 0x10 ./Core/Src/syscalls.o - .debug_macro 0x0000000000018529 0x16 ./Core/Src/syscalls.o - .debug_macro 0x000000000001853f 0x145 ./Core/Src/syscalls.o - .debug_macro 0x0000000000018684 0x189 ./Core/Src/syscalls.o - .debug_macro 0x000000000001880d 0x16 ./Core/Src/syscalls.o - .debug_macro 0x0000000000018823 0xce ./Core/Src/syscalls.o - .debug_macro 0x00000000000188f1 0xff ./Core/Src/sysmem.o - .debug_macro 0x00000000000189f0 0x23b ./Core/Src/sysmem.o - .debug_macro 0x0000000000018c2b 0x19e ./Core/Src/system_stm32f1xx.o - .debug_macro 0x0000000000018dc9 0x1c2 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.o - .debug_macro 0x0000000000018f8b 0x19e ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.o - .debug_macro 0x0000000000019129 0x209 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio.o - .debug_macro 0x0000000000019332 0x1b0 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.o - .debug_macro 0x00000000000194e2 0x19e ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_sram.o - .debug_macro 0x0000000000019680 0x1d7 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_fsmc.o - .debug_macro 0x0000000000019857 0x1bc ./HW_Devices/LCD.o - .debug_macro 0x0000000000019a13 0x38b ./HW_Devices/LCD.o - .debug_macro 0x0000000000019d9e 0x1e3 ./HW_Devices/touch.o - .debug_macro 0x0000000000019f81 0x22 ./HW_Devices/touch.o - .debug_macro 0x0000000000019fa3 0x391 ./HW_Devices/touch.o - .debug_macro 0x000000000001a334 0x1dd ./SW_APPs/Main_APP.o - .debug_macro 0x000000000001a511 0x28 ./SW_APPs/Main_APP.o - .debug_macro 0x000000000001a539 0x1c0 ./SW_APPs/windows.o - .debug_macro 0x000000000001a6f9 0x391 ./SW_APPs/windows.o +.debug_macro 0x0000000000000000 0x1b17b + .debug_macro 0x0000000000000000 0x1c1 ./Core/Src/main.o + .debug_macro 0x00000000000001c1 0xa9c ./Core/Src/main.o + .debug_macro 0x0000000000000c5d 0x21b ./Core/Src/main.o + .debug_macro 0x0000000000000e78 0x2e ./Core/Src/main.o + .debug_macro 0x0000000000000ea6 0x22 ./Core/Src/main.o + .debug_macro 0x0000000000000ec8 0x22 ./Core/Src/main.o + .debug_macro 0x0000000000000eea 0x8e ./Core/Src/main.o + .debug_macro 0x0000000000000f78 0x51 ./Core/Src/main.o + .debug_macro 0x0000000000000fc9 0x103 ./Core/Src/main.o + .debug_macro 0x00000000000010cc 0x6a ./Core/Src/main.o + .debug_macro 0x0000000000001136 0x1df ./Core/Src/main.o + .debug_macro 0x0000000000001315 0x1c ./Core/Src/main.o + .debug_macro 0x0000000000001331 0x22 ./Core/Src/main.o + .debug_macro 0x0000000000001353 0xc3 ./Core/Src/main.o + .debug_macro 0x0000000000001416 0xd23 ./Core/Src/main.o + .debug_macro 0x0000000000002139 0xfd8c ./Core/Src/main.o + .debug_macro 0x0000000000011ec5 0x6d ./Core/Src/main.o + .debug_macro 0x0000000000011f32 0x3468 ./Core/Src/main.o + .debug_macro 0x000000000001539a 0x174 ./Core/Src/main.o + .debug_macro 0x000000000001550e 0x5c ./Core/Src/main.o + .debug_macro 0x000000000001556a 0x5be ./Core/Src/main.o + .debug_macro 0x0000000000015b28 0x4d5 ./Core/Src/main.o + .debug_macro 0x0000000000015ffd 0x1cb ./Core/Src/main.o + .debug_macro 0x00000000000161c8 0x114 ./Core/Src/main.o + .debug_macro 0x00000000000162dc 0x1ea ./Core/Src/main.o + .debug_macro 0x00000000000164c6 0x27 ./Core/Src/main.o + .debug_macro 0x00000000000164ed 0x144 ./Core/Src/main.o + .debug_macro 0x0000000000016631 0x1bc ./Core/Src/main.o + .debug_macro 0x00000000000167ed 0x30 ./Core/Src/main.o + .debug_macro 0x000000000001681d 0x3c ./Core/Src/main.o + .debug_macro 0x0000000000016859 0x57 ./Core/Src/main.o + .debug_macro 0x00000000000168b0 0x88 ./Core/Src/main.o + .debug_macro 0x0000000000016938 0x24f ./Core/Src/main.o + .debug_macro 0x0000000000016b87 0x356 ./Core/Src/main.o + .debug_macro 0x0000000000016edd 0x287 ./Core/Src/main.o + .debug_macro 0x0000000000017164 0x141 ./Core/Src/main.o + .debug_macro 0x00000000000172a5 0xb5 ./Core/Src/main.o + .debug_macro 0x000000000001735a 0x4c ./Core/Src/main.o + .debug_macro 0x00000000000173a6 0x1b7 ./Core/Src/stm32f1xx_hal_msp.o + .debug_macro 0x000000000001755d 0x1c1 ./Core/Src/stm32f1xx_it.o + .debug_macro 0x000000000001771e 0x24c ./Core/Src/syscalls.o + .debug_macro 0x000000000001796a 0x4c ./Core/Src/syscalls.o + .debug_macro 0x00000000000179b6 0x18 ./Core/Src/syscalls.o + .debug_macro 0x00000000000179ce 0x94 ./Core/Src/syscalls.o + .debug_macro 0x0000000000017a62 0x3c ./Core/Src/syscalls.o + .debug_macro 0x0000000000017a9e 0x34 ./Core/Src/syscalls.o + .debug_macro 0x0000000000017ad2 0x57 ./Core/Src/syscalls.o + .debug_macro 0x0000000000017b29 0x339 ./Core/Src/syscalls.o + .debug_macro 0x0000000000017e62 0x16 ./Core/Src/syscalls.o + .debug_macro 0x0000000000017e78 0x43 ./Core/Src/syscalls.o + .debug_macro 0x0000000000017ebb 0x34 ./Core/Src/syscalls.o + .debug_macro 0x0000000000017eef 0x10 ./Core/Src/syscalls.o + .debug_macro 0x0000000000017eff 0x58 ./Core/Src/syscalls.o + .debug_macro 0x0000000000017f57 0x71 ./Core/Src/syscalls.o + .debug_macro 0x0000000000017fc8 0x1c ./Core/Src/syscalls.o + .debug_macro 0x0000000000017fe4 0x12a ./Core/Src/syscalls.o + .debug_macro 0x000000000001810e 0x10 ./Core/Src/syscalls.o + .debug_macro 0x000000000001811e 0x35 ./Core/Src/syscalls.o + .debug_macro 0x0000000000018153 0x10 ./Core/Src/syscalls.o + .debug_macro 0x0000000000018163 0x10 ./Core/Src/syscalls.o + .debug_macro 0x0000000000018173 0x10 ./Core/Src/syscalls.o + .debug_macro 0x0000000000018183 0x1c ./Core/Src/syscalls.o + .debug_macro 0x000000000001819f 0x52 ./Core/Src/syscalls.o + .debug_macro 0x00000000000181f1 0x22 ./Core/Src/syscalls.o + .debug_macro 0x0000000000018213 0x10 ./Core/Src/syscalls.o + .debug_macro 0x0000000000018223 0x40 ./Core/Src/syscalls.o + .debug_macro 0x0000000000018263 0xd5 ./Core/Src/syscalls.o + .debug_macro 0x0000000000018338 0x1c ./Core/Src/syscalls.o + .debug_macro 0x0000000000018354 0x3d ./Core/Src/syscalls.o + .debug_macro 0x0000000000018391 0x35 ./Core/Src/syscalls.o + .debug_macro 0x00000000000183c6 0x12c ./Core/Src/syscalls.o + .debug_macro 0x00000000000184f2 0x16 ./Core/Src/syscalls.o + .debug_macro 0x0000000000018508 0x16 ./Core/Src/syscalls.o + .debug_macro 0x000000000001851e 0x29 ./Core/Src/syscalls.o + .debug_macro 0x0000000000018547 0x10 ./Core/Src/syscalls.o + .debug_macro 0x0000000000018557 0x241 ./Core/Src/syscalls.o + .debug_macro 0x0000000000018798 0x1c ./Core/Src/syscalls.o + .debug_macro 0x00000000000187b4 0x10 ./Core/Src/syscalls.o + .debug_macro 0x00000000000187c4 0x10 ./Core/Src/syscalls.o + .debug_macro 0x00000000000187d4 0x16 ./Core/Src/syscalls.o + .debug_macro 0x00000000000187ea 0x145 ./Core/Src/syscalls.o + .debug_macro 0x000000000001892f 0x189 ./Core/Src/syscalls.o + .debug_macro 0x0000000000018ab8 0x16 ./Core/Src/syscalls.o + .debug_macro 0x0000000000018ace 0xce ./Core/Src/syscalls.o + .debug_macro 0x0000000000018b9c 0xff ./Core/Src/sysmem.o + .debug_macro 0x0000000000018c9b 0x23b ./Core/Src/sysmem.o + .debug_macro 0x0000000000018ed6 0x1a8 ./Core/Src/system_stm32f1xx.o + .debug_macro 0x000000000001907e 0x1cc ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.o + .debug_macro 0x000000000001924a 0x1a8 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.o + .debug_macro 0x00000000000193f2 0x213 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio.o + .debug_macro 0x0000000000019605 0x1ef ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + .debug_macro 0x00000000000197f4 0x1ba ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.o + .debug_macro 0x00000000000199ae 0x1a8 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_sram.o + .debug_macro 0x0000000000019b56 0x1e1 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_fsmc.o + .debug_macro 0x0000000000019d37 0x1c6 ./HW_Devices/LCD.o + .debug_macro 0x0000000000019efd 0x38b ./HW_Devices/LCD.o + .debug_macro 0x000000000001a288 0x1c7 ./HW_Devices/eeprom.o + .debug_macro 0x000000000001a44f 0x1f6 ./HW_Devices/touch.o + .debug_macro 0x000000000001a645 0x22 ./HW_Devices/touch.o + .debug_macro 0x000000000001a667 0x391 ./HW_Devices/touch.o + .debug_macro 0x000000000001a9f8 0x10 ./HW_Devices/touch.o + .debug_macro 0x000000000001aa08 0x1f0 ./SW_APPs/Main_APP.o + .debug_macro 0x000000000001abf8 0x28 ./SW_APPs/Main_APP.o + .debug_macro 0x000000000001ac20 0x1ca ./SW_APPs/windows.o + .debug_macro 0x000000000001adea 0x391 ./SW_APPs/windows.o -.debug_line 0x0000000000000000 0x999a - .debug_line 0x0000000000000000 0x7fe ./Core/Src/main.o - .debug_line 0x00000000000007fe 0x742 ./Core/Src/stm32f1xx_hal_msp.o - .debug_line 0x0000000000000f40 0x755 ./Core/Src/stm32f1xx_it.o - .debug_line 0x0000000000001695 0x83e ./Core/Src/syscalls.o - .debug_line 0x0000000000001ed3 0x534 ./Core/Src/sysmem.o - .debug_line 0x0000000000002407 0x711 ./Core/Src/system_stm32f1xx.o - .debug_line 0x0000000000002b18 0x87 ./Core/Startup/startup_stm32f103zetx.o - .debug_line 0x0000000000002b9f 0x93e ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.o - .debug_line 0x00000000000034dd 0xb26 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.o - .debug_line 0x0000000000004003 0x9fd ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio.o - .debug_line 0x0000000000004a00 0xd4c ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.o - .debug_line 0x000000000000574c 0xcb1 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_sram.o - .debug_line 0x00000000000063fd 0x99c ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_fsmc.o - .debug_line 0x0000000000006d99 0x10aa ./HW_Devices/LCD.o - .debug_line 0x0000000000007e43 0xa6a ./HW_Devices/touch.o - .debug_line 0x00000000000088ad 0x724 ./SW_APPs/Main_APP.o - .debug_line 0x0000000000008fd1 0x9c9 ./SW_APPs/windows.o +.debug_line 0x0000000000000000 0xdd99 + .debug_line 0x0000000000000000 0x851 ./Core/Src/main.o + .debug_line 0x0000000000000851 0x7a3 ./Core/Src/stm32f1xx_hal_msp.o + .debug_line 0x0000000000000ff4 0x76c ./Core/Src/stm32f1xx_it.o + .debug_line 0x0000000000001760 0x83e ./Core/Src/syscalls.o + .debug_line 0x0000000000001f9e 0x534 ./Core/Src/sysmem.o + .debug_line 0x00000000000024d2 0x728 ./Core/Src/system_stm32f1xx.o + .debug_line 0x0000000000002bfa 0x87 ./Core/Startup/startup_stm32f103zetx.o + .debug_line 0x0000000000002c81 0x955 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.o + .debug_line 0x00000000000035d6 0xb3d ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.o + .debug_line 0x0000000000004113 0xa14 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio.o + .debug_line 0x0000000000004b27 0x3a3f ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + .debug_line 0x0000000000008566 0xd63 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.o + .debug_line 0x00000000000092c9 0xcc8 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_sram.o + .debug_line 0x0000000000009f91 0x9b3 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_fsmc.o + .debug_line 0x000000000000a944 0x10c1 ./HW_Devices/LCD.o + .debug_line 0x000000000000ba05 0x7ba ./HW_Devices/eeprom.o + .debug_line 0x000000000000c1bf 0xab1 ./HW_Devices/touch.o + .debug_line 0x000000000000cc70 0x749 ./SW_APPs/Main_APP.o + .debug_line 0x000000000000d3b9 0x9e0 ./SW_APPs/windows.o -.debug_str 0x0000000000000000 0x93387 - .debug_str 0x0000000000000000 0x8b547 ./Core/Src/main.o - 0x8b9e4 (size before relaxing) - .debug_str 0x000000000008b547 0x9e ./Core/Src/stm32f1xx_hal_msp.o - 0x8b831 (size before relaxing) - .debug_str 0x000000000008b5e5 0xbd ./Core/Src/stm32f1xx_it.o - 0x8b407 (size before relaxing) - .debug_str 0x000000000008b6a2 0x578e ./Core/Src/syscalls.o +.debug_str 0x0000000000000000 0x95b47 + .debug_str 0x0000000000000000 0x8d07d ./Core/Src/main.o + 0x8d562 (size before relaxing) + .debug_str 0x000000000008d07d 0xc5 ./Core/Src/stm32f1xx_hal_msp.o + 0x8d3c3 (size before relaxing) + .debug_str 0x000000000008d142 0xbd ./Core/Src/stm32f1xx_it.o + 0x8ccf3 (size before relaxing) + .debug_str 0x000000000008d1ff 0x578e ./Core/Src/syscalls.o 0x8e87 (size before relaxing) - .debug_str 0x0000000000090e30 0x6b ./Core/Src/sysmem.o + .debug_str 0x000000000009298d 0x6b ./Core/Src/sysmem.o 0x625a (size before relaxing) - .debug_str 0x0000000000090e9b 0x52 ./Core/Src/system_stm32f1xx.o - 0x8b2dc (size before relaxing) - .debug_str 0x0000000000090eed 0x36 ./Core/Startup/startup_stm32f103zetx.o + .debug_str 0x00000000000929f8 0x52 ./Core/Src/system_stm32f1xx.o + 0x8cbc8 (size before relaxing) + .debug_str 0x0000000000092a4a 0x36 ./Core/Startup/startup_stm32f103zetx.o 0x6e (size before relaxing) - .debug_str 0x0000000000090f23 0x5fb ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.o - 0x8ba51 (size before relaxing) - .debug_str 0x000000000009151e 0x300 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.o - 0x8ba59 (size before relaxing) - .debug_str 0x000000000009181e 0x31f ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio.o - 0x8b6a0 (size before relaxing) - .debug_str 0x0000000000091b3d 0x24f ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.o - 0x8b6d9 (size before relaxing) - .debug_str 0x0000000000091d8c 0x1f7 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_sram.o - 0x8b8d2 (size before relaxing) - .debug_str 0x0000000000091f83 0x7f7 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_fsmc.o - 0x8bc73 (size before relaxing) - .debug_str 0x000000000009277a 0x81a ./HW_Devices/LCD.o - 0x8bb9e (size before relaxing) - .debug_str 0x0000000000092f94 0x282 ./HW_Devices/touch.o - 0x8bc63 (size before relaxing) - .debug_str 0x0000000000093216 0x78 ./SW_APPs/Main_APP.o - 0x8bb95 (size before relaxing) - .debug_str 0x000000000009328e 0xf9 ./SW_APPs/windows.o - 0x8bb2d (size before relaxing) + .debug_str 0x0000000000092a80 0x5fb ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.o + 0x8d33d (size before relaxing) + .debug_str 0x000000000009307b 0x300 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.o + 0x8d345 (size before relaxing) + .debug_str 0x000000000009337b 0x31f ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio.o + 0x8cf8c (size before relaxing) + .debug_str 0x000000000009369a 0xb47 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + 0x8dc04 (size before relaxing) + .debug_str 0x00000000000941e1 0x244 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.o + 0x8cfc5 (size before relaxing) + .debug_str 0x0000000000094425 0x1f7 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_sram.o + 0x8d1be (size before relaxing) + .debug_str 0x000000000009461c 0x7ef ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_fsmc.o + 0x8d55f (size before relaxing) + .debug_str 0x0000000000094e0b 0x81a ./HW_Devices/LCD.o + 0x8d48a (size before relaxing) + .debug_str 0x0000000000095625 0x13b ./HW_Devices/eeprom.o + 0x8d200 (size before relaxing) + .debug_str 0x0000000000095760 0x282 ./HW_Devices/touch.o + 0x8d56e (size before relaxing) + .debug_str 0x00000000000959e2 0x78 ./SW_APPs/Main_APP.o + 0x8d4a0 (size before relaxing) + .debug_str 0x0000000000095a5a 0xed ./SW_APPs/windows.o + 0x8d419 (size before relaxing) .comment 0x0000000000000000 0x53 .comment 0x0000000000000000 0x53 ./Core/Src/main.o @@ -4005,82 +4431,86 @@ LOAD /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.id .comment 0x0000000000000053 0x54 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.o .comment 0x0000000000000053 0x54 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.o .comment 0x0000000000000053 0x54 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio.o + .comment 0x0000000000000053 0x54 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o .comment 0x0000000000000053 0x54 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.o .comment 0x0000000000000053 0x54 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_sram.o .comment 0x0000000000000053 0x54 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_fsmc.o .comment 0x0000000000000053 0x54 ./HW_Devices/LCD.o + .comment 0x0000000000000053 0x54 ./HW_Devices/eeprom.o .comment 0x0000000000000053 0x54 ./HW_Devices/touch.o .comment 0x0000000000000053 0x54 ./SW_APPs/Main_APP.o .comment 0x0000000000000053 0x54 ./SW_APPs/windows.o -.debug_frame 0x0000000000000000 0x2f08 - .debug_frame 0x0000000000000000 0xb0 ./Core/Src/main.o - .debug_frame 0x00000000000000b0 0xc0 ./Core/Src/stm32f1xx_hal_msp.o - .debug_frame 0x0000000000000170 0x104 ./Core/Src/stm32f1xx_it.o - .debug_frame 0x0000000000000274 0x2ac ./Core/Src/syscalls.o - .debug_frame 0x0000000000000520 0x34 ./Core/Src/sysmem.o - .debug_frame 0x0000000000000554 0x58 ./Core/Src/system_stm32f1xx.o - .debug_frame 0x00000000000005ac 0x334 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.o - .debug_frame 0x00000000000008e0 0x428 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.o - .debug_frame 0x0000000000000d08 0x14c ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio.o - .debug_frame 0x0000000000000e54 0x21c ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.o - .debug_frame 0x0000000000001070 0x30c ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_sram.o - .debug_frame 0x000000000000137c 0x2dc ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_fsmc.o - .debug_frame 0x0000000000001658 0x33c ./HW_Devices/LCD.o - .debug_frame 0x0000000000001994 0x13c ./HW_Devices/touch.o - .debug_frame 0x0000000000001ad0 0x30 ./SW_APPs/Main_APP.o - .debug_frame 0x0000000000001b00 0x140 ./SW_APPs/windows.o - .debug_frame 0x0000000000001c40 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/v7-m/nofp/libc_nano.a(lib_a-errno.o) - .debug_frame 0x0000000000001c60 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/v7-m/nofp/libc_nano.a(lib_a-init.o) - .debug_frame 0x0000000000001c8c 0x30 /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/v7-m/nofp/libc_nano.a(lib_a-malloc.o) - .debug_frame 0x0000000000001cbc 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/v7-m/nofp/libc_nano.a(lib_a-memset.o) - .debug_frame 0x0000000000001cdc 0x38 /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/v7-m/nofp/libc_nano.a(lib_a-nano-freer.o) - .debug_frame 0x0000000000001d14 0x30 /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/v7-m/nofp/libc_nano.a(lib_a-nano-mallocr.o) - .debug_frame 0x0000000000001d44 0x94 /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/v7-m/nofp/libc_nano.a(lib_a-nano-vfprintf_float.o) - .debug_frame 0x0000000000001dd8 0x60 /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/v7-m/nofp/libc_nano.a(lib_a-nano-vfprintf_i.o) - .debug_frame 0x0000000000001e38 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/v7-m/nofp/libc_nano.a(lib_a-sbrkr.o) - .debug_frame 0x0000000000001e64 0x6c /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/v7-m/nofp/libc_nano.a(lib_a-sprintf.o) - .debug_frame 0x0000000000001ed0 0x6c /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/v7-m/nofp/libc_nano.a(lib_a-dtoa.o) - .debug_frame 0x0000000000001f3c 0x40 /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/v7-m/nofp/libc_nano.a(lib_a-localeconv.o) - .debug_frame 0x0000000000001f7c 0x28 /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/v7-m/nofp/libc_nano.a(lib_a-memchr-stub.o) - .debug_frame 0x0000000000001fa4 0x28 /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/v7-m/nofp/libc_nano.a(lib_a-memcpy-stub.o) - .debug_frame 0x0000000000001fcc 0x30 /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/v7-m/nofp/libc_nano.a(lib_a-mlock.o) - .debug_frame 0x0000000000001ffc 0x254 /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/v7-m/nofp/libc_nano.a(lib_a-mprec.o) - .debug_frame 0x0000000000002250 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/v7-m/nofp/libc_nano.a(lib_a-nano-callocr.o) - .debug_frame 0x000000000000227c 0x90 /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/v7-m/nofp/libc_nano.a(lib_a-nano-svfprintf.o) - .debug_frame 0x000000000000230c 0x5c /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/v7-m/nofp/libc_nano.a(lib_a-reent.o) - .debug_frame 0x0000000000002368 0x40 /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/v7-m/nofp/libc_nano.a(lib_a-assert.o) - .debug_frame 0x00000000000023a8 0x64 /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/v7-m/nofp/libc_nano.a(lib_a-fprintf.o) - .debug_frame 0x000000000000240c 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/v7-m/nofp/libc_nano.a(lib_a-locale.o) - .debug_frame 0x0000000000002454 0xb0 /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/v7-m/nofp/libc_nano.a(lib_a-lock.o) - .debug_frame 0x0000000000002504 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/v7-m/nofp/libc_nano.a(lib_a-mbtowc_r.o) - .debug_frame 0x000000000000254c 0x28 /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/v7-m/nofp/libc_nano.a(lib_a-memmove.o) - .debug_frame 0x0000000000002574 0x3c /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/v7-m/nofp/libc_nano.a(lib_a-nano-reallocr.o) - .debug_frame 0x00000000000025b0 0xac /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/v7-m/nofp/libc_nano.a(lib_a-nano-vfprintf.o) - .debug_frame 0x000000000000265c 0x40 /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/v7-m/nofp/libc_nano.a(lib_a-wbuf.o) - .debug_frame 0x000000000000269c 0x3c /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/v7-m/nofp/libc_nano.a(lib_a-wctomb_r.o) - .debug_frame 0x00000000000026d8 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/v7-m/nofp/libc_nano.a(lib_a-wsetup.o) - .debug_frame 0x0000000000002704 0x28 /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/v7-m/nofp/libc_nano.a(lib_a-abort.o) - .debug_frame 0x000000000000272c 0x5c /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/v7-m/nofp/libc_nano.a(lib_a-fflush.o) - .debug_frame 0x0000000000002788 0x14c /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/v7-m/nofp/libc_nano.a(lib_a-findfp.o) - .debug_frame 0x00000000000028d4 0x54 /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/v7-m/nofp/libc_nano.a(lib_a-fwalk.o) - .debug_frame 0x0000000000002928 0x58 /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/v7-m/nofp/libc_nano.a(lib_a-makebuf.o) - .debug_frame 0x0000000000002980 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/v7-m/nofp/libc_nano.a(lib_a-nano-msizer.o) - .debug_frame 0x00000000000029a0 0xcc /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/v7-m/nofp/libc_nano.a(lib_a-signal.o) - .debug_frame 0x0000000000002a6c 0x3c /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/v7-m/nofp/libc_nano.a(lib_a-signalr.o) - .debug_frame 0x0000000000002aa8 0x88 /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/v7-m/nofp/libc_nano.a(lib_a-stdio.o) - .debug_frame 0x0000000000002b30 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/v7-m/nofp/libc_nano.a(lib_a-writer.o) - .debug_frame 0x0000000000002b5c 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/v7-m/nofp/libc_nano.a(lib_a-closer.o) - .debug_frame 0x0000000000002b88 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/v7-m/nofp/libc_nano.a(lib_a-fstatr.o) - .debug_frame 0x0000000000002bb4 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/v7-m/nofp/libc_nano.a(lib_a-isattyr.o) - .debug_frame 0x0000000000002be0 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/v7-m/nofp/libc_nano.a(lib_a-lseekr.o) - .debug_frame 0x0000000000002c0c 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/v7-m/nofp/libc_nano.a(lib_a-readr.o) - .debug_frame 0x0000000000002c38 0xac /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/v7-m/nofp/libgcc.a(_arm_addsubdf3.o) - .debug_frame 0x0000000000002ce4 0x50 /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/v7-m/nofp/libgcc.a(_arm_muldivdf3.o) - .debug_frame 0x0000000000002d34 0xc4 /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/v7-m/nofp/libgcc.a(_arm_cmpdf2.o) - .debug_frame 0x0000000000002df8 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/v7-m/nofp/libgcc.a(_arm_unorddf2.o) - .debug_frame 0x0000000000002e18 0x24 /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/v7-m/nofp/libgcc.a(_arm_fixdfsi.o) - .debug_frame 0x0000000000002e3c 0x24 /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/v7-m/nofp/libgcc.a(_arm_truncdfsf2.o) - .debug_frame 0x0000000000002e60 0x4c /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/v7-m/nofp/libgcc.a(_arm_addsubsf3.o) - .debug_frame 0x0000000000002eac 0x38 /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/v7-m/nofp/libgcc.a(_arm_muldivsf3.o) - .debug_frame 0x0000000000002ee4 0x24 /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/v7-m/nofp/libgcc.a(_arm_fixsfsi.o) +.debug_frame 0x0000000000000000 0x3cac + .debug_frame 0x0000000000000000 0xcc ./Core/Src/main.o + .debug_frame 0x00000000000000cc 0x108 ./Core/Src/stm32f1xx_hal_msp.o + .debug_frame 0x00000000000001d4 0x104 ./Core/Src/stm32f1xx_it.o + .debug_frame 0x00000000000002d8 0x2ac ./Core/Src/syscalls.o + .debug_frame 0x0000000000000584 0x34 ./Core/Src/sysmem.o + .debug_frame 0x00000000000005b8 0x58 ./Core/Src/system_stm32f1xx.o + .debug_frame 0x0000000000000610 0x334 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.o + .debug_frame 0x0000000000000944 0x428 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.o + .debug_frame 0x0000000000000d6c 0x14c ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio.o + .debug_frame 0x0000000000000eb8 0xc5c ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + .debug_frame 0x0000000000001b14 0x21c ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.o + .debug_frame 0x0000000000001d30 0x30c ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_sram.o + .debug_frame 0x000000000000203c 0x2dc ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_fsmc.o + .debug_frame 0x0000000000002318 0x33c ./HW_Devices/LCD.o + .debug_frame 0x0000000000002654 0xe4 ./HW_Devices/eeprom.o + .debug_frame 0x0000000000002738 0x13c ./HW_Devices/touch.o + .debug_frame 0x0000000000002874 0x30 ./SW_APPs/Main_APP.o + .debug_frame 0x00000000000028a4 0x140 ./SW_APPs/windows.o + .debug_frame 0x00000000000029e4 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/v7-m/nofp/libc_nano.a(lib_a-errno.o) + .debug_frame 0x0000000000002a04 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/v7-m/nofp/libc_nano.a(lib_a-init.o) + .debug_frame 0x0000000000002a30 0x30 /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/v7-m/nofp/libc_nano.a(lib_a-malloc.o) + .debug_frame 0x0000000000002a60 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/v7-m/nofp/libc_nano.a(lib_a-memset.o) + .debug_frame 0x0000000000002a80 0x38 /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/v7-m/nofp/libc_nano.a(lib_a-nano-freer.o) + .debug_frame 0x0000000000002ab8 0x30 /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/v7-m/nofp/libc_nano.a(lib_a-nano-mallocr.o) + .debug_frame 0x0000000000002ae8 0x94 /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/v7-m/nofp/libc_nano.a(lib_a-nano-vfprintf_float.o) + .debug_frame 0x0000000000002b7c 0x60 /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/v7-m/nofp/libc_nano.a(lib_a-nano-vfprintf_i.o) + .debug_frame 0x0000000000002bdc 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/v7-m/nofp/libc_nano.a(lib_a-sbrkr.o) + .debug_frame 0x0000000000002c08 0x6c /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/v7-m/nofp/libc_nano.a(lib_a-sprintf.o) + .debug_frame 0x0000000000002c74 0x6c /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/v7-m/nofp/libc_nano.a(lib_a-dtoa.o) + .debug_frame 0x0000000000002ce0 0x40 /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/v7-m/nofp/libc_nano.a(lib_a-localeconv.o) + .debug_frame 0x0000000000002d20 0x28 /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/v7-m/nofp/libc_nano.a(lib_a-memchr-stub.o) + .debug_frame 0x0000000000002d48 0x28 /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/v7-m/nofp/libc_nano.a(lib_a-memcpy-stub.o) + .debug_frame 0x0000000000002d70 0x30 /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/v7-m/nofp/libc_nano.a(lib_a-mlock.o) + .debug_frame 0x0000000000002da0 0x254 /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/v7-m/nofp/libc_nano.a(lib_a-mprec.o) + .debug_frame 0x0000000000002ff4 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/v7-m/nofp/libc_nano.a(lib_a-nano-callocr.o) + .debug_frame 0x0000000000003020 0x90 /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/v7-m/nofp/libc_nano.a(lib_a-nano-svfprintf.o) + .debug_frame 0x00000000000030b0 0x5c /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/v7-m/nofp/libc_nano.a(lib_a-reent.o) + .debug_frame 0x000000000000310c 0x40 /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/v7-m/nofp/libc_nano.a(lib_a-assert.o) + .debug_frame 0x000000000000314c 0x64 /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/v7-m/nofp/libc_nano.a(lib_a-fprintf.o) + .debug_frame 0x00000000000031b0 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/v7-m/nofp/libc_nano.a(lib_a-locale.o) + .debug_frame 0x00000000000031f8 0xb0 /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/v7-m/nofp/libc_nano.a(lib_a-lock.o) + .debug_frame 0x00000000000032a8 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/v7-m/nofp/libc_nano.a(lib_a-mbtowc_r.o) + .debug_frame 0x00000000000032f0 0x28 /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/v7-m/nofp/libc_nano.a(lib_a-memmove.o) + .debug_frame 0x0000000000003318 0x3c /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/v7-m/nofp/libc_nano.a(lib_a-nano-reallocr.o) + .debug_frame 0x0000000000003354 0xac /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/v7-m/nofp/libc_nano.a(lib_a-nano-vfprintf.o) + .debug_frame 0x0000000000003400 0x40 /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/v7-m/nofp/libc_nano.a(lib_a-wbuf.o) + .debug_frame 0x0000000000003440 0x3c /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/v7-m/nofp/libc_nano.a(lib_a-wctomb_r.o) + .debug_frame 0x000000000000347c 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/v7-m/nofp/libc_nano.a(lib_a-wsetup.o) + .debug_frame 0x00000000000034a8 0x28 /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/v7-m/nofp/libc_nano.a(lib_a-abort.o) + .debug_frame 0x00000000000034d0 0x5c /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/v7-m/nofp/libc_nano.a(lib_a-fflush.o) + .debug_frame 0x000000000000352c 0x14c /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/v7-m/nofp/libc_nano.a(lib_a-findfp.o) + .debug_frame 0x0000000000003678 0x54 /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/v7-m/nofp/libc_nano.a(lib_a-fwalk.o) + .debug_frame 0x00000000000036cc 0x58 /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/v7-m/nofp/libc_nano.a(lib_a-makebuf.o) + .debug_frame 0x0000000000003724 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/v7-m/nofp/libc_nano.a(lib_a-nano-msizer.o) + .debug_frame 0x0000000000003744 0xcc /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/v7-m/nofp/libc_nano.a(lib_a-signal.o) + .debug_frame 0x0000000000003810 0x3c /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/v7-m/nofp/libc_nano.a(lib_a-signalr.o) + .debug_frame 0x000000000000384c 0x88 /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/v7-m/nofp/libc_nano.a(lib_a-stdio.o) + .debug_frame 0x00000000000038d4 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/v7-m/nofp/libc_nano.a(lib_a-writer.o) + .debug_frame 0x0000000000003900 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/v7-m/nofp/libc_nano.a(lib_a-closer.o) + .debug_frame 0x000000000000392c 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/v7-m/nofp/libc_nano.a(lib_a-fstatr.o) + .debug_frame 0x0000000000003958 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/v7-m/nofp/libc_nano.a(lib_a-isattyr.o) + .debug_frame 0x0000000000003984 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/v7-m/nofp/libc_nano.a(lib_a-lseekr.o) + .debug_frame 0x00000000000039b0 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/v7-m/nofp/libc_nano.a(lib_a-readr.o) + .debug_frame 0x00000000000039dc 0xac /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/v7-m/nofp/libgcc.a(_arm_addsubdf3.o) + .debug_frame 0x0000000000003a88 0x50 /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/v7-m/nofp/libgcc.a(_arm_muldivdf3.o) + .debug_frame 0x0000000000003ad8 0xc4 /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/v7-m/nofp/libgcc.a(_arm_cmpdf2.o) + .debug_frame 0x0000000000003b9c 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/v7-m/nofp/libgcc.a(_arm_unorddf2.o) + .debug_frame 0x0000000000003bbc 0x24 /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/v7-m/nofp/libgcc.a(_arm_fixdfsi.o) + .debug_frame 0x0000000000003be0 0x24 /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/v7-m/nofp/libgcc.a(_arm_truncdfsf2.o) + .debug_frame 0x0000000000003c04 0x4c /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/v7-m/nofp/libgcc.a(_arm_addsubsf3.o) + .debug_frame 0x0000000000003c50 0x38 /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/v7-m/nofp/libgcc.a(_arm_muldivsf3.o) + .debug_frame 0x0000000000003c88 0x24 /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/v7-m/nofp/libgcc.a(_arm_fixsfsi.o) diff --git a/Debug/objects.list b/Debug/objects.list index a61cbdf..b1af35a 100644 --- a/Debug/objects.list +++ b/Debug/objects.list @@ -13,6 +13,7 @@ "./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash_ex.o" "./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio.o" "./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio_ex.o" +"./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o" "./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_pwr.o" "./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.o" "./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc_ex.o" @@ -21,6 +22,7 @@ "./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim_ex.o" "./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_fsmc.o" "./HW_Devices/LCD.o" +"./HW_Devices/eeprom.o" "./HW_Devices/touch.o" "./SW_APPs/Main_APP.o" "./SW_APPs/windows.o" diff --git a/Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_i2c.h b/Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_i2c.h new file mode 100644 index 0000000..454572d --- /dev/null +++ b/Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_i2c.h @@ -0,0 +1,740 @@ +/** + ****************************************************************************** + * @file stm32f1xx_hal_i2c.h + * @author MCD Application Team + * @brief Header file of I2C HAL module. + ****************************************************************************** + * @attention + * + *

© Copyright (c) 2016 STMicroelectronics. + * All rights reserved.

+ * + * This software component is licensed by ST under BSD 3-Clause license, + * the "License"; You may not use this file except in compliance with the + * License. You may obtain a copy of the License at: + * opensource.org/licenses/BSD-3-Clause + * + ****************************************************************************** + */ + +/* Define to prevent recursive inclusion -------------------------------------*/ +#ifndef __STM32F1xx_HAL_I2C_H +#define __STM32F1xx_HAL_I2C_H + +#ifdef __cplusplus +extern "C" { +#endif + +/* Includes ------------------------------------------------------------------*/ +#include "stm32f1xx_hal_def.h" + +/** @addtogroup STM32F1xx_HAL_Driver + * @{ + */ + +/** @addtogroup I2C + * @{ + */ + +/* Exported types ------------------------------------------------------------*/ +/** @defgroup I2C_Exported_Types I2C Exported Types + * @{ + */ + +/** @defgroup I2C_Configuration_Structure_definition I2C Configuration Structure definition + * @brief I2C Configuration Structure definition + * @{ + */ +typedef struct +{ + uint32_t ClockSpeed; /*!< Specifies the clock frequency. + This parameter must be set to a value lower than 400kHz */ + + uint32_t DutyCycle; /*!< Specifies the I2C fast mode duty cycle. + This parameter can be a value of @ref I2C_duty_cycle_in_fast_mode */ + + uint32_t OwnAddress1; /*!< Specifies the first device own address. + This parameter can be a 7-bit or 10-bit address. */ + + uint32_t AddressingMode; /*!< Specifies if 7-bit or 10-bit addressing mode is selected. + This parameter can be a value of @ref I2C_addressing_mode */ + + uint32_t DualAddressMode; /*!< Specifies if dual addressing mode is selected. + This parameter can be a value of @ref I2C_dual_addressing_mode */ + + uint32_t OwnAddress2; /*!< Specifies the second device own address if dual addressing mode is selected + This parameter can be a 7-bit address. */ + + uint32_t GeneralCallMode; /*!< Specifies if general call mode is selected. + This parameter can be a value of @ref I2C_general_call_addressing_mode */ + + uint32_t NoStretchMode; /*!< Specifies if nostretch mode is selected. + This parameter can be a value of @ref I2C_nostretch_mode */ + +} I2C_InitTypeDef; + +/** + * @} + */ + +/** @defgroup HAL_state_structure_definition HAL state structure definition + * @brief HAL State structure definition + * @note HAL I2C State value coding follow below described bitmap : + * b7-b6 Error information + * 00 : No Error + * 01 : Abort (Abort user request on going) + * 10 : Timeout + * 11 : Error + * b5 Peripheral initialization status + * 0 : Reset (Peripheral not initialized) + * 1 : Init done (Peripheral initialized and ready to use. HAL I2C Init function called) + * b4 (not used) + * x : Should be set to 0 + * b3 + * 0 : Ready or Busy (No Listen mode ongoing) + * 1 : Listen (Peripheral in Address Listen Mode) + * b2 Intrinsic process state + * 0 : Ready + * 1 : Busy (Peripheral busy with some configuration or internal operations) + * b1 Rx state + * 0 : Ready (no Rx operation ongoing) + * 1 : Busy (Rx operation ongoing) + * b0 Tx state + * 0 : Ready (no Tx operation ongoing) + * 1 : Busy (Tx operation ongoing) + * @{ + */ +typedef enum +{ + HAL_I2C_STATE_RESET = 0x00U, /*!< Peripheral is not yet Initialized */ + HAL_I2C_STATE_READY = 0x20U, /*!< Peripheral Initialized and ready for use */ + HAL_I2C_STATE_BUSY = 0x24U, /*!< An internal process is ongoing */ + HAL_I2C_STATE_BUSY_TX = 0x21U, /*!< Data Transmission process is ongoing */ + HAL_I2C_STATE_BUSY_RX = 0x22U, /*!< Data Reception process is ongoing */ + HAL_I2C_STATE_LISTEN = 0x28U, /*!< Address Listen Mode is ongoing */ + HAL_I2C_STATE_BUSY_TX_LISTEN = 0x29U, /*!< Address Listen Mode and Data Transmission + process is ongoing */ + HAL_I2C_STATE_BUSY_RX_LISTEN = 0x2AU, /*!< Address Listen Mode and Data Reception + process is ongoing */ + HAL_I2C_STATE_ABORT = 0x60U, /*!< Abort user request ongoing */ + HAL_I2C_STATE_TIMEOUT = 0xA0U, /*!< Timeout state */ + HAL_I2C_STATE_ERROR = 0xE0U /*!< Error */ + +} HAL_I2C_StateTypeDef; + +/** + * @} + */ + +/** @defgroup HAL_mode_structure_definition HAL mode structure definition + * @brief HAL Mode structure definition + * @note HAL I2C Mode value coding follow below described bitmap :\n + * b7 (not used)\n + * x : Should be set to 0\n + * b6\n + * 0 : None\n + * 1 : Memory (HAL I2C communication is in Memory Mode)\n + * b5\n + * 0 : None\n + * 1 : Slave (HAL I2C communication is in Slave Mode)\n + * b4\n + * 0 : None\n + * 1 : Master (HAL I2C communication is in Master Mode)\n + * b3-b2-b1-b0 (not used)\n + * xxxx : Should be set to 0000 + * @{ + */ +typedef enum +{ + HAL_I2C_MODE_NONE = 0x00U, /*!< No I2C communication on going */ + HAL_I2C_MODE_MASTER = 0x10U, /*!< I2C communication is in Master Mode */ + HAL_I2C_MODE_SLAVE = 0x20U, /*!< I2C communication is in Slave Mode */ + HAL_I2C_MODE_MEM = 0x40U /*!< I2C communication is in Memory Mode */ + +} HAL_I2C_ModeTypeDef; + +/** + * @} + */ + +/** @defgroup I2C_Error_Code_definition I2C Error Code definition + * @brief I2C Error Code definition + * @{ + */ +#define HAL_I2C_ERROR_NONE 0x00000000U /*!< No error */ +#define HAL_I2C_ERROR_BERR 0x00000001U /*!< BERR error */ +#define HAL_I2C_ERROR_ARLO 0x00000002U /*!< ARLO error */ +#define HAL_I2C_ERROR_AF 0x00000004U /*!< AF error */ +#define HAL_I2C_ERROR_OVR 0x00000008U /*!< OVR error */ +#define HAL_I2C_ERROR_DMA 0x00000010U /*!< DMA transfer error */ +#define HAL_I2C_ERROR_TIMEOUT 0x00000020U /*!< Timeout Error */ +#define HAL_I2C_ERROR_SIZE 0x00000040U /*!< Size Management error */ +#define HAL_I2C_ERROR_DMA_PARAM 0x00000080U /*!< DMA Parameter Error */ +#define HAL_I2C_WRONG_START 0x00000200U /*!< Wrong start Error */ +#if (USE_HAL_I2C_REGISTER_CALLBACKS == 1) +#define HAL_I2C_ERROR_INVALID_CALLBACK 0x00000100U /*!< Invalid Callback error */ +#endif /* USE_HAL_I2C_REGISTER_CALLBACKS */ +/** + * @} + */ + +/** @defgroup I2C_handle_Structure_definition I2C handle Structure definition + * @brief I2C handle Structure definition + * @{ + */ +#if (USE_HAL_I2C_REGISTER_CALLBACKS == 1) +typedef struct __I2C_HandleTypeDef +#else +typedef struct +#endif /* USE_HAL_I2C_REGISTER_CALLBACKS */ +{ + I2C_TypeDef *Instance; /*!< I2C registers base address */ + + I2C_InitTypeDef Init; /*!< I2C communication parameters */ + + uint8_t *pBuffPtr; /*!< Pointer to I2C transfer buffer */ + + uint16_t XferSize; /*!< I2C transfer size */ + + __IO uint16_t XferCount; /*!< I2C transfer counter */ + + __IO uint32_t XferOptions; /*!< I2C transfer options */ + + __IO uint32_t PreviousState; /*!< I2C communication Previous state and mode + context for internal usage */ + + DMA_HandleTypeDef *hdmatx; /*!< I2C Tx DMA handle parameters */ + + DMA_HandleTypeDef *hdmarx; /*!< I2C Rx DMA handle parameters */ + + HAL_LockTypeDef Lock; /*!< I2C locking object */ + + __IO HAL_I2C_StateTypeDef State; /*!< I2C communication state */ + + __IO HAL_I2C_ModeTypeDef Mode; /*!< I2C communication mode */ + + __IO uint32_t ErrorCode; /*!< I2C Error code */ + + __IO uint32_t Devaddress; /*!< I2C Target device address */ + + __IO uint32_t Memaddress; /*!< I2C Target memory address */ + + __IO uint32_t MemaddSize; /*!< I2C Target memory address size */ + + __IO uint32_t EventCount; /*!< I2C Event counter */ + + +#if (USE_HAL_I2C_REGISTER_CALLBACKS == 1) + void (* MasterTxCpltCallback)(struct __I2C_HandleTypeDef *hi2c); /*!< I2C Master Tx Transfer completed callback */ + void (* MasterRxCpltCallback)(struct __I2C_HandleTypeDef *hi2c); /*!< I2C Master Rx Transfer completed callback */ + void (* SlaveTxCpltCallback)(struct __I2C_HandleTypeDef *hi2c); /*!< I2C Slave Tx Transfer completed callback */ + void (* SlaveRxCpltCallback)(struct __I2C_HandleTypeDef *hi2c); /*!< I2C Slave Rx Transfer completed callback */ + void (* ListenCpltCallback)(struct __I2C_HandleTypeDef *hi2c); /*!< I2C Listen Complete callback */ + void (* MemTxCpltCallback)(struct __I2C_HandleTypeDef *hi2c); /*!< I2C Memory Tx Transfer completed callback */ + void (* MemRxCpltCallback)(struct __I2C_HandleTypeDef *hi2c); /*!< I2C Memory Rx Transfer completed callback */ + void (* ErrorCallback)(struct __I2C_HandleTypeDef *hi2c); /*!< I2C Error callback */ + void (* AbortCpltCallback)(struct __I2C_HandleTypeDef *hi2c); /*!< I2C Abort callback */ + + void (* AddrCallback)(struct __I2C_HandleTypeDef *hi2c, uint8_t TransferDirection, uint16_t AddrMatchCode); /*!< I2C Slave Address Match callback */ + + void (* MspInitCallback)(struct __I2C_HandleTypeDef *hi2c); /*!< I2C Msp Init callback */ + void (* MspDeInitCallback)(struct __I2C_HandleTypeDef *hi2c); /*!< I2C Msp DeInit callback */ + +#endif /* USE_HAL_I2C_REGISTER_CALLBACKS */ +} I2C_HandleTypeDef; + +#if (USE_HAL_I2C_REGISTER_CALLBACKS == 1) +/** + * @brief HAL I2C Callback ID enumeration definition + */ +typedef enum +{ + HAL_I2C_MASTER_TX_COMPLETE_CB_ID = 0x00U, /*!< I2C Master Tx Transfer completed callback ID */ + HAL_I2C_MASTER_RX_COMPLETE_CB_ID = 0x01U, /*!< I2C Master Rx Transfer completed callback ID */ + HAL_I2C_SLAVE_TX_COMPLETE_CB_ID = 0x02U, /*!< I2C Slave Tx Transfer completed callback ID */ + HAL_I2C_SLAVE_RX_COMPLETE_CB_ID = 0x03U, /*!< I2C Slave Rx Transfer completed callback ID */ + HAL_I2C_LISTEN_COMPLETE_CB_ID = 0x04U, /*!< I2C Listen Complete callback ID */ + HAL_I2C_MEM_TX_COMPLETE_CB_ID = 0x05U, /*!< I2C Memory Tx Transfer callback ID */ + HAL_I2C_MEM_RX_COMPLETE_CB_ID = 0x06U, /*!< I2C Memory Rx Transfer completed callback ID */ + HAL_I2C_ERROR_CB_ID = 0x07U, /*!< I2C Error callback ID */ + HAL_I2C_ABORT_CB_ID = 0x08U, /*!< I2C Abort callback ID */ + + HAL_I2C_MSPINIT_CB_ID = 0x09U, /*!< I2C Msp Init callback ID */ + HAL_I2C_MSPDEINIT_CB_ID = 0x0AU /*!< I2C Msp DeInit callback ID */ + +} HAL_I2C_CallbackIDTypeDef; + +/** + * @brief HAL I2C Callback pointer definition + */ +typedef void (*pI2C_CallbackTypeDef)(I2C_HandleTypeDef *hi2c); /*!< pointer to an I2C callback function */ +typedef void (*pI2C_AddrCallbackTypeDef)(I2C_HandleTypeDef *hi2c, uint8_t TransferDirection, uint16_t AddrMatchCode); /*!< pointer to an I2C Address Match callback function */ + +#endif /* USE_HAL_I2C_REGISTER_CALLBACKS */ +/** + * @} + */ + +/** + * @} + */ +/* Exported constants --------------------------------------------------------*/ + +/** @defgroup I2C_Exported_Constants I2C Exported Constants + * @{ + */ + +/** @defgroup I2C_duty_cycle_in_fast_mode I2C duty cycle in fast mode + * @{ + */ +#define I2C_DUTYCYCLE_2 0x00000000U +#define I2C_DUTYCYCLE_16_9 I2C_CCR_DUTY +/** + * @} + */ + +/** @defgroup I2C_addressing_mode I2C addressing mode + * @{ + */ +#define I2C_ADDRESSINGMODE_7BIT 0x00004000U +#define I2C_ADDRESSINGMODE_10BIT (I2C_OAR1_ADDMODE | 0x00004000U) +/** + * @} + */ + +/** @defgroup I2C_dual_addressing_mode I2C dual addressing mode + * @{ + */ +#define I2C_DUALADDRESS_DISABLE 0x00000000U +#define I2C_DUALADDRESS_ENABLE I2C_OAR2_ENDUAL +/** + * @} + */ + +/** @defgroup I2C_general_call_addressing_mode I2C general call addressing mode + * @{ + */ +#define I2C_GENERALCALL_DISABLE 0x00000000U +#define I2C_GENERALCALL_ENABLE I2C_CR1_ENGC +/** + * @} + */ + +/** @defgroup I2C_nostretch_mode I2C nostretch mode + * @{ + */ +#define I2C_NOSTRETCH_DISABLE 0x00000000U +#define I2C_NOSTRETCH_ENABLE I2C_CR1_NOSTRETCH +/** + * @} + */ + +/** @defgroup I2C_Memory_Address_Size I2C Memory Address Size + * @{ + */ +#define I2C_MEMADD_SIZE_8BIT 0x00000001U +#define I2C_MEMADD_SIZE_16BIT 0x00000010U +/** + * @} + */ + +/** @defgroup I2C_XferDirection_definition I2C XferDirection definition + * @{ + */ +#define I2C_DIRECTION_RECEIVE 0x00000000U +#define I2C_DIRECTION_TRANSMIT 0x00000001U +/** + * @} + */ + +/** @defgroup I2C_XferOptions_definition I2C XferOptions definition + * @{ + */ +#define I2C_FIRST_FRAME 0x00000001U +#define I2C_FIRST_AND_NEXT_FRAME 0x00000002U +#define I2C_NEXT_FRAME 0x00000004U +#define I2C_FIRST_AND_LAST_FRAME 0x00000008U +#define I2C_LAST_FRAME_NO_STOP 0x00000010U +#define I2C_LAST_FRAME 0x00000020U + +/* List of XferOptions in usage of : + * 1- Restart condition in all use cases (direction change or not) + */ +#define I2C_OTHER_FRAME (0x00AA0000U) +#define I2C_OTHER_AND_LAST_FRAME (0xAA000000U) +/** + * @} + */ + +/** @defgroup I2C_Interrupt_configuration_definition I2C Interrupt configuration definition + * @brief I2C Interrupt definition + * Elements values convention: 0xXXXXXXXX + * - XXXXXXXX : Interrupt control mask + * @{ + */ +#define I2C_IT_BUF I2C_CR2_ITBUFEN +#define I2C_IT_EVT I2C_CR2_ITEVTEN +#define I2C_IT_ERR I2C_CR2_ITERREN +/** + * @} + */ + +/** @defgroup I2C_Flag_definition I2C Flag definition + * @{ + */ + +#define I2C_FLAG_OVR 0x00010800U +#define I2C_FLAG_AF 0x00010400U +#define I2C_FLAG_ARLO 0x00010200U +#define I2C_FLAG_BERR 0x00010100U +#define I2C_FLAG_TXE 0x00010080U +#define I2C_FLAG_RXNE 0x00010040U +#define I2C_FLAG_STOPF 0x00010010U +#define I2C_FLAG_ADD10 0x00010008U +#define I2C_FLAG_BTF 0x00010004U +#define I2C_FLAG_ADDR 0x00010002U +#define I2C_FLAG_SB 0x00010001U +#define I2C_FLAG_DUALF 0x00100080U +#define I2C_FLAG_GENCALL 0x00100010U +#define I2C_FLAG_TRA 0x00100004U +#define I2C_FLAG_BUSY 0x00100002U +#define I2C_FLAG_MSL 0x00100001U +/** + * @} + */ + +/** + * @} + */ + +/* Exported macros -----------------------------------------------------------*/ + +/** @defgroup I2C_Exported_Macros I2C Exported Macros + * @{ + */ + +/** @brief Reset I2C handle state. + * @param __HANDLE__ specifies the I2C Handle. + * @retval None + */ +#if (USE_HAL_I2C_REGISTER_CALLBACKS == 1) +#define __HAL_I2C_RESET_HANDLE_STATE(__HANDLE__) do{ \ + (__HANDLE__)->State = HAL_I2C_STATE_RESET; \ + (__HANDLE__)->MspInitCallback = NULL; \ + (__HANDLE__)->MspDeInitCallback = NULL; \ + } while(0) +#else +#define __HAL_I2C_RESET_HANDLE_STATE(__HANDLE__) ((__HANDLE__)->State = HAL_I2C_STATE_RESET) +#endif + +/** @brief Enable or disable the specified I2C interrupts. + * @param __HANDLE__ specifies the I2C Handle. + * @param __INTERRUPT__ specifies the interrupt source to enable or disable. + * This parameter can be one of the following values: + * @arg I2C_IT_BUF: Buffer interrupt enable + * @arg I2C_IT_EVT: Event interrupt enable + * @arg I2C_IT_ERR: Error interrupt enable + * @retval None + */ +#define __HAL_I2C_ENABLE_IT(__HANDLE__, __INTERRUPT__) SET_BIT((__HANDLE__)->Instance->CR2,(__INTERRUPT__)) +#define __HAL_I2C_DISABLE_IT(__HANDLE__, __INTERRUPT__) CLEAR_BIT((__HANDLE__)->Instance->CR2, (__INTERRUPT__)) + +/** @brief Checks if the specified I2C interrupt source is enabled or disabled. + * @param __HANDLE__ specifies the I2C Handle. + * @param __INTERRUPT__ specifies the I2C interrupt source to check. + * This parameter can be one of the following values: + * @arg I2C_IT_BUF: Buffer interrupt enable + * @arg I2C_IT_EVT: Event interrupt enable + * @arg I2C_IT_ERR: Error interrupt enable + * @retval The new state of __INTERRUPT__ (TRUE or FALSE). + */ +#define __HAL_I2C_GET_IT_SOURCE(__HANDLE__, __INTERRUPT__) ((((__HANDLE__)->Instance->CR2 & (__INTERRUPT__)) == (__INTERRUPT__)) ? SET : RESET) + +/** @brief Checks whether the specified I2C flag is set or not. + * @param __HANDLE__ specifies the I2C Handle. + * @param __FLAG__ specifies the flag to check. + * This parameter can be one of the following values: + * @arg I2C_FLAG_OVR: Overrun/Underrun flag + * @arg I2C_FLAG_AF: Acknowledge failure flag + * @arg I2C_FLAG_ARLO: Arbitration lost flag + * @arg I2C_FLAG_BERR: Bus error flag + * @arg I2C_FLAG_TXE: Data register empty flag + * @arg I2C_FLAG_RXNE: Data register not empty flag + * @arg I2C_FLAG_STOPF: Stop detection flag + * @arg I2C_FLAG_ADD10: 10-bit header sent flag + * @arg I2C_FLAG_BTF: Byte transfer finished flag + * @arg I2C_FLAG_ADDR: Address sent flag + * Address matched flag + * @arg I2C_FLAG_SB: Start bit flag + * @arg I2C_FLAG_DUALF: Dual flag + * @arg I2C_FLAG_GENCALL: General call header flag + * @arg I2C_FLAG_TRA: Transmitter/Receiver flag + * @arg I2C_FLAG_BUSY: Bus busy flag + * @arg I2C_FLAG_MSL: Master/Slave flag + * @retval The new state of __FLAG__ (TRUE or FALSE). + */ +#define __HAL_I2C_GET_FLAG(__HANDLE__, __FLAG__) ((((uint8_t)((__FLAG__) >> 16U)) == 0x01U) ? \ + (((((__HANDLE__)->Instance->SR1) & ((__FLAG__) & I2C_FLAG_MASK)) == ((__FLAG__) & I2C_FLAG_MASK)) ? SET : RESET) : \ + (((((__HANDLE__)->Instance->SR2) & ((__FLAG__) & I2C_FLAG_MASK)) == ((__FLAG__) & I2C_FLAG_MASK)) ? SET : RESET)) + +/** @brief Clears the I2C pending flags which are cleared by writing 0 in a specific bit. + * @param __HANDLE__ specifies the I2C Handle. + * @param __FLAG__ specifies the flag to clear. + * This parameter can be any combination of the following values: + * @arg I2C_FLAG_OVR: Overrun/Underrun flag (Slave mode) + * @arg I2C_FLAG_AF: Acknowledge failure flag + * @arg I2C_FLAG_ARLO: Arbitration lost flag (Master mode) + * @arg I2C_FLAG_BERR: Bus error flag + * @retval None + */ +#define __HAL_I2C_CLEAR_FLAG(__HANDLE__, __FLAG__) ((__HANDLE__)->Instance->SR1 = ~((__FLAG__) & I2C_FLAG_MASK)) + +/** @brief Clears the I2C ADDR pending flag. + * @param __HANDLE__ specifies the I2C Handle. + * This parameter can be I2C where x: 1, 2, or 3 to select the I2C peripheral. + * @retval None + */ +#define __HAL_I2C_CLEAR_ADDRFLAG(__HANDLE__) \ + do{ \ + __IO uint32_t tmpreg = 0x00U; \ + tmpreg = (__HANDLE__)->Instance->SR1; \ + tmpreg = (__HANDLE__)->Instance->SR2; \ + UNUSED(tmpreg); \ + } while(0) + +/** @brief Clears the I2C STOPF pending flag. + * @param __HANDLE__ specifies the I2C Handle. + * @retval None + */ +#define __HAL_I2C_CLEAR_STOPFLAG(__HANDLE__) \ + do{ \ + __IO uint32_t tmpreg = 0x00U; \ + tmpreg = (__HANDLE__)->Instance->SR1; \ + SET_BIT((__HANDLE__)->Instance->CR1, I2C_CR1_PE); \ + UNUSED(tmpreg); \ + } while(0) + +/** @brief Enable the specified I2C peripheral. + * @param __HANDLE__ specifies the I2C Handle. + * @retval None + */ +#define __HAL_I2C_ENABLE(__HANDLE__) SET_BIT((__HANDLE__)->Instance->CR1, I2C_CR1_PE) + +/** @brief Disable the specified I2C peripheral. + * @param __HANDLE__ specifies the I2C Handle. + * @retval None + */ +#define __HAL_I2C_DISABLE(__HANDLE__) CLEAR_BIT((__HANDLE__)->Instance->CR1, I2C_CR1_PE) + +/** + * @} + */ + +/* Exported functions --------------------------------------------------------*/ +/** @addtogroup I2C_Exported_Functions + * @{ + */ + +/** @addtogroup I2C_Exported_Functions_Group1 Initialization and de-initialization functions + * @{ + */ +/* Initialization and de-initialization functions******************************/ +HAL_StatusTypeDef HAL_I2C_Init(I2C_HandleTypeDef *hi2c); +HAL_StatusTypeDef HAL_I2C_DeInit(I2C_HandleTypeDef *hi2c); +void HAL_I2C_MspInit(I2C_HandleTypeDef *hi2c); +void HAL_I2C_MspDeInit(I2C_HandleTypeDef *hi2c); + +/* Callbacks Register/UnRegister functions ***********************************/ +#if (USE_HAL_I2C_REGISTER_CALLBACKS == 1) +HAL_StatusTypeDef HAL_I2C_RegisterCallback(I2C_HandleTypeDef *hi2c, HAL_I2C_CallbackIDTypeDef CallbackID, pI2C_CallbackTypeDef pCallback); +HAL_StatusTypeDef HAL_I2C_UnRegisterCallback(I2C_HandleTypeDef *hi2c, HAL_I2C_CallbackIDTypeDef CallbackID); + +HAL_StatusTypeDef HAL_I2C_RegisterAddrCallback(I2C_HandleTypeDef *hi2c, pI2C_AddrCallbackTypeDef pCallback); +HAL_StatusTypeDef HAL_I2C_UnRegisterAddrCallback(I2C_HandleTypeDef *hi2c); +#endif /* USE_HAL_I2C_REGISTER_CALLBACKS */ +/** + * @} + */ + +/** @addtogroup I2C_Exported_Functions_Group2 Input and Output operation functions + * @{ + */ +/* IO operation functions ****************************************************/ +/******* Blocking mode: Polling */ +HAL_StatusTypeDef HAL_I2C_Master_Transmit(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint8_t *pData, uint16_t Size, uint32_t Timeout); +HAL_StatusTypeDef HAL_I2C_Master_Receive(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint8_t *pData, uint16_t Size, uint32_t Timeout); +HAL_StatusTypeDef HAL_I2C_Slave_Transmit(I2C_HandleTypeDef *hi2c, uint8_t *pData, uint16_t Size, uint32_t Timeout); +HAL_StatusTypeDef HAL_I2C_Slave_Receive(I2C_HandleTypeDef *hi2c, uint8_t *pData, uint16_t Size, uint32_t Timeout); +HAL_StatusTypeDef HAL_I2C_Mem_Write(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint16_t MemAddress, uint16_t MemAddSize, uint8_t *pData, uint16_t Size, uint32_t Timeout); +HAL_StatusTypeDef HAL_I2C_Mem_Read(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint16_t MemAddress, uint16_t MemAddSize, uint8_t *pData, uint16_t Size, uint32_t Timeout); +HAL_StatusTypeDef HAL_I2C_IsDeviceReady(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint32_t Trials, uint32_t Timeout); + +/******* Non-Blocking mode: Interrupt */ +HAL_StatusTypeDef HAL_I2C_Master_Transmit_IT(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint8_t *pData, uint16_t Size); +HAL_StatusTypeDef HAL_I2C_Master_Receive_IT(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint8_t *pData, uint16_t Size); +HAL_StatusTypeDef HAL_I2C_Slave_Transmit_IT(I2C_HandleTypeDef *hi2c, uint8_t *pData, uint16_t Size); +HAL_StatusTypeDef HAL_I2C_Slave_Receive_IT(I2C_HandleTypeDef *hi2c, uint8_t *pData, uint16_t Size); +HAL_StatusTypeDef HAL_I2C_Mem_Write_IT(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint16_t MemAddress, uint16_t MemAddSize, uint8_t *pData, uint16_t Size); +HAL_StatusTypeDef HAL_I2C_Mem_Read_IT(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint16_t MemAddress, uint16_t MemAddSize, uint8_t *pData, uint16_t Size); + +HAL_StatusTypeDef HAL_I2C_Master_Seq_Transmit_IT(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint8_t *pData, uint16_t Size, uint32_t XferOptions); +HAL_StatusTypeDef HAL_I2C_Master_Seq_Receive_IT(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint8_t *pData, uint16_t Size, uint32_t XferOptions); +HAL_StatusTypeDef HAL_I2C_Slave_Seq_Transmit_IT(I2C_HandleTypeDef *hi2c, uint8_t *pData, uint16_t Size, uint32_t XferOptions); +HAL_StatusTypeDef HAL_I2C_Slave_Seq_Receive_IT(I2C_HandleTypeDef *hi2c, uint8_t *pData, uint16_t Size, uint32_t XferOptions); +HAL_StatusTypeDef HAL_I2C_EnableListen_IT(I2C_HandleTypeDef *hi2c); +HAL_StatusTypeDef HAL_I2C_DisableListen_IT(I2C_HandleTypeDef *hi2c); +HAL_StatusTypeDef HAL_I2C_Master_Abort_IT(I2C_HandleTypeDef *hi2c, uint16_t DevAddress); + +/******* Non-Blocking mode: DMA */ +HAL_StatusTypeDef HAL_I2C_Master_Transmit_DMA(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint8_t *pData, uint16_t Size); +HAL_StatusTypeDef HAL_I2C_Master_Receive_DMA(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint8_t *pData, uint16_t Size); +HAL_StatusTypeDef HAL_I2C_Slave_Transmit_DMA(I2C_HandleTypeDef *hi2c, uint8_t *pData, uint16_t Size); +HAL_StatusTypeDef HAL_I2C_Slave_Receive_DMA(I2C_HandleTypeDef *hi2c, uint8_t *pData, uint16_t Size); +HAL_StatusTypeDef HAL_I2C_Mem_Write_DMA(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint16_t MemAddress, uint16_t MemAddSize, uint8_t *pData, uint16_t Size); +HAL_StatusTypeDef HAL_I2C_Mem_Read_DMA(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint16_t MemAddress, uint16_t MemAddSize, uint8_t *pData, uint16_t Size); + +HAL_StatusTypeDef HAL_I2C_Master_Seq_Transmit_DMA(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint8_t *pData, uint16_t Size, uint32_t XferOptions); +HAL_StatusTypeDef HAL_I2C_Master_Seq_Receive_DMA(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint8_t *pData, uint16_t Size, uint32_t XferOptions); +HAL_StatusTypeDef HAL_I2C_Slave_Seq_Transmit_DMA(I2C_HandleTypeDef *hi2c, uint8_t *pData, uint16_t Size, uint32_t XferOptions); +HAL_StatusTypeDef HAL_I2C_Slave_Seq_Receive_DMA(I2C_HandleTypeDef *hi2c, uint8_t *pData, uint16_t Size, uint32_t XferOptions); +/** + * @} + */ + +/** @addtogroup I2C_IRQ_Handler_and_Callbacks IRQ Handler and Callbacks + * @{ + */ +/******* I2C IRQHandler and Callbacks used in non blocking modes (Interrupt and DMA) */ +void HAL_I2C_EV_IRQHandler(I2C_HandleTypeDef *hi2c); +void HAL_I2C_ER_IRQHandler(I2C_HandleTypeDef *hi2c); +void HAL_I2C_MasterTxCpltCallback(I2C_HandleTypeDef *hi2c); +void HAL_I2C_MasterRxCpltCallback(I2C_HandleTypeDef *hi2c); +void HAL_I2C_SlaveTxCpltCallback(I2C_HandleTypeDef *hi2c); +void HAL_I2C_SlaveRxCpltCallback(I2C_HandleTypeDef *hi2c); +void HAL_I2C_AddrCallback(I2C_HandleTypeDef *hi2c, uint8_t TransferDirection, uint16_t AddrMatchCode); +void HAL_I2C_ListenCpltCallback(I2C_HandleTypeDef *hi2c); +void HAL_I2C_MemTxCpltCallback(I2C_HandleTypeDef *hi2c); +void HAL_I2C_MemRxCpltCallback(I2C_HandleTypeDef *hi2c); +void HAL_I2C_ErrorCallback(I2C_HandleTypeDef *hi2c); +void HAL_I2C_AbortCpltCallback(I2C_HandleTypeDef *hi2c); +/** + * @} + */ + +/** @addtogroup I2C_Exported_Functions_Group3 Peripheral State, Mode and Error functions + * @{ + */ +/* Peripheral State, Mode and Error functions *********************************/ +HAL_I2C_StateTypeDef HAL_I2C_GetState(I2C_HandleTypeDef *hi2c); +HAL_I2C_ModeTypeDef HAL_I2C_GetMode(I2C_HandleTypeDef *hi2c); +uint32_t HAL_I2C_GetError(I2C_HandleTypeDef *hi2c); + +/** + * @} + */ + +/** + * @} + */ +/* Private types -------------------------------------------------------------*/ +/* Private variables ---------------------------------------------------------*/ +/* Private constants ---------------------------------------------------------*/ +/** @defgroup I2C_Private_Constants I2C Private Constants + * @{ + */ +#define I2C_FLAG_MASK 0x0000FFFFU +#define I2C_MIN_PCLK_FREQ_STANDARD 2000000U /*!< 2 MHz */ +#define I2C_MIN_PCLK_FREQ_FAST 4000000U /*!< 4 MHz */ +/** + * @} + */ + +/* Private macros ------------------------------------------------------------*/ +/** @defgroup I2C_Private_Macros I2C Private Macros + * @{ + */ + +#define I2C_MIN_PCLK_FREQ(__PCLK__, __SPEED__) (((__SPEED__) <= 100000U) ? ((__PCLK__) < I2C_MIN_PCLK_FREQ_STANDARD) : ((__PCLK__) < I2C_MIN_PCLK_FREQ_FAST)) +#define I2C_CCR_CALCULATION(__PCLK__, __SPEED__, __COEFF__) (((((__PCLK__) - 1U)/((__SPEED__) * (__COEFF__))) + 1U) & I2C_CCR_CCR) +#define I2C_FREQRANGE(__PCLK__) ((__PCLK__)/1000000U) +#define I2C_RISE_TIME(__FREQRANGE__, __SPEED__) (((__SPEED__) <= 100000U) ? ((__FREQRANGE__) + 1U) : ((((__FREQRANGE__) * 300U) / 1000U) + 1U)) +#define I2C_SPEED_STANDARD(__PCLK__, __SPEED__) ((I2C_CCR_CALCULATION((__PCLK__), (__SPEED__), 2U) < 4U)? 4U:I2C_CCR_CALCULATION((__PCLK__), (__SPEED__), 2U)) +#define I2C_SPEED_FAST(__PCLK__, __SPEED__, __DUTYCYCLE__) (((__DUTYCYCLE__) == I2C_DUTYCYCLE_2)? I2C_CCR_CALCULATION((__PCLK__), (__SPEED__), 3U) : (I2C_CCR_CALCULATION((__PCLK__), (__SPEED__), 25U) | I2C_DUTYCYCLE_16_9)) +#define I2C_SPEED(__PCLK__, __SPEED__, __DUTYCYCLE__) (((__SPEED__) <= 100000U)? (I2C_SPEED_STANDARD((__PCLK__), (__SPEED__))) : \ + ((I2C_SPEED_FAST((__PCLK__), (__SPEED__), (__DUTYCYCLE__)) & I2C_CCR_CCR) == 0U)? 1U : \ + ((I2C_SPEED_FAST((__PCLK__), (__SPEED__), (__DUTYCYCLE__))) | I2C_CCR_FS)) + +#define I2C_7BIT_ADD_WRITE(__ADDRESS__) ((uint8_t)((__ADDRESS__) & (uint8_t)(~I2C_OAR1_ADD0))) +#define I2C_7BIT_ADD_READ(__ADDRESS__) ((uint8_t)((__ADDRESS__) | I2C_OAR1_ADD0)) + +#define I2C_10BIT_ADDRESS(__ADDRESS__) ((uint8_t)((uint16_t)((__ADDRESS__) & (uint16_t)0x00FF))) +#define I2C_10BIT_HEADER_WRITE(__ADDRESS__) ((uint8_t)((uint16_t)((uint16_t)(((uint16_t)((__ADDRESS__) & (uint16_t)0x0300)) >> 7) | (uint16_t)0x00F0))) +#define I2C_10BIT_HEADER_READ(__ADDRESS__) ((uint8_t)((uint16_t)((uint16_t)(((uint16_t)((__ADDRESS__) & (uint16_t)0x0300)) >> 7) | (uint16_t)(0x00F1)))) + +#define I2C_MEM_ADD_MSB(__ADDRESS__) ((uint8_t)((uint16_t)(((uint16_t)((__ADDRESS__) & (uint16_t)0xFF00)) >> 8))) +#define I2C_MEM_ADD_LSB(__ADDRESS__) ((uint8_t)((uint16_t)((__ADDRESS__) & (uint16_t)0x00FF))) + +/** @defgroup I2C_IS_RTC_Definitions I2C Private macros to check input parameters + * @{ + */ +#define IS_I2C_DUTY_CYCLE(CYCLE) (((CYCLE) == I2C_DUTYCYCLE_2) || \ + ((CYCLE) == I2C_DUTYCYCLE_16_9)) +#define IS_I2C_ADDRESSING_MODE(ADDRESS) (((ADDRESS) == I2C_ADDRESSINGMODE_7BIT) || \ + ((ADDRESS) == I2C_ADDRESSINGMODE_10BIT)) +#define IS_I2C_DUAL_ADDRESS(ADDRESS) (((ADDRESS) == I2C_DUALADDRESS_DISABLE) || \ + ((ADDRESS) == I2C_DUALADDRESS_ENABLE)) +#define IS_I2C_GENERAL_CALL(CALL) (((CALL) == I2C_GENERALCALL_DISABLE) || \ + ((CALL) == I2C_GENERALCALL_ENABLE)) +#define IS_I2C_NO_STRETCH(STRETCH) (((STRETCH) == I2C_NOSTRETCH_DISABLE) || \ + ((STRETCH) == I2C_NOSTRETCH_ENABLE)) +#define IS_I2C_MEMADD_SIZE(SIZE) (((SIZE) == I2C_MEMADD_SIZE_8BIT) || \ + ((SIZE) == I2C_MEMADD_SIZE_16BIT)) +#define IS_I2C_CLOCK_SPEED(SPEED) (((SPEED) > 0U) && ((SPEED) <= 400000U)) +#define IS_I2C_OWN_ADDRESS1(ADDRESS1) (((ADDRESS1) & 0xFFFFFC00U) == 0U) +#define IS_I2C_OWN_ADDRESS2(ADDRESS2) (((ADDRESS2) & 0xFFFFFF01U) == 0U) +#define IS_I2C_TRANSFER_OPTIONS_REQUEST(REQUEST) (((REQUEST) == I2C_FIRST_FRAME) || \ + ((REQUEST) == I2C_FIRST_AND_NEXT_FRAME) || \ + ((REQUEST) == I2C_NEXT_FRAME) || \ + ((REQUEST) == I2C_FIRST_AND_LAST_FRAME) || \ + ((REQUEST) == I2C_LAST_FRAME) || \ + ((REQUEST) == I2C_LAST_FRAME_NO_STOP) || \ + IS_I2C_TRANSFER_OTHER_OPTIONS_REQUEST(REQUEST)) + +#define IS_I2C_TRANSFER_OTHER_OPTIONS_REQUEST(REQUEST) (((REQUEST) == I2C_OTHER_FRAME) || \ + ((REQUEST) == I2C_OTHER_AND_LAST_FRAME)) + +#define I2C_CHECK_FLAG(__ISR__, __FLAG__) ((((__ISR__) & ((__FLAG__) & I2C_FLAG_MASK)) == ((__FLAG__) & I2C_FLAG_MASK)) ? SET : RESET) +#define I2C_CHECK_IT_SOURCE(__CR1__, __IT__) ((((__CR1__) & (__IT__)) == (__IT__)) ? SET : RESET) +/** + * @} + */ + +/** + * @} + */ + +/* Private functions ---------------------------------------------------------*/ +/** @defgroup I2C_Private_Functions I2C Private Functions + * @{ + */ + +/** + * @} + */ + +/** + * @} + */ + +/** + * @} + */ + +#ifdef __cplusplus +} +#endif + + +#endif /* __STM32F1xx_HAL_I2C_H */ + +/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ diff --git a/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.c b/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.c new file mode 100644 index 0000000..009cd65 --- /dev/null +++ b/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.c @@ -0,0 +1,7618 @@ +/** + ****************************************************************************** + * @file stm32f1xx_hal_i2c.c + * @author MCD Application Team + * @brief I2C HAL module driver. + * This file provides firmware functions to manage the following + * functionalities of the Inter Integrated Circuit (I2C) peripheral: + * + Initialization and de-initialization functions + * + IO operation functions + * + Peripheral State, Mode and Error functions + * + @verbatim + ============================================================================== + ##### How to use this driver ##### + ============================================================================== + [..] + The I2C HAL driver can be used as follows: + + (#) Declare a I2C_HandleTypeDef handle structure, for example: + I2C_HandleTypeDef hi2c; + + (#)Initialize the I2C low level resources by implementing the @ref HAL_I2C_MspInit() API: + (##) Enable the I2Cx interface clock + (##) I2C pins configuration + (+++) Enable the clock for the I2C GPIOs + (+++) Configure I2C pins as alternate function open-drain + (##) NVIC configuration if you need to use interrupt process + (+++) Configure the I2Cx interrupt priority + (+++) Enable the NVIC I2C IRQ Channel + (##) DMA Configuration if you need to use DMA process + (+++) Declare a DMA_HandleTypeDef handle structure for the transmit or receive channel + (+++) Enable the DMAx interface clock using + (+++) Configure the DMA handle parameters + (+++) Configure the DMA Tx or Rx channel + (+++) Associate the initialized DMA handle to the hi2c DMA Tx or Rx handle + (+++) Configure the priority and enable the NVIC for the transfer complete interrupt on + the DMA Tx or Rx channel + + (#) Configure the Communication Speed, Duty cycle, Addressing mode, Own Address1, + Dual Addressing mode, Own Address2, General call and Nostretch mode in the hi2c Init structure. + + (#) Initialize the I2C registers by calling the @ref HAL_I2C_Init(), configures also the low level Hardware + (GPIO, CLOCK, NVIC...etc) by calling the customized @ref HAL_I2C_MspInit() API. + + (#) To check if target device is ready for communication, use the function @ref HAL_I2C_IsDeviceReady() + + (#) For I2C IO and IO MEM operations, three operation modes are available within this driver : + + *** Polling mode IO operation *** + ================================= + [..] + (+) Transmit in master mode an amount of data in blocking mode using @ref HAL_I2C_Master_Transmit() + (+) Receive in master mode an amount of data in blocking mode using @ref HAL_I2C_Master_Receive() + (+) Transmit in slave mode an amount of data in blocking mode using @ref HAL_I2C_Slave_Transmit() + (+) Receive in slave mode an amount of data in blocking mode using @ref HAL_I2C_Slave_Receive() + + *** Polling mode IO MEM operation *** + ===================================== + [..] + (+) Write an amount of data in blocking mode to a specific memory address using @ref HAL_I2C_Mem_Write() + (+) Read an amount of data in blocking mode from a specific memory address using @ref HAL_I2C_Mem_Read() + + + *** Interrupt mode IO operation *** + =================================== + [..] + (+) Transmit in master mode an amount of data in non-blocking mode using @ref HAL_I2C_Master_Transmit_IT() + (+) At transmission end of transfer, @ref HAL_I2C_MasterTxCpltCallback() is executed and user can + add his own code by customization of function pointer @ref HAL_I2C_MasterTxCpltCallback() + (+) Receive in master mode an amount of data in non-blocking mode using @ref HAL_I2C_Master_Receive_IT() + (+) At reception end of transfer, @ref HAL_I2C_MasterRxCpltCallback() is executed and user can + add his own code by customization of function pointer @ref HAL_I2C_MasterRxCpltCallback() + (+) Transmit in slave mode an amount of data in non-blocking mode using @ref HAL_I2C_Slave_Transmit_IT() + (+) At transmission end of transfer, @ref HAL_I2C_SlaveTxCpltCallback() is executed and user can + add his own code by customization of function pointer @ref HAL_I2C_SlaveTxCpltCallback() + (+) Receive in slave mode an amount of data in non-blocking mode using @ref HAL_I2C_Slave_Receive_IT() + (+) At reception end of transfer, @ref HAL_I2C_SlaveRxCpltCallback() is executed and user can + add his own code by customization of function pointer @ref HAL_I2C_SlaveRxCpltCallback() + (+) In case of transfer Error, @ref HAL_I2C_ErrorCallback() function is executed and user can + add his own code by customization of function pointer @ref HAL_I2C_ErrorCallback() + (+) Abort a master I2C process communication with Interrupt using @ref HAL_I2C_Master_Abort_IT() + (+) End of abort process, @ref HAL_I2C_AbortCpltCallback() is executed and user can + add his own code by customization of function pointer @ref HAL_I2C_AbortCpltCallback() + + *** Interrupt mode or DMA mode IO sequential operation *** + ========================================================== + [..] + (@) These interfaces allow to manage a sequential transfer with a repeated start condition + when a direction change during transfer + [..] + (+) A specific option field manage the different steps of a sequential transfer + (+) Option field values are defined through @ref I2C_XferOptions_definition and are listed below: + (++) I2C_FIRST_AND_LAST_FRAME: No sequential usage, functional is same as associated interfaces in no sequential mode + (++) I2C_FIRST_FRAME: Sequential usage, this option allow to manage a sequence with start condition, address + and data to transfer without a final stop condition + (++) I2C_FIRST_AND_NEXT_FRAME: Sequential usage (Master only), this option allow to manage a sequence with start condition, address + and data to transfer without a final stop condition, an then permit a call the same master sequential interface + several times (like @ref HAL_I2C_Master_Seq_Transmit_IT() then @ref HAL_I2C_Master_Seq_Transmit_IT() + or @ref HAL_I2C_Master_Seq_Transmit_DMA() then @ref HAL_I2C_Master_Seq_Transmit_DMA()) + (++) I2C_NEXT_FRAME: Sequential usage, this option allow to manage a sequence with a restart condition, address + and with new data to transfer if the direction change or manage only the new data to transfer + if no direction change and without a final stop condition in both cases + (++) I2C_LAST_FRAME: Sequential usage, this option allow to manage a sequance with a restart condition, address + and with new data to transfer if the direction change or manage only the new data to transfer + if no direction change and with a final stop condition in both cases + (++) I2C_LAST_FRAME_NO_STOP: Sequential usage (Master only), this option allow to manage a restart condition after several call of the same master sequential + interface several times (link with option I2C_FIRST_AND_NEXT_FRAME). + Usage can, transfer several bytes one by one using HAL_I2C_Master_Seq_Transmit_IT(option I2C_FIRST_AND_NEXT_FRAME then I2C_NEXT_FRAME) + or HAL_I2C_Master_Seq_Receive_IT(option I2C_FIRST_AND_NEXT_FRAME then I2C_NEXT_FRAME) + or HAL_I2C_Master_Seq_Transmit_DMA(option I2C_FIRST_AND_NEXT_FRAME then I2C_NEXT_FRAME) + or HAL_I2C_Master_Seq_Receive_DMA(option I2C_FIRST_AND_NEXT_FRAME then I2C_NEXT_FRAME). + Then usage of this option I2C_LAST_FRAME_NO_STOP at the last Transmit or Receive sequence permit to call the opposite interface Receive or Transmit + without stopping the communication and so generate a restart condition. + (++) I2C_OTHER_FRAME: Sequential usage (Master only), this option allow to manage a restart condition after each call of the same master sequential + interface. + Usage can, transfer several bytes one by one with a restart with slave address between each bytes using HAL_I2C_Master_Seq_Transmit_IT(option I2C_FIRST_FRAME then I2C_OTHER_FRAME) + or HAL_I2C_Master_Seq_Receive_IT(option I2C_FIRST_FRAME then I2C_OTHER_FRAME) + or HAL_I2C_Master_Seq_Transmit_DMA(option I2C_FIRST_FRAME then I2C_OTHER_FRAME) + or HAL_I2C_Master_Seq_Receive_DMA(option I2C_FIRST_FRAME then I2C_OTHER_FRAME). + Then usage of this option I2C_OTHER_AND_LAST_FRAME at the last frame to help automatic generation of STOP condition. + + (+) Different sequential I2C interfaces are listed below: + (++) Sequential transmit in master I2C mode an amount of data in non-blocking mode using @ref HAL_I2C_Master_Seq_Transmit_IT() + or using @ref HAL_I2C_Master_Seq_Transmit_DMA() + (+++) At transmission end of current frame transfer, @ref HAL_I2C_MasterTxCpltCallback() is executed and user can + add his own code by customization of function pointer @ref HAL_I2C_MasterTxCpltCallback() + (++) Sequential receive in master I2C mode an amount of data in non-blocking mode using @ref HAL_I2C_Master_Seq_Receive_IT() + or using @ref HAL_I2C_Master_Seq_Receive_DMA() + (+++) At reception end of current frame transfer, @ref HAL_I2C_MasterRxCpltCallback() is executed and user can + add his own code by customization of function pointer @ref HAL_I2C_MasterRxCpltCallback() + (++) Abort a master IT or DMA I2C process communication with Interrupt using @ref HAL_I2C_Master_Abort_IT() + (+++) End of abort process, @ref HAL_I2C_AbortCpltCallback() is executed and user can + add his own code by customization of function pointer @ref HAL_I2C_AbortCpltCallback() + (++) Enable/disable the Address listen mode in slave I2C mode using @ref HAL_I2C_EnableListen_IT() @ref HAL_I2C_DisableListen_IT() + (+++) When address slave I2C match, @ref HAL_I2C_AddrCallback() is executed and user can + add his own code to check the Address Match Code and the transmission direction request by master (Write/Read). + (+++) At Listen mode end @ref HAL_I2C_ListenCpltCallback() is executed and user can + add his own code by customization of function pointer @ref HAL_I2C_ListenCpltCallback() + (++) Sequential transmit in slave I2C mode an amount of data in non-blocking mode using @ref HAL_I2C_Slave_Seq_Transmit_IT() + or using @ref HAL_I2C_Slave_Seq_Transmit_DMA() + (+++) At transmission end of current frame transfer, @ref HAL_I2C_SlaveTxCpltCallback() is executed and user can + add his own code by customization of function pointer @ref HAL_I2C_SlaveTxCpltCallback() + (++) Sequential receive in slave I2C mode an amount of data in non-blocking mode using @ref HAL_I2C_Slave_Seq_Receive_IT() + or using @ref HAL_I2C_Slave_Seq_Receive_DMA() + (+++) At reception end of current frame transfer, @ref HAL_I2C_SlaveRxCpltCallback() is executed and user can + add his own code by customization of function pointer @ref HAL_I2C_SlaveRxCpltCallback() + (++) In case of transfer Error, @ref HAL_I2C_ErrorCallback() function is executed and user can + add his own code by customization of function pointer @ref HAL_I2C_ErrorCallback() + + *** Interrupt mode IO MEM operation *** + ======================================= + [..] + (+) Write an amount of data in non-blocking mode with Interrupt to a specific memory address using + @ref HAL_I2C_Mem_Write_IT() + (+) At Memory end of write transfer, @ref HAL_I2C_MemTxCpltCallback() is executed and user can + add his own code by customization of function pointer @ref HAL_I2C_MemTxCpltCallback() + (+) Read an amount of data in non-blocking mode with Interrupt from a specific memory address using + @ref HAL_I2C_Mem_Read_IT() + (+) At Memory end of read transfer, @ref HAL_I2C_MemRxCpltCallback() is executed and user can + add his own code by customization of function pointer @ref HAL_I2C_MemRxCpltCallback() + (+) In case of transfer Error, @ref HAL_I2C_ErrorCallback() function is executed and user can + add his own code by customization of function pointer @ref HAL_I2C_ErrorCallback() + + *** DMA mode IO operation *** + ============================== + [..] + (+) Transmit in master mode an amount of data in non-blocking mode (DMA) using + @ref HAL_I2C_Master_Transmit_DMA() + (+) At transmission end of transfer, @ref HAL_I2C_MasterTxCpltCallback() is executed and user can + add his own code by customization of function pointer @ref HAL_I2C_MasterTxCpltCallback() + (+) Receive in master mode an amount of data in non-blocking mode (DMA) using + @ref HAL_I2C_Master_Receive_DMA() + (+) At reception end of transfer, @ref HAL_I2C_MasterRxCpltCallback() is executed and user can + add his own code by customization of function pointer @ref HAL_I2C_MasterRxCpltCallback() + (+) Transmit in slave mode an amount of data in non-blocking mode (DMA) using + @ref HAL_I2C_Slave_Transmit_DMA() + (+) At transmission end of transfer, @ref HAL_I2C_SlaveTxCpltCallback() is executed and user can + add his own code by customization of function pointer @ref HAL_I2C_SlaveTxCpltCallback() + (+) Receive in slave mode an amount of data in non-blocking mode (DMA) using + @ref HAL_I2C_Slave_Receive_DMA() + (+) At reception end of transfer, @ref HAL_I2C_SlaveRxCpltCallback() is executed and user can + add his own code by customization of function pointer @ref HAL_I2C_SlaveRxCpltCallback() + (+) In case of transfer Error, @ref HAL_I2C_ErrorCallback() function is executed and user can + add his own code by customization of function pointer @ref HAL_I2C_ErrorCallback() + (+) Abort a master I2C process communication with Interrupt using @ref HAL_I2C_Master_Abort_IT() + (+) End of abort process, @ref HAL_I2C_AbortCpltCallback() is executed and user can + add his own code by customization of function pointer @ref HAL_I2C_AbortCpltCallback() + + *** DMA mode IO MEM operation *** + ================================= + [..] + (+) Write an amount of data in non-blocking mode with DMA to a specific memory address using + @ref HAL_I2C_Mem_Write_DMA() + (+) At Memory end of write transfer, @ref HAL_I2C_MemTxCpltCallback() is executed and user can + add his own code by customization of function pointer @ref HAL_I2C_MemTxCpltCallback() + (+) Read an amount of data in non-blocking mode with DMA from a specific memory address using + @ref HAL_I2C_Mem_Read_DMA() + (+) At Memory end of read transfer, @ref HAL_I2C_MemRxCpltCallback() is executed and user can + add his own code by customization of function pointer @ref HAL_I2C_MemRxCpltCallback() + (+) In case of transfer Error, @ref HAL_I2C_ErrorCallback() function is executed and user can + add his own code by customization of function pointer @ref HAL_I2C_ErrorCallback() + + + *** I2C HAL driver macros list *** + ================================== + [..] + Below the list of most used macros in I2C HAL driver. + + (+) @ref __HAL_I2C_ENABLE: Enable the I2C peripheral + (+) @ref __HAL_I2C_DISABLE: Disable the I2C peripheral + (+) @ref __HAL_I2C_GET_FLAG: Checks whether the specified I2C flag is set or not + (+) @ref __HAL_I2C_CLEAR_FLAG: Clear the specified I2C pending flag + (+) @ref __HAL_I2C_ENABLE_IT: Enable the specified I2C interrupt + (+) @ref __HAL_I2C_DISABLE_IT: Disable the specified I2C interrupt + + *** Callback registration *** + ============================================= + [..] + The compilation flag USE_HAL_I2C_REGISTER_CALLBACKS when set to 1 + allows the user to configure dynamically the driver callbacks. + Use Functions @ref HAL_I2C_RegisterCallback() or @ref HAL_I2C_RegisterAddrCallback() + to register an interrupt callback. + [..] + Function @ref HAL_I2C_RegisterCallback() allows to register following callbacks: + (+) MasterTxCpltCallback : callback for Master transmission end of transfer. + (+) MasterRxCpltCallback : callback for Master reception end of transfer. + (+) SlaveTxCpltCallback : callback for Slave transmission end of transfer. + (+) SlaveRxCpltCallback : callback for Slave reception end of transfer. + (+) ListenCpltCallback : callback for end of listen mode. + (+) MemTxCpltCallback : callback for Memory transmission end of transfer. + (+) MemRxCpltCallback : callback for Memory reception end of transfer. + (+) ErrorCallback : callback for error detection. + (+) AbortCpltCallback : callback for abort completion process. + (+) MspInitCallback : callback for Msp Init. + (+) MspDeInitCallback : callback for Msp DeInit. + This function takes as parameters the HAL peripheral handle, the Callback ID + and a pointer to the user callback function. + [..] + For specific callback AddrCallback use dedicated register callbacks : @ref HAL_I2C_RegisterAddrCallback(). + [..] + Use function @ref HAL_I2C_UnRegisterCallback to reset a callback to the default + weak function. + @ref HAL_I2C_UnRegisterCallback takes as parameters the HAL peripheral handle, + and the Callback ID. + This function allows to reset following callbacks: + (+) MasterTxCpltCallback : callback for Master transmission end of transfer. + (+) MasterRxCpltCallback : callback for Master reception end of transfer. + (+) SlaveTxCpltCallback : callback for Slave transmission end of transfer. + (+) SlaveRxCpltCallback : callback for Slave reception end of transfer. + (+) ListenCpltCallback : callback for end of listen mode. + (+) MemTxCpltCallback : callback for Memory transmission end of transfer. + (+) MemRxCpltCallback : callback for Memory reception end of transfer. + (+) ErrorCallback : callback for error detection. + (+) AbortCpltCallback : callback for abort completion process. + (+) MspInitCallback : callback for Msp Init. + (+) MspDeInitCallback : callback for Msp DeInit. + [..] + For callback AddrCallback use dedicated register callbacks : @ref HAL_I2C_UnRegisterAddrCallback(). + [..] + By default, after the @ref HAL_I2C_Init() and when the state is @ref HAL_I2C_STATE_RESET + all callbacks are set to the corresponding weak functions: + examples @ref HAL_I2C_MasterTxCpltCallback(), @ref HAL_I2C_MasterRxCpltCallback(). + Exception done for MspInit and MspDeInit functions that are + reset to the legacy weak functions in the @ref HAL_I2C_Init()/ @ref HAL_I2C_DeInit() only when + these callbacks are null (not registered beforehand). + If MspInit or MspDeInit are not null, the @ref HAL_I2C_Init()/ @ref HAL_I2C_DeInit() + keep and use the user MspInit/MspDeInit callbacks (registered beforehand) whatever the state. + [..] + Callbacks can be registered/unregistered in @ref HAL_I2C_STATE_READY state only. + Exception done MspInit/MspDeInit functions that can be registered/unregistered + in @ref HAL_I2C_STATE_READY or @ref HAL_I2C_STATE_RESET state, + thus registered (user) MspInit/DeInit callbacks can be used during the Init/DeInit. + Then, the user first registers the MspInit/MspDeInit user callbacks + using @ref HAL_I2C_RegisterCallback() before calling @ref HAL_I2C_DeInit() + or @ref HAL_I2C_Init() function. + [..] + When the compilation flag USE_HAL_I2C_REGISTER_CALLBACKS is set to 0 or + not defined, the callback registration feature is not available and all callbacks + are set to the corresponding weak functions. + + + *** I2C Workarounds linked to Silicon Limitation *** + ==================================================== + [..] + Below the list of all silicon limitations implemented for HAL on STM32F1xx product. + (@) See ErrataSheet to know full silicon limitation list of your product. + + (+) Workarounds Implemented inside I2C HAL Driver + (++) Wrong data read into data register (Polling and Interrupt mode) + (++) Start cannot be generated after a misplaced Stop + (++) Some software events must be managed before the current byte is being transferred: + Workaround: Use DMA in general, except when the Master is receiving a single byte. + For Interupt mode, I2C should have the highest priority in the application. + (++) Mismatch on the "Setup time for a repeated Start condition" timing parameter: + Workaround: Reduce the frequency down to 88 kHz or use the I2C Fast-mode if + supported by the slave. + (++) Data valid time (tVD;DAT) violated without the OVR flag being set: + Workaround: If the slave device allows it, use the clock stretching mechanism + by programming NoStretchMode = I2C_NOSTRETCH_DISABLE in @ref HAL_I2C_Init. + + [..] + (@) You can refer to the I2C HAL driver header file for more useful macros + + @endverbatim + ****************************************************************************** + * @attention + * + *

© Copyright (c) 2016 STMicroelectronics. + * All rights reserved.

+ * + * This software component is licensed by ST under BSD 3-Clause license, + * the "License"; You may not use this file except in compliance with the + * License. You may obtain a copy of the License at: + * opensource.org/licenses/BSD-3-Clause + * + ****************************************************************************** + */ + +/* Includes ------------------------------------------------------------------*/ +#include "stm32f1xx_hal.h" + +/** @addtogroup STM32F1xx_HAL_Driver + * @{ + */ + +/** @defgroup I2C I2C + * @brief I2C HAL module driver + * @{ + */ + +#ifdef HAL_I2C_MODULE_ENABLED + +/* Private typedef -----------------------------------------------------------*/ +/* Private define ------------------------------------------------------------*/ +/** @addtogroup I2C_Private_Define + * @{ + */ +#define I2C_TIMEOUT_FLAG 35U /*!< Timeout 35 ms */ +#define I2C_TIMEOUT_BUSY_FLAG 25U /*!< Timeout 25 ms */ +#define I2C_TIMEOUT_STOP_FLAG 5U /*!< Timeout 5 ms */ +#define I2C_NO_OPTION_FRAME 0xFFFF0000U /*!< XferOptions default value */ + +/* Private define for @ref PreviousState usage */ +#define I2C_STATE_MSK ((uint32_t)((uint32_t)((uint32_t)HAL_I2C_STATE_BUSY_TX | (uint32_t)HAL_I2C_STATE_BUSY_RX) & (uint32_t)(~((uint32_t)HAL_I2C_STATE_READY)))) /*!< Mask State define, keep only RX and TX bits */ +#define I2C_STATE_NONE ((uint32_t)(HAL_I2C_MODE_NONE)) /*!< Default Value */ +#define I2C_STATE_MASTER_BUSY_TX ((uint32_t)(((uint32_t)HAL_I2C_STATE_BUSY_TX & I2C_STATE_MSK) | (uint32_t)HAL_I2C_MODE_MASTER)) /*!< Master Busy TX, combinaison of State LSB and Mode enum */ +#define I2C_STATE_MASTER_BUSY_RX ((uint32_t)(((uint32_t)HAL_I2C_STATE_BUSY_RX & I2C_STATE_MSK) | (uint32_t)HAL_I2C_MODE_MASTER)) /*!< Master Busy RX, combinaison of State LSB and Mode enum */ +#define I2C_STATE_SLAVE_BUSY_TX ((uint32_t)(((uint32_t)HAL_I2C_STATE_BUSY_TX & I2C_STATE_MSK) | (uint32_t)HAL_I2C_MODE_SLAVE)) /*!< Slave Busy TX, combinaison of State LSB and Mode enum */ +#define I2C_STATE_SLAVE_BUSY_RX ((uint32_t)(((uint32_t)HAL_I2C_STATE_BUSY_RX & I2C_STATE_MSK) | (uint32_t)HAL_I2C_MODE_SLAVE)) /*!< Slave Busy RX, combinaison of State LSB and Mode enum */ + +/** + * @} + */ + +/* Private macro -------------------------------------------------------------*/ +/* Private variables ---------------------------------------------------------*/ +/* Private function prototypes -----------------------------------------------*/ + +/** @defgroup I2C_Private_Functions I2C Private Functions + * @{ + */ +/* Private functions to handle DMA transfer */ +static void I2C_DMAXferCplt(DMA_HandleTypeDef *hdma); +static void I2C_DMAError(DMA_HandleTypeDef *hdma); +static void I2C_DMAAbort(DMA_HandleTypeDef *hdma); + +static void I2C_ITError(I2C_HandleTypeDef *hi2c); + +static HAL_StatusTypeDef I2C_MasterRequestWrite(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint32_t Timeout, uint32_t Tickstart); +static HAL_StatusTypeDef I2C_MasterRequestRead(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint32_t Timeout, uint32_t Tickstart); +static HAL_StatusTypeDef I2C_RequestMemoryWrite(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint16_t MemAddress, uint16_t MemAddSize, uint32_t Timeout, uint32_t Tickstart); +static HAL_StatusTypeDef I2C_RequestMemoryRead(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint16_t MemAddress, uint16_t MemAddSize, uint32_t Timeout, uint32_t Tickstart); + +/* Private functions to handle flags during polling transfer */ +static HAL_StatusTypeDef I2C_WaitOnFlagUntilTimeout(I2C_HandleTypeDef *hi2c, uint32_t Flag, FlagStatus Status, uint32_t Timeout, uint32_t Tickstart); +static HAL_StatusTypeDef I2C_WaitOnMasterAddressFlagUntilTimeout(I2C_HandleTypeDef *hi2c, uint32_t Flag, uint32_t Timeout, uint32_t Tickstart); +static HAL_StatusTypeDef I2C_WaitOnTXEFlagUntilTimeout(I2C_HandleTypeDef *hi2c, uint32_t Timeout, uint32_t Tickstart); +static HAL_StatusTypeDef I2C_WaitOnBTFFlagUntilTimeout(I2C_HandleTypeDef *hi2c, uint32_t Timeout, uint32_t Tickstart); +static HAL_StatusTypeDef I2C_WaitOnRXNEFlagUntilTimeout(I2C_HandleTypeDef *hi2c, uint32_t Timeout, uint32_t Tickstart); +static HAL_StatusTypeDef I2C_WaitOnSTOPFlagUntilTimeout(I2C_HandleTypeDef *hi2c, uint32_t Timeout, uint32_t Tickstart); +static HAL_StatusTypeDef I2C_WaitOnSTOPRequestThroughIT(I2C_HandleTypeDef *hi2c); +static HAL_StatusTypeDef I2C_IsAcknowledgeFailed(I2C_HandleTypeDef *hi2c); + +/* Private functions for I2C transfer IRQ handler */ +static void I2C_MasterTransmit_TXE(I2C_HandleTypeDef *hi2c); +static void I2C_MasterTransmit_BTF(I2C_HandleTypeDef *hi2c); +static void I2C_MasterReceive_RXNE(I2C_HandleTypeDef *hi2c); +static void I2C_MasterReceive_BTF(I2C_HandleTypeDef *hi2c); +static void I2C_Master_SB(I2C_HandleTypeDef *hi2c); +static void I2C_Master_ADD10(I2C_HandleTypeDef *hi2c); +static void I2C_Master_ADDR(I2C_HandleTypeDef *hi2c); + +static void I2C_SlaveTransmit_TXE(I2C_HandleTypeDef *hi2c); +static void I2C_SlaveTransmit_BTF(I2C_HandleTypeDef *hi2c); +static void I2C_SlaveReceive_RXNE(I2C_HandleTypeDef *hi2c); +static void I2C_SlaveReceive_BTF(I2C_HandleTypeDef *hi2c); +static void I2C_Slave_ADDR(I2C_HandleTypeDef *hi2c, uint32_t IT2Flags); +static void I2C_Slave_STOPF(I2C_HandleTypeDef *hi2c); +static void I2C_Slave_AF(I2C_HandleTypeDef *hi2c); + +static void I2C_MemoryTransmit_TXE_BTF(I2C_HandleTypeDef *hi2c); + +/* Private function to Convert Specific options */ +static void I2C_ConvertOtherXferOptions(I2C_HandleTypeDef *hi2c); +/** + * @} + */ + +/* Exported functions --------------------------------------------------------*/ + +/** @defgroup I2C_Exported_Functions I2C Exported Functions + * @{ + */ + +/** @defgroup I2C_Exported_Functions_Group1 Initialization and de-initialization functions + * @brief Initialization and Configuration functions + * +@verbatim + =============================================================================== + ##### Initialization and de-initialization functions ##### + =============================================================================== + [..] This subsection provides a set of functions allowing to initialize and + deinitialize the I2Cx peripheral: + + (+) User must Implement HAL_I2C_MspInit() function in which he configures + all related peripherals resources (CLOCK, GPIO, DMA, IT and NVIC). + + (+) Call the function HAL_I2C_Init() to configure the selected device with + the selected configuration: + (++) Communication Speed + (++) Duty cycle + (++) Addressing mode + (++) Own Address 1 + (++) Dual Addressing mode + (++) Own Address 2 + (++) General call mode + (++) Nostretch mode + + (+) Call the function HAL_I2C_DeInit() to restore the default configuration + of the selected I2Cx peripheral. + +@endverbatim + * @{ + */ + +/** + * @brief Initializes the I2C according to the specified parameters + * in the I2C_InitTypeDef and initialize the associated handle. + * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains + * the configuration information for the specified I2C. + * @retval HAL status + */ +HAL_StatusTypeDef HAL_I2C_Init(I2C_HandleTypeDef *hi2c) +{ + uint32_t freqrange; + uint32_t pclk1; + + /* Check the I2C handle allocation */ + if (hi2c == NULL) + { + return HAL_ERROR; + } + + /* Check the parameters */ + assert_param(IS_I2C_ALL_INSTANCE(hi2c->Instance)); + assert_param(IS_I2C_CLOCK_SPEED(hi2c->Init.ClockSpeed)); + assert_param(IS_I2C_DUTY_CYCLE(hi2c->Init.DutyCycle)); + assert_param(IS_I2C_OWN_ADDRESS1(hi2c->Init.OwnAddress1)); + assert_param(IS_I2C_ADDRESSING_MODE(hi2c->Init.AddressingMode)); + assert_param(IS_I2C_DUAL_ADDRESS(hi2c->Init.DualAddressMode)); + assert_param(IS_I2C_OWN_ADDRESS2(hi2c->Init.OwnAddress2)); + assert_param(IS_I2C_GENERAL_CALL(hi2c->Init.GeneralCallMode)); + assert_param(IS_I2C_NO_STRETCH(hi2c->Init.NoStretchMode)); + + if (hi2c->State == HAL_I2C_STATE_RESET) + { + /* Allocate lock resource and initialize it */ + hi2c->Lock = HAL_UNLOCKED; + +#if (USE_HAL_I2C_REGISTER_CALLBACKS == 1) + /* Init the I2C Callback settings */ + hi2c->MasterTxCpltCallback = HAL_I2C_MasterTxCpltCallback; /* Legacy weak MasterTxCpltCallback */ + hi2c->MasterRxCpltCallback = HAL_I2C_MasterRxCpltCallback; /* Legacy weak MasterRxCpltCallback */ + hi2c->SlaveTxCpltCallback = HAL_I2C_SlaveTxCpltCallback; /* Legacy weak SlaveTxCpltCallback */ + hi2c->SlaveRxCpltCallback = HAL_I2C_SlaveRxCpltCallback; /* Legacy weak SlaveRxCpltCallback */ + hi2c->ListenCpltCallback = HAL_I2C_ListenCpltCallback; /* Legacy weak ListenCpltCallback */ + hi2c->MemTxCpltCallback = HAL_I2C_MemTxCpltCallback; /* Legacy weak MemTxCpltCallback */ + hi2c->MemRxCpltCallback = HAL_I2C_MemRxCpltCallback; /* Legacy weak MemRxCpltCallback */ + hi2c->ErrorCallback = HAL_I2C_ErrorCallback; /* Legacy weak ErrorCallback */ + hi2c->AbortCpltCallback = HAL_I2C_AbortCpltCallback; /* Legacy weak AbortCpltCallback */ + hi2c->AddrCallback = HAL_I2C_AddrCallback; /* Legacy weak AddrCallback */ + + if (hi2c->MspInitCallback == NULL) + { + hi2c->MspInitCallback = HAL_I2C_MspInit; /* Legacy weak MspInit */ + } + + /* Init the low level hardware : GPIO, CLOCK, NVIC */ + hi2c->MspInitCallback(hi2c); +#else + /* Init the low level hardware : GPIO, CLOCK, NVIC */ + HAL_I2C_MspInit(hi2c); +#endif /* USE_HAL_I2C_REGISTER_CALLBACKS */ + } + + hi2c->State = HAL_I2C_STATE_BUSY; + + /* Disable the selected I2C peripheral */ + __HAL_I2C_DISABLE(hi2c); + + /*Reset I2C*/ + hi2c->Instance->CR1 |= I2C_CR1_SWRST; + hi2c->Instance->CR1 &= ~I2C_CR1_SWRST; + + /* Get PCLK1 frequency */ + pclk1 = HAL_RCC_GetPCLK1Freq(); + + /* Check the minimum allowed PCLK1 frequency */ + if (I2C_MIN_PCLK_FREQ(pclk1, hi2c->Init.ClockSpeed) == 1U) + { + return HAL_ERROR; + } + + /* Calculate frequency range */ + freqrange = I2C_FREQRANGE(pclk1); + + /*---------------------------- I2Cx CR2 Configuration ----------------------*/ + /* Configure I2Cx: Frequency range */ + MODIFY_REG(hi2c->Instance->CR2, I2C_CR2_FREQ, freqrange); + + /*---------------------------- I2Cx TRISE Configuration --------------------*/ + /* Configure I2Cx: Rise Time */ + MODIFY_REG(hi2c->Instance->TRISE, I2C_TRISE_TRISE, I2C_RISE_TIME(freqrange, hi2c->Init.ClockSpeed)); + + /*---------------------------- I2Cx CCR Configuration ----------------------*/ + /* Configure I2Cx: Speed */ + MODIFY_REG(hi2c->Instance->CCR, (I2C_CCR_FS | I2C_CCR_DUTY | I2C_CCR_CCR), I2C_SPEED(pclk1, hi2c->Init.ClockSpeed, hi2c->Init.DutyCycle)); + + /*---------------------------- I2Cx CR1 Configuration ----------------------*/ + /* Configure I2Cx: Generalcall and NoStretch mode */ + MODIFY_REG(hi2c->Instance->CR1, (I2C_CR1_ENGC | I2C_CR1_NOSTRETCH), (hi2c->Init.GeneralCallMode | hi2c->Init.NoStretchMode)); + + /*---------------------------- I2Cx OAR1 Configuration ---------------------*/ + /* Configure I2Cx: Own Address1 and addressing mode */ + MODIFY_REG(hi2c->Instance->OAR1, (I2C_OAR1_ADDMODE | I2C_OAR1_ADD8_9 | I2C_OAR1_ADD1_7 | I2C_OAR1_ADD0), (hi2c->Init.AddressingMode | hi2c->Init.OwnAddress1)); + + /*---------------------------- I2Cx OAR2 Configuration ---------------------*/ + /* Configure I2Cx: Dual mode and Own Address2 */ + MODIFY_REG(hi2c->Instance->OAR2, (I2C_OAR2_ENDUAL | I2C_OAR2_ADD2), (hi2c->Init.DualAddressMode | hi2c->Init.OwnAddress2)); + + /* Enable the selected I2C peripheral */ + __HAL_I2C_ENABLE(hi2c); + + hi2c->ErrorCode = HAL_I2C_ERROR_NONE; + hi2c->State = HAL_I2C_STATE_READY; + hi2c->PreviousState = I2C_STATE_NONE; + hi2c->Mode = HAL_I2C_MODE_NONE; + + return HAL_OK; +} + +/** + * @brief DeInitialize the I2C peripheral. + * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains + * the configuration information for the specified I2C. + * @retval HAL status + */ +HAL_StatusTypeDef HAL_I2C_DeInit(I2C_HandleTypeDef *hi2c) +{ + /* Check the I2C handle allocation */ + if (hi2c == NULL) + { + return HAL_ERROR; + } + + /* Check the parameters */ + assert_param(IS_I2C_ALL_INSTANCE(hi2c->Instance)); + + hi2c->State = HAL_I2C_STATE_BUSY; + + /* Disable the I2C Peripheral Clock */ + __HAL_I2C_DISABLE(hi2c); + +#if (USE_HAL_I2C_REGISTER_CALLBACKS == 1) + if (hi2c->MspDeInitCallback == NULL) + { + hi2c->MspDeInitCallback = HAL_I2C_MspDeInit; /* Legacy weak MspDeInit */ + } + + /* DeInit the low level hardware: GPIO, CLOCK, NVIC */ + hi2c->MspDeInitCallback(hi2c); +#else + /* DeInit the low level hardware: GPIO, CLOCK, NVIC */ + HAL_I2C_MspDeInit(hi2c); +#endif /* USE_HAL_I2C_REGISTER_CALLBACKS */ + + hi2c->ErrorCode = HAL_I2C_ERROR_NONE; + hi2c->State = HAL_I2C_STATE_RESET; + hi2c->PreviousState = I2C_STATE_NONE; + hi2c->Mode = HAL_I2C_MODE_NONE; + + /* Release Lock */ + __HAL_UNLOCK(hi2c); + + return HAL_OK; +} + +/** + * @brief Initialize the I2C MSP. + * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains + * the configuration information for the specified I2C. + * @retval None + */ +__weak void HAL_I2C_MspInit(I2C_HandleTypeDef *hi2c) +{ + /* Prevent unused argument(s) compilation warning */ + UNUSED(hi2c); + + /* NOTE : This function should not be modified, when the callback is needed, + the HAL_I2C_MspInit could be implemented in the user file + */ +} + +/** + * @brief DeInitialize the I2C MSP. + * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains + * the configuration information for the specified I2C. + * @retval None + */ +__weak void HAL_I2C_MspDeInit(I2C_HandleTypeDef *hi2c) +{ + /* Prevent unused argument(s) compilation warning */ + UNUSED(hi2c); + + /* NOTE : This function should not be modified, when the callback is needed, + the HAL_I2C_MspDeInit could be implemented in the user file + */ +} + +#if (USE_HAL_I2C_REGISTER_CALLBACKS == 1) +/** + * @brief Register a User I2C Callback + * To be used instead of the weak predefined callback + * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains + * the configuration information for the specified I2C. + * @param CallbackID ID of the callback to be registered + * This parameter can be one of the following values: + * @arg @ref HAL_I2C_MASTER_TX_COMPLETE_CB_ID Master Tx Transfer completed callback ID + * @arg @ref HAL_I2C_MASTER_RX_COMPLETE_CB_ID Master Rx Transfer completed callback ID + * @arg @ref HAL_I2C_SLAVE_TX_COMPLETE_CB_ID Slave Tx Transfer completed callback ID + * @arg @ref HAL_I2C_SLAVE_RX_COMPLETE_CB_ID Slave Rx Transfer completed callback ID + * @arg @ref HAL_I2C_LISTEN_COMPLETE_CB_ID Listen Complete callback ID + * @arg @ref HAL_I2C_MEM_TX_COMPLETE_CB_ID Memory Tx Transfer callback ID + * @arg @ref HAL_I2C_MEM_RX_COMPLETE_CB_ID Memory Rx Transfer completed callback ID + * @arg @ref HAL_I2C_ERROR_CB_ID Error callback ID + * @arg @ref HAL_I2C_ABORT_CB_ID Abort callback ID + * @arg @ref HAL_I2C_MSPINIT_CB_ID MspInit callback ID + * @arg @ref HAL_I2C_MSPDEINIT_CB_ID MspDeInit callback ID + * @param pCallback pointer to the Callback function + * @retval HAL status + */ +HAL_StatusTypeDef HAL_I2C_RegisterCallback(I2C_HandleTypeDef *hi2c, HAL_I2C_CallbackIDTypeDef CallbackID, pI2C_CallbackTypeDef pCallback) +{ + HAL_StatusTypeDef status = HAL_OK; + + if (pCallback == NULL) + { + /* Update the error code */ + hi2c->ErrorCode |= HAL_I2C_ERROR_INVALID_CALLBACK; + + return HAL_ERROR; + } + /* Process locked */ + __HAL_LOCK(hi2c); + + if (HAL_I2C_STATE_READY == hi2c->State) + { + switch (CallbackID) + { + case HAL_I2C_MASTER_TX_COMPLETE_CB_ID : + hi2c->MasterTxCpltCallback = pCallback; + break; + + case HAL_I2C_MASTER_RX_COMPLETE_CB_ID : + hi2c->MasterRxCpltCallback = pCallback; + break; + + case HAL_I2C_SLAVE_TX_COMPLETE_CB_ID : + hi2c->SlaveTxCpltCallback = pCallback; + break; + + case HAL_I2C_SLAVE_RX_COMPLETE_CB_ID : + hi2c->SlaveRxCpltCallback = pCallback; + break; + + case HAL_I2C_LISTEN_COMPLETE_CB_ID : + hi2c->ListenCpltCallback = pCallback; + break; + + case HAL_I2C_MEM_TX_COMPLETE_CB_ID : + hi2c->MemTxCpltCallback = pCallback; + break; + + case HAL_I2C_MEM_RX_COMPLETE_CB_ID : + hi2c->MemRxCpltCallback = pCallback; + break; + + case HAL_I2C_ERROR_CB_ID : + hi2c->ErrorCallback = pCallback; + break; + + case HAL_I2C_ABORT_CB_ID : + hi2c->AbortCpltCallback = pCallback; + break; + + case HAL_I2C_MSPINIT_CB_ID : + hi2c->MspInitCallback = pCallback; + break; + + case HAL_I2C_MSPDEINIT_CB_ID : + hi2c->MspDeInitCallback = pCallback; + break; + + default : + /* Update the error code */ + hi2c->ErrorCode |= HAL_I2C_ERROR_INVALID_CALLBACK; + + /* Return error status */ + status = HAL_ERROR; + break; + } + } + else if (HAL_I2C_STATE_RESET == hi2c->State) + { + switch (CallbackID) + { + case HAL_I2C_MSPINIT_CB_ID : + hi2c->MspInitCallback = pCallback; + break; + + case HAL_I2C_MSPDEINIT_CB_ID : + hi2c->MspDeInitCallback = pCallback; + break; + + default : + /* Update the error code */ + hi2c->ErrorCode |= HAL_I2C_ERROR_INVALID_CALLBACK; + + /* Return error status */ + status = HAL_ERROR; + break; + } + } + else + { + /* Update the error code */ + hi2c->ErrorCode |= HAL_I2C_ERROR_INVALID_CALLBACK; + + /* Return error status */ + status = HAL_ERROR; + } + + /* Release Lock */ + __HAL_UNLOCK(hi2c); + return status; +} + +/** + * @brief Unregister an I2C Callback + * I2C callback is redirected to the weak predefined callback + * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains + * the configuration information for the specified I2C. + * @param CallbackID ID of the callback to be unregistered + * This parameter can be one of the following values: + * This parameter can be one of the following values: + * @arg @ref HAL_I2C_MASTER_TX_COMPLETE_CB_ID Master Tx Transfer completed callback ID + * @arg @ref HAL_I2C_MASTER_RX_COMPLETE_CB_ID Master Rx Transfer completed callback ID + * @arg @ref HAL_I2C_SLAVE_TX_COMPLETE_CB_ID Slave Tx Transfer completed callback ID + * @arg @ref HAL_I2C_SLAVE_RX_COMPLETE_CB_ID Slave Rx Transfer completed callback ID + * @arg @ref HAL_I2C_LISTEN_COMPLETE_CB_ID Listen Complete callback ID + * @arg @ref HAL_I2C_MEM_TX_COMPLETE_CB_ID Memory Tx Transfer callback ID + * @arg @ref HAL_I2C_MEM_RX_COMPLETE_CB_ID Memory Rx Transfer completed callback ID + * @arg @ref HAL_I2C_ERROR_CB_ID Error callback ID + * @arg @ref HAL_I2C_ABORT_CB_ID Abort callback ID + * @arg @ref HAL_I2C_MSPINIT_CB_ID MspInit callback ID + * @arg @ref HAL_I2C_MSPDEINIT_CB_ID MspDeInit callback ID + * @retval HAL status + */ +HAL_StatusTypeDef HAL_I2C_UnRegisterCallback(I2C_HandleTypeDef *hi2c, HAL_I2C_CallbackIDTypeDef CallbackID) +{ + HAL_StatusTypeDef status = HAL_OK; + + /* Process locked */ + __HAL_LOCK(hi2c); + + if (HAL_I2C_STATE_READY == hi2c->State) + { + switch (CallbackID) + { + case HAL_I2C_MASTER_TX_COMPLETE_CB_ID : + hi2c->MasterTxCpltCallback = HAL_I2C_MasterTxCpltCallback; /* Legacy weak MasterTxCpltCallback */ + break; + + case HAL_I2C_MASTER_RX_COMPLETE_CB_ID : + hi2c->MasterRxCpltCallback = HAL_I2C_MasterRxCpltCallback; /* Legacy weak MasterRxCpltCallback */ + break; + + case HAL_I2C_SLAVE_TX_COMPLETE_CB_ID : + hi2c->SlaveTxCpltCallback = HAL_I2C_SlaveTxCpltCallback; /* Legacy weak SlaveTxCpltCallback */ + break; + + case HAL_I2C_SLAVE_RX_COMPLETE_CB_ID : + hi2c->SlaveRxCpltCallback = HAL_I2C_SlaveRxCpltCallback; /* Legacy weak SlaveRxCpltCallback */ + break; + + case HAL_I2C_LISTEN_COMPLETE_CB_ID : + hi2c->ListenCpltCallback = HAL_I2C_ListenCpltCallback; /* Legacy weak ListenCpltCallback */ + break; + + case HAL_I2C_MEM_TX_COMPLETE_CB_ID : + hi2c->MemTxCpltCallback = HAL_I2C_MemTxCpltCallback; /* Legacy weak MemTxCpltCallback */ + break; + + case HAL_I2C_MEM_RX_COMPLETE_CB_ID : + hi2c->MemRxCpltCallback = HAL_I2C_MemRxCpltCallback; /* Legacy weak MemRxCpltCallback */ + break; + + case HAL_I2C_ERROR_CB_ID : + hi2c->ErrorCallback = HAL_I2C_ErrorCallback; /* Legacy weak ErrorCallback */ + break; + + case HAL_I2C_ABORT_CB_ID : + hi2c->AbortCpltCallback = HAL_I2C_AbortCpltCallback; /* Legacy weak AbortCpltCallback */ + break; + + case HAL_I2C_MSPINIT_CB_ID : + hi2c->MspInitCallback = HAL_I2C_MspInit; /* Legacy weak MspInit */ + break; + + case HAL_I2C_MSPDEINIT_CB_ID : + hi2c->MspDeInitCallback = HAL_I2C_MspDeInit; /* Legacy weak MspDeInit */ + break; + + default : + /* Update the error code */ + hi2c->ErrorCode |= HAL_I2C_ERROR_INVALID_CALLBACK; + + /* Return error status */ + status = HAL_ERROR; + break; + } + } + else if (HAL_I2C_STATE_RESET == hi2c->State) + { + switch (CallbackID) + { + case HAL_I2C_MSPINIT_CB_ID : + hi2c->MspInitCallback = HAL_I2C_MspInit; /* Legacy weak MspInit */ + break; + + case HAL_I2C_MSPDEINIT_CB_ID : + hi2c->MspDeInitCallback = HAL_I2C_MspDeInit; /* Legacy weak MspDeInit */ + break; + + default : + /* Update the error code */ + hi2c->ErrorCode |= HAL_I2C_ERROR_INVALID_CALLBACK; + + /* Return error status */ + status = HAL_ERROR; + break; + } + } + else + { + /* Update the error code */ + hi2c->ErrorCode |= HAL_I2C_ERROR_INVALID_CALLBACK; + + /* Return error status */ + status = HAL_ERROR; + } + + /* Release Lock */ + __HAL_UNLOCK(hi2c); + return status; +} + +/** + * @brief Register the Slave Address Match I2C Callback + * To be used instead of the weak HAL_I2C_AddrCallback() predefined callback + * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains + * the configuration information for the specified I2C. + * @param pCallback pointer to the Address Match Callback function + * @retval HAL status + */ +HAL_StatusTypeDef HAL_I2C_RegisterAddrCallback(I2C_HandleTypeDef *hi2c, pI2C_AddrCallbackTypeDef pCallback) +{ + HAL_StatusTypeDef status = HAL_OK; + + if (pCallback == NULL) + { + /* Update the error code */ + hi2c->ErrorCode |= HAL_I2C_ERROR_INVALID_CALLBACK; + + return HAL_ERROR; + } + /* Process locked */ + __HAL_LOCK(hi2c); + + if (HAL_I2C_STATE_READY == hi2c->State) + { + hi2c->AddrCallback = pCallback; + } + else + { + /* Update the error code */ + hi2c->ErrorCode |= HAL_I2C_ERROR_INVALID_CALLBACK; + + /* Return error status */ + status = HAL_ERROR; + } + + /* Release Lock */ + __HAL_UNLOCK(hi2c); + return status; +} + +/** + * @brief UnRegister the Slave Address Match I2C Callback + * Info Ready I2C Callback is redirected to the weak HAL_I2C_AddrCallback() predefined callback + * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains + * the configuration information for the specified I2C. + * @retval HAL status + */ +HAL_StatusTypeDef HAL_I2C_UnRegisterAddrCallback(I2C_HandleTypeDef *hi2c) +{ + HAL_StatusTypeDef status = HAL_OK; + + /* Process locked */ + __HAL_LOCK(hi2c); + + if (HAL_I2C_STATE_READY == hi2c->State) + { + hi2c->AddrCallback = HAL_I2C_AddrCallback; /* Legacy weak AddrCallback */ + } + else + { + /* Update the error code */ + hi2c->ErrorCode |= HAL_I2C_ERROR_INVALID_CALLBACK; + + /* Return error status */ + status = HAL_ERROR; + } + + /* Release Lock */ + __HAL_UNLOCK(hi2c); + return status; +} + +#endif /* USE_HAL_I2C_REGISTER_CALLBACKS */ + +/** + * @} + */ + +/** @defgroup I2C_Exported_Functions_Group2 Input and Output operation functions + * @brief Data transfers functions + * +@verbatim + =============================================================================== + ##### IO operation functions ##### + =============================================================================== + [..] + This subsection provides a set of functions allowing to manage the I2C data + transfers. + + (#) There are two modes of transfer: + (++) Blocking mode : The communication is performed in the polling mode. + The status of all data processing is returned by the same function + after finishing transfer. + (++) No-Blocking mode : The communication is performed using Interrupts + or DMA. These functions return the status of the transfer startup. + The end of the data processing will be indicated through the + dedicated I2C IRQ when using Interrupt mode or the DMA IRQ when + using DMA mode. + + (#) Blocking mode functions are : + (++) HAL_I2C_Master_Transmit() + (++) HAL_I2C_Master_Receive() + (++) HAL_I2C_Slave_Transmit() + (++) HAL_I2C_Slave_Receive() + (++) HAL_I2C_Mem_Write() + (++) HAL_I2C_Mem_Read() + (++) HAL_I2C_IsDeviceReady() + + (#) No-Blocking mode functions with Interrupt are : + (++) HAL_I2C_Master_Transmit_IT() + (++) HAL_I2C_Master_Receive_IT() + (++) HAL_I2C_Slave_Transmit_IT() + (++) HAL_I2C_Slave_Receive_IT() + (++) HAL_I2C_Mem_Write_IT() + (++) HAL_I2C_Mem_Read_IT() + (++) HAL_I2C_Master_Seq_Transmit_IT() + (++) HAL_I2C_Master_Seq_Receive_IT() + (++) HAL_I2C_Slave_Seq_Transmit_IT() + (++) HAL_I2C_Slave_Seq_Receive_IT() + (++) HAL_I2C_EnableListen_IT() + (++) HAL_I2C_DisableListen_IT() + (++) HAL_I2C_Master_Abort_IT() + + (#) No-Blocking mode functions with DMA are : + (++) HAL_I2C_Master_Transmit_DMA() + (++) HAL_I2C_Master_Receive_DMA() + (++) HAL_I2C_Slave_Transmit_DMA() + (++) HAL_I2C_Slave_Receive_DMA() + (++) HAL_I2C_Mem_Write_DMA() + (++) HAL_I2C_Mem_Read_DMA() + (++) HAL_I2C_Master_Seq_Transmit_DMA() + (++) HAL_I2C_Master_Seq_Receive_DMA() + (++) HAL_I2C_Slave_Seq_Transmit_DMA() + (++) HAL_I2C_Slave_Seq_Receive_DMA() + + (#) A set of Transfer Complete Callbacks are provided in non Blocking mode: + (++) HAL_I2C_MasterTxCpltCallback() + (++) HAL_I2C_MasterRxCpltCallback() + (++) HAL_I2C_SlaveTxCpltCallback() + (++) HAL_I2C_SlaveRxCpltCallback() + (++) HAL_I2C_MemTxCpltCallback() + (++) HAL_I2C_MemRxCpltCallback() + (++) HAL_I2C_AddrCallback() + (++) HAL_I2C_ListenCpltCallback() + (++) HAL_I2C_ErrorCallback() + (++) HAL_I2C_AbortCpltCallback() + +@endverbatim + * @{ + */ + +/** + * @brief Transmits in master mode an amount of data in blocking mode. + * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains + * the configuration information for the specified I2C. + * @param DevAddress Target device address: The device 7 bits address value + * in datasheet must be shifted to the left before calling the interface + * @param pData Pointer to data buffer + * @param Size Amount of data to be sent + * @param Timeout Timeout duration + * @retval HAL status + */ +HAL_StatusTypeDef HAL_I2C_Master_Transmit(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint8_t *pData, uint16_t Size, uint32_t Timeout) +{ + /* Init tickstart for timeout management*/ + uint32_t tickstart = HAL_GetTick(); + + if (hi2c->State == HAL_I2C_STATE_READY) + { + /* Wait until BUSY flag is reset */ + if (I2C_WaitOnFlagUntilTimeout(hi2c, I2C_FLAG_BUSY, SET, I2C_TIMEOUT_BUSY_FLAG, tickstart) != HAL_OK) + { + return HAL_BUSY; + } + + /* Process Locked */ + __HAL_LOCK(hi2c); + + /* Check if the I2C is already enabled */ + if ((hi2c->Instance->CR1 & I2C_CR1_PE) != I2C_CR1_PE) + { + /* Enable I2C peripheral */ + __HAL_I2C_ENABLE(hi2c); + } + + /* Disable Pos */ + CLEAR_BIT(hi2c->Instance->CR1, I2C_CR1_POS); + + hi2c->State = HAL_I2C_STATE_BUSY_TX; + hi2c->Mode = HAL_I2C_MODE_MASTER; + hi2c->ErrorCode = HAL_I2C_ERROR_NONE; + + /* Prepare transfer parameters */ + hi2c->pBuffPtr = pData; + hi2c->XferCount = Size; + hi2c->XferSize = hi2c->XferCount; + hi2c->XferOptions = I2C_NO_OPTION_FRAME; + + /* Send Slave Address */ + if (I2C_MasterRequestWrite(hi2c, DevAddress, Timeout, tickstart) != HAL_OK) + { + return HAL_ERROR; + } + + /* Clear ADDR flag */ + __HAL_I2C_CLEAR_ADDRFLAG(hi2c); + + while (hi2c->XferSize > 0U) + { + /* Wait until TXE flag is set */ + if (I2C_WaitOnTXEFlagUntilTimeout(hi2c, Timeout, tickstart) != HAL_OK) + { + if (hi2c->ErrorCode == HAL_I2C_ERROR_AF) + { + /* Generate Stop */ + SET_BIT(hi2c->Instance->CR1, I2C_CR1_STOP); + } + return HAL_ERROR; + } + + /* Write data to DR */ + hi2c->Instance->DR = *hi2c->pBuffPtr; + + /* Increment Buffer pointer */ + hi2c->pBuffPtr++; + + /* Update counter */ + hi2c->XferCount--; + hi2c->XferSize--; + + if ((__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_BTF) == SET) && (hi2c->XferSize != 0U)) + { + /* Write data to DR */ + hi2c->Instance->DR = *hi2c->pBuffPtr; + + /* Increment Buffer pointer */ + hi2c->pBuffPtr++; + + /* Update counter */ + hi2c->XferCount--; + hi2c->XferSize--; + } + + /* Wait until BTF flag is set */ + if (I2C_WaitOnBTFFlagUntilTimeout(hi2c, Timeout, tickstart) != HAL_OK) + { + if (hi2c->ErrorCode == HAL_I2C_ERROR_AF) + { + /* Generate Stop */ + SET_BIT(hi2c->Instance->CR1, I2C_CR1_STOP); + } + return HAL_ERROR; + } + } + + /* Generate Stop */ + SET_BIT(hi2c->Instance->CR1, I2C_CR1_STOP); + + hi2c->State = HAL_I2C_STATE_READY; + hi2c->Mode = HAL_I2C_MODE_NONE; + + /* Process Unlocked */ + __HAL_UNLOCK(hi2c); + + return HAL_OK; + } + else + { + return HAL_BUSY; + } +} + +/** + * @brief Receives in master mode an amount of data in blocking mode. + * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains + * the configuration information for the specified I2C. + * @param DevAddress Target device address: The device 7 bits address value + * in datasheet must be shifted to the left before calling the interface + * @param pData Pointer to data buffer + * @param Size Amount of data to be sent + * @param Timeout Timeout duration + * @retval HAL status + */ +HAL_StatusTypeDef HAL_I2C_Master_Receive(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint8_t *pData, uint16_t Size, uint32_t Timeout) +{ + __IO uint32_t count = 0U; + + /* Init tickstart for timeout management*/ + uint32_t tickstart = HAL_GetTick(); + + if (hi2c->State == HAL_I2C_STATE_READY) + { + /* Wait until BUSY flag is reset */ + if (I2C_WaitOnFlagUntilTimeout(hi2c, I2C_FLAG_BUSY, SET, I2C_TIMEOUT_BUSY_FLAG, tickstart) != HAL_OK) + { + return HAL_BUSY; + } + + /* Process Locked */ + __HAL_LOCK(hi2c); + + /* Check if the I2C is already enabled */ + if ((hi2c->Instance->CR1 & I2C_CR1_PE) != I2C_CR1_PE) + { + /* Enable I2C peripheral */ + __HAL_I2C_ENABLE(hi2c); + } + + /* Disable Pos */ + CLEAR_BIT(hi2c->Instance->CR1, I2C_CR1_POS); + + hi2c->State = HAL_I2C_STATE_BUSY_RX; + hi2c->Mode = HAL_I2C_MODE_MASTER; + hi2c->ErrorCode = HAL_I2C_ERROR_NONE; + + /* Prepare transfer parameters */ + hi2c->pBuffPtr = pData; + hi2c->XferCount = Size; + hi2c->XferSize = hi2c->XferCount; + hi2c->XferOptions = I2C_NO_OPTION_FRAME; + + /* Send Slave Address */ + if (I2C_MasterRequestRead(hi2c, DevAddress, Timeout, tickstart) != HAL_OK) + { + return HAL_ERROR; + } + + if (hi2c->XferSize == 0U) + { + /* Clear ADDR flag */ + __HAL_I2C_CLEAR_ADDRFLAG(hi2c); + + /* Generate Stop */ + SET_BIT(hi2c->Instance->CR1, I2C_CR1_STOP); + } + else if (hi2c->XferSize == 1U) + { + /* Disable Acknowledge */ + CLEAR_BIT(hi2c->Instance->CR1, I2C_CR1_ACK); + + /* Disable all active IRQs around ADDR clearing and STOP programming because the EV6_3 + software sequence must complete before the current byte end of transfer */ + __disable_irq(); + + /* Clear ADDR flag */ + __HAL_I2C_CLEAR_ADDRFLAG(hi2c); + + /* Generate Stop */ + SET_BIT(hi2c->Instance->CR1, I2C_CR1_STOP); + + /* Re-enable IRQs */ + __enable_irq(); + } + else if (hi2c->XferSize == 2U) + { + /* Enable Pos */ + SET_BIT(hi2c->Instance->CR1, I2C_CR1_POS); + + /* Disable all active IRQs around ADDR clearing and STOP programming because the EV6_3 + software sequence must complete before the current byte end of transfer */ + __disable_irq(); + + /* Clear ADDR flag */ + __HAL_I2C_CLEAR_ADDRFLAG(hi2c); + + /* Disable Acknowledge */ + CLEAR_BIT(hi2c->Instance->CR1, I2C_CR1_ACK); + + /* Re-enable IRQs */ + __enable_irq(); + } + else + { + /* Enable Acknowledge */ + SET_BIT(hi2c->Instance->CR1, I2C_CR1_ACK); + + /* Clear ADDR flag */ + __HAL_I2C_CLEAR_ADDRFLAG(hi2c); + } + + while (hi2c->XferSize > 0U) + { + if (hi2c->XferSize <= 3U) + { + /* One byte */ + if (hi2c->XferSize == 1U) + { + /* Wait until RXNE flag is set */ + if (I2C_WaitOnRXNEFlagUntilTimeout(hi2c, Timeout, tickstart) != HAL_OK) + { + return HAL_ERROR; + } + + /* Read data from DR */ + *hi2c->pBuffPtr = (uint8_t)hi2c->Instance->DR; + + /* Increment Buffer pointer */ + hi2c->pBuffPtr++; + + /* Update counter */ + hi2c->XferSize--; + hi2c->XferCount--; + } + /* Two bytes */ + else if (hi2c->XferSize == 2U) + { + /* Wait until BTF flag is set */ + if (I2C_WaitOnFlagUntilTimeout(hi2c, I2C_FLAG_BTF, RESET, Timeout, tickstart) != HAL_OK) + { + return HAL_ERROR; + } + + /* Disable all active IRQs around ADDR clearing and STOP programming because the EV6_3 + software sequence must complete before the current byte end of transfer */ + __disable_irq(); + + /* Generate Stop */ + SET_BIT(hi2c->Instance->CR1, I2C_CR1_STOP); + + /* Read data from DR */ + *hi2c->pBuffPtr = (uint8_t)hi2c->Instance->DR; + + /* Increment Buffer pointer */ + hi2c->pBuffPtr++; + + /* Update counter */ + hi2c->XferSize--; + hi2c->XferCount--; + + /* Re-enable IRQs */ + __enable_irq(); + + /* Read data from DR */ + *hi2c->pBuffPtr = (uint8_t)hi2c->Instance->DR; + + /* Increment Buffer pointer */ + hi2c->pBuffPtr++; + + /* Update counter */ + hi2c->XferSize--; + hi2c->XferCount--; + } + /* 3 Last bytes */ + else + { + /* Wait until BTF flag is set */ + if (I2C_WaitOnFlagUntilTimeout(hi2c, I2C_FLAG_BTF, RESET, Timeout, tickstart) != HAL_OK) + { + return HAL_ERROR; + } + + /* Disable Acknowledge */ + CLEAR_BIT(hi2c->Instance->CR1, I2C_CR1_ACK); + + /* Disable all active IRQs around ADDR clearing and STOP programming because the EV6_3 + software sequence must complete before the current byte end of transfer */ + __disable_irq(); + + /* Read data from DR */ + *hi2c->pBuffPtr = (uint8_t)hi2c->Instance->DR; + + /* Increment Buffer pointer */ + hi2c->pBuffPtr++; + + /* Update counter */ + hi2c->XferSize--; + hi2c->XferCount--; + + /* Wait until BTF flag is set */ + count = I2C_TIMEOUT_FLAG * (SystemCoreClock / 25U / 1000U); + do + { + count--; + if (count == 0U) + { + hi2c->PreviousState = I2C_STATE_NONE; + hi2c->State = HAL_I2C_STATE_READY; + hi2c->Mode = HAL_I2C_MODE_NONE; + hi2c->ErrorCode |= HAL_I2C_ERROR_TIMEOUT; + + /* Re-enable IRQs */ + __enable_irq(); + + /* Process Unlocked */ + __HAL_UNLOCK(hi2c); + + return HAL_ERROR; + } + } + while (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_BTF) == RESET); + + /* Generate Stop */ + SET_BIT(hi2c->Instance->CR1, I2C_CR1_STOP); + + /* Read data from DR */ + *hi2c->pBuffPtr = (uint8_t)hi2c->Instance->DR; + + /* Increment Buffer pointer */ + hi2c->pBuffPtr++; + + /* Update counter */ + hi2c->XferSize--; + hi2c->XferCount--; + + /* Re-enable IRQs */ + __enable_irq(); + + /* Read data from DR */ + *hi2c->pBuffPtr = (uint8_t)hi2c->Instance->DR; + + /* Increment Buffer pointer */ + hi2c->pBuffPtr++; + + /* Update counter */ + hi2c->XferSize--; + hi2c->XferCount--; + } + } + else + { + /* Wait until RXNE flag is set */ + if (I2C_WaitOnRXNEFlagUntilTimeout(hi2c, Timeout, tickstart) != HAL_OK) + { + return HAL_ERROR; + } + + /* Read data from DR */ + *hi2c->pBuffPtr = (uint8_t)hi2c->Instance->DR; + + /* Increment Buffer pointer */ + hi2c->pBuffPtr++; + + /* Update counter */ + hi2c->XferSize--; + hi2c->XferCount--; + + if (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_BTF) == SET) + { + /* Read data from DR */ + *hi2c->pBuffPtr = (uint8_t)hi2c->Instance->DR; + + /* Increment Buffer pointer */ + hi2c->pBuffPtr++; + + /* Update counter */ + hi2c->XferSize--; + hi2c->XferCount--; + } + } + } + + hi2c->State = HAL_I2C_STATE_READY; + hi2c->Mode = HAL_I2C_MODE_NONE; + + /* Process Unlocked */ + __HAL_UNLOCK(hi2c); + + return HAL_OK; + } + else + { + return HAL_BUSY; + } +} + +/** + * @brief Transmits in slave mode an amount of data in blocking mode. + * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains + * the configuration information for the specified I2C. + * @param pData Pointer to data buffer + * @param Size Amount of data to be sent + * @param Timeout Timeout duration + * @retval HAL status + */ +HAL_StatusTypeDef HAL_I2C_Slave_Transmit(I2C_HandleTypeDef *hi2c, uint8_t *pData, uint16_t Size, uint32_t Timeout) +{ + /* Init tickstart for timeout management*/ + uint32_t tickstart = HAL_GetTick(); + + if (hi2c->State == HAL_I2C_STATE_READY) + { + if ((pData == NULL) || (Size == 0U)) + { + return HAL_ERROR; + } + + /* Process Locked */ + __HAL_LOCK(hi2c); + + /* Check if the I2C is already enabled */ + if ((hi2c->Instance->CR1 & I2C_CR1_PE) != I2C_CR1_PE) + { + /* Enable I2C peripheral */ + __HAL_I2C_ENABLE(hi2c); + } + + /* Disable Pos */ + CLEAR_BIT(hi2c->Instance->CR1, I2C_CR1_POS); + + hi2c->State = HAL_I2C_STATE_BUSY_TX; + hi2c->Mode = HAL_I2C_MODE_SLAVE; + hi2c->ErrorCode = HAL_I2C_ERROR_NONE; + + /* Prepare transfer parameters */ + hi2c->pBuffPtr = pData; + hi2c->XferCount = Size; + hi2c->XferSize = hi2c->XferCount; + hi2c->XferOptions = I2C_NO_OPTION_FRAME; + + /* Enable Address Acknowledge */ + SET_BIT(hi2c->Instance->CR1, I2C_CR1_ACK); + + /* Wait until ADDR flag is set */ + if (I2C_WaitOnFlagUntilTimeout(hi2c, I2C_FLAG_ADDR, RESET, Timeout, tickstart) != HAL_OK) + { + return HAL_ERROR; + } + + /* Clear ADDR flag */ + __HAL_I2C_CLEAR_ADDRFLAG(hi2c); + + /* If 10bit addressing mode is selected */ + if (hi2c->Init.AddressingMode == I2C_ADDRESSINGMODE_10BIT) + { + /* Wait until ADDR flag is set */ + if (I2C_WaitOnFlagUntilTimeout(hi2c, I2C_FLAG_ADDR, RESET, Timeout, tickstart) != HAL_OK) + { + return HAL_ERROR; + } + + /* Clear ADDR flag */ + __HAL_I2C_CLEAR_ADDRFLAG(hi2c); + } + + while (hi2c->XferSize > 0U) + { + /* Wait until TXE flag is set */ + if (I2C_WaitOnTXEFlagUntilTimeout(hi2c, Timeout, tickstart) != HAL_OK) + { + /* Disable Address Acknowledge */ + CLEAR_BIT(hi2c->Instance->CR1, I2C_CR1_ACK); + + return HAL_ERROR; + } + + /* Write data to DR */ + hi2c->Instance->DR = *hi2c->pBuffPtr; + + /* Increment Buffer pointer */ + hi2c->pBuffPtr++; + + /* Update counter */ + hi2c->XferCount--; + hi2c->XferSize--; + + if ((__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_BTF) == SET) && (hi2c->XferSize != 0U)) + { + /* Write data to DR */ + hi2c->Instance->DR = *hi2c->pBuffPtr; + + /* Increment Buffer pointer */ + hi2c->pBuffPtr++; + + /* Update counter */ + hi2c->XferCount--; + hi2c->XferSize--; + } + } + + /* Wait until AF flag is set */ + if (I2C_WaitOnFlagUntilTimeout(hi2c, I2C_FLAG_AF, RESET, Timeout, tickstart) != HAL_OK) + { + return HAL_ERROR; + } + + /* Clear AF flag */ + __HAL_I2C_CLEAR_FLAG(hi2c, I2C_FLAG_AF); + + /* Disable Address Acknowledge */ + CLEAR_BIT(hi2c->Instance->CR1, I2C_CR1_ACK); + + hi2c->State = HAL_I2C_STATE_READY; + hi2c->Mode = HAL_I2C_MODE_NONE; + + /* Process Unlocked */ + __HAL_UNLOCK(hi2c); + + return HAL_OK; + } + else + { + return HAL_BUSY; + } +} + +/** + * @brief Receive in slave mode an amount of data in blocking mode + * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains + * the configuration information for the specified I2C. + * @param pData Pointer to data buffer + * @param Size Amount of data to be sent + * @param Timeout Timeout duration + * @retval HAL status + */ +HAL_StatusTypeDef HAL_I2C_Slave_Receive(I2C_HandleTypeDef *hi2c, uint8_t *pData, uint16_t Size, uint32_t Timeout) +{ + /* Init tickstart for timeout management*/ + uint32_t tickstart = HAL_GetTick(); + + if (hi2c->State == HAL_I2C_STATE_READY) + { + if ((pData == NULL) || (Size == (uint16_t)0)) + { + return HAL_ERROR; + } + + /* Process Locked */ + __HAL_LOCK(hi2c); + + /* Check if the I2C is already enabled */ + if ((hi2c->Instance->CR1 & I2C_CR1_PE) != I2C_CR1_PE) + { + /* Enable I2C peripheral */ + __HAL_I2C_ENABLE(hi2c); + } + + /* Disable Pos */ + CLEAR_BIT(hi2c->Instance->CR1, I2C_CR1_POS); + + hi2c->State = HAL_I2C_STATE_BUSY_RX; + hi2c->Mode = HAL_I2C_MODE_SLAVE; + hi2c->ErrorCode = HAL_I2C_ERROR_NONE; + + /* Prepare transfer parameters */ + hi2c->pBuffPtr = pData; + hi2c->XferCount = Size; + hi2c->XferSize = hi2c->XferCount; + hi2c->XferOptions = I2C_NO_OPTION_FRAME; + + /* Enable Address Acknowledge */ + SET_BIT(hi2c->Instance->CR1, I2C_CR1_ACK); + + /* Wait until ADDR flag is set */ + if (I2C_WaitOnFlagUntilTimeout(hi2c, I2C_FLAG_ADDR, RESET, Timeout, tickstart) != HAL_OK) + { + return HAL_ERROR; + } + + /* Clear ADDR flag */ + __HAL_I2C_CLEAR_ADDRFLAG(hi2c); + + while (hi2c->XferSize > 0U) + { + /* Wait until RXNE flag is set */ + if (I2C_WaitOnRXNEFlagUntilTimeout(hi2c, Timeout, tickstart) != HAL_OK) + { + /* Disable Address Acknowledge */ + CLEAR_BIT(hi2c->Instance->CR1, I2C_CR1_ACK); + + return HAL_ERROR; + } + + /* Read data from DR */ + *hi2c->pBuffPtr = (uint8_t)hi2c->Instance->DR; + + /* Increment Buffer pointer */ + hi2c->pBuffPtr++; + + /* Update counter */ + hi2c->XferSize--; + hi2c->XferCount--; + + if ((__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_BTF) == SET) && (hi2c->XferSize != 0U)) + { + /* Read data from DR */ + *hi2c->pBuffPtr = (uint8_t)hi2c->Instance->DR; + + /* Increment Buffer pointer */ + hi2c->pBuffPtr++; + + /* Update counter */ + hi2c->XferSize--; + hi2c->XferCount--; + } + } + + /* Wait until STOP flag is set */ + if (I2C_WaitOnSTOPFlagUntilTimeout(hi2c, Timeout, tickstart) != HAL_OK) + { + /* Disable Address Acknowledge */ + CLEAR_BIT(hi2c->Instance->CR1, I2C_CR1_ACK); + + return HAL_ERROR; + } + + /* Clear STOP flag */ + __HAL_I2C_CLEAR_STOPFLAG(hi2c); + + /* Disable Address Acknowledge */ + CLEAR_BIT(hi2c->Instance->CR1, I2C_CR1_ACK); + + hi2c->State = HAL_I2C_STATE_READY; + hi2c->Mode = HAL_I2C_MODE_NONE; + + /* Process Unlocked */ + __HAL_UNLOCK(hi2c); + + return HAL_OK; + } + else + { + return HAL_BUSY; + } +} + +/** + * @brief Transmit in master mode an amount of data in non-blocking mode with Interrupt + * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains + * the configuration information for the specified I2C. + * @param DevAddress Target device address: The device 7 bits address value + * in datasheet must be shifted to the left before calling the interface + * @param pData Pointer to data buffer + * @param Size Amount of data to be sent + * @retval HAL status + */ +HAL_StatusTypeDef HAL_I2C_Master_Transmit_IT(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint8_t *pData, uint16_t Size) +{ + __IO uint32_t count = 0U; + + if (hi2c->State == HAL_I2C_STATE_READY) + { + /* Wait until BUSY flag is reset */ + count = I2C_TIMEOUT_BUSY_FLAG * (SystemCoreClock / 25U / 1000U); + do + { + count--; + if (count == 0U) + { + hi2c->PreviousState = I2C_STATE_NONE; + hi2c->State = HAL_I2C_STATE_READY; + hi2c->Mode = HAL_I2C_MODE_NONE; + hi2c->ErrorCode |= HAL_I2C_ERROR_TIMEOUT; + + /* Process Unlocked */ + __HAL_UNLOCK(hi2c); + + return HAL_ERROR; + } + } + while (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_BUSY) != RESET); + + /* Process Locked */ + __HAL_LOCK(hi2c); + + /* Check if the I2C is already enabled */ + if ((hi2c->Instance->CR1 & I2C_CR1_PE) != I2C_CR1_PE) + { + /* Enable I2C peripheral */ + __HAL_I2C_ENABLE(hi2c); + } + + /* Disable Pos */ + CLEAR_BIT(hi2c->Instance->CR1, I2C_CR1_POS); + + hi2c->State = HAL_I2C_STATE_BUSY_TX; + hi2c->Mode = HAL_I2C_MODE_MASTER; + hi2c->ErrorCode = HAL_I2C_ERROR_NONE; + + /* Prepare transfer parameters */ + hi2c->pBuffPtr = pData; + hi2c->XferCount = Size; + hi2c->XferSize = hi2c->XferCount; + hi2c->XferOptions = I2C_NO_OPTION_FRAME; + hi2c->Devaddress = DevAddress; + + /* Process Unlocked */ + __HAL_UNLOCK(hi2c); + + /* Note : The I2C interrupts must be enabled after unlocking current process + to avoid the risk of I2C interrupt handle execution before current + process unlock */ + /* Enable EVT, BUF and ERR interrupt */ + __HAL_I2C_ENABLE_IT(hi2c, I2C_IT_EVT | I2C_IT_BUF | I2C_IT_ERR); + + /* Generate Start */ + SET_BIT(hi2c->Instance->CR1, I2C_CR1_START); + + return HAL_OK; + } + else + { + return HAL_BUSY; + } +} + +/** + * @brief Receive in master mode an amount of data in non-blocking mode with Interrupt + * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains + * the configuration information for the specified I2C. + * @param DevAddress Target device address: The device 7 bits address value + * in datasheet must be shifted to the left before calling the interface + * @param pData Pointer to data buffer + * @param Size Amount of data to be sent + * @retval HAL status + */ +HAL_StatusTypeDef HAL_I2C_Master_Receive_IT(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint8_t *pData, uint16_t Size) +{ + __IO uint32_t count = 0U; + + if (hi2c->State == HAL_I2C_STATE_READY) + { + /* Wait until BUSY flag is reset */ + count = I2C_TIMEOUT_BUSY_FLAG * (SystemCoreClock / 25U / 1000U); + do + { + count--; + if (count == 0U) + { + hi2c->PreviousState = I2C_STATE_NONE; + hi2c->State = HAL_I2C_STATE_READY; + hi2c->Mode = HAL_I2C_MODE_NONE; + hi2c->ErrorCode |= HAL_I2C_ERROR_TIMEOUT; + + /* Process Unlocked */ + __HAL_UNLOCK(hi2c); + + return HAL_ERROR; + } + } + while (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_BUSY) != RESET); + + /* Process Locked */ + __HAL_LOCK(hi2c); + + /* Check if the I2C is already enabled */ + if ((hi2c->Instance->CR1 & I2C_CR1_PE) != I2C_CR1_PE) + { + /* Enable I2C peripheral */ + __HAL_I2C_ENABLE(hi2c); + } + + /* Disable Pos */ + CLEAR_BIT(hi2c->Instance->CR1, I2C_CR1_POS); + + hi2c->State = HAL_I2C_STATE_BUSY_RX; + hi2c->Mode = HAL_I2C_MODE_MASTER; + hi2c->ErrorCode = HAL_I2C_ERROR_NONE; + + /* Prepare transfer parameters */ + hi2c->pBuffPtr = pData; + hi2c->XferCount = Size; + hi2c->XferSize = hi2c->XferCount; + hi2c->XferOptions = I2C_NO_OPTION_FRAME; + hi2c->Devaddress = DevAddress; + + + /* Process Unlocked */ + __HAL_UNLOCK(hi2c); + + /* Note : The I2C interrupts must be enabled after unlocking current process + to avoid the risk of I2C interrupt handle execution before current + process unlock */ + + /* Enable EVT, BUF and ERR interrupt */ + __HAL_I2C_ENABLE_IT(hi2c, I2C_IT_EVT | I2C_IT_BUF | I2C_IT_ERR); + + /* Enable Acknowledge */ + SET_BIT(hi2c->Instance->CR1, I2C_CR1_ACK); + + /* Generate Start */ + SET_BIT(hi2c->Instance->CR1, I2C_CR1_START); + + return HAL_OK; + } + else + { + return HAL_BUSY; + } +} + +/** + * @brief Transmit in slave mode an amount of data in non-blocking mode with Interrupt + * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains + * the configuration information for the specified I2C. + * @param pData Pointer to data buffer + * @param Size Amount of data to be sent + * @retval HAL status + */ +HAL_StatusTypeDef HAL_I2C_Slave_Transmit_IT(I2C_HandleTypeDef *hi2c, uint8_t *pData, uint16_t Size) +{ + + if (hi2c->State == HAL_I2C_STATE_READY) + { + if ((pData == NULL) || (Size == 0U)) + { + return HAL_ERROR; + } + + /* Process Locked */ + __HAL_LOCK(hi2c); + + /* Check if the I2C is already enabled */ + if ((hi2c->Instance->CR1 & I2C_CR1_PE) != I2C_CR1_PE) + { + /* Enable I2C peripheral */ + __HAL_I2C_ENABLE(hi2c); + } + + /* Disable Pos */ + CLEAR_BIT(hi2c->Instance->CR1, I2C_CR1_POS); + + hi2c->State = HAL_I2C_STATE_BUSY_TX; + hi2c->Mode = HAL_I2C_MODE_SLAVE; + hi2c->ErrorCode = HAL_I2C_ERROR_NONE; + + /* Prepare transfer parameters */ + hi2c->pBuffPtr = pData; + hi2c->XferCount = Size; + hi2c->XferSize = hi2c->XferCount; + hi2c->XferOptions = I2C_NO_OPTION_FRAME; + + /* Enable Address Acknowledge */ + SET_BIT(hi2c->Instance->CR1, I2C_CR1_ACK); + + /* Process Unlocked */ + __HAL_UNLOCK(hi2c); + + /* Note : The I2C interrupts must be enabled after unlocking current process + to avoid the risk of I2C interrupt handle execution before current + process unlock */ + + /* Enable EVT, BUF and ERR interrupt */ + __HAL_I2C_ENABLE_IT(hi2c, I2C_IT_EVT | I2C_IT_BUF | I2C_IT_ERR); + + return HAL_OK; + } + else + { + return HAL_BUSY; + } +} + +/** + * @brief Receive in slave mode an amount of data in non-blocking mode with Interrupt + * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains + * the configuration information for the specified I2C. + * @param pData Pointer to data buffer + * @param Size Amount of data to be sent + * @retval HAL status + */ +HAL_StatusTypeDef HAL_I2C_Slave_Receive_IT(I2C_HandleTypeDef *hi2c, uint8_t *pData, uint16_t Size) +{ + + if (hi2c->State == HAL_I2C_STATE_READY) + { + if ((pData == NULL) || (Size == 0U)) + { + return HAL_ERROR; + } + + /* Process Locked */ + __HAL_LOCK(hi2c); + + /* Check if the I2C is already enabled */ + if ((hi2c->Instance->CR1 & I2C_CR1_PE) != I2C_CR1_PE) + { + /* Enable I2C peripheral */ + __HAL_I2C_ENABLE(hi2c); + } + + /* Disable Pos */ + CLEAR_BIT(hi2c->Instance->CR1, I2C_CR1_POS); + + hi2c->State = HAL_I2C_STATE_BUSY_RX; + hi2c->Mode = HAL_I2C_MODE_SLAVE; + hi2c->ErrorCode = HAL_I2C_ERROR_NONE; + + /* Prepare transfer parameters */ + hi2c->pBuffPtr = pData; + hi2c->XferCount = Size; + hi2c->XferSize = hi2c->XferCount; + hi2c->XferOptions = I2C_NO_OPTION_FRAME; + + /* Enable Address Acknowledge */ + SET_BIT(hi2c->Instance->CR1, I2C_CR1_ACK); + + /* Process Unlocked */ + __HAL_UNLOCK(hi2c); + + /* Note : The I2C interrupts must be enabled after unlocking current process + to avoid the risk of I2C interrupt handle execution before current + process unlock */ + + /* Enable EVT, BUF and ERR interrupt */ + __HAL_I2C_ENABLE_IT(hi2c, I2C_IT_EVT | I2C_IT_BUF | I2C_IT_ERR); + + return HAL_OK; + } + else + { + return HAL_BUSY; + } +} + +/** + * @brief Transmit in master mode an amount of data in non-blocking mode with DMA + * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains + * the configuration information for the specified I2C. + * @param DevAddress Target device address: The device 7 bits address value + * in datasheet must be shifted to the left before calling the interface + * @param pData Pointer to data buffer + * @param Size Amount of data to be sent + * @retval HAL status + */ +HAL_StatusTypeDef HAL_I2C_Master_Transmit_DMA(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint8_t *pData, uint16_t Size) +{ + __IO uint32_t count = 0U; + HAL_StatusTypeDef dmaxferstatus; + + if (hi2c->State == HAL_I2C_STATE_READY) + { + /* Wait until BUSY flag is reset */ + count = I2C_TIMEOUT_BUSY_FLAG * (SystemCoreClock / 25U / 1000U); + do + { + count--; + if (count == 0U) + { + hi2c->PreviousState = I2C_STATE_NONE; + hi2c->State = HAL_I2C_STATE_READY; + hi2c->Mode = HAL_I2C_MODE_NONE; + hi2c->ErrorCode |= HAL_I2C_ERROR_TIMEOUT; + + /* Process Unlocked */ + __HAL_UNLOCK(hi2c); + + return HAL_ERROR; + } + } + while (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_BUSY) != RESET); + + /* Process Locked */ + __HAL_LOCK(hi2c); + + /* Check if the I2C is already enabled */ + if ((hi2c->Instance->CR1 & I2C_CR1_PE) != I2C_CR1_PE) + { + /* Enable I2C peripheral */ + __HAL_I2C_ENABLE(hi2c); + } + + /* Disable Pos */ + CLEAR_BIT(hi2c->Instance->CR1, I2C_CR1_POS); + + hi2c->State = HAL_I2C_STATE_BUSY_TX; + hi2c->Mode = HAL_I2C_MODE_MASTER; + hi2c->ErrorCode = HAL_I2C_ERROR_NONE; + + /* Prepare transfer parameters */ + hi2c->pBuffPtr = pData; + hi2c->XferCount = Size; + hi2c->XferSize = hi2c->XferCount; + hi2c->XferOptions = I2C_NO_OPTION_FRAME; + hi2c->Devaddress = DevAddress; + + if (hi2c->XferSize > 0U) + { + if (hi2c->hdmatx != NULL) + { + /* Set the I2C DMA transfer complete callback */ + hi2c->hdmatx->XferCpltCallback = I2C_DMAXferCplt; + + /* Set the DMA error callback */ + hi2c->hdmatx->XferErrorCallback = I2C_DMAError; + + /* Set the unused DMA callbacks to NULL */ + hi2c->hdmatx->XferHalfCpltCallback = NULL; + hi2c->hdmatx->XferAbortCallback = NULL; + + /* Enable the DMA channel */ + dmaxferstatus = HAL_DMA_Start_IT(hi2c->hdmatx, (uint32_t)hi2c->pBuffPtr, (uint32_t)&hi2c->Instance->DR, hi2c->XferSize); + } + else + { + /* Update I2C state */ + hi2c->State = HAL_I2C_STATE_READY; + hi2c->Mode = HAL_I2C_MODE_NONE; + + /* Update I2C error code */ + hi2c->ErrorCode |= HAL_I2C_ERROR_DMA_PARAM; + + /* Process Unlocked */ + __HAL_UNLOCK(hi2c); + + return HAL_ERROR; + } + + if (dmaxferstatus == HAL_OK) + { + /* Process Unlocked */ + __HAL_UNLOCK(hi2c); + + /* Note : The I2C interrupts must be enabled after unlocking current process + to avoid the risk of I2C interrupt handle execution before current + process unlock */ + + /* Enable EVT and ERR interrupt */ + __HAL_I2C_ENABLE_IT(hi2c, I2C_IT_EVT | I2C_IT_ERR); + + /* Enable DMA Request */ + SET_BIT(hi2c->Instance->CR2, I2C_CR2_DMAEN); + + /* Enable Acknowledge */ + SET_BIT(hi2c->Instance->CR1, I2C_CR1_ACK); + + /* Generate Start */ + SET_BIT(hi2c->Instance->CR1, I2C_CR1_START); + } + else + { + /* Update I2C state */ + hi2c->State = HAL_I2C_STATE_READY; + hi2c->Mode = HAL_I2C_MODE_NONE; + + /* Update I2C error code */ + hi2c->ErrorCode |= HAL_I2C_ERROR_DMA; + + /* Process Unlocked */ + __HAL_UNLOCK(hi2c); + + return HAL_ERROR; + } + } + else + { + /* Enable Acknowledge */ + SET_BIT(hi2c->Instance->CR1, I2C_CR1_ACK); + + /* Generate Start */ + SET_BIT(hi2c->Instance->CR1, I2C_CR1_START); + + /* Process Unlocked */ + __HAL_UNLOCK(hi2c); + + /* Note : The I2C interrupts must be enabled after unlocking current process + to avoid the risk of I2C interrupt handle execution before current + process unlock */ + + /* Enable EVT, BUF and ERR interrupt */ + __HAL_I2C_ENABLE_IT(hi2c, I2C_IT_EVT | I2C_IT_BUF | I2C_IT_ERR); + } + + return HAL_OK; + } + else + { + return HAL_BUSY; + } +} + +/** + * @brief Receive in master mode an amount of data in non-blocking mode with DMA + * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains + * the configuration information for the specified I2C. + * @param DevAddress Target device address: The device 7 bits address value + * in datasheet must be shifted to the left before calling the interface + * @param pData Pointer to data buffer + * @param Size Amount of data to be sent + * @retval HAL status + */ +HAL_StatusTypeDef HAL_I2C_Master_Receive_DMA(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint8_t *pData, uint16_t Size) +{ + __IO uint32_t count = 0U; + HAL_StatusTypeDef dmaxferstatus; + + if (hi2c->State == HAL_I2C_STATE_READY) + { + /* Wait until BUSY flag is reset */ + count = I2C_TIMEOUT_BUSY_FLAG * (SystemCoreClock / 25U / 1000U); + do + { + count--; + if (count == 0U) + { + hi2c->PreviousState = I2C_STATE_NONE; + hi2c->State = HAL_I2C_STATE_READY; + hi2c->Mode = HAL_I2C_MODE_NONE; + hi2c->ErrorCode |= HAL_I2C_ERROR_TIMEOUT; + + /* Process Unlocked */ + __HAL_UNLOCK(hi2c); + + return HAL_ERROR; + } + } + while (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_BUSY) != RESET); + + /* Process Locked */ + __HAL_LOCK(hi2c); + + /* Check if the I2C is already enabled */ + if ((hi2c->Instance->CR1 & I2C_CR1_PE) != I2C_CR1_PE) + { + /* Enable I2C peripheral */ + __HAL_I2C_ENABLE(hi2c); + } + + /* Disable Pos */ + CLEAR_BIT(hi2c->Instance->CR1, I2C_CR1_POS); + + hi2c->State = HAL_I2C_STATE_BUSY_RX; + hi2c->Mode = HAL_I2C_MODE_MASTER; + hi2c->ErrorCode = HAL_I2C_ERROR_NONE; + + /* Prepare transfer parameters */ + hi2c->pBuffPtr = pData; + hi2c->XferCount = Size; + hi2c->XferSize = hi2c->XferCount; + hi2c->XferOptions = I2C_NO_OPTION_FRAME; + hi2c->Devaddress = DevAddress; + + if (hi2c->XferSize > 0U) + { + if (hi2c->hdmarx != NULL) + { + /* Set the I2C DMA transfer complete callback */ + hi2c->hdmarx->XferCpltCallback = I2C_DMAXferCplt; + + /* Set the DMA error callback */ + hi2c->hdmarx->XferErrorCallback = I2C_DMAError; + + /* Set the unused DMA callbacks to NULL */ + hi2c->hdmarx->XferHalfCpltCallback = NULL; + hi2c->hdmarx->XferAbortCallback = NULL; + + /* Enable the DMA channel */ + dmaxferstatus = HAL_DMA_Start_IT(hi2c->hdmarx, (uint32_t)&hi2c->Instance->DR, (uint32_t)hi2c->pBuffPtr, hi2c->XferSize); + } + else + { + /* Update I2C state */ + hi2c->State = HAL_I2C_STATE_READY; + hi2c->Mode = HAL_I2C_MODE_NONE; + + /* Update I2C error code */ + hi2c->ErrorCode |= HAL_I2C_ERROR_DMA_PARAM; + + /* Process Unlocked */ + __HAL_UNLOCK(hi2c); + + return HAL_ERROR; + } + + if (dmaxferstatus == HAL_OK) + { + /* Enable Acknowledge */ + SET_BIT(hi2c->Instance->CR1, I2C_CR1_ACK); + + /* Generate Start */ + SET_BIT(hi2c->Instance->CR1, I2C_CR1_START); + + /* Process Unlocked */ + __HAL_UNLOCK(hi2c); + + /* Note : The I2C interrupts must be enabled after unlocking current process + to avoid the risk of I2C interrupt handle execution before current + process unlock */ + + /* Enable EVT and ERR interrupt */ + __HAL_I2C_ENABLE_IT(hi2c, I2C_IT_EVT | I2C_IT_ERR); + + /* Enable DMA Request */ + SET_BIT(hi2c->Instance->CR2, I2C_CR2_DMAEN); + } + else + { + /* Update I2C state */ + hi2c->State = HAL_I2C_STATE_READY; + hi2c->Mode = HAL_I2C_MODE_NONE; + + /* Update I2C error code */ + hi2c->ErrorCode |= HAL_I2C_ERROR_DMA; + + /* Process Unlocked */ + __HAL_UNLOCK(hi2c); + + return HAL_ERROR; + } + } + else + { + /* Process Unlocked */ + __HAL_UNLOCK(hi2c); + + /* Note : The I2C interrupts must be enabled after unlocking current process + to avoid the risk of I2C interrupt handle execution before current + process unlock */ + + /* Enable EVT, BUF and ERR interrupt */ + __HAL_I2C_ENABLE_IT(hi2c, I2C_IT_EVT | I2C_IT_BUF | I2C_IT_ERR); + + /* Enable Acknowledge */ + SET_BIT(hi2c->Instance->CR1, I2C_CR1_ACK); + + /* Generate Start */ + SET_BIT(hi2c->Instance->CR1, I2C_CR1_START); + } + + return HAL_OK; + } + else + { + return HAL_BUSY; + } +} + +/** + * @brief Transmit in slave mode an amount of data in non-blocking mode with DMA + * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains + * the configuration information for the specified I2C. + * @param pData Pointer to data buffer + * @param Size Amount of data to be sent + * @retval HAL status + */ +HAL_StatusTypeDef HAL_I2C_Slave_Transmit_DMA(I2C_HandleTypeDef *hi2c, uint8_t *pData, uint16_t Size) +{ + HAL_StatusTypeDef dmaxferstatus; + + if (hi2c->State == HAL_I2C_STATE_READY) + { + if ((pData == NULL) || (Size == 0U)) + { + return HAL_ERROR; + } + + /* Process Locked */ + __HAL_LOCK(hi2c); + + /* Check if the I2C is already enabled */ + if ((hi2c->Instance->CR1 & I2C_CR1_PE) != I2C_CR1_PE) + { + /* Enable I2C peripheral */ + __HAL_I2C_ENABLE(hi2c); + } + + /* Disable Pos */ + CLEAR_BIT(hi2c->Instance->CR1, I2C_CR1_POS); + + hi2c->State = HAL_I2C_STATE_BUSY_TX; + hi2c->Mode = HAL_I2C_MODE_SLAVE; + hi2c->ErrorCode = HAL_I2C_ERROR_NONE; + + /* Prepare transfer parameters */ + hi2c->pBuffPtr = pData; + hi2c->XferCount = Size; + hi2c->XferSize = hi2c->XferCount; + hi2c->XferOptions = I2C_NO_OPTION_FRAME; + + if (hi2c->hdmatx != NULL) + { + /* Set the I2C DMA transfer complete callback */ + hi2c->hdmatx->XferCpltCallback = I2C_DMAXferCplt; + + /* Set the DMA error callback */ + hi2c->hdmatx->XferErrorCallback = I2C_DMAError; + + /* Set the unused DMA callbacks to NULL */ + hi2c->hdmatx->XferHalfCpltCallback = NULL; + hi2c->hdmatx->XferAbortCallback = NULL; + + /* Enable the DMA channel */ + dmaxferstatus = HAL_DMA_Start_IT(hi2c->hdmatx, (uint32_t)hi2c->pBuffPtr, (uint32_t)&hi2c->Instance->DR, hi2c->XferSize); + } + else + { + /* Update I2C state */ + hi2c->State = HAL_I2C_STATE_LISTEN; + hi2c->Mode = HAL_I2C_MODE_NONE; + + /* Update I2C error code */ + hi2c->ErrorCode |= HAL_I2C_ERROR_DMA_PARAM; + + /* Process Unlocked */ + __HAL_UNLOCK(hi2c); + + return HAL_ERROR; + } + + if (dmaxferstatus == HAL_OK) + { + /* Enable Address Acknowledge */ + SET_BIT(hi2c->Instance->CR1, I2C_CR1_ACK); + + /* Process Unlocked */ + __HAL_UNLOCK(hi2c); + + /* Note : The I2C interrupts must be enabled after unlocking current process + to avoid the risk of I2C interrupt handle execution before current + process unlock */ + /* Enable EVT and ERR interrupt */ + __HAL_I2C_ENABLE_IT(hi2c, I2C_IT_EVT | I2C_IT_ERR); + + /* Enable DMA Request */ + hi2c->Instance->CR2 |= I2C_CR2_DMAEN; + + return HAL_OK; + } + else + { + /* Update I2C state */ + hi2c->State = HAL_I2C_STATE_READY; + hi2c->Mode = HAL_I2C_MODE_NONE; + + /* Update I2C error code */ + hi2c->ErrorCode |= HAL_I2C_ERROR_DMA; + + /* Process Unlocked */ + __HAL_UNLOCK(hi2c); + + return HAL_ERROR; + } + } + else + { + return HAL_BUSY; + } +} + +/** + * @brief Receive in slave mode an amount of data in non-blocking mode with DMA + * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains + * the configuration information for the specified I2C. + * @param pData Pointer to data buffer + * @param Size Amount of data to be sent + * @retval HAL status + */ +HAL_StatusTypeDef HAL_I2C_Slave_Receive_DMA(I2C_HandleTypeDef *hi2c, uint8_t *pData, uint16_t Size) +{ + HAL_StatusTypeDef dmaxferstatus; + + if (hi2c->State == HAL_I2C_STATE_READY) + { + if ((pData == NULL) || (Size == 0U)) + { + return HAL_ERROR; + } + + /* Process Locked */ + __HAL_LOCK(hi2c); + + /* Check if the I2C is already enabled */ + if ((hi2c->Instance->CR1 & I2C_CR1_PE) != I2C_CR1_PE) + { + /* Enable I2C peripheral */ + __HAL_I2C_ENABLE(hi2c); + } + + /* Disable Pos */ + CLEAR_BIT(hi2c->Instance->CR1, I2C_CR1_POS); + + hi2c->State = HAL_I2C_STATE_BUSY_RX; + hi2c->Mode = HAL_I2C_MODE_SLAVE; + hi2c->ErrorCode = HAL_I2C_ERROR_NONE; + + /* Prepare transfer parameters */ + hi2c->pBuffPtr = pData; + hi2c->XferCount = Size; + hi2c->XferSize = hi2c->XferCount; + hi2c->XferOptions = I2C_NO_OPTION_FRAME; + + if (hi2c->hdmarx != NULL) + { + /* Set the I2C DMA transfer complete callback */ + hi2c->hdmarx->XferCpltCallback = I2C_DMAXferCplt; + + /* Set the DMA error callback */ + hi2c->hdmarx->XferErrorCallback = I2C_DMAError; + + /* Set the unused DMA callbacks to NULL */ + hi2c->hdmarx->XferHalfCpltCallback = NULL; + hi2c->hdmarx->XferAbortCallback = NULL; + + /* Enable the DMA channel */ + dmaxferstatus = HAL_DMA_Start_IT(hi2c->hdmarx, (uint32_t)&hi2c->Instance->DR, (uint32_t)hi2c->pBuffPtr, hi2c->XferSize); + } + else + { + /* Update I2C state */ + hi2c->State = HAL_I2C_STATE_LISTEN; + hi2c->Mode = HAL_I2C_MODE_NONE; + + /* Update I2C error code */ + hi2c->ErrorCode |= HAL_I2C_ERROR_DMA_PARAM; + + /* Process Unlocked */ + __HAL_UNLOCK(hi2c); + + return HAL_ERROR; + } + + if (dmaxferstatus == HAL_OK) + { + /* Enable Address Acknowledge */ + SET_BIT(hi2c->Instance->CR1, I2C_CR1_ACK); + + /* Process Unlocked */ + __HAL_UNLOCK(hi2c); + + /* Note : The I2C interrupts must be enabled after unlocking current process + to avoid the risk of I2C interrupt handle execution before current + process unlock */ + /* Enable EVT and ERR interrupt */ + __HAL_I2C_ENABLE_IT(hi2c, I2C_IT_EVT | I2C_IT_ERR); + + /* Enable DMA Request */ + SET_BIT(hi2c->Instance->CR2, I2C_CR2_DMAEN); + + return HAL_OK; + } + else + { + /* Update I2C state */ + hi2c->State = HAL_I2C_STATE_READY; + hi2c->Mode = HAL_I2C_MODE_NONE; + + /* Update I2C error code */ + hi2c->ErrorCode |= HAL_I2C_ERROR_DMA; + + /* Process Unlocked */ + __HAL_UNLOCK(hi2c); + + return HAL_ERROR; + } + } + else + { + return HAL_BUSY; + } +} + +/** + * @brief Write an amount of data in blocking mode to a specific memory address + * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains + * the configuration information for the specified I2C. + * @param DevAddress Target device address: The device 7 bits address value + * in datasheet must be shifted to the left before calling the interface + * @param MemAddress Internal memory address + * @param MemAddSize Size of internal memory address + * @param pData Pointer to data buffer + * @param Size Amount of data to be sent + * @param Timeout Timeout duration + * @retval HAL status + */ +HAL_StatusTypeDef HAL_I2C_Mem_Write(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint16_t MemAddress, uint16_t MemAddSize, uint8_t *pData, uint16_t Size, uint32_t Timeout) +{ + /* Init tickstart for timeout management*/ + uint32_t tickstart = HAL_GetTick(); + + /* Check the parameters */ + assert_param(IS_I2C_MEMADD_SIZE(MemAddSize)); + + if (hi2c->State == HAL_I2C_STATE_READY) + { + /* Wait until BUSY flag is reset */ + if (I2C_WaitOnFlagUntilTimeout(hi2c, I2C_FLAG_BUSY, SET, I2C_TIMEOUT_BUSY_FLAG, tickstart) != HAL_OK) + { + return HAL_BUSY; + } + + /* Process Locked */ + __HAL_LOCK(hi2c); + + /* Check if the I2C is already enabled */ + if ((hi2c->Instance->CR1 & I2C_CR1_PE) != I2C_CR1_PE) + { + /* Enable I2C peripheral */ + __HAL_I2C_ENABLE(hi2c); + } + + /* Disable Pos */ + CLEAR_BIT(hi2c->Instance->CR1, I2C_CR1_POS); + + hi2c->State = HAL_I2C_STATE_BUSY_TX; + hi2c->Mode = HAL_I2C_MODE_MEM; + hi2c->ErrorCode = HAL_I2C_ERROR_NONE; + + /* Prepare transfer parameters */ + hi2c->pBuffPtr = pData; + hi2c->XferCount = Size; + hi2c->XferSize = hi2c->XferCount; + hi2c->XferOptions = I2C_NO_OPTION_FRAME; + + /* Send Slave Address and Memory Address */ + if (I2C_RequestMemoryWrite(hi2c, DevAddress, MemAddress, MemAddSize, Timeout, tickstart) != HAL_OK) + { + return HAL_ERROR; + } + + while (hi2c->XferSize > 0U) + { + /* Wait until TXE flag is set */ + if (I2C_WaitOnTXEFlagUntilTimeout(hi2c, Timeout, tickstart) != HAL_OK) + { + if (hi2c->ErrorCode == HAL_I2C_ERROR_AF) + { + /* Generate Stop */ + SET_BIT(hi2c->Instance->CR1, I2C_CR1_STOP); + } + return HAL_ERROR; + } + + /* Write data to DR */ + hi2c->Instance->DR = *hi2c->pBuffPtr; + + /* Increment Buffer pointer */ + hi2c->pBuffPtr++; + + /* Update counter */ + hi2c->XferSize--; + hi2c->XferCount--; + + if ((__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_BTF) == SET) && (hi2c->XferSize != 0U)) + { + /* Write data to DR */ + hi2c->Instance->DR = *hi2c->pBuffPtr; + + /* Increment Buffer pointer */ + hi2c->pBuffPtr++; + + /* Update counter */ + hi2c->XferSize--; + hi2c->XferCount--; + } + } + + /* Wait until BTF flag is set */ + if (I2C_WaitOnBTFFlagUntilTimeout(hi2c, Timeout, tickstart) != HAL_OK) + { + if (hi2c->ErrorCode == HAL_I2C_ERROR_AF) + { + /* Generate Stop */ + SET_BIT(hi2c->Instance->CR1, I2C_CR1_STOP); + } + return HAL_ERROR; + } + + /* Generate Stop */ + SET_BIT(hi2c->Instance->CR1, I2C_CR1_STOP); + + hi2c->State = HAL_I2C_STATE_READY; + hi2c->Mode = HAL_I2C_MODE_NONE; + + /* Process Unlocked */ + __HAL_UNLOCK(hi2c); + + return HAL_OK; + } + else + { + return HAL_BUSY; + } +} + +/** + * @brief Read an amount of data in blocking mode from a specific memory address + * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains + * the configuration information for the specified I2C. + * @param DevAddress Target device address: The device 7 bits address value + * in datasheet must be shifted to the left before calling the interface + * @param MemAddress Internal memory address + * @param MemAddSize Size of internal memory address + * @param pData Pointer to data buffer + * @param Size Amount of data to be sent + * @param Timeout Timeout duration + * @retval HAL status + */ +HAL_StatusTypeDef HAL_I2C_Mem_Read(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint16_t MemAddress, uint16_t MemAddSize, uint8_t *pData, uint16_t Size, uint32_t Timeout) +{ + __IO uint32_t count = 0U; + + /* Init tickstart for timeout management*/ + uint32_t tickstart = HAL_GetTick(); + + /* Check the parameters */ + assert_param(IS_I2C_MEMADD_SIZE(MemAddSize)); + + if (hi2c->State == HAL_I2C_STATE_READY) + { + /* Wait until BUSY flag is reset */ + if (I2C_WaitOnFlagUntilTimeout(hi2c, I2C_FLAG_BUSY, SET, I2C_TIMEOUT_BUSY_FLAG, tickstart) != HAL_OK) + { + return HAL_BUSY; + } + + /* Process Locked */ + __HAL_LOCK(hi2c); + + /* Check if the I2C is already enabled */ + if ((hi2c->Instance->CR1 & I2C_CR1_PE) != I2C_CR1_PE) + { + /* Enable I2C peripheral */ + __HAL_I2C_ENABLE(hi2c); + } + + /* Disable Pos */ + CLEAR_BIT(hi2c->Instance->CR1, I2C_CR1_POS); + + hi2c->State = HAL_I2C_STATE_BUSY_RX; + hi2c->Mode = HAL_I2C_MODE_MEM; + hi2c->ErrorCode = HAL_I2C_ERROR_NONE; + + /* Prepare transfer parameters */ + hi2c->pBuffPtr = pData; + hi2c->XferCount = Size; + hi2c->XferSize = hi2c->XferCount; + hi2c->XferOptions = I2C_NO_OPTION_FRAME; + + /* Send Slave Address and Memory Address */ + if (I2C_RequestMemoryRead(hi2c, DevAddress, MemAddress, MemAddSize, Timeout, tickstart) != HAL_OK) + { + return HAL_ERROR; + } + + if (hi2c->XferSize == 0U) + { + /* Clear ADDR flag */ + __HAL_I2C_CLEAR_ADDRFLAG(hi2c); + + /* Generate Stop */ + SET_BIT(hi2c->Instance->CR1, I2C_CR1_STOP); + } + else if (hi2c->XferSize == 1U) + { + /* Disable Acknowledge */ + CLEAR_BIT(hi2c->Instance->CR1, I2C_CR1_ACK); + + /* Disable all active IRQs around ADDR clearing and STOP programming because the EV6_3 + software sequence must complete before the current byte end of transfer */ + __disable_irq(); + + /* Clear ADDR flag */ + __HAL_I2C_CLEAR_ADDRFLAG(hi2c); + + /* Generate Stop */ + SET_BIT(hi2c->Instance->CR1, I2C_CR1_STOP); + + /* Re-enable IRQs */ + __enable_irq(); + } + else if (hi2c->XferSize == 2U) + { + /* Enable Pos */ + SET_BIT(hi2c->Instance->CR1, I2C_CR1_POS); + + /* Disable all active IRQs around ADDR clearing and STOP programming because the EV6_3 + software sequence must complete before the current byte end of transfer */ + __disable_irq(); + + /* Clear ADDR flag */ + __HAL_I2C_CLEAR_ADDRFLAG(hi2c); + + /* Disable Acknowledge */ + CLEAR_BIT(hi2c->Instance->CR1, I2C_CR1_ACK); + + /* Re-enable IRQs */ + __enable_irq(); + } + else + { + /* Enable Acknowledge */ + SET_BIT(hi2c->Instance->CR1, I2C_CR1_ACK); + /* Clear ADDR flag */ + __HAL_I2C_CLEAR_ADDRFLAG(hi2c); + } + + while (hi2c->XferSize > 0U) + { + if (hi2c->XferSize <= 3U) + { + /* One byte */ + if (hi2c->XferSize == 1U) + { + /* Wait until RXNE flag is set */ + if (I2C_WaitOnRXNEFlagUntilTimeout(hi2c, Timeout, tickstart) != HAL_OK) + { + return HAL_ERROR; + } + + /* Read data from DR */ + *hi2c->pBuffPtr = (uint8_t)hi2c->Instance->DR; + + /* Increment Buffer pointer */ + hi2c->pBuffPtr++; + + /* Update counter */ + hi2c->XferSize--; + hi2c->XferCount--; + } + /* Two bytes */ + else if (hi2c->XferSize == 2U) + { + /* Wait until BTF flag is set */ + if (I2C_WaitOnFlagUntilTimeout(hi2c, I2C_FLAG_BTF, RESET, Timeout, tickstart) != HAL_OK) + { + return HAL_ERROR; + } + + /* Disable all active IRQs around ADDR clearing and STOP programming because the EV6_3 + software sequence must complete before the current byte end of transfer */ + __disable_irq(); + + /* Generate Stop */ + SET_BIT(hi2c->Instance->CR1, I2C_CR1_STOP); + + /* Read data from DR */ + *hi2c->pBuffPtr = (uint8_t)hi2c->Instance->DR; + + /* Increment Buffer pointer */ + hi2c->pBuffPtr++; + + /* Update counter */ + hi2c->XferSize--; + hi2c->XferCount--; + + /* Re-enable IRQs */ + __enable_irq(); + + /* Read data from DR */ + *hi2c->pBuffPtr = (uint8_t)hi2c->Instance->DR; + + /* Increment Buffer pointer */ + hi2c->pBuffPtr++; + + /* Update counter */ + hi2c->XferSize--; + hi2c->XferCount--; + } + /* 3 Last bytes */ + else + { + /* Wait until BTF flag is set */ + if (I2C_WaitOnFlagUntilTimeout(hi2c, I2C_FLAG_BTF, RESET, Timeout, tickstart) != HAL_OK) + { + return HAL_ERROR; + } + + /* Disable Acknowledge */ + CLEAR_BIT(hi2c->Instance->CR1, I2C_CR1_ACK); + + /* Disable all active IRQs around ADDR clearing and STOP programming because the EV6_3 + software sequence must complete before the current byte end of transfer */ + __disable_irq(); + + /* Read data from DR */ + *hi2c->pBuffPtr = (uint8_t)hi2c->Instance->DR; + + /* Increment Buffer pointer */ + hi2c->pBuffPtr++; + + /* Update counter */ + hi2c->XferSize--; + hi2c->XferCount--; + + /* Wait until BTF flag is set */ + count = I2C_TIMEOUT_FLAG * (SystemCoreClock / 25U / 1000U); + do + { + count--; + if (count == 0U) + { + hi2c->PreviousState = I2C_STATE_NONE; + hi2c->State = HAL_I2C_STATE_READY; + hi2c->Mode = HAL_I2C_MODE_NONE; + hi2c->ErrorCode |= HAL_I2C_ERROR_TIMEOUT; + + /* Re-enable IRQs */ + __enable_irq(); + + /* Process Unlocked */ + __HAL_UNLOCK(hi2c); + + return HAL_ERROR; + } + } + while (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_BTF) == RESET); + + /* Generate Stop */ + SET_BIT(hi2c->Instance->CR1, I2C_CR1_STOP); + + /* Read data from DR */ + *hi2c->pBuffPtr = (uint8_t)hi2c->Instance->DR; + + /* Increment Buffer pointer */ + hi2c->pBuffPtr++; + + /* Update counter */ + hi2c->XferSize--; + hi2c->XferCount--; + + /* Re-enable IRQs */ + __enable_irq(); + + /* Read data from DR */ + *hi2c->pBuffPtr = (uint8_t)hi2c->Instance->DR; + + /* Increment Buffer pointer */ + hi2c->pBuffPtr++; + + /* Update counter */ + hi2c->XferSize--; + hi2c->XferCount--; + } + } + else + { + /* Wait until RXNE flag is set */ + if (I2C_WaitOnRXNEFlagUntilTimeout(hi2c, Timeout, tickstart) != HAL_OK) + { + return HAL_ERROR; + } + + /* Read data from DR */ + *hi2c->pBuffPtr = (uint8_t)hi2c->Instance->DR; + + /* Increment Buffer pointer */ + hi2c->pBuffPtr++; + + /* Update counter */ + hi2c->XferSize--; + hi2c->XferCount--; + + if (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_BTF) == SET) + { + /* Read data from DR */ + *hi2c->pBuffPtr = (uint8_t)hi2c->Instance->DR; + + /* Increment Buffer pointer */ + hi2c->pBuffPtr++; + + /* Update counter */ + hi2c->XferSize--; + hi2c->XferCount--; + } + } + } + + hi2c->State = HAL_I2C_STATE_READY; + hi2c->Mode = HAL_I2C_MODE_NONE; + + /* Process Unlocked */ + __HAL_UNLOCK(hi2c); + + return HAL_OK; + } + else + { + return HAL_BUSY; + } +} + +/** + * @brief Write an amount of data in non-blocking mode with Interrupt to a specific memory address + * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains + * the configuration information for the specified I2C. + * @param DevAddress Target device address: The device 7 bits address value + * in datasheet must be shifted to the left before calling the interface + * @param MemAddress Internal memory address + * @param MemAddSize Size of internal memory address + * @param pData Pointer to data buffer + * @param Size Amount of data to be sent + * @retval HAL status + */ +HAL_StatusTypeDef HAL_I2C_Mem_Write_IT(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint16_t MemAddress, uint16_t MemAddSize, uint8_t *pData, uint16_t Size) +{ + __IO uint32_t count = 0U; + + /* Check the parameters */ + assert_param(IS_I2C_MEMADD_SIZE(MemAddSize)); + + if (hi2c->State == HAL_I2C_STATE_READY) + { + /* Wait until BUSY flag is reset */ + count = I2C_TIMEOUT_BUSY_FLAG * (SystemCoreClock / 25U / 1000U); + do + { + count--; + if (count == 0U) + { + hi2c->PreviousState = I2C_STATE_NONE; + hi2c->State = HAL_I2C_STATE_READY; + hi2c->Mode = HAL_I2C_MODE_NONE; + hi2c->ErrorCode |= HAL_I2C_ERROR_TIMEOUT; + + /* Process Unlocked */ + __HAL_UNLOCK(hi2c); + + return HAL_ERROR; + } + } + while (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_BUSY) != RESET); + + /* Process Locked */ + __HAL_LOCK(hi2c); + + /* Check if the I2C is already enabled */ + if ((hi2c->Instance->CR1 & I2C_CR1_PE) != I2C_CR1_PE) + { + /* Enable I2C peripheral */ + __HAL_I2C_ENABLE(hi2c); + } + + /* Disable Pos */ + CLEAR_BIT(hi2c->Instance->CR1, I2C_CR1_POS); + + hi2c->State = HAL_I2C_STATE_BUSY_TX; + hi2c->Mode = HAL_I2C_MODE_MEM; + hi2c->ErrorCode = HAL_I2C_ERROR_NONE; + + /* Prepare transfer parameters */ + hi2c->pBuffPtr = pData; + hi2c->XferCount = Size; + hi2c->XferSize = hi2c->XferCount; + hi2c->XferOptions = I2C_NO_OPTION_FRAME; + hi2c->Devaddress = DevAddress; + hi2c->Memaddress = MemAddress; + hi2c->MemaddSize = MemAddSize; + hi2c->EventCount = 0U; + + /* Generate Start */ + SET_BIT(hi2c->Instance->CR1, I2C_CR1_START); + + /* Process Unlocked */ + __HAL_UNLOCK(hi2c); + + /* Note : The I2C interrupts must be enabled after unlocking current process + to avoid the risk of I2C interrupt handle execution before current + process unlock */ + + /* Enable EVT, BUF and ERR interrupt */ + __HAL_I2C_ENABLE_IT(hi2c, I2C_IT_EVT | I2C_IT_BUF | I2C_IT_ERR); + + return HAL_OK; + } + else + { + return HAL_BUSY; + } +} + +/** + * @brief Read an amount of data in non-blocking mode with Interrupt from a specific memory address + * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains + * the configuration information for the specified I2C. + * @param DevAddress Target device address + * @param MemAddress Internal memory address + * @param MemAddSize Size of internal memory address + * @param pData Pointer to data buffer + * @param Size Amount of data to be sent + * @retval HAL status + */ +HAL_StatusTypeDef HAL_I2C_Mem_Read_IT(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint16_t MemAddress, uint16_t MemAddSize, uint8_t *pData, uint16_t Size) +{ + __IO uint32_t count = 0U; + + /* Check the parameters */ + assert_param(IS_I2C_MEMADD_SIZE(MemAddSize)); + + if (hi2c->State == HAL_I2C_STATE_READY) + { + /* Wait until BUSY flag is reset */ + count = I2C_TIMEOUT_BUSY_FLAG * (SystemCoreClock / 25U / 1000U); + do + { + count--; + if (count == 0U) + { + hi2c->PreviousState = I2C_STATE_NONE; + hi2c->State = HAL_I2C_STATE_READY; + hi2c->Mode = HAL_I2C_MODE_NONE; + hi2c->ErrorCode |= HAL_I2C_ERROR_TIMEOUT; + + /* Process Unlocked */ + __HAL_UNLOCK(hi2c); + + return HAL_ERROR; + } + } + while (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_BUSY) != RESET); + + /* Process Locked */ + __HAL_LOCK(hi2c); + + /* Check if the I2C is already enabled */ + if ((hi2c->Instance->CR1 & I2C_CR1_PE) != I2C_CR1_PE) + { + /* Enable I2C peripheral */ + __HAL_I2C_ENABLE(hi2c); + } + + /* Disable Pos */ + CLEAR_BIT(hi2c->Instance->CR1, I2C_CR1_POS); + + hi2c->State = HAL_I2C_STATE_BUSY_RX; + hi2c->Mode = HAL_I2C_MODE_MEM; + hi2c->ErrorCode = HAL_I2C_ERROR_NONE; + + /* Prepare transfer parameters */ + hi2c->pBuffPtr = pData; + hi2c->XferCount = Size; + hi2c->XferSize = hi2c->XferCount; + hi2c->XferOptions = I2C_NO_OPTION_FRAME; + hi2c->Devaddress = DevAddress; + hi2c->Memaddress = MemAddress; + hi2c->MemaddSize = MemAddSize; + hi2c->EventCount = 0U; + + /* Enable Acknowledge */ + SET_BIT(hi2c->Instance->CR1, I2C_CR1_ACK); + + /* Generate Start */ + SET_BIT(hi2c->Instance->CR1, I2C_CR1_START); + + /* Process Unlocked */ + __HAL_UNLOCK(hi2c); + + if (hi2c->XferSize > 0U) + { + /* Note : The I2C interrupts must be enabled after unlocking current process + to avoid the risk of I2C interrupt handle execution before current + process unlock */ + + /* Enable EVT, BUF and ERR interrupt */ + __HAL_I2C_ENABLE_IT(hi2c, I2C_IT_EVT | I2C_IT_BUF | I2C_IT_ERR); + } + return HAL_OK; + } + else + { + return HAL_BUSY; + } +} + +/** + * @brief Write an amount of data in non-blocking mode with DMA to a specific memory address + * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains + * the configuration information for the specified I2C. + * @param DevAddress Target device address: The device 7 bits address value + * in datasheet must be shifted to the left before calling the interface + * @param MemAddress Internal memory address + * @param MemAddSize Size of internal memory address + * @param pData Pointer to data buffer + * @param Size Amount of data to be sent + * @retval HAL status + */ +HAL_StatusTypeDef HAL_I2C_Mem_Write_DMA(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint16_t MemAddress, uint16_t MemAddSize, uint8_t *pData, uint16_t Size) +{ + __IO uint32_t count = 0U; + HAL_StatusTypeDef dmaxferstatus; + + /* Init tickstart for timeout management*/ + uint32_t tickstart = HAL_GetTick(); + + /* Check the parameters */ + assert_param(IS_I2C_MEMADD_SIZE(MemAddSize)); + + if (hi2c->State == HAL_I2C_STATE_READY) + { + /* Wait until BUSY flag is reset */ + count = I2C_TIMEOUT_BUSY_FLAG * (SystemCoreClock / 25U / 1000U); + do + { + count--; + if (count == 0U) + { + hi2c->PreviousState = I2C_STATE_NONE; + hi2c->State = HAL_I2C_STATE_READY; + hi2c->Mode = HAL_I2C_MODE_NONE; + hi2c->ErrorCode |= HAL_I2C_ERROR_TIMEOUT; + + /* Process Unlocked */ + __HAL_UNLOCK(hi2c); + + return HAL_ERROR; + } + } + while (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_BUSY) != RESET); + + /* Process Locked */ + __HAL_LOCK(hi2c); + + /* Check if the I2C is already enabled */ + if ((hi2c->Instance->CR1 & I2C_CR1_PE) != I2C_CR1_PE) + { + /* Enable I2C peripheral */ + __HAL_I2C_ENABLE(hi2c); + } + + /* Disable Pos */ + CLEAR_BIT(hi2c->Instance->CR1, I2C_CR1_POS); + + hi2c->State = HAL_I2C_STATE_BUSY_TX; + hi2c->Mode = HAL_I2C_MODE_MEM; + hi2c->ErrorCode = HAL_I2C_ERROR_NONE; + + /* Prepare transfer parameters */ + hi2c->pBuffPtr = pData; + hi2c->XferCount = Size; + hi2c->XferSize = hi2c->XferCount; + hi2c->XferOptions = I2C_NO_OPTION_FRAME; + + if (hi2c->XferSize > 0U) + { + if (hi2c->hdmatx != NULL) + { + /* Set the I2C DMA transfer complete callback */ + hi2c->hdmatx->XferCpltCallback = I2C_DMAXferCplt; + + /* Set the DMA error callback */ + hi2c->hdmatx->XferErrorCallback = I2C_DMAError; + + /* Set the unused DMA callbacks to NULL */ + hi2c->hdmatx->XferHalfCpltCallback = NULL; + hi2c->hdmatx->XferAbortCallback = NULL; + + /* Enable the DMA channel */ + dmaxferstatus = HAL_DMA_Start_IT(hi2c->hdmatx, (uint32_t)hi2c->pBuffPtr, (uint32_t)&hi2c->Instance->DR, hi2c->XferSize); + } + else + { + /* Update I2C state */ + hi2c->State = HAL_I2C_STATE_READY; + hi2c->Mode = HAL_I2C_MODE_NONE; + + /* Update I2C error code */ + hi2c->ErrorCode |= HAL_I2C_ERROR_DMA_PARAM; + + /* Process Unlocked */ + __HAL_UNLOCK(hi2c); + + return HAL_ERROR; + } + + if (dmaxferstatus == HAL_OK) + { + /* Send Slave Address and Memory Address */ + if (I2C_RequestMemoryWrite(hi2c, DevAddress, MemAddress, MemAddSize, I2C_TIMEOUT_FLAG, tickstart) != HAL_OK) + { + /* Abort the ongoing DMA */ + dmaxferstatus = HAL_DMA_Abort_IT(hi2c->hdmatx); + + /* Prevent unused argument(s) compilation and MISRA warning */ + UNUSED(dmaxferstatus); + + /* Set the unused I2C DMA transfer complete callback to NULL */ + hi2c->hdmatx->XferCpltCallback = NULL; + + /* Disable Acknowledge */ + CLEAR_BIT(hi2c->Instance->CR1, I2C_CR1_ACK); + + hi2c->XferSize = 0U; + hi2c->XferCount = 0U; + + /* Disable I2C peripheral to prevent dummy data in buffer */ + __HAL_I2C_DISABLE(hi2c); + + return HAL_ERROR; + } + + /* Clear ADDR flag */ + __HAL_I2C_CLEAR_ADDRFLAG(hi2c); + + /* Process Unlocked */ + __HAL_UNLOCK(hi2c); + + /* Note : The I2C interrupts must be enabled after unlocking current process + to avoid the risk of I2C interrupt handle execution before current + process unlock */ + /* Enable ERR interrupt */ + __HAL_I2C_ENABLE_IT(hi2c, I2C_IT_ERR); + + /* Enable DMA Request */ + SET_BIT(hi2c->Instance->CR2, I2C_CR2_DMAEN); + + return HAL_OK; + } + else + { + /* Update I2C state */ + hi2c->State = HAL_I2C_STATE_READY; + hi2c->Mode = HAL_I2C_MODE_NONE; + + /* Update I2C error code */ + hi2c->ErrorCode |= HAL_I2C_ERROR_DMA; + + /* Process Unlocked */ + __HAL_UNLOCK(hi2c); + + return HAL_ERROR; + } + } + else + { + /* Update I2C state */ + hi2c->State = HAL_I2C_STATE_READY; + hi2c->Mode = HAL_I2C_MODE_NONE; + + /* Update I2C error code */ + hi2c->ErrorCode |= HAL_I2C_ERROR_SIZE; + + /* Process Unlocked */ + __HAL_UNLOCK(hi2c); + + return HAL_ERROR; + } + } + else + { + return HAL_BUSY; + } +} + +/** + * @brief Reads an amount of data in non-blocking mode with DMA from a specific memory address. + * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains + * the configuration information for the specified I2C. + * @param DevAddress Target device address: The device 7 bits address value + * in datasheet must be shifted to the left before calling the interface + * @param MemAddress Internal memory address + * @param MemAddSize Size of internal memory address + * @param pData Pointer to data buffer + * @param Size Amount of data to be read + * @retval HAL status + */ +HAL_StatusTypeDef HAL_I2C_Mem_Read_DMA(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint16_t MemAddress, uint16_t MemAddSize, uint8_t *pData, uint16_t Size) +{ + /* Init tickstart for timeout management*/ + uint32_t tickstart = HAL_GetTick(); + __IO uint32_t count = 0U; + HAL_StatusTypeDef dmaxferstatus; + + /* Check the parameters */ + assert_param(IS_I2C_MEMADD_SIZE(MemAddSize)); + + if (hi2c->State == HAL_I2C_STATE_READY) + { + /* Wait until BUSY flag is reset */ + count = I2C_TIMEOUT_BUSY_FLAG * (SystemCoreClock / 25U / 1000U); + do + { + count--; + if (count == 0U) + { + hi2c->PreviousState = I2C_STATE_NONE; + hi2c->State = HAL_I2C_STATE_READY; + hi2c->Mode = HAL_I2C_MODE_NONE; + hi2c->ErrorCode |= HAL_I2C_ERROR_TIMEOUT; + + /* Process Unlocked */ + __HAL_UNLOCK(hi2c); + + return HAL_ERROR; + } + } + while (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_BUSY) != RESET); + + /* Process Locked */ + __HAL_LOCK(hi2c); + + /* Check if the I2C is already enabled */ + if ((hi2c->Instance->CR1 & I2C_CR1_PE) != I2C_CR1_PE) + { + /* Enable I2C peripheral */ + __HAL_I2C_ENABLE(hi2c); + } + + /* Disable Pos */ + CLEAR_BIT(hi2c->Instance->CR1, I2C_CR1_POS); + + hi2c->State = HAL_I2C_STATE_BUSY_RX; + hi2c->Mode = HAL_I2C_MODE_MEM; + hi2c->ErrorCode = HAL_I2C_ERROR_NONE; + + /* Prepare transfer parameters */ + hi2c->pBuffPtr = pData; + hi2c->XferCount = Size; + hi2c->XferSize = hi2c->XferCount; + hi2c->XferOptions = I2C_NO_OPTION_FRAME; + + if (hi2c->XferSize > 0U) + { + if (hi2c->hdmarx != NULL) + { + /* Set the I2C DMA transfer complete callback */ + hi2c->hdmarx->XferCpltCallback = I2C_DMAXferCplt; + + /* Set the DMA error callback */ + hi2c->hdmarx->XferErrorCallback = I2C_DMAError; + + /* Set the unused DMA callbacks to NULL */ + hi2c->hdmarx->XferHalfCpltCallback = NULL; + hi2c->hdmarx->XferAbortCallback = NULL; + + /* Enable the DMA channel */ + dmaxferstatus = HAL_DMA_Start_IT(hi2c->hdmarx, (uint32_t)&hi2c->Instance->DR, (uint32_t)hi2c->pBuffPtr, hi2c->XferSize); + } + else + { + /* Update I2C state */ + hi2c->State = HAL_I2C_STATE_READY; + hi2c->Mode = HAL_I2C_MODE_NONE; + + /* Update I2C error code */ + hi2c->ErrorCode |= HAL_I2C_ERROR_DMA_PARAM; + + /* Process Unlocked */ + __HAL_UNLOCK(hi2c); + + return HAL_ERROR; + } + + if (dmaxferstatus == HAL_OK) + { + /* Send Slave Address and Memory Address */ + if (I2C_RequestMemoryRead(hi2c, DevAddress, MemAddress, MemAddSize, I2C_TIMEOUT_FLAG, tickstart) != HAL_OK) + { + /* Abort the ongoing DMA */ + dmaxferstatus = HAL_DMA_Abort_IT(hi2c->hdmarx); + + /* Prevent unused argument(s) compilation and MISRA warning */ + UNUSED(dmaxferstatus); + + /* Set the unused I2C DMA transfer complete callback to NULL */ + hi2c->hdmarx->XferCpltCallback = NULL; + + /* Disable Acknowledge */ + CLEAR_BIT(hi2c->Instance->CR1, I2C_CR1_ACK); + + hi2c->XferSize = 0U; + hi2c->XferCount = 0U; + + /* Disable I2C peripheral to prevent dummy data in buffer */ + __HAL_I2C_DISABLE(hi2c); + + return HAL_ERROR; + } + + if (hi2c->XferSize == 1U) + { + /* Disable Acknowledge */ + CLEAR_BIT(hi2c->Instance->CR1, I2C_CR1_ACK); + } + else + { + /* Enable Last DMA bit */ + SET_BIT(hi2c->Instance->CR2, I2C_CR2_LAST); + } + + /* Clear ADDR flag */ + __HAL_I2C_CLEAR_ADDRFLAG(hi2c); + + /* Process Unlocked */ + __HAL_UNLOCK(hi2c); + + /* Note : The I2C interrupts must be enabled after unlocking current process + to avoid the risk of I2C interrupt handle execution before current + process unlock */ + /* Enable ERR interrupt */ + __HAL_I2C_ENABLE_IT(hi2c, I2C_IT_ERR); + + /* Enable DMA Request */ + hi2c->Instance->CR2 |= I2C_CR2_DMAEN; + } + else + { + /* Update I2C state */ + hi2c->State = HAL_I2C_STATE_READY; + hi2c->Mode = HAL_I2C_MODE_NONE; + + /* Update I2C error code */ + hi2c->ErrorCode |= HAL_I2C_ERROR_DMA; + + /* Process Unlocked */ + __HAL_UNLOCK(hi2c); + + return HAL_ERROR; + } + } + else + { + /* Send Slave Address and Memory Address */ + if (I2C_RequestMemoryRead(hi2c, DevAddress, MemAddress, MemAddSize, I2C_TIMEOUT_FLAG, tickstart) != HAL_OK) + { + return HAL_ERROR; + } + + /* Clear ADDR flag */ + __HAL_I2C_CLEAR_ADDRFLAG(hi2c); + + /* Generate Stop */ + SET_BIT(hi2c->Instance->CR1, I2C_CR1_STOP); + + hi2c->State = HAL_I2C_STATE_READY; + + /* Process Unlocked */ + __HAL_UNLOCK(hi2c); + } + + return HAL_OK; + } + else + { + return HAL_BUSY; + } +} + +/** + * @brief Checks if target device is ready for communication. + * @note This function is used with Memory devices + * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains + * the configuration information for the specified I2C. + * @param DevAddress Target device address: The device 7 bits address value + * in datasheet must be shifted to the left before calling the interface + * @param Trials Number of trials + * @param Timeout Timeout duration + * @retval HAL status + */ +HAL_StatusTypeDef HAL_I2C_IsDeviceReady(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint32_t Trials, uint32_t Timeout) +{ + /* Get tick */ + uint32_t tickstart = HAL_GetTick(); + uint32_t I2C_Trials = 1U; + FlagStatus tmp1; + FlagStatus tmp2; + + if (hi2c->State == HAL_I2C_STATE_READY) + { + /* Wait until BUSY flag is reset */ + if (I2C_WaitOnFlagUntilTimeout(hi2c, I2C_FLAG_BUSY, SET, I2C_TIMEOUT_BUSY_FLAG, tickstart) != HAL_OK) + { + return HAL_BUSY; + } + + /* Process Locked */ + __HAL_LOCK(hi2c); + + /* Check if the I2C is already enabled */ + if ((hi2c->Instance->CR1 & I2C_CR1_PE) != I2C_CR1_PE) + { + /* Enable I2C peripheral */ + __HAL_I2C_ENABLE(hi2c); + } + + /* Disable Pos */ + CLEAR_BIT(hi2c->Instance->CR1, I2C_CR1_POS); + + hi2c->State = HAL_I2C_STATE_BUSY; + hi2c->ErrorCode = HAL_I2C_ERROR_NONE; + hi2c->XferOptions = I2C_NO_OPTION_FRAME; + + do + { + /* Generate Start */ + SET_BIT(hi2c->Instance->CR1, I2C_CR1_START); + + /* Wait until SB flag is set */ + if (I2C_WaitOnFlagUntilTimeout(hi2c, I2C_FLAG_SB, RESET, Timeout, tickstart) != HAL_OK) + { + if (READ_BIT(hi2c->Instance->CR1, I2C_CR1_START) == I2C_CR1_START) + { + hi2c->ErrorCode = HAL_I2C_WRONG_START; + } + return HAL_TIMEOUT; + } + + /* Send slave address */ + hi2c->Instance->DR = I2C_7BIT_ADD_WRITE(DevAddress); + + /* Wait until ADDR or AF flag are set */ + /* Get tick */ + tickstart = HAL_GetTick(); + + tmp1 = __HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_ADDR); + tmp2 = __HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_AF); + while ((hi2c->State != HAL_I2C_STATE_TIMEOUT) && (tmp1 == RESET) && (tmp2 == RESET)) + { + if (((HAL_GetTick() - tickstart) > Timeout) || (Timeout == 0U)) + { + hi2c->State = HAL_I2C_STATE_TIMEOUT; + } + tmp1 = __HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_ADDR); + tmp2 = __HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_AF); + } + + hi2c->State = HAL_I2C_STATE_READY; + + /* Check if the ADDR flag has been set */ + if (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_ADDR) == SET) + { + /* Generate Stop */ + SET_BIT(hi2c->Instance->CR1, I2C_CR1_STOP); + + /* Clear ADDR Flag */ + __HAL_I2C_CLEAR_ADDRFLAG(hi2c); + + /* Wait until BUSY flag is reset */ + if (I2C_WaitOnFlagUntilTimeout(hi2c, I2C_FLAG_BUSY, SET, I2C_TIMEOUT_BUSY_FLAG, tickstart) != HAL_OK) + { + return HAL_ERROR; + } + + hi2c->State = HAL_I2C_STATE_READY; + + /* Process Unlocked */ + __HAL_UNLOCK(hi2c); + + return HAL_OK; + } + else + { + /* Generate Stop */ + SET_BIT(hi2c->Instance->CR1, I2C_CR1_STOP); + + /* Clear AF Flag */ + __HAL_I2C_CLEAR_FLAG(hi2c, I2C_FLAG_AF); + + /* Wait until BUSY flag is reset */ + if (I2C_WaitOnFlagUntilTimeout(hi2c, I2C_FLAG_BUSY, SET, I2C_TIMEOUT_BUSY_FLAG, tickstart) != HAL_OK) + { + return HAL_ERROR; + } + } + + /* Increment Trials */ + I2C_Trials++; + } + while (I2C_Trials < Trials); + + hi2c->State = HAL_I2C_STATE_READY; + + /* Process Unlocked */ + __HAL_UNLOCK(hi2c); + + return HAL_ERROR; + } + else + { + return HAL_BUSY; + } +} + +/** + * @brief Sequential transmit in master I2C mode an amount of data in non-blocking mode with Interrupt. + * @note This interface allow to manage repeated start condition when a direction change during transfer + * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains + * the configuration information for the specified I2C. + * @param DevAddress Target device address: The device 7 bits address value + * in datasheet must be shifted to the left before calling the interface + * @param pData Pointer to data buffer + * @param Size Amount of data to be sent + * @param XferOptions Options of Transfer, value of @ref I2C_XferOptions_definition + * @retval HAL status + */ +HAL_StatusTypeDef HAL_I2C_Master_Seq_Transmit_IT(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint8_t *pData, uint16_t Size, uint32_t XferOptions) +{ + __IO uint32_t Prev_State = 0x00U; + __IO uint32_t count = 0x00U; + + /* Check the parameters */ + assert_param(IS_I2C_TRANSFER_OPTIONS_REQUEST(XferOptions)); + + if (hi2c->State == HAL_I2C_STATE_READY) + { + /* Check Busy Flag only if FIRST call of Master interface */ + if ((READ_BIT(hi2c->Instance->CR1, I2C_CR1_STOP) == I2C_CR1_STOP) || (XferOptions == I2C_FIRST_AND_LAST_FRAME) || (XferOptions == I2C_FIRST_FRAME)) + { + /* Wait until BUSY flag is reset */ + count = I2C_TIMEOUT_BUSY_FLAG * (SystemCoreClock / 25U / 1000U); + do + { + count--; + if (count == 0U) + { + hi2c->PreviousState = I2C_STATE_NONE; + hi2c->State = HAL_I2C_STATE_READY; + hi2c->Mode = HAL_I2C_MODE_NONE; + hi2c->ErrorCode |= HAL_I2C_ERROR_TIMEOUT; + + /* Process Unlocked */ + __HAL_UNLOCK(hi2c); + + return HAL_ERROR; + } + } + while (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_BUSY) != RESET); + } + + /* Process Locked */ + __HAL_LOCK(hi2c); + + /* Check if the I2C is already enabled */ + if ((hi2c->Instance->CR1 & I2C_CR1_PE) != I2C_CR1_PE) + { + /* Enable I2C peripheral */ + __HAL_I2C_ENABLE(hi2c); + } + + /* Disable Pos */ + CLEAR_BIT(hi2c->Instance->CR1, I2C_CR1_POS); + + hi2c->State = HAL_I2C_STATE_BUSY_TX; + hi2c->Mode = HAL_I2C_MODE_MASTER; + hi2c->ErrorCode = HAL_I2C_ERROR_NONE; + + /* Prepare transfer parameters */ + hi2c->pBuffPtr = pData; + hi2c->XferCount = Size; + hi2c->XferSize = hi2c->XferCount; + hi2c->XferOptions = XferOptions; + hi2c->Devaddress = DevAddress; + + Prev_State = hi2c->PreviousState; + + /* If transfer direction not change and there is no request to start another frame, do not generate Restart Condition */ + /* Mean Previous state is same as current state */ + if ((Prev_State != I2C_STATE_MASTER_BUSY_TX) || (IS_I2C_TRANSFER_OTHER_OPTIONS_REQUEST(XferOptions) == 1)) + { + /* Generate Start */ + SET_BIT(hi2c->Instance->CR1, I2C_CR1_START); + } + + /* Process Unlocked */ + __HAL_UNLOCK(hi2c); + + /* Note : The I2C interrupts must be enabled after unlocking current process + to avoid the risk of I2C interrupt handle execution before current + process unlock */ + + /* Enable EVT, BUF and ERR interrupt */ + __HAL_I2C_ENABLE_IT(hi2c, I2C_IT_EVT | I2C_IT_BUF | I2C_IT_ERR); + + return HAL_OK; + } + else + { + return HAL_BUSY; + } +} + +/** + * @brief Sequential transmit in master I2C mode an amount of data in non-blocking mode with DMA. + * @note This interface allow to manage repeated start condition when a direction change during transfer + * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains + * the configuration information for the specified I2C. + * @param DevAddress Target device address: The device 7 bits address value + * in datasheet must be shifted to the left before calling the interface + * @param pData Pointer to data buffer + * @param Size Amount of data to be sent + * @param XferOptions Options of Transfer, value of @ref I2C_XferOptions_definition + * @retval HAL status + */ +HAL_StatusTypeDef HAL_I2C_Master_Seq_Transmit_DMA(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint8_t *pData, uint16_t Size, uint32_t XferOptions) +{ + __IO uint32_t Prev_State = 0x00U; + __IO uint32_t count = 0x00U; + HAL_StatusTypeDef dmaxferstatus; + + /* Check the parameters */ + assert_param(IS_I2C_TRANSFER_OPTIONS_REQUEST(XferOptions)); + + if (hi2c->State == HAL_I2C_STATE_READY) + { + /* Check Busy Flag only if FIRST call of Master interface */ + if ((READ_BIT(hi2c->Instance->CR1, I2C_CR1_STOP) == I2C_CR1_STOP) || (XferOptions == I2C_FIRST_AND_LAST_FRAME) || (XferOptions == I2C_FIRST_FRAME)) + { + /* Wait until BUSY flag is reset */ + count = I2C_TIMEOUT_BUSY_FLAG * (SystemCoreClock / 25U / 1000U); + do + { + count--; + if (count == 0U) + { + hi2c->PreviousState = I2C_STATE_NONE; + hi2c->State = HAL_I2C_STATE_READY; + hi2c->Mode = HAL_I2C_MODE_NONE; + hi2c->ErrorCode |= HAL_I2C_ERROR_TIMEOUT; + + /* Process Unlocked */ + __HAL_UNLOCK(hi2c); + + return HAL_ERROR; + } + } + while (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_BUSY) != RESET); + } + + /* Process Locked */ + __HAL_LOCK(hi2c); + + /* Check if the I2C is already enabled */ + if ((hi2c->Instance->CR1 & I2C_CR1_PE) != I2C_CR1_PE) + { + /* Enable I2C peripheral */ + __HAL_I2C_ENABLE(hi2c); + } + + /* Disable Pos */ + CLEAR_BIT(hi2c->Instance->CR1, I2C_CR1_POS); + + hi2c->State = HAL_I2C_STATE_BUSY_TX; + hi2c->Mode = HAL_I2C_MODE_MASTER; + hi2c->ErrorCode = HAL_I2C_ERROR_NONE; + + /* Prepare transfer parameters */ + hi2c->pBuffPtr = pData; + hi2c->XferCount = Size; + hi2c->XferSize = hi2c->XferCount; + hi2c->XferOptions = XferOptions; + hi2c->Devaddress = DevAddress; + + Prev_State = hi2c->PreviousState; + + if (hi2c->XferSize > 0U) + { + if (hi2c->hdmatx != NULL) + { + /* Set the I2C DMA transfer complete callback */ + hi2c->hdmatx->XferCpltCallback = I2C_DMAXferCplt; + + /* Set the DMA error callback */ + hi2c->hdmatx->XferErrorCallback = I2C_DMAError; + + /* Set the unused DMA callbacks to NULL */ + hi2c->hdmatx->XferHalfCpltCallback = NULL; + hi2c->hdmatx->XferAbortCallback = NULL; + + /* Enable the DMA channel */ + dmaxferstatus = HAL_DMA_Start_IT(hi2c->hdmatx, (uint32_t)hi2c->pBuffPtr, (uint32_t)&hi2c->Instance->DR, hi2c->XferSize); + } + else + { + /* Update I2C state */ + hi2c->State = HAL_I2C_STATE_READY; + hi2c->Mode = HAL_I2C_MODE_NONE; + + /* Update I2C error code */ + hi2c->ErrorCode |= HAL_I2C_ERROR_DMA_PARAM; + + /* Process Unlocked */ + __HAL_UNLOCK(hi2c); + + return HAL_ERROR; + } + + if (dmaxferstatus == HAL_OK) + { + /* Enable Acknowledge */ + SET_BIT(hi2c->Instance->CR1, I2C_CR1_ACK); + + /* If transfer direction not change and there is no request to start another frame, do not generate Restart Condition */ + /* Mean Previous state is same as current state */ + if ((Prev_State != I2C_STATE_MASTER_BUSY_TX) || (IS_I2C_TRANSFER_OTHER_OPTIONS_REQUEST(XferOptions) == 1)) + { + /* Generate Start */ + SET_BIT(hi2c->Instance->CR1, I2C_CR1_START); + } + + /* Process Unlocked */ + __HAL_UNLOCK(hi2c); + + /* Note : The I2C interrupts must be enabled after unlocking current process + to avoid the risk of I2C interrupt handle execution before current + process unlock */ + + /* If XferOptions is not associated to a new frame, mean no start bit is request, enable directly the DMA request */ + /* In other cases, DMA request is enabled after Slave address treatment in IRQHandler */ + if ((XferOptions == I2C_NEXT_FRAME) || (XferOptions == I2C_LAST_FRAME) || (XferOptions == I2C_LAST_FRAME_NO_STOP)) + { + /* Enable DMA Request */ + SET_BIT(hi2c->Instance->CR2, I2C_CR2_DMAEN); + } + + /* Enable EVT and ERR interrupt */ + __HAL_I2C_ENABLE_IT(hi2c, I2C_IT_EVT | I2C_IT_ERR); + } + else + { + /* Update I2C state */ + hi2c->State = HAL_I2C_STATE_READY; + hi2c->Mode = HAL_I2C_MODE_NONE; + + /* Update I2C error code */ + hi2c->ErrorCode |= HAL_I2C_ERROR_DMA; + + /* Process Unlocked */ + __HAL_UNLOCK(hi2c); + + return HAL_ERROR; + } + } + else + { + /* Enable Acknowledge */ + SET_BIT(hi2c->Instance->CR1, I2C_CR1_ACK); + + /* If transfer direction not change and there is no request to start another frame, do not generate Restart Condition */ + /* Mean Previous state is same as current state */ + if ((Prev_State != I2C_STATE_MASTER_BUSY_TX) || (IS_I2C_TRANSFER_OTHER_OPTIONS_REQUEST(XferOptions) == 1)) + { + /* Generate Start */ + SET_BIT(hi2c->Instance->CR1, I2C_CR1_START); + } + + /* Process Unlocked */ + __HAL_UNLOCK(hi2c); + + /* Note : The I2C interrupts must be enabled after unlocking current process + to avoid the risk of I2C interrupt handle execution before current + process unlock */ + + /* Enable EVT, BUF and ERR interrupt */ + __HAL_I2C_ENABLE_IT(hi2c, I2C_IT_EVT | I2C_IT_BUF | I2C_IT_ERR); + } + + return HAL_OK; + } + else + { + return HAL_BUSY; + } +} + +/** + * @brief Sequential receive in master I2C mode an amount of data in non-blocking mode with Interrupt + * @note This interface allow to manage repeated start condition when a direction change during transfer + * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains + * the configuration information for the specified I2C. + * @param DevAddress Target device address: The device 7 bits address value + * in datasheet must be shifted to the left before calling the interface + * @param pData Pointer to data buffer + * @param Size Amount of data to be sent + * @param XferOptions Options of Transfer, value of @ref I2C_XferOptions_definition + * @retval HAL status + */ +HAL_StatusTypeDef HAL_I2C_Master_Seq_Receive_IT(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint8_t *pData, uint16_t Size, uint32_t XferOptions) +{ + __IO uint32_t Prev_State = 0x00U; + __IO uint32_t count = 0U; + uint32_t enableIT = (I2C_IT_EVT | I2C_IT_BUF | I2C_IT_ERR); + + /* Check the parameters */ + assert_param(IS_I2C_TRANSFER_OPTIONS_REQUEST(XferOptions)); + + if (hi2c->State == HAL_I2C_STATE_READY) + { + /* Check Busy Flag only if FIRST call of Master interface */ + if ((READ_BIT(hi2c->Instance->CR1, I2C_CR1_STOP) == I2C_CR1_STOP) || (XferOptions == I2C_FIRST_AND_LAST_FRAME) || (XferOptions == I2C_FIRST_FRAME)) + { + /* Wait until BUSY flag is reset */ + count = I2C_TIMEOUT_BUSY_FLAG * (SystemCoreClock / 25U / 1000U); + do + { + count--; + if (count == 0U) + { + hi2c->PreviousState = I2C_STATE_NONE; + hi2c->State = HAL_I2C_STATE_READY; + hi2c->Mode = HAL_I2C_MODE_NONE; + hi2c->ErrorCode |= HAL_I2C_ERROR_TIMEOUT; + + /* Process Unlocked */ + __HAL_UNLOCK(hi2c); + + return HAL_ERROR; + } + } + while (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_BUSY) != RESET); + } + + /* Process Locked */ + __HAL_LOCK(hi2c); + + /* Check if the I2C is already enabled */ + if ((hi2c->Instance->CR1 & I2C_CR1_PE) != I2C_CR1_PE) + { + /* Enable I2C peripheral */ + __HAL_I2C_ENABLE(hi2c); + } + + /* Disable Pos */ + CLEAR_BIT(hi2c->Instance->CR1, I2C_CR1_POS); + + hi2c->State = HAL_I2C_STATE_BUSY_RX; + hi2c->Mode = HAL_I2C_MODE_MASTER; + hi2c->ErrorCode = HAL_I2C_ERROR_NONE; + + /* Prepare transfer parameters */ + hi2c->pBuffPtr = pData; + hi2c->XferCount = Size; + hi2c->XferSize = hi2c->XferCount; + hi2c->XferOptions = XferOptions; + hi2c->Devaddress = DevAddress; + + Prev_State = hi2c->PreviousState; + + if ((hi2c->XferCount == 2U) && ((XferOptions == I2C_LAST_FRAME) || (XferOptions == I2C_LAST_FRAME_NO_STOP))) + { + if (Prev_State == I2C_STATE_MASTER_BUSY_RX) + { + /* Disable Acknowledge */ + CLEAR_BIT(hi2c->Instance->CR1, I2C_CR1_ACK); + + /* Enable Pos */ + SET_BIT(hi2c->Instance->CR1, I2C_CR1_POS); + + /* Remove Enabling of IT_BUF, mean RXNE treatment, treat the 2 bytes through BTF */ + enableIT &= ~I2C_IT_BUF; + } + else + { + /* Enable Acknowledge */ + SET_BIT(hi2c->Instance->CR1, I2C_CR1_ACK); + } + } + else + { + /* Enable Acknowledge */ + SET_BIT(hi2c->Instance->CR1, I2C_CR1_ACK); + } + + /* If transfer direction not change and there is no request to start another frame, do not generate Restart Condition */ + /* Mean Previous state is same as current state */ + if ((Prev_State != I2C_STATE_MASTER_BUSY_RX) || (IS_I2C_TRANSFER_OTHER_OPTIONS_REQUEST(XferOptions) == 1)) + { + /* Generate Start */ + SET_BIT(hi2c->Instance->CR1, I2C_CR1_START); + } + + /* Process Unlocked */ + __HAL_UNLOCK(hi2c); + + /* Note : The I2C interrupts must be enabled after unlocking current process + to avoid the risk of I2C interrupt handle execution before current + process unlock */ + + /* Enable interrupts */ + __HAL_I2C_ENABLE_IT(hi2c, enableIT); + + return HAL_OK; + } + else + { + return HAL_BUSY; + } +} + +/** + * @brief Sequential receive in master mode an amount of data in non-blocking mode with DMA + * @note This interface allow to manage repeated start condition when a direction change during transfer + * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains + * the configuration information for the specified I2C. + * @param DevAddress Target device address: The device 7 bits address value + * in datasheet must be shifted to the left before calling the interface + * @param pData Pointer to data buffer + * @param Size Amount of data to be sent + * @param XferOptions Options of Transfer, value of @ref I2C_XferOptions_definition + * @retval HAL status + */ +HAL_StatusTypeDef HAL_I2C_Master_Seq_Receive_DMA(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint8_t *pData, uint16_t Size, uint32_t XferOptions) +{ + __IO uint32_t Prev_State = 0x00U; + __IO uint32_t count = 0U; + uint32_t enableIT = (I2C_IT_EVT | I2C_IT_BUF | I2C_IT_ERR); + HAL_StatusTypeDef dmaxferstatus; + + /* Check the parameters */ + assert_param(IS_I2C_TRANSFER_OPTIONS_REQUEST(XferOptions)); + + if (hi2c->State == HAL_I2C_STATE_READY) + { + /* Check Busy Flag only if FIRST call of Master interface */ + if ((READ_BIT(hi2c->Instance->CR1, I2C_CR1_STOP) == I2C_CR1_STOP) || (XferOptions == I2C_FIRST_AND_LAST_FRAME) || (XferOptions == I2C_FIRST_FRAME)) + { + /* Wait until BUSY flag is reset */ + count = I2C_TIMEOUT_BUSY_FLAG * (SystemCoreClock / 25U / 1000U); + do + { + count--; + if (count == 0U) + { + hi2c->PreviousState = I2C_STATE_NONE; + hi2c->State = HAL_I2C_STATE_READY; + hi2c->Mode = HAL_I2C_MODE_NONE; + hi2c->ErrorCode |= HAL_I2C_ERROR_TIMEOUT; + + /* Process Unlocked */ + __HAL_UNLOCK(hi2c); + + return HAL_ERROR; + } + } + while (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_BUSY) != RESET); + } + + /* Process Locked */ + __HAL_LOCK(hi2c); + + /* Check if the I2C is already enabled */ + if ((hi2c->Instance->CR1 & I2C_CR1_PE) != I2C_CR1_PE) + { + /* Enable I2C peripheral */ + __HAL_I2C_ENABLE(hi2c); + } + + /* Disable Pos */ + CLEAR_BIT(hi2c->Instance->CR1, I2C_CR1_POS); + + /* Clear Last DMA bit */ + CLEAR_BIT(hi2c->Instance->CR2, I2C_CR2_LAST); + + hi2c->State = HAL_I2C_STATE_BUSY_RX; + hi2c->Mode = HAL_I2C_MODE_MASTER; + hi2c->ErrorCode = HAL_I2C_ERROR_NONE; + + /* Prepare transfer parameters */ + hi2c->pBuffPtr = pData; + hi2c->XferCount = Size; + hi2c->XferSize = hi2c->XferCount; + hi2c->XferOptions = XferOptions; + hi2c->Devaddress = DevAddress; + + Prev_State = hi2c->PreviousState; + + if (hi2c->XferSize > 0U) + { + if ((hi2c->XferCount == 2U) && ((XferOptions == I2C_LAST_FRAME) || (XferOptions == I2C_LAST_FRAME_NO_STOP))) + { + if (Prev_State == I2C_STATE_MASTER_BUSY_RX) + { + /* Disable Acknowledge */ + CLEAR_BIT(hi2c->Instance->CR1, I2C_CR1_ACK); + + /* Enable Pos */ + SET_BIT(hi2c->Instance->CR1, I2C_CR1_POS); + + /* Enable Last DMA bit */ + SET_BIT(hi2c->Instance->CR2, I2C_CR2_LAST); + } + else + { + /* Enable Acknowledge */ + SET_BIT(hi2c->Instance->CR1, I2C_CR1_ACK); + } + } + else + { + /* Enable Acknowledge */ + SET_BIT(hi2c->Instance->CR1, I2C_CR1_ACK); + + if ((XferOptions == I2C_LAST_FRAME) || (XferOptions == I2C_OTHER_AND_LAST_FRAME) || (XferOptions == I2C_LAST_FRAME_NO_STOP)) + { + /* Enable Last DMA bit */ + SET_BIT(hi2c->Instance->CR2, I2C_CR2_LAST); + } + } + if (hi2c->hdmarx != NULL) + { + /* Set the I2C DMA transfer complete callback */ + hi2c->hdmarx->XferCpltCallback = I2C_DMAXferCplt; + + /* Set the DMA error callback */ + hi2c->hdmarx->XferErrorCallback = I2C_DMAError; + + /* Set the unused DMA callbacks to NULL */ + hi2c->hdmarx->XferHalfCpltCallback = NULL; + hi2c->hdmarx->XferAbortCallback = NULL; + + /* Enable the DMA channel */ + dmaxferstatus = HAL_DMA_Start_IT(hi2c->hdmarx, (uint32_t)&hi2c->Instance->DR, (uint32_t)hi2c->pBuffPtr, hi2c->XferSize); + } + else + { + /* Update I2C state */ + hi2c->State = HAL_I2C_STATE_READY; + hi2c->Mode = HAL_I2C_MODE_NONE; + + /* Update I2C error code */ + hi2c->ErrorCode |= HAL_I2C_ERROR_DMA_PARAM; + + /* Process Unlocked */ + __HAL_UNLOCK(hi2c); + + return HAL_ERROR; + } + if (dmaxferstatus == HAL_OK) + { + /* If transfer direction not change and there is no request to start another frame, do not generate Restart Condition */ + /* Mean Previous state is same as current state */ + if ((Prev_State != I2C_STATE_MASTER_BUSY_RX) || (IS_I2C_TRANSFER_OTHER_OPTIONS_REQUEST(XferOptions) == 1)) + { + /* Generate Start */ + SET_BIT(hi2c->Instance->CR1, I2C_CR1_START); + + /* Update interrupt for only EVT and ERR */ + enableIT = (I2C_IT_EVT | I2C_IT_ERR); + } + else + { + /* Update interrupt for only ERR */ + enableIT = I2C_IT_ERR; + } + + /* Process Unlocked */ + __HAL_UNLOCK(hi2c); + + /* Note : The I2C interrupts must be enabled after unlocking current process + to avoid the risk of I2C interrupt handle execution before current + process unlock */ + + /* If XferOptions is not associated to a new frame, mean no start bit is request, enable directly the DMA request */ + /* In other cases, DMA request is enabled after Slave address treatment in IRQHandler */ + if ((XferOptions == I2C_NEXT_FRAME) || (XferOptions == I2C_LAST_FRAME) || (XferOptions == I2C_LAST_FRAME_NO_STOP)) + { + /* Enable DMA Request */ + SET_BIT(hi2c->Instance->CR2, I2C_CR2_DMAEN); + } + + /* Enable EVT and ERR interrupt */ + __HAL_I2C_ENABLE_IT(hi2c, enableIT); + } + else + { + /* Update I2C state */ + hi2c->State = HAL_I2C_STATE_READY; + hi2c->Mode = HAL_I2C_MODE_NONE; + + /* Update I2C error code */ + hi2c->ErrorCode |= HAL_I2C_ERROR_DMA; + + /* Process Unlocked */ + __HAL_UNLOCK(hi2c); + + return HAL_ERROR; + } + } + else + { + /* Enable Acknowledge */ + SET_BIT(hi2c->Instance->CR1, I2C_CR1_ACK); + + /* If transfer direction not change and there is no request to start another frame, do not generate Restart Condition */ + /* Mean Previous state is same as current state */ + if ((Prev_State != I2C_STATE_MASTER_BUSY_RX) || (IS_I2C_TRANSFER_OTHER_OPTIONS_REQUEST(XferOptions) == 1)) + { + /* Generate Start */ + SET_BIT(hi2c->Instance->CR1, I2C_CR1_START); + } + + /* Process Unlocked */ + __HAL_UNLOCK(hi2c); + + /* Note : The I2C interrupts must be enabled after unlocking current process + to avoid the risk of I2C interrupt handle execution before current + process unlock */ + + /* Enable interrupts */ + __HAL_I2C_ENABLE_IT(hi2c, enableIT); + } + return HAL_OK; + } + else + { + return HAL_BUSY; + } +} + +/** + * @brief Sequential transmit in slave mode an amount of data in non-blocking mode with Interrupt + * @note This interface allow to manage repeated start condition when a direction change during transfer + * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains + * the configuration information for the specified I2C. + * @param pData Pointer to data buffer + * @param Size Amount of data to be sent + * @param XferOptions Options of Transfer, value of @ref I2C_XferOptions_definition + * @retval HAL status + */ +HAL_StatusTypeDef HAL_I2C_Slave_Seq_Transmit_IT(I2C_HandleTypeDef *hi2c, uint8_t *pData, uint16_t Size, uint32_t XferOptions) +{ + /* Check the parameters */ + assert_param(IS_I2C_TRANSFER_OPTIONS_REQUEST(XferOptions)); + + if (((uint32_t)hi2c->State & (uint32_t)HAL_I2C_STATE_LISTEN) == (uint32_t)HAL_I2C_STATE_LISTEN) + { + if ((pData == NULL) || (Size == 0U)) + { + return HAL_ERROR; + } + + /* Process Locked */ + __HAL_LOCK(hi2c); + + /* Check if the I2C is already enabled */ + if ((hi2c->Instance->CR1 & I2C_CR1_PE) != I2C_CR1_PE) + { + /* Enable I2C peripheral */ + __HAL_I2C_ENABLE(hi2c); + } + + /* Disable Pos */ + CLEAR_BIT(hi2c->Instance->CR1, I2C_CR1_POS); + + hi2c->State = HAL_I2C_STATE_BUSY_TX_LISTEN; + hi2c->Mode = HAL_I2C_MODE_SLAVE; + hi2c->ErrorCode = HAL_I2C_ERROR_NONE; + + /* Prepare transfer parameters */ + hi2c->pBuffPtr = pData; + hi2c->XferCount = Size; + hi2c->XferSize = hi2c->XferCount; + hi2c->XferOptions = XferOptions; + + /* Clear ADDR flag */ + __HAL_I2C_CLEAR_ADDRFLAG(hi2c); + + /* Process Unlocked */ + __HAL_UNLOCK(hi2c); + + /* Note : The I2C interrupts must be enabled after unlocking current process + to avoid the risk of I2C interrupt handle execution before current + process unlock */ + + /* Enable EVT, BUF and ERR interrupt */ + __HAL_I2C_ENABLE_IT(hi2c, I2C_IT_EVT | I2C_IT_BUF | I2C_IT_ERR); + + return HAL_OK; + } + else + { + return HAL_BUSY; + } +} + +/** + * @brief Sequential transmit in slave mode an amount of data in non-blocking mode with DMA + * @note This interface allow to manage repeated start condition when a direction change during transfer + * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains + * the configuration information for the specified I2C. + * @param pData Pointer to data buffer + * @param Size Amount of data to be sent + * @param XferOptions Options of Transfer, value of @ref I2C_XferOptions_definition + * @retval HAL status + */ +HAL_StatusTypeDef HAL_I2C_Slave_Seq_Transmit_DMA(I2C_HandleTypeDef *hi2c, uint8_t *pData, uint16_t Size, uint32_t XferOptions) +{ + HAL_StatusTypeDef dmaxferstatus; + + /* Check the parameters */ + assert_param(IS_I2C_TRANSFER_OPTIONS_REQUEST(XferOptions)); + + if (((uint32_t)hi2c->State & (uint32_t)HAL_I2C_STATE_LISTEN) == (uint32_t)HAL_I2C_STATE_LISTEN) + { + if ((pData == NULL) || (Size == 0U)) + { + return HAL_ERROR; + } + + /* Process Locked */ + __HAL_LOCK(hi2c); + + /* Disable Interrupts, to prevent preemption during treatment in case of multicall */ + __HAL_I2C_DISABLE_IT(hi2c, I2C_IT_EVT | I2C_IT_ERR); + + /* I2C cannot manage full duplex exchange so disable previous IT enabled if any */ + /* and then toggle the HAL slave RX state to TX state */ + if (hi2c->State == HAL_I2C_STATE_BUSY_RX_LISTEN) + { + if ((hi2c->Instance->CR2 & I2C_CR2_DMAEN) == I2C_CR2_DMAEN) + { + /* Abort DMA Xfer if any */ + if (hi2c->hdmarx != NULL) + { + CLEAR_BIT(hi2c->Instance->CR2, I2C_CR2_DMAEN); + + /* Set the I2C DMA Abort callback : + will lead to call HAL_I2C_ErrorCallback() at end of DMA abort procedure */ + hi2c->hdmarx->XferAbortCallback = I2C_DMAAbort; + + /* Abort DMA RX */ + if (HAL_DMA_Abort_IT(hi2c->hdmarx) != HAL_OK) + { + /* Call Directly XferAbortCallback function in case of error */ + hi2c->hdmarx->XferAbortCallback(hi2c->hdmarx); + } + } + } + } + else if (hi2c->State == HAL_I2C_STATE_BUSY_TX_LISTEN) + { + if ((hi2c->Instance->CR2 & I2C_CR2_DMAEN) == I2C_CR2_DMAEN) + { + CLEAR_BIT(hi2c->Instance->CR2, I2C_CR2_DMAEN); + + /* Abort DMA Xfer if any */ + if (hi2c->hdmatx != NULL) + { + /* Set the I2C DMA Abort callback : + will lead to call HAL_I2C_ErrorCallback() at end of DMA abort procedure */ + hi2c->hdmatx->XferAbortCallback = I2C_DMAAbort; + + /* Abort DMA TX */ + if (HAL_DMA_Abort_IT(hi2c->hdmatx) != HAL_OK) + { + /* Call Directly XferAbortCallback function in case of error */ + hi2c->hdmatx->XferAbortCallback(hi2c->hdmatx); + } + } + } + } + else + { + /* Nothing to do */ + } + + /* Check if the I2C is already enabled */ + if ((hi2c->Instance->CR1 & I2C_CR1_PE) != I2C_CR1_PE) + { + /* Enable I2C peripheral */ + __HAL_I2C_ENABLE(hi2c); + } + + /* Disable Pos */ + CLEAR_BIT(hi2c->Instance->CR1, I2C_CR1_POS); + + hi2c->State = HAL_I2C_STATE_BUSY_TX_LISTEN; + hi2c->Mode = HAL_I2C_MODE_SLAVE; + hi2c->ErrorCode = HAL_I2C_ERROR_NONE; + + /* Prepare transfer parameters */ + hi2c->pBuffPtr = pData; + hi2c->XferCount = Size; + hi2c->XferSize = hi2c->XferCount; + hi2c->XferOptions = XferOptions; + + if (hi2c->hdmatx != NULL) + { + /* Set the I2C DMA transfer complete callback */ + hi2c->hdmatx->XferCpltCallback = I2C_DMAXferCplt; + + /* Set the DMA error callback */ + hi2c->hdmatx->XferErrorCallback = I2C_DMAError; + + /* Set the unused DMA callbacks to NULL */ + hi2c->hdmatx->XferHalfCpltCallback = NULL; + hi2c->hdmatx->XferAbortCallback = NULL; + + /* Enable the DMA channel */ + dmaxferstatus = HAL_DMA_Start_IT(hi2c->hdmatx, (uint32_t)hi2c->pBuffPtr, (uint32_t)&hi2c->Instance->DR, hi2c->XferSize); + } + else + { + /* Update I2C state */ + hi2c->State = HAL_I2C_STATE_LISTEN; + hi2c->Mode = HAL_I2C_MODE_NONE; + + /* Update I2C error code */ + hi2c->ErrorCode |= HAL_I2C_ERROR_DMA_PARAM; + + /* Process Unlocked */ + __HAL_UNLOCK(hi2c); + + return HAL_ERROR; + } + + if (dmaxferstatus == HAL_OK) + { + /* Enable Address Acknowledge */ + SET_BIT(hi2c->Instance->CR1, I2C_CR1_ACK); + + /* Clear ADDR flag */ + __HAL_I2C_CLEAR_ADDRFLAG(hi2c); + + /* Process Unlocked */ + __HAL_UNLOCK(hi2c); + + /* Note : The I2C interrupts must be enabled after unlocking current process + to avoid the risk of I2C interrupt handle execution before current + process unlock */ + /* Enable EVT and ERR interrupt */ + __HAL_I2C_ENABLE_IT(hi2c, I2C_IT_EVT | I2C_IT_ERR); + + /* Enable DMA Request */ + hi2c->Instance->CR2 |= I2C_CR2_DMAEN; + + return HAL_OK; + } + else + { + /* Update I2C state */ + hi2c->State = HAL_I2C_STATE_READY; + hi2c->Mode = HAL_I2C_MODE_NONE; + + /* Update I2C error code */ + hi2c->ErrorCode |= HAL_I2C_ERROR_DMA; + + /* Process Unlocked */ + __HAL_UNLOCK(hi2c); + + return HAL_ERROR; + } + } + else + { + return HAL_BUSY; + } +} + +/** + * @brief Sequential receive in slave mode an amount of data in non-blocking mode with Interrupt + * @note This interface allow to manage repeated start condition when a direction change during transfer + * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains + * the configuration information for the specified I2C. + * @param pData Pointer to data buffer + * @param Size Amount of data to be sent + * @param XferOptions Options of Transfer, value of @ref I2C_XferOptions_definition + * @retval HAL status + */ +HAL_StatusTypeDef HAL_I2C_Slave_Seq_Receive_IT(I2C_HandleTypeDef *hi2c, uint8_t *pData, uint16_t Size, uint32_t XferOptions) +{ + /* Check the parameters */ + assert_param(IS_I2C_TRANSFER_OPTIONS_REQUEST(XferOptions)); + + if (((uint32_t)hi2c->State & (uint32_t)HAL_I2C_STATE_LISTEN) == (uint32_t)HAL_I2C_STATE_LISTEN) + { + if ((pData == NULL) || (Size == 0U)) + { + return HAL_ERROR; + } + + /* Process Locked */ + __HAL_LOCK(hi2c); + + /* Check if the I2C is already enabled */ + if ((hi2c->Instance->CR1 & I2C_CR1_PE) != I2C_CR1_PE) + { + /* Enable I2C peripheral */ + __HAL_I2C_ENABLE(hi2c); + } + + /* Disable Pos */ + CLEAR_BIT(hi2c->Instance->CR1, I2C_CR1_POS); + + hi2c->State = HAL_I2C_STATE_BUSY_RX_LISTEN; + hi2c->Mode = HAL_I2C_MODE_SLAVE; + hi2c->ErrorCode = HAL_I2C_ERROR_NONE; + + /* Prepare transfer parameters */ + hi2c->pBuffPtr = pData; + hi2c->XferCount = Size; + hi2c->XferSize = hi2c->XferCount; + hi2c->XferOptions = XferOptions; + + /* Clear ADDR flag */ + __HAL_I2C_CLEAR_ADDRFLAG(hi2c); + + /* Process Unlocked */ + __HAL_UNLOCK(hi2c); + + /* Note : The I2C interrupts must be enabled after unlocking current process + to avoid the risk of I2C interrupt handle execution before current + process unlock */ + + /* Enable EVT, BUF and ERR interrupt */ + __HAL_I2C_ENABLE_IT(hi2c, I2C_IT_EVT | I2C_IT_BUF | I2C_IT_ERR); + + return HAL_OK; + } + else + { + return HAL_BUSY; + } +} + +/** + * @brief Sequential receive in slave mode an amount of data in non-blocking mode with DMA + * @note This interface allow to manage repeated start condition when a direction change during transfer + * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains + * the configuration information for the specified I2C. + * @param pData Pointer to data buffer + * @param Size Amount of data to be sent + * @param XferOptions Options of Transfer, value of @ref I2C_XferOptions_definition + * @retval HAL status + */ +HAL_StatusTypeDef HAL_I2C_Slave_Seq_Receive_DMA(I2C_HandleTypeDef *hi2c, uint8_t *pData, uint16_t Size, uint32_t XferOptions) +{ + HAL_StatusTypeDef dmaxferstatus; + + /* Check the parameters */ + assert_param(IS_I2C_TRANSFER_OPTIONS_REQUEST(XferOptions)); + + if (((uint32_t)hi2c->State & (uint32_t)HAL_I2C_STATE_LISTEN) == (uint32_t)HAL_I2C_STATE_LISTEN) + { + if ((pData == NULL) || (Size == 0U)) + { + return HAL_ERROR; + } + + /* Process Locked */ + __HAL_LOCK(hi2c); + + /* Disable Interrupts, to prevent preemption during treatment in case of multicall */ + __HAL_I2C_DISABLE_IT(hi2c, I2C_IT_EVT | I2C_IT_ERR); + + /* I2C cannot manage full duplex exchange so disable previous IT enabled if any */ + /* and then toggle the HAL slave RX state to TX state */ + if (hi2c->State == HAL_I2C_STATE_BUSY_RX_LISTEN) + { + if ((hi2c->Instance->CR2 & I2C_CR2_DMAEN) == I2C_CR2_DMAEN) + { + /* Abort DMA Xfer if any */ + if (hi2c->hdmarx != NULL) + { + CLEAR_BIT(hi2c->Instance->CR2, I2C_CR2_DMAEN); + + /* Set the I2C DMA Abort callback : + will lead to call HAL_I2C_ErrorCallback() at end of DMA abort procedure */ + hi2c->hdmarx->XferAbortCallback = I2C_DMAAbort; + + /* Abort DMA RX */ + if (HAL_DMA_Abort_IT(hi2c->hdmarx) != HAL_OK) + { + /* Call Directly XferAbortCallback function in case of error */ + hi2c->hdmarx->XferAbortCallback(hi2c->hdmarx); + } + } + } + } + else if (hi2c->State == HAL_I2C_STATE_BUSY_TX_LISTEN) + { + if ((hi2c->Instance->CR2 & I2C_CR2_DMAEN) == I2C_CR2_DMAEN) + { + CLEAR_BIT(hi2c->Instance->CR2, I2C_CR2_DMAEN); + + /* Abort DMA Xfer if any */ + if (hi2c->hdmatx != NULL) + { + /* Set the I2C DMA Abort callback : + will lead to call HAL_I2C_ErrorCallback() at end of DMA abort procedure */ + hi2c->hdmatx->XferAbortCallback = I2C_DMAAbort; + + /* Abort DMA TX */ + if (HAL_DMA_Abort_IT(hi2c->hdmatx) != HAL_OK) + { + /* Call Directly XferAbortCallback function in case of error */ + hi2c->hdmatx->XferAbortCallback(hi2c->hdmatx); + } + } + } + } + else + { + /* Nothing to do */ + } + + /* Check if the I2C is already enabled */ + if ((hi2c->Instance->CR1 & I2C_CR1_PE) != I2C_CR1_PE) + { + /* Enable I2C peripheral */ + __HAL_I2C_ENABLE(hi2c); + } + + /* Disable Pos */ + CLEAR_BIT(hi2c->Instance->CR1, I2C_CR1_POS); + + hi2c->State = HAL_I2C_STATE_BUSY_RX_LISTEN; + hi2c->Mode = HAL_I2C_MODE_SLAVE; + hi2c->ErrorCode = HAL_I2C_ERROR_NONE; + + /* Prepare transfer parameters */ + hi2c->pBuffPtr = pData; + hi2c->XferCount = Size; + hi2c->XferSize = hi2c->XferCount; + hi2c->XferOptions = XferOptions; + + if (hi2c->hdmarx != NULL) + { + /* Set the I2C DMA transfer complete callback */ + hi2c->hdmarx->XferCpltCallback = I2C_DMAXferCplt; + + /* Set the DMA error callback */ + hi2c->hdmarx->XferErrorCallback = I2C_DMAError; + + /* Set the unused DMA callbacks to NULL */ + hi2c->hdmarx->XferHalfCpltCallback = NULL; + hi2c->hdmarx->XferAbortCallback = NULL; + + /* Enable the DMA channel */ + dmaxferstatus = HAL_DMA_Start_IT(hi2c->hdmarx, (uint32_t)&hi2c->Instance->DR, (uint32_t)hi2c->pBuffPtr, hi2c->XferSize); + } + else + { + /* Update I2C state */ + hi2c->State = HAL_I2C_STATE_LISTEN; + hi2c->Mode = HAL_I2C_MODE_NONE; + + /* Update I2C error code */ + hi2c->ErrorCode |= HAL_I2C_ERROR_DMA_PARAM; + + /* Process Unlocked */ + __HAL_UNLOCK(hi2c); + + return HAL_ERROR; + } + + if (dmaxferstatus == HAL_OK) + { + /* Enable Address Acknowledge */ + SET_BIT(hi2c->Instance->CR1, I2C_CR1_ACK); + + /* Clear ADDR flag */ + __HAL_I2C_CLEAR_ADDRFLAG(hi2c); + + /* Process Unlocked */ + __HAL_UNLOCK(hi2c); + + /* Enable DMA Request */ + SET_BIT(hi2c->Instance->CR2, I2C_CR2_DMAEN); + + /* Note : The I2C interrupts must be enabled after unlocking current process + to avoid the risk of I2C interrupt handle execution before current + process unlock */ + /* Enable EVT and ERR interrupt */ + __HAL_I2C_ENABLE_IT(hi2c, I2C_IT_EVT | I2C_IT_ERR); + + return HAL_OK; + } + else + { + /* Update I2C state */ + hi2c->State = HAL_I2C_STATE_READY; + hi2c->Mode = HAL_I2C_MODE_NONE; + + /* Update I2C error code */ + hi2c->ErrorCode |= HAL_I2C_ERROR_DMA; + + /* Process Unlocked */ + __HAL_UNLOCK(hi2c); + + return HAL_ERROR; + } + } + else + { + return HAL_BUSY; + } +} + +/** + * @brief Enable the Address listen mode with Interrupt. + * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains + * the configuration information for the specified I2C. + * @retval HAL status + */ +HAL_StatusTypeDef HAL_I2C_EnableListen_IT(I2C_HandleTypeDef *hi2c) +{ + if (hi2c->State == HAL_I2C_STATE_READY) + { + hi2c->State = HAL_I2C_STATE_LISTEN; + + /* Check if the I2C is already enabled */ + if ((hi2c->Instance->CR1 & I2C_CR1_PE) != I2C_CR1_PE) + { + /* Enable I2C peripheral */ + __HAL_I2C_ENABLE(hi2c); + } + + /* Enable Address Acknowledge */ + SET_BIT(hi2c->Instance->CR1, I2C_CR1_ACK); + + /* Enable EVT and ERR interrupt */ + __HAL_I2C_ENABLE_IT(hi2c, I2C_IT_EVT | I2C_IT_ERR); + + return HAL_OK; + } + else + { + return HAL_BUSY; + } +} + +/** + * @brief Disable the Address listen mode with Interrupt. + * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains + * the configuration information for the specified I2C. + * @retval HAL status + */ +HAL_StatusTypeDef HAL_I2C_DisableListen_IT(I2C_HandleTypeDef *hi2c) +{ + /* Declaration of tmp to prevent undefined behavior of volatile usage */ + uint32_t tmp; + + /* Disable Address listen mode only if a transfer is not ongoing */ + if (hi2c->State == HAL_I2C_STATE_LISTEN) + { + tmp = (uint32_t)(hi2c->State) & I2C_STATE_MSK; + hi2c->PreviousState = tmp | (uint32_t)(hi2c->Mode); + hi2c->State = HAL_I2C_STATE_READY; + hi2c->Mode = HAL_I2C_MODE_NONE; + + /* Disable Address Acknowledge */ + CLEAR_BIT(hi2c->Instance->CR1, I2C_CR1_ACK); + + /* Disable EVT and ERR interrupt */ + __HAL_I2C_DISABLE_IT(hi2c, I2C_IT_EVT | I2C_IT_ERR); + + return HAL_OK; + } + else + { + return HAL_BUSY; + } +} + +/** + * @brief Abort a master I2C IT or DMA process communication with Interrupt. + * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains + * the configuration information for the specified I2C. + * @param DevAddress Target device address: The device 7 bits address value + * in datasheet must be shifted to the left before calling the interface + * @retval HAL status + */ +HAL_StatusTypeDef HAL_I2C_Master_Abort_IT(I2C_HandleTypeDef *hi2c, uint16_t DevAddress) +{ + /* Declaration of temporary variables to prevent undefined behavior of volatile usage */ + HAL_I2C_ModeTypeDef CurrentMode = hi2c->Mode; + + /* Prevent unused argument(s) compilation warning */ + UNUSED(DevAddress); + + /* Abort Master transfer during Receive or Transmit process */ + if ((__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_BUSY) != RESET) && (CurrentMode == HAL_I2C_MODE_MASTER)) + { + /* Process Locked */ + __HAL_LOCK(hi2c); + + hi2c->PreviousState = I2C_STATE_NONE; + hi2c->State = HAL_I2C_STATE_ABORT; + + /* Disable Acknowledge */ + CLEAR_BIT(hi2c->Instance->CR1, I2C_CR1_ACK); + + /* Generate Stop */ + SET_BIT(hi2c->Instance->CR1, I2C_CR1_STOP); + + hi2c->XferCount = 0U; + + /* Disable EVT, BUF and ERR interrupt */ + __HAL_I2C_DISABLE_IT(hi2c, I2C_IT_EVT | I2C_IT_BUF | I2C_IT_ERR); + + /* Process Unlocked */ + __HAL_UNLOCK(hi2c); + + /* Call the corresponding callback to inform upper layer of End of Transfer */ + I2C_ITError(hi2c); + + return HAL_OK; + } + else + { + /* Wrong usage of abort function */ + /* This function should be used only in case of abort monitored by master device */ + /* Or periphal is not in busy state, mean there is no active sequence to be abort */ + return HAL_ERROR; + } +} + +/** + * @} + */ + +/** @defgroup I2C_IRQ_Handler_and_Callbacks IRQ Handler and Callbacks + * @{ + */ + +/** + * @brief This function handles I2C event interrupt request. + * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains + * the configuration information for the specified I2C. + * @retval None + */ +void HAL_I2C_EV_IRQHandler(I2C_HandleTypeDef *hi2c) +{ + uint32_t sr1itflags; + uint32_t sr2itflags = 0U; + uint32_t itsources = READ_REG(hi2c->Instance->CR2); + uint32_t CurrentXferOptions = hi2c->XferOptions; + HAL_I2C_ModeTypeDef CurrentMode = hi2c->Mode; + HAL_I2C_StateTypeDef CurrentState = hi2c->State; + + /* Master or Memory mode selected */ + if ((CurrentMode == HAL_I2C_MODE_MASTER) || (CurrentMode == HAL_I2C_MODE_MEM)) + { + sr2itflags = READ_REG(hi2c->Instance->SR2); + sr1itflags = READ_REG(hi2c->Instance->SR1); + + /* Exit IRQ event until Start Bit detected in case of Other frame requested */ + if ((I2C_CHECK_FLAG(sr1itflags, I2C_FLAG_SB) == RESET) && (IS_I2C_TRANSFER_OTHER_OPTIONS_REQUEST(CurrentXferOptions) == 1U)) + { + return; + } + + /* SB Set ----------------------------------------------------------------*/ + if ((I2C_CHECK_FLAG(sr1itflags, I2C_FLAG_SB) != RESET) && (I2C_CHECK_IT_SOURCE(itsources, I2C_IT_EVT) != RESET)) + { + /* Convert OTHER_xxx XferOptions if any */ + I2C_ConvertOtherXferOptions(hi2c); + + I2C_Master_SB(hi2c); + } + /* ADD10 Set -------------------------------------------------------------*/ + else if ((I2C_CHECK_FLAG(sr1itflags, I2C_FLAG_ADD10) != RESET) && (I2C_CHECK_IT_SOURCE(itsources, I2C_IT_EVT) != RESET)) + { + I2C_Master_ADD10(hi2c); + } + /* ADDR Set --------------------------------------------------------------*/ + else if ((I2C_CHECK_FLAG(sr1itflags, I2C_FLAG_ADDR) != RESET) && (I2C_CHECK_IT_SOURCE(itsources, I2C_IT_EVT) != RESET)) + { + I2C_Master_ADDR(hi2c); + } + /* I2C in mode Transmitter -----------------------------------------------*/ + else if (I2C_CHECK_FLAG(sr2itflags, I2C_FLAG_TRA) != RESET) + { + /* Do not check buffer and BTF flag if a Xfer DMA is on going */ + if (READ_BIT(hi2c->Instance->CR2, I2C_CR2_DMAEN) != I2C_CR2_DMAEN) + { + /* TXE set and BTF reset -----------------------------------------------*/ + if ((I2C_CHECK_FLAG(sr1itflags, I2C_FLAG_TXE) != RESET) && (I2C_CHECK_IT_SOURCE(itsources, I2C_IT_BUF) != RESET) && (I2C_CHECK_FLAG(sr1itflags, I2C_FLAG_BTF) == RESET)) + { + I2C_MasterTransmit_TXE(hi2c); + } + /* BTF set -------------------------------------------------------------*/ + else if ((I2C_CHECK_FLAG(sr1itflags, I2C_FLAG_BTF) != RESET) && (I2C_CHECK_IT_SOURCE(itsources, I2C_IT_EVT) != RESET)) + { + if (CurrentState == HAL_I2C_STATE_BUSY_TX) + { + I2C_MasterTransmit_BTF(hi2c); + } + else /* HAL_I2C_MODE_MEM */ + { + if (CurrentMode == HAL_I2C_MODE_MEM) + { + I2C_MemoryTransmit_TXE_BTF(hi2c); + } + } + } + else + { + /* Do nothing */ + } + } + } + /* I2C in mode Receiver --------------------------------------------------*/ + else + { + /* Do not check buffer and BTF flag if a Xfer DMA is on going */ + if (READ_BIT(hi2c->Instance->CR2, I2C_CR2_DMAEN) != I2C_CR2_DMAEN) + { + /* RXNE set and BTF reset -----------------------------------------------*/ + if ((I2C_CHECK_FLAG(sr1itflags, I2C_FLAG_RXNE) != RESET) && (I2C_CHECK_IT_SOURCE(itsources, I2C_IT_BUF) != RESET) && (I2C_CHECK_FLAG(sr1itflags, I2C_FLAG_BTF) == RESET)) + { + I2C_MasterReceive_RXNE(hi2c); + } + /* BTF set -------------------------------------------------------------*/ + else if ((I2C_CHECK_FLAG(sr1itflags, I2C_FLAG_BTF) != RESET) && (I2C_CHECK_IT_SOURCE(itsources, I2C_IT_EVT) != RESET)) + { + I2C_MasterReceive_BTF(hi2c); + } + else + { + /* Do nothing */ + } + } + } + } + /* Slave mode selected */ + else + { + /* If an error is detected, read only SR1 register to prevent */ + /* a clear of ADDR flags by reading SR2 after reading SR1 in Error treatment */ + if (hi2c->ErrorCode != HAL_I2C_ERROR_NONE) + { + sr1itflags = READ_REG(hi2c->Instance->SR1); + } + else + { + sr2itflags = READ_REG(hi2c->Instance->SR2); + sr1itflags = READ_REG(hi2c->Instance->SR1); + } + + /* ADDR set --------------------------------------------------------------*/ + if ((I2C_CHECK_FLAG(sr1itflags, I2C_FLAG_ADDR) != RESET) && (I2C_CHECK_IT_SOURCE(itsources, I2C_IT_EVT) != RESET)) + { + /* Now time to read SR2, this will clear ADDR flag automatically */ + if (hi2c->ErrorCode != HAL_I2C_ERROR_NONE) + { + sr2itflags = READ_REG(hi2c->Instance->SR2); + } + I2C_Slave_ADDR(hi2c, sr2itflags); + } + /* STOPF set --------------------------------------------------------------*/ + else if ((I2C_CHECK_FLAG(sr1itflags, I2C_FLAG_STOPF) != RESET) && (I2C_CHECK_IT_SOURCE(itsources, I2C_IT_EVT) != RESET)) + { + I2C_Slave_STOPF(hi2c); + } + /* I2C in mode Transmitter -----------------------------------------------*/ + else if ((CurrentState == HAL_I2C_STATE_BUSY_TX) || (CurrentState == HAL_I2C_STATE_BUSY_TX_LISTEN)) + { + /* TXE set and BTF reset -----------------------------------------------*/ + if ((I2C_CHECK_FLAG(sr1itflags, I2C_FLAG_TXE) != RESET) && (I2C_CHECK_IT_SOURCE(itsources, I2C_IT_BUF) != RESET) && (I2C_CHECK_FLAG(sr1itflags, I2C_FLAG_BTF) == RESET)) + { + I2C_SlaveTransmit_TXE(hi2c); + } + /* BTF set -------------------------------------------------------------*/ + else if ((I2C_CHECK_FLAG(sr1itflags, I2C_FLAG_BTF) != RESET) && (I2C_CHECK_IT_SOURCE(itsources, I2C_IT_EVT) != RESET)) + { + I2C_SlaveTransmit_BTF(hi2c); + } + else + { + /* Do nothing */ + } + } + /* I2C in mode Receiver --------------------------------------------------*/ + else + { + /* RXNE set and BTF reset ----------------------------------------------*/ + if ((I2C_CHECK_FLAG(sr1itflags, I2C_FLAG_RXNE) != RESET) && (I2C_CHECK_IT_SOURCE(itsources, I2C_IT_BUF) != RESET) && (I2C_CHECK_FLAG(sr1itflags, I2C_FLAG_BTF) == RESET)) + { + I2C_SlaveReceive_RXNE(hi2c); + } + /* BTF set -------------------------------------------------------------*/ + else if ((I2C_CHECK_FLAG(sr1itflags, I2C_FLAG_BTF) != RESET) && (I2C_CHECK_IT_SOURCE(itsources, I2C_IT_EVT) != RESET)) + { + I2C_SlaveReceive_BTF(hi2c); + } + else + { + /* Do nothing */ + } + } + } +} + +/** + * @brief This function handles I2C error interrupt request. + * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains + * the configuration information for the specified I2C. + * @retval None + */ +void HAL_I2C_ER_IRQHandler(I2C_HandleTypeDef *hi2c) +{ + HAL_I2C_ModeTypeDef tmp1; + uint32_t tmp2; + HAL_I2C_StateTypeDef tmp3; + uint32_t tmp4; + uint32_t sr1itflags = READ_REG(hi2c->Instance->SR1); + uint32_t itsources = READ_REG(hi2c->Instance->CR2); + uint32_t error = HAL_I2C_ERROR_NONE; + HAL_I2C_ModeTypeDef CurrentMode = hi2c->Mode; + + /* I2C Bus error interrupt occurred ----------------------------------------*/ + if ((I2C_CHECK_FLAG(sr1itflags, I2C_FLAG_BERR) != RESET) && (I2C_CHECK_IT_SOURCE(itsources, I2C_IT_ERR) != RESET)) + { + error |= HAL_I2C_ERROR_BERR; + + /* Clear BERR flag */ + __HAL_I2C_CLEAR_FLAG(hi2c, I2C_FLAG_BERR); + + /* Workaround: Start cannot be generated after a misplaced Stop */ + SET_BIT(hi2c->Instance->CR1, I2C_CR1_SWRST); + } + + /* I2C Arbitration Lost error interrupt occurred ---------------------------*/ + if ((I2C_CHECK_FLAG(sr1itflags, I2C_FLAG_ARLO) != RESET) && (I2C_CHECK_IT_SOURCE(itsources, I2C_IT_ERR) != RESET)) + { + error |= HAL_I2C_ERROR_ARLO; + + /* Clear ARLO flag */ + __HAL_I2C_CLEAR_FLAG(hi2c, I2C_FLAG_ARLO); + } + + /* I2C Acknowledge failure error interrupt occurred ------------------------*/ + if ((I2C_CHECK_FLAG(sr1itflags, I2C_FLAG_AF) != RESET) && (I2C_CHECK_IT_SOURCE(itsources, I2C_IT_ERR) != RESET)) + { + tmp1 = CurrentMode; + tmp2 = hi2c->XferCount; + tmp3 = hi2c->State; + tmp4 = hi2c->PreviousState; + if ((tmp1 == HAL_I2C_MODE_SLAVE) && (tmp2 == 0U) && \ + ((tmp3 == HAL_I2C_STATE_BUSY_TX) || (tmp3 == HAL_I2C_STATE_BUSY_TX_LISTEN) || \ + ((tmp3 == HAL_I2C_STATE_LISTEN) && (tmp4 == I2C_STATE_SLAVE_BUSY_TX)))) + { + I2C_Slave_AF(hi2c); + } + else + { + /* Clear AF flag */ + __HAL_I2C_CLEAR_FLAG(hi2c, I2C_FLAG_AF); + + error |= HAL_I2C_ERROR_AF; + + /* Do not generate a STOP in case of Slave receive non acknowledge during transfer (mean not at the end of transfer) */ + if ((CurrentMode == HAL_I2C_MODE_MASTER) || (CurrentMode == HAL_I2C_MODE_MEM)) + { + /* Generate Stop */ + SET_BIT(hi2c->Instance->CR1, I2C_CR1_STOP); + } + } + } + + /* I2C Over-Run/Under-Run interrupt occurred -------------------------------*/ + if ((I2C_CHECK_FLAG(sr1itflags, I2C_FLAG_OVR) != RESET) && (I2C_CHECK_IT_SOURCE(itsources, I2C_IT_ERR) != RESET)) + { + error |= HAL_I2C_ERROR_OVR; + /* Clear OVR flag */ + __HAL_I2C_CLEAR_FLAG(hi2c, I2C_FLAG_OVR); + } + + /* Call the Error Callback in case of Error detected -----------------------*/ + if (error != HAL_I2C_ERROR_NONE) + { + hi2c->ErrorCode |= error; + I2C_ITError(hi2c); + } +} + +/** + * @brief Master Tx Transfer completed callback. + * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains + * the configuration information for the specified I2C. + * @retval None + */ +__weak void HAL_I2C_MasterTxCpltCallback(I2C_HandleTypeDef *hi2c) +{ + /* Prevent unused argument(s) compilation warning */ + UNUSED(hi2c); + + /* NOTE : This function should not be modified, when the callback is needed, + the HAL_I2C_MasterTxCpltCallback could be implemented in the user file + */ +} + +/** + * @brief Master Rx Transfer completed callback. + * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains + * the configuration information for the specified I2C. + * @retval None + */ +__weak void HAL_I2C_MasterRxCpltCallback(I2C_HandleTypeDef *hi2c) +{ + /* Prevent unused argument(s) compilation warning */ + UNUSED(hi2c); + + /* NOTE : This function should not be modified, when the callback is needed, + the HAL_I2C_MasterRxCpltCallback could be implemented in the user file + */ +} + +/** @brief Slave Tx Transfer completed callback. + * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains + * the configuration information for the specified I2C. + * @retval None + */ +__weak void HAL_I2C_SlaveTxCpltCallback(I2C_HandleTypeDef *hi2c) +{ + /* Prevent unused argument(s) compilation warning */ + UNUSED(hi2c); + + /* NOTE : This function should not be modified, when the callback is needed, + the HAL_I2C_SlaveTxCpltCallback could be implemented in the user file + */ +} + +/** + * @brief Slave Rx Transfer completed callback. + * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains + * the configuration information for the specified I2C. + * @retval None + */ +__weak void HAL_I2C_SlaveRxCpltCallback(I2C_HandleTypeDef *hi2c) +{ + /* Prevent unused argument(s) compilation warning */ + UNUSED(hi2c); + + /* NOTE : This function should not be modified, when the callback is needed, + the HAL_I2C_SlaveRxCpltCallback could be implemented in the user file + */ +} + +/** + * @brief Slave Address Match callback. + * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains + * the configuration information for the specified I2C. + * @param TransferDirection Master request Transfer Direction (Write/Read), value of @ref I2C_XferDirection_definition + * @param AddrMatchCode Address Match Code + * @retval None + */ +__weak void HAL_I2C_AddrCallback(I2C_HandleTypeDef *hi2c, uint8_t TransferDirection, uint16_t AddrMatchCode) +{ + /* Prevent unused argument(s) compilation warning */ + UNUSED(hi2c); + UNUSED(TransferDirection); + UNUSED(AddrMatchCode); + + /* NOTE : This function should not be modified, when the callback is needed, + the HAL_I2C_AddrCallback() could be implemented in the user file + */ +} + +/** + * @brief Listen Complete callback. + * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains + * the configuration information for the specified I2C. + * @retval None + */ +__weak void HAL_I2C_ListenCpltCallback(I2C_HandleTypeDef *hi2c) +{ + /* Prevent unused argument(s) compilation warning */ + UNUSED(hi2c); + + /* NOTE : This function should not be modified, when the callback is needed, + the HAL_I2C_ListenCpltCallback() could be implemented in the user file + */ +} + +/** + * @brief Memory Tx Transfer completed callback. + * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains + * the configuration information for the specified I2C. + * @retval None + */ +__weak void HAL_I2C_MemTxCpltCallback(I2C_HandleTypeDef *hi2c) +{ + /* Prevent unused argument(s) compilation warning */ + UNUSED(hi2c); + + /* NOTE : This function should not be modified, when the callback is needed, + the HAL_I2C_MemTxCpltCallback could be implemented in the user file + */ +} + +/** + * @brief Memory Rx Transfer completed callback. + * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains + * the configuration information for the specified I2C. + * @retval None + */ +__weak void HAL_I2C_MemRxCpltCallback(I2C_HandleTypeDef *hi2c) +{ + /* Prevent unused argument(s) compilation warning */ + UNUSED(hi2c); + + /* NOTE : This function should not be modified, when the callback is needed, + the HAL_I2C_MemRxCpltCallback could be implemented in the user file + */ +} + +/** + * @brief I2C error callback. + * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains + * the configuration information for the specified I2C. + * @retval None + */ +__weak void HAL_I2C_ErrorCallback(I2C_HandleTypeDef *hi2c) +{ + /* Prevent unused argument(s) compilation warning */ + UNUSED(hi2c); + + /* NOTE : This function should not be modified, when the callback is needed, + the HAL_I2C_ErrorCallback could be implemented in the user file + */ +} + +/** + * @brief I2C abort callback. + * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains + * the configuration information for the specified I2C. + * @retval None + */ +__weak void HAL_I2C_AbortCpltCallback(I2C_HandleTypeDef *hi2c) +{ + /* Prevent unused argument(s) compilation warning */ + UNUSED(hi2c); + + /* NOTE : This function should not be modified, when the callback is needed, + the HAL_I2C_AbortCpltCallback could be implemented in the user file + */ +} + +/** + * @} + */ + +/** @defgroup I2C_Exported_Functions_Group3 Peripheral State, Mode and Error functions + * @brief Peripheral State, Mode and Error functions + * +@verbatim + =============================================================================== + ##### Peripheral State, Mode and Error functions ##### + =============================================================================== + [..] + This subsection permit to get in run-time the status of the peripheral + and the data flow. + +@endverbatim + * @{ + */ + +/** + * @brief Return the I2C handle state. + * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains + * the configuration information for the specified I2C. + * @retval HAL state + */ +HAL_I2C_StateTypeDef HAL_I2C_GetState(I2C_HandleTypeDef *hi2c) +{ + /* Return I2C handle state */ + return hi2c->State; +} + +/** + * @brief Returns the I2C Master, Slave, Memory or no mode. + * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains + * the configuration information for I2C module + * @retval HAL mode + */ +HAL_I2C_ModeTypeDef HAL_I2C_GetMode(I2C_HandleTypeDef *hi2c) +{ + return hi2c->Mode; +} + +/** + * @brief Return the I2C error code. + * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains + * the configuration information for the specified I2C. + * @retval I2C Error Code + */ +uint32_t HAL_I2C_GetError(I2C_HandleTypeDef *hi2c) +{ + return hi2c->ErrorCode; +} + +/** + * @} + */ + +/** + * @} + */ + +/** @addtogroup I2C_Private_Functions + * @{ + */ + +/** + * @brief Handle TXE flag for Master + * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains + * the configuration information for I2C module + * @retval None + */ +static void I2C_MasterTransmit_TXE(I2C_HandleTypeDef *hi2c) +{ + /* Declaration of temporary variables to prevent undefined behavior of volatile usage */ + HAL_I2C_StateTypeDef CurrentState = hi2c->State; + HAL_I2C_ModeTypeDef CurrentMode = hi2c->Mode; + uint32_t CurrentXferOptions = hi2c->XferOptions; + + if ((hi2c->XferSize == 0U) && (CurrentState == HAL_I2C_STATE_BUSY_TX)) + { + /* Call TxCpltCallback() directly if no stop mode is set */ + if ((CurrentXferOptions != I2C_FIRST_AND_LAST_FRAME) && (CurrentXferOptions != I2C_LAST_FRAME) && (CurrentXferOptions != I2C_NO_OPTION_FRAME)) + { + __HAL_I2C_DISABLE_IT(hi2c, I2C_IT_EVT | I2C_IT_BUF | I2C_IT_ERR); + + hi2c->PreviousState = I2C_STATE_MASTER_BUSY_TX; + hi2c->Mode = HAL_I2C_MODE_NONE; + hi2c->State = HAL_I2C_STATE_READY; + +#if (USE_HAL_I2C_REGISTER_CALLBACKS == 1) + hi2c->MasterTxCpltCallback(hi2c); +#else + HAL_I2C_MasterTxCpltCallback(hi2c); +#endif /* USE_HAL_I2C_REGISTER_CALLBACKS */ + } + else /* Generate Stop condition then Call TxCpltCallback() */ + { + /* Disable EVT, BUF and ERR interrupt */ + __HAL_I2C_DISABLE_IT(hi2c, I2C_IT_EVT | I2C_IT_BUF | I2C_IT_ERR); + + /* Generate Stop */ + SET_BIT(hi2c->Instance->CR1, I2C_CR1_STOP); + + hi2c->PreviousState = I2C_STATE_NONE; + hi2c->State = HAL_I2C_STATE_READY; + + if (hi2c->Mode == HAL_I2C_MODE_MEM) + { + hi2c->Mode = HAL_I2C_MODE_NONE; +#if (USE_HAL_I2C_REGISTER_CALLBACKS == 1) + hi2c->MemTxCpltCallback(hi2c); +#else + HAL_I2C_MemTxCpltCallback(hi2c); +#endif /* USE_HAL_I2C_REGISTER_CALLBACKS */ + } + else + { + hi2c->Mode = HAL_I2C_MODE_NONE; +#if (USE_HAL_I2C_REGISTER_CALLBACKS == 1) + hi2c->MasterTxCpltCallback(hi2c); +#else + HAL_I2C_MasterTxCpltCallback(hi2c); +#endif /* USE_HAL_I2C_REGISTER_CALLBACKS */ + } + } + } + else if ((CurrentState == HAL_I2C_STATE_BUSY_TX) || \ + ((CurrentMode == HAL_I2C_MODE_MEM) && (CurrentState == HAL_I2C_STATE_BUSY_RX))) + { + if (hi2c->XferCount == 0U) + { + /* Disable BUF interrupt */ + __HAL_I2C_DISABLE_IT(hi2c, I2C_IT_BUF); + } + else + { + if (hi2c->Mode == HAL_I2C_MODE_MEM) + { + I2C_MemoryTransmit_TXE_BTF(hi2c); + } + else + { + /* Write data to DR */ + hi2c->Instance->DR = *hi2c->pBuffPtr; + + /* Increment Buffer pointer */ + hi2c->pBuffPtr++; + + /* Update counter */ + hi2c->XferCount--; + } + } + } + else + { + /* Do nothing */ + } +} + +/** + * @brief Handle BTF flag for Master transmitter + * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains + * the configuration information for I2C module + * @retval None + */ +static void I2C_MasterTransmit_BTF(I2C_HandleTypeDef *hi2c) +{ + /* Declaration of temporary variables to prevent undefined behavior of volatile usage */ + uint32_t CurrentXferOptions = hi2c->XferOptions; + + if (hi2c->State == HAL_I2C_STATE_BUSY_TX) + { + if (hi2c->XferCount != 0U) + { + /* Write data to DR */ + hi2c->Instance->DR = *hi2c->pBuffPtr; + + /* Increment Buffer pointer */ + hi2c->pBuffPtr++; + + /* Update counter */ + hi2c->XferCount--; + } + else + { + /* Call TxCpltCallback() directly if no stop mode is set */ + if ((CurrentXferOptions != I2C_FIRST_AND_LAST_FRAME) && (CurrentXferOptions != I2C_LAST_FRAME) && (CurrentXferOptions != I2C_NO_OPTION_FRAME)) + { + __HAL_I2C_DISABLE_IT(hi2c, I2C_IT_EVT | I2C_IT_BUF | I2C_IT_ERR); + + hi2c->PreviousState = I2C_STATE_MASTER_BUSY_TX; + hi2c->Mode = HAL_I2C_MODE_NONE; + hi2c->State = HAL_I2C_STATE_READY; + +#if (USE_HAL_I2C_REGISTER_CALLBACKS == 1) + hi2c->MasterTxCpltCallback(hi2c); +#else + HAL_I2C_MasterTxCpltCallback(hi2c); +#endif /* USE_HAL_I2C_REGISTER_CALLBACKS */ + } + else /* Generate Stop condition then Call TxCpltCallback() */ + { + /* Disable EVT, BUF and ERR interrupt */ + __HAL_I2C_DISABLE_IT(hi2c, I2C_IT_EVT | I2C_IT_BUF | I2C_IT_ERR); + + /* Generate Stop */ + SET_BIT(hi2c->Instance->CR1, I2C_CR1_STOP); + + hi2c->PreviousState = I2C_STATE_NONE; + hi2c->State = HAL_I2C_STATE_READY; + if (hi2c->Mode == HAL_I2C_MODE_MEM) + { + hi2c->Mode = HAL_I2C_MODE_NONE; +#if (USE_HAL_I2C_REGISTER_CALLBACKS == 1) + hi2c->MemTxCpltCallback(hi2c); +#else + HAL_I2C_MemTxCpltCallback(hi2c); +#endif /* USE_HAL_I2C_REGISTER_CALLBACKS */ + } + else + { + hi2c->Mode = HAL_I2C_MODE_NONE; + +#if (USE_HAL_I2C_REGISTER_CALLBACKS == 1) + hi2c->MasterTxCpltCallback(hi2c); +#else + HAL_I2C_MasterTxCpltCallback(hi2c); +#endif /* USE_HAL_I2C_REGISTER_CALLBACKS */ + } + } + } + } + else + { + /* Do nothing */ + } +} + +/** + * @brief Handle TXE and BTF flag for Memory transmitter + * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains + * the configuration information for I2C module + * @retval None + */ +static void I2C_MemoryTransmit_TXE_BTF(I2C_HandleTypeDef *hi2c) +{ + /* Declaration of temporary variables to prevent undefined behavior of volatile usage */ + HAL_I2C_StateTypeDef CurrentState = hi2c->State; + + if (hi2c->EventCount == 0U) + { + /* If Memory address size is 8Bit */ + if (hi2c->MemaddSize == I2C_MEMADD_SIZE_8BIT) + { + /* Send Memory Address */ + hi2c->Instance->DR = I2C_MEM_ADD_LSB(hi2c->Memaddress); + + hi2c->EventCount += 2U; + } + /* If Memory address size is 16Bit */ + else + { + /* Send MSB of Memory Address */ + hi2c->Instance->DR = I2C_MEM_ADD_MSB(hi2c->Memaddress); + + hi2c->EventCount++; + } + } + else if (hi2c->EventCount == 1U) + { + /* Send LSB of Memory Address */ + hi2c->Instance->DR = I2C_MEM_ADD_LSB(hi2c->Memaddress); + + hi2c->EventCount++; + } + else if (hi2c->EventCount == 2U) + { + if (CurrentState == HAL_I2C_STATE_BUSY_RX) + { + /* Generate Restart */ + hi2c->Instance->CR1 |= I2C_CR1_START; + + hi2c->EventCount++; + } + else if ((hi2c->XferCount > 0U) && (CurrentState == HAL_I2C_STATE_BUSY_TX)) + { + /* Write data to DR */ + hi2c->Instance->DR = *hi2c->pBuffPtr; + + /* Increment Buffer pointer */ + hi2c->pBuffPtr++; + + /* Update counter */ + hi2c->XferCount--; + } + else if ((hi2c->XferCount == 0U) && (CurrentState == HAL_I2C_STATE_BUSY_TX)) + { + /* Generate Stop condition then Call TxCpltCallback() */ + /* Disable EVT, BUF and ERR interrupt */ + __HAL_I2C_DISABLE_IT(hi2c, I2C_IT_EVT | I2C_IT_BUF | I2C_IT_ERR); + + /* Generate Stop */ + SET_BIT(hi2c->Instance->CR1, I2C_CR1_STOP); + + hi2c->PreviousState = I2C_STATE_NONE; + hi2c->State = HAL_I2C_STATE_READY; + hi2c->Mode = HAL_I2C_MODE_NONE; +#if (USE_HAL_I2C_REGISTER_CALLBACKS == 1) + hi2c->MemTxCpltCallback(hi2c); +#else + HAL_I2C_MemTxCpltCallback(hi2c); +#endif /* USE_HAL_I2C_REGISTER_CALLBACKS */ + } + else + { + /* Do nothing */ + } + } + else + { + /* Do nothing */ + } +} + +/** + * @brief Handle RXNE flag for Master + * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains + * the configuration information for I2C module + * @retval None + */ +static void I2C_MasterReceive_RXNE(I2C_HandleTypeDef *hi2c) +{ + if (hi2c->State == HAL_I2C_STATE_BUSY_RX) + { + uint32_t tmp; + + tmp = hi2c->XferCount; + if (tmp > 3U) + { + /* Read data from DR */ + *hi2c->pBuffPtr = (uint8_t)hi2c->Instance->DR; + + /* Increment Buffer pointer */ + hi2c->pBuffPtr++; + + /* Update counter */ + hi2c->XferCount--; + + if (hi2c->XferCount == (uint16_t)3) + { + /* Disable BUF interrupt, this help to treat correctly the last 4 bytes + on BTF subroutine */ + /* Disable BUF interrupt */ + __HAL_I2C_DISABLE_IT(hi2c, I2C_IT_BUF); + } + } + else if ((hi2c->XferOptions != I2C_FIRST_AND_NEXT_FRAME) && ((tmp == 1U) || (tmp == 0U))) + { + if (I2C_WaitOnSTOPRequestThroughIT(hi2c) == HAL_OK) + { + /* Disable Acknowledge */ + CLEAR_BIT(hi2c->Instance->CR1, I2C_CR1_ACK); + + /* Disable EVT, BUF and ERR interrupt */ + __HAL_I2C_DISABLE_IT(hi2c, I2C_IT_EVT | I2C_IT_BUF | I2C_IT_ERR); + + /* Read data from DR */ + *hi2c->pBuffPtr = (uint8_t)hi2c->Instance->DR; + + /* Increment Buffer pointer */ + hi2c->pBuffPtr++; + + /* Update counter */ + hi2c->XferCount--; + + hi2c->State = HAL_I2C_STATE_READY; + + if (hi2c->Mode == HAL_I2C_MODE_MEM) + { + hi2c->Mode = HAL_I2C_MODE_NONE; + hi2c->PreviousState = I2C_STATE_NONE; + +#if (USE_HAL_I2C_REGISTER_CALLBACKS == 1) + hi2c->MemRxCpltCallback(hi2c); +#else + HAL_I2C_MemRxCpltCallback(hi2c); +#endif /* USE_HAL_I2C_REGISTER_CALLBACKS */ + } + else + { + hi2c->Mode = HAL_I2C_MODE_NONE; + hi2c->PreviousState = I2C_STATE_MASTER_BUSY_RX; + +#if (USE_HAL_I2C_REGISTER_CALLBACKS == 1) + hi2c->MasterRxCpltCallback(hi2c); +#else + HAL_I2C_MasterRxCpltCallback(hi2c); +#endif /* USE_HAL_I2C_REGISTER_CALLBACKS */ + } + } + else + { + /* Disable EVT, BUF and ERR interrupt */ + __HAL_I2C_DISABLE_IT(hi2c, I2C_IT_EVT | I2C_IT_BUF | I2C_IT_ERR); + + /* Read data from DR */ + *hi2c->pBuffPtr = (uint8_t)hi2c->Instance->DR; + + /* Increment Buffer pointer */ + hi2c->pBuffPtr++; + + /* Update counter */ + hi2c->XferCount--; + + hi2c->State = HAL_I2C_STATE_READY; + hi2c->Mode = HAL_I2C_MODE_NONE; + + /* Call user error callback */ +#if (USE_HAL_I2C_REGISTER_CALLBACKS == 1) + hi2c->ErrorCallback(hi2c); +#else + HAL_I2C_ErrorCallback(hi2c); +#endif /* USE_HAL_I2C_REGISTER_CALLBACKS */ + } + } + else + { + /* Do nothing */ + } + } +} + +/** + * @brief Handle BTF flag for Master receiver + * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains + * the configuration information for I2C module + * @retval None + */ +static void I2C_MasterReceive_BTF(I2C_HandleTypeDef *hi2c) +{ + /* Declaration of temporary variables to prevent undefined behavior of volatile usage */ + uint32_t CurrentXferOptions = hi2c->XferOptions; + + if (hi2c->XferCount == 4U) + { + /* Disable BUF interrupt, this help to treat correctly the last 2 bytes + on BTF subroutine if there is a reception delay between N-1 and N byte */ + __HAL_I2C_DISABLE_IT(hi2c, I2C_IT_BUF); + + /* Read data from DR */ + *hi2c->pBuffPtr = (uint8_t)hi2c->Instance->DR; + + /* Increment Buffer pointer */ + hi2c->pBuffPtr++; + + /* Update counter */ + hi2c->XferCount--; + } + else if (hi2c->XferCount == 3U) + { + /* Disable BUF interrupt, this help to treat correctly the last 2 bytes + on BTF subroutine if there is a reception delay between N-1 and N byte */ + __HAL_I2C_DISABLE_IT(hi2c, I2C_IT_BUF); + + if ((CurrentXferOptions != I2C_NEXT_FRAME) && (CurrentXferOptions != I2C_FIRST_AND_NEXT_FRAME)) + { + /* Disable Acknowledge */ + CLEAR_BIT(hi2c->Instance->CR1, I2C_CR1_ACK); + } + + /* Read data from DR */ + *hi2c->pBuffPtr = (uint8_t)hi2c->Instance->DR; + + /* Increment Buffer pointer */ + hi2c->pBuffPtr++; + + /* Update counter */ + hi2c->XferCount--; + } + else if (hi2c->XferCount == 2U) + { + /* Prepare next transfer or stop current transfer */ + if ((CurrentXferOptions == I2C_FIRST_FRAME) || (CurrentXferOptions == I2C_LAST_FRAME_NO_STOP)) + { + /* Disable Acknowledge */ + CLEAR_BIT(hi2c->Instance->CR1, I2C_CR1_ACK); + } + else if ((CurrentXferOptions == I2C_NEXT_FRAME) || (CurrentXferOptions == I2C_FIRST_AND_NEXT_FRAME)) + { + /* Enable Acknowledge */ + SET_BIT(hi2c->Instance->CR1, I2C_CR1_ACK); + } + else if (CurrentXferOptions != I2C_LAST_FRAME_NO_STOP) + { + /* Generate Stop */ + SET_BIT(hi2c->Instance->CR1, I2C_CR1_STOP); + } + else + { + /* Do nothing */ + } + + /* Read data from DR */ + *hi2c->pBuffPtr = (uint8_t)hi2c->Instance->DR; + + /* Increment Buffer pointer */ + hi2c->pBuffPtr++; + + /* Update counter */ + hi2c->XferCount--; + + /* Read data from DR */ + *hi2c->pBuffPtr = (uint8_t)hi2c->Instance->DR; + + /* Increment Buffer pointer */ + hi2c->pBuffPtr++; + + /* Update counter */ + hi2c->XferCount--; + + /* Disable EVT and ERR interrupt */ + __HAL_I2C_DISABLE_IT(hi2c, I2C_IT_EVT | I2C_IT_ERR); + + hi2c->State = HAL_I2C_STATE_READY; + if (hi2c->Mode == HAL_I2C_MODE_MEM) + { + hi2c->Mode = HAL_I2C_MODE_NONE; + hi2c->PreviousState = I2C_STATE_NONE; +#if (USE_HAL_I2C_REGISTER_CALLBACKS == 1) + hi2c->MemRxCpltCallback(hi2c); +#else + HAL_I2C_MemRxCpltCallback(hi2c); +#endif /* USE_HAL_I2C_REGISTER_CALLBACKS */ + } + else + { + hi2c->Mode = HAL_I2C_MODE_NONE; + hi2c->PreviousState = I2C_STATE_MASTER_BUSY_RX; +#if (USE_HAL_I2C_REGISTER_CALLBACKS == 1) + hi2c->MasterRxCpltCallback(hi2c); +#else + HAL_I2C_MasterRxCpltCallback(hi2c); +#endif /* USE_HAL_I2C_REGISTER_CALLBACKS */ + } + } + else + { + /* Read data from DR */ + *hi2c->pBuffPtr = (uint8_t)hi2c->Instance->DR; + + /* Increment Buffer pointer */ + hi2c->pBuffPtr++; + + /* Update counter */ + hi2c->XferCount--; + } +} + +/** + * @brief Handle SB flag for Master + * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains + * the configuration information for I2C module + * @retval None + */ +static void I2C_Master_SB(I2C_HandleTypeDef *hi2c) +{ + if (hi2c->Mode == HAL_I2C_MODE_MEM) + { + if (hi2c->EventCount == 0U) + { + /* Send slave address */ + hi2c->Instance->DR = I2C_7BIT_ADD_WRITE(hi2c->Devaddress); + } + else + { + hi2c->Instance->DR = I2C_7BIT_ADD_READ(hi2c->Devaddress); + } + } + else + { + if (hi2c->Init.AddressingMode == I2C_ADDRESSINGMODE_7BIT) + { + /* Send slave 7 Bits address */ + if (hi2c->State == HAL_I2C_STATE_BUSY_TX) + { + hi2c->Instance->DR = I2C_7BIT_ADD_WRITE(hi2c->Devaddress); + } + else + { + hi2c->Instance->DR = I2C_7BIT_ADD_READ(hi2c->Devaddress); + } + + if (((hi2c->hdmatx != NULL) && (hi2c->hdmatx->XferCpltCallback != NULL)) + || ((hi2c->hdmarx != NULL) && (hi2c->hdmarx->XferCpltCallback != NULL))) + { + /* Enable DMA Request */ + SET_BIT(hi2c->Instance->CR2, I2C_CR2_DMAEN); + } + } + else + { + if (hi2c->EventCount == 0U) + { + /* Send header of slave address */ + hi2c->Instance->DR = I2C_10BIT_HEADER_WRITE(hi2c->Devaddress); + } + else if (hi2c->EventCount == 1U) + { + /* Send header of slave address */ + hi2c->Instance->DR = I2C_10BIT_HEADER_READ(hi2c->Devaddress); + } + else + { + /* Do nothing */ + } + } + } +} + +/** + * @brief Handle ADD10 flag for Master + * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains + * the configuration information for I2C module + * @retval None + */ +static void I2C_Master_ADD10(I2C_HandleTypeDef *hi2c) +{ + /* Send slave address */ + hi2c->Instance->DR = I2C_10BIT_ADDRESS(hi2c->Devaddress); + + if (((hi2c->hdmatx != NULL) && (hi2c->hdmatx->XferCpltCallback != NULL)) + || ((hi2c->hdmarx != NULL) && (hi2c->hdmarx->XferCpltCallback != NULL))) + { + /* Enable DMA Request */ + SET_BIT(hi2c->Instance->CR2, I2C_CR2_DMAEN); + } +} + +/** + * @brief Handle ADDR flag for Master + * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains + * the configuration information for I2C module + * @retval None + */ +static void I2C_Master_ADDR(I2C_HandleTypeDef *hi2c) +{ + /* Declaration of temporary variable to prevent undefined behavior of volatile usage */ + HAL_I2C_ModeTypeDef CurrentMode = hi2c->Mode; + uint32_t CurrentXferOptions = hi2c->XferOptions; + uint32_t Prev_State = hi2c->PreviousState; + + if (hi2c->State == HAL_I2C_STATE_BUSY_RX) + { + if ((hi2c->EventCount == 0U) && (CurrentMode == HAL_I2C_MODE_MEM)) + { + /* Clear ADDR flag */ + __HAL_I2C_CLEAR_ADDRFLAG(hi2c); + } + else if ((hi2c->EventCount == 0U) && (hi2c->Init.AddressingMode == I2C_ADDRESSINGMODE_10BIT)) + { + /* Clear ADDR flag */ + __HAL_I2C_CLEAR_ADDRFLAG(hi2c); + + /* Generate Restart */ + SET_BIT(hi2c->Instance->CR1, I2C_CR1_START); + + hi2c->EventCount++; + } + else + { + if (hi2c->XferCount == 0U) + { + /* Clear ADDR flag */ + __HAL_I2C_CLEAR_ADDRFLAG(hi2c); + + /* Generate Stop */ + SET_BIT(hi2c->Instance->CR1, I2C_CR1_STOP); + } + else if (hi2c->XferCount == 1U) + { + if (CurrentXferOptions == I2C_NO_OPTION_FRAME) + { + /* Disable Acknowledge */ + CLEAR_BIT(hi2c->Instance->CR1, I2C_CR1_ACK); + + if ((hi2c->Instance->CR2 & I2C_CR2_DMAEN) == I2C_CR2_DMAEN) + { + /* Disable Acknowledge */ + CLEAR_BIT(hi2c->Instance->CR1, I2C_CR1_ACK); + + /* Clear ADDR flag */ + __HAL_I2C_CLEAR_ADDRFLAG(hi2c); + } + else + { + /* Clear ADDR flag */ + __HAL_I2C_CLEAR_ADDRFLAG(hi2c); + + /* Generate Stop */ + SET_BIT(hi2c->Instance->CR1, I2C_CR1_STOP); + } + } + /* Prepare next transfer or stop current transfer */ + else if ((CurrentXferOptions != I2C_FIRST_AND_LAST_FRAME) && (CurrentXferOptions != I2C_LAST_FRAME) \ + && ((Prev_State != I2C_STATE_MASTER_BUSY_RX) || (CurrentXferOptions == I2C_FIRST_FRAME))) + { + if ((CurrentXferOptions != I2C_NEXT_FRAME) && (CurrentXferOptions != I2C_FIRST_AND_NEXT_FRAME) && (CurrentXferOptions != I2C_LAST_FRAME_NO_STOP)) + { + /* Disable Acknowledge */ + CLEAR_BIT(hi2c->Instance->CR1, I2C_CR1_ACK); + } + else + { + /* Enable Acknowledge */ + SET_BIT(hi2c->Instance->CR1, I2C_CR1_ACK); + } + + /* Clear ADDR flag */ + __HAL_I2C_CLEAR_ADDRFLAG(hi2c); + } + else + { + /* Disable Acknowledge */ + CLEAR_BIT(hi2c->Instance->CR1, I2C_CR1_ACK); + + /* Clear ADDR flag */ + __HAL_I2C_CLEAR_ADDRFLAG(hi2c); + + /* Generate Stop */ + SET_BIT(hi2c->Instance->CR1, I2C_CR1_STOP); + } + } + else if (hi2c->XferCount == 2U) + { + if ((CurrentXferOptions != I2C_NEXT_FRAME) && (CurrentXferOptions != I2C_FIRST_AND_NEXT_FRAME) && (CurrentXferOptions != I2C_LAST_FRAME_NO_STOP)) + { + /* Enable Pos */ + SET_BIT(hi2c->Instance->CR1, I2C_CR1_POS); + + /* Clear ADDR flag */ + __HAL_I2C_CLEAR_ADDRFLAG(hi2c); + + /* Disable Acknowledge */ + CLEAR_BIT(hi2c->Instance->CR1, I2C_CR1_ACK); + } + else + { + /* Enable Acknowledge */ + SET_BIT(hi2c->Instance->CR1, I2C_CR1_ACK); + + /* Clear ADDR flag */ + __HAL_I2C_CLEAR_ADDRFLAG(hi2c); + } + + if (((hi2c->Instance->CR2 & I2C_CR2_DMAEN) == I2C_CR2_DMAEN) && ((CurrentXferOptions == I2C_NO_OPTION_FRAME) || (CurrentXferOptions == I2C_FIRST_FRAME) || (CurrentXferOptions == I2C_FIRST_AND_LAST_FRAME) || (CurrentXferOptions == I2C_LAST_FRAME_NO_STOP) || (CurrentXferOptions == I2C_LAST_FRAME))) + { + /* Enable Last DMA bit */ + SET_BIT(hi2c->Instance->CR2, I2C_CR2_LAST); + } + } + else + { + /* Enable Acknowledge */ + SET_BIT(hi2c->Instance->CR1, I2C_CR1_ACK); + + if (((hi2c->Instance->CR2 & I2C_CR2_DMAEN) == I2C_CR2_DMAEN) && ((CurrentXferOptions == I2C_NO_OPTION_FRAME) || (CurrentXferOptions == I2C_FIRST_FRAME) || (CurrentXferOptions == I2C_FIRST_AND_LAST_FRAME) || (CurrentXferOptions == I2C_LAST_FRAME_NO_STOP) || (CurrentXferOptions == I2C_LAST_FRAME))) + { + /* Enable Last DMA bit */ + SET_BIT(hi2c->Instance->CR2, I2C_CR2_LAST); + } + + /* Clear ADDR flag */ + __HAL_I2C_CLEAR_ADDRFLAG(hi2c); + } + + /* Reset Event counter */ + hi2c->EventCount = 0U; + } + } + else + { + /* Clear ADDR flag */ + __HAL_I2C_CLEAR_ADDRFLAG(hi2c); + } +} + +/** + * @brief Handle TXE flag for Slave + * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains + * the configuration information for I2C module + * @retval None + */ +static void I2C_SlaveTransmit_TXE(I2C_HandleTypeDef *hi2c) +{ + /* Declaration of temporary variables to prevent undefined behavior of volatile usage */ + HAL_I2C_StateTypeDef CurrentState = hi2c->State; + + if (hi2c->XferCount != 0U) + { + /* Write data to DR */ + hi2c->Instance->DR = *hi2c->pBuffPtr; + + /* Increment Buffer pointer */ + hi2c->pBuffPtr++; + + /* Update counter */ + hi2c->XferCount--; + + if ((hi2c->XferCount == 0U) && (CurrentState == HAL_I2C_STATE_BUSY_TX_LISTEN)) + { + /* Last Byte is received, disable Interrupt */ + __HAL_I2C_DISABLE_IT(hi2c, I2C_IT_BUF); + + /* Set state at HAL_I2C_STATE_LISTEN */ + hi2c->PreviousState = I2C_STATE_SLAVE_BUSY_TX; + hi2c->State = HAL_I2C_STATE_LISTEN; + + /* Call the corresponding callback to inform upper layer of End of Transfer */ +#if (USE_HAL_I2C_REGISTER_CALLBACKS == 1) + hi2c->SlaveTxCpltCallback(hi2c); +#else + HAL_I2C_SlaveTxCpltCallback(hi2c); +#endif /* USE_HAL_I2C_REGISTER_CALLBACKS */ + } + } +} + +/** + * @brief Handle BTF flag for Slave transmitter + * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains + * the configuration information for I2C module + * @retval None + */ +static void I2C_SlaveTransmit_BTF(I2C_HandleTypeDef *hi2c) +{ + if (hi2c->XferCount != 0U) + { + /* Write data to DR */ + hi2c->Instance->DR = *hi2c->pBuffPtr; + + /* Increment Buffer pointer */ + hi2c->pBuffPtr++; + + /* Update counter */ + hi2c->XferCount--; + } +} + +/** + * @brief Handle RXNE flag for Slave + * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains + * the configuration information for I2C module + * @retval None + */ +static void I2C_SlaveReceive_RXNE(I2C_HandleTypeDef *hi2c) +{ + /* Declaration of temporary variables to prevent undefined behavior of volatile usage */ + HAL_I2C_StateTypeDef CurrentState = hi2c->State; + + if (hi2c->XferCount != 0U) + { + /* Read data from DR */ + *hi2c->pBuffPtr = (uint8_t)hi2c->Instance->DR; + + /* Increment Buffer pointer */ + hi2c->pBuffPtr++; + + /* Update counter */ + hi2c->XferCount--; + + if ((hi2c->XferCount == 0U) && (CurrentState == HAL_I2C_STATE_BUSY_RX_LISTEN)) + { + /* Last Byte is received, disable Interrupt */ + __HAL_I2C_DISABLE_IT(hi2c, I2C_IT_BUF); + + /* Set state at HAL_I2C_STATE_LISTEN */ + hi2c->PreviousState = I2C_STATE_SLAVE_BUSY_RX; + hi2c->State = HAL_I2C_STATE_LISTEN; + + /* Call the corresponding callback to inform upper layer of End of Transfer */ +#if (USE_HAL_I2C_REGISTER_CALLBACKS == 1) + hi2c->SlaveRxCpltCallback(hi2c); +#else + HAL_I2C_SlaveRxCpltCallback(hi2c); +#endif /* USE_HAL_I2C_REGISTER_CALLBACKS */ + } + } +} + +/** + * @brief Handle BTF flag for Slave receiver + * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains + * the configuration information for I2C module + * @retval None + */ +static void I2C_SlaveReceive_BTF(I2C_HandleTypeDef *hi2c) +{ + if (hi2c->XferCount != 0U) + { + /* Read data from DR */ + *hi2c->pBuffPtr = (uint8_t)hi2c->Instance->DR; + + /* Increment Buffer pointer */ + hi2c->pBuffPtr++; + + /* Update counter */ + hi2c->XferCount--; + } +} + +/** + * @brief Handle ADD flag for Slave + * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains + * the configuration information for I2C module + * @param IT2Flags Interrupt2 flags to handle. + * @retval None + */ +static void I2C_Slave_ADDR(I2C_HandleTypeDef *hi2c, uint32_t IT2Flags) +{ + uint8_t TransferDirection = I2C_DIRECTION_RECEIVE; + uint16_t SlaveAddrCode; + + if (((uint32_t)hi2c->State & (uint32_t)HAL_I2C_STATE_LISTEN) == (uint32_t)HAL_I2C_STATE_LISTEN) + { + /* Disable BUF interrupt, BUF enabling is manage through slave specific interface */ + __HAL_I2C_DISABLE_IT(hi2c, (I2C_IT_BUF)); + + /* Transfer Direction requested by Master */ + if (I2C_CHECK_FLAG(IT2Flags, I2C_FLAG_TRA) == RESET) + { + TransferDirection = I2C_DIRECTION_TRANSMIT; + } + + if (I2C_CHECK_FLAG(IT2Flags, I2C_FLAG_DUALF) == RESET) + { + SlaveAddrCode = (uint16_t)hi2c->Init.OwnAddress1; + } + else + { + SlaveAddrCode = (uint16_t)hi2c->Init.OwnAddress2; + } + + /* Process Unlocked */ + __HAL_UNLOCK(hi2c); + + /* Call Slave Addr callback */ +#if (USE_HAL_I2C_REGISTER_CALLBACKS == 1) + hi2c->AddrCallback(hi2c, TransferDirection, SlaveAddrCode); +#else + HAL_I2C_AddrCallback(hi2c, TransferDirection, SlaveAddrCode); +#endif /* USE_HAL_I2C_REGISTER_CALLBACKS */ + } + else + { + /* Clear ADDR flag */ + __HAL_I2C_CLEAR_ADDRFLAG(hi2c); + + /* Process Unlocked */ + __HAL_UNLOCK(hi2c); + } +} + +/** + * @brief Handle STOPF flag for Slave + * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains + * the configuration information for I2C module + * @retval None + */ +static void I2C_Slave_STOPF(I2C_HandleTypeDef *hi2c) +{ + /* Declaration of temporary variable to prevent undefined behavior of volatile usage */ + HAL_I2C_StateTypeDef CurrentState = hi2c->State; + + /* Disable EVT, BUF and ERR interrupt */ + __HAL_I2C_DISABLE_IT(hi2c, I2C_IT_EVT | I2C_IT_BUF | I2C_IT_ERR); + + /* Clear STOPF flag */ + __HAL_I2C_CLEAR_STOPFLAG(hi2c); + + /* Disable Acknowledge */ + CLEAR_BIT(hi2c->Instance->CR1, I2C_CR1_ACK); + + /* If a DMA is ongoing, Update handle size context */ + if ((hi2c->Instance->CR2 & I2C_CR2_DMAEN) == I2C_CR2_DMAEN) + { + if ((CurrentState == HAL_I2C_STATE_BUSY_RX) || (CurrentState == HAL_I2C_STATE_BUSY_RX_LISTEN)) + { + hi2c->XferCount = (uint16_t)(__HAL_DMA_GET_COUNTER(hi2c->hdmarx)); + + if (hi2c->XferCount != 0U) + { + /* Set ErrorCode corresponding to a Non-Acknowledge */ + hi2c->ErrorCode |= HAL_I2C_ERROR_AF; + } + + /* Disable, stop the current DMA */ + CLEAR_BIT(hi2c->Instance->CR2, I2C_CR2_DMAEN); + + /* Abort DMA Xfer if any */ + if (HAL_DMA_GetState(hi2c->hdmarx) != HAL_DMA_STATE_READY) + { + /* Set the I2C DMA Abort callback : + will lead to call HAL_I2C_ErrorCallback() at end of DMA abort procedure */ + hi2c->hdmarx->XferAbortCallback = I2C_DMAAbort; + + /* Abort DMA RX */ + if (HAL_DMA_Abort_IT(hi2c->hdmarx) != HAL_OK) + { + /* Call Directly XferAbortCallback function in case of error */ + hi2c->hdmarx->XferAbortCallback(hi2c->hdmarx); + } + } + } + else + { + hi2c->XferCount = (uint16_t)(__HAL_DMA_GET_COUNTER(hi2c->hdmatx)); + + if (hi2c->XferCount != 0U) + { + /* Set ErrorCode corresponding to a Non-Acknowledge */ + hi2c->ErrorCode |= HAL_I2C_ERROR_AF; + } + + /* Disable, stop the current DMA */ + CLEAR_BIT(hi2c->Instance->CR2, I2C_CR2_DMAEN); + + /* Abort DMA Xfer if any */ + if (HAL_DMA_GetState(hi2c->hdmatx) != HAL_DMA_STATE_READY) + { + /* Set the I2C DMA Abort callback : + will lead to call HAL_I2C_ErrorCallback() at end of DMA abort procedure */ + hi2c->hdmatx->XferAbortCallback = I2C_DMAAbort; + + /* Abort DMA TX */ + if (HAL_DMA_Abort_IT(hi2c->hdmatx) != HAL_OK) + { + /* Call Directly XferAbortCallback function in case of error */ + hi2c->hdmatx->XferAbortCallback(hi2c->hdmatx); + } + } + } + } + + /* All data are not transferred, so set error code accordingly */ + if (hi2c->XferCount != 0U) + { + /* Store Last receive data if any */ + if (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_BTF) == SET) + { + /* Read data from DR */ + *hi2c->pBuffPtr = (uint8_t)hi2c->Instance->DR; + + /* Increment Buffer pointer */ + hi2c->pBuffPtr++; + + /* Update counter */ + hi2c->XferCount--; + } + + /* Store Last receive data if any */ + if (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_RXNE) == SET) + { + /* Read data from DR */ + *hi2c->pBuffPtr = (uint8_t)hi2c->Instance->DR; + + /* Increment Buffer pointer */ + hi2c->pBuffPtr++; + + /* Update counter */ + hi2c->XferCount--; + } + + if (hi2c->XferCount != 0U) + { + /* Set ErrorCode corresponding to a Non-Acknowledge */ + hi2c->ErrorCode |= HAL_I2C_ERROR_AF; + } + } + + if (hi2c->ErrorCode != HAL_I2C_ERROR_NONE) + { + /* Call the corresponding callback to inform upper layer of End of Transfer */ + I2C_ITError(hi2c); + } + else + { + if (CurrentState == HAL_I2C_STATE_BUSY_RX_LISTEN) + { + /* Set state at HAL_I2C_STATE_LISTEN */ + hi2c->PreviousState = I2C_STATE_NONE; + hi2c->State = HAL_I2C_STATE_LISTEN; + + /* Call the corresponding callback to inform upper layer of End of Transfer */ +#if (USE_HAL_I2C_REGISTER_CALLBACKS == 1) + hi2c->SlaveRxCpltCallback(hi2c); +#else + HAL_I2C_SlaveRxCpltCallback(hi2c); +#endif /* USE_HAL_I2C_REGISTER_CALLBACKS */ + } + + if (hi2c->State == HAL_I2C_STATE_LISTEN) + { + hi2c->XferOptions = I2C_NO_OPTION_FRAME; + hi2c->PreviousState = I2C_STATE_NONE; + hi2c->State = HAL_I2C_STATE_READY; + hi2c->Mode = HAL_I2C_MODE_NONE; + + /* Call the Listen Complete callback, to inform upper layer of the end of Listen usecase */ +#if (USE_HAL_I2C_REGISTER_CALLBACKS == 1) + hi2c->ListenCpltCallback(hi2c); +#else + HAL_I2C_ListenCpltCallback(hi2c); +#endif /* USE_HAL_I2C_REGISTER_CALLBACKS */ + } + else + { + if ((hi2c->PreviousState == I2C_STATE_SLAVE_BUSY_RX) || (CurrentState == HAL_I2C_STATE_BUSY_RX)) + { + hi2c->PreviousState = I2C_STATE_NONE; + hi2c->State = HAL_I2C_STATE_READY; + hi2c->Mode = HAL_I2C_MODE_NONE; + +#if (USE_HAL_I2C_REGISTER_CALLBACKS == 1) + hi2c->SlaveRxCpltCallback(hi2c); +#else + HAL_I2C_SlaveRxCpltCallback(hi2c); +#endif /* USE_HAL_I2C_REGISTER_CALLBACKS */ + } + } + } +} + +/** + * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains + * the configuration information for I2C module + * @retval None + */ +static void I2C_Slave_AF(I2C_HandleTypeDef *hi2c) +{ + /* Declaration of temporary variables to prevent undefined behavior of volatile usage */ + HAL_I2C_StateTypeDef CurrentState = hi2c->State; + uint32_t CurrentXferOptions = hi2c->XferOptions; + + if (((CurrentXferOptions == I2C_FIRST_AND_LAST_FRAME) || (CurrentXferOptions == I2C_LAST_FRAME)) && \ + (CurrentState == HAL_I2C_STATE_LISTEN)) + { + hi2c->XferOptions = I2C_NO_OPTION_FRAME; + + /* Disable EVT, BUF and ERR interrupt */ + __HAL_I2C_DISABLE_IT(hi2c, I2C_IT_EVT | I2C_IT_BUF | I2C_IT_ERR); + + /* Clear AF flag */ + __HAL_I2C_CLEAR_FLAG(hi2c, I2C_FLAG_AF); + + /* Disable Acknowledge */ + CLEAR_BIT(hi2c->Instance->CR1, I2C_CR1_ACK); + + hi2c->PreviousState = I2C_STATE_NONE; + hi2c->State = HAL_I2C_STATE_READY; + hi2c->Mode = HAL_I2C_MODE_NONE; + + /* Call the Listen Complete callback, to inform upper layer of the end of Listen usecase */ +#if (USE_HAL_I2C_REGISTER_CALLBACKS == 1) + hi2c->ListenCpltCallback(hi2c); +#else + HAL_I2C_ListenCpltCallback(hi2c); +#endif /* USE_HAL_I2C_REGISTER_CALLBACKS */ + } + else if (CurrentState == HAL_I2C_STATE_BUSY_TX) + { + hi2c->XferOptions = I2C_NO_OPTION_FRAME; + hi2c->PreviousState = I2C_STATE_SLAVE_BUSY_TX; + hi2c->State = HAL_I2C_STATE_READY; + hi2c->Mode = HAL_I2C_MODE_NONE; + + /* Disable EVT, BUF and ERR interrupt */ + __HAL_I2C_DISABLE_IT(hi2c, I2C_IT_EVT | I2C_IT_BUF | I2C_IT_ERR); + + /* Clear AF flag */ + __HAL_I2C_CLEAR_FLAG(hi2c, I2C_FLAG_AF); + + /* Disable Acknowledge */ + CLEAR_BIT(hi2c->Instance->CR1, I2C_CR1_ACK); + +#if (USE_HAL_I2C_REGISTER_CALLBACKS == 1) + hi2c->SlaveTxCpltCallback(hi2c); +#else + HAL_I2C_SlaveTxCpltCallback(hi2c); +#endif /* USE_HAL_I2C_REGISTER_CALLBACKS */ + } + else + { + /* Clear AF flag only */ + /* State Listen, but XferOptions == FIRST or NEXT */ + __HAL_I2C_CLEAR_FLAG(hi2c, I2C_FLAG_AF); + } +} + +/** + * @brief I2C interrupts error process + * @param hi2c I2C handle. + * @retval None + */ +static void I2C_ITError(I2C_HandleTypeDef *hi2c) +{ + /* Declaration of temporary variable to prevent undefined behavior of volatile usage */ + HAL_I2C_StateTypeDef CurrentState = hi2c->State; + HAL_I2C_ModeTypeDef CurrentMode = hi2c->Mode; + uint32_t CurrentError; + + if (((CurrentMode == HAL_I2C_MODE_MASTER) || (CurrentMode == HAL_I2C_MODE_MEM)) && (CurrentState == HAL_I2C_STATE_BUSY_RX)) + { + /* Disable Pos bit in I2C CR1 when error occurred in Master/Mem Receive IT Process */ + hi2c->Instance->CR1 &= ~I2C_CR1_POS; + } + + if (((uint32_t)CurrentState & (uint32_t)HAL_I2C_STATE_LISTEN) == (uint32_t)HAL_I2C_STATE_LISTEN) + { + /* keep HAL_I2C_STATE_LISTEN */ + hi2c->PreviousState = I2C_STATE_NONE; + hi2c->State = HAL_I2C_STATE_LISTEN; + } + else + { + /* If state is an abort treatment on going, don't change state */ + /* This change will be do later */ + if ((READ_BIT(hi2c->Instance->CR2, I2C_CR2_DMAEN) != I2C_CR2_DMAEN) && (CurrentState != HAL_I2C_STATE_ABORT)) + { + hi2c->State = HAL_I2C_STATE_READY; + hi2c->Mode = HAL_I2C_MODE_NONE; + } + hi2c->PreviousState = I2C_STATE_NONE; + } + + /* Abort DMA transfer */ + if (READ_BIT(hi2c->Instance->CR2, I2C_CR2_DMAEN) == I2C_CR2_DMAEN) + { + hi2c->Instance->CR2 &= ~I2C_CR2_DMAEN; + + if (hi2c->hdmatx->State != HAL_DMA_STATE_READY) + { + /* Set the DMA Abort callback : + will lead to call HAL_I2C_ErrorCallback() at end of DMA abort procedure */ + hi2c->hdmatx->XferAbortCallback = I2C_DMAAbort; + + if (HAL_DMA_Abort_IT(hi2c->hdmatx) != HAL_OK) + { + /* Disable I2C peripheral to prevent dummy data in buffer */ + __HAL_I2C_DISABLE(hi2c); + + hi2c->State = HAL_I2C_STATE_READY; + + /* Call Directly XferAbortCallback function in case of error */ + hi2c->hdmatx->XferAbortCallback(hi2c->hdmatx); + } + } + else + { + /* Set the DMA Abort callback : + will lead to call HAL_I2C_ErrorCallback() at end of DMA abort procedure */ + hi2c->hdmarx->XferAbortCallback = I2C_DMAAbort; + + if (HAL_DMA_Abort_IT(hi2c->hdmarx) != HAL_OK) + { + /* Store Last receive data if any */ + if (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_RXNE) == SET) + { + /* Read data from DR */ + *hi2c->pBuffPtr = (uint8_t)hi2c->Instance->DR; + + /* Increment Buffer pointer */ + hi2c->pBuffPtr++; + } + + /* Disable I2C peripheral to prevent dummy data in buffer */ + __HAL_I2C_DISABLE(hi2c); + + hi2c->State = HAL_I2C_STATE_READY; + + /* Call Directly hi2c->hdmarx->XferAbortCallback function in case of error */ + hi2c->hdmarx->XferAbortCallback(hi2c->hdmarx); + } + } + } + else if (hi2c->State == HAL_I2C_STATE_ABORT) + { + hi2c->State = HAL_I2C_STATE_READY; + hi2c->ErrorCode = HAL_I2C_ERROR_NONE; + + /* Store Last receive data if any */ + if (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_RXNE) == SET) + { + /* Read data from DR */ + *hi2c->pBuffPtr = (uint8_t)hi2c->Instance->DR; + + /* Increment Buffer pointer */ + hi2c->pBuffPtr++; + } + + /* Disable I2C peripheral to prevent dummy data in buffer */ + __HAL_I2C_DISABLE(hi2c); + + /* Call the corresponding callback to inform upper layer of End of Transfer */ +#if (USE_HAL_I2C_REGISTER_CALLBACKS == 1) + hi2c->AbortCpltCallback(hi2c); +#else + HAL_I2C_AbortCpltCallback(hi2c); +#endif /* USE_HAL_I2C_REGISTER_CALLBACKS */ + } + else + { + /* Store Last receive data if any */ + if (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_RXNE) == SET) + { + /* Read data from DR */ + *hi2c->pBuffPtr = (uint8_t)hi2c->Instance->DR; + + /* Increment Buffer pointer */ + hi2c->pBuffPtr++; + } + + /* Call user error callback */ +#if (USE_HAL_I2C_REGISTER_CALLBACKS == 1) + hi2c->ErrorCallback(hi2c); +#else + HAL_I2C_ErrorCallback(hi2c); +#endif /* USE_HAL_I2C_REGISTER_CALLBACKS */ + } + + /* STOP Flag is not set after a NACK reception, BusError, ArbitrationLost, OverRun */ + CurrentError = hi2c->ErrorCode; + + if (((CurrentError & HAL_I2C_ERROR_BERR) == HAL_I2C_ERROR_BERR) || \ + ((CurrentError & HAL_I2C_ERROR_ARLO) == HAL_I2C_ERROR_ARLO) || \ + ((CurrentError & HAL_I2C_ERROR_AF) == HAL_I2C_ERROR_AF) || \ + ((CurrentError & HAL_I2C_ERROR_OVR) == HAL_I2C_ERROR_OVR)) + { + /* Disable EVT, BUF and ERR interrupt */ + __HAL_I2C_DISABLE_IT(hi2c, I2C_IT_EVT | I2C_IT_BUF | I2C_IT_ERR); + } + + /* So may inform upper layer that listen phase is stopped */ + /* during NACK error treatment */ + CurrentState = hi2c->State; + if (((hi2c->ErrorCode & HAL_I2C_ERROR_AF) == HAL_I2C_ERROR_AF) && (CurrentState == HAL_I2C_STATE_LISTEN)) + { + hi2c->XferOptions = I2C_NO_OPTION_FRAME; + hi2c->PreviousState = I2C_STATE_NONE; + hi2c->State = HAL_I2C_STATE_READY; + hi2c->Mode = HAL_I2C_MODE_NONE; + + /* Call the Listen Complete callback, to inform upper layer of the end of Listen usecase */ +#if (USE_HAL_I2C_REGISTER_CALLBACKS == 1) + hi2c->ListenCpltCallback(hi2c); +#else + HAL_I2C_ListenCpltCallback(hi2c); +#endif /* USE_HAL_I2C_REGISTER_CALLBACKS */ + } +} + +/** + * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains + * the configuration information for I2C module + * @param DevAddress Target device address: The device 7 bits address value + * in datasheet must be shifted to the left before calling the interface + * @param Timeout Timeout duration + * @param Tickstart Tick start value + * @retval HAL status + */ +static HAL_StatusTypeDef I2C_MasterRequestWrite(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint32_t Timeout, uint32_t Tickstart) +{ + /* Declaration of temporary variable to prevent undefined behavior of volatile usage */ + uint32_t CurrentXferOptions = hi2c->XferOptions; + + /* Generate Start condition if first transfer */ + if ((CurrentXferOptions == I2C_FIRST_AND_LAST_FRAME) || (CurrentXferOptions == I2C_FIRST_FRAME) || (CurrentXferOptions == I2C_NO_OPTION_FRAME)) + { + /* Generate Start */ + SET_BIT(hi2c->Instance->CR1, I2C_CR1_START); + } + else if (hi2c->PreviousState == I2C_STATE_MASTER_BUSY_RX) + { + /* Generate ReStart */ + SET_BIT(hi2c->Instance->CR1, I2C_CR1_START); + } + else + { + /* Do nothing */ + } + + /* Wait until SB flag is set */ + if (I2C_WaitOnFlagUntilTimeout(hi2c, I2C_FLAG_SB, RESET, Timeout, Tickstart) != HAL_OK) + { + if (READ_BIT(hi2c->Instance->CR1, I2C_CR1_START) == I2C_CR1_START) + { + hi2c->ErrorCode = HAL_I2C_WRONG_START; + } + return HAL_TIMEOUT; + } + + if (hi2c->Init.AddressingMode == I2C_ADDRESSINGMODE_7BIT) + { + /* Send slave address */ + hi2c->Instance->DR = I2C_7BIT_ADD_WRITE(DevAddress); + } + else + { + /* Send header of slave address */ + hi2c->Instance->DR = I2C_10BIT_HEADER_WRITE(DevAddress); + + /* Wait until ADD10 flag is set */ + if (I2C_WaitOnMasterAddressFlagUntilTimeout(hi2c, I2C_FLAG_ADD10, Timeout, Tickstart) != HAL_OK) + { + return HAL_ERROR; + } + + /* Send slave address */ + hi2c->Instance->DR = I2C_10BIT_ADDRESS(DevAddress); + } + + /* Wait until ADDR flag is set */ + if (I2C_WaitOnMasterAddressFlagUntilTimeout(hi2c, I2C_FLAG_ADDR, Timeout, Tickstart) != HAL_OK) + { + return HAL_ERROR; + } + + return HAL_OK; +} + +/** + * @brief Master sends target device address for read request. + * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains + * the configuration information for I2C module + * @param DevAddress Target device address: The device 7 bits address value + * in datasheet must be shifted to the left before calling the interface + * @param Timeout Timeout duration + * @param Tickstart Tick start value + * @retval HAL status + */ +static HAL_StatusTypeDef I2C_MasterRequestRead(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint32_t Timeout, uint32_t Tickstart) +{ + /* Declaration of temporary variable to prevent undefined behavior of volatile usage */ + uint32_t CurrentXferOptions = hi2c->XferOptions; + + /* Enable Acknowledge */ + SET_BIT(hi2c->Instance->CR1, I2C_CR1_ACK); + + /* Generate Start condition if first transfer */ + if ((CurrentXferOptions == I2C_FIRST_AND_LAST_FRAME) || (CurrentXferOptions == I2C_FIRST_FRAME) || (CurrentXferOptions == I2C_NO_OPTION_FRAME)) + { + /* Generate Start */ + SET_BIT(hi2c->Instance->CR1, I2C_CR1_START); + } + else if (hi2c->PreviousState == I2C_STATE_MASTER_BUSY_TX) + { + /* Generate ReStart */ + SET_BIT(hi2c->Instance->CR1, I2C_CR1_START); + } + else + { + /* Do nothing */ + } + + /* Wait until SB flag is set */ + if (I2C_WaitOnFlagUntilTimeout(hi2c, I2C_FLAG_SB, RESET, Timeout, Tickstart) != HAL_OK) + { + if (READ_BIT(hi2c->Instance->CR1, I2C_CR1_START) == I2C_CR1_START) + { + hi2c->ErrorCode = HAL_I2C_WRONG_START; + } + return HAL_TIMEOUT; + } + + if (hi2c->Init.AddressingMode == I2C_ADDRESSINGMODE_7BIT) + { + /* Send slave address */ + hi2c->Instance->DR = I2C_7BIT_ADD_READ(DevAddress); + } + else + { + /* Send header of slave address */ + hi2c->Instance->DR = I2C_10BIT_HEADER_WRITE(DevAddress); + + /* Wait until ADD10 flag is set */ + if (I2C_WaitOnMasterAddressFlagUntilTimeout(hi2c, I2C_FLAG_ADD10, Timeout, Tickstart) != HAL_OK) + { + return HAL_ERROR; + } + + /* Send slave address */ + hi2c->Instance->DR = I2C_10BIT_ADDRESS(DevAddress); + + /* Wait until ADDR flag is set */ + if (I2C_WaitOnMasterAddressFlagUntilTimeout(hi2c, I2C_FLAG_ADDR, Timeout, Tickstart) != HAL_OK) + { + return HAL_ERROR; + } + + /* Clear ADDR flag */ + __HAL_I2C_CLEAR_ADDRFLAG(hi2c); + + /* Generate Restart */ + SET_BIT(hi2c->Instance->CR1, I2C_CR1_START); + + /* Wait until SB flag is set */ + if (I2C_WaitOnFlagUntilTimeout(hi2c, I2C_FLAG_SB, RESET, Timeout, Tickstart) != HAL_OK) + { + if (READ_BIT(hi2c->Instance->CR1, I2C_CR1_START) == I2C_CR1_START) + { + hi2c->ErrorCode = HAL_I2C_WRONG_START; + } + return HAL_TIMEOUT; + } + + /* Send header of slave address */ + hi2c->Instance->DR = I2C_10BIT_HEADER_READ(DevAddress); + } + + /* Wait until ADDR flag is set */ + if (I2C_WaitOnMasterAddressFlagUntilTimeout(hi2c, I2C_FLAG_ADDR, Timeout, Tickstart) != HAL_OK) + { + return HAL_ERROR; + } + + return HAL_OK; +} + +/** + * @brief Master sends target device address followed by internal memory address for write request. + * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains + * the configuration information for I2C module + * @param DevAddress Target device address: The device 7 bits address value + * in datasheet must be shifted to the left before calling the interface + * @param MemAddress Internal memory address + * @param MemAddSize Size of internal memory address + * @param Timeout Timeout duration + * @param Tickstart Tick start value + * @retval HAL status + */ +static HAL_StatusTypeDef I2C_RequestMemoryWrite(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint16_t MemAddress, uint16_t MemAddSize, uint32_t Timeout, uint32_t Tickstart) +{ + /* Generate Start */ + SET_BIT(hi2c->Instance->CR1, I2C_CR1_START); + + /* Wait until SB flag is set */ + if (I2C_WaitOnFlagUntilTimeout(hi2c, I2C_FLAG_SB, RESET, Timeout, Tickstart) != HAL_OK) + { + if (READ_BIT(hi2c->Instance->CR1, I2C_CR1_START) == I2C_CR1_START) + { + hi2c->ErrorCode = HAL_I2C_WRONG_START; + } + return HAL_TIMEOUT; + } + + /* Send slave address */ + hi2c->Instance->DR = I2C_7BIT_ADD_WRITE(DevAddress); + + /* Wait until ADDR flag is set */ + if (I2C_WaitOnMasterAddressFlagUntilTimeout(hi2c, I2C_FLAG_ADDR, Timeout, Tickstart) != HAL_OK) + { + return HAL_ERROR; + } + + /* Clear ADDR flag */ + __HAL_I2C_CLEAR_ADDRFLAG(hi2c); + + /* Wait until TXE flag is set */ + if (I2C_WaitOnTXEFlagUntilTimeout(hi2c, Timeout, Tickstart) != HAL_OK) + { + if (hi2c->ErrorCode == HAL_I2C_ERROR_AF) + { + /* Generate Stop */ + SET_BIT(hi2c->Instance->CR1, I2C_CR1_STOP); + } + return HAL_ERROR; + } + + /* If Memory address size is 8Bit */ + if (MemAddSize == I2C_MEMADD_SIZE_8BIT) + { + /* Send Memory Address */ + hi2c->Instance->DR = I2C_MEM_ADD_LSB(MemAddress); + } + /* If Memory address size is 16Bit */ + else + { + /* Send MSB of Memory Address */ + hi2c->Instance->DR = I2C_MEM_ADD_MSB(MemAddress); + + /* Wait until TXE flag is set */ + if (I2C_WaitOnTXEFlagUntilTimeout(hi2c, Timeout, Tickstart) != HAL_OK) + { + if (hi2c->ErrorCode == HAL_I2C_ERROR_AF) + { + /* Generate Stop */ + SET_BIT(hi2c->Instance->CR1, I2C_CR1_STOP); + } + return HAL_ERROR; + } + + /* Send LSB of Memory Address */ + hi2c->Instance->DR = I2C_MEM_ADD_LSB(MemAddress); + } + + return HAL_OK; +} + +/** + * @brief Master sends target device address followed by internal memory address for read request. + * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains + * the configuration information for I2C module + * @param DevAddress Target device address: The device 7 bits address value + * in datasheet must be shifted to the left before calling the interface + * @param MemAddress Internal memory address + * @param MemAddSize Size of internal memory address + * @param Timeout Timeout duration + * @param Tickstart Tick start value + * @retval HAL status + */ +static HAL_StatusTypeDef I2C_RequestMemoryRead(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint16_t MemAddress, uint16_t MemAddSize, uint32_t Timeout, uint32_t Tickstart) +{ + /* Enable Acknowledge */ + SET_BIT(hi2c->Instance->CR1, I2C_CR1_ACK); + + /* Generate Start */ + SET_BIT(hi2c->Instance->CR1, I2C_CR1_START); + + /* Wait until SB flag is set */ + if (I2C_WaitOnFlagUntilTimeout(hi2c, I2C_FLAG_SB, RESET, Timeout, Tickstart) != HAL_OK) + { + if (READ_BIT(hi2c->Instance->CR1, I2C_CR1_START) == I2C_CR1_START) + { + hi2c->ErrorCode = HAL_I2C_WRONG_START; + } + return HAL_TIMEOUT; + } + + /* Send slave address */ + hi2c->Instance->DR = I2C_7BIT_ADD_WRITE(DevAddress); + + /* Wait until ADDR flag is set */ + if (I2C_WaitOnMasterAddressFlagUntilTimeout(hi2c, I2C_FLAG_ADDR, Timeout, Tickstart) != HAL_OK) + { + return HAL_ERROR; + } + + /* Clear ADDR flag */ + __HAL_I2C_CLEAR_ADDRFLAG(hi2c); + + /* Wait until TXE flag is set */ + if (I2C_WaitOnTXEFlagUntilTimeout(hi2c, Timeout, Tickstart) != HAL_OK) + { + if (hi2c->ErrorCode == HAL_I2C_ERROR_AF) + { + /* Generate Stop */ + SET_BIT(hi2c->Instance->CR1, I2C_CR1_STOP); + } + return HAL_ERROR; + } + + /* If Memory address size is 8Bit */ + if (MemAddSize == I2C_MEMADD_SIZE_8BIT) + { + /* Send Memory Address */ + hi2c->Instance->DR = I2C_MEM_ADD_LSB(MemAddress); + } + /* If Memory address size is 16Bit */ + else + { + /* Send MSB of Memory Address */ + hi2c->Instance->DR = I2C_MEM_ADD_MSB(MemAddress); + + /* Wait until TXE flag is set */ + if (I2C_WaitOnTXEFlagUntilTimeout(hi2c, Timeout, Tickstart) != HAL_OK) + { + if (hi2c->ErrorCode == HAL_I2C_ERROR_AF) + { + /* Generate Stop */ + SET_BIT(hi2c->Instance->CR1, I2C_CR1_STOP); + } + return HAL_ERROR; + } + + /* Send LSB of Memory Address */ + hi2c->Instance->DR = I2C_MEM_ADD_LSB(MemAddress); + } + + /* Wait until TXE flag is set */ + if (I2C_WaitOnTXEFlagUntilTimeout(hi2c, Timeout, Tickstart) != HAL_OK) + { + if (hi2c->ErrorCode == HAL_I2C_ERROR_AF) + { + /* Generate Stop */ + SET_BIT(hi2c->Instance->CR1, I2C_CR1_STOP); + } + return HAL_ERROR; + } + + /* Generate Restart */ + SET_BIT(hi2c->Instance->CR1, I2C_CR1_START); + + /* Wait until SB flag is set */ + if (I2C_WaitOnFlagUntilTimeout(hi2c, I2C_FLAG_SB, RESET, Timeout, Tickstart) != HAL_OK) + { + if (READ_BIT(hi2c->Instance->CR1, I2C_CR1_START) == I2C_CR1_START) + { + hi2c->ErrorCode = HAL_I2C_WRONG_START; + } + return HAL_TIMEOUT; + } + + /* Send slave address */ + hi2c->Instance->DR = I2C_7BIT_ADD_READ(DevAddress); + + /* Wait until ADDR flag is set */ + if (I2C_WaitOnMasterAddressFlagUntilTimeout(hi2c, I2C_FLAG_ADDR, Timeout, Tickstart) != HAL_OK) + { + return HAL_ERROR; + } + + return HAL_OK; +} + +/** + * @brief DMA I2C process complete callback. + * @param hdma DMA handle + * @retval None + */ +static void I2C_DMAXferCplt(DMA_HandleTypeDef *hdma) +{ + I2C_HandleTypeDef *hi2c = (I2C_HandleTypeDef *)((DMA_HandleTypeDef *)hdma)->Parent; /* Derogation MISRAC2012-Rule-11.5 */ + + /* Declaration of temporary variable to prevent undefined behavior of volatile usage */ + HAL_I2C_StateTypeDef CurrentState = hi2c->State; + HAL_I2C_ModeTypeDef CurrentMode = hi2c->Mode; + uint32_t CurrentXferOptions = hi2c->XferOptions; + + /* Disable EVT and ERR interrupt */ + __HAL_I2C_DISABLE_IT(hi2c, I2C_IT_EVT | I2C_IT_ERR); + + /* Clear Complete callback */ + if (hi2c->hdmatx != NULL) + { + hi2c->hdmatx->XferCpltCallback = NULL; + } + if (hi2c->hdmarx != NULL) + { + hi2c->hdmarx->XferCpltCallback = NULL; + } + + if ((((uint32_t)CurrentState & (uint32_t)HAL_I2C_STATE_BUSY_TX) == (uint32_t)HAL_I2C_STATE_BUSY_TX) || ((((uint32_t)CurrentState & (uint32_t)HAL_I2C_STATE_BUSY_RX) == (uint32_t)HAL_I2C_STATE_BUSY_RX) && (CurrentMode == HAL_I2C_MODE_SLAVE))) + { + /* Disable DMA Request */ + CLEAR_BIT(hi2c->Instance->CR2, I2C_CR2_DMAEN); + + hi2c->XferCount = 0U; + + if (CurrentState == HAL_I2C_STATE_BUSY_TX_LISTEN) + { + /* Set state at HAL_I2C_STATE_LISTEN */ + hi2c->PreviousState = I2C_STATE_SLAVE_BUSY_TX; + hi2c->State = HAL_I2C_STATE_LISTEN; + + /* Call the corresponding callback to inform upper layer of End of Transfer */ +#if (USE_HAL_I2C_REGISTER_CALLBACKS == 1) + hi2c->SlaveTxCpltCallback(hi2c); +#else + HAL_I2C_SlaveTxCpltCallback(hi2c); +#endif /* USE_HAL_I2C_REGISTER_CALLBACKS */ + } + else if (CurrentState == HAL_I2C_STATE_BUSY_RX_LISTEN) + { + /* Set state at HAL_I2C_STATE_LISTEN */ + hi2c->PreviousState = I2C_STATE_SLAVE_BUSY_RX; + hi2c->State = HAL_I2C_STATE_LISTEN; + + /* Call the corresponding callback to inform upper layer of End of Transfer */ +#if (USE_HAL_I2C_REGISTER_CALLBACKS == 1) + hi2c->SlaveRxCpltCallback(hi2c); +#else + HAL_I2C_SlaveRxCpltCallback(hi2c); +#endif /* USE_HAL_I2C_REGISTER_CALLBACKS */ + } + else + { + /* Do nothing */ + } + + /* Enable EVT and ERR interrupt to treat end of transfer in IRQ handler */ + __HAL_I2C_ENABLE_IT(hi2c, I2C_IT_EVT | I2C_IT_ERR); + } + /* Check current Mode, in case of treatment DMA handler have been preempted by a prior interrupt */ + else if (hi2c->Mode != HAL_I2C_MODE_NONE) + { + if (hi2c->XferCount == (uint16_t)1) + { + /* Disable Acknowledge */ + CLEAR_BIT(hi2c->Instance->CR1, I2C_CR1_ACK); + } + + /* Disable EVT and ERR interrupt */ + __HAL_I2C_DISABLE_IT(hi2c, I2C_IT_EVT | I2C_IT_ERR); + + /* Prepare next transfer or stop current transfer */ + if ((CurrentXferOptions == I2C_NO_OPTION_FRAME) || (CurrentXferOptions == I2C_FIRST_AND_LAST_FRAME) || (CurrentXferOptions == I2C_OTHER_AND_LAST_FRAME) || (CurrentXferOptions == I2C_LAST_FRAME)) + { + /* Generate Stop */ + SET_BIT(hi2c->Instance->CR1, I2C_CR1_STOP); + } + + /* Disable Last DMA */ + CLEAR_BIT(hi2c->Instance->CR2, I2C_CR2_LAST); + + /* Disable DMA Request */ + CLEAR_BIT(hi2c->Instance->CR2, I2C_CR2_DMAEN); + + hi2c->XferCount = 0U; + + /* Check if Errors has been detected during transfer */ + if (hi2c->ErrorCode != HAL_I2C_ERROR_NONE) + { +#if (USE_HAL_I2C_REGISTER_CALLBACKS == 1) + hi2c->ErrorCallback(hi2c); +#else + HAL_I2C_ErrorCallback(hi2c); +#endif /* USE_HAL_I2C_REGISTER_CALLBACKS */ + } + else + { + hi2c->State = HAL_I2C_STATE_READY; + + if (hi2c->Mode == HAL_I2C_MODE_MEM) + { + hi2c->Mode = HAL_I2C_MODE_NONE; + hi2c->PreviousState = I2C_STATE_NONE; + +#if (USE_HAL_I2C_REGISTER_CALLBACKS == 1) + hi2c->MemRxCpltCallback(hi2c); +#else + HAL_I2C_MemRxCpltCallback(hi2c); +#endif /* USE_HAL_I2C_REGISTER_CALLBACKS */ + } + else + { + hi2c->Mode = HAL_I2C_MODE_NONE; + hi2c->PreviousState = I2C_STATE_MASTER_BUSY_RX; + +#if (USE_HAL_I2C_REGISTER_CALLBACKS == 1) + hi2c->MasterRxCpltCallback(hi2c); +#else + HAL_I2C_MasterRxCpltCallback(hi2c); +#endif /* USE_HAL_I2C_REGISTER_CALLBACKS */ + } + } + } + else + { + /* Do nothing */ + } +} + +/** + * @brief DMA I2C communication error callback. + * @param hdma DMA handle + * @retval None + */ +static void I2C_DMAError(DMA_HandleTypeDef *hdma) +{ + I2C_HandleTypeDef *hi2c = (I2C_HandleTypeDef *)((DMA_HandleTypeDef *)hdma)->Parent; /* Derogation MISRAC2012-Rule-11.5 */ + + /* Clear Complete callback */ + if (hi2c->hdmatx != NULL) + { + hi2c->hdmatx->XferCpltCallback = NULL; + } + if (hi2c->hdmarx != NULL) + { + hi2c->hdmarx->XferCpltCallback = NULL; + } + + /* Disable Acknowledge */ + CLEAR_BIT(hi2c->Instance->CR1, I2C_CR1_ACK); + + hi2c->XferCount = 0U; + hi2c->State = HAL_I2C_STATE_READY; + hi2c->Mode = HAL_I2C_MODE_NONE; + hi2c->ErrorCode |= HAL_I2C_ERROR_DMA; + +#if (USE_HAL_I2C_REGISTER_CALLBACKS == 1) + hi2c->ErrorCallback(hi2c); +#else + HAL_I2C_ErrorCallback(hi2c); +#endif /* USE_HAL_I2C_REGISTER_CALLBACKS */ +} + +/** + * @brief DMA I2C communication abort callback + * (To be called at end of DMA Abort procedure). + * @param hdma DMA handle. + * @retval None + */ +static void I2C_DMAAbort(DMA_HandleTypeDef *hdma) +{ + __IO uint32_t count = 0U; + I2C_HandleTypeDef *hi2c = (I2C_HandleTypeDef *)((DMA_HandleTypeDef *)hdma)->Parent; /* Derogation MISRAC2012-Rule-11.5 */ + + /* Declaration of temporary variable to prevent undefined behavior of volatile usage */ + HAL_I2C_StateTypeDef CurrentState = hi2c->State; + + /* During abort treatment, check that there is no pending STOP request */ + /* Wait until STOP flag is reset */ + count = I2C_TIMEOUT_FLAG * (SystemCoreClock / 25U / 1000U); + do + { + if (count == 0U) + { + hi2c->ErrorCode |= HAL_I2C_ERROR_TIMEOUT; + break; + } + count--; + } + while (READ_BIT(hi2c->Instance->CR1, I2C_CR1_STOP) == I2C_CR1_STOP); + + /* Clear Complete callback */ + if (hi2c->hdmatx != NULL) + { + hi2c->hdmatx->XferCpltCallback = NULL; + } + if (hi2c->hdmarx != NULL) + { + hi2c->hdmarx->XferCpltCallback = NULL; + } + + /* Disable Acknowledge */ + CLEAR_BIT(hi2c->Instance->CR1, I2C_CR1_ACK); + + hi2c->XferCount = 0U; + + /* Reset XferAbortCallback */ + if (hi2c->hdmatx != NULL) + { + hi2c->hdmatx->XferAbortCallback = NULL; + } + if (hi2c->hdmarx != NULL) + { + hi2c->hdmarx->XferAbortCallback = NULL; + } + + /* Disable I2C peripheral to prevent dummy data in buffer */ + __HAL_I2C_DISABLE(hi2c); + + /* Check if come from abort from user */ + if (hi2c->State == HAL_I2C_STATE_ABORT) + { + hi2c->State = HAL_I2C_STATE_READY; + hi2c->Mode = HAL_I2C_MODE_NONE; + hi2c->ErrorCode = HAL_I2C_ERROR_NONE; + + /* Call the corresponding callback to inform upper layer of End of Transfer */ +#if (USE_HAL_I2C_REGISTER_CALLBACKS == 1) + hi2c->AbortCpltCallback(hi2c); +#else + HAL_I2C_AbortCpltCallback(hi2c); +#endif /* USE_HAL_I2C_REGISTER_CALLBACKS */ + } + else + { + if (((uint32_t)CurrentState & (uint32_t)HAL_I2C_STATE_LISTEN) == (uint32_t)HAL_I2C_STATE_LISTEN) + { + /* Renable I2C peripheral */ + __HAL_I2C_ENABLE(hi2c); + + /* Enable Acknowledge */ + SET_BIT(hi2c->Instance->CR1, I2C_CR1_ACK); + + /* keep HAL_I2C_STATE_LISTEN */ + hi2c->PreviousState = I2C_STATE_NONE; + hi2c->State = HAL_I2C_STATE_LISTEN; + } + else + { + hi2c->State = HAL_I2C_STATE_READY; + hi2c->Mode = HAL_I2C_MODE_NONE; + } + + /* Call the corresponding callback to inform upper layer of End of Transfer */ +#if (USE_HAL_I2C_REGISTER_CALLBACKS == 1) + hi2c->ErrorCallback(hi2c); +#else + HAL_I2C_ErrorCallback(hi2c); +#endif /* USE_HAL_I2C_REGISTER_CALLBACKS */ + } +} + +/** + * @brief This function handles I2C Communication Timeout. + * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains + * the configuration information for I2C module + * @param Flag specifies the I2C flag to check. + * @param Status The new Flag status (SET or RESET). + * @param Timeout Timeout duration + * @param Tickstart Tick start value + * @retval HAL status + */ +static HAL_StatusTypeDef I2C_WaitOnFlagUntilTimeout(I2C_HandleTypeDef *hi2c, uint32_t Flag, FlagStatus Status, uint32_t Timeout, uint32_t Tickstart) +{ + /* Wait until flag is set */ + while (__HAL_I2C_GET_FLAG(hi2c, Flag) == Status) + { + /* Check for the Timeout */ + if (Timeout != HAL_MAX_DELAY) + { + if (((HAL_GetTick() - Tickstart) > Timeout) || (Timeout == 0U)) + { + hi2c->PreviousState = I2C_STATE_NONE; + hi2c->State = HAL_I2C_STATE_READY; + hi2c->Mode = HAL_I2C_MODE_NONE; + hi2c->ErrorCode |= HAL_I2C_ERROR_TIMEOUT; + + /* Process Unlocked */ + __HAL_UNLOCK(hi2c); + + return HAL_ERROR; + } + } + } + return HAL_OK; +} + +/** + * @brief This function handles I2C Communication Timeout for Master addressing phase. + * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains + * the configuration information for I2C module + * @param Flag specifies the I2C flag to check. + * @param Timeout Timeout duration + * @param Tickstart Tick start value + * @retval HAL status + */ +static HAL_StatusTypeDef I2C_WaitOnMasterAddressFlagUntilTimeout(I2C_HandleTypeDef *hi2c, uint32_t Flag, uint32_t Timeout, uint32_t Tickstart) +{ + while (__HAL_I2C_GET_FLAG(hi2c, Flag) == RESET) + { + if (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_AF) == SET) + { + /* Generate Stop */ + SET_BIT(hi2c->Instance->CR1, I2C_CR1_STOP); + + /* Clear AF Flag */ + __HAL_I2C_CLEAR_FLAG(hi2c, I2C_FLAG_AF); + + hi2c->PreviousState = I2C_STATE_NONE; + hi2c->State = HAL_I2C_STATE_READY; + hi2c->Mode = HAL_I2C_MODE_NONE; + hi2c->ErrorCode |= HAL_I2C_ERROR_AF; + + /* Process Unlocked */ + __HAL_UNLOCK(hi2c); + + return HAL_ERROR; + } + + /* Check for the Timeout */ + if (Timeout != HAL_MAX_DELAY) + { + if (((HAL_GetTick() - Tickstart) > Timeout) || (Timeout == 0U)) + { + hi2c->PreviousState = I2C_STATE_NONE; + hi2c->State = HAL_I2C_STATE_READY; + hi2c->Mode = HAL_I2C_MODE_NONE; + hi2c->ErrorCode |= HAL_I2C_ERROR_TIMEOUT; + + /* Process Unlocked */ + __HAL_UNLOCK(hi2c); + + return HAL_ERROR; + } + } + } + return HAL_OK; +} + +/** + * @brief This function handles I2C Communication Timeout for specific usage of TXE flag. + * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains + * the configuration information for the specified I2C. + * @param Timeout Timeout duration + * @param Tickstart Tick start value + * @retval HAL status + */ +static HAL_StatusTypeDef I2C_WaitOnTXEFlagUntilTimeout(I2C_HandleTypeDef *hi2c, uint32_t Timeout, uint32_t Tickstart) +{ + while (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_TXE) == RESET) + { + /* Check if a NACK is detected */ + if (I2C_IsAcknowledgeFailed(hi2c) != HAL_OK) + { + return HAL_ERROR; + } + + /* Check for the Timeout */ + if (Timeout != HAL_MAX_DELAY) + { + if (((HAL_GetTick() - Tickstart) > Timeout) || (Timeout == 0U)) + { + hi2c->PreviousState = I2C_STATE_NONE; + hi2c->State = HAL_I2C_STATE_READY; + hi2c->Mode = HAL_I2C_MODE_NONE; + hi2c->ErrorCode |= HAL_I2C_ERROR_TIMEOUT; + + /* Process Unlocked */ + __HAL_UNLOCK(hi2c); + + return HAL_ERROR; + } + } + } + return HAL_OK; +} + +/** + * @brief This function handles I2C Communication Timeout for specific usage of BTF flag. + * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains + * the configuration information for the specified I2C. + * @param Timeout Timeout duration + * @param Tickstart Tick start value + * @retval HAL status + */ +static HAL_StatusTypeDef I2C_WaitOnBTFFlagUntilTimeout(I2C_HandleTypeDef *hi2c, uint32_t Timeout, uint32_t Tickstart) +{ + while (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_BTF) == RESET) + { + /* Check if a NACK is detected */ + if (I2C_IsAcknowledgeFailed(hi2c) != HAL_OK) + { + return HAL_ERROR; + } + + /* Check for the Timeout */ + if (Timeout != HAL_MAX_DELAY) + { + if (((HAL_GetTick() - Tickstart) > Timeout) || (Timeout == 0U)) + { + hi2c->PreviousState = I2C_STATE_NONE; + hi2c->State = HAL_I2C_STATE_READY; + hi2c->Mode = HAL_I2C_MODE_NONE; + hi2c->ErrorCode |= HAL_I2C_ERROR_TIMEOUT; + + /* Process Unlocked */ + __HAL_UNLOCK(hi2c); + + return HAL_ERROR; + } + } + } + return HAL_OK; +} + +/** + * @brief This function handles I2C Communication Timeout for specific usage of STOP flag. + * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains + * the configuration information for the specified I2C. + * @param Timeout Timeout duration + * @param Tickstart Tick start value + * @retval HAL status + */ +static HAL_StatusTypeDef I2C_WaitOnSTOPFlagUntilTimeout(I2C_HandleTypeDef *hi2c, uint32_t Timeout, uint32_t Tickstart) +{ + while (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_STOPF) == RESET) + { + /* Check if a NACK is detected */ + if (I2C_IsAcknowledgeFailed(hi2c) != HAL_OK) + { + return HAL_ERROR; + } + + /* Check for the Timeout */ + if (((HAL_GetTick() - Tickstart) > Timeout) || (Timeout == 0U)) + { + hi2c->PreviousState = I2C_STATE_NONE; + hi2c->State = HAL_I2C_STATE_READY; + hi2c->Mode = HAL_I2C_MODE_NONE; + hi2c->ErrorCode |= HAL_I2C_ERROR_TIMEOUT; + + /* Process Unlocked */ + __HAL_UNLOCK(hi2c); + + return HAL_ERROR; + } + } + return HAL_OK; +} + +/** + * @brief This function handles I2C Communication Timeout for specific usage of STOP request through Interrupt. + * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains + * the configuration information for the specified I2C. + * @retval HAL status + */ +static HAL_StatusTypeDef I2C_WaitOnSTOPRequestThroughIT(I2C_HandleTypeDef *hi2c) +{ + __IO uint32_t count = 0U; + + /* Wait until STOP flag is reset */ + count = I2C_TIMEOUT_STOP_FLAG * (SystemCoreClock / 25U / 1000U); + do + { + count--; + if (count == 0U) + { + hi2c->ErrorCode |= HAL_I2C_ERROR_TIMEOUT; + + return HAL_ERROR; + } + } + while (READ_BIT(hi2c->Instance->CR1, I2C_CR1_STOP) == I2C_CR1_STOP); + + return HAL_OK; +} + +/** + * @brief This function handles I2C Communication Timeout for specific usage of RXNE flag. + * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains + * the configuration information for the specified I2C. + * @param Timeout Timeout duration + * @param Tickstart Tick start value + * @retval HAL status + */ +static HAL_StatusTypeDef I2C_WaitOnRXNEFlagUntilTimeout(I2C_HandleTypeDef *hi2c, uint32_t Timeout, uint32_t Tickstart) +{ + + while (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_RXNE) == RESET) + { + /* Check if a STOPF is detected */ + if (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_STOPF) == SET) + { + /* Clear STOP Flag */ + __HAL_I2C_CLEAR_FLAG(hi2c, I2C_FLAG_STOPF); + + hi2c->PreviousState = I2C_STATE_NONE; + hi2c->State = HAL_I2C_STATE_READY; + hi2c->Mode = HAL_I2C_MODE_NONE; + hi2c->ErrorCode |= HAL_I2C_ERROR_NONE; + + /* Process Unlocked */ + __HAL_UNLOCK(hi2c); + + return HAL_ERROR; + } + + /* Check for the Timeout */ + if (((HAL_GetTick() - Tickstart) > Timeout) || (Timeout == 0U)) + { + hi2c->PreviousState = I2C_STATE_NONE; + hi2c->State = HAL_I2C_STATE_READY; + hi2c->Mode = HAL_I2C_MODE_NONE; + hi2c->ErrorCode |= HAL_I2C_ERROR_TIMEOUT; + + /* Process Unlocked */ + __HAL_UNLOCK(hi2c); + + return HAL_ERROR; + } + } + return HAL_OK; +} + +/** + * @brief This function handles Acknowledge failed detection during an I2C Communication. + * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains + * the configuration information for the specified I2C. + * @retval HAL status + */ +static HAL_StatusTypeDef I2C_IsAcknowledgeFailed(I2C_HandleTypeDef *hi2c) +{ + if (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_AF) == SET) + { + /* Clear NACKF Flag */ + __HAL_I2C_CLEAR_FLAG(hi2c, I2C_FLAG_AF); + + hi2c->PreviousState = I2C_STATE_NONE; + hi2c->State = HAL_I2C_STATE_READY; + hi2c->Mode = HAL_I2C_MODE_NONE; + hi2c->ErrorCode |= HAL_I2C_ERROR_AF; + + /* Process Unlocked */ + __HAL_UNLOCK(hi2c); + + return HAL_ERROR; + } + return HAL_OK; +} + +/** + * @brief Convert I2Cx OTHER_xxx XferOptions to functional XferOptions. + * @param hi2c I2C handle. + * @retval None + */ +static void I2C_ConvertOtherXferOptions(I2C_HandleTypeDef *hi2c) +{ + /* if user set XferOptions to I2C_OTHER_FRAME */ + /* it request implicitly to generate a restart condition */ + /* set XferOptions to I2C_FIRST_FRAME */ + if (hi2c->XferOptions == I2C_OTHER_FRAME) + { + hi2c->XferOptions = I2C_FIRST_FRAME; + } + /* else if user set XferOptions to I2C_OTHER_AND_LAST_FRAME */ + /* it request implicitly to generate a restart condition */ + /* then generate a stop condition at the end of transfer */ + /* set XferOptions to I2C_FIRST_AND_LAST_FRAME */ + else if (hi2c->XferOptions == I2C_OTHER_AND_LAST_FRAME) + { + hi2c->XferOptions = I2C_FIRST_AND_LAST_FRAME; + } + else + { + /* Nothing to do */ + } +} + +/** + * @} + */ + +#endif /* HAL_I2C_MODULE_ENABLED */ +/** + * @} + */ + +/** + * @} + */ + +/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ diff --git a/HW_Devices/eeprom.c b/HW_Devices/eeprom.c new file mode 100644 index 0000000..ea7b6c6 --- /dev/null +++ b/HW_Devices/eeprom.c @@ -0,0 +1,93 @@ +/* + * eeprom.c + * + * Created on: Aug 8, 2021 + * Author: wuwenfeng + */ + +#include "eeprom.h" + +extern I2C_HandleTypeDef hi2c2; + +void IIC_SAND_DATE(uint16_t DEVICE_ADD,uint16_t IN_DEVICE_ADD,char *DATAS,uint16_t LONG) +{ + HAL_I2C_Mem_Write(&hi2c2,DEVICE_ADD,IN_DEVICE_ADD,I2C_MEMADD_SIZE_8BIT,DATAS,LONG,100); +} + +void IIC_READ_DATE(uint16_t DEVICE_ADD,uint16_t IN_DEVICE_ADD,char *DATAS,uint16_t LONG) +{ + HAL_I2C_Mem_Read(&hi2c2,DEVICE_ADD,IN_DEVICE_ADD,I2C_MEMADD_SIZE_8BIT,DATAS,LONG,100); +} + +eeprom_write_buff_info eeprom_write_buffer; +void EPPROM_SLOWWRITE_INIT() +{ + eeprom_write_buffer.buff=NULL; + eeprom_write_buffer.end=NULL; + eeprom_write_buffer.head=NULL; + eeprom_write_buffer.save_timeout=5; + eeprom_write_buffer.save_busy=0; +} + +void EEPROM_SLOWWRITE_SERVER() +{ + eeprom_write_buff *buff; + char data; + if(eeprom_write_buffer.save_busy) + { + if(HAL_GetTick()>eeprom_write_buffer.save_time) + { + eeprom_write_buffer.save_busy=0; + } + }else + { + if(eeprom_write_buffer.head!=NULL) + { + eeprom_write_buffer.save_busy=1; + eeprom_write_buffer.save_time=HAL_GetTick()+eeprom_write_buffer.save_timeout; + buff=eeprom_write_buffer.head->next; + data=eeprom_write_buffer.head->date; + IIC_SAND_DATE(EEPROM_ADDRESS,eeprom_write_buffer.head->add,&data,1); + free(eeprom_write_buffer.head); + eeprom_write_buffer.head=buff; + } + + } +} + +void EEPROM_READ_BATY(uint16_t IN_DEVICE_ADD,char *DATAS,uint16_t LONG) +{ + IIC_READ_DATE(EEPROM_ADDRESS,IN_DEVICE_ADD,DATAS,LONG); +} + +void EEPROM_WRITE_BATY(uint16_t IN_DEVICE_ADD,char *DATAS,uint16_t LONG) +{ + //IIC_SAND_DATE(EEPROM_ADDRESS,IN_DEVICE_ADD,DATAS,LONG); + uint16_t addoffset=0; + + + eeprom_write_buff *buff; + eeprom_write_buff *buff2; + while(LONG--) + { + buff =(eeprom_write_buff*)malloc(sizeof(eeprom_write_buff)); + if(buff!=NULL) + { + buff->add=IN_DEVICE_ADD+addoffset; + buff->date=DATAS[addoffset]; + buff->next=NULL; + }else{return ;} + if(eeprom_write_buffer.head==NULL) + { + eeprom_write_buffer.head=buff; + eeprom_write_buffer.end=buff; + }else + { + buff2=eeprom_write_buffer.end; + buff2->next=buff; + eeprom_write_buffer.end=buff; + } + addoffset++; + } + +} diff --git a/HW_Devices/eeprom.h b/HW_Devices/eeprom.h new file mode 100644 index 0000000..5e1fd79 --- /dev/null +++ b/HW_Devices/eeprom.h @@ -0,0 +1,38 @@ +/* + * eeprom.h + * + * Created on: Aug 8, 2021 + * Author: wuwenfeng + */ + +#ifndef EEPROM_H_ +#define EEPROM_H_ +#include "main.h" + +#define EEPROM_ADDRESS 0xa0 + +typedef struct eeprom_write_buff +{ + struct eeprom_write_buff *next; + uint16_t add; + char date; +}eeprom_write_buff; + +typedef struct eeprom_write_buff_info +{ + eeprom_write_buff *buff; + eeprom_write_buff *head; + eeprom_write_buff *end; + uint32_t save_time; + uint8_t save_timeout; + uint8_t save_busy:1; + +}eeprom_write_buff_info; + +void EPPROM_SLOWWRITE_INIT(); +void EEPROM_SLOWWRITE_SERVER(); + +void EEPROM_READ_BATY(uint16_t IN_DEVICE_ADD,char *DATAS,uint16_t LONG); +void EEPROM_WRITE_BATY(uint16_t IN_DEVICE_ADD,char *DATAS,uint16_t LONG); + +#endif /* EEPROM_H_ */ diff --git a/HW_Devices/touch.c b/HW_Devices/touch.c index 8ee3621..22a91f4 100644 --- a/HW_Devices/touch.c +++ b/HW_Devices/touch.c @@ -7,6 +7,8 @@ #include "touch.h" #include "LCD.h" +#include "eeprom.h" + //默认为touchtype=0的数据. #define CMD_RDX 0X90 #define CMD_RDY 0XD0 @@ -149,6 +151,13 @@ void TP_DrwaTrage(int x,int y,int r) void TP_adjustment() { + //判断是否需要校准,从eeprom获取数据 + EEPROM_READ_BATY(16,(char *)&tconfig,sizeof(touch_config)); + if(tconfig.begin==0xab&&tconfig.end==0xcd) + { + return; + } + char str[64]; uint16_t y_adc,x_adc,step=0,r=10; uint16_t y1,y2,y3,y4,x1,x2,x3,x4; @@ -286,13 +295,17 @@ void TP_adjustment() tconfig.y_acc=acc_y; tconfig.y_offset=offset_y; + tconfig.begin=0xab; + tconfig.end=0xcd; + + sprintf(str,"x_acc=%f y_acc=%f",acc_x,acc_y); LCD_ShowString(0,66+16+16+16+16,str,16,RED,RED); sprintf(str,"x_offset=%d y_offset=%d",offset_x,offset_y); LCD_ShowString(0,66+16+16+16+16+16,str,16,RED,RED); } - + EEPROM_WRITE_BATY(16,(char *)&tconfig,sizeof(touch_config)); HAL_Delay(1000); return; diff --git a/SW_APPs/Main_APP.c b/SW_APPs/Main_APP.c index 149dd12..fade587 100644 --- a/SW_APPs/Main_APP.c +++ b/SW_APPs/Main_APP.c @@ -8,6 +8,7 @@ #include "LCD.h" #include "windows.h" #include "touch.h" +#include "eeprom.h" extern touch_device t0; @@ -16,8 +17,11 @@ task run_loop;// void main_app() { LCDx_Init(); + EPPROM_SLOWWRITE_INIT(); + TP_adjustment(); + UI *ui=UI_Init(BLACK); New_Window(ui,10,10,100,100,WHITE,"WHITE"); @@ -44,6 +48,7 @@ void main_app() } TP_Server(); + EEPROM_SLOWWRITE_SERVER(); } } diff --git a/m3s.ioc b/m3s.ioc index bb07a3f..fbdb82f 100644 --- a/m3s.ioc +++ b/m3s.ioc @@ -7,10 +7,11 @@ File.Version=6 KeepUserPlacement=false Mcu.Family=STM32F1 Mcu.IP0=FSMC -Mcu.IP1=NVIC -Mcu.IP2=RCC -Mcu.IP3=SYS -Mcu.IPNb=4 +Mcu.IP1=I2C2 +Mcu.IP2=NVIC +Mcu.IP3=RCC +Mcu.IP4=SYS +Mcu.IPNb=5 Mcu.Name=STM32F103Z(C-D-E)Tx Mcu.Package=LQFP144 Mcu.Pin0=PF8 @@ -23,27 +24,29 @@ Mcu.Pin14=PE12 Mcu.Pin15=PE13 Mcu.Pin16=PE14 Mcu.Pin17=PE15 -Mcu.Pin18=PD8 -Mcu.Pin19=PD9 +Mcu.Pin18=PB10 +Mcu.Pin19=PB11 Mcu.Pin2=PF10 -Mcu.Pin20=PD10 -Mcu.Pin21=PD14 -Mcu.Pin22=PD15 -Mcu.Pin23=PD0 -Mcu.Pin24=PD1 -Mcu.Pin25=PD4 -Mcu.Pin26=PD5 -Mcu.Pin27=PG12 -Mcu.Pin28=VP_SYS_VS_ND -Mcu.Pin29=VP_SYS_VS_Systick +Mcu.Pin20=PD8 +Mcu.Pin21=PD9 +Mcu.Pin22=PD10 +Mcu.Pin23=PD14 +Mcu.Pin24=PD15 +Mcu.Pin25=PD0 +Mcu.Pin26=PD1 +Mcu.Pin27=PD4 +Mcu.Pin28=PD5 +Mcu.Pin29=PG12 Mcu.Pin3=OSC_IN +Mcu.Pin30=VP_SYS_VS_ND +Mcu.Pin31=VP_SYS_VS_Systick Mcu.Pin4=OSC_OUT Mcu.Pin5=PB0 Mcu.Pin6=PB1 Mcu.Pin7=PB2 Mcu.Pin8=PG0 Mcu.Pin9=PE7 -Mcu.PinsNb=30 +Mcu.PinsNb=32 Mcu.ThirdPartyNb=0 Mcu.UserConstants= Mcu.UserName=STM32F103ZETx @@ -74,6 +77,10 @@ PB1.GPIO_Speed=GPIO_SPEED_FREQ_HIGH PB1.Locked=true PB1.PinState=GPIO_PIN_SET PB1.Signal=GPIO_Output +PB10.Mode=I2C +PB10.Signal=I2C2_SCL +PB11.Mode=I2C +PB11.Signal=I2C2_SDA PB2.GPIOParameters=GPIO_Speed,PinState,GPIO_Label PB2.GPIO_Label=TCS PB2.GPIO_Speed=GPIO_SPEED_FREQ_HIGH