diff --git a/.mxproject b/.mxproject index dcf7a55..d15992f 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_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; +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_spi.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_spi.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_spi.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_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;;; +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_spi.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_spi.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/main.h b/Core/Inc/main.h index 4302581..87b458d 100644 --- a/Core/Inc/main.h +++ b/Core/Inc/main.h @@ -58,12 +58,22 @@ void Error_Handler(void); /* USER CODE END EFP */ /* Private defines -----------------------------------------------------------*/ +#define KEY3_Pin GPIO_PIN_2 +#define KEY3_GPIO_Port GPIOE +#define KEY2_Pin GPIO_PIN_3 +#define KEY2_GPIO_Port GPIOE +#define KEY1_Pin GPIO_PIN_4 +#define KEY1_GPIO_Port GPIOE #define TDOUT_Pin GPIO_PIN_8 #define TDOUT_GPIO_Port GPIOF #define TDIN_Pin GPIO_PIN_9 #define TDIN_GPIO_Port GPIOF #define TPEN_Pin GPIO_PIN_10 #define TPEN_GPIO_Port GPIOF +#define KEY0_Pin GPIO_PIN_0 +#define KEY0_GPIO_Port GPIOA +#define RC522_CS_Pin GPIO_PIN_4 +#define RC522_CS_GPIO_Port GPIOA #define LCD_BL_Pin GPIO_PIN_0 #define LCD_BL_GPIO_Port GPIOB #define TCLK_Pin GPIO_PIN_1 diff --git a/Core/Inc/stm32f1xx_hal_conf.h b/Core/Inc/stm32f1xx_hal_conf.h index 897f8cd..dcd3868 100644 --- a/Core/Inc/stm32f1xx_hal_conf.h +++ b/Core/Inc/stm32f1xx_hal_conf.h @@ -61,7 +61,7 @@ /*#define HAL_MMC_MODULE_ENABLED */ /*#define HAL_SDRAM_MODULE_ENABLED */ /*#define HAL_SMARTCARD_MODULE_ENABLED */ -/*#define HAL_SPI_MODULE_ENABLED */ +#define HAL_SPI_MODULE_ENABLED #define HAL_SRAM_MODULE_ENABLED #define HAL_TIM_MODULE_ENABLED /*#define HAL_UART_MODULE_ENABLED */ diff --git a/Core/Src/main.c b/Core/Src/main.c index 211eb7c..bbee837 100644 --- a/Core/Src/main.c +++ b/Core/Src/main.c @@ -42,6 +42,8 @@ /* Private variables ---------------------------------------------------------*/ I2C_HandleTypeDef hi2c2; +SPI_HandleTypeDef hspi1; + TIM_HandleTypeDef htim6; SRAM_HandleTypeDef hsram1; @@ -56,6 +58,7 @@ static void MX_GPIO_Init(void); static void MX_FSMC_Init(void); static void MX_I2C2_Init(void); static void MX_TIM6_Init(void); +static void MX_SPI1_Init(void); /* USER CODE BEGIN PFP */ /* USER CODE END PFP */ @@ -96,6 +99,7 @@ int main(void) MX_FSMC_Init(); MX_I2C2_Init(); MX_TIM6_Init(); + MX_SPI1_Init(); /* USER CODE BEGIN 2 */ main_app(); /* USER CODE END 2 */ @@ -183,6 +187,44 @@ static void MX_I2C2_Init(void) } +/** + * @brief SPI1 Initialization Function + * @param None + * @retval None + */ +static void MX_SPI1_Init(void) +{ + + /* USER CODE BEGIN SPI1_Init 0 */ + + /* USER CODE END SPI1_Init 0 */ + + /* USER CODE BEGIN SPI1_Init 1 */ + + /* USER CODE END SPI1_Init 1 */ + /* SPI1 parameter configuration*/ + hspi1.Instance = SPI1; + hspi1.Init.Mode = SPI_MODE_MASTER; + hspi1.Init.Direction = SPI_DIRECTION_2LINES; + hspi1.Init.DataSize = SPI_DATASIZE_8BIT; + hspi1.Init.CLKPolarity = SPI_POLARITY_LOW; + hspi1.Init.CLKPhase = SPI_PHASE_1EDGE; + hspi1.Init.NSS = SPI_NSS_SOFT; + hspi1.Init.BaudRatePrescaler = SPI_BAUDRATEPRESCALER_4; + hspi1.Init.FirstBit = SPI_FIRSTBIT_MSB; + hspi1.Init.TIMode = SPI_TIMODE_DISABLE; + hspi1.Init.CRCCalculation = SPI_CRCCALCULATION_DISABLE; + hspi1.Init.CRCPolynomial = 10; + if (HAL_SPI_Init(&hspi1) != HAL_OK) + { + Error_Handler(); + } + /* USER CODE BEGIN SPI1_Init 2 */ + + /* USER CODE END SPI1_Init 2 */ + +} + /** * @brief TIM6 Initialization Function * @param None @@ -231,21 +273,31 @@ static void MX_GPIO_Init(void) GPIO_InitTypeDef GPIO_InitStruct = {0}; /* GPIO Ports Clock Enable */ + __HAL_RCC_GPIOE_CLK_ENABLE(); __HAL_RCC_GPIOF_CLK_ENABLE(); + __HAL_RCC_GPIOA_CLK_ENABLE(); __HAL_RCC_GPIOB_CLK_ENABLE(); __HAL_RCC_GPIOG_CLK_ENABLE(); - __HAL_RCC_GPIOE_CLK_ENABLE(); __HAL_RCC_GPIOD_CLK_ENABLE(); /*Configure GPIO pin Output Level */ HAL_GPIO_WritePin(TDIN_GPIO_Port, TDIN_Pin, GPIO_PIN_SET); + /*Configure GPIO pin Output Level */ + HAL_GPIO_WritePin(RC522_CS_GPIO_Port, RC522_CS_Pin, GPIO_PIN_RESET); + /*Configure GPIO pin Output Level */ HAL_GPIO_WritePin(LCD_BL_GPIO_Port, LCD_BL_Pin, GPIO_PIN_RESET); /*Configure GPIO pin Output Level */ HAL_GPIO_WritePin(GPIOB, TCLK_Pin|TCS_Pin|MAX_IRD_Pin|MAX_RD_Pin, GPIO_PIN_SET); + /*Configure GPIO pins : KEY3_Pin KEY2_Pin KEY1_Pin */ + GPIO_InitStruct.Pin = KEY3_Pin|KEY2_Pin|KEY1_Pin; + GPIO_InitStruct.Mode = GPIO_MODE_INPUT; + GPIO_InitStruct.Pull = GPIO_PULLUP; + HAL_GPIO_Init(GPIOE, &GPIO_InitStruct); + /*Configure GPIO pin : TDOUT_Pin */ GPIO_InitStruct.Pin = TDOUT_Pin; GPIO_InitStruct.Mode = GPIO_MODE_INPUT; @@ -265,6 +317,19 @@ static void MX_GPIO_Init(void) GPIO_InitStruct.Pull = GPIO_PULLUP; HAL_GPIO_Init(TPEN_GPIO_Port, &GPIO_InitStruct); + /*Configure GPIO pin : KEY0_Pin */ + GPIO_InitStruct.Pin = KEY0_Pin; + GPIO_InitStruct.Mode = GPIO_MODE_INPUT; + GPIO_InitStruct.Pull = GPIO_NOPULL; + HAL_GPIO_Init(KEY0_GPIO_Port, &GPIO_InitStruct); + + /*Configure GPIO pin : RC522_CS_Pin */ + GPIO_InitStruct.Pin = RC522_CS_Pin; + GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP; + GPIO_InitStruct.Pull = GPIO_NOPULL; + GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW; + HAL_GPIO_Init(RC522_CS_GPIO_Port, &GPIO_InitStruct); + /*Configure GPIO pin : LCD_BL_Pin */ GPIO_InitStruct.Pin = LCD_BL_Pin; GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP; diff --git a/Core/Src/stm32f1xx_hal_msp.c b/Core/Src/stm32f1xx_hal_msp.c index 4166f7f..d0a7cb1 100644 --- a/Core/Src/stm32f1xx_hal_msp.c +++ b/Core/Src/stm32f1xx_hal_msp.c @@ -146,6 +146,76 @@ void HAL_I2C_MspDeInit(I2C_HandleTypeDef* hi2c) } +/** +* @brief SPI MSP Initialization +* This function configures the hardware resources used in this example +* @param hspi: SPI handle pointer +* @retval None +*/ +void HAL_SPI_MspInit(SPI_HandleTypeDef* hspi) +{ + GPIO_InitTypeDef GPIO_InitStruct = {0}; + if(hspi->Instance==SPI1) + { + /* USER CODE BEGIN SPI1_MspInit 0 */ + + /* USER CODE END SPI1_MspInit 0 */ + /* Peripheral clock enable */ + __HAL_RCC_SPI1_CLK_ENABLE(); + + __HAL_RCC_GPIOA_CLK_ENABLE(); + /**SPI1 GPIO Configuration + PA5 ------> SPI1_SCK + PA6 ------> SPI1_MISO + PA7 ------> SPI1_MOSI + */ + GPIO_InitStruct.Pin = GPIO_PIN_5|GPIO_PIN_7; + GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; + GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_HIGH; + HAL_GPIO_Init(GPIOA, &GPIO_InitStruct); + + GPIO_InitStruct.Pin = GPIO_PIN_6; + GPIO_InitStruct.Mode = GPIO_MODE_INPUT; + GPIO_InitStruct.Pull = GPIO_NOPULL; + HAL_GPIO_Init(GPIOA, &GPIO_InitStruct); + + /* USER CODE BEGIN SPI1_MspInit 1 */ + + /* USER CODE END SPI1_MspInit 1 */ + } + +} + +/** +* @brief SPI MSP De-Initialization +* This function freeze the hardware resources used in this example +* @param hspi: SPI handle pointer +* @retval None +*/ +void HAL_SPI_MspDeInit(SPI_HandleTypeDef* hspi) +{ + if(hspi->Instance==SPI1) + { + /* USER CODE BEGIN SPI1_MspDeInit 0 */ + + /* USER CODE END SPI1_MspDeInit 0 */ + /* Peripheral clock disable */ + __HAL_RCC_SPI1_CLK_DISABLE(); + + /**SPI1 GPIO Configuration + PA5 ------> SPI1_SCK + PA6 ------> SPI1_MISO + PA7 ------> SPI1_MOSI + */ + HAL_GPIO_DeInit(GPIOA, GPIO_PIN_5|GPIO_PIN_6|GPIO_PIN_7); + + /* USER CODE BEGIN SPI1_MspDeInit 1 */ + + /* USER CODE END SPI1_MspDeInit 1 */ + } + +} + /** * @brief TIM_Base MSP Initialization * This function configures the hardware resources used in this example diff --git a/Debug/Core/Src/main.d b/Debug/Core/Src/main.d index cd0e11a..daac744 100644 --- a/Debug/Core/Src/main.d +++ b/Debug/Core/Src/main.d @@ -24,6 +24,7 @@ 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 \ + ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_spi.h \ ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h \ ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h \ /Users/wuwenfeng/STM32CubeIDE/workspace_1.7.0/m3s/SW_APPs/Main_APP.h @@ -80,6 +81,8 @@ Core/Src/main.o: ../Core/Src/main.c ../Core/Inc/main.h \ ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_pwr.h: +../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_spi.h: + ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h: ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h: diff --git a/Debug/Core/Src/main.su b/Debug/Core/Src/main.su index a53b664..f2c8278 100644 --- a/Debug/Core/Src/main.su +++ b/Debug/Core/Src/main.su @@ -1,7 +1,8 @@ -main.c:72:5:main 8 static -main.c:118:6:SystemClock_Config 72 static -main.c:157:13:MX_I2C2_Init 8 static -main.c:191:13:MX_TIM6_Init 16 static -main.c:229:13:MX_GPIO_Init 48 static -main.c:298:13:MX_FSMC_Init 40 static -main.c:362:6:Error_Handler 4 static,ignoring_inline_asm +main.c:75:5:main 8 static +main.c:122:6:SystemClock_Config 72 static +main.c:161:13:MX_I2C2_Init 8 static +main.c:195:13:MX_SPI1_Init 8 static +main.c:233:13:MX_TIM6_Init 16 static +main.c:271:13:MX_GPIO_Init 48 static +main.c:363:13:MX_FSMC_Init 40 static +main.c:427: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 0b6effd..a5845d7 100644 --- a/Debug/Core/Src/stm32f1xx_hal_msp.d +++ b/Debug/Core/Src/stm32f1xx_hal_msp.d @@ -24,6 +24,7 @@ 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 \ + ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_spi.h \ ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h \ ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h @@ -79,6 +80,8 @@ Core/Src/stm32f1xx_hal_msp.o: ../Core/Src/stm32f1xx_hal_msp.c \ ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_pwr.h: +../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_spi.h: + ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h: ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h: diff --git a/Debug/Core/Src/stm32f1xx_hal_msp.su b/Debug/Core/Src/stm32f1xx_hal_msp.su index 377ad4a..0eb5ac6 100644 --- a/Debug/Core/Src/stm32f1xx_hal_msp.su +++ b/Debug/Core/Src/stm32f1xx_hal_msp.su @@ -1,9 +1,11 @@ stm32f1xx_hal_msp.c:64:6:HAL_MspInit 24 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:155:6:HAL_TIM_Base_MspInit 24 static -stm32f1xx_hal_msp.c:180:6:HAL_TIM_Base_MspDeInit 16 static -stm32f1xx_hal_msp.c:201:13:HAL_FSMC_MspInit 32 static -stm32f1xx_hal_msp.c:260:6:HAL_SRAM_MspInit 16 static -stm32f1xx_hal_msp.c:272:13:HAL_FSMC_MspDeInit 8 static -stm32f1xx_hal_msp.c:320:6:HAL_SRAM_MspDeInit 16 static +stm32f1xx_hal_msp.c:155:6:HAL_SPI_MspInit 40 static +stm32f1xx_hal_msp.c:195:6:HAL_SPI_MspDeInit 16 static +stm32f1xx_hal_msp.c:225:6:HAL_TIM_Base_MspInit 24 static +stm32f1xx_hal_msp.c:250:6:HAL_TIM_Base_MspDeInit 16 static +stm32f1xx_hal_msp.c:271:13:HAL_FSMC_MspInit 32 static +stm32f1xx_hal_msp.c:330:6:HAL_SRAM_MspInit 16 static +stm32f1xx_hal_msp.c:342:13:HAL_FSMC_MspDeInit 8 static +stm32f1xx_hal_msp.c:390:6:HAL_SRAM_MspDeInit 16 static diff --git a/Debug/Core/Src/stm32f1xx_it.d b/Debug/Core/Src/stm32f1xx_it.d index 47f5325..4b98859 100644 --- a/Debug/Core/Src/stm32f1xx_it.d +++ b/Debug/Core/Src/stm32f1xx_it.d @@ -24,6 +24,7 @@ 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 \ + ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_spi.h \ ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h \ ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h \ ../Core/Inc/stm32f1xx_it.h @@ -80,6 +81,8 @@ Core/Src/stm32f1xx_it.o: ../Core/Src/stm32f1xx_it.c ../Core/Inc/main.h \ ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_pwr.h: +../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_spi.h: + ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h: ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h: diff --git a/Debug/Core/Src/system_stm32f1xx.d b/Debug/Core/Src/system_stm32f1xx.d index 7f9d3dc..9872ccf 100644 --- a/Debug/Core/Src/system_stm32f1xx.d +++ b/Debug/Core/Src/system_stm32f1xx.d @@ -24,6 +24,7 @@ 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 \ + ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_spi.h \ ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h \ ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h @@ -77,6 +78,8 @@ Core/Src/system_stm32f1xx.o: ../Core/Src/system_stm32f1xx.c \ ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_pwr.h: +../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_spi.h: + ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h: ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h: diff --git a/Debug/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.d b/Debug/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.d index 8cb064d..50471bb 100644 --- a/Debug/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.d +++ b/Debug/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.d @@ -25,6 +25,7 @@ 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 \ + ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_spi.h \ ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h \ ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h @@ -78,6 +79,8 @@ Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.o: \ ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_pwr.h: +../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_spi.h: + ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h: ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h: 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 645b8f3..90a1e16 100644 --- a/Debug/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.d +++ b/Debug/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.d @@ -25,6 +25,7 @@ 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 \ + ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_spi.h \ ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h \ ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h @@ -78,6 +79,8 @@ Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.o: \ ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_pwr.h: +../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_spi.h: + ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h: ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h: 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 fe60837..95d1e55 100644 --- a/Debug/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_dma.d +++ b/Debug/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_dma.d @@ -25,6 +25,7 @@ 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 \ + ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_spi.h \ ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h \ ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h @@ -78,6 +79,8 @@ Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_dma.o: \ ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_pwr.h: +../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_spi.h: + ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h: ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h: 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 5367757..fdcf066 100644 --- a/Debug/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.d +++ b/Debug/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.d @@ -25,6 +25,7 @@ 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 \ + ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_spi.h \ ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h \ ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h @@ -78,6 +79,8 @@ Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.o: \ ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_pwr.h: +../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_spi.h: + ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h: ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h: 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 f634596..78e3461 100644 --- a/Debug/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.d +++ b/Debug/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.d @@ -25,6 +25,7 @@ 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 \ + ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_spi.h \ ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h \ ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h @@ -78,6 +79,8 @@ Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.o: \ ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_pwr.h: +../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_spi.h: + ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h: ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h: 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 8e2e092..19dca61 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 @@ -25,6 +25,7 @@ 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 \ + ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_spi.h \ ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h \ ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h @@ -78,6 +79,8 @@ Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash_ex.o: \ ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_pwr.h: +../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_spi.h: + ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h: ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h: 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 35edfb7..98acb76 100644 --- a/Debug/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio.d +++ b/Debug/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio.d @@ -25,6 +25,7 @@ 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 \ + ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_spi.h \ ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h \ ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h @@ -78,6 +79,8 @@ Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio.o: \ ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_pwr.h: +../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_spi.h: + ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h: ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h: 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 b0029c6..73fc397 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 @@ -25,6 +25,7 @@ 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 \ + ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_spi.h \ ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h \ ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h @@ -78,6 +79,8 @@ Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio_ex.o: \ ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_pwr.h: +../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_spi.h: + ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h: ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h: diff --git a/Debug/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.d b/Debug/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.d index 55617ff..a5eaf37 100644 --- a/Debug/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.d +++ b/Debug/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.d @@ -25,6 +25,7 @@ Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.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 \ + ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_spi.h \ ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h \ ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h @@ -78,6 +79,8 @@ Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o: \ ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_pwr.h: +../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_spi.h: + ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h: ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h: 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 1d2c5d3..0b17c12 100644 --- a/Debug/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_pwr.d +++ b/Debug/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_pwr.d @@ -25,6 +25,7 @@ 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 \ + ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_spi.h \ ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h \ ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h @@ -78,6 +79,8 @@ Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_pwr.o: \ ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_pwr.h: +../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_spi.h: + ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h: ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h: 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 51e7a77..e61d05e 100644 --- a/Debug/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.d +++ b/Debug/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.d @@ -25,6 +25,7 @@ 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 \ + ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_spi.h \ ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h \ ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h @@ -78,6 +79,8 @@ Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.o: \ ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_pwr.h: +../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_spi.h: + ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h: ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h: 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 bb3c2e1..839c1b2 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 @@ -25,6 +25,7 @@ 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 \ + ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_spi.h \ ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h \ ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h @@ -78,6 +79,8 @@ Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc_ex.o: \ ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_pwr.h: +../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_spi.h: + ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h: ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h: diff --git a/Debug/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.d b/Debug/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.d new file mode 100644 index 0000000..4ccec70 --- /dev/null +++ b/Debug/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.d @@ -0,0 +1,86 @@ +Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o: \ + ../Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.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_spi.h \ + ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h \ + ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h + +../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal.h: + +../Core/Inc/stm32f1xx_hal_conf.h: + +../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_rcc.h: + +../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_def.h: + +../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f1xx.h: + +../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xe.h: + +../Drivers/CMSIS/Include/core_cm3.h: + +../Drivers/CMSIS/Include/cmsis_version.h: + +../Drivers/CMSIS/Include/cmsis_compiler.h: + +../Drivers/CMSIS/Include/cmsis_gcc.h: + +../Drivers/CMSIS/Device/ST/STM32F1xx/Include/system_stm32f1xx.h: + +../Drivers/STM32F1xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h: + +../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_rcc_ex.h: + +../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_gpio.h: + +../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_gpio_ex.h: + +../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_exti.h: + +../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_dma.h: + +../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_dma_ex.h: + +../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_cortex.h: + +../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_flash.h: + +../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_flash_ex.h: + +../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_sram.h: + +../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_ll_fsmc.h: + +../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_i2c.h: + +../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_pwr.h: + +../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_spi.h: + +../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h: + +../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h: diff --git a/Debug/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.su b/Debug/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.su new file mode 100644 index 0000000..b42e16b --- /dev/null +++ b/Debug/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.su @@ -0,0 +1,55 @@ +stm32f1xx_hal_spi.c:335:19:HAL_SPI_Init 16 static +stm32f1xx_hal_spi.c:463:19:HAL_SPI_DeInit 16 static +stm32f1xx_hal_spi.c:507:13:HAL_SPI_MspInit 16 static +stm32f1xx_hal_spi.c:523:13:HAL_SPI_MspDeInit 16 static +stm32f1xx_hal_spi.c:795:19:HAL_SPI_Transmit 40 static +stm32f1xx_hal_spi.c:960:19:HAL_SPI_Receive 40 static +stm32f1xx_hal_spi.c:1174:19:HAL_SPI_TransmitReceive 56 static +stm32f1xx_hal_spi.c:1407:19:HAL_SPI_Transmit_IT 32 static +stm32f1xx_hal_spi.c:1492:19:HAL_SPI_Receive_IT 32 static +stm32f1xx_hal_spi.c:1586:19:HAL_SPI_TransmitReceive_IT 32 static +stm32f1xx_hal_spi.c:1674:19:HAL_SPI_Transmit_DMA 32 static +stm32f1xx_hal_spi.c:1782:19:HAL_SPI_Receive_DMA 32 static +stm32f1xx_hal_spi.c:1897:19:HAL_SPI_TransmitReceive_DMA 32 static +stm32f1xx_hal_spi.c:2043:19:HAL_SPI_Abort 32 static +stm32f1xx_hal_spi.c:2187:19:HAL_SPI_Abort_IT 40 static +stm32f1xx_hal_spi.c:2347:19:HAL_SPI_DMAPause 16 static +stm32f1xx_hal_spi.c:2367:19:HAL_SPI_DMAResume 16 static +stm32f1xx_hal_spi.c:2387:19:HAL_SPI_DMAStop 24 static +stm32f1xx_hal_spi.c:2427:6:HAL_SPI_IRQHandler 40 static +stm32f1xx_hal_spi.c:2529:13:HAL_SPI_TxCpltCallback 16 static +stm32f1xx_hal_spi.c:2545:13:HAL_SPI_RxCpltCallback 16 static +stm32f1xx_hal_spi.c:2561:13:HAL_SPI_TxRxCpltCallback 16 static +stm32f1xx_hal_spi.c:2577:13:HAL_SPI_TxHalfCpltCallback 16 static +stm32f1xx_hal_spi.c:2593:13:HAL_SPI_RxHalfCpltCallback 16 static +stm32f1xx_hal_spi.c:2609:13:HAL_SPI_TxRxHalfCpltCallback 16 static +stm32f1xx_hal_spi.c:2625:13:HAL_SPI_ErrorCallback 16 static +stm32f1xx_hal_spi.c:2643:13:HAL_SPI_AbortCpltCallback 16 static +stm32f1xx_hal_spi.c:2678:22:HAL_SPI_GetState 16 static +stm32f1xx_hal_spi.c:2690:10:HAL_SPI_GetError 16 static +stm32f1xx_hal_spi.c:2715:13:SPI_DMATransmitCplt 32 static +stm32f1xx_hal_spi.c:2772:13:SPI_DMAReceiveCplt 24 static +stm32f1xx_hal_spi.c:2871:13:SPI_DMATransmitReceiveCplt 24 static +stm32f1xx_hal_spi.c:2961:13:SPI_DMAHalfTransmitCplt 24 static +stm32f1xx_hal_spi.c:2979:13:SPI_DMAHalfReceiveCplt 24 static +stm32f1xx_hal_spi.c:2997:13:SPI_DMAHalfTransmitReceiveCplt 24 static +stm32f1xx_hal_spi.c:3015:13:SPI_DMAError 24 static +stm32f1xx_hal_spi.c:3038:13:SPI_DMAAbortOnError 24 static +stm32f1xx_hal_spi.c:3060:13:SPI_DMATxAbortCallback 32 static +stm32f1xx_hal_spi.c:3124:13:SPI_DMARxAbortCallback 24 static +stm32f1xx_hal_spi.c:3182:13:SPI_2linesRxISR_8BIT 16 static +stm32f1xx_hal_spi.c:3245:13:SPI_2linesTxISR_8BIT 16 static +stm32f1xx_hal_spi.c:3281:13:SPI_2linesRxISR_16BIT 16 static +stm32f1xx_hal_spi.c:3337:13:SPI_2linesTxISR_16BIT 16 static +stm32f1xx_hal_spi.c:3397:13:SPI_RxISR_8BIT 16 static +stm32f1xx_hal_spi.c:3460:13:SPI_RxISR_16BIT 16 static +stm32f1xx_hal_spi.c:3500:13:SPI_TxISR_8BIT 16 static +stm32f1xx_hal_spi.c:3525:13:SPI_TxISR_16BIT 16 static +stm32f1xx_hal_spi.c:3555:26:SPI_WaitFlagStateUntilTimeout 40 static +stm32f1xx_hal_spi.c:3622:26:SPI_EndRxTransaction 32 static +stm32f1xx_hal_spi.c:3659:26:SPI_EndRxTxTransaction 32 static +stm32f1xx_hal_spi.c:3676:13:SPI_CloseRxTx_ISR 32 static +stm32f1xx_hal_spi.c:3782:13:SPI_CloseRx_ISR 24 static +stm32f1xx_hal_spi.c:3856:13:SPI_CloseTx_ISR 32 static +stm32f1xx_hal_spi.c:3917:13:SPI_AbortRx_ISR 24 static +stm32f1xx_hal_spi.c:3953:13:SPI_AbortTx_ISR 16 static 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 e5f9007..b714b6b 100644 --- a/Debug/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_sram.d +++ b/Debug/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_sram.d @@ -25,6 +25,7 @@ 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 \ + ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_spi.h \ ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h \ ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h @@ -78,6 +79,8 @@ Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_sram.o: \ ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_pwr.h: +../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_spi.h: + ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h: ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h: 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 a363f93..eb43b75 100644 --- a/Debug/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim.d +++ b/Debug/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim.d @@ -25,6 +25,7 @@ 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 \ + ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_spi.h \ ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h \ ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h @@ -78,6 +79,8 @@ Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim.o: \ ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_pwr.h: +../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_spi.h: + ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h: ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h: 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 2119a8a..ec22d3b 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 @@ -25,6 +25,7 @@ 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 \ + ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_spi.h \ ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h \ ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h @@ -78,6 +79,8 @@ Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim_ex.o: \ ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_pwr.h: +../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_spi.h: + ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h: ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h: 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 796b046..c212fcf 100644 --- a/Debug/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_fsmc.d +++ b/Debug/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_fsmc.d @@ -25,6 +25,7 @@ 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 \ + ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_spi.h \ ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h \ ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h @@ -78,6 +79,8 @@ Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_fsmc.o: \ ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_pwr.h: +../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_spi.h: + ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h: ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h: diff --git a/Debug/Drivers/STM32F1xx_HAL_Driver/Src/subdir.mk b/Debug/Drivers/STM32F1xx_HAL_Driver/Src/subdir.mk index 7d4f9f9..7afa6f5 100644 --- a/Debug/Drivers/STM32F1xx_HAL_Driver/Src/subdir.mk +++ b/Debug/Drivers/STM32F1xx_HAL_Driver/Src/subdir.mk @@ -17,6 +17,7 @@ C_SRCS += \ ../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 \ +../Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.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 \ @@ -35,6 +36,7 @@ OBJS += \ ./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 \ +./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o \ ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_sram.o \ ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim.o \ ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim_ex.o \ @@ -53,6 +55,7 @@ C_DEPS += \ ./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 \ +./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.d \ ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_sram.d \ ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim.d \ ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim_ex.d \ diff --git a/Debug/HW_Devices/LCD.d b/Debug/HW_Devices/LCD.d index 441e24a..05fd31e 100644 --- a/Debug/HW_Devices/LCD.d +++ b/Debug/HW_Devices/LCD.d @@ -24,6 +24,7 @@ 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 \ + ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_spi.h \ ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h \ ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h @@ -81,6 +82,8 @@ HW_Devices/LCD.o: ../HW_Devices/LCD.c ../HW_Devices/LCD.h \ ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_pwr.h: +../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_spi.h: + ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h: ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h: diff --git a/Debug/HW_Devices/eeprom.d b/Debug/HW_Devices/eeprom.d index 387a6ef..9e9ddee 100644 --- a/Debug/HW_Devices/eeprom.d +++ b/Debug/HW_Devices/eeprom.d @@ -24,6 +24,7 @@ HW_Devices/eeprom.o: ../HW_Devices/eeprom.c ../HW_Devices/eeprom.h \ ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_ll_fsmc.h \ ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_i2c.h \ ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_pwr.h \ + ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_spi.h \ ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h \ ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h \ ../HW_Devices/iic.h @@ -82,6 +83,8 @@ HW_Devices/eeprom.o: ../HW_Devices/eeprom.c ../HW_Devices/eeprom.h \ ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_pwr.h: +../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_spi.h: + ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h: ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h: diff --git a/Debug/HW_Devices/iic.d b/Debug/HW_Devices/iic.d index 64c1c87..5874eac 100644 --- a/Debug/HW_Devices/iic.d +++ b/Debug/HW_Devices/iic.d @@ -24,6 +24,7 @@ HW_Devices/iic.o: ../HW_Devices/iic.c ../HW_Devices/iic.h \ ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_ll_fsmc.h \ ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_i2c.h \ ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_pwr.h \ + ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_spi.h \ ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h \ ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h @@ -81,6 +82,8 @@ HW_Devices/iic.o: ../HW_Devices/iic.c ../HW_Devices/iic.h \ ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_pwr.h: +../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_spi.h: + ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h: ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h: diff --git a/Debug/HW_Devices/rs522.d b/Debug/HW_Devices/rs522.d new file mode 100644 index 0000000..6199dd2 --- /dev/null +++ b/Debug/HW_Devices/rs522.d @@ -0,0 +1,89 @@ +HW_Devices/rs522.o: ../HW_Devices/rs522.c ../HW_Devices/rs522.h \ + ../Core/Inc/main.h ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal.h \ + ../Core/Inc/stm32f1xx_hal_conf.h \ + ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_rcc.h \ + ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_def.h \ + ../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f1xx.h \ + ../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xe.h \ + ../Drivers/CMSIS/Include/core_cm3.h \ + ../Drivers/CMSIS/Include/cmsis_version.h \ + ../Drivers/CMSIS/Include/cmsis_compiler.h \ + ../Drivers/CMSIS/Include/cmsis_gcc.h \ + ../Drivers/CMSIS/Device/ST/STM32F1xx/Include/system_stm32f1xx.h \ + ../Drivers/STM32F1xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h \ + ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_rcc_ex.h \ + ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_gpio.h \ + ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_gpio_ex.h \ + ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_exti.h \ + ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_dma.h \ + ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_dma_ex.h \ + ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_cortex.h \ + ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_flash.h \ + ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_flash_ex.h \ + ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_sram.h \ + ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_ll_fsmc.h \ + ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_i2c.h \ + ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_pwr.h \ + ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_spi.h \ + ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h \ + ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h + +../HW_Devices/rs522.h: + +../Core/Inc/main.h: + +../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal.h: + +../Core/Inc/stm32f1xx_hal_conf.h: + +../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_rcc.h: + +../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_def.h: + +../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f1xx.h: + +../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xe.h: + +../Drivers/CMSIS/Include/core_cm3.h: + +../Drivers/CMSIS/Include/cmsis_version.h: + +../Drivers/CMSIS/Include/cmsis_compiler.h: + +../Drivers/CMSIS/Include/cmsis_gcc.h: + +../Drivers/CMSIS/Device/ST/STM32F1xx/Include/system_stm32f1xx.h: + +../Drivers/STM32F1xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h: + +../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_rcc_ex.h: + +../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_gpio.h: + +../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_gpio_ex.h: + +../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_exti.h: + +../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_dma.h: + +../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_dma_ex.h: + +../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_cortex.h: + +../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_flash.h: + +../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_flash_ex.h: + +../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_sram.h: + +../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_ll_fsmc.h: + +../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_i2c.h: + +../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_pwr.h: + +../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_spi.h: + +../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h: + +../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h: diff --git a/Debug/HW_Devices/rs522.su b/Debug/HW_Devices/rs522.su new file mode 100644 index 0000000..0dd3edc --- /dev/null +++ b/Debug/HW_Devices/rs522.su @@ -0,0 +1,19 @@ +rs522.c:18:9:ReadRawRC 24 static +rs522.c:38:6:WriteRawRC 24 static +rs522.c:56:6:SetBitMask 24 static +rs522.c:71:6:ClearBitMask 24 static +rs522.c:86:6:PcdAntennaOn 16 static +rs522.c:104:6:PcdAntennaOff 8 static +rs522.c:118:6:PcdReset 8 static +rs522.c:140:6:M500PcdConfigISOType 16 static +rs522.c:171:6:PcdComMF522 48 static +rs522.c:282:6:PcdRequest 48 static +rs522.c:314:6:PcdAnticoll 56 static +rs522.c:353:6:CalulateCRC 40 static +rs522.c:383:6:PcdSelect 48 static +rs522.c:426:6:PcdAuthState 56 static +rs522.c:465:6:PcdWrite 48 static +rs522.c:506:6:PcdRead 48 static +rs522.c:539:6:PcdHalt 40 static +rs522.c:552:6:IC_CMT 32 static +rs522.c:571:6:RC522_Init 8 static diff --git a/Debug/HW_Devices/subdir.mk b/Debug/HW_Devices/subdir.mk index 088d6c5..c4c5357 100644 --- a/Debug/HW_Devices/subdir.mk +++ b/Debug/HW_Devices/subdir.mk @@ -8,18 +8,21 @@ C_SRCS += \ ../HW_Devices/LCD.c \ ../HW_Devices/eeprom.c \ ../HW_Devices/iic.c \ +../HW_Devices/rs522.c \ ../HW_Devices/touch.c OBJS += \ ./HW_Devices/LCD.o \ ./HW_Devices/eeprom.o \ ./HW_Devices/iic.o \ +./HW_Devices/rs522.o \ ./HW_Devices/touch.o C_DEPS += \ ./HW_Devices/LCD.d \ ./HW_Devices/eeprom.d \ ./HW_Devices/iic.d \ +./HW_Devices/rs522.d \ ./HW_Devices/touch.d diff --git a/Debug/HW_Devices/touch.d b/Debug/HW_Devices/touch.d index 44f481c..4542d4e 100644 --- a/Debug/HW_Devices/touch.d +++ b/Debug/HW_Devices/touch.d @@ -24,6 +24,7 @@ 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 \ + ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_spi.h \ ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h \ ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h \ ../HW_Devices/LCD.h ../HW_Devices/eeprom.h @@ -82,6 +83,8 @@ HW_Devices/touch.o: ../HW_Devices/touch.c ../HW_Devices/touch.h \ ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_pwr.h: +../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_spi.h: + ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h: ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h: diff --git a/Debug/HW_Devices/touch.su b/Debug/HW_Devices/touch.su index c75413d..bda2a89 100644 --- a/Debug/HW_Devices/touch.su +++ b/Debug/HW_Devices/touch.su @@ -6,4 +6,4 @@ touch.c:111:9:TP_Read_XY2 24 static touch.c:131:6:TP_Server 16 static touch.c:154:6:TP_XY 24 static touch.c:167:6:TP_DrwaTrage 40 static -touch.c:177:6:TP_adjustment 160 static +touch.c:178:6:TP_adjustment 168 static diff --git a/Debug/SW_APPs/APP_IDcard.d b/Debug/SW_APPs/APP_IDcard.d new file mode 100644 index 0000000..ac7c981 --- /dev/null +++ b/Debug/SW_APPs/APP_IDcard.d @@ -0,0 +1,98 @@ +SW_APPs/APP_IDcard.o: ../SW_APPs/APP_IDcard.c ../SW_APPs/APP_IDcard.h \ + ../Core/Inc/main.h ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal.h \ + ../Core/Inc/stm32f1xx_hal_conf.h \ + ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_rcc.h \ + ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_def.h \ + ../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f1xx.h \ + ../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xe.h \ + ../Drivers/CMSIS/Include/core_cm3.h \ + ../Drivers/CMSIS/Include/cmsis_version.h \ + ../Drivers/CMSIS/Include/cmsis_compiler.h \ + ../Drivers/CMSIS/Include/cmsis_gcc.h \ + ../Drivers/CMSIS/Device/ST/STM32F1xx/Include/system_stm32f1xx.h \ + ../Drivers/STM32F1xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h \ + ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_rcc_ex.h \ + ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_gpio.h \ + ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_gpio_ex.h \ + ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_exti.h \ + ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_dma.h \ + ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_dma_ex.h \ + ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_cortex.h \ + ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_flash.h \ + ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_flash_ex.h \ + ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_sram.h \ + ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_ll_fsmc.h \ + ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_i2c.h \ + ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_pwr.h \ + ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_spi.h \ + ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h \ + ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h \ + ../SW_APPs/windows.h \ + /Users/wuwenfeng/STM32CubeIDE/workspace_1.7.0/m3s/HW_Devices/lcd.h \ + /Users/wuwenfeng/STM32CubeIDE/workspace_1.7.0/m3s/HW_Devices/rs522.h + +../SW_APPs/APP_IDcard.h: + +../Core/Inc/main.h: + +../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal.h: + +../Core/Inc/stm32f1xx_hal_conf.h: + +../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_rcc.h: + +../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_def.h: + +../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f1xx.h: + +../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xe.h: + +../Drivers/CMSIS/Include/core_cm3.h: + +../Drivers/CMSIS/Include/cmsis_version.h: + +../Drivers/CMSIS/Include/cmsis_compiler.h: + +../Drivers/CMSIS/Include/cmsis_gcc.h: + +../Drivers/CMSIS/Device/ST/STM32F1xx/Include/system_stm32f1xx.h: + +../Drivers/STM32F1xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h: + +../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_rcc_ex.h: + +../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_gpio.h: + +../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_gpio_ex.h: + +../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_exti.h: + +../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_dma.h: + +../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_dma_ex.h: + +../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_cortex.h: + +../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_flash.h: + +../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_flash_ex.h: + +../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_sram.h: + +../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_ll_fsmc.h: + +../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_i2c.h: + +../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_pwr.h: + +../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_spi.h: + +../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h: + +../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h: + +../SW_APPs/windows.h: + +/Users/wuwenfeng/STM32CubeIDE/workspace_1.7.0/m3s/HW_Devices/lcd.h: + +/Users/wuwenfeng/STM32CubeIDE/workspace_1.7.0/m3s/HW_Devices/rs522.h: diff --git a/Debug/SW_APPs/APP_IDcard.su b/Debug/SW_APPs/APP_IDcard.su new file mode 100644 index 0000000..2a89f93 --- /dev/null +++ b/Debug/SW_APPs/APP_IDcard.su @@ -0,0 +1,2 @@ +APP_IDcard.c:11:6:APP_IDcard_init 16 static +APP_IDcard.c:17:6:APP_IDcard_loop 4 static diff --git a/Debug/SW_APPs/APP_blood.d b/Debug/SW_APPs/APP_blood.d index b82468c..3a54850 100644 --- a/Debug/SW_APPs/APP_blood.d +++ b/Debug/SW_APPs/APP_blood.d @@ -24,6 +24,7 @@ SW_APPs/APP_blood.o: ../SW_APPs/APP_blood.c ../SW_APPs/APP_blood.h \ ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_ll_fsmc.h \ ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_i2c.h \ ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_pwr.h \ + ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_spi.h \ ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h \ ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h \ ../SW_APPs/windows.h \ @@ -86,6 +87,8 @@ SW_APPs/APP_blood.o: ../SW_APPs/APP_blood.c ../SW_APPs/APP_blood.h \ ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_pwr.h: +../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_spi.h: + ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h: ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h: diff --git a/Debug/SW_APPs/Main_APP.d b/Debug/SW_APPs/Main_APP.d index b42679b..b34a7f3 100644 --- a/Debug/SW_APPs/Main_APP.d +++ b/Debug/SW_APPs/Main_APP.d @@ -25,13 +25,15 @@ 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 \ + ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_spi.h \ ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h \ ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h \ ../SW_APPs/windows.h \ /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 \ - ../SW_APPs/APP_blood.h + ../SW_APPs/APP_blood.h ../SW_APPs/APP_IDcard.h \ + /Users/wuwenfeng/STM32CubeIDE/workspace_1.7.0/m3s/HW_Devices/rs522.h ../SW_APPs/Main_APP.h: @@ -89,6 +91,8 @@ SW_APPs/Main_APP.o: ../SW_APPs/Main_APP.c ../SW_APPs/Main_APP.h \ ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_pwr.h: +../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_spi.h: + ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h: ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h: @@ -102,3 +106,7 @@ 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/eeprom.h: ../SW_APPs/APP_blood.h: + +../SW_APPs/APP_IDcard.h: + +/Users/wuwenfeng/STM32CubeIDE/workspace_1.7.0/m3s/HW_Devices/rs522.h: diff --git a/Debug/SW_APPs/Main_APP.su b/Debug/SW_APPs/Main_APP.su index c9f31ac..b07367f 100644 --- a/Debug/SW_APPs/Main_APP.su +++ b/Debug/SW_APPs/Main_APP.su @@ -1 +1 @@ -Main_APP.c:20:6:main_app 96 static +Main_APP.c:21:6:main_app 96 static diff --git a/Debug/SW_APPs/subdir.mk b/Debug/SW_APPs/subdir.mk index 15f9e37..036430a 100644 --- a/Debug/SW_APPs/subdir.mk +++ b/Debug/SW_APPs/subdir.mk @@ -5,16 +5,19 @@ # Add inputs and outputs from these tool invocations to the build variables C_SRCS += \ +../SW_APPs/APP_IDcard.c \ ../SW_APPs/APP_blood.c \ ../SW_APPs/Main_APP.c \ ../SW_APPs/windows.c OBJS += \ +./SW_APPs/APP_IDcard.o \ ./SW_APPs/APP_blood.o \ ./SW_APPs/Main_APP.o \ ./SW_APPs/windows.o C_DEPS += \ +./SW_APPs/APP_IDcard.d \ ./SW_APPs/APP_blood.d \ ./SW_APPs/Main_APP.d \ ./SW_APPs/windows.d diff --git a/Debug/SW_APPs/windows.d b/Debug/SW_APPs/windows.d index 36ebcdd..0fc1d01 100644 --- a/Debug/SW_APPs/windows.d +++ b/Debug/SW_APPs/windows.d @@ -24,6 +24,7 @@ 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 \ + ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_spi.h \ ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h \ ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h \ /Users/wuwenfeng/STM32CubeIDE/workspace_1.7.0/m3s/HW_Devices/lcd.h \ @@ -83,6 +84,8 @@ SW_APPs/windows.o: ../SW_APPs/windows.c ../SW_APPs/windows.h \ ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_pwr.h: +../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_spi.h: + ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h: ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h: diff --git a/Debug/m3s.bin b/Debug/m3s.bin index 4e52504..70ab173 100755 Binary files a/Debug/m3s.bin and b/Debug/m3s.bin differ diff --git a/Debug/m3s.list b/Debug/m3s.list index 1d93fb3..9c00d38 100644 --- a/Debug/m3s.list +++ b/Debug/m3s.list @@ -5,45 +5,45 @@ Sections: Idx Name Size VMA LMA File off Algn 0 .isr_vector 000001e4 08000000 08000000 00010000 2**0 CONTENTS, ALLOC, LOAD, READONLY, DATA - 1 .text 00009e38 080001e8 080001e8 000101e8 2**3 + 1 .text 00009b40 080001e8 080001e8 000101e8 2**3 CONTENTS, ALLOC, LOAD, READONLY, CODE - 2 .rodata 0000129c 0800a020 0800a020 0001a020 2**3 + 2 .rodata 00000f2c 08009d28 08009d28 00019d28 2**3 CONTENTS, ALLOC, LOAD, READONLY, DATA - 3 .ARM.extab 00000000 0800b2bc 0800b2bc 000201e0 2**0 + 3 .ARM.extab 00000000 0800ac54 0800ac54 000201dc 2**0 CONTENTS - 4 .ARM 00000000 0800b2bc 0800b2bc 000201e0 2**0 + 4 .ARM 00000000 0800ac54 0800ac54 000201dc 2**0 CONTENTS - 5 .preinit_array 00000000 0800b2bc 0800b2bc 000201e0 2**0 + 5 .preinit_array 00000000 0800ac54 0800ac54 000201dc 2**0 CONTENTS, ALLOC, LOAD, DATA - 6 .init_array 00000004 0800b2bc 0800b2bc 0001b2bc 2**2 + 6 .init_array 00000004 0800ac54 0800ac54 0001ac54 2**2 CONTENTS, ALLOC, LOAD, DATA - 7 .fini_array 00000004 0800b2c0 0800b2c0 0001b2c0 2**2 + 7 .fini_array 00000004 0800ac58 0800ac58 0001ac58 2**2 CONTENTS, ALLOC, LOAD, DATA - 8 .data 000001e0 20000000 0800b2c4 00020000 2**2 + 8 .data 000001dc 20000000 0800ac5c 00020000 2**2 CONTENTS, ALLOC, LOAD, DATA - 9 .bss 000022cc 200001e0 0800b4a4 000201e0 2**2 + 9 .bss 00002320 200001dc 0800ae38 000201dc 2**2 ALLOC - 10 ._user_heap_stack 00000c04 200024ac 0800b4a4 000224ac 2**0 + 10 ._user_heap_stack 00000c04 200024fc 0800ae38 000224fc 2**0 ALLOC - 11 .ARM.attributes 00000029 00000000 00000000 000201e0 2**0 + 11 .ARM.attributes 00000029 00000000 00000000 000201dc 2**0 CONTENTS, READONLY - 12 .debug_info 00012c6e 00000000 00000000 00020209 2**0 + 12 .debug_info 000159cd 00000000 00000000 00020205 2**0 CONTENTS, READONLY, DEBUGGING, OCTETS - 13 .debug_abbrev 0000303e 00000000 00000000 00032e77 2**0 + 13 .debug_abbrev 0000368c 00000000 00000000 00035bd2 2**0 CONTENTS, READONLY, DEBUGGING, OCTETS - 14 .debug_aranges 000010d8 00000000 00000000 00035eb8 2**3 + 14 .debug_aranges 00001398 00000000 00000000 00039260 2**3 CONTENTS, READONLY, DEBUGGING, OCTETS - 15 .debug_ranges 00000fb0 00000000 00000000 00036f90 2**3 + 15 .debug_ranges 00001240 00000000 00000000 0003a5f8 2**3 CONTENTS, READONLY, DEBUGGING, OCTETS - 16 .debug_macro 0001c81a 00000000 00000000 00037f40 2**0 + 16 .debug_macro 0001d58c 00000000 00000000 0003b838 2**0 CONTENTS, READONLY, DEBUGGING, OCTETS - 17 .debug_line 00014abb 00000000 00000000 0005475a 2**0 + 17 .debug_line 00017dd7 00000000 00000000 00058dc4 2**0 CONTENTS, READONLY, DEBUGGING, OCTETS - 18 .debug_str 0009eb80 00000000 00000000 00069215 2**0 + 18 .debug_str 000a0fa1 00000000 00000000 00070b9b 2**0 CONTENTS, READONLY, DEBUGGING, OCTETS - 19 .comment 00000053 00000000 00000000 00107d95 2**0 + 19 .comment 00000053 00000000 00000000 00111b3c 2**0 CONTENTS, READONLY - 20 .debug_frame 00005974 00000000 00000000 00107de8 2**2 + 20 .debug_frame 000063c8 00000000 00000000 00111b90 2**2 CONTENTS, READONLY, DEBUGGING, OCTETS Disassembly of section .text: @@ -60,9 +60,9 @@ Disassembly of section .text: 80001fa: 2301 movs r3, #1 80001fc: 7023 strb r3, [r4, #0] 80001fe: bd10 pop {r4, pc} - 8000200: 200001e0 .word 0x200001e0 + 8000200: 200001dc .word 0x200001dc 8000204: 00000000 .word 0x00000000 - 8000208: 0800a008 .word 0x0800a008 + 8000208: 08009d10 .word 0x08009d10 0800020c : 800020c: b508 push {r3, lr} @@ -73,8 +73,8 @@ Disassembly of section .text: 8000216: f3af 8000 nop.w 800021a: bd08 pop {r3, pc} 800021c: 00000000 .word 0x00000000 - 8000220: 200001e4 .word 0x200001e4 - 8000224: 0800a008 .word 0x0800a008 + 8000220: 200001e0 .word 0x200001e0 + 8000224: 08009d10 .word 0x08009d10 08000228 : 8000228: 4603 mov r3, r0 @@ -1338,20586 +1338,20962 @@ Disassembly of section .text: 80010b8: e75f b.n 8000f7a <__aeabi_fmul+0x15e> 80010ba: bf00 nop -080010bc <__gesf2>: - 80010bc: f04f 3cff mov.w ip, #4294967295 ; 0xffffffff - 80010c0: e006 b.n 80010d0 <__cmpsf2+0x4> - 80010c2: bf00 nop - -080010c4 <__lesf2>: - 80010c4: f04f 0c01 mov.w ip, #1 - 80010c8: e002 b.n 80010d0 <__cmpsf2+0x4> - 80010ca: bf00 nop - -080010cc <__cmpsf2>: - 80010cc: f04f 0c01 mov.w ip, #1 - 80010d0: f84d cd04 str.w ip, [sp, #-4]! - 80010d4: ea4f 0240 mov.w r2, r0, lsl #1 - 80010d8: ea4f 0341 mov.w r3, r1, lsl #1 - 80010dc: ea7f 6c22 mvns.w ip, r2, asr #24 +080010bc <__aeabi_f2iz>: + 80010bc: ea4f 0240 mov.w r2, r0, lsl #1 + 80010c0: f1b2 4ffe cmp.w r2, #2130706432 ; 0x7f000000 + 80010c4: d30f bcc.n 80010e6 <__aeabi_f2iz+0x2a> + 80010c6: f04f 039e mov.w r3, #158 ; 0x9e + 80010ca: ebb3 6212 subs.w r2, r3, r2, lsr #24 + 80010ce: d90d bls.n 80010ec <__aeabi_f2iz+0x30> + 80010d0: ea4f 2300 mov.w r3, r0, lsl #8 + 80010d4: f043 4300 orr.w r3, r3, #2147483648 ; 0x80000000 + 80010d8: f010 4f00 tst.w r0, #2147483648 ; 0x80000000 + 80010dc: fa23 f002 lsr.w r0, r3, r2 80010e0: bf18 it ne - 80010e2: ea7f 6c23 mvnsne.w ip, r3, asr #24 - 80010e6: d011 beq.n 800110c <__cmpsf2+0x40> - 80010e8: b001 add sp, #4 - 80010ea: ea52 0c53 orrs.w ip, r2, r3, lsr #1 - 80010ee: bf18 it ne - 80010f0: ea90 0f01 teqne r0, r1 - 80010f4: bf58 it pl - 80010f6: ebb2 0003 subspl.w r0, r2, r3 - 80010fa: bf88 it hi - 80010fc: 17c8 asrhi r0, r1, #31 - 80010fe: bf38 it cc - 8001100: ea6f 70e1 mvncc.w r0, r1, asr #31 - 8001104: bf18 it ne - 8001106: f040 0001 orrne.w r0, r0, #1 - 800110a: 4770 bx lr - 800110c: ea7f 6c22 mvns.w ip, r2, asr #24 - 8001110: d102 bne.n 8001118 <__cmpsf2+0x4c> - 8001112: ea5f 2c40 movs.w ip, r0, lsl #9 - 8001116: d105 bne.n 8001124 <__cmpsf2+0x58> - 8001118: ea7f 6c23 mvns.w ip, r3, asr #24 - 800111c: d1e4 bne.n 80010e8 <__cmpsf2+0x1c> - 800111e: ea5f 2c41 movs.w ip, r1, lsl #9 - 8001122: d0e1 beq.n 80010e8 <__cmpsf2+0x1c> - 8001124: f85d 0b04 ldr.w r0, [sp], #4 - 8001128: 4770 bx lr - 800112a: bf00 nop + 80010e2: 4240 negne r0, r0 + 80010e4: 4770 bx lr + 80010e6: f04f 0000 mov.w r0, #0 + 80010ea: 4770 bx lr + 80010ec: f112 0f61 cmn.w r2, #97 ; 0x61 + 80010f0: d101 bne.n 80010f6 <__aeabi_f2iz+0x3a> + 80010f2: 0242 lsls r2, r0, #9 + 80010f4: d105 bne.n 8001102 <__aeabi_f2iz+0x46> + 80010f6: f010 4000 ands.w r0, r0, #2147483648 ; 0x80000000 + 80010fa: bf08 it eq + 80010fc: f06f 4000 mvneq.w r0, #2147483648 ; 0x80000000 + 8001100: 4770 bx lr + 8001102: f04f 0000 mov.w r0, #0 + 8001106: 4770 bx lr -0800112c <__aeabi_cfrcmple>: - 800112c: 4684 mov ip, r0 - 800112e: 4608 mov r0, r1 - 8001130: 4661 mov r1, ip - 8001132: e7ff b.n 8001134 <__aeabi_cfcmpeq> - -08001134 <__aeabi_cfcmpeq>: - 8001134: b50f push {r0, r1, r2, r3, lr} - 8001136: f7ff ffc9 bl 80010cc <__cmpsf2> - 800113a: 2800 cmp r0, #0 - 800113c: bf48 it mi - 800113e: f110 0f00 cmnmi.w r0, #0 - 8001142: bd0f pop {r0, r1, r2, r3, pc} - -08001144 <__aeabi_fcmpeq>: - 8001144: f84d ed08 str.w lr, [sp, #-8]! - 8001148: f7ff fff4 bl 8001134 <__aeabi_cfcmpeq> - 800114c: bf0c ite eq - 800114e: 2001 moveq r0, #1 - 8001150: 2000 movne r0, #0 - 8001152: f85d fb08 ldr.w pc, [sp], #8 - 8001156: bf00 nop - -08001158 <__aeabi_fcmplt>: - 8001158: f84d ed08 str.w lr, [sp, #-8]! - 800115c: f7ff ffea bl 8001134 <__aeabi_cfcmpeq> - 8001160: bf34 ite cc - 8001162: 2001 movcc r0, #1 - 8001164: 2000 movcs r0, #0 - 8001166: f85d fb08 ldr.w pc, [sp], #8 - 800116a: bf00 nop - -0800116c <__aeabi_fcmple>: - 800116c: f84d ed08 str.w lr, [sp, #-8]! - 8001170: f7ff ffe0 bl 8001134 <__aeabi_cfcmpeq> - 8001174: bf94 ite ls - 8001176: 2001 movls r0, #1 - 8001178: 2000 movhi r0, #0 - 800117a: f85d fb08 ldr.w pc, [sp], #8 - 800117e: bf00 nop - -08001180 <__aeabi_fcmpge>: - 8001180: f84d ed08 str.w lr, [sp, #-8]! - 8001184: f7ff ffd2 bl 800112c <__aeabi_cfrcmple> - 8001188: bf94 ite ls - 800118a: 2001 movls r0, #1 - 800118c: 2000 movhi r0, #0 - 800118e: f85d fb08 ldr.w pc, [sp], #8 - 8001192: bf00 nop - -08001194 <__aeabi_fcmpgt>: - 8001194: f84d ed08 str.w lr, [sp, #-8]! - 8001198: f7ff ffc8 bl 800112c <__aeabi_cfrcmple> - 800119c: bf34 ite cc - 800119e: 2001 movcc r0, #1 - 80011a0: 2000 movcs r0, #0 - 80011a2: f85d fb08 ldr.w pc, [sp], #8 - 80011a6: bf00 nop - -080011a8 <__aeabi_fcmpun>: - 80011a8: ea4f 0240 mov.w r2, r0, lsl #1 - 80011ac: ea4f 0341 mov.w r3, r1, lsl #1 - 80011b0: ea7f 6c22 mvns.w ip, r2, asr #24 - 80011b4: d102 bne.n 80011bc <__aeabi_fcmpun+0x14> - 80011b6: ea5f 2c40 movs.w ip, r0, lsl #9 - 80011ba: d108 bne.n 80011ce <__aeabi_fcmpun+0x26> - 80011bc: ea7f 6c23 mvns.w ip, r3, asr #24 - 80011c0: d102 bne.n 80011c8 <__aeabi_fcmpun+0x20> - 80011c2: ea5f 2c41 movs.w ip, r1, lsl #9 - 80011c6: d102 bne.n 80011ce <__aeabi_fcmpun+0x26> - 80011c8: f04f 0000 mov.w r0, #0 - 80011cc: 4770 bx lr - 80011ce: f04f 0001 mov.w r0, #1 - 80011d2: 4770 bx lr - -080011d4 <__aeabi_f2iz>: - 80011d4: ea4f 0240 mov.w r2, r0, lsl #1 - 80011d8: f1b2 4ffe cmp.w r2, #2130706432 ; 0x7f000000 - 80011dc: d30f bcc.n 80011fe <__aeabi_f2iz+0x2a> - 80011de: f04f 039e mov.w r3, #158 ; 0x9e - 80011e2: ebb3 6212 subs.w r2, r3, r2, lsr #24 - 80011e6: d90d bls.n 8001204 <__aeabi_f2iz+0x30> - 80011e8: ea4f 2300 mov.w r3, r0, lsl #8 - 80011ec: f043 4300 orr.w r3, r3, #2147483648 ; 0x80000000 - 80011f0: f010 4f00 tst.w r0, #2147483648 ; 0x80000000 - 80011f4: fa23 f002 lsr.w r0, r3, r2 - 80011f8: bf18 it ne - 80011fa: 4240 negne r0, r0 - 80011fc: 4770 bx lr - 80011fe: f04f 0000 mov.w r0, #0 - 8001202: 4770 bx lr - 8001204: f112 0f61 cmn.w r2, #97 ; 0x61 - 8001208: d101 bne.n 800120e <__aeabi_f2iz+0x3a> - 800120a: 0242 lsls r2, r0, #9 - 800120c: d105 bne.n 800121a <__aeabi_f2iz+0x46> - 800120e: f010 4000 ands.w r0, r0, #2147483648 ; 0x80000000 - 8001212: bf08 it eq - 8001214: f06f 4000 mvneq.w r0, #2147483648 ; 0x80000000 - 8001218: 4770 bx lr - 800121a: f04f 0000 mov.w r0, #0 - 800121e: 4770 bx lr - -08001220
: +08001108
: /** * @brief The application entry point. * @retval int */ int main(void) { - 8001220: b580 push {r7, lr} - 8001222: af00 add r7, sp, #0 + 8001108: b580 push {r7, lr} + 800110a: af00 add r7, sp, #0 /* USER CODE END 1 */ /* MCU Configuration--------------------------------------------------------*/ /* Reset of all peripherals, Initializes the Flash interface and the Systick. */ HAL_Init(); - 8001224: f000 fbf6 bl 8001a14 + 800110c: f000 fcb4 bl 8001a78 /* USER CODE BEGIN Init */ /* USER CODE END Init */ /* Configure the system clock */ SystemClock_Config(); - 8001228: f000 f80b bl 8001242 + 8001110: f000 f80d bl 800112e /* USER CODE BEGIN SysInit */ /* USER CODE END SysInit */ /* Initialize all configured peripherals */ MX_GPIO_Init(); - 800122c: f000 f8b2 bl 8001394 + 8001114: f000 f8ea bl 80012ec MX_FSMC_Init(); - 8001230: f000 f972 bl 8001518 + 8001118: f000 f9e6 bl 80014e8 MX_I2C2_Init(); - 8001234: f000 f84a bl 80012cc + 800111c: f000 f84c bl 80011b8 MX_TIM6_Init(); - 8001238: f000 f876 bl 8001328 + 8001120: f000 f8ae bl 8001280 + MX_SPI1_Init(); + 8001124: f000 f876 bl 8001214 /* USER CODE BEGIN 2 */ main_app(); - 800123c: f005 fc6e bl 8006b1c + 8001128: f005 fbe0 bl 80068ec /* USER CODE END 2 */ /* Infinite loop */ /* USER CODE BEGIN WHILE */ while (1) - 8001240: e7fe b.n 8001240 + 800112c: e7fe b.n 800112c -08001242 : +0800112e : /** * @brief System Clock Configuration * @retval None */ void SystemClock_Config(void) { - 8001242: b580 push {r7, lr} - 8001244: b090 sub sp, #64 ; 0x40 - 8001246: af00 add r7, sp, #0 + 800112e: b580 push {r7, lr} + 8001130: b090 sub sp, #64 ; 0x40 + 8001132: af00 add r7, sp, #0 RCC_OscInitTypeDef RCC_OscInitStruct = {0}; - 8001248: f107 0318 add.w r3, r7, #24 - 800124c: 2228 movs r2, #40 ; 0x28 - 800124e: 2100 movs r1, #0 - 8001250: 4618 mov r0, r3 - 8001252: f005 ffcd bl 80071f0 + 8001134: f107 0318 add.w r3, r7, #24 + 8001138: 2228 movs r2, #40 ; 0x28 + 800113a: 2100 movs r1, #0 + 800113c: 4618 mov r0, r3 + 800113e: f005 ff4d bl 8006fdc RCC_ClkInitTypeDef RCC_ClkInitStruct = {0}; - 8001256: 1d3b adds r3, r7, #4 - 8001258: 2200 movs r2, #0 - 800125a: 601a str r2, [r3, #0] - 800125c: 605a str r2, [r3, #4] - 800125e: 609a str r2, [r3, #8] - 8001260: 60da str r2, [r3, #12] - 8001262: 611a str r2, [r3, #16] + 8001142: 1d3b adds r3, r7, #4 + 8001144: 2200 movs r2, #0 + 8001146: 601a str r2, [r3, #0] + 8001148: 605a str r2, [r3, #4] + 800114a: 609a str r2, [r3, #8] + 800114c: 60da str r2, [r3, #12] + 800114e: 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; - 8001264: 2301 movs r3, #1 - 8001266: 61bb str r3, [r7, #24] + 8001150: 2301 movs r3, #1 + 8001152: 61bb str r3, [r7, #24] RCC_OscInitStruct.HSEState = RCC_HSE_ON; - 8001268: f44f 3380 mov.w r3, #65536 ; 0x10000 - 800126c: 61fb str r3, [r7, #28] + 8001154: f44f 3380 mov.w r3, #65536 ; 0x10000 + 8001158: 61fb str r3, [r7, #28] RCC_OscInitStruct.HSEPredivValue = RCC_HSE_PREDIV_DIV1; - 800126e: 2300 movs r3, #0 - 8001270: 623b str r3, [r7, #32] + 800115a: 2300 movs r3, #0 + 800115c: 623b str r3, [r7, #32] RCC_OscInitStruct.HSIState = RCC_HSI_ON; - 8001272: 2301 movs r3, #1 - 8001274: 62bb str r3, [r7, #40] ; 0x28 + 800115e: 2301 movs r3, #1 + 8001160: 62bb str r3, [r7, #40] ; 0x28 RCC_OscInitStruct.PLL.PLLState = RCC_PLL_ON; - 8001276: 2302 movs r3, #2 - 8001278: 637b str r3, [r7, #52] ; 0x34 + 8001162: 2302 movs r3, #2 + 8001164: 637b str r3, [r7, #52] ; 0x34 RCC_OscInitStruct.PLL.PLLSource = RCC_PLLSOURCE_HSE; - 800127a: f44f 3380 mov.w r3, #65536 ; 0x10000 - 800127e: 63bb str r3, [r7, #56] ; 0x38 + 8001166: f44f 3380 mov.w r3, #65536 ; 0x10000 + 800116a: 63bb str r3, [r7, #56] ; 0x38 RCC_OscInitStruct.PLL.PLLMUL = RCC_PLL_MUL9; - 8001280: f44f 13e0 mov.w r3, #1835008 ; 0x1c0000 - 8001284: 63fb str r3, [r7, #60] ; 0x3c + 800116c: f44f 13e0 mov.w r3, #1835008 ; 0x1c0000 + 8001170: 63fb str r3, [r7, #60] ; 0x3c if (HAL_RCC_OscConfig(&RCC_OscInitStruct) != HAL_OK) - 8001286: f107 0318 add.w r3, r7, #24 - 800128a: 4618 mov r0, r3 - 800128c: f001 ff1a bl 80030c4 - 8001290: 4603 mov r3, r0 - 8001292: 2b00 cmp r3, #0 - 8001294: d001 beq.n 800129a + 8001172: f107 0318 add.w r3, r7, #24 + 8001176: 4618 mov r0, r3 + 8001178: f001 ffd6 bl 8003128 + 800117c: 4603 mov r3, r0 + 800117e: 2b00 cmp r3, #0 + 8001180: d001 beq.n 8001186 { Error_Handler(); - 8001296: f000 f9a3 bl 80015e0 + 8001182: f000 fa15 bl 80015b0 } /** Initializes the CPU, AHB and APB buses clocks */ RCC_ClkInitStruct.ClockType = RCC_CLOCKTYPE_HCLK|RCC_CLOCKTYPE_SYSCLK - 800129a: 230f movs r3, #15 - 800129c: 607b str r3, [r7, #4] + 8001186: 230f movs r3, #15 + 8001188: 607b str r3, [r7, #4] |RCC_CLOCKTYPE_PCLK1|RCC_CLOCKTYPE_PCLK2; RCC_ClkInitStruct.SYSCLKSource = RCC_SYSCLKSOURCE_PLLCLK; - 800129e: 2302 movs r3, #2 - 80012a0: 60bb str r3, [r7, #8] + 800118a: 2302 movs r3, #2 + 800118c: 60bb str r3, [r7, #8] RCC_ClkInitStruct.AHBCLKDivider = RCC_SYSCLK_DIV1; - 80012a2: 2300 movs r3, #0 - 80012a4: 60fb str r3, [r7, #12] + 800118e: 2300 movs r3, #0 + 8001190: 60fb str r3, [r7, #12] RCC_ClkInitStruct.APB1CLKDivider = RCC_HCLK_DIV2; - 80012a6: f44f 6380 mov.w r3, #1024 ; 0x400 - 80012aa: 613b str r3, [r7, #16] + 8001192: f44f 6380 mov.w r3, #1024 ; 0x400 + 8001196: 613b str r3, [r7, #16] RCC_ClkInitStruct.APB2CLKDivider = RCC_HCLK_DIV1; - 80012ac: 2300 movs r3, #0 - 80012ae: 617b str r3, [r7, #20] + 8001198: 2300 movs r3, #0 + 800119a: 617b str r3, [r7, #20] if (HAL_RCC_ClockConfig(&RCC_ClkInitStruct, FLASH_LATENCY_2) != HAL_OK) - 80012b0: 1d3b adds r3, r7, #4 - 80012b2: 2102 movs r1, #2 - 80012b4: 4618 mov r0, r3 - 80012b6: f002 f985 bl 80035c4 - 80012ba: 4603 mov r3, r0 - 80012bc: 2b00 cmp r3, #0 - 80012be: d001 beq.n 80012c4 + 800119c: 1d3b adds r3, r7, #4 + 800119e: 2102 movs r1, #2 + 80011a0: 4618 mov r0, r3 + 80011a2: f002 fa41 bl 8003628 + 80011a6: 4603 mov r3, r0 + 80011a8: 2b00 cmp r3, #0 + 80011aa: d001 beq.n 80011b0 { Error_Handler(); - 80012c0: f000 f98e bl 80015e0 + 80011ac: f000 fa00 bl 80015b0 } } - 80012c4: bf00 nop - 80012c6: 3740 adds r7, #64 ; 0x40 - 80012c8: 46bd mov sp, r7 - 80012ca: bd80 pop {r7, pc} + 80011b0: bf00 nop + 80011b2: 3740 adds r7, #64 ; 0x40 + 80011b4: 46bd mov sp, r7 + 80011b6: bd80 pop {r7, pc} -080012cc : +080011b8 : * @brief I2C2 Initialization Function * @param None * @retval None */ static void MX_I2C2_Init(void) { - 80012cc: b580 push {r7, lr} - 80012ce: af00 add r7, sp, #0 + 80011b8: b580 push {r7, lr} + 80011ba: 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; - 80012d0: 4b12 ldr r3, [pc, #72] ; (800131c ) - 80012d2: 4a13 ldr r2, [pc, #76] ; (8001320 ) - 80012d4: 601a str r2, [r3, #0] + 80011bc: 4b12 ldr r3, [pc, #72] ; (8001208 ) + 80011be: 4a13 ldr r2, [pc, #76] ; (800120c ) + 80011c0: 601a str r2, [r3, #0] hi2c2.Init.ClockSpeed = 100000; - 80012d6: 4b11 ldr r3, [pc, #68] ; (800131c ) - 80012d8: 4a12 ldr r2, [pc, #72] ; (8001324 ) - 80012da: 605a str r2, [r3, #4] + 80011c2: 4b11 ldr r3, [pc, #68] ; (8001208 ) + 80011c4: 4a12 ldr r2, [pc, #72] ; (8001210 ) + 80011c6: 605a str r2, [r3, #4] hi2c2.Init.DutyCycle = I2C_DUTYCYCLE_2; - 80012dc: 4b0f ldr r3, [pc, #60] ; (800131c ) - 80012de: 2200 movs r2, #0 - 80012e0: 609a str r2, [r3, #8] + 80011c8: 4b0f ldr r3, [pc, #60] ; (8001208 ) + 80011ca: 2200 movs r2, #0 + 80011cc: 609a str r2, [r3, #8] hi2c2.Init.OwnAddress1 = 0; - 80012e2: 4b0e ldr r3, [pc, #56] ; (800131c ) - 80012e4: 2200 movs r2, #0 - 80012e6: 60da str r2, [r3, #12] + 80011ce: 4b0e ldr r3, [pc, #56] ; (8001208 ) + 80011d0: 2200 movs r2, #0 + 80011d2: 60da str r2, [r3, #12] hi2c2.Init.AddressingMode = I2C_ADDRESSINGMODE_7BIT; - 80012e8: 4b0c ldr r3, [pc, #48] ; (800131c ) - 80012ea: f44f 4280 mov.w r2, #16384 ; 0x4000 - 80012ee: 611a str r2, [r3, #16] + 80011d4: 4b0c ldr r3, [pc, #48] ; (8001208 ) + 80011d6: f44f 4280 mov.w r2, #16384 ; 0x4000 + 80011da: 611a str r2, [r3, #16] hi2c2.Init.DualAddressMode = I2C_DUALADDRESS_DISABLE; - 80012f0: 4b0a ldr r3, [pc, #40] ; (800131c ) - 80012f2: 2200 movs r2, #0 - 80012f4: 615a str r2, [r3, #20] + 80011dc: 4b0a ldr r3, [pc, #40] ; (8001208 ) + 80011de: 2200 movs r2, #0 + 80011e0: 615a str r2, [r3, #20] hi2c2.Init.OwnAddress2 = 0; - 80012f6: 4b09 ldr r3, [pc, #36] ; (800131c ) - 80012f8: 2200 movs r2, #0 - 80012fa: 619a str r2, [r3, #24] + 80011e2: 4b09 ldr r3, [pc, #36] ; (8001208 ) + 80011e4: 2200 movs r2, #0 + 80011e6: 619a str r2, [r3, #24] hi2c2.Init.GeneralCallMode = I2C_GENERALCALL_DISABLE; - 80012fc: 4b07 ldr r3, [pc, #28] ; (800131c ) - 80012fe: 2200 movs r2, #0 - 8001300: 61da str r2, [r3, #28] + 80011e8: 4b07 ldr r3, [pc, #28] ; (8001208 ) + 80011ea: 2200 movs r2, #0 + 80011ec: 61da str r2, [r3, #28] hi2c2.Init.NoStretchMode = I2C_NOSTRETCH_DISABLE; - 8001302: 4b06 ldr r3, [pc, #24] ; (800131c ) - 8001304: 2200 movs r2, #0 - 8001306: 621a str r2, [r3, #32] + 80011ee: 4b06 ldr r3, [pc, #24] ; (8001208 ) + 80011f0: 2200 movs r2, #0 + 80011f2: 621a str r2, [r3, #32] if (HAL_I2C_Init(&hi2c2) != HAL_OK) - 8001308: 4804 ldr r0, [pc, #16] ; (800131c ) - 800130a: f000 fedb bl 80020c4 - 800130e: 4603 mov r3, r0 - 8001310: 2b00 cmp r3, #0 - 8001312: d001 beq.n 8001318 + 80011f4: 4804 ldr r0, [pc, #16] ; (8001208 ) + 80011f6: f000 ff97 bl 8002128 + 80011fa: 4603 mov r3, r0 + 80011fc: 2b00 cmp r3, #0 + 80011fe: d001 beq.n 8001204 { Error_Handler(); - 8001314: f000 f964 bl 80015e0 + 8001200: f000 f9d6 bl 80015b0 } /* USER CODE BEGIN I2C2_Init 2 */ /* USER CODE END I2C2_Init 2 */ } - 8001318: bf00 nop - 800131a: bd80 pop {r7, pc} - 800131c: 20000218 .word 0x20000218 - 8001320: 40005800 .word 0x40005800 - 8001324: 000186a0 .word 0x000186a0 + 8001204: bf00 nop + 8001206: bd80 pop {r7, pc} + 8001208: 2000020c .word 0x2000020c + 800120c: 40005800 .word 0x40005800 + 8001210: 000186a0 .word 0x000186a0 -08001328 : +08001214 : + * @brief SPI1 Initialization Function + * @param None + * @retval None + */ +static void MX_SPI1_Init(void) +{ + 8001214: b580 push {r7, lr} + 8001216: af00 add r7, sp, #0 + + /* USER CODE BEGIN SPI1_Init 1 */ + + /* USER CODE END SPI1_Init 1 */ + /* SPI1 parameter configuration*/ + hspi1.Instance = SPI1; + 8001218: 4b17 ldr r3, [pc, #92] ; (8001278 ) + 800121a: 4a18 ldr r2, [pc, #96] ; (800127c ) + 800121c: 601a str r2, [r3, #0] + hspi1.Init.Mode = SPI_MODE_MASTER; + 800121e: 4b16 ldr r3, [pc, #88] ; (8001278 ) + 8001220: f44f 7282 mov.w r2, #260 ; 0x104 + 8001224: 605a str r2, [r3, #4] + hspi1.Init.Direction = SPI_DIRECTION_2LINES; + 8001226: 4b14 ldr r3, [pc, #80] ; (8001278 ) + 8001228: 2200 movs r2, #0 + 800122a: 609a str r2, [r3, #8] + hspi1.Init.DataSize = SPI_DATASIZE_8BIT; + 800122c: 4b12 ldr r3, [pc, #72] ; (8001278 ) + 800122e: 2200 movs r2, #0 + 8001230: 60da str r2, [r3, #12] + hspi1.Init.CLKPolarity = SPI_POLARITY_LOW; + 8001232: 4b11 ldr r3, [pc, #68] ; (8001278 ) + 8001234: 2200 movs r2, #0 + 8001236: 611a str r2, [r3, #16] + hspi1.Init.CLKPhase = SPI_PHASE_1EDGE; + 8001238: 4b0f ldr r3, [pc, #60] ; (8001278 ) + 800123a: 2200 movs r2, #0 + 800123c: 615a str r2, [r3, #20] + hspi1.Init.NSS = SPI_NSS_SOFT; + 800123e: 4b0e ldr r3, [pc, #56] ; (8001278 ) + 8001240: f44f 7200 mov.w r2, #512 ; 0x200 + 8001244: 619a str r2, [r3, #24] + hspi1.Init.BaudRatePrescaler = SPI_BAUDRATEPRESCALER_4; + 8001246: 4b0c ldr r3, [pc, #48] ; (8001278 ) + 8001248: 2208 movs r2, #8 + 800124a: 61da str r2, [r3, #28] + hspi1.Init.FirstBit = SPI_FIRSTBIT_MSB; + 800124c: 4b0a ldr r3, [pc, #40] ; (8001278 ) + 800124e: 2200 movs r2, #0 + 8001250: 621a str r2, [r3, #32] + hspi1.Init.TIMode = SPI_TIMODE_DISABLE; + 8001252: 4b09 ldr r3, [pc, #36] ; (8001278 ) + 8001254: 2200 movs r2, #0 + 8001256: 625a str r2, [r3, #36] ; 0x24 + hspi1.Init.CRCCalculation = SPI_CRCCALCULATION_DISABLE; + 8001258: 4b07 ldr r3, [pc, #28] ; (8001278 ) + 800125a: 2200 movs r2, #0 + 800125c: 629a str r2, [r3, #40] ; 0x28 + hspi1.Init.CRCPolynomial = 10; + 800125e: 4b06 ldr r3, [pc, #24] ; (8001278 ) + 8001260: 220a movs r2, #10 + 8001262: 62da str r2, [r3, #44] ; 0x2c + if (HAL_SPI_Init(&hspi1) != HAL_OK) + 8001264: 4804 ldr r0, [pc, #16] ; (8001278 ) + 8001266: f002 fb65 bl 8003934 + 800126a: 4603 mov r3, r0 + 800126c: 2b00 cmp r3, #0 + 800126e: d001 beq.n 8001274 + { + Error_Handler(); + 8001270: f000 f99e bl 80015b0 + } + /* USER CODE BEGIN SPI1_Init 2 */ + + /* USER CODE END SPI1_Init 2 */ + +} + 8001274: bf00 nop + 8001276: bd80 pop {r7, pc} + 8001278: 200002f0 .word 0x200002f0 + 800127c: 40013000 .word 0x40013000 + +08001280 : * @brief TIM6 Initialization Function * @param None * @retval None */ static void MX_TIM6_Init(void) { - 8001328: b580 push {r7, lr} - 800132a: b082 sub sp, #8 - 800132c: af00 add r7, sp, #0 + 8001280: b580 push {r7, lr} + 8001282: b082 sub sp, #8 + 8001284: af00 add r7, sp, #0 /* USER CODE BEGIN TIM6_Init 0 */ /* USER CODE END TIM6_Init 0 */ TIM_MasterConfigTypeDef sMasterConfig = {0}; - 800132e: 463b mov r3, r7 - 8001330: 2200 movs r2, #0 - 8001332: 601a str r2, [r3, #0] - 8001334: 605a str r2, [r3, #4] + 8001286: 463b mov r3, r7 + 8001288: 2200 movs r2, #0 + 800128a: 601a str r2, [r3, #0] + 800128c: 605a str r2, [r3, #4] /* USER CODE BEGIN TIM6_Init 1 */ /* USER CODE END TIM6_Init 1 */ htim6.Instance = TIM6; - 8001336: 4b15 ldr r3, [pc, #84] ; (800138c ) - 8001338: 4a15 ldr r2, [pc, #84] ; (8001390 ) - 800133a: 601a str r2, [r3, #0] + 800128e: 4b15 ldr r3, [pc, #84] ; (80012e4 ) + 8001290: 4a15 ldr r2, [pc, #84] ; (80012e8 ) + 8001292: 601a str r2, [r3, #0] htim6.Init.Prescaler = 72-1; - 800133c: 4b13 ldr r3, [pc, #76] ; (800138c ) - 800133e: 2247 movs r2, #71 ; 0x47 - 8001340: 605a str r2, [r3, #4] + 8001294: 4b13 ldr r3, [pc, #76] ; (80012e4 ) + 8001296: 2247 movs r2, #71 ; 0x47 + 8001298: 605a str r2, [r3, #4] htim6.Init.CounterMode = TIM_COUNTERMODE_UP; - 8001342: 4b12 ldr r3, [pc, #72] ; (800138c ) - 8001344: 2200 movs r2, #0 - 8001346: 609a str r2, [r3, #8] + 800129a: 4b12 ldr r3, [pc, #72] ; (80012e4 ) + 800129c: 2200 movs r2, #0 + 800129e: 609a str r2, [r3, #8] htim6.Init.Period = 10000-1; - 8001348: 4b10 ldr r3, [pc, #64] ; (800138c ) - 800134a: f242 720f movw r2, #9999 ; 0x270f - 800134e: 60da str r2, [r3, #12] + 80012a0: 4b10 ldr r3, [pc, #64] ; (80012e4 ) + 80012a2: f242 720f movw r2, #9999 ; 0x270f + 80012a6: 60da str r2, [r3, #12] htim6.Init.AutoReloadPreload = TIM_AUTORELOAD_PRELOAD_DISABLE; - 8001350: 4b0e ldr r3, [pc, #56] ; (800138c ) - 8001352: 2200 movs r2, #0 - 8001354: 619a str r2, [r3, #24] + 80012a8: 4b0e ldr r3, [pc, #56] ; (80012e4 ) + 80012aa: 2200 movs r2, #0 + 80012ac: 619a str r2, [r3, #24] if (HAL_TIM_Base_Init(&htim6) != HAL_OK) - 8001356: 480d ldr r0, [pc, #52] ; (800138c ) - 8001358: f002 fb07 bl 800396a - 800135c: 4603 mov r3, r0 - 800135e: 2b00 cmp r3, #0 - 8001360: d001 beq.n 8001366 + 80012ae: 480d ldr r0, [pc, #52] ; (80012e4 ) + 80012b0: f003 f8f9 bl 80044a6 + 80012b4: 4603 mov r3, r0 + 80012b6: 2b00 cmp r3, #0 + 80012b8: d001 beq.n 80012be { Error_Handler(); - 8001362: f000 f93d bl 80015e0 + 80012ba: f000 f979 bl 80015b0 } sMasterConfig.MasterOutputTrigger = TIM_TRGO_RESET; - 8001366: 2300 movs r3, #0 - 8001368: 603b str r3, [r7, #0] + 80012be: 2300 movs r3, #0 + 80012c0: 603b str r3, [r7, #0] sMasterConfig.MasterSlaveMode = TIM_MASTERSLAVEMODE_DISABLE; - 800136a: 2300 movs r3, #0 - 800136c: 607b str r3, [r7, #4] + 80012c2: 2300 movs r3, #0 + 80012c4: 607b str r3, [r7, #4] if (HAL_TIMEx_MasterConfigSynchronization(&htim6, &sMasterConfig) != HAL_OK) - 800136e: 463b mov r3, r7 - 8001370: 4619 mov r1, r3 - 8001372: 4806 ldr r0, [pc, #24] ; (800138c ) - 8001374: f002 fd7c bl 8003e70 - 8001378: 4603 mov r3, r0 - 800137a: 2b00 cmp r3, #0 - 800137c: d001 beq.n 8001382 + 80012c6: 463b mov r3, r7 + 80012c8: 4619 mov r1, r3 + 80012ca: 4806 ldr r0, [pc, #24] ; (80012e4 ) + 80012cc: f003 fb0e bl 80048ec + 80012d0: 4603 mov r3, r0 + 80012d2: 2b00 cmp r3, #0 + 80012d4: d001 beq.n 80012da { Error_Handler(); - 800137e: f000 f92f bl 80015e0 + 80012d6: f000 f96b bl 80015b0 } /* USER CODE BEGIN TIM6_Init 2 */ /* USER CODE END TIM6_Init 2 */ } - 8001382: bf00 nop - 8001384: 3708 adds r7, #8 - 8001386: 46bd mov sp, r7 - 8001388: bd80 pop {r7, pc} - 800138a: bf00 nop - 800138c: 200002b4 .word 0x200002b4 - 8001390: 40001000 .word 0x40001000 + 80012da: bf00 nop + 80012dc: 3708 adds r7, #8 + 80012de: 46bd mov sp, r7 + 80012e0: bd80 pop {r7, pc} + 80012e2: bf00 nop + 80012e4: 200002a8 .word 0x200002a8 + 80012e8: 40001000 .word 0x40001000 -08001394 : +080012ec : * @brief GPIO Initialization Function * @param None * @retval None */ static void MX_GPIO_Init(void) { - 8001394: b580 push {r7, lr} - 8001396: b08a sub sp, #40 ; 0x28 - 8001398: af00 add r7, sp, #0 + 80012ec: b580 push {r7, lr} + 80012ee: b08a sub sp, #40 ; 0x28 + 80012f0: af00 add r7, sp, #0 GPIO_InitTypeDef GPIO_InitStruct = {0}; - 800139a: f107 0318 add.w r3, r7, #24 - 800139e: 2200 movs r2, #0 - 80013a0: 601a str r2, [r3, #0] - 80013a2: 605a str r2, [r3, #4] - 80013a4: 609a str r2, [r3, #8] - 80013a6: 60da str r2, [r3, #12] + 80012f2: f107 0318 add.w r3, r7, #24 + 80012f6: 2200 movs r2, #0 + 80012f8: 601a str r2, [r3, #0] + 80012fa: 605a str r2, [r3, #4] + 80012fc: 609a str r2, [r3, #8] + 80012fe: 60da str r2, [r3, #12] /* GPIO Ports Clock Enable */ - __HAL_RCC_GPIOF_CLK_ENABLE(); - 80013a8: 4b58 ldr r3, [pc, #352] ; (800150c ) - 80013aa: 699b ldr r3, [r3, #24] - 80013ac: 4a57 ldr r2, [pc, #348] ; (800150c ) - 80013ae: f043 0380 orr.w r3, r3, #128 ; 0x80 - 80013b2: 6193 str r3, [r2, #24] - 80013b4: 4b55 ldr r3, [pc, #340] ; (800150c ) - 80013b6: 699b ldr r3, [r3, #24] - 80013b8: f003 0380 and.w r3, r3, #128 ; 0x80 - 80013bc: 617b str r3, [r7, #20] - 80013be: 697b ldr r3, [r7, #20] - __HAL_RCC_GPIOB_CLK_ENABLE(); - 80013c0: 4b52 ldr r3, [pc, #328] ; (800150c ) - 80013c2: 699b ldr r3, [r3, #24] - 80013c4: 4a51 ldr r2, [pc, #324] ; (800150c ) - 80013c6: f043 0308 orr.w r3, r3, #8 - 80013ca: 6193 str r3, [r2, #24] - 80013cc: 4b4f ldr r3, [pc, #316] ; (800150c ) - 80013ce: 699b ldr r3, [r3, #24] - 80013d0: f003 0308 and.w r3, r3, #8 - 80013d4: 613b str r3, [r7, #16] - 80013d6: 693b ldr r3, [r7, #16] - __HAL_RCC_GPIOG_CLK_ENABLE(); - 80013d8: 4b4c ldr r3, [pc, #304] ; (800150c ) - 80013da: 699b ldr r3, [r3, #24] - 80013dc: 4a4b ldr r2, [pc, #300] ; (800150c ) - 80013de: f443 7380 orr.w r3, r3, #256 ; 0x100 - 80013e2: 6193 str r3, [r2, #24] - 80013e4: 4b49 ldr r3, [pc, #292] ; (800150c ) - 80013e6: 699b ldr r3, [r3, #24] - 80013e8: f403 7380 and.w r3, r3, #256 ; 0x100 - 80013ec: 60fb str r3, [r7, #12] - 80013ee: 68fb ldr r3, [r7, #12] __HAL_RCC_GPIOE_CLK_ENABLE(); - 80013f0: 4b46 ldr r3, [pc, #280] ; (800150c ) - 80013f2: 699b ldr r3, [r3, #24] - 80013f4: 4a45 ldr r2, [pc, #276] ; (800150c ) - 80013f6: f043 0340 orr.w r3, r3, #64 ; 0x40 - 80013fa: 6193 str r3, [r2, #24] - 80013fc: 4b43 ldr r3, [pc, #268] ; (800150c ) - 80013fe: 699b ldr r3, [r3, #24] - 8001400: f003 0340 and.w r3, r3, #64 ; 0x40 - 8001404: 60bb str r3, [r7, #8] - 8001406: 68bb ldr r3, [r7, #8] + 8001300: 4b74 ldr r3, [pc, #464] ; (80014d4 ) + 8001302: 699b ldr r3, [r3, #24] + 8001304: 4a73 ldr r2, [pc, #460] ; (80014d4 ) + 8001306: f043 0340 orr.w r3, r3, #64 ; 0x40 + 800130a: 6193 str r3, [r2, #24] + 800130c: 4b71 ldr r3, [pc, #452] ; (80014d4 ) + 800130e: 699b ldr r3, [r3, #24] + 8001310: f003 0340 and.w r3, r3, #64 ; 0x40 + 8001314: 617b str r3, [r7, #20] + 8001316: 697b ldr r3, [r7, #20] + __HAL_RCC_GPIOF_CLK_ENABLE(); + 8001318: 4b6e ldr r3, [pc, #440] ; (80014d4 ) + 800131a: 699b ldr r3, [r3, #24] + 800131c: 4a6d ldr r2, [pc, #436] ; (80014d4 ) + 800131e: f043 0380 orr.w r3, r3, #128 ; 0x80 + 8001322: 6193 str r3, [r2, #24] + 8001324: 4b6b ldr r3, [pc, #428] ; (80014d4 ) + 8001326: 699b ldr r3, [r3, #24] + 8001328: f003 0380 and.w r3, r3, #128 ; 0x80 + 800132c: 613b str r3, [r7, #16] + 800132e: 693b ldr r3, [r7, #16] + __HAL_RCC_GPIOA_CLK_ENABLE(); + 8001330: 4b68 ldr r3, [pc, #416] ; (80014d4 ) + 8001332: 699b ldr r3, [r3, #24] + 8001334: 4a67 ldr r2, [pc, #412] ; (80014d4 ) + 8001336: f043 0304 orr.w r3, r3, #4 + 800133a: 6193 str r3, [r2, #24] + 800133c: 4b65 ldr r3, [pc, #404] ; (80014d4 ) + 800133e: 699b ldr r3, [r3, #24] + 8001340: f003 0304 and.w r3, r3, #4 + 8001344: 60fb str r3, [r7, #12] + 8001346: 68fb ldr r3, [r7, #12] + __HAL_RCC_GPIOB_CLK_ENABLE(); + 8001348: 4b62 ldr r3, [pc, #392] ; (80014d4 ) + 800134a: 699b ldr r3, [r3, #24] + 800134c: 4a61 ldr r2, [pc, #388] ; (80014d4 ) + 800134e: f043 0308 orr.w r3, r3, #8 + 8001352: 6193 str r3, [r2, #24] + 8001354: 4b5f ldr r3, [pc, #380] ; (80014d4 ) + 8001356: 699b ldr r3, [r3, #24] + 8001358: f003 0308 and.w r3, r3, #8 + 800135c: 60bb str r3, [r7, #8] + 800135e: 68bb ldr r3, [r7, #8] + __HAL_RCC_GPIOG_CLK_ENABLE(); + 8001360: 4b5c ldr r3, [pc, #368] ; (80014d4 ) + 8001362: 699b ldr r3, [r3, #24] + 8001364: 4a5b ldr r2, [pc, #364] ; (80014d4 ) + 8001366: f443 7380 orr.w r3, r3, #256 ; 0x100 + 800136a: 6193 str r3, [r2, #24] + 800136c: 4b59 ldr r3, [pc, #356] ; (80014d4 ) + 800136e: 699b ldr r3, [r3, #24] + 8001370: f403 7380 and.w r3, r3, #256 ; 0x100 + 8001374: 607b str r3, [r7, #4] + 8001376: 687b ldr r3, [r7, #4] __HAL_RCC_GPIOD_CLK_ENABLE(); - 8001408: 4b40 ldr r3, [pc, #256] ; (800150c ) - 800140a: 699b ldr r3, [r3, #24] - 800140c: 4a3f ldr r2, [pc, #252] ; (800150c ) - 800140e: f043 0320 orr.w r3, r3, #32 - 8001412: 6193 str r3, [r2, #24] - 8001414: 4b3d ldr r3, [pc, #244] ; (800150c ) - 8001416: 699b ldr r3, [r3, #24] - 8001418: f003 0320 and.w r3, r3, #32 - 800141c: 607b str r3, [r7, #4] - 800141e: 687b ldr r3, [r7, #4] + 8001378: 4b56 ldr r3, [pc, #344] ; (80014d4 ) + 800137a: 699b ldr r3, [r3, #24] + 800137c: 4a55 ldr r2, [pc, #340] ; (80014d4 ) + 800137e: f043 0320 orr.w r3, r3, #32 + 8001382: 6193 str r3, [r2, #24] + 8001384: 4b53 ldr r3, [pc, #332] ; (80014d4 ) + 8001386: 699b ldr r3, [r3, #24] + 8001388: f003 0320 and.w r3, r3, #32 + 800138c: 603b str r3, [r7, #0] + 800138e: 683b ldr r3, [r7, #0] /*Configure GPIO pin Output Level */ HAL_GPIO_WritePin(TDIN_GPIO_Port, TDIN_Pin, GPIO_PIN_SET); - 8001420: 2201 movs r2, #1 - 8001422: f44f 7100 mov.w r1, #512 ; 0x200 - 8001426: 483a ldr r0, [pc, #232] ; (8001510 ) - 8001428: f000 fe33 bl 8002092 + 8001390: 2201 movs r2, #1 + 8001392: f44f 7100 mov.w r1, #512 ; 0x200 + 8001396: 4850 ldr r0, [pc, #320] ; (80014d8 ) + 8001398: f000 fead bl 80020f6 + + /*Configure GPIO pin Output Level */ + HAL_GPIO_WritePin(RC522_CS_GPIO_Port, RC522_CS_Pin, GPIO_PIN_RESET); + 800139c: 2200 movs r2, #0 + 800139e: 2110 movs r1, #16 + 80013a0: 484e ldr r0, [pc, #312] ; (80014dc ) + 80013a2: f000 fea8 bl 80020f6 /*Configure GPIO pin Output Level */ HAL_GPIO_WritePin(LCD_BL_GPIO_Port, LCD_BL_Pin, GPIO_PIN_RESET); - 800142c: 2200 movs r2, #0 - 800142e: 2101 movs r1, #1 - 8001430: 4838 ldr r0, [pc, #224] ; (8001514 ) - 8001432: f000 fe2e bl 8002092 + 80013a6: 2200 movs r2, #0 + 80013a8: 2101 movs r1, #1 + 80013aa: 484d ldr r0, [pc, #308] ; (80014e0 ) + 80013ac: f000 fea3 bl 80020f6 /*Configure GPIO pin Output Level */ HAL_GPIO_WritePin(GPIOB, TCLK_Pin|TCS_Pin|MAX_IRD_Pin|MAX_RD_Pin, GPIO_PIN_SET); - 8001436: 2201 movs r2, #1 - 8001438: f245 0106 movw r1, #20486 ; 0x5006 - 800143c: 4835 ldr r0, [pc, #212] ; (8001514 ) - 800143e: f000 fe28 bl 8002092 + 80013b0: 2201 movs r2, #1 + 80013b2: f245 0106 movw r1, #20486 ; 0x5006 + 80013b6: 484a ldr r0, [pc, #296] ; (80014e0 ) + 80013b8: f000 fe9d bl 80020f6 + + /*Configure GPIO pins : KEY3_Pin KEY2_Pin KEY1_Pin */ + GPIO_InitStruct.Pin = KEY3_Pin|KEY2_Pin|KEY1_Pin; + 80013bc: 231c movs r3, #28 + 80013be: 61bb str r3, [r7, #24] + GPIO_InitStruct.Mode = GPIO_MODE_INPUT; + 80013c0: 2300 movs r3, #0 + 80013c2: 61fb str r3, [r7, #28] + GPIO_InitStruct.Pull = GPIO_PULLUP; + 80013c4: 2301 movs r3, #1 + 80013c6: 623b str r3, [r7, #32] + HAL_GPIO_Init(GPIOE, &GPIO_InitStruct); + 80013c8: f107 0318 add.w r3, r7, #24 + 80013cc: 4619 mov r1, r3 + 80013ce: 4845 ldr r0, [pc, #276] ; (80014e4 ) + 80013d0: f000 fce6 bl 8001da0 /*Configure GPIO pin : TDOUT_Pin */ GPIO_InitStruct.Pin = TDOUT_Pin; - 8001442: f44f 7380 mov.w r3, #256 ; 0x100 - 8001446: 61bb str r3, [r7, #24] + 80013d4: f44f 7380 mov.w r3, #256 ; 0x100 + 80013d8: 61bb str r3, [r7, #24] GPIO_InitStruct.Mode = GPIO_MODE_INPUT; - 8001448: 2300 movs r3, #0 - 800144a: 61fb str r3, [r7, #28] + 80013da: 2300 movs r3, #0 + 80013dc: 61fb str r3, [r7, #28] GPIO_InitStruct.Pull = GPIO_NOPULL; - 800144c: 2300 movs r3, #0 - 800144e: 623b str r3, [r7, #32] + 80013de: 2300 movs r3, #0 + 80013e0: 623b str r3, [r7, #32] HAL_GPIO_Init(TDOUT_GPIO_Port, &GPIO_InitStruct); - 8001450: f107 0318 add.w r3, r7, #24 - 8001454: 4619 mov r1, r3 - 8001456: 482e ldr r0, [pc, #184] ; (8001510 ) - 8001458: f000 fc70 bl 8001d3c + 80013e2: f107 0318 add.w r3, r7, #24 + 80013e6: 4619 mov r1, r3 + 80013e8: 483b ldr r0, [pc, #236] ; (80014d8 ) + 80013ea: f000 fcd9 bl 8001da0 /*Configure GPIO pin : TDIN_Pin */ GPIO_InitStruct.Pin = TDIN_Pin; - 800145c: f44f 7300 mov.w r3, #512 ; 0x200 - 8001460: 61bb str r3, [r7, #24] + 80013ee: f44f 7300 mov.w r3, #512 ; 0x200 + 80013f2: 61bb str r3, [r7, #24] GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP; - 8001462: 2301 movs r3, #1 - 8001464: 61fb str r3, [r7, #28] + 80013f4: 2301 movs r3, #1 + 80013f6: 61fb str r3, [r7, #28] GPIO_InitStruct.Pull = GPIO_NOPULL; - 8001466: 2300 movs r3, #0 - 8001468: 623b str r3, [r7, #32] + 80013f8: 2300 movs r3, #0 + 80013fa: 623b str r3, [r7, #32] GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_HIGH; - 800146a: 2303 movs r3, #3 - 800146c: 627b str r3, [r7, #36] ; 0x24 + 80013fc: 2303 movs r3, #3 + 80013fe: 627b str r3, [r7, #36] ; 0x24 HAL_GPIO_Init(TDIN_GPIO_Port, &GPIO_InitStruct); - 800146e: f107 0318 add.w r3, r7, #24 - 8001472: 4619 mov r1, r3 - 8001474: 4826 ldr r0, [pc, #152] ; (8001510 ) - 8001476: f000 fc61 bl 8001d3c + 8001400: f107 0318 add.w r3, r7, #24 + 8001404: 4619 mov r1, r3 + 8001406: 4834 ldr r0, [pc, #208] ; (80014d8 ) + 8001408: f000 fcca bl 8001da0 /*Configure GPIO pin : TPEN_Pin */ GPIO_InitStruct.Pin = TPEN_Pin; - 800147a: f44f 6380 mov.w r3, #1024 ; 0x400 - 800147e: 61bb str r3, [r7, #24] + 800140c: f44f 6380 mov.w r3, #1024 ; 0x400 + 8001410: 61bb str r3, [r7, #24] GPIO_InitStruct.Mode = GPIO_MODE_INPUT; - 8001480: 2300 movs r3, #0 - 8001482: 61fb str r3, [r7, #28] + 8001412: 2300 movs r3, #0 + 8001414: 61fb str r3, [r7, #28] GPIO_InitStruct.Pull = GPIO_PULLUP; - 8001484: 2301 movs r3, #1 - 8001486: 623b str r3, [r7, #32] + 8001416: 2301 movs r3, #1 + 8001418: 623b str r3, [r7, #32] HAL_GPIO_Init(TPEN_GPIO_Port, &GPIO_InitStruct); - 8001488: f107 0318 add.w r3, r7, #24 - 800148c: 4619 mov r1, r3 - 800148e: 4820 ldr r0, [pc, #128] ; (8001510 ) - 8001490: f000 fc54 bl 8001d3c + 800141a: f107 0318 add.w r3, r7, #24 + 800141e: 4619 mov r1, r3 + 8001420: 482d ldr r0, [pc, #180] ; (80014d8 ) + 8001422: f000 fcbd bl 8001da0 + + /*Configure GPIO pin : KEY0_Pin */ + GPIO_InitStruct.Pin = KEY0_Pin; + 8001426: 2301 movs r3, #1 + 8001428: 61bb str r3, [r7, #24] + GPIO_InitStruct.Mode = GPIO_MODE_INPUT; + 800142a: 2300 movs r3, #0 + 800142c: 61fb str r3, [r7, #28] + GPIO_InitStruct.Pull = GPIO_NOPULL; + 800142e: 2300 movs r3, #0 + 8001430: 623b str r3, [r7, #32] + HAL_GPIO_Init(KEY0_GPIO_Port, &GPIO_InitStruct); + 8001432: f107 0318 add.w r3, r7, #24 + 8001436: 4619 mov r1, r3 + 8001438: 4828 ldr r0, [pc, #160] ; (80014dc ) + 800143a: f000 fcb1 bl 8001da0 + + /*Configure GPIO pin : RC522_CS_Pin */ + GPIO_InitStruct.Pin = RC522_CS_Pin; + 800143e: 2310 movs r3, #16 + 8001440: 61bb str r3, [r7, #24] + GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP; + 8001442: 2301 movs r3, #1 + 8001444: 61fb str r3, [r7, #28] + GPIO_InitStruct.Pull = GPIO_NOPULL; + 8001446: 2300 movs r3, #0 + 8001448: 623b str r3, [r7, #32] + GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW; + 800144a: 2302 movs r3, #2 + 800144c: 627b str r3, [r7, #36] ; 0x24 + HAL_GPIO_Init(RC522_CS_GPIO_Port, &GPIO_InitStruct); + 800144e: f107 0318 add.w r3, r7, #24 + 8001452: 4619 mov r1, r3 + 8001454: 4821 ldr r0, [pc, #132] ; (80014dc ) + 8001456: f000 fca3 bl 8001da0 /*Configure GPIO pin : LCD_BL_Pin */ GPIO_InitStruct.Pin = LCD_BL_Pin; - 8001494: 2301 movs r3, #1 + 800145a: 2301 movs r3, #1 + 800145c: 61bb str r3, [r7, #24] + GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP; + 800145e: 2301 movs r3, #1 + 8001460: 61fb str r3, [r7, #28] + GPIO_InitStruct.Pull = GPIO_NOPULL; + 8001462: 2300 movs r3, #0 + 8001464: 623b str r3, [r7, #32] + GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW; + 8001466: 2302 movs r3, #2 + 8001468: 627b str r3, [r7, #36] ; 0x24 + HAL_GPIO_Init(LCD_BL_GPIO_Port, &GPIO_InitStruct); + 800146a: f107 0318 add.w r3, r7, #24 + 800146e: 4619 mov r1, r3 + 8001470: 481b ldr r0, [pc, #108] ; (80014e0 ) + 8001472: f000 fc95 bl 8001da0 + + /*Configure GPIO pins : TCLK_Pin TCS_Pin */ + GPIO_InitStruct.Pin = TCLK_Pin|TCS_Pin; + 8001476: 2306 movs r3, #6 + 8001478: 61bb str r3, [r7, #24] + GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP; + 800147a: 2301 movs r3, #1 + 800147c: 61fb str r3, [r7, #28] + GPIO_InitStruct.Pull = GPIO_NOPULL; + 800147e: 2300 movs r3, #0 + 8001480: 623b str r3, [r7, #32] + GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_HIGH; + 8001482: 2303 movs r3, #3 + 8001484: 627b str r3, [r7, #36] ; 0x24 + HAL_GPIO_Init(GPIOB, &GPIO_InitStruct); + 8001486: f107 0318 add.w r3, r7, #24 + 800148a: 4619 mov r1, r3 + 800148c: 4814 ldr r0, [pc, #80] ; (80014e0 ) + 800148e: f000 fc87 bl 8001da0 + + /*Configure GPIO pins : MAX_IRD_Pin MAX_RD_Pin */ + GPIO_InitStruct.Pin = MAX_IRD_Pin|MAX_RD_Pin; + 8001492: f44f 43a0 mov.w r3, #20480 ; 0x5000 8001496: 61bb str r3, [r7, #24] GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP; 8001498: 2301 movs r3, #1 800149a: 61fb str r3, [r7, #28] - GPIO_InitStruct.Pull = GPIO_NOPULL; - 800149c: 2300 movs r3, #0 + GPIO_InitStruct.Pull = GPIO_PULLUP; + 800149c: 2301 movs r3, #1 800149e: 623b str r3, [r7, #32] - GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW; - 80014a0: 2302 movs r3, #2 + GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_HIGH; + 80014a0: 2303 movs r3, #3 80014a2: 627b str r3, [r7, #36] ; 0x24 - HAL_GPIO_Init(LCD_BL_GPIO_Port, &GPIO_InitStruct); + HAL_GPIO_Init(GPIOB, &GPIO_InitStruct); 80014a4: f107 0318 add.w r3, r7, #24 80014a8: 4619 mov r1, r3 - 80014aa: 481a ldr r0, [pc, #104] ; (8001514 ) - 80014ac: f000 fc46 bl 8001d3c - - /*Configure GPIO pins : TCLK_Pin TCS_Pin */ - GPIO_InitStruct.Pin = TCLK_Pin|TCS_Pin; - 80014b0: 2306 movs r3, #6 - 80014b2: 61bb str r3, [r7, #24] - GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP; - 80014b4: 2301 movs r3, #1 - 80014b6: 61fb str r3, [r7, #28] - GPIO_InitStruct.Pull = GPIO_NOPULL; - 80014b8: 2300 movs r3, #0 - 80014ba: 623b str r3, [r7, #32] - GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_HIGH; - 80014bc: 2303 movs r3, #3 - 80014be: 627b str r3, [r7, #36] ; 0x24 - HAL_GPIO_Init(GPIOB, &GPIO_InitStruct); - 80014c0: f107 0318 add.w r3, r7, #24 - 80014c4: 4619 mov r1, r3 - 80014c6: 4813 ldr r0, [pc, #76] ; (8001514 ) - 80014c8: f000 fc38 bl 8001d3c - - /*Configure GPIO pins : MAX_IRD_Pin MAX_RD_Pin */ - GPIO_InitStruct.Pin = MAX_IRD_Pin|MAX_RD_Pin; - 80014cc: f44f 43a0 mov.w r3, #20480 ; 0x5000 - 80014d0: 61bb str r3, [r7, #24] - GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP; - 80014d2: 2301 movs r3, #1 - 80014d4: 61fb str r3, [r7, #28] - GPIO_InitStruct.Pull = GPIO_PULLUP; - 80014d6: 2301 movs r3, #1 - 80014d8: 623b str r3, [r7, #32] - GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_HIGH; - 80014da: 2303 movs r3, #3 - 80014dc: 627b str r3, [r7, #36] ; 0x24 - HAL_GPIO_Init(GPIOB, &GPIO_InitStruct); - 80014de: f107 0318 add.w r3, r7, #24 - 80014e2: 4619 mov r1, r3 - 80014e4: 480b ldr r0, [pc, #44] ; (8001514 ) - 80014e6: f000 fc29 bl 8001d3c + 80014aa: 480d ldr r0, [pc, #52] ; (80014e0 ) + 80014ac: f000 fc78 bl 8001da0 /*Configure GPIO pin : MAX_INT_Pin */ GPIO_InitStruct.Pin = MAX_INT_Pin; - 80014ea: f44f 5300 mov.w r3, #8192 ; 0x2000 - 80014ee: 61bb str r3, [r7, #24] + 80014b0: f44f 5300 mov.w r3, #8192 ; 0x2000 + 80014b4: 61bb str r3, [r7, #24] GPIO_InitStruct.Mode = GPIO_MODE_INPUT; - 80014f0: 2300 movs r3, #0 - 80014f2: 61fb str r3, [r7, #28] + 80014b6: 2300 movs r3, #0 + 80014b8: 61fb str r3, [r7, #28] GPIO_InitStruct.Pull = GPIO_PULLUP; - 80014f4: 2301 movs r3, #1 - 80014f6: 623b str r3, [r7, #32] + 80014ba: 2301 movs r3, #1 + 80014bc: 623b str r3, [r7, #32] HAL_GPIO_Init(MAX_INT_GPIO_Port, &GPIO_InitStruct); - 80014f8: f107 0318 add.w r3, r7, #24 - 80014fc: 4619 mov r1, r3 - 80014fe: 4805 ldr r0, [pc, #20] ; (8001514 ) - 8001500: f000 fc1c bl 8001d3c + 80014be: f107 0318 add.w r3, r7, #24 + 80014c2: 4619 mov r1, r3 + 80014c4: 4806 ldr r0, [pc, #24] ; (80014e0 ) + 80014c6: f000 fc6b bl 8001da0 } - 8001504: bf00 nop - 8001506: 3728 adds r7, #40 ; 0x28 - 8001508: 46bd mov sp, r7 - 800150a: bd80 pop {r7, pc} - 800150c: 40021000 .word 0x40021000 - 8001510: 40011c00 .word 0x40011c00 - 8001514: 40010c00 .word 0x40010c00 + 80014ca: bf00 nop + 80014cc: 3728 adds r7, #40 ; 0x28 + 80014ce: 46bd mov sp, r7 + 80014d0: bd80 pop {r7, pc} + 80014d2: bf00 nop + 80014d4: 40021000 .word 0x40021000 + 80014d8: 40011c00 .word 0x40011c00 + 80014dc: 40010800 .word 0x40010800 + 80014e0: 40010c00 .word 0x40010c00 + 80014e4: 40011800 .word 0x40011800 -08001518 : +080014e8 : /* FSMC initialization function */ static void MX_FSMC_Init(void) { - 8001518: b580 push {r7, lr} - 800151a: b088 sub sp, #32 - 800151c: af00 add r7, sp, #0 + 80014e8: b580 push {r7, lr} + 80014ea: b088 sub sp, #32 + 80014ec: af00 add r7, sp, #0 /* USER CODE BEGIN FSMC_Init 0 */ /* USER CODE END FSMC_Init 0 */ FSMC_NORSRAM_TimingTypeDef Timing = {0}; - 800151e: 1d3b adds r3, r7, #4 - 8001520: 2200 movs r2, #0 - 8001522: 601a str r2, [r3, #0] - 8001524: 605a str r2, [r3, #4] - 8001526: 609a str r2, [r3, #8] - 8001528: 60da str r2, [r3, #12] - 800152a: 611a str r2, [r3, #16] - 800152c: 615a str r2, [r3, #20] - 800152e: 619a str r2, [r3, #24] + 80014ee: 1d3b adds r3, r7, #4 + 80014f0: 2200 movs r2, #0 + 80014f2: 601a str r2, [r3, #0] + 80014f4: 605a str r2, [r3, #4] + 80014f6: 609a str r2, [r3, #8] + 80014f8: 60da str r2, [r3, #12] + 80014fa: 611a str r2, [r3, #16] + 80014fc: 615a str r2, [r3, #20] + 80014fe: 619a str r2, [r3, #24] /* USER CODE END FSMC_Init 1 */ /** Perform the SRAM1 memory initialization sequence */ hsram1.Instance = FSMC_NORSRAM_DEVICE; - 8001530: 4b28 ldr r3, [pc, #160] ; (80015d4 ) - 8001532: f04f 4220 mov.w r2, #2684354560 ; 0xa0000000 - 8001536: 601a str r2, [r3, #0] + 8001500: 4b28 ldr r3, [pc, #160] ; (80015a4 ) + 8001502: f04f 4220 mov.w r2, #2684354560 ; 0xa0000000 + 8001506: 601a str r2, [r3, #0] hsram1.Extended = FSMC_NORSRAM_EXTENDED_DEVICE; - 8001538: 4b26 ldr r3, [pc, #152] ; (80015d4 ) - 800153a: 4a27 ldr r2, [pc, #156] ; (80015d8 ) - 800153c: 605a str r2, [r3, #4] + 8001508: 4b26 ldr r3, [pc, #152] ; (80015a4 ) + 800150a: 4a27 ldr r2, [pc, #156] ; (80015a8 ) + 800150c: 605a str r2, [r3, #4] /* hsram1.Init */ hsram1.Init.NSBank = FSMC_NORSRAM_BANK4; - 800153e: 4b25 ldr r3, [pc, #148] ; (80015d4 ) - 8001540: 2206 movs r2, #6 - 8001542: 609a str r2, [r3, #8] + 800150e: 4b25 ldr r3, [pc, #148] ; (80015a4 ) + 8001510: 2206 movs r2, #6 + 8001512: 609a str r2, [r3, #8] hsram1.Init.DataAddressMux = FSMC_DATA_ADDRESS_MUX_DISABLE; - 8001544: 4b23 ldr r3, [pc, #140] ; (80015d4 ) - 8001546: 2200 movs r2, #0 - 8001548: 60da str r2, [r3, #12] + 8001514: 4b23 ldr r3, [pc, #140] ; (80015a4 ) + 8001516: 2200 movs r2, #0 + 8001518: 60da str r2, [r3, #12] hsram1.Init.MemoryType = FSMC_MEMORY_TYPE_SRAM; - 800154a: 4b22 ldr r3, [pc, #136] ; (80015d4 ) - 800154c: 2200 movs r2, #0 - 800154e: 611a str r2, [r3, #16] + 800151a: 4b22 ldr r3, [pc, #136] ; (80015a4 ) + 800151c: 2200 movs r2, #0 + 800151e: 611a str r2, [r3, #16] hsram1.Init.MemoryDataWidth = FSMC_NORSRAM_MEM_BUS_WIDTH_16; - 8001550: 4b20 ldr r3, [pc, #128] ; (80015d4 ) - 8001552: 2210 movs r2, #16 - 8001554: 615a str r2, [r3, #20] + 8001520: 4b20 ldr r3, [pc, #128] ; (80015a4 ) + 8001522: 2210 movs r2, #16 + 8001524: 615a str r2, [r3, #20] hsram1.Init.BurstAccessMode = FSMC_BURST_ACCESS_MODE_DISABLE; - 8001556: 4b1f ldr r3, [pc, #124] ; (80015d4 ) - 8001558: 2200 movs r2, #0 - 800155a: 619a str r2, [r3, #24] + 8001526: 4b1f ldr r3, [pc, #124] ; (80015a4 ) + 8001528: 2200 movs r2, #0 + 800152a: 619a str r2, [r3, #24] hsram1.Init.WaitSignalPolarity = FSMC_WAIT_SIGNAL_POLARITY_LOW; - 800155c: 4b1d ldr r3, [pc, #116] ; (80015d4 ) - 800155e: 2200 movs r2, #0 - 8001560: 61da str r2, [r3, #28] + 800152c: 4b1d ldr r3, [pc, #116] ; (80015a4 ) + 800152e: 2200 movs r2, #0 + 8001530: 61da str r2, [r3, #28] hsram1.Init.WrapMode = FSMC_WRAP_MODE_DISABLE; - 8001562: 4b1c ldr r3, [pc, #112] ; (80015d4 ) - 8001564: 2200 movs r2, #0 - 8001566: 621a str r2, [r3, #32] + 8001532: 4b1c ldr r3, [pc, #112] ; (80015a4 ) + 8001534: 2200 movs r2, #0 + 8001536: 621a str r2, [r3, #32] hsram1.Init.WaitSignalActive = FSMC_WAIT_TIMING_BEFORE_WS; - 8001568: 4b1a ldr r3, [pc, #104] ; (80015d4 ) - 800156a: 2200 movs r2, #0 - 800156c: 625a str r2, [r3, #36] ; 0x24 + 8001538: 4b1a ldr r3, [pc, #104] ; (80015a4 ) + 800153a: 2200 movs r2, #0 + 800153c: 625a str r2, [r3, #36] ; 0x24 hsram1.Init.WriteOperation = FSMC_WRITE_OPERATION_ENABLE; - 800156e: 4b19 ldr r3, [pc, #100] ; (80015d4 ) - 8001570: f44f 5280 mov.w r2, #4096 ; 0x1000 - 8001574: 629a str r2, [r3, #40] ; 0x28 + 800153e: 4b19 ldr r3, [pc, #100] ; (80015a4 ) + 8001540: f44f 5280 mov.w r2, #4096 ; 0x1000 + 8001544: 629a str r2, [r3, #40] ; 0x28 hsram1.Init.WaitSignal = FSMC_WAIT_SIGNAL_DISABLE; - 8001576: 4b17 ldr r3, [pc, #92] ; (80015d4 ) - 8001578: 2200 movs r2, #0 - 800157a: 62da str r2, [r3, #44] ; 0x2c + 8001546: 4b17 ldr r3, [pc, #92] ; (80015a4 ) + 8001548: 2200 movs r2, #0 + 800154a: 62da str r2, [r3, #44] ; 0x2c hsram1.Init.ExtendedMode = FSMC_EXTENDED_MODE_DISABLE; - 800157c: 4b15 ldr r3, [pc, #84] ; (80015d4 ) - 800157e: 2200 movs r2, #0 - 8001580: 631a str r2, [r3, #48] ; 0x30 + 800154c: 4b15 ldr r3, [pc, #84] ; (80015a4 ) + 800154e: 2200 movs r2, #0 + 8001550: 631a str r2, [r3, #48] ; 0x30 hsram1.Init.AsynchronousWait = FSMC_ASYNCHRONOUS_WAIT_DISABLE; - 8001582: 4b14 ldr r3, [pc, #80] ; (80015d4 ) - 8001584: 2200 movs r2, #0 - 8001586: 635a str r2, [r3, #52] ; 0x34 + 8001552: 4b14 ldr r3, [pc, #80] ; (80015a4 ) + 8001554: 2200 movs r2, #0 + 8001556: 635a str r2, [r3, #52] ; 0x34 hsram1.Init.WriteBurst = FSMC_WRITE_BURST_DISABLE; - 8001588: 4b12 ldr r3, [pc, #72] ; (80015d4 ) - 800158a: 2200 movs r2, #0 - 800158c: 639a str r2, [r3, #56] ; 0x38 + 8001558: 4b12 ldr r3, [pc, #72] ; (80015a4 ) + 800155a: 2200 movs r2, #0 + 800155c: 639a str r2, [r3, #56] ; 0x38 /* Timing */ Timing.AddressSetupTime = 0; - 800158e: 2300 movs r3, #0 - 8001590: 607b str r3, [r7, #4] + 800155e: 2300 movs r3, #0 + 8001560: 607b str r3, [r7, #4] Timing.AddressHoldTime = 15; - 8001592: 230f movs r3, #15 - 8001594: 60bb str r3, [r7, #8] + 8001562: 230f movs r3, #15 + 8001564: 60bb str r3, [r7, #8] Timing.DataSetupTime = 1; - 8001596: 2301 movs r3, #1 - 8001598: 60fb str r3, [r7, #12] + 8001566: 2301 movs r3, #1 + 8001568: 60fb str r3, [r7, #12] Timing.BusTurnAroundDuration = 0; - 800159a: 2300 movs r3, #0 - 800159c: 613b str r3, [r7, #16] + 800156a: 2300 movs r3, #0 + 800156c: 613b str r3, [r7, #16] Timing.CLKDivision = 16; - 800159e: 2310 movs r3, #16 - 80015a0: 617b str r3, [r7, #20] + 800156e: 2310 movs r3, #16 + 8001570: 617b str r3, [r7, #20] Timing.DataLatency = 17; - 80015a2: 2311 movs r3, #17 - 80015a4: 61bb str r3, [r7, #24] + 8001572: 2311 movs r3, #17 + 8001574: 61bb str r3, [r7, #24] Timing.AccessMode = FSMC_ACCESS_MODE_A; - 80015a6: 2300 movs r3, #0 - 80015a8: 61fb str r3, [r7, #28] + 8001576: 2300 movs r3, #0 + 8001578: 61fb str r3, [r7, #28] /* ExtTiming */ if (HAL_SRAM_Init(&hsram1, &Timing, NULL) != HAL_OK) - 80015aa: 1d3b adds r3, r7, #4 - 80015ac: 2200 movs r2, #0 - 80015ae: 4619 mov r1, r3 - 80015b0: 4808 ldr r0, [pc, #32] ; (80015d4 ) - 80015b2: f002 f98d bl 80038d0 - 80015b6: 4603 mov r3, r0 - 80015b8: 2b00 cmp r3, #0 - 80015ba: d001 beq.n 80015c0 + 800157a: 1d3b adds r3, r7, #4 + 800157c: 2200 movs r2, #0 + 800157e: 4619 mov r1, r3 + 8001580: 4808 ldr r0, [pc, #32] ; (80015a4 ) + 8001582: f002 ff43 bl 800440c + 8001586: 4603 mov r3, r0 + 8001588: 2b00 cmp r3, #0 + 800158a: d001 beq.n 8001590 { Error_Handler( ); - 80015bc: f000 f810 bl 80015e0 + 800158c: f000 f810 bl 80015b0 } /** Disconnect NADV */ __HAL_AFIO_FSMCNADV_DISCONNECTED(); - 80015c0: 4b06 ldr r3, [pc, #24] ; (80015dc ) - 80015c2: 69db ldr r3, [r3, #28] - 80015c4: 4a05 ldr r2, [pc, #20] ; (80015dc ) - 80015c6: f443 6380 orr.w r3, r3, #1024 ; 0x400 - 80015ca: 61d3 str r3, [r2, #28] + 8001590: 4b06 ldr r3, [pc, #24] ; (80015ac ) + 8001592: 69db ldr r3, [r3, #28] + 8001594: 4a05 ldr r2, [pc, #20] ; (80015ac ) + 8001596: f443 6380 orr.w r3, r3, #1024 ; 0x400 + 800159a: 61d3 str r3, [r2, #28] /* USER CODE BEGIN FSMC_Init 2 */ /* USER CODE END FSMC_Init 2 */ } - 80015cc: bf00 nop - 80015ce: 3720 adds r7, #32 - 80015d0: 46bd mov sp, r7 - 80015d2: bd80 pop {r7, pc} - 80015d4: 2000026c .word 0x2000026c - 80015d8: a0000104 .word 0xa0000104 - 80015dc: 40010000 .word 0x40010000 + 800159c: bf00 nop + 800159e: 3720 adds r7, #32 + 80015a0: 46bd mov sp, r7 + 80015a2: bd80 pop {r7, pc} + 80015a4: 20000260 .word 0x20000260 + 80015a8: a0000104 .word 0xa0000104 + 80015ac: 40010000 .word 0x40010000 -080015e0 : +080015b0 : /** * @brief This function is executed in case of error occurrence. * @retval None */ void Error_Handler(void) { - 80015e0: b480 push {r7} - 80015e2: af00 add r7, sp, #0 + 80015b0: b480 push {r7} + 80015b2: 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"); - 80015e4: b672 cpsid i + 80015b4: b672 cpsid i } - 80015e6: bf00 nop + 80015b6: 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) - 80015e8: e7fe b.n 80015e8 + 80015b8: e7fe b.n 80015b8 ... -080015ec : +080015bc : /* USER CODE END 0 */ /** * Initializes the Global MSP. */ void HAL_MspInit(void) { - 80015ec: b480 push {r7} - 80015ee: b085 sub sp, #20 - 80015f0: af00 add r7, sp, #0 + 80015bc: b480 push {r7} + 80015be: b085 sub sp, #20 + 80015c0: af00 add r7, sp, #0 /* USER CODE BEGIN MspInit 0 */ /* USER CODE END MspInit 0 */ __HAL_RCC_AFIO_CLK_ENABLE(); - 80015f2: 4b15 ldr r3, [pc, #84] ; (8001648 ) - 80015f4: 699b ldr r3, [r3, #24] - 80015f6: 4a14 ldr r2, [pc, #80] ; (8001648 ) - 80015f8: f043 0301 orr.w r3, r3, #1 - 80015fc: 6193 str r3, [r2, #24] - 80015fe: 4b12 ldr r3, [pc, #72] ; (8001648 ) - 8001600: 699b ldr r3, [r3, #24] - 8001602: f003 0301 and.w r3, r3, #1 - 8001606: 60bb str r3, [r7, #8] - 8001608: 68bb ldr r3, [r7, #8] + 80015c2: 4b15 ldr r3, [pc, #84] ; (8001618 ) + 80015c4: 699b ldr r3, [r3, #24] + 80015c6: 4a14 ldr r2, [pc, #80] ; (8001618 ) + 80015c8: f043 0301 orr.w r3, r3, #1 + 80015cc: 6193 str r3, [r2, #24] + 80015ce: 4b12 ldr r3, [pc, #72] ; (8001618 ) + 80015d0: 699b ldr r3, [r3, #24] + 80015d2: f003 0301 and.w r3, r3, #1 + 80015d6: 60bb str r3, [r7, #8] + 80015d8: 68bb ldr r3, [r7, #8] __HAL_RCC_PWR_CLK_ENABLE(); - 800160a: 4b0f ldr r3, [pc, #60] ; (8001648 ) - 800160c: 69db ldr r3, [r3, #28] - 800160e: 4a0e ldr r2, [pc, #56] ; (8001648 ) - 8001610: f043 5380 orr.w r3, r3, #268435456 ; 0x10000000 - 8001614: 61d3 str r3, [r2, #28] - 8001616: 4b0c ldr r3, [pc, #48] ; (8001648 ) - 8001618: 69db ldr r3, [r3, #28] - 800161a: f003 5380 and.w r3, r3, #268435456 ; 0x10000000 - 800161e: 607b str r3, [r7, #4] - 8001620: 687b ldr r3, [r7, #4] + 80015da: 4b0f ldr r3, [pc, #60] ; (8001618 ) + 80015dc: 69db ldr r3, [r3, #28] + 80015de: 4a0e ldr r2, [pc, #56] ; (8001618 ) + 80015e0: f043 5380 orr.w r3, r3, #268435456 ; 0x10000000 + 80015e4: 61d3 str r3, [r2, #28] + 80015e6: 4b0c ldr r3, [pc, #48] ; (8001618 ) + 80015e8: 69db ldr r3, [r3, #28] + 80015ea: f003 5380 and.w r3, r3, #268435456 ; 0x10000000 + 80015ee: 607b str r3, [r7, #4] + 80015f0: 687b ldr r3, [r7, #4] /* System interrupt init*/ /** DISABLE: JTAG-DP Disabled and SW-DP Disabled */ __HAL_AFIO_REMAP_SWJ_DISABLE(); - 8001622: 4b0a ldr r3, [pc, #40] ; (800164c ) - 8001624: 685b ldr r3, [r3, #4] - 8001626: 60fb str r3, [r7, #12] - 8001628: 68fb ldr r3, [r7, #12] - 800162a: f023 63e0 bic.w r3, r3, #117440512 ; 0x7000000 - 800162e: 60fb str r3, [r7, #12] - 8001630: 68fb ldr r3, [r7, #12] - 8001632: f043 6380 orr.w r3, r3, #67108864 ; 0x4000000 - 8001636: 60fb str r3, [r7, #12] - 8001638: 4a04 ldr r2, [pc, #16] ; (800164c ) - 800163a: 68fb ldr r3, [r7, #12] - 800163c: 6053 str r3, [r2, #4] + 80015f2: 4b0a ldr r3, [pc, #40] ; (800161c ) + 80015f4: 685b ldr r3, [r3, #4] + 80015f6: 60fb str r3, [r7, #12] + 80015f8: 68fb ldr r3, [r7, #12] + 80015fa: f023 63e0 bic.w r3, r3, #117440512 ; 0x7000000 + 80015fe: 60fb str r3, [r7, #12] + 8001600: 68fb ldr r3, [r7, #12] + 8001602: f043 6380 orr.w r3, r3, #67108864 ; 0x4000000 + 8001606: 60fb str r3, [r7, #12] + 8001608: 4a04 ldr r2, [pc, #16] ; (800161c ) + 800160a: 68fb ldr r3, [r7, #12] + 800160c: 6053 str r3, [r2, #4] /* USER CODE BEGIN MspInit 1 */ /* USER CODE END MspInit 1 */ } - 800163e: bf00 nop - 8001640: 3714 adds r7, #20 - 8001642: 46bd mov sp, r7 - 8001644: bc80 pop {r7} - 8001646: 4770 bx lr - 8001648: 40021000 .word 0x40021000 - 800164c: 40010000 .word 0x40010000 + 800160e: bf00 nop + 8001610: 3714 adds r7, #20 + 8001612: 46bd mov sp, r7 + 8001614: bc80 pop {r7} + 8001616: 4770 bx lr + 8001618: 40021000 .word 0x40021000 + 800161c: 40010000 .word 0x40010000 -08001650 : +08001620 : * This function configures the hardware resources used in this example * @param hi2c: I2C handle pointer * @retval None */ void HAL_I2C_MspInit(I2C_HandleTypeDef* hi2c) { - 8001650: b580 push {r7, lr} - 8001652: b088 sub sp, #32 - 8001654: af00 add r7, sp, #0 - 8001656: 6078 str r0, [r7, #4] + 8001620: b580 push {r7, lr} + 8001622: b088 sub sp, #32 + 8001624: af00 add r7, sp, #0 + 8001626: 6078 str r0, [r7, #4] GPIO_InitTypeDef GPIO_InitStruct = {0}; - 8001658: f107 0310 add.w r3, r7, #16 - 800165c: 2200 movs r2, #0 - 800165e: 601a str r2, [r3, #0] - 8001660: 605a str r2, [r3, #4] - 8001662: 609a str r2, [r3, #8] - 8001664: 60da str r2, [r3, #12] + 8001628: f107 0310 add.w r3, r7, #16 + 800162c: 2200 movs r2, #0 + 800162e: 601a str r2, [r3, #0] + 8001630: 605a str r2, [r3, #4] + 8001632: 609a str r2, [r3, #8] + 8001634: 60da str r2, [r3, #12] if(hi2c->Instance==I2C2) - 8001666: 687b ldr r3, [r7, #4] - 8001668: 681b ldr r3, [r3, #0] - 800166a: 4a16 ldr r2, [pc, #88] ; (80016c4 ) - 800166c: 4293 cmp r3, r2 - 800166e: d124 bne.n 80016ba + 8001636: 687b ldr r3, [r7, #4] + 8001638: 681b ldr r3, [r3, #0] + 800163a: 4a16 ldr r2, [pc, #88] ; (8001694 ) + 800163c: 4293 cmp r3, r2 + 800163e: d124 bne.n 800168a { /* USER CODE BEGIN I2C2_MspInit 0 */ /* USER CODE END I2C2_MspInit 0 */ __HAL_RCC_GPIOB_CLK_ENABLE(); - 8001670: 4b15 ldr r3, [pc, #84] ; (80016c8 ) - 8001672: 699b ldr r3, [r3, #24] - 8001674: 4a14 ldr r2, [pc, #80] ; (80016c8 ) - 8001676: f043 0308 orr.w r3, r3, #8 - 800167a: 6193 str r3, [r2, #24] - 800167c: 4b12 ldr r3, [pc, #72] ; (80016c8 ) - 800167e: 699b ldr r3, [r3, #24] - 8001680: f003 0308 and.w r3, r3, #8 - 8001684: 60fb str r3, [r7, #12] - 8001686: 68fb ldr r3, [r7, #12] + 8001640: 4b15 ldr r3, [pc, #84] ; (8001698 ) + 8001642: 699b ldr r3, [r3, #24] + 8001644: 4a14 ldr r2, [pc, #80] ; (8001698 ) + 8001646: f043 0308 orr.w r3, r3, #8 + 800164a: 6193 str r3, [r2, #24] + 800164c: 4b12 ldr r3, [pc, #72] ; (8001698 ) + 800164e: 699b ldr r3, [r3, #24] + 8001650: f003 0308 and.w r3, r3, #8 + 8001654: 60fb str r3, [r7, #12] + 8001656: 68fb ldr r3, [r7, #12] /**I2C2 GPIO Configuration PB10 ------> I2C2_SCL PB11 ------> I2C2_SDA */ GPIO_InitStruct.Pin = GPIO_PIN_10|GPIO_PIN_11; - 8001688: f44f 6340 mov.w r3, #3072 ; 0xc00 - 800168c: 613b str r3, [r7, #16] + 8001658: f44f 6340 mov.w r3, #3072 ; 0xc00 + 800165c: 613b str r3, [r7, #16] GPIO_InitStruct.Mode = GPIO_MODE_AF_OD; - 800168e: 2312 movs r3, #18 - 8001690: 617b str r3, [r7, #20] + 800165e: 2312 movs r3, #18 + 8001660: 617b str r3, [r7, #20] GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_HIGH; - 8001692: 2303 movs r3, #3 - 8001694: 61fb str r3, [r7, #28] + 8001662: 2303 movs r3, #3 + 8001664: 61fb str r3, [r7, #28] HAL_GPIO_Init(GPIOB, &GPIO_InitStruct); - 8001696: f107 0310 add.w r3, r7, #16 - 800169a: 4619 mov r1, r3 - 800169c: 480b ldr r0, [pc, #44] ; (80016cc ) - 800169e: f000 fb4d bl 8001d3c + 8001666: f107 0310 add.w r3, r7, #16 + 800166a: 4619 mov r1, r3 + 800166c: 480b ldr r0, [pc, #44] ; (800169c ) + 800166e: f000 fb97 bl 8001da0 /* Peripheral clock enable */ __HAL_RCC_I2C2_CLK_ENABLE(); - 80016a2: 4b09 ldr r3, [pc, #36] ; (80016c8 ) - 80016a4: 69db ldr r3, [r3, #28] - 80016a6: 4a08 ldr r2, [pc, #32] ; (80016c8 ) - 80016a8: f443 0380 orr.w r3, r3, #4194304 ; 0x400000 - 80016ac: 61d3 str r3, [r2, #28] - 80016ae: 4b06 ldr r3, [pc, #24] ; (80016c8 ) - 80016b0: 69db ldr r3, [r3, #28] - 80016b2: f403 0380 and.w r3, r3, #4194304 ; 0x400000 - 80016b6: 60bb str r3, [r7, #8] - 80016b8: 68bb ldr r3, [r7, #8] + 8001672: 4b09 ldr r3, [pc, #36] ; (8001698 ) + 8001674: 69db ldr r3, [r3, #28] + 8001676: 4a08 ldr r2, [pc, #32] ; (8001698 ) + 8001678: f443 0380 orr.w r3, r3, #4194304 ; 0x400000 + 800167c: 61d3 str r3, [r2, #28] + 800167e: 4b06 ldr r3, [pc, #24] ; (8001698 ) + 8001680: 69db ldr r3, [r3, #28] + 8001682: f403 0380 and.w r3, r3, #4194304 ; 0x400000 + 8001686: 60bb str r3, [r7, #8] + 8001688: 68bb ldr r3, [r7, #8] /* USER CODE BEGIN I2C2_MspInit 1 */ /* USER CODE END I2C2_MspInit 1 */ } } - 80016ba: bf00 nop - 80016bc: 3720 adds r7, #32 - 80016be: 46bd mov sp, r7 - 80016c0: bd80 pop {r7, pc} - 80016c2: bf00 nop - 80016c4: 40005800 .word 0x40005800 - 80016c8: 40021000 .word 0x40021000 - 80016cc: 40010c00 .word 0x40010c00 + 800168a: bf00 nop + 800168c: 3720 adds r7, #32 + 800168e: 46bd mov sp, r7 + 8001690: bd80 pop {r7, pc} + 8001692: bf00 nop + 8001694: 40005800 .word 0x40005800 + 8001698: 40021000 .word 0x40021000 + 800169c: 40010c00 .word 0x40010c00 -080016d0 : +080016a0 : +* This function configures the hardware resources used in this example +* @param hspi: SPI handle pointer +* @retval None +*/ +void HAL_SPI_MspInit(SPI_HandleTypeDef* hspi) +{ + 80016a0: b580 push {r7, lr} + 80016a2: b088 sub sp, #32 + 80016a4: af00 add r7, sp, #0 + 80016a6: 6078 str r0, [r7, #4] + GPIO_InitTypeDef GPIO_InitStruct = {0}; + 80016a8: f107 0310 add.w r3, r7, #16 + 80016ac: 2200 movs r2, #0 + 80016ae: 601a str r2, [r3, #0] + 80016b0: 605a str r2, [r3, #4] + 80016b2: 609a str r2, [r3, #8] + 80016b4: 60da str r2, [r3, #12] + if(hspi->Instance==SPI1) + 80016b6: 687b ldr r3, [r7, #4] + 80016b8: 681b ldr r3, [r3, #0] + 80016ba: 4a1b ldr r2, [pc, #108] ; (8001728 ) + 80016bc: 4293 cmp r3, r2 + 80016be: d12f bne.n 8001720 + { + /* USER CODE BEGIN SPI1_MspInit 0 */ + + /* USER CODE END SPI1_MspInit 0 */ + /* Peripheral clock enable */ + __HAL_RCC_SPI1_CLK_ENABLE(); + 80016c0: 4b1a ldr r3, [pc, #104] ; (800172c ) + 80016c2: 699b ldr r3, [r3, #24] + 80016c4: 4a19 ldr r2, [pc, #100] ; (800172c ) + 80016c6: f443 5380 orr.w r3, r3, #4096 ; 0x1000 + 80016ca: 6193 str r3, [r2, #24] + 80016cc: 4b17 ldr r3, [pc, #92] ; (800172c ) + 80016ce: 699b ldr r3, [r3, #24] + 80016d0: f403 5380 and.w r3, r3, #4096 ; 0x1000 + 80016d4: 60fb str r3, [r7, #12] + 80016d6: 68fb ldr r3, [r7, #12] + + __HAL_RCC_GPIOA_CLK_ENABLE(); + 80016d8: 4b14 ldr r3, [pc, #80] ; (800172c ) + 80016da: 699b ldr r3, [r3, #24] + 80016dc: 4a13 ldr r2, [pc, #76] ; (800172c ) + 80016de: f043 0304 orr.w r3, r3, #4 + 80016e2: 6193 str r3, [r2, #24] + 80016e4: 4b11 ldr r3, [pc, #68] ; (800172c ) + 80016e6: 699b ldr r3, [r3, #24] + 80016e8: f003 0304 and.w r3, r3, #4 + 80016ec: 60bb str r3, [r7, #8] + 80016ee: 68bb ldr r3, [r7, #8] + /**SPI1 GPIO Configuration + PA5 ------> SPI1_SCK + PA6 ------> SPI1_MISO + PA7 ------> SPI1_MOSI + */ + GPIO_InitStruct.Pin = GPIO_PIN_5|GPIO_PIN_7; + 80016f0: 23a0 movs r3, #160 ; 0xa0 + 80016f2: 613b str r3, [r7, #16] + GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; + 80016f4: 2302 movs r3, #2 + 80016f6: 617b str r3, [r7, #20] + GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_HIGH; + 80016f8: 2303 movs r3, #3 + 80016fa: 61fb str r3, [r7, #28] + HAL_GPIO_Init(GPIOA, &GPIO_InitStruct); + 80016fc: f107 0310 add.w r3, r7, #16 + 8001700: 4619 mov r1, r3 + 8001702: 480b ldr r0, [pc, #44] ; (8001730 ) + 8001704: f000 fb4c bl 8001da0 + + GPIO_InitStruct.Pin = GPIO_PIN_6; + 8001708: 2340 movs r3, #64 ; 0x40 + 800170a: 613b str r3, [r7, #16] + GPIO_InitStruct.Mode = GPIO_MODE_INPUT; + 800170c: 2300 movs r3, #0 + 800170e: 617b str r3, [r7, #20] + GPIO_InitStruct.Pull = GPIO_NOPULL; + 8001710: 2300 movs r3, #0 + 8001712: 61bb str r3, [r7, #24] + HAL_GPIO_Init(GPIOA, &GPIO_InitStruct); + 8001714: f107 0310 add.w r3, r7, #16 + 8001718: 4619 mov r1, r3 + 800171a: 4805 ldr r0, [pc, #20] ; (8001730 ) + 800171c: f000 fb40 bl 8001da0 + /* USER CODE BEGIN SPI1_MspInit 1 */ + + /* USER CODE END SPI1_MspInit 1 */ + } + +} + 8001720: bf00 nop + 8001722: 3720 adds r7, #32 + 8001724: 46bd mov sp, r7 + 8001726: bd80 pop {r7, pc} + 8001728: 40013000 .word 0x40013000 + 800172c: 40021000 .word 0x40021000 + 8001730: 40010800 .word 0x40010800 + +08001734 : * This function configures the hardware resources used in this example * @param htim_base: TIM_Base handle pointer * @retval None */ void HAL_TIM_Base_MspInit(TIM_HandleTypeDef* htim_base) { - 80016d0: b580 push {r7, lr} - 80016d2: b084 sub sp, #16 - 80016d4: af00 add r7, sp, #0 - 80016d6: 6078 str r0, [r7, #4] + 8001734: b580 push {r7, lr} + 8001736: b084 sub sp, #16 + 8001738: af00 add r7, sp, #0 + 800173a: 6078 str r0, [r7, #4] if(htim_base->Instance==TIM6) - 80016d8: 687b ldr r3, [r7, #4] - 80016da: 681b ldr r3, [r3, #0] - 80016dc: 4a0d ldr r2, [pc, #52] ; (8001714 ) - 80016de: 4293 cmp r3, r2 - 80016e0: d113 bne.n 800170a + 800173c: 687b ldr r3, [r7, #4] + 800173e: 681b ldr r3, [r3, #0] + 8001740: 4a0d ldr r2, [pc, #52] ; (8001778 ) + 8001742: 4293 cmp r3, r2 + 8001744: d113 bne.n 800176e { /* USER CODE BEGIN TIM6_MspInit 0 */ /* USER CODE END TIM6_MspInit 0 */ /* Peripheral clock enable */ __HAL_RCC_TIM6_CLK_ENABLE(); - 80016e2: 4b0d ldr r3, [pc, #52] ; (8001718 ) - 80016e4: 69db ldr r3, [r3, #28] - 80016e6: 4a0c ldr r2, [pc, #48] ; (8001718 ) - 80016e8: f043 0310 orr.w r3, r3, #16 - 80016ec: 61d3 str r3, [r2, #28] - 80016ee: 4b0a ldr r3, [pc, #40] ; (8001718 ) - 80016f0: 69db ldr r3, [r3, #28] - 80016f2: f003 0310 and.w r3, r3, #16 - 80016f6: 60fb str r3, [r7, #12] - 80016f8: 68fb ldr r3, [r7, #12] + 8001746: 4b0d ldr r3, [pc, #52] ; (800177c ) + 8001748: 69db ldr r3, [r3, #28] + 800174a: 4a0c ldr r2, [pc, #48] ; (800177c ) + 800174c: f043 0310 orr.w r3, r3, #16 + 8001750: 61d3 str r3, [r2, #28] + 8001752: 4b0a ldr r3, [pc, #40] ; (800177c ) + 8001754: 69db ldr r3, [r3, #28] + 8001756: f003 0310 and.w r3, r3, #16 + 800175a: 60fb str r3, [r7, #12] + 800175c: 68fb ldr r3, [r7, #12] /* TIM6 interrupt Init */ HAL_NVIC_SetPriority(TIM6_IRQn, 0, 0); - 80016fa: 2200 movs r2, #0 - 80016fc: 2100 movs r1, #0 - 80016fe: 2036 movs r0, #54 ; 0x36 - 8001700: f000 fae5 bl 8001cce + 800175e: 2200 movs r2, #0 + 8001760: 2100 movs r1, #0 + 8001762: 2036 movs r0, #54 ; 0x36 + 8001764: f000 fae5 bl 8001d32 HAL_NVIC_EnableIRQ(TIM6_IRQn); - 8001704: 2036 movs r0, #54 ; 0x36 - 8001706: f000 fafe bl 8001d06 + 8001768: 2036 movs r0, #54 ; 0x36 + 800176a: f000 fafe bl 8001d6a /* USER CODE BEGIN TIM6_MspInit 1 */ /* USER CODE END TIM6_MspInit 1 */ } } - 800170a: bf00 nop - 800170c: 3710 adds r7, #16 - 800170e: 46bd mov sp, r7 - 8001710: bd80 pop {r7, pc} - 8001712: bf00 nop - 8001714: 40001000 .word 0x40001000 - 8001718: 40021000 .word 0x40021000 + 800176e: bf00 nop + 8001770: 3710 adds r7, #16 + 8001772: 46bd mov sp, r7 + 8001774: bd80 pop {r7, pc} + 8001776: bf00 nop + 8001778: 40001000 .word 0x40001000 + 800177c: 40021000 .word 0x40021000 -0800171c : +08001780 : } static uint32_t FSMC_Initialized = 0; static void HAL_FSMC_MspInit(void){ - 800171c: b580 push {r7, lr} - 800171e: b086 sub sp, #24 - 8001720: af00 add r7, sp, #0 + 8001780: b580 push {r7, lr} + 8001782: b086 sub sp, #24 + 8001784: af00 add r7, sp, #0 /* USER CODE BEGIN FSMC_MspInit 0 */ /* USER CODE END FSMC_MspInit 0 */ GPIO_InitTypeDef GPIO_InitStruct ={0}; - 8001722: f107 0308 add.w r3, r7, #8 - 8001726: 2200 movs r2, #0 - 8001728: 601a str r2, [r3, #0] - 800172a: 605a str r2, [r3, #4] - 800172c: 609a str r2, [r3, #8] - 800172e: 60da str r2, [r3, #12] + 8001786: f107 0308 add.w r3, r7, #8 + 800178a: 2200 movs r2, #0 + 800178c: 601a str r2, [r3, #0] + 800178e: 605a str r2, [r3, #4] + 8001790: 609a str r2, [r3, #8] + 8001792: 60da str r2, [r3, #12] if (FSMC_Initialized) { - 8001730: 4b1f ldr r3, [pc, #124] ; (80017b0 ) - 8001732: 681b ldr r3, [r3, #0] - 8001734: 2b00 cmp r3, #0 - 8001736: d136 bne.n 80017a6 + 8001794: 4b1f ldr r3, [pc, #124] ; (8001814 ) + 8001796: 681b ldr r3, [r3, #0] + 8001798: 2b00 cmp r3, #0 + 800179a: d136 bne.n 800180a return; } FSMC_Initialized = 1; - 8001738: 4b1d ldr r3, [pc, #116] ; (80017b0 ) - 800173a: 2201 movs r2, #1 - 800173c: 601a str r2, [r3, #0] + 800179c: 4b1d ldr r3, [pc, #116] ; (8001814 ) + 800179e: 2201 movs r2, #1 + 80017a0: 601a str r2, [r3, #0] /* Peripheral clock enable */ __HAL_RCC_FSMC_CLK_ENABLE(); - 800173e: 4b1d ldr r3, [pc, #116] ; (80017b4 ) - 8001740: 695b ldr r3, [r3, #20] - 8001742: 4a1c ldr r2, [pc, #112] ; (80017b4 ) - 8001744: f443 7380 orr.w r3, r3, #256 ; 0x100 - 8001748: 6153 str r3, [r2, #20] - 800174a: 4b1a ldr r3, [pc, #104] ; (80017b4 ) - 800174c: 695b ldr r3, [r3, #20] - 800174e: f403 7380 and.w r3, r3, #256 ; 0x100 - 8001752: 607b str r3, [r7, #4] - 8001754: 687b ldr r3, [r7, #4] + 80017a2: 4b1d ldr r3, [pc, #116] ; (8001818 ) + 80017a4: 695b ldr r3, [r3, #20] + 80017a6: 4a1c ldr r2, [pc, #112] ; (8001818 ) + 80017a8: f443 7380 orr.w r3, r3, #256 ; 0x100 + 80017ac: 6153 str r3, [r2, #20] + 80017ae: 4b1a ldr r3, [pc, #104] ; (8001818 ) + 80017b0: 695b ldr r3, [r3, #20] + 80017b2: f403 7380 and.w r3, r3, #256 ; 0x100 + 80017b6: 607b str r3, [r7, #4] + 80017b8: 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; - 8001756: f241 0301 movw r3, #4097 ; 0x1001 - 800175a: 60bb str r3, [r7, #8] + 80017ba: f241 0301 movw r3, #4097 ; 0x1001 + 80017be: 60bb str r3, [r7, #8] GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; - 800175c: 2302 movs r3, #2 - 800175e: 60fb str r3, [r7, #12] + 80017c0: 2302 movs r3, #2 + 80017c2: 60fb str r3, [r7, #12] GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_HIGH; - 8001760: 2303 movs r3, #3 - 8001762: 617b str r3, [r7, #20] + 80017c4: 2303 movs r3, #3 + 80017c6: 617b str r3, [r7, #20] HAL_GPIO_Init(GPIOG, &GPIO_InitStruct); - 8001764: f107 0308 add.w r3, r7, #8 - 8001768: 4619 mov r1, r3 - 800176a: 4813 ldr r0, [pc, #76] ; (80017b8 ) - 800176c: f000 fae6 bl 8001d3c + 80017c8: f107 0308 add.w r3, r7, #8 + 80017cc: 4619 mov r1, r3 + 80017ce: 4813 ldr r0, [pc, #76] ; (800181c ) + 80017d0: f000 fae6 bl 8001da0 GPIO_InitStruct.Pin = GPIO_PIN_7|GPIO_PIN_8|GPIO_PIN_9|GPIO_PIN_10 - 8001770: f64f 7380 movw r3, #65408 ; 0xff80 - 8001774: 60bb str r3, [r7, #8] + 80017d4: f64f 7380 movw r3, #65408 ; 0xff80 + 80017d8: 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; - 8001776: 2302 movs r3, #2 - 8001778: 60fb str r3, [r7, #12] + 80017da: 2302 movs r3, #2 + 80017dc: 60fb str r3, [r7, #12] GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_HIGH; - 800177a: 2303 movs r3, #3 - 800177c: 617b str r3, [r7, #20] + 80017de: 2303 movs r3, #3 + 80017e0: 617b str r3, [r7, #20] HAL_GPIO_Init(GPIOE, &GPIO_InitStruct); - 800177e: f107 0308 add.w r3, r7, #8 - 8001782: 4619 mov r1, r3 - 8001784: 480d ldr r0, [pc, #52] ; (80017bc ) - 8001786: f000 fad9 bl 8001d3c + 80017e2: f107 0308 add.w r3, r7, #8 + 80017e6: 4619 mov r1, r3 + 80017e8: 480d ldr r0, [pc, #52] ; (8001820 ) + 80017ea: f000 fad9 bl 8001da0 GPIO_InitStruct.Pin = GPIO_PIN_8|GPIO_PIN_9|GPIO_PIN_10|GPIO_PIN_14 - 800178a: f24c 7333 movw r3, #50995 ; 0xc733 - 800178e: 60bb str r3, [r7, #8] + 80017ee: f24c 7333 movw r3, #50995 ; 0xc733 + 80017f2: 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; - 8001790: 2302 movs r3, #2 - 8001792: 60fb str r3, [r7, #12] + 80017f4: 2302 movs r3, #2 + 80017f6: 60fb str r3, [r7, #12] GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_HIGH; - 8001794: 2303 movs r3, #3 - 8001796: 617b str r3, [r7, #20] + 80017f8: 2303 movs r3, #3 + 80017fa: 617b str r3, [r7, #20] HAL_GPIO_Init(GPIOD, &GPIO_InitStruct); - 8001798: f107 0308 add.w r3, r7, #8 - 800179c: 4619 mov r1, r3 - 800179e: 4808 ldr r0, [pc, #32] ; (80017c0 ) - 80017a0: f000 facc bl 8001d3c - 80017a4: e000 b.n 80017a8 + 80017fc: f107 0308 add.w r3, r7, #8 + 8001800: 4619 mov r1, r3 + 8001802: 4808 ldr r0, [pc, #32] ; (8001824 ) + 8001804: f000 facc bl 8001da0 + 8001808: e000 b.n 800180c return; - 80017a6: bf00 nop + 800180a: bf00 nop /* USER CODE BEGIN FSMC_MspInit 1 */ /* USER CODE END FSMC_MspInit 1 */ } - 80017a8: 3718 adds r7, #24 - 80017aa: 46bd mov sp, r7 - 80017ac: bd80 pop {r7, pc} - 80017ae: bf00 nop - 80017b0: 200001fc .word 0x200001fc - 80017b4: 40021000 .word 0x40021000 - 80017b8: 40012000 .word 0x40012000 - 80017bc: 40011800 .word 0x40011800 - 80017c0: 40011400 .word 0x40011400 + 800180c: 3718 adds r7, #24 + 800180e: 46bd mov sp, r7 + 8001810: bd80 pop {r7, pc} + 8001812: bf00 nop + 8001814: 200001f8 .word 0x200001f8 + 8001818: 40021000 .word 0x40021000 + 800181c: 40012000 .word 0x40012000 + 8001820: 40011800 .word 0x40011800 + 8001824: 40011400 .word 0x40011400 -080017c4 : +08001828 : void HAL_SRAM_MspInit(SRAM_HandleTypeDef* hsram){ - 80017c4: b580 push {r7, lr} - 80017c6: b082 sub sp, #8 - 80017c8: af00 add r7, sp, #0 - 80017ca: 6078 str r0, [r7, #4] + 8001828: b580 push {r7, lr} + 800182a: b082 sub sp, #8 + 800182c: af00 add r7, sp, #0 + 800182e: 6078 str r0, [r7, #4] /* USER CODE BEGIN SRAM_MspInit 0 */ /* USER CODE END SRAM_MspInit 0 */ HAL_FSMC_MspInit(); - 80017cc: f7ff ffa6 bl 800171c + 8001830: f7ff ffa6 bl 8001780 /* USER CODE BEGIN SRAM_MspInit 1 */ /* USER CODE END SRAM_MspInit 1 */ } - 80017d0: bf00 nop - 80017d2: 3708 adds r7, #8 - 80017d4: 46bd mov sp, r7 - 80017d6: bd80 pop {r7, pc} + 8001834: bf00 nop + 8001836: 3708 adds r7, #8 + 8001838: 46bd mov sp, r7 + 800183a: bd80 pop {r7, pc} -080017d8 : +0800183c : /******************************************************************************/ /** * @brief This function handles Non maskable interrupt. */ void NMI_Handler(void) { - 80017d8: b480 push {r7} - 80017da: af00 add r7, sp, #0 + 800183c: b480 push {r7} + 800183e: 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) - 80017dc: e7fe b.n 80017dc + 8001840: e7fe b.n 8001840 -080017de : +08001842 : /** * @brief This function handles Hard fault interrupt. */ void HardFault_Handler(void) { - 80017de: b480 push {r7} - 80017e0: af00 add r7, sp, #0 + 8001842: b480 push {r7} + 8001844: af00 add r7, sp, #0 /* USER CODE BEGIN HardFault_IRQn 0 */ /* USER CODE END HardFault_IRQn 0 */ while (1) - 80017e2: e7fe b.n 80017e2 + 8001846: e7fe b.n 8001846 -080017e4 : +08001848 : /** * @brief This function handles Memory management fault. */ void MemManage_Handler(void) { - 80017e4: b480 push {r7} - 80017e6: af00 add r7, sp, #0 + 8001848: b480 push {r7} + 800184a: af00 add r7, sp, #0 /* USER CODE BEGIN MemoryManagement_IRQn 0 */ /* USER CODE END MemoryManagement_IRQn 0 */ while (1) - 80017e8: e7fe b.n 80017e8 + 800184c: e7fe b.n 800184c -080017ea : +0800184e : /** * @brief This function handles Prefetch fault, memory access fault. */ void BusFault_Handler(void) { - 80017ea: b480 push {r7} - 80017ec: af00 add r7, sp, #0 + 800184e: b480 push {r7} + 8001850: af00 add r7, sp, #0 /* USER CODE BEGIN BusFault_IRQn 0 */ /* USER CODE END BusFault_IRQn 0 */ while (1) - 80017ee: e7fe b.n 80017ee + 8001852: e7fe b.n 8001852 -080017f0 : +08001854 : /** * @brief This function handles Undefined instruction or illegal state. */ void UsageFault_Handler(void) { - 80017f0: b480 push {r7} - 80017f2: af00 add r7, sp, #0 + 8001854: b480 push {r7} + 8001856: af00 add r7, sp, #0 /* USER CODE BEGIN UsageFault_IRQn 0 */ /* USER CODE END UsageFault_IRQn 0 */ while (1) - 80017f4: e7fe b.n 80017f4 + 8001858: e7fe b.n 8001858 -080017f6 : +0800185a : /** * @brief This function handles System service call via SWI instruction. */ void SVC_Handler(void) { - 80017f6: b480 push {r7} - 80017f8: af00 add r7, sp, #0 + 800185a: b480 push {r7} + 800185c: af00 add r7, sp, #0 /* USER CODE END SVCall_IRQn 0 */ /* USER CODE BEGIN SVCall_IRQn 1 */ /* USER CODE END SVCall_IRQn 1 */ } - 80017fa: bf00 nop - 80017fc: 46bd mov sp, r7 - 80017fe: bc80 pop {r7} - 8001800: 4770 bx lr + 800185e: bf00 nop + 8001860: 46bd mov sp, r7 + 8001862: bc80 pop {r7} + 8001864: 4770 bx lr -08001802 : +08001866 : /** * @brief This function handles Debug monitor. */ void DebugMon_Handler(void) { - 8001802: b480 push {r7} - 8001804: af00 add r7, sp, #0 + 8001866: b480 push {r7} + 8001868: af00 add r7, sp, #0 /* USER CODE END DebugMonitor_IRQn 0 */ /* USER CODE BEGIN DebugMonitor_IRQn 1 */ /* USER CODE END DebugMonitor_IRQn 1 */ } - 8001806: bf00 nop - 8001808: 46bd mov sp, r7 - 800180a: bc80 pop {r7} - 800180c: 4770 bx lr + 800186a: bf00 nop + 800186c: 46bd mov sp, r7 + 800186e: bc80 pop {r7} + 8001870: 4770 bx lr -0800180e : +08001872 : /** * @brief This function handles Pendable request for system service. */ void PendSV_Handler(void) { - 800180e: b480 push {r7} - 8001810: af00 add r7, sp, #0 + 8001872: b480 push {r7} + 8001874: af00 add r7, sp, #0 /* USER CODE END PendSV_IRQn 0 */ /* USER CODE BEGIN PendSV_IRQn 1 */ /* USER CODE END PendSV_IRQn 1 */ } - 8001812: bf00 nop - 8001814: 46bd mov sp, r7 - 8001816: bc80 pop {r7} - 8001818: 4770 bx lr + 8001876: bf00 nop + 8001878: 46bd mov sp, r7 + 800187a: bc80 pop {r7} + 800187c: 4770 bx lr -0800181a : +0800187e : /** * @brief This function handles System tick timer. */ void SysTick_Handler(void) { - 800181a: b580 push {r7, lr} - 800181c: af00 add r7, sp, #0 + 800187e: b580 push {r7, lr} + 8001880: af00 add r7, sp, #0 /* USER CODE BEGIN SysTick_IRQn 0 */ /* USER CODE END SysTick_IRQn 0 */ HAL_IncTick(); - 800181e: f000 f93f bl 8001aa0 + 8001882: f000 f93f bl 8001b04 /* USER CODE BEGIN SysTick_IRQn 1 */ /* USER CODE END SysTick_IRQn 1 */ } - 8001822: bf00 nop - 8001824: bd80 pop {r7, pc} + 8001886: bf00 nop + 8001888: bd80 pop {r7, pc} ... -08001828 : +0800188c : /** * @brief This function handles TIM6 global interrupt. */ void TIM6_IRQHandler(void) { - 8001828: b580 push {r7, lr} - 800182a: af00 add r7, sp, #0 + 800188c: b580 push {r7, lr} + 800188e: af00 add r7, sp, #0 /* USER CODE BEGIN TIM6_IRQn 0 */ /* USER CODE END TIM6_IRQn 0 */ HAL_TIM_IRQHandler(&htim6); - 800182c: 4802 ldr r0, [pc, #8] ; (8001838 ) - 800182e: f002 f979 bl 8003b24 + 8001890: 4802 ldr r0, [pc, #8] ; (800189c ) + 8001892: f002 fe85 bl 80045a0 /* USER CODE BEGIN TIM6_IRQn 1 */ /* USER CODE END TIM6_IRQn 1 */ } - 8001832: bf00 nop - 8001834: bd80 pop {r7, pc} - 8001836: bf00 nop - 8001838: 200002b4 .word 0x200002b4 + 8001896: bf00 nop + 8001898: bd80 pop {r7, pc} + 800189a: bf00 nop + 800189c: 200002a8 .word 0x200002a8 -0800183c <_getpid>: +080018a0 <_getpid>: void initialise_monitor_handles() { } int _getpid(void) { - 800183c: b480 push {r7} - 800183e: af00 add r7, sp, #0 + 80018a0: b480 push {r7} + 80018a2: af00 add r7, sp, #0 return 1; - 8001840: 2301 movs r3, #1 + 80018a4: 2301 movs r3, #1 } - 8001842: 4618 mov r0, r3 - 8001844: 46bd mov sp, r7 - 8001846: bc80 pop {r7} - 8001848: 4770 bx lr + 80018a6: 4618 mov r0, r3 + 80018a8: 46bd mov sp, r7 + 80018aa: bc80 pop {r7} + 80018ac: 4770 bx lr -0800184a <_kill>: +080018ae <_kill>: int _kill(int pid, int sig) { - 800184a: b580 push {r7, lr} - 800184c: b082 sub sp, #8 - 800184e: af00 add r7, sp, #0 - 8001850: 6078 str r0, [r7, #4] - 8001852: 6039 str r1, [r7, #0] + 80018ae: b580 push {r7, lr} + 80018b0: b082 sub sp, #8 + 80018b2: af00 add r7, sp, #0 + 80018b4: 6078 str r0, [r7, #4] + 80018b6: 6039 str r1, [r7, #0] errno = EINVAL; - 8001854: f005 fc92 bl 800717c <__errno> - 8001858: 4603 mov r3, r0 - 800185a: 2216 movs r2, #22 - 800185c: 601a str r2, [r3, #0] + 80018b8: f005 fb56 bl 8006f68 <__errno> + 80018bc: 4603 mov r3, r0 + 80018be: 2216 movs r2, #22 + 80018c0: 601a str r2, [r3, #0] return -1; - 800185e: f04f 33ff mov.w r3, #4294967295 ; 0xffffffff + 80018c2: f04f 33ff mov.w r3, #4294967295 ; 0xffffffff } - 8001862: 4618 mov r0, r3 - 8001864: 3708 adds r7, #8 - 8001866: 46bd mov sp, r7 - 8001868: bd80 pop {r7, pc} + 80018c6: 4618 mov r0, r3 + 80018c8: 3708 adds r7, #8 + 80018ca: 46bd mov sp, r7 + 80018cc: bd80 pop {r7, pc} -0800186a <_exit>: +080018ce <_exit>: void _exit (int status) { - 800186a: b580 push {r7, lr} - 800186c: b082 sub sp, #8 - 800186e: af00 add r7, sp, #0 - 8001870: 6078 str r0, [r7, #4] + 80018ce: b580 push {r7, lr} + 80018d0: b082 sub sp, #8 + 80018d2: af00 add r7, sp, #0 + 80018d4: 6078 str r0, [r7, #4] _kill(status, -1); - 8001872: f04f 31ff mov.w r1, #4294967295 ; 0xffffffff - 8001876: 6878 ldr r0, [r7, #4] - 8001878: f7ff ffe7 bl 800184a <_kill> + 80018d6: f04f 31ff mov.w r1, #4294967295 ; 0xffffffff + 80018da: 6878 ldr r0, [r7, #4] + 80018dc: f7ff ffe7 bl 80018ae <_kill> while (1) {} /* Make sure we hang here */ - 800187c: e7fe b.n 800187c <_exit+0x12> + 80018e0: e7fe b.n 80018e0 <_exit+0x12> -0800187e <_read>: +080018e2 <_read>: } __attribute__((weak)) int _read(int file, char *ptr, int len) { - 800187e: b580 push {r7, lr} - 8001880: b086 sub sp, #24 - 8001882: af00 add r7, sp, #0 - 8001884: 60f8 str r0, [r7, #12] - 8001886: 60b9 str r1, [r7, #8] - 8001888: 607a str r2, [r7, #4] + 80018e2: b580 push {r7, lr} + 80018e4: b086 sub sp, #24 + 80018e6: af00 add r7, sp, #0 + 80018e8: 60f8 str r0, [r7, #12] + 80018ea: 60b9 str r1, [r7, #8] + 80018ec: 607a str r2, [r7, #4] int DataIdx; for (DataIdx = 0; DataIdx < len; DataIdx++) - 800188a: 2300 movs r3, #0 - 800188c: 617b str r3, [r7, #20] - 800188e: e00a b.n 80018a6 <_read+0x28> + 80018ee: 2300 movs r3, #0 + 80018f0: 617b str r3, [r7, #20] + 80018f2: e00a b.n 800190a <_read+0x28> { *ptr++ = __io_getchar(); - 8001890: f3af 8000 nop.w - 8001894: 4601 mov r1, r0 - 8001896: 68bb ldr r3, [r7, #8] - 8001898: 1c5a adds r2, r3, #1 - 800189a: 60ba str r2, [r7, #8] - 800189c: b2ca uxtb r2, r1 - 800189e: 701a strb r2, [r3, #0] + 80018f4: f3af 8000 nop.w + 80018f8: 4601 mov r1, r0 + 80018fa: 68bb ldr r3, [r7, #8] + 80018fc: 1c5a adds r2, r3, #1 + 80018fe: 60ba str r2, [r7, #8] + 8001900: b2ca uxtb r2, r1 + 8001902: 701a strb r2, [r3, #0] for (DataIdx = 0; DataIdx < len; DataIdx++) - 80018a0: 697b ldr r3, [r7, #20] - 80018a2: 3301 adds r3, #1 - 80018a4: 617b str r3, [r7, #20] - 80018a6: 697a ldr r2, [r7, #20] - 80018a8: 687b ldr r3, [r7, #4] - 80018aa: 429a cmp r2, r3 - 80018ac: dbf0 blt.n 8001890 <_read+0x12> + 8001904: 697b ldr r3, [r7, #20] + 8001906: 3301 adds r3, #1 + 8001908: 617b str r3, [r7, #20] + 800190a: 697a ldr r2, [r7, #20] + 800190c: 687b ldr r3, [r7, #4] + 800190e: 429a cmp r2, r3 + 8001910: dbf0 blt.n 80018f4 <_read+0x12> } return len; - 80018ae: 687b ldr r3, [r7, #4] + 8001912: 687b ldr r3, [r7, #4] } - 80018b0: 4618 mov r0, r3 - 80018b2: 3718 adds r7, #24 - 80018b4: 46bd mov sp, r7 - 80018b6: bd80 pop {r7, pc} + 8001914: 4618 mov r0, r3 + 8001916: 3718 adds r7, #24 + 8001918: 46bd mov sp, r7 + 800191a: bd80 pop {r7, pc} -080018b8 <_write>: +0800191c <_write>: __attribute__((weak)) int _write(int file, char *ptr, int len) { - 80018b8: b580 push {r7, lr} - 80018ba: b086 sub sp, #24 - 80018bc: af00 add r7, sp, #0 - 80018be: 60f8 str r0, [r7, #12] - 80018c0: 60b9 str r1, [r7, #8] - 80018c2: 607a str r2, [r7, #4] + 800191c: b580 push {r7, lr} + 800191e: b086 sub sp, #24 + 8001920: af00 add r7, sp, #0 + 8001922: 60f8 str r0, [r7, #12] + 8001924: 60b9 str r1, [r7, #8] + 8001926: 607a str r2, [r7, #4] int DataIdx; for (DataIdx = 0; DataIdx < len; DataIdx++) - 80018c4: 2300 movs r3, #0 - 80018c6: 617b str r3, [r7, #20] - 80018c8: e009 b.n 80018de <_write+0x26> + 8001928: 2300 movs r3, #0 + 800192a: 617b str r3, [r7, #20] + 800192c: e009 b.n 8001942 <_write+0x26> { __io_putchar(*ptr++); - 80018ca: 68bb ldr r3, [r7, #8] - 80018cc: 1c5a adds r2, r3, #1 - 80018ce: 60ba str r2, [r7, #8] - 80018d0: 781b ldrb r3, [r3, #0] - 80018d2: 4618 mov r0, r3 - 80018d4: f3af 8000 nop.w + 800192e: 68bb ldr r3, [r7, #8] + 8001930: 1c5a adds r2, r3, #1 + 8001932: 60ba str r2, [r7, #8] + 8001934: 781b ldrb r3, [r3, #0] + 8001936: 4618 mov r0, r3 + 8001938: f3af 8000 nop.w for (DataIdx = 0; DataIdx < len; DataIdx++) - 80018d8: 697b ldr r3, [r7, #20] - 80018da: 3301 adds r3, #1 - 80018dc: 617b str r3, [r7, #20] - 80018de: 697a ldr r2, [r7, #20] - 80018e0: 687b ldr r3, [r7, #4] - 80018e2: 429a cmp r2, r3 - 80018e4: dbf1 blt.n 80018ca <_write+0x12> + 800193c: 697b ldr r3, [r7, #20] + 800193e: 3301 adds r3, #1 + 8001940: 617b str r3, [r7, #20] + 8001942: 697a ldr r2, [r7, #20] + 8001944: 687b ldr r3, [r7, #4] + 8001946: 429a cmp r2, r3 + 8001948: dbf1 blt.n 800192e <_write+0x12> } return len; - 80018e6: 687b ldr r3, [r7, #4] + 800194a: 687b ldr r3, [r7, #4] } - 80018e8: 4618 mov r0, r3 - 80018ea: 3718 adds r7, #24 - 80018ec: 46bd mov sp, r7 - 80018ee: bd80 pop {r7, pc} + 800194c: 4618 mov r0, r3 + 800194e: 3718 adds r7, #24 + 8001950: 46bd mov sp, r7 + 8001952: bd80 pop {r7, pc} -080018f0 <_close>: +08001954 <_close>: int _close(int file) { - 80018f0: b480 push {r7} - 80018f2: b083 sub sp, #12 - 80018f4: af00 add r7, sp, #0 - 80018f6: 6078 str r0, [r7, #4] + 8001954: b480 push {r7} + 8001956: b083 sub sp, #12 + 8001958: af00 add r7, sp, #0 + 800195a: 6078 str r0, [r7, #4] return -1; - 80018f8: f04f 33ff mov.w r3, #4294967295 ; 0xffffffff + 800195c: f04f 33ff mov.w r3, #4294967295 ; 0xffffffff } - 80018fc: 4618 mov r0, r3 - 80018fe: 370c adds r7, #12 - 8001900: 46bd mov sp, r7 - 8001902: bc80 pop {r7} - 8001904: 4770 bx lr + 8001960: 4618 mov r0, r3 + 8001962: 370c adds r7, #12 + 8001964: 46bd mov sp, r7 + 8001966: bc80 pop {r7} + 8001968: 4770 bx lr -08001906 <_fstat>: +0800196a <_fstat>: int _fstat(int file, struct stat *st) { - 8001906: b480 push {r7} - 8001908: b083 sub sp, #12 - 800190a: af00 add r7, sp, #0 - 800190c: 6078 str r0, [r7, #4] - 800190e: 6039 str r1, [r7, #0] + 800196a: b480 push {r7} + 800196c: b083 sub sp, #12 + 800196e: af00 add r7, sp, #0 + 8001970: 6078 str r0, [r7, #4] + 8001972: 6039 str r1, [r7, #0] st->st_mode = S_IFCHR; - 8001910: 683b ldr r3, [r7, #0] - 8001912: f44f 5200 mov.w r2, #8192 ; 0x2000 - 8001916: 605a str r2, [r3, #4] + 8001974: 683b ldr r3, [r7, #0] + 8001976: f44f 5200 mov.w r2, #8192 ; 0x2000 + 800197a: 605a str r2, [r3, #4] return 0; - 8001918: 2300 movs r3, #0 + 800197c: 2300 movs r3, #0 } - 800191a: 4618 mov r0, r3 - 800191c: 370c adds r7, #12 - 800191e: 46bd mov sp, r7 - 8001920: bc80 pop {r7} - 8001922: 4770 bx lr + 800197e: 4618 mov r0, r3 + 8001980: 370c adds r7, #12 + 8001982: 46bd mov sp, r7 + 8001984: bc80 pop {r7} + 8001986: 4770 bx lr -08001924 <_isatty>: +08001988 <_isatty>: int _isatty(int file) { - 8001924: b480 push {r7} - 8001926: b083 sub sp, #12 - 8001928: af00 add r7, sp, #0 - 800192a: 6078 str r0, [r7, #4] + 8001988: b480 push {r7} + 800198a: b083 sub sp, #12 + 800198c: af00 add r7, sp, #0 + 800198e: 6078 str r0, [r7, #4] return 1; - 800192c: 2301 movs r3, #1 + 8001990: 2301 movs r3, #1 } - 800192e: 4618 mov r0, r3 - 8001930: 370c adds r7, #12 - 8001932: 46bd mov sp, r7 - 8001934: bc80 pop {r7} - 8001936: 4770 bx lr + 8001992: 4618 mov r0, r3 + 8001994: 370c adds r7, #12 + 8001996: 46bd mov sp, r7 + 8001998: bc80 pop {r7} + 800199a: 4770 bx lr -08001938 <_lseek>: +0800199c <_lseek>: int _lseek(int file, int ptr, int dir) { - 8001938: b480 push {r7} - 800193a: b085 sub sp, #20 - 800193c: af00 add r7, sp, #0 - 800193e: 60f8 str r0, [r7, #12] - 8001940: 60b9 str r1, [r7, #8] - 8001942: 607a str r2, [r7, #4] + 800199c: b480 push {r7} + 800199e: b085 sub sp, #20 + 80019a0: af00 add r7, sp, #0 + 80019a2: 60f8 str r0, [r7, #12] + 80019a4: 60b9 str r1, [r7, #8] + 80019a6: 607a str r2, [r7, #4] return 0; - 8001944: 2300 movs r3, #0 + 80019a8: 2300 movs r3, #0 } - 8001946: 4618 mov r0, r3 - 8001948: 3714 adds r7, #20 - 800194a: 46bd mov sp, r7 - 800194c: bc80 pop {r7} - 800194e: 4770 bx lr + 80019aa: 4618 mov r0, r3 + 80019ac: 3714 adds r7, #20 + 80019ae: 46bd mov sp, r7 + 80019b0: bc80 pop {r7} + 80019b2: 4770 bx lr -08001950 <_sbrk>: +080019b4 <_sbrk>: * * @param incr Memory size * @return Pointer to allocated memory */ void *_sbrk(ptrdiff_t incr) { - 8001950: b580 push {r7, lr} - 8001952: b086 sub sp, #24 - 8001954: af00 add r7, sp, #0 - 8001956: 6078 str r0, [r7, #4] + 80019b4: b580 push {r7, lr} + 80019b6: b086 sub sp, #24 + 80019b8: af00 add r7, sp, #0 + 80019ba: 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; - 8001958: 4a14 ldr r2, [pc, #80] ; (80019ac <_sbrk+0x5c>) - 800195a: 4b15 ldr r3, [pc, #84] ; (80019b0 <_sbrk+0x60>) - 800195c: 1ad3 subs r3, r2, r3 - 800195e: 617b str r3, [r7, #20] + 80019bc: 4a14 ldr r2, [pc, #80] ; (8001a10 <_sbrk+0x5c>) + 80019be: 4b15 ldr r3, [pc, #84] ; (8001a14 <_sbrk+0x60>) + 80019c0: 1ad3 subs r3, r2, r3 + 80019c2: 617b str r3, [r7, #20] const uint8_t *max_heap = (uint8_t *)stack_limit; - 8001960: 697b ldr r3, [r7, #20] - 8001962: 613b str r3, [r7, #16] + 80019c4: 697b ldr r3, [r7, #20] + 80019c6: 613b str r3, [r7, #16] uint8_t *prev_heap_end; /* Initialize heap end at first call */ if (NULL == __sbrk_heap_end) - 8001964: 4b13 ldr r3, [pc, #76] ; (80019b4 <_sbrk+0x64>) - 8001966: 681b ldr r3, [r3, #0] - 8001968: 2b00 cmp r3, #0 - 800196a: d102 bne.n 8001972 <_sbrk+0x22> + 80019c8: 4b13 ldr r3, [pc, #76] ; (8001a18 <_sbrk+0x64>) + 80019ca: 681b ldr r3, [r3, #0] + 80019cc: 2b00 cmp r3, #0 + 80019ce: d102 bne.n 80019d6 <_sbrk+0x22> { __sbrk_heap_end = &_end; - 800196c: 4b11 ldr r3, [pc, #68] ; (80019b4 <_sbrk+0x64>) - 800196e: 4a12 ldr r2, [pc, #72] ; (80019b8 <_sbrk+0x68>) - 8001970: 601a str r2, [r3, #0] + 80019d0: 4b11 ldr r3, [pc, #68] ; (8001a18 <_sbrk+0x64>) + 80019d2: 4a12 ldr r2, [pc, #72] ; (8001a1c <_sbrk+0x68>) + 80019d4: 601a str r2, [r3, #0] } /* Protect heap from growing into the reserved MSP stack */ if (__sbrk_heap_end + incr > max_heap) - 8001972: 4b10 ldr r3, [pc, #64] ; (80019b4 <_sbrk+0x64>) - 8001974: 681a ldr r2, [r3, #0] - 8001976: 687b ldr r3, [r7, #4] - 8001978: 4413 add r3, r2 - 800197a: 693a ldr r2, [r7, #16] - 800197c: 429a cmp r2, r3 - 800197e: d207 bcs.n 8001990 <_sbrk+0x40> + 80019d6: 4b10 ldr r3, [pc, #64] ; (8001a18 <_sbrk+0x64>) + 80019d8: 681a ldr r2, [r3, #0] + 80019da: 687b ldr r3, [r7, #4] + 80019dc: 4413 add r3, r2 + 80019de: 693a ldr r2, [r7, #16] + 80019e0: 429a cmp r2, r3 + 80019e2: d207 bcs.n 80019f4 <_sbrk+0x40> { errno = ENOMEM; - 8001980: f005 fbfc bl 800717c <__errno> - 8001984: 4603 mov r3, r0 - 8001986: 220c movs r2, #12 - 8001988: 601a str r2, [r3, #0] + 80019e4: f005 fac0 bl 8006f68 <__errno> + 80019e8: 4603 mov r3, r0 + 80019ea: 220c movs r2, #12 + 80019ec: 601a str r2, [r3, #0] return (void *)-1; - 800198a: f04f 33ff mov.w r3, #4294967295 ; 0xffffffff - 800198e: e009 b.n 80019a4 <_sbrk+0x54> + 80019ee: f04f 33ff mov.w r3, #4294967295 ; 0xffffffff + 80019f2: e009 b.n 8001a08 <_sbrk+0x54> } prev_heap_end = __sbrk_heap_end; - 8001990: 4b08 ldr r3, [pc, #32] ; (80019b4 <_sbrk+0x64>) - 8001992: 681b ldr r3, [r3, #0] - 8001994: 60fb str r3, [r7, #12] + 80019f4: 4b08 ldr r3, [pc, #32] ; (8001a18 <_sbrk+0x64>) + 80019f6: 681b ldr r3, [r3, #0] + 80019f8: 60fb str r3, [r7, #12] __sbrk_heap_end += incr; - 8001996: 4b07 ldr r3, [pc, #28] ; (80019b4 <_sbrk+0x64>) - 8001998: 681a ldr r2, [r3, #0] - 800199a: 687b ldr r3, [r7, #4] - 800199c: 4413 add r3, r2 - 800199e: 4a05 ldr r2, [pc, #20] ; (80019b4 <_sbrk+0x64>) - 80019a0: 6013 str r3, [r2, #0] + 80019fa: 4b07 ldr r3, [pc, #28] ; (8001a18 <_sbrk+0x64>) + 80019fc: 681a ldr r2, [r3, #0] + 80019fe: 687b ldr r3, [r7, #4] + 8001a00: 4413 add r3, r2 + 8001a02: 4a05 ldr r2, [pc, #20] ; (8001a18 <_sbrk+0x64>) + 8001a04: 6013 str r3, [r2, #0] return (void *)prev_heap_end; - 80019a2: 68fb ldr r3, [r7, #12] + 8001a06: 68fb ldr r3, [r7, #12] } - 80019a4: 4618 mov r0, r3 - 80019a6: 3718 adds r7, #24 - 80019a8: 46bd mov sp, r7 - 80019aa: bd80 pop {r7, pc} - 80019ac: 20010000 .word 0x20010000 - 80019b0: 00000800 .word 0x00000800 - 80019b4: 20000200 .word 0x20000200 - 80019b8: 200024b0 .word 0x200024b0 + 8001a08: 4618 mov r0, r3 + 8001a0a: 3718 adds r7, #24 + 8001a0c: 46bd mov sp, r7 + 8001a0e: bd80 pop {r7, pc} + 8001a10: 20010000 .word 0x20010000 + 8001a14: 00000800 .word 0x00000800 + 8001a18: 200001fc .word 0x200001fc + 8001a1c: 20002500 .word 0x20002500 -080019bc : +08001a20 : * @note This function should be used only after reset. * @param None * @retval None */ void SystemInit (void) { - 80019bc: b480 push {r7} - 80019be: af00 add r7, sp, #0 + 8001a20: b480 push {r7} + 8001a22: 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 */ } - 80019c0: bf00 nop - 80019c2: 46bd mov sp, r7 - 80019c4: bc80 pop {r7} - 80019c6: 4770 bx lr + 8001a24: bf00 nop + 8001a26: 46bd mov sp, r7 + 8001a28: bc80 pop {r7} + 8001a2a: 4770 bx lr -080019c8 : +08001a2c : .weak Reset_Handler .type Reset_Handler, %function Reset_Handler: /* Copy the data segment initializers from flash to SRAM */ ldr r0, =_sdata - 80019c8: 480c ldr r0, [pc, #48] ; (80019fc ) + 8001a2c: 480c ldr r0, [pc, #48] ; (8001a60 ) ldr r1, =_edata - 80019ca: 490d ldr r1, [pc, #52] ; (8001a00 ) + 8001a2e: 490d ldr r1, [pc, #52] ; (8001a64 ) ldr r2, =_sidata - 80019cc: 4a0d ldr r2, [pc, #52] ; (8001a04 ) + 8001a30: 4a0d ldr r2, [pc, #52] ; (8001a68 ) movs r3, #0 - 80019ce: 2300 movs r3, #0 + 8001a32: 2300 movs r3, #0 b LoopCopyDataInit - 80019d0: e002 b.n 80019d8 + 8001a34: e002 b.n 8001a3c -080019d2 : +08001a36 : CopyDataInit: ldr r4, [r2, r3] - 80019d2: 58d4 ldr r4, [r2, r3] + 8001a36: 58d4 ldr r4, [r2, r3] str r4, [r0, r3] - 80019d4: 50c4 str r4, [r0, r3] + 8001a38: 50c4 str r4, [r0, r3] adds r3, r3, #4 - 80019d6: 3304 adds r3, #4 + 8001a3a: 3304 adds r3, #4 -080019d8 : +08001a3c : LoopCopyDataInit: adds r4, r0, r3 - 80019d8: 18c4 adds r4, r0, r3 + 8001a3c: 18c4 adds r4, r0, r3 cmp r4, r1 - 80019da: 428c cmp r4, r1 + 8001a3e: 428c cmp r4, r1 bcc CopyDataInit - 80019dc: d3f9 bcc.n 80019d2 + 8001a40: d3f9 bcc.n 8001a36 /* Zero fill the bss segment. */ ldr r2, =_sbss - 80019de: 4a0a ldr r2, [pc, #40] ; (8001a08 ) + 8001a42: 4a0a ldr r2, [pc, #40] ; (8001a6c ) ldr r4, =_ebss - 80019e0: 4c0a ldr r4, [pc, #40] ; (8001a0c ) + 8001a44: 4c0a ldr r4, [pc, #40] ; (8001a70 ) movs r3, #0 - 80019e2: 2300 movs r3, #0 + 8001a46: 2300 movs r3, #0 b LoopFillZerobss - 80019e4: e001 b.n 80019ea + 8001a48: e001 b.n 8001a4e -080019e6 : +08001a4a : FillZerobss: str r3, [r2] - 80019e6: 6013 str r3, [r2, #0] + 8001a4a: 6013 str r3, [r2, #0] adds r2, r2, #4 - 80019e8: 3204 adds r2, #4 + 8001a4c: 3204 adds r2, #4 -080019ea : +08001a4e : LoopFillZerobss: cmp r2, r4 - 80019ea: 42a2 cmp r2, r4 + 8001a4e: 42a2 cmp r2, r4 bcc FillZerobss - 80019ec: d3fb bcc.n 80019e6 + 8001a50: d3fb bcc.n 8001a4a /* Call the clock system intitialization function.*/ bl SystemInit - 80019ee: f7ff ffe5 bl 80019bc + 8001a52: f7ff ffe5 bl 8001a20 /* Call static constructors */ bl __libc_init_array - 80019f2: f005 fbc9 bl 8007188 <__libc_init_array> + 8001a56: f005 fa8d bl 8006f74 <__libc_init_array> /* Call the application's entry point.*/ bl main - 80019f6: f7ff fc13 bl 8001220
+ 8001a5a: f7ff fb55 bl 8001108
bx lr - 80019fa: 4770 bx lr + 8001a5e: 4770 bx lr ldr r0, =_sdata - 80019fc: 20000000 .word 0x20000000 + 8001a60: 20000000 .word 0x20000000 ldr r1, =_edata - 8001a00: 200001e0 .word 0x200001e0 + 8001a64: 200001dc .word 0x200001dc ldr r2, =_sidata - 8001a04: 0800b2c4 .word 0x0800b2c4 + 8001a68: 0800ac5c .word 0x0800ac5c ldr r2, =_sbss - 8001a08: 200001e0 .word 0x200001e0 + 8001a6c: 200001dc .word 0x200001dc ldr r4, =_ebss - 8001a0c: 200024ac .word 0x200024ac + 8001a70: 200024fc .word 0x200024fc -08001a10 : +08001a74 : * @retval : None */ .section .text.Default_Handler,"ax",%progbits Default_Handler: Infinite_Loop: b Infinite_Loop - 8001a10: e7fe b.n 8001a10 + 8001a74: e7fe b.n 8001a74 ... -08001a14 : +08001a78 : * 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) { - 8001a14: b580 push {r7, lr} - 8001a16: af00 add r7, sp, #0 + 8001a78: b580 push {r7, lr} + 8001a7a: 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(); - 8001a18: 4b08 ldr r3, [pc, #32] ; (8001a3c ) - 8001a1a: 681b ldr r3, [r3, #0] - 8001a1c: 4a07 ldr r2, [pc, #28] ; (8001a3c ) - 8001a1e: f043 0310 orr.w r3, r3, #16 - 8001a22: 6013 str r3, [r2, #0] + 8001a7c: 4b08 ldr r3, [pc, #32] ; (8001aa0 ) + 8001a7e: 681b ldr r3, [r3, #0] + 8001a80: 4a07 ldr r2, [pc, #28] ; (8001aa0 ) + 8001a82: f043 0310 orr.w r3, r3, #16 + 8001a86: 6013 str r3, [r2, #0] #endif #endif /* PREFETCH_ENABLE */ /* Set Interrupt Group Priority */ HAL_NVIC_SetPriorityGrouping(NVIC_PRIORITYGROUP_4); - 8001a24: 2003 movs r0, #3 - 8001a26: f000 f947 bl 8001cb8 + 8001a88: 2003 movs r0, #3 + 8001a8a: f000 f947 bl 8001d1c /* Use systick as time base source and configure 1ms tick (default clock after Reset is HSI) */ HAL_InitTick(TICK_INT_PRIORITY); - 8001a2a: 200f movs r0, #15 - 8001a2c: f000 f808 bl 8001a40 + 8001a8e: 200f movs r0, #15 + 8001a90: f000 f808 bl 8001aa4 /* Init the low level hardware */ HAL_MspInit(); - 8001a30: f7ff fddc bl 80015ec + 8001a94: f7ff fd92 bl 80015bc /* Return function status */ return HAL_OK; - 8001a34: 2300 movs r3, #0 + 8001a98: 2300 movs r3, #0 } - 8001a36: 4618 mov r0, r3 - 8001a38: bd80 pop {r7, pc} - 8001a3a: bf00 nop - 8001a3c: 40022000 .word 0x40022000 + 8001a9a: 4618 mov r0, r3 + 8001a9c: bd80 pop {r7, pc} + 8001a9e: bf00 nop + 8001aa0: 40022000 .word 0x40022000 -08001a40 : +08001aa4 : * implementation in user file. * @param TickPriority Tick interrupt priority. * @retval HAL status */ __weak HAL_StatusTypeDef HAL_InitTick(uint32_t TickPriority) { - 8001a40: b580 push {r7, lr} - 8001a42: b082 sub sp, #8 - 8001a44: af00 add r7, sp, #0 - 8001a46: 6078 str r0, [r7, #4] + 8001aa4: b580 push {r7, lr} + 8001aa6: b082 sub sp, #8 + 8001aa8: af00 add r7, sp, #0 + 8001aaa: 6078 str r0, [r7, #4] /* Configure the SysTick to have interrupt in 1ms time basis*/ if (HAL_SYSTICK_Config(SystemCoreClock / (1000U / uwTickFreq)) > 0U) - 8001a48: 4b12 ldr r3, [pc, #72] ; (8001a94 ) - 8001a4a: 681a ldr r2, [r3, #0] - 8001a4c: 4b12 ldr r3, [pc, #72] ; (8001a98 ) - 8001a4e: 781b ldrb r3, [r3, #0] - 8001a50: 4619 mov r1, r3 - 8001a52: f44f 737a mov.w r3, #1000 ; 0x3e8 - 8001a56: fbb3 f3f1 udiv r3, r3, r1 - 8001a5a: fbb2 f3f3 udiv r3, r2, r3 - 8001a5e: 4618 mov r0, r3 - 8001a60: f000 f95f bl 8001d22 - 8001a64: 4603 mov r3, r0 - 8001a66: 2b00 cmp r3, #0 - 8001a68: d001 beq.n 8001a6e + 8001aac: 4b12 ldr r3, [pc, #72] ; (8001af8 ) + 8001aae: 681a ldr r2, [r3, #0] + 8001ab0: 4b12 ldr r3, [pc, #72] ; (8001afc ) + 8001ab2: 781b ldrb r3, [r3, #0] + 8001ab4: 4619 mov r1, r3 + 8001ab6: f44f 737a mov.w r3, #1000 ; 0x3e8 + 8001aba: fbb3 f3f1 udiv r3, r3, r1 + 8001abe: fbb2 f3f3 udiv r3, r2, r3 + 8001ac2: 4618 mov r0, r3 + 8001ac4: f000 f95f bl 8001d86 + 8001ac8: 4603 mov r3, r0 + 8001aca: 2b00 cmp r3, #0 + 8001acc: d001 beq.n 8001ad2 { return HAL_ERROR; - 8001a6a: 2301 movs r3, #1 - 8001a6c: e00e b.n 8001a8c + 8001ace: 2301 movs r3, #1 + 8001ad0: e00e b.n 8001af0 } /* Configure the SysTick IRQ priority */ if (TickPriority < (1UL << __NVIC_PRIO_BITS)) - 8001a6e: 687b ldr r3, [r7, #4] - 8001a70: 2b0f cmp r3, #15 - 8001a72: d80a bhi.n 8001a8a + 8001ad2: 687b ldr r3, [r7, #4] + 8001ad4: 2b0f cmp r3, #15 + 8001ad6: d80a bhi.n 8001aee { HAL_NVIC_SetPriority(SysTick_IRQn, TickPriority, 0U); - 8001a74: 2200 movs r2, #0 - 8001a76: 6879 ldr r1, [r7, #4] - 8001a78: f04f 30ff mov.w r0, #4294967295 ; 0xffffffff - 8001a7c: f000 f927 bl 8001cce + 8001ad8: 2200 movs r2, #0 + 8001ada: 6879 ldr r1, [r7, #4] + 8001adc: f04f 30ff mov.w r0, #4294967295 ; 0xffffffff + 8001ae0: f000 f927 bl 8001d32 uwTickPrio = TickPriority; - 8001a80: 4a06 ldr r2, [pc, #24] ; (8001a9c ) - 8001a82: 687b ldr r3, [r7, #4] - 8001a84: 6013 str r3, [r2, #0] + 8001ae4: 4a06 ldr r2, [pc, #24] ; (8001b00 ) + 8001ae6: 687b ldr r3, [r7, #4] + 8001ae8: 6013 str r3, [r2, #0] { return HAL_ERROR; } /* Return function status */ return HAL_OK; - 8001a86: 2300 movs r3, #0 - 8001a88: e000 b.n 8001a8c + 8001aea: 2300 movs r3, #0 + 8001aec: e000 b.n 8001af0 return HAL_ERROR; - 8001a8a: 2301 movs r3, #1 + 8001aee: 2301 movs r3, #1 } - 8001a8c: 4618 mov r0, r3 - 8001a8e: 3708 adds r7, #8 - 8001a90: 46bd mov sp, r7 - 8001a92: bd80 pop {r7, pc} - 8001a94: 20000000 .word 0x20000000 - 8001a98: 20000008 .word 0x20000008 - 8001a9c: 20000004 .word 0x20000004 + 8001af0: 4618 mov r0, r3 + 8001af2: 3708 adds r7, #8 + 8001af4: 46bd mov sp, r7 + 8001af6: bd80 pop {r7, pc} + 8001af8: 20000000 .word 0x20000000 + 8001afc: 20000008 .word 0x20000008 + 8001b00: 20000004 .word 0x20000004 -08001aa0 : +08001b04 : * @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) { - 8001aa0: b480 push {r7} - 8001aa2: af00 add r7, sp, #0 + 8001b04: b480 push {r7} + 8001b06: af00 add r7, sp, #0 uwTick += uwTickFreq; - 8001aa4: 4b05 ldr r3, [pc, #20] ; (8001abc ) - 8001aa6: 781b ldrb r3, [r3, #0] - 8001aa8: 461a mov r2, r3 - 8001aaa: 4b05 ldr r3, [pc, #20] ; (8001ac0 ) - 8001aac: 681b ldr r3, [r3, #0] - 8001aae: 4413 add r3, r2 - 8001ab0: 4a03 ldr r2, [pc, #12] ; (8001ac0 ) - 8001ab2: 6013 str r3, [r2, #0] + 8001b08: 4b05 ldr r3, [pc, #20] ; (8001b20 ) + 8001b0a: 781b ldrb r3, [r3, #0] + 8001b0c: 461a mov r2, r3 + 8001b0e: 4b05 ldr r3, [pc, #20] ; (8001b24 ) + 8001b10: 681b ldr r3, [r3, #0] + 8001b12: 4413 add r3, r2 + 8001b14: 4a03 ldr r2, [pc, #12] ; (8001b24 ) + 8001b16: 6013 str r3, [r2, #0] } - 8001ab4: bf00 nop - 8001ab6: 46bd mov sp, r7 - 8001ab8: bc80 pop {r7} - 8001aba: 4770 bx lr - 8001abc: 20000008 .word 0x20000008 - 8001ac0: 200002fc .word 0x200002fc + 8001b18: bf00 nop + 8001b1a: 46bd mov sp, r7 + 8001b1c: bc80 pop {r7} + 8001b1e: 4770 bx lr + 8001b20: 20000008 .word 0x20000008 + 8001b24: 20000348 .word 0x20000348 -08001ac4 : +08001b28 : * @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) { - 8001ac4: b480 push {r7} - 8001ac6: af00 add r7, sp, #0 + 8001b28: b480 push {r7} + 8001b2a: af00 add r7, sp, #0 return uwTick; - 8001ac8: 4b02 ldr r3, [pc, #8] ; (8001ad4 ) - 8001aca: 681b ldr r3, [r3, #0] + 8001b2c: 4b02 ldr r3, [pc, #8] ; (8001b38 ) + 8001b2e: 681b ldr r3, [r3, #0] } - 8001acc: 4618 mov r0, r3 - 8001ace: 46bd mov sp, r7 - 8001ad0: bc80 pop {r7} - 8001ad2: 4770 bx lr - 8001ad4: 200002fc .word 0x200002fc + 8001b30: 4618 mov r0, r3 + 8001b32: 46bd mov sp, r7 + 8001b34: bc80 pop {r7} + 8001b36: 4770 bx lr + 8001b38: 20000348 .word 0x20000348 -08001ad8 : +08001b3c : * implementations in user file. * @param Delay specifies the delay time length, in milliseconds. * @retval None */ __weak void HAL_Delay(uint32_t Delay) { - 8001ad8: b580 push {r7, lr} - 8001ada: b084 sub sp, #16 - 8001adc: af00 add r7, sp, #0 - 8001ade: 6078 str r0, [r7, #4] + 8001b3c: b580 push {r7, lr} + 8001b3e: b084 sub sp, #16 + 8001b40: af00 add r7, sp, #0 + 8001b42: 6078 str r0, [r7, #4] uint32_t tickstart = HAL_GetTick(); - 8001ae0: f7ff fff0 bl 8001ac4 - 8001ae4: 60b8 str r0, [r7, #8] + 8001b44: f7ff fff0 bl 8001b28 + 8001b48: 60b8 str r0, [r7, #8] uint32_t wait = Delay; - 8001ae6: 687b ldr r3, [r7, #4] - 8001ae8: 60fb str r3, [r7, #12] + 8001b4a: 687b ldr r3, [r7, #4] + 8001b4c: 60fb str r3, [r7, #12] /* Add a freq to guarantee minimum wait */ if (wait < HAL_MAX_DELAY) - 8001aea: 68fb ldr r3, [r7, #12] - 8001aec: f1b3 3fff cmp.w r3, #4294967295 ; 0xffffffff - 8001af0: d005 beq.n 8001afe + 8001b4e: 68fb ldr r3, [r7, #12] + 8001b50: f1b3 3fff cmp.w r3, #4294967295 ; 0xffffffff + 8001b54: d005 beq.n 8001b62 { wait += (uint32_t)(uwTickFreq); - 8001af2: 4b0a ldr r3, [pc, #40] ; (8001b1c ) - 8001af4: 781b ldrb r3, [r3, #0] - 8001af6: 461a mov r2, r3 - 8001af8: 68fb ldr r3, [r7, #12] - 8001afa: 4413 add r3, r2 - 8001afc: 60fb str r3, [r7, #12] + 8001b56: 4b0a ldr r3, [pc, #40] ; (8001b80 ) + 8001b58: 781b ldrb r3, [r3, #0] + 8001b5a: 461a mov r2, r3 + 8001b5c: 68fb ldr r3, [r7, #12] + 8001b5e: 4413 add r3, r2 + 8001b60: 60fb str r3, [r7, #12] } while ((HAL_GetTick() - tickstart) < wait) - 8001afe: bf00 nop - 8001b00: f7ff ffe0 bl 8001ac4 - 8001b04: 4602 mov r2, r0 - 8001b06: 68bb ldr r3, [r7, #8] - 8001b08: 1ad3 subs r3, r2, r3 - 8001b0a: 68fa ldr r2, [r7, #12] - 8001b0c: 429a cmp r2, r3 - 8001b0e: d8f7 bhi.n 8001b00 + 8001b62: bf00 nop + 8001b64: f7ff ffe0 bl 8001b28 + 8001b68: 4602 mov r2, r0 + 8001b6a: 68bb ldr r3, [r7, #8] + 8001b6c: 1ad3 subs r3, r2, r3 + 8001b6e: 68fa ldr r2, [r7, #12] + 8001b70: 429a cmp r2, r3 + 8001b72: d8f7 bhi.n 8001b64 { } } - 8001b10: bf00 nop - 8001b12: bf00 nop - 8001b14: 3710 adds r7, #16 - 8001b16: 46bd mov sp, r7 - 8001b18: bd80 pop {r7, pc} - 8001b1a: bf00 nop - 8001b1c: 20000008 .word 0x20000008 + 8001b74: bf00 nop + 8001b76: bf00 nop + 8001b78: 3710 adds r7, #16 + 8001b7a: 46bd mov sp, r7 + 8001b7c: bd80 pop {r7, pc} + 8001b7e: bf00 nop + 8001b80: 20000008 .word 0x20000008 -08001b20 <__NVIC_SetPriorityGrouping>: +08001b84 <__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) { - 8001b20: b480 push {r7} - 8001b22: b085 sub sp, #20 - 8001b24: af00 add r7, sp, #0 - 8001b26: 6078 str r0, [r7, #4] + 8001b84: b480 push {r7} + 8001b86: b085 sub sp, #20 + 8001b88: af00 add r7, sp, #0 + 8001b8a: 6078 str r0, [r7, #4] uint32_t reg_value; uint32_t PriorityGroupTmp = (PriorityGroup & (uint32_t)0x07UL); /* only values 0..7 are used */ - 8001b28: 687b ldr r3, [r7, #4] - 8001b2a: f003 0307 and.w r3, r3, #7 - 8001b2e: 60fb str r3, [r7, #12] + 8001b8c: 687b ldr r3, [r7, #4] + 8001b8e: f003 0307 and.w r3, r3, #7 + 8001b92: 60fb str r3, [r7, #12] reg_value = SCB->AIRCR; /* read old register configuration */ - 8001b30: 4b0c ldr r3, [pc, #48] ; (8001b64 <__NVIC_SetPriorityGrouping+0x44>) - 8001b32: 68db ldr r3, [r3, #12] - 8001b34: 60bb str r3, [r7, #8] + 8001b94: 4b0c ldr r3, [pc, #48] ; (8001bc8 <__NVIC_SetPriorityGrouping+0x44>) + 8001b96: 68db ldr r3, [r3, #12] + 8001b98: 60bb str r3, [r7, #8] reg_value &= ~((uint32_t)(SCB_AIRCR_VECTKEY_Msk | SCB_AIRCR_PRIGROUP_Msk)); /* clear bits to change */ - 8001b36: 68ba ldr r2, [r7, #8] - 8001b38: f64f 03ff movw r3, #63743 ; 0xf8ff - 8001b3c: 4013 ands r3, r2 - 8001b3e: 60bb str r3, [r7, #8] + 8001b9a: 68ba ldr r2, [r7, #8] + 8001b9c: f64f 03ff movw r3, #63743 ; 0xf8ff + 8001ba0: 4013 ands r3, r2 + 8001ba2: 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 */ - 8001b40: 68fb ldr r3, [r7, #12] - 8001b42: 021a lsls r2, r3, #8 + 8001ba4: 68fb ldr r3, [r7, #12] + 8001ba6: 021a lsls r2, r3, #8 ((uint32_t)0x5FAUL << SCB_AIRCR_VECTKEY_Pos) | - 8001b44: 68bb ldr r3, [r7, #8] - 8001b46: 4313 orrs r3, r2 + 8001ba8: 68bb ldr r3, [r7, #8] + 8001baa: 4313 orrs r3, r2 reg_value = (reg_value | - 8001b48: f043 63bf orr.w r3, r3, #100139008 ; 0x5f80000 - 8001b4c: f443 3300 orr.w r3, r3, #131072 ; 0x20000 - 8001b50: 60bb str r3, [r7, #8] + 8001bac: f043 63bf orr.w r3, r3, #100139008 ; 0x5f80000 + 8001bb0: f443 3300 orr.w r3, r3, #131072 ; 0x20000 + 8001bb4: 60bb str r3, [r7, #8] SCB->AIRCR = reg_value; - 8001b52: 4a04 ldr r2, [pc, #16] ; (8001b64 <__NVIC_SetPriorityGrouping+0x44>) - 8001b54: 68bb ldr r3, [r7, #8] - 8001b56: 60d3 str r3, [r2, #12] + 8001bb6: 4a04 ldr r2, [pc, #16] ; (8001bc8 <__NVIC_SetPriorityGrouping+0x44>) + 8001bb8: 68bb ldr r3, [r7, #8] + 8001bba: 60d3 str r3, [r2, #12] } - 8001b58: bf00 nop - 8001b5a: 3714 adds r7, #20 - 8001b5c: 46bd mov sp, r7 - 8001b5e: bc80 pop {r7} - 8001b60: 4770 bx lr - 8001b62: bf00 nop - 8001b64: e000ed00 .word 0xe000ed00 + 8001bbc: bf00 nop + 8001bbe: 3714 adds r7, #20 + 8001bc0: 46bd mov sp, r7 + 8001bc2: bc80 pop {r7} + 8001bc4: 4770 bx lr + 8001bc6: bf00 nop + 8001bc8: e000ed00 .word 0xe000ed00 -08001b68 <__NVIC_GetPriorityGrouping>: +08001bcc <__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) { - 8001b68: b480 push {r7} - 8001b6a: af00 add r7, sp, #0 + 8001bcc: b480 push {r7} + 8001bce: af00 add r7, sp, #0 return ((uint32_t)((SCB->AIRCR & SCB_AIRCR_PRIGROUP_Msk) >> SCB_AIRCR_PRIGROUP_Pos)); - 8001b6c: 4b04 ldr r3, [pc, #16] ; (8001b80 <__NVIC_GetPriorityGrouping+0x18>) - 8001b6e: 68db ldr r3, [r3, #12] - 8001b70: 0a1b lsrs r3, r3, #8 - 8001b72: f003 0307 and.w r3, r3, #7 + 8001bd0: 4b04 ldr r3, [pc, #16] ; (8001be4 <__NVIC_GetPriorityGrouping+0x18>) + 8001bd2: 68db ldr r3, [r3, #12] + 8001bd4: 0a1b lsrs r3, r3, #8 + 8001bd6: f003 0307 and.w r3, r3, #7 } - 8001b76: 4618 mov r0, r3 - 8001b78: 46bd mov sp, r7 - 8001b7a: bc80 pop {r7} - 8001b7c: 4770 bx lr - 8001b7e: bf00 nop - 8001b80: e000ed00 .word 0xe000ed00 + 8001bda: 4618 mov r0, r3 + 8001bdc: 46bd mov sp, r7 + 8001bde: bc80 pop {r7} + 8001be0: 4770 bx lr + 8001be2: bf00 nop + 8001be4: e000ed00 .word 0xe000ed00 -08001b84 <__NVIC_EnableIRQ>: +08001be8 <__NVIC_EnableIRQ>: \details Enables a device specific interrupt in the NVIC interrupt controller. \param [in] IRQn Device specific interrupt number. \note IRQn must not be negative. */ __STATIC_INLINE void __NVIC_EnableIRQ(IRQn_Type IRQn) { - 8001b84: b480 push {r7} - 8001b86: b083 sub sp, #12 - 8001b88: af00 add r7, sp, #0 - 8001b8a: 4603 mov r3, r0 - 8001b8c: 71fb strb r3, [r7, #7] + 8001be8: b480 push {r7} + 8001bea: b083 sub sp, #12 + 8001bec: af00 add r7, sp, #0 + 8001bee: 4603 mov r3, r0 + 8001bf0: 71fb strb r3, [r7, #7] if ((int32_t)(IRQn) >= 0) - 8001b8e: f997 3007 ldrsb.w r3, [r7, #7] - 8001b92: 2b00 cmp r3, #0 - 8001b94: db0b blt.n 8001bae <__NVIC_EnableIRQ+0x2a> + 8001bf2: f997 3007 ldrsb.w r3, [r7, #7] + 8001bf6: 2b00 cmp r3, #0 + 8001bf8: db0b blt.n 8001c12 <__NVIC_EnableIRQ+0x2a> { NVIC->ISER[(((uint32_t)IRQn) >> 5UL)] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); - 8001b96: 79fb ldrb r3, [r7, #7] - 8001b98: f003 021f and.w r2, r3, #31 - 8001b9c: 4906 ldr r1, [pc, #24] ; (8001bb8 <__NVIC_EnableIRQ+0x34>) - 8001b9e: f997 3007 ldrsb.w r3, [r7, #7] - 8001ba2: 095b lsrs r3, r3, #5 - 8001ba4: 2001 movs r0, #1 - 8001ba6: fa00 f202 lsl.w r2, r0, r2 - 8001baa: f841 2023 str.w r2, [r1, r3, lsl #2] + 8001bfa: 79fb ldrb r3, [r7, #7] + 8001bfc: f003 021f and.w r2, r3, #31 + 8001c00: 4906 ldr r1, [pc, #24] ; (8001c1c <__NVIC_EnableIRQ+0x34>) + 8001c02: f997 3007 ldrsb.w r3, [r7, #7] + 8001c06: 095b lsrs r3, r3, #5 + 8001c08: 2001 movs r0, #1 + 8001c0a: fa00 f202 lsl.w r2, r0, r2 + 8001c0e: f841 2023 str.w r2, [r1, r3, lsl #2] } } - 8001bae: bf00 nop - 8001bb0: 370c adds r7, #12 - 8001bb2: 46bd mov sp, r7 - 8001bb4: bc80 pop {r7} - 8001bb6: 4770 bx lr - 8001bb8: e000e100 .word 0xe000e100 + 8001c12: bf00 nop + 8001c14: 370c adds r7, #12 + 8001c16: 46bd mov sp, r7 + 8001c18: bc80 pop {r7} + 8001c1a: 4770 bx lr + 8001c1c: e000e100 .word 0xe000e100 -08001bbc <__NVIC_SetPriority>: +08001c20 <__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) { - 8001bbc: b480 push {r7} - 8001bbe: b083 sub sp, #12 - 8001bc0: af00 add r7, sp, #0 - 8001bc2: 4603 mov r3, r0 - 8001bc4: 6039 str r1, [r7, #0] - 8001bc6: 71fb strb r3, [r7, #7] + 8001c20: b480 push {r7} + 8001c22: b083 sub sp, #12 + 8001c24: af00 add r7, sp, #0 + 8001c26: 4603 mov r3, r0 + 8001c28: 6039 str r1, [r7, #0] + 8001c2a: 71fb strb r3, [r7, #7] if ((int32_t)(IRQn) >= 0) - 8001bc8: f997 3007 ldrsb.w r3, [r7, #7] - 8001bcc: 2b00 cmp r3, #0 - 8001bce: db0a blt.n 8001be6 <__NVIC_SetPriority+0x2a> + 8001c2c: f997 3007 ldrsb.w r3, [r7, #7] + 8001c30: 2b00 cmp r3, #0 + 8001c32: db0a blt.n 8001c4a <__NVIC_SetPriority+0x2a> { NVIC->IP[((uint32_t)IRQn)] = (uint8_t)((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL); - 8001bd0: 683b ldr r3, [r7, #0] - 8001bd2: b2da uxtb r2, r3 - 8001bd4: 490c ldr r1, [pc, #48] ; (8001c08 <__NVIC_SetPriority+0x4c>) - 8001bd6: f997 3007 ldrsb.w r3, [r7, #7] - 8001bda: 0112 lsls r2, r2, #4 - 8001bdc: b2d2 uxtb r2, r2 - 8001bde: 440b add r3, r1 - 8001be0: f883 2300 strb.w r2, [r3, #768] ; 0x300 + 8001c34: 683b ldr r3, [r7, #0] + 8001c36: b2da uxtb r2, r3 + 8001c38: 490c ldr r1, [pc, #48] ; (8001c6c <__NVIC_SetPriority+0x4c>) + 8001c3a: f997 3007 ldrsb.w r3, [r7, #7] + 8001c3e: 0112 lsls r2, r2, #4 + 8001c40: b2d2 uxtb r2, r2 + 8001c42: 440b add r3, r1 + 8001c44: 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); } } - 8001be4: e00a b.n 8001bfc <__NVIC_SetPriority+0x40> + 8001c48: e00a b.n 8001c60 <__NVIC_SetPriority+0x40> SCB->SHP[(((uint32_t)IRQn) & 0xFUL)-4UL] = (uint8_t)((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL); - 8001be6: 683b ldr r3, [r7, #0] - 8001be8: b2da uxtb r2, r3 - 8001bea: 4908 ldr r1, [pc, #32] ; (8001c0c <__NVIC_SetPriority+0x50>) - 8001bec: 79fb ldrb r3, [r7, #7] - 8001bee: f003 030f and.w r3, r3, #15 - 8001bf2: 3b04 subs r3, #4 - 8001bf4: 0112 lsls r2, r2, #4 - 8001bf6: b2d2 uxtb r2, r2 - 8001bf8: 440b add r3, r1 - 8001bfa: 761a strb r2, [r3, #24] + 8001c4a: 683b ldr r3, [r7, #0] + 8001c4c: b2da uxtb r2, r3 + 8001c4e: 4908 ldr r1, [pc, #32] ; (8001c70 <__NVIC_SetPriority+0x50>) + 8001c50: 79fb ldrb r3, [r7, #7] + 8001c52: f003 030f and.w r3, r3, #15 + 8001c56: 3b04 subs r3, #4 + 8001c58: 0112 lsls r2, r2, #4 + 8001c5a: b2d2 uxtb r2, r2 + 8001c5c: 440b add r3, r1 + 8001c5e: 761a strb r2, [r3, #24] } - 8001bfc: bf00 nop - 8001bfe: 370c adds r7, #12 - 8001c00: 46bd mov sp, r7 - 8001c02: bc80 pop {r7} - 8001c04: 4770 bx lr - 8001c06: bf00 nop - 8001c08: e000e100 .word 0xe000e100 - 8001c0c: e000ed00 .word 0xe000ed00 + 8001c60: bf00 nop + 8001c62: 370c adds r7, #12 + 8001c64: 46bd mov sp, r7 + 8001c66: bc80 pop {r7} + 8001c68: 4770 bx lr + 8001c6a: bf00 nop + 8001c6c: e000e100 .word 0xe000e100 + 8001c70: e000ed00 .word 0xe000ed00 -08001c10 : +08001c74 : \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) { - 8001c10: b480 push {r7} - 8001c12: b089 sub sp, #36 ; 0x24 - 8001c14: af00 add r7, sp, #0 - 8001c16: 60f8 str r0, [r7, #12] - 8001c18: 60b9 str r1, [r7, #8] - 8001c1a: 607a str r2, [r7, #4] + 8001c74: b480 push {r7} + 8001c76: b089 sub sp, #36 ; 0x24 + 8001c78: af00 add r7, sp, #0 + 8001c7a: 60f8 str r0, [r7, #12] + 8001c7c: 60b9 str r1, [r7, #8] + 8001c7e: 607a str r2, [r7, #4] uint32_t PriorityGroupTmp = (PriorityGroup & (uint32_t)0x07UL); /* only values 0..7 are used */ - 8001c1c: 68fb ldr r3, [r7, #12] - 8001c1e: f003 0307 and.w r3, r3, #7 - 8001c22: 61fb str r3, [r7, #28] + 8001c80: 68fb ldr r3, [r7, #12] + 8001c82: f003 0307 and.w r3, r3, #7 + 8001c86: 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); - 8001c24: 69fb ldr r3, [r7, #28] - 8001c26: f1c3 0307 rsb r3, r3, #7 - 8001c2a: 2b04 cmp r3, #4 - 8001c2c: bf28 it cs - 8001c2e: 2304 movcs r3, #4 - 8001c30: 61bb str r3, [r7, #24] + 8001c88: 69fb ldr r3, [r7, #28] + 8001c8a: f1c3 0307 rsb r3, r3, #7 + 8001c8e: 2b04 cmp r3, #4 + 8001c90: bf28 it cs + 8001c92: 2304 movcs r3, #4 + 8001c94: 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)); - 8001c32: 69fb ldr r3, [r7, #28] - 8001c34: 3304 adds r3, #4 - 8001c36: 2b06 cmp r3, #6 - 8001c38: d902 bls.n 8001c40 - 8001c3a: 69fb ldr r3, [r7, #28] - 8001c3c: 3b03 subs r3, #3 - 8001c3e: e000 b.n 8001c42 - 8001c40: 2300 movs r3, #0 - 8001c42: 617b str r3, [r7, #20] + 8001c96: 69fb ldr r3, [r7, #28] + 8001c98: 3304 adds r3, #4 + 8001c9a: 2b06 cmp r3, #6 + 8001c9c: d902 bls.n 8001ca4 + 8001c9e: 69fb ldr r3, [r7, #28] + 8001ca0: 3b03 subs r3, #3 + 8001ca2: e000 b.n 8001ca6 + 8001ca4: 2300 movs r3, #0 + 8001ca6: 617b str r3, [r7, #20] return ( ((PreemptPriority & (uint32_t)((1UL << (PreemptPriorityBits)) - 1UL)) << SubPriorityBits) | - 8001c44: f04f 32ff mov.w r2, #4294967295 ; 0xffffffff - 8001c48: 69bb ldr r3, [r7, #24] - 8001c4a: fa02 f303 lsl.w r3, r2, r3 - 8001c4e: 43da mvns r2, r3 - 8001c50: 68bb ldr r3, [r7, #8] - 8001c52: 401a ands r2, r3 - 8001c54: 697b ldr r3, [r7, #20] - 8001c56: 409a lsls r2, r3 + 8001ca8: f04f 32ff mov.w r2, #4294967295 ; 0xffffffff + 8001cac: 69bb ldr r3, [r7, #24] + 8001cae: fa02 f303 lsl.w r3, r2, r3 + 8001cb2: 43da mvns r2, r3 + 8001cb4: 68bb ldr r3, [r7, #8] + 8001cb6: 401a ands r2, r3 + 8001cb8: 697b ldr r3, [r7, #20] + 8001cba: 409a lsls r2, r3 ((SubPriority & (uint32_t)((1UL << (SubPriorityBits )) - 1UL))) - 8001c58: f04f 31ff mov.w r1, #4294967295 ; 0xffffffff - 8001c5c: 697b ldr r3, [r7, #20] - 8001c5e: fa01 f303 lsl.w r3, r1, r3 - 8001c62: 43d9 mvns r1, r3 - 8001c64: 687b ldr r3, [r7, #4] - 8001c66: 400b ands r3, r1 + 8001cbc: f04f 31ff mov.w r1, #4294967295 ; 0xffffffff + 8001cc0: 697b ldr r3, [r7, #20] + 8001cc2: fa01 f303 lsl.w r3, r1, r3 + 8001cc6: 43d9 mvns r1, r3 + 8001cc8: 687b ldr r3, [r7, #4] + 8001cca: 400b ands r3, r1 ((PreemptPriority & (uint32_t)((1UL << (PreemptPriorityBits)) - 1UL)) << SubPriorityBits) | - 8001c68: 4313 orrs r3, r2 + 8001ccc: 4313 orrs r3, r2 ); } - 8001c6a: 4618 mov r0, r3 - 8001c6c: 3724 adds r7, #36 ; 0x24 - 8001c6e: 46bd mov sp, r7 - 8001c70: bc80 pop {r7} - 8001c72: 4770 bx lr + 8001cce: 4618 mov r0, r3 + 8001cd0: 3724 adds r7, #36 ; 0x24 + 8001cd2: 46bd mov sp, r7 + 8001cd4: bc80 pop {r7} + 8001cd6: 4770 bx lr -08001c74 : +08001cd8 : \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) { - 8001c74: b580 push {r7, lr} - 8001c76: b082 sub sp, #8 - 8001c78: af00 add r7, sp, #0 - 8001c7a: 6078 str r0, [r7, #4] + 8001cd8: b580 push {r7, lr} + 8001cda: b082 sub sp, #8 + 8001cdc: af00 add r7, sp, #0 + 8001cde: 6078 str r0, [r7, #4] if ((ticks - 1UL) > SysTick_LOAD_RELOAD_Msk) - 8001c7c: 687b ldr r3, [r7, #4] - 8001c7e: 3b01 subs r3, #1 - 8001c80: f1b3 7f80 cmp.w r3, #16777216 ; 0x1000000 - 8001c84: d301 bcc.n 8001c8a + 8001ce0: 687b ldr r3, [r7, #4] + 8001ce2: 3b01 subs r3, #1 + 8001ce4: f1b3 7f80 cmp.w r3, #16777216 ; 0x1000000 + 8001ce8: d301 bcc.n 8001cee { return (1UL); /* Reload value impossible */ - 8001c86: 2301 movs r3, #1 - 8001c88: e00f b.n 8001caa + 8001cea: 2301 movs r3, #1 + 8001cec: e00f b.n 8001d0e } SysTick->LOAD = (uint32_t)(ticks - 1UL); /* set reload register */ - 8001c8a: 4a0a ldr r2, [pc, #40] ; (8001cb4 ) - 8001c8c: 687b ldr r3, [r7, #4] - 8001c8e: 3b01 subs r3, #1 - 8001c90: 6053 str r3, [r2, #4] + 8001cee: 4a0a ldr r2, [pc, #40] ; (8001d18 ) + 8001cf0: 687b ldr r3, [r7, #4] + 8001cf2: 3b01 subs r3, #1 + 8001cf4: 6053 str r3, [r2, #4] NVIC_SetPriority (SysTick_IRQn, (1UL << __NVIC_PRIO_BITS) - 1UL); /* set Priority for Systick Interrupt */ - 8001c92: 210f movs r1, #15 - 8001c94: f04f 30ff mov.w r0, #4294967295 ; 0xffffffff - 8001c98: f7ff ff90 bl 8001bbc <__NVIC_SetPriority> + 8001cf6: 210f movs r1, #15 + 8001cf8: f04f 30ff mov.w r0, #4294967295 ; 0xffffffff + 8001cfc: f7ff ff90 bl 8001c20 <__NVIC_SetPriority> SysTick->VAL = 0UL; /* Load the SysTick Counter Value */ - 8001c9c: 4b05 ldr r3, [pc, #20] ; (8001cb4 ) - 8001c9e: 2200 movs r2, #0 - 8001ca0: 609a str r2, [r3, #8] + 8001d00: 4b05 ldr r3, [pc, #20] ; (8001d18 ) + 8001d02: 2200 movs r2, #0 + 8001d04: 609a str r2, [r3, #8] SysTick->CTRL = SysTick_CTRL_CLKSOURCE_Msk | - 8001ca2: 4b04 ldr r3, [pc, #16] ; (8001cb4 ) - 8001ca4: 2207 movs r2, #7 - 8001ca6: 601a str r2, [r3, #0] + 8001d06: 4b04 ldr r3, [pc, #16] ; (8001d18 ) + 8001d08: 2207 movs r2, #7 + 8001d0a: 601a str r2, [r3, #0] SysTick_CTRL_TICKINT_Msk | SysTick_CTRL_ENABLE_Msk; /* Enable SysTick IRQ and SysTick Timer */ return (0UL); /* Function successful */ - 8001ca8: 2300 movs r3, #0 + 8001d0c: 2300 movs r3, #0 } - 8001caa: 4618 mov r0, r3 - 8001cac: 3708 adds r7, #8 - 8001cae: 46bd mov sp, r7 - 8001cb0: bd80 pop {r7, pc} - 8001cb2: bf00 nop - 8001cb4: e000e010 .word 0xe000e010 + 8001d0e: 4618 mov r0, r3 + 8001d10: 3708 adds r7, #8 + 8001d12: 46bd mov sp, r7 + 8001d14: bd80 pop {r7, pc} + 8001d16: bf00 nop + 8001d18: e000e010 .word 0xe000e010 -08001cb8 : +08001d1c : * @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) { - 8001cb8: b580 push {r7, lr} - 8001cba: b082 sub sp, #8 - 8001cbc: af00 add r7, sp, #0 - 8001cbe: 6078 str r0, [r7, #4] + 8001d1c: b580 push {r7, lr} + 8001d1e: b082 sub sp, #8 + 8001d20: af00 add r7, sp, #0 + 8001d22: 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); - 8001cc0: 6878 ldr r0, [r7, #4] - 8001cc2: f7ff ff2d bl 8001b20 <__NVIC_SetPriorityGrouping> + 8001d24: 6878 ldr r0, [r7, #4] + 8001d26: f7ff ff2d bl 8001b84 <__NVIC_SetPriorityGrouping> } - 8001cc6: bf00 nop - 8001cc8: 3708 adds r7, #8 - 8001cca: 46bd mov sp, r7 - 8001ccc: bd80 pop {r7, pc} + 8001d2a: bf00 nop + 8001d2c: 3708 adds r7, #8 + 8001d2e: 46bd mov sp, r7 + 8001d30: bd80 pop {r7, pc} -08001cce : +08001d32 : * 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) { - 8001cce: b580 push {r7, lr} - 8001cd0: b086 sub sp, #24 - 8001cd2: af00 add r7, sp, #0 - 8001cd4: 4603 mov r3, r0 - 8001cd6: 60b9 str r1, [r7, #8] - 8001cd8: 607a str r2, [r7, #4] - 8001cda: 73fb strb r3, [r7, #15] + 8001d32: b580 push {r7, lr} + 8001d34: b086 sub sp, #24 + 8001d36: af00 add r7, sp, #0 + 8001d38: 4603 mov r3, r0 + 8001d3a: 60b9 str r1, [r7, #8] + 8001d3c: 607a str r2, [r7, #4] + 8001d3e: 73fb strb r3, [r7, #15] uint32_t prioritygroup = 0x00U; - 8001cdc: 2300 movs r3, #0 - 8001cde: 617b str r3, [r7, #20] + 8001d40: 2300 movs r3, #0 + 8001d42: 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(); - 8001ce0: f7ff ff42 bl 8001b68 <__NVIC_GetPriorityGrouping> - 8001ce4: 6178 str r0, [r7, #20] + 8001d44: f7ff ff42 bl 8001bcc <__NVIC_GetPriorityGrouping> + 8001d48: 6178 str r0, [r7, #20] NVIC_SetPriority(IRQn, NVIC_EncodePriority(prioritygroup, PreemptPriority, SubPriority)); - 8001ce6: 687a ldr r2, [r7, #4] - 8001ce8: 68b9 ldr r1, [r7, #8] - 8001cea: 6978 ldr r0, [r7, #20] - 8001cec: f7ff ff90 bl 8001c10 - 8001cf0: 4602 mov r2, r0 - 8001cf2: f997 300f ldrsb.w r3, [r7, #15] - 8001cf6: 4611 mov r1, r2 - 8001cf8: 4618 mov r0, r3 - 8001cfa: f7ff ff5f bl 8001bbc <__NVIC_SetPriority> + 8001d4a: 687a ldr r2, [r7, #4] + 8001d4c: 68b9 ldr r1, [r7, #8] + 8001d4e: 6978 ldr r0, [r7, #20] + 8001d50: f7ff ff90 bl 8001c74 + 8001d54: 4602 mov r2, r0 + 8001d56: f997 300f ldrsb.w r3, [r7, #15] + 8001d5a: 4611 mov r1, r2 + 8001d5c: 4618 mov r0, r3 + 8001d5e: f7ff ff5f bl 8001c20 <__NVIC_SetPriority> } - 8001cfe: bf00 nop - 8001d00: 3718 adds r7, #24 - 8001d02: 46bd mov sp, r7 - 8001d04: bd80 pop {r7, pc} + 8001d62: bf00 nop + 8001d64: 3718 adds r7, #24 + 8001d66: 46bd mov sp, r7 + 8001d68: bd80 pop {r7, pc} -08001d06 : +08001d6a : * This parameter can be an enumerator of IRQn_Type enumeration * (For the complete STM32 Devices IRQ Channels list, please refer to the appropriate CMSIS device file (stm32f10xxx.h)) * @retval None */ void HAL_NVIC_EnableIRQ(IRQn_Type IRQn) { - 8001d06: b580 push {r7, lr} - 8001d08: b082 sub sp, #8 - 8001d0a: af00 add r7, sp, #0 - 8001d0c: 4603 mov r3, r0 - 8001d0e: 71fb strb r3, [r7, #7] + 8001d6a: b580 push {r7, lr} + 8001d6c: b082 sub sp, #8 + 8001d6e: af00 add r7, sp, #0 + 8001d70: 4603 mov r3, r0 + 8001d72: 71fb strb r3, [r7, #7] /* Check the parameters */ assert_param(IS_NVIC_DEVICE_IRQ(IRQn)); /* Enable interrupt */ NVIC_EnableIRQ(IRQn); - 8001d10: f997 3007 ldrsb.w r3, [r7, #7] - 8001d14: 4618 mov r0, r3 - 8001d16: f7ff ff35 bl 8001b84 <__NVIC_EnableIRQ> + 8001d74: f997 3007 ldrsb.w r3, [r7, #7] + 8001d78: 4618 mov r0, r3 + 8001d7a: f7ff ff35 bl 8001be8 <__NVIC_EnableIRQ> } - 8001d1a: bf00 nop - 8001d1c: 3708 adds r7, #8 - 8001d1e: 46bd mov sp, r7 - 8001d20: bd80 pop {r7, pc} + 8001d7e: bf00 nop + 8001d80: 3708 adds r7, #8 + 8001d82: 46bd mov sp, r7 + 8001d84: bd80 pop {r7, pc} -08001d22 : +08001d86 : * @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) { - 8001d22: b580 push {r7, lr} - 8001d24: b082 sub sp, #8 - 8001d26: af00 add r7, sp, #0 - 8001d28: 6078 str r0, [r7, #4] + 8001d86: b580 push {r7, lr} + 8001d88: b082 sub sp, #8 + 8001d8a: af00 add r7, sp, #0 + 8001d8c: 6078 str r0, [r7, #4] return SysTick_Config(TicksNumb); - 8001d2a: 6878 ldr r0, [r7, #4] - 8001d2c: f7ff ffa2 bl 8001c74 - 8001d30: 4603 mov r3, r0 + 8001d8e: 6878 ldr r0, [r7, #4] + 8001d90: f7ff ffa2 bl 8001cd8 + 8001d94: 4603 mov r3, r0 } - 8001d32: 4618 mov r0, r3 - 8001d34: 3708 adds r7, #8 - 8001d36: 46bd mov sp, r7 - 8001d38: bd80 pop {r7, pc} + 8001d96: 4618 mov r0, r3 + 8001d98: 3708 adds r7, #8 + 8001d9a: 46bd mov sp, r7 + 8001d9c: bd80 pop {r7, pc} ... -08001d3c : +08001da0 : * @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) { - 8001d3c: b480 push {r7} - 8001d3e: b08b sub sp, #44 ; 0x2c - 8001d40: af00 add r7, sp, #0 - 8001d42: 6078 str r0, [r7, #4] - 8001d44: 6039 str r1, [r7, #0] + 8001da0: b480 push {r7} + 8001da2: b08b sub sp, #44 ; 0x2c + 8001da4: af00 add r7, sp, #0 + 8001da6: 6078 str r0, [r7, #4] + 8001da8: 6039 str r1, [r7, #0] uint32_t position = 0x00u; - 8001d46: 2300 movs r3, #0 - 8001d48: 627b str r3, [r7, #36] ; 0x24 + 8001daa: 2300 movs r3, #0 + 8001dac: 627b str r3, [r7, #36] ; 0x24 uint32_t ioposition; uint32_t iocurrent; uint32_t temp; uint32_t config = 0x00u; - 8001d4a: 2300 movs r3, #0 - 8001d4c: 623b str r3, [r7, #32] + 8001dae: 2300 movs r3, #0 + 8001db0: 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) - 8001d4e: e179 b.n 8002044 + 8001db2: e179 b.n 80020a8 { /* Get the IO position */ ioposition = (0x01uL << position); - 8001d50: 2201 movs r2, #1 - 8001d52: 6a7b ldr r3, [r7, #36] ; 0x24 - 8001d54: fa02 f303 lsl.w r3, r2, r3 - 8001d58: 61fb str r3, [r7, #28] + 8001db4: 2201 movs r2, #1 + 8001db6: 6a7b ldr r3, [r7, #36] ; 0x24 + 8001db8: fa02 f303 lsl.w r3, r2, r3 + 8001dbc: 61fb str r3, [r7, #28] /* Get the current IO position */ iocurrent = (uint32_t)(GPIO_Init->Pin) & ioposition; - 8001d5a: 683b ldr r3, [r7, #0] - 8001d5c: 681b ldr r3, [r3, #0] - 8001d5e: 69fa ldr r2, [r7, #28] - 8001d60: 4013 ands r3, r2 - 8001d62: 61bb str r3, [r7, #24] + 8001dbe: 683b ldr r3, [r7, #0] + 8001dc0: 681b ldr r3, [r3, #0] + 8001dc2: 69fa ldr r2, [r7, #28] + 8001dc4: 4013 ands r3, r2 + 8001dc6: 61bb str r3, [r7, #24] if (iocurrent == ioposition) - 8001d64: 69ba ldr r2, [r7, #24] - 8001d66: 69fb ldr r3, [r7, #28] - 8001d68: 429a cmp r2, r3 - 8001d6a: f040 8168 bne.w 800203e + 8001dc8: 69ba ldr r2, [r7, #24] + 8001dca: 69fb ldr r3, [r7, #28] + 8001dcc: 429a cmp r2, r3 + 8001dce: f040 8168 bne.w 80020a2 { /* 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) - 8001d6e: 683b ldr r3, [r7, #0] - 8001d70: 685b ldr r3, [r3, #4] - 8001d72: 4aa0 ldr r2, [pc, #640] ; (8001ff4 ) - 8001d74: 4293 cmp r3, r2 - 8001d76: d05e beq.n 8001e36 - 8001d78: 4a9e ldr r2, [pc, #632] ; (8001ff4 ) - 8001d7a: 4293 cmp r3, r2 - 8001d7c: d875 bhi.n 8001e6a - 8001d7e: 4a9e ldr r2, [pc, #632] ; (8001ff8 ) - 8001d80: 4293 cmp r3, r2 - 8001d82: d058 beq.n 8001e36 - 8001d84: 4a9c ldr r2, [pc, #624] ; (8001ff8 ) - 8001d86: 4293 cmp r3, r2 - 8001d88: d86f bhi.n 8001e6a - 8001d8a: 4a9c ldr r2, [pc, #624] ; (8001ffc ) - 8001d8c: 4293 cmp r3, r2 - 8001d8e: d052 beq.n 8001e36 - 8001d90: 4a9a ldr r2, [pc, #616] ; (8001ffc ) - 8001d92: 4293 cmp r3, r2 - 8001d94: d869 bhi.n 8001e6a - 8001d96: 4a9a ldr r2, [pc, #616] ; (8002000 ) - 8001d98: 4293 cmp r3, r2 - 8001d9a: d04c beq.n 8001e36 - 8001d9c: 4a98 ldr r2, [pc, #608] ; (8002000 ) - 8001d9e: 4293 cmp r3, r2 - 8001da0: d863 bhi.n 8001e6a - 8001da2: 4a98 ldr r2, [pc, #608] ; (8002004 ) - 8001da4: 4293 cmp r3, r2 - 8001da6: d046 beq.n 8001e36 - 8001da8: 4a96 ldr r2, [pc, #600] ; (8002004 ) - 8001daa: 4293 cmp r3, r2 - 8001dac: d85d bhi.n 8001e6a - 8001dae: 2b12 cmp r3, #18 - 8001db0: d82a bhi.n 8001e08 - 8001db2: 2b12 cmp r3, #18 - 8001db4: d859 bhi.n 8001e6a - 8001db6: a201 add r2, pc, #4 ; (adr r2, 8001dbc ) - 8001db8: f852 f023 ldr.w pc, [r2, r3, lsl #2] - 8001dbc: 08001e37 .word 0x08001e37 - 8001dc0: 08001e11 .word 0x08001e11 - 8001dc4: 08001e23 .word 0x08001e23 - 8001dc8: 08001e65 .word 0x08001e65 - 8001dcc: 08001e6b .word 0x08001e6b - 8001dd0: 08001e6b .word 0x08001e6b - 8001dd4: 08001e6b .word 0x08001e6b - 8001dd8: 08001e6b .word 0x08001e6b - 8001ddc: 08001e6b .word 0x08001e6b - 8001de0: 08001e6b .word 0x08001e6b - 8001de4: 08001e6b .word 0x08001e6b - 8001de8: 08001e6b .word 0x08001e6b - 8001dec: 08001e6b .word 0x08001e6b - 8001df0: 08001e6b .word 0x08001e6b - 8001df4: 08001e6b .word 0x08001e6b - 8001df8: 08001e6b .word 0x08001e6b - 8001dfc: 08001e6b .word 0x08001e6b - 8001e00: 08001e19 .word 0x08001e19 - 8001e04: 08001e2d .word 0x08001e2d - 8001e08: 4a7f ldr r2, [pc, #508] ; (8002008 ) - 8001e0a: 4293 cmp r3, r2 - 8001e0c: d013 beq.n 8001e36 + 8001dd2: 683b ldr r3, [r7, #0] + 8001dd4: 685b ldr r3, [r3, #4] + 8001dd6: 4aa0 ldr r2, [pc, #640] ; (8002058 ) + 8001dd8: 4293 cmp r3, r2 + 8001dda: d05e beq.n 8001e9a + 8001ddc: 4a9e ldr r2, [pc, #632] ; (8002058 ) + 8001dde: 4293 cmp r3, r2 + 8001de0: d875 bhi.n 8001ece + 8001de2: 4a9e ldr r2, [pc, #632] ; (800205c ) + 8001de4: 4293 cmp r3, r2 + 8001de6: d058 beq.n 8001e9a + 8001de8: 4a9c ldr r2, [pc, #624] ; (800205c ) + 8001dea: 4293 cmp r3, r2 + 8001dec: d86f bhi.n 8001ece + 8001dee: 4a9c ldr r2, [pc, #624] ; (8002060 ) + 8001df0: 4293 cmp r3, r2 + 8001df2: d052 beq.n 8001e9a + 8001df4: 4a9a ldr r2, [pc, #616] ; (8002060 ) + 8001df6: 4293 cmp r3, r2 + 8001df8: d869 bhi.n 8001ece + 8001dfa: 4a9a ldr r2, [pc, #616] ; (8002064 ) + 8001dfc: 4293 cmp r3, r2 + 8001dfe: d04c beq.n 8001e9a + 8001e00: 4a98 ldr r2, [pc, #608] ; (8002064 ) + 8001e02: 4293 cmp r3, r2 + 8001e04: d863 bhi.n 8001ece + 8001e06: 4a98 ldr r2, [pc, #608] ; (8002068 ) + 8001e08: 4293 cmp r3, r2 + 8001e0a: d046 beq.n 8001e9a + 8001e0c: 4a96 ldr r2, [pc, #600] ; (8002068 ) + 8001e0e: 4293 cmp r3, r2 + 8001e10: d85d bhi.n 8001ece + 8001e12: 2b12 cmp r3, #18 + 8001e14: d82a bhi.n 8001e6c + 8001e16: 2b12 cmp r3, #18 + 8001e18: d859 bhi.n 8001ece + 8001e1a: a201 add r2, pc, #4 ; (adr r2, 8001e20 ) + 8001e1c: f852 f023 ldr.w pc, [r2, r3, lsl #2] + 8001e20: 08001e9b .word 0x08001e9b + 8001e24: 08001e75 .word 0x08001e75 + 8001e28: 08001e87 .word 0x08001e87 + 8001e2c: 08001ec9 .word 0x08001ec9 + 8001e30: 08001ecf .word 0x08001ecf + 8001e34: 08001ecf .word 0x08001ecf + 8001e38: 08001ecf .word 0x08001ecf + 8001e3c: 08001ecf .word 0x08001ecf + 8001e40: 08001ecf .word 0x08001ecf + 8001e44: 08001ecf .word 0x08001ecf + 8001e48: 08001ecf .word 0x08001ecf + 8001e4c: 08001ecf .word 0x08001ecf + 8001e50: 08001ecf .word 0x08001ecf + 8001e54: 08001ecf .word 0x08001ecf + 8001e58: 08001ecf .word 0x08001ecf + 8001e5c: 08001ecf .word 0x08001ecf + 8001e60: 08001ecf .word 0x08001ecf + 8001e64: 08001e7d .word 0x08001e7d + 8001e68: 08001e91 .word 0x08001e91 + 8001e6c: 4a7f ldr r2, [pc, #508] ; (800206c ) + 8001e6e: 4293 cmp r3, r2 + 8001e70: d013 beq.n 8001e9a config = GPIO_CR_MODE_INPUT + GPIO_CR_CNF_ANALOG; break; /* Parameters are checked with assert_param */ default: break; - 8001e0e: e02c b.n 8001e6a + 8001e72: e02c b.n 8001ece config = GPIO_Init->Speed + GPIO_CR_CNF_GP_OUTPUT_PP; - 8001e10: 683b ldr r3, [r7, #0] - 8001e12: 68db ldr r3, [r3, #12] - 8001e14: 623b str r3, [r7, #32] + 8001e74: 683b ldr r3, [r7, #0] + 8001e76: 68db ldr r3, [r3, #12] + 8001e78: 623b str r3, [r7, #32] break; - 8001e16: e029 b.n 8001e6c + 8001e7a: e029 b.n 8001ed0 config = GPIO_Init->Speed + GPIO_CR_CNF_GP_OUTPUT_OD; - 8001e18: 683b ldr r3, [r7, #0] - 8001e1a: 68db ldr r3, [r3, #12] - 8001e1c: 3304 adds r3, #4 - 8001e1e: 623b str r3, [r7, #32] + 8001e7c: 683b ldr r3, [r7, #0] + 8001e7e: 68db ldr r3, [r3, #12] + 8001e80: 3304 adds r3, #4 + 8001e82: 623b str r3, [r7, #32] break; - 8001e20: e024 b.n 8001e6c + 8001e84: e024 b.n 8001ed0 config = GPIO_Init->Speed + GPIO_CR_CNF_AF_OUTPUT_PP; - 8001e22: 683b ldr r3, [r7, #0] - 8001e24: 68db ldr r3, [r3, #12] - 8001e26: 3308 adds r3, #8 - 8001e28: 623b str r3, [r7, #32] + 8001e86: 683b ldr r3, [r7, #0] + 8001e88: 68db ldr r3, [r3, #12] + 8001e8a: 3308 adds r3, #8 + 8001e8c: 623b str r3, [r7, #32] break; - 8001e2a: e01f b.n 8001e6c + 8001e8e: e01f b.n 8001ed0 config = GPIO_Init->Speed + GPIO_CR_CNF_AF_OUTPUT_OD; - 8001e2c: 683b ldr r3, [r7, #0] - 8001e2e: 68db ldr r3, [r3, #12] - 8001e30: 330c adds r3, #12 - 8001e32: 623b str r3, [r7, #32] + 8001e90: 683b ldr r3, [r7, #0] + 8001e92: 68db ldr r3, [r3, #12] + 8001e94: 330c adds r3, #12 + 8001e96: 623b str r3, [r7, #32] break; - 8001e34: e01a b.n 8001e6c + 8001e98: e01a b.n 8001ed0 if (GPIO_Init->Pull == GPIO_NOPULL) - 8001e36: 683b ldr r3, [r7, #0] - 8001e38: 689b ldr r3, [r3, #8] - 8001e3a: 2b00 cmp r3, #0 - 8001e3c: d102 bne.n 8001e44 + 8001e9a: 683b ldr r3, [r7, #0] + 8001e9c: 689b ldr r3, [r3, #8] + 8001e9e: 2b00 cmp r3, #0 + 8001ea0: d102 bne.n 8001ea8 config = GPIO_CR_MODE_INPUT + GPIO_CR_CNF_INPUT_FLOATING; - 8001e3e: 2304 movs r3, #4 - 8001e40: 623b str r3, [r7, #32] + 8001ea2: 2304 movs r3, #4 + 8001ea4: 623b str r3, [r7, #32] break; - 8001e42: e013 b.n 8001e6c + 8001ea6: e013 b.n 8001ed0 else if (GPIO_Init->Pull == GPIO_PULLUP) - 8001e44: 683b ldr r3, [r7, #0] - 8001e46: 689b ldr r3, [r3, #8] - 8001e48: 2b01 cmp r3, #1 - 8001e4a: d105 bne.n 8001e58 + 8001ea8: 683b ldr r3, [r7, #0] + 8001eaa: 689b ldr r3, [r3, #8] + 8001eac: 2b01 cmp r3, #1 + 8001eae: d105 bne.n 8001ebc config = GPIO_CR_MODE_INPUT + GPIO_CR_CNF_INPUT_PU_PD; - 8001e4c: 2308 movs r3, #8 - 8001e4e: 623b str r3, [r7, #32] + 8001eb0: 2308 movs r3, #8 + 8001eb2: 623b str r3, [r7, #32] GPIOx->BSRR = ioposition; - 8001e50: 687b ldr r3, [r7, #4] - 8001e52: 69fa ldr r2, [r7, #28] - 8001e54: 611a str r2, [r3, #16] + 8001eb4: 687b ldr r3, [r7, #4] + 8001eb6: 69fa ldr r2, [r7, #28] + 8001eb8: 611a str r2, [r3, #16] break; - 8001e56: e009 b.n 8001e6c + 8001eba: e009 b.n 8001ed0 config = GPIO_CR_MODE_INPUT + GPIO_CR_CNF_INPUT_PU_PD; - 8001e58: 2308 movs r3, #8 - 8001e5a: 623b str r3, [r7, #32] + 8001ebc: 2308 movs r3, #8 + 8001ebe: 623b str r3, [r7, #32] GPIOx->BRR = ioposition; - 8001e5c: 687b ldr r3, [r7, #4] - 8001e5e: 69fa ldr r2, [r7, #28] - 8001e60: 615a str r2, [r3, #20] + 8001ec0: 687b ldr r3, [r7, #4] + 8001ec2: 69fa ldr r2, [r7, #28] + 8001ec4: 615a str r2, [r3, #20] break; - 8001e62: e003 b.n 8001e6c + 8001ec6: e003 b.n 8001ed0 config = GPIO_CR_MODE_INPUT + GPIO_CR_CNF_ANALOG; - 8001e64: 2300 movs r3, #0 - 8001e66: 623b str r3, [r7, #32] + 8001ec8: 2300 movs r3, #0 + 8001eca: 623b str r3, [r7, #32] break; - 8001e68: e000 b.n 8001e6c + 8001ecc: e000 b.n 8001ed0 break; - 8001e6a: bf00 nop + 8001ece: 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; - 8001e6c: 69bb ldr r3, [r7, #24] - 8001e6e: 2bff cmp r3, #255 ; 0xff - 8001e70: d801 bhi.n 8001e76 - 8001e72: 687b ldr r3, [r7, #4] - 8001e74: e001 b.n 8001e7a - 8001e76: 687b ldr r3, [r7, #4] - 8001e78: 3304 adds r3, #4 - 8001e7a: 617b str r3, [r7, #20] + 8001ed0: 69bb ldr r3, [r7, #24] + 8001ed2: 2bff cmp r3, #255 ; 0xff + 8001ed4: d801 bhi.n 8001eda + 8001ed6: 687b ldr r3, [r7, #4] + 8001ed8: e001 b.n 8001ede + 8001eda: 687b ldr r3, [r7, #4] + 8001edc: 3304 adds r3, #4 + 8001ede: 617b str r3, [r7, #20] registeroffset = (iocurrent < GPIO_PIN_8) ? (position << 2u) : ((position - 8u) << 2u); - 8001e7c: 69bb ldr r3, [r7, #24] - 8001e7e: 2bff cmp r3, #255 ; 0xff - 8001e80: d802 bhi.n 8001e88 - 8001e82: 6a7b ldr r3, [r7, #36] ; 0x24 - 8001e84: 009b lsls r3, r3, #2 - 8001e86: e002 b.n 8001e8e - 8001e88: 6a7b ldr r3, [r7, #36] ; 0x24 - 8001e8a: 3b08 subs r3, #8 - 8001e8c: 009b lsls r3, r3, #2 - 8001e8e: 613b str r3, [r7, #16] + 8001ee0: 69bb ldr r3, [r7, #24] + 8001ee2: 2bff cmp r3, #255 ; 0xff + 8001ee4: d802 bhi.n 8001eec + 8001ee6: 6a7b ldr r3, [r7, #36] ; 0x24 + 8001ee8: 009b lsls r3, r3, #2 + 8001eea: e002 b.n 8001ef2 + 8001eec: 6a7b ldr r3, [r7, #36] ; 0x24 + 8001eee: 3b08 subs r3, #8 + 8001ef0: 009b lsls r3, r3, #2 + 8001ef2: 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)); - 8001e90: 697b ldr r3, [r7, #20] - 8001e92: 681a ldr r2, [r3, #0] - 8001e94: 210f movs r1, #15 - 8001e96: 693b ldr r3, [r7, #16] - 8001e98: fa01 f303 lsl.w r3, r1, r3 - 8001e9c: 43db mvns r3, r3 - 8001e9e: 401a ands r2, r3 - 8001ea0: 6a39 ldr r1, [r7, #32] - 8001ea2: 693b ldr r3, [r7, #16] - 8001ea4: fa01 f303 lsl.w r3, r1, r3 - 8001ea8: 431a orrs r2, r3 - 8001eaa: 697b ldr r3, [r7, #20] - 8001eac: 601a str r2, [r3, #0] + 8001ef4: 697b ldr r3, [r7, #20] + 8001ef6: 681a ldr r2, [r3, #0] + 8001ef8: 210f movs r1, #15 + 8001efa: 693b ldr r3, [r7, #16] + 8001efc: fa01 f303 lsl.w r3, r1, r3 + 8001f00: 43db mvns r3, r3 + 8001f02: 401a ands r2, r3 + 8001f04: 6a39 ldr r1, [r7, #32] + 8001f06: 693b ldr r3, [r7, #16] + 8001f08: fa01 f303 lsl.w r3, r1, r3 + 8001f0c: 431a orrs r2, r3 + 8001f0e: 697b ldr r3, [r7, #20] + 8001f10: 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) - 8001eae: 683b ldr r3, [r7, #0] - 8001eb0: 685b ldr r3, [r3, #4] - 8001eb2: f003 5380 and.w r3, r3, #268435456 ; 0x10000000 - 8001eb6: 2b00 cmp r3, #0 - 8001eb8: f000 80c1 beq.w 800203e + 8001f12: 683b ldr r3, [r7, #0] + 8001f14: 685b ldr r3, [r3, #4] + 8001f16: f003 5380 and.w r3, r3, #268435456 ; 0x10000000 + 8001f1a: 2b00 cmp r3, #0 + 8001f1c: f000 80c1 beq.w 80020a2 { /* Enable AFIO Clock */ __HAL_RCC_AFIO_CLK_ENABLE(); - 8001ebc: 4b53 ldr r3, [pc, #332] ; (800200c ) - 8001ebe: 699b ldr r3, [r3, #24] - 8001ec0: 4a52 ldr r2, [pc, #328] ; (800200c ) - 8001ec2: f043 0301 orr.w r3, r3, #1 - 8001ec6: 6193 str r3, [r2, #24] - 8001ec8: 4b50 ldr r3, [pc, #320] ; (800200c ) - 8001eca: 699b ldr r3, [r3, #24] - 8001ecc: f003 0301 and.w r3, r3, #1 - 8001ed0: 60bb str r3, [r7, #8] - 8001ed2: 68bb ldr r3, [r7, #8] + 8001f20: 4b53 ldr r3, [pc, #332] ; (8002070 ) + 8001f22: 699b ldr r3, [r3, #24] + 8001f24: 4a52 ldr r2, [pc, #328] ; (8002070 ) + 8001f26: f043 0301 orr.w r3, r3, #1 + 8001f2a: 6193 str r3, [r2, #24] + 8001f2c: 4b50 ldr r3, [pc, #320] ; (8002070 ) + 8001f2e: 699b ldr r3, [r3, #24] + 8001f30: f003 0301 and.w r3, r3, #1 + 8001f34: 60bb str r3, [r7, #8] + 8001f36: 68bb ldr r3, [r7, #8] temp = AFIO->EXTICR[position >> 2u]; - 8001ed4: 4a4e ldr r2, [pc, #312] ; (8002010 ) - 8001ed6: 6a7b ldr r3, [r7, #36] ; 0x24 - 8001ed8: 089b lsrs r3, r3, #2 - 8001eda: 3302 adds r3, #2 - 8001edc: f852 3023 ldr.w r3, [r2, r3, lsl #2] - 8001ee0: 60fb str r3, [r7, #12] + 8001f38: 4a4e ldr r2, [pc, #312] ; (8002074 ) + 8001f3a: 6a7b ldr r3, [r7, #36] ; 0x24 + 8001f3c: 089b lsrs r3, r3, #2 + 8001f3e: 3302 adds r3, #2 + 8001f40: f852 3023 ldr.w r3, [r2, r3, lsl #2] + 8001f44: 60fb str r3, [r7, #12] CLEAR_BIT(temp, (0x0Fu) << (4u * (position & 0x03u))); - 8001ee2: 6a7b ldr r3, [r7, #36] ; 0x24 - 8001ee4: f003 0303 and.w r3, r3, #3 - 8001ee8: 009b lsls r3, r3, #2 - 8001eea: 220f movs r2, #15 - 8001eec: fa02 f303 lsl.w r3, r2, r3 - 8001ef0: 43db mvns r3, r3 - 8001ef2: 68fa ldr r2, [r7, #12] - 8001ef4: 4013 ands r3, r2 - 8001ef6: 60fb str r3, [r7, #12] + 8001f46: 6a7b ldr r3, [r7, #36] ; 0x24 + 8001f48: f003 0303 and.w r3, r3, #3 + 8001f4c: 009b lsls r3, r3, #2 + 8001f4e: 220f movs r2, #15 + 8001f50: fa02 f303 lsl.w r3, r2, r3 + 8001f54: 43db mvns r3, r3 + 8001f56: 68fa ldr r2, [r7, #12] + 8001f58: 4013 ands r3, r2 + 8001f5a: 60fb str r3, [r7, #12] SET_BIT(temp, (GPIO_GET_INDEX(GPIOx)) << (4u * (position & 0x03u))); - 8001ef8: 687b ldr r3, [r7, #4] - 8001efa: 4a46 ldr r2, [pc, #280] ; (8002014 ) - 8001efc: 4293 cmp r3, r2 - 8001efe: d01f beq.n 8001f40 - 8001f00: 687b ldr r3, [r7, #4] - 8001f02: 4a45 ldr r2, [pc, #276] ; (8002018 ) - 8001f04: 4293 cmp r3, r2 - 8001f06: d019 beq.n 8001f3c - 8001f08: 687b ldr r3, [r7, #4] - 8001f0a: 4a44 ldr r2, [pc, #272] ; (800201c ) - 8001f0c: 4293 cmp r3, r2 - 8001f0e: d013 beq.n 8001f38 - 8001f10: 687b ldr r3, [r7, #4] - 8001f12: 4a43 ldr r2, [pc, #268] ; (8002020 ) - 8001f14: 4293 cmp r3, r2 - 8001f16: d00d beq.n 8001f34 - 8001f18: 687b ldr r3, [r7, #4] - 8001f1a: 4a42 ldr r2, [pc, #264] ; (8002024 ) - 8001f1c: 4293 cmp r3, r2 - 8001f1e: d007 beq.n 8001f30 - 8001f20: 687b ldr r3, [r7, #4] - 8001f22: 4a41 ldr r2, [pc, #260] ; (8002028 ) - 8001f24: 4293 cmp r3, r2 - 8001f26: d101 bne.n 8001f2c - 8001f28: 2305 movs r3, #5 - 8001f2a: e00a b.n 8001f42 - 8001f2c: 2306 movs r3, #6 - 8001f2e: e008 b.n 8001f42 - 8001f30: 2304 movs r3, #4 - 8001f32: e006 b.n 8001f42 - 8001f34: 2303 movs r3, #3 - 8001f36: e004 b.n 8001f42 - 8001f38: 2302 movs r3, #2 - 8001f3a: e002 b.n 8001f42 - 8001f3c: 2301 movs r3, #1 - 8001f3e: e000 b.n 8001f42 - 8001f40: 2300 movs r3, #0 - 8001f42: 6a7a ldr r2, [r7, #36] ; 0x24 - 8001f44: f002 0203 and.w r2, r2, #3 - 8001f48: 0092 lsls r2, r2, #2 - 8001f4a: 4093 lsls r3, r2 - 8001f4c: 68fa ldr r2, [r7, #12] - 8001f4e: 4313 orrs r3, r2 - 8001f50: 60fb str r3, [r7, #12] + 8001f5c: 687b ldr r3, [r7, #4] + 8001f5e: 4a46 ldr r2, [pc, #280] ; (8002078 ) + 8001f60: 4293 cmp r3, r2 + 8001f62: d01f beq.n 8001fa4 + 8001f64: 687b ldr r3, [r7, #4] + 8001f66: 4a45 ldr r2, [pc, #276] ; (800207c ) + 8001f68: 4293 cmp r3, r2 + 8001f6a: d019 beq.n 8001fa0 + 8001f6c: 687b ldr r3, [r7, #4] + 8001f6e: 4a44 ldr r2, [pc, #272] ; (8002080 ) + 8001f70: 4293 cmp r3, r2 + 8001f72: d013 beq.n 8001f9c + 8001f74: 687b ldr r3, [r7, #4] + 8001f76: 4a43 ldr r2, [pc, #268] ; (8002084 ) + 8001f78: 4293 cmp r3, r2 + 8001f7a: d00d beq.n 8001f98 + 8001f7c: 687b ldr r3, [r7, #4] + 8001f7e: 4a42 ldr r2, [pc, #264] ; (8002088 ) + 8001f80: 4293 cmp r3, r2 + 8001f82: d007 beq.n 8001f94 + 8001f84: 687b ldr r3, [r7, #4] + 8001f86: 4a41 ldr r2, [pc, #260] ; (800208c ) + 8001f88: 4293 cmp r3, r2 + 8001f8a: d101 bne.n 8001f90 + 8001f8c: 2305 movs r3, #5 + 8001f8e: e00a b.n 8001fa6 + 8001f90: 2306 movs r3, #6 + 8001f92: e008 b.n 8001fa6 + 8001f94: 2304 movs r3, #4 + 8001f96: e006 b.n 8001fa6 + 8001f98: 2303 movs r3, #3 + 8001f9a: e004 b.n 8001fa6 + 8001f9c: 2302 movs r3, #2 + 8001f9e: e002 b.n 8001fa6 + 8001fa0: 2301 movs r3, #1 + 8001fa2: e000 b.n 8001fa6 + 8001fa4: 2300 movs r3, #0 + 8001fa6: 6a7a ldr r2, [r7, #36] ; 0x24 + 8001fa8: f002 0203 and.w r2, r2, #3 + 8001fac: 0092 lsls r2, r2, #2 + 8001fae: 4093 lsls r3, r2 + 8001fb0: 68fa ldr r2, [r7, #12] + 8001fb2: 4313 orrs r3, r2 + 8001fb4: 60fb str r3, [r7, #12] AFIO->EXTICR[position >> 2u] = temp; - 8001f52: 492f ldr r1, [pc, #188] ; (8002010 ) - 8001f54: 6a7b ldr r3, [r7, #36] ; 0x24 - 8001f56: 089b lsrs r3, r3, #2 - 8001f58: 3302 adds r3, #2 - 8001f5a: 68fa ldr r2, [r7, #12] - 8001f5c: f841 2023 str.w r2, [r1, r3, lsl #2] + 8001fb6: 492f ldr r1, [pc, #188] ; (8002074 ) + 8001fb8: 6a7b ldr r3, [r7, #36] ; 0x24 + 8001fba: 089b lsrs r3, r3, #2 + 8001fbc: 3302 adds r3, #2 + 8001fbe: 68fa ldr r2, [r7, #12] + 8001fc0: f841 2023 str.w r2, [r1, r3, lsl #2] /* Configure the interrupt mask */ if ((GPIO_Init->Mode & GPIO_MODE_IT) == GPIO_MODE_IT) - 8001f60: 683b ldr r3, [r7, #0] - 8001f62: 685b ldr r3, [r3, #4] - 8001f64: f403 3380 and.w r3, r3, #65536 ; 0x10000 - 8001f68: 2b00 cmp r3, #0 - 8001f6a: d006 beq.n 8001f7a + 8001fc4: 683b ldr r3, [r7, #0] + 8001fc6: 685b ldr r3, [r3, #4] + 8001fc8: f403 3380 and.w r3, r3, #65536 ; 0x10000 + 8001fcc: 2b00 cmp r3, #0 + 8001fce: d006 beq.n 8001fde { SET_BIT(EXTI->IMR, iocurrent); - 8001f6c: 4b2f ldr r3, [pc, #188] ; (800202c ) - 8001f6e: 681a ldr r2, [r3, #0] - 8001f70: 492e ldr r1, [pc, #184] ; (800202c ) - 8001f72: 69bb ldr r3, [r7, #24] - 8001f74: 4313 orrs r3, r2 - 8001f76: 600b str r3, [r1, #0] - 8001f78: e006 b.n 8001f88 + 8001fd0: 4b2f ldr r3, [pc, #188] ; (8002090 ) + 8001fd2: 681a ldr r2, [r3, #0] + 8001fd4: 492e ldr r1, [pc, #184] ; (8002090 ) + 8001fd6: 69bb ldr r3, [r7, #24] + 8001fd8: 4313 orrs r3, r2 + 8001fda: 600b str r3, [r1, #0] + 8001fdc: e006 b.n 8001fec } else { CLEAR_BIT(EXTI->IMR, iocurrent); - 8001f7a: 4b2c ldr r3, [pc, #176] ; (800202c ) - 8001f7c: 681a ldr r2, [r3, #0] - 8001f7e: 69bb ldr r3, [r7, #24] - 8001f80: 43db mvns r3, r3 - 8001f82: 492a ldr r1, [pc, #168] ; (800202c ) - 8001f84: 4013 ands r3, r2 - 8001f86: 600b str r3, [r1, #0] + 8001fde: 4b2c ldr r3, [pc, #176] ; (8002090 ) + 8001fe0: 681a ldr r2, [r3, #0] + 8001fe2: 69bb ldr r3, [r7, #24] + 8001fe4: 43db mvns r3, r3 + 8001fe6: 492a ldr r1, [pc, #168] ; (8002090 ) + 8001fe8: 4013 ands r3, r2 + 8001fea: 600b str r3, [r1, #0] } /* Configure the event mask */ if ((GPIO_Init->Mode & GPIO_MODE_EVT) == GPIO_MODE_EVT) - 8001f88: 683b ldr r3, [r7, #0] - 8001f8a: 685b ldr r3, [r3, #4] - 8001f8c: f403 3300 and.w r3, r3, #131072 ; 0x20000 - 8001f90: 2b00 cmp r3, #0 - 8001f92: d006 beq.n 8001fa2 + 8001fec: 683b ldr r3, [r7, #0] + 8001fee: 685b ldr r3, [r3, #4] + 8001ff0: f403 3300 and.w r3, r3, #131072 ; 0x20000 + 8001ff4: 2b00 cmp r3, #0 + 8001ff6: d006 beq.n 8002006 { SET_BIT(EXTI->EMR, iocurrent); - 8001f94: 4b25 ldr r3, [pc, #148] ; (800202c ) - 8001f96: 685a ldr r2, [r3, #4] - 8001f98: 4924 ldr r1, [pc, #144] ; (800202c ) - 8001f9a: 69bb ldr r3, [r7, #24] - 8001f9c: 4313 orrs r3, r2 - 8001f9e: 604b str r3, [r1, #4] - 8001fa0: e006 b.n 8001fb0 + 8001ff8: 4b25 ldr r3, [pc, #148] ; (8002090 ) + 8001ffa: 685a ldr r2, [r3, #4] + 8001ffc: 4924 ldr r1, [pc, #144] ; (8002090 ) + 8001ffe: 69bb ldr r3, [r7, #24] + 8002000: 4313 orrs r3, r2 + 8002002: 604b str r3, [r1, #4] + 8002004: e006 b.n 8002014 } else { CLEAR_BIT(EXTI->EMR, iocurrent); - 8001fa2: 4b22 ldr r3, [pc, #136] ; (800202c ) - 8001fa4: 685a ldr r2, [r3, #4] - 8001fa6: 69bb ldr r3, [r7, #24] - 8001fa8: 43db mvns r3, r3 - 8001faa: 4920 ldr r1, [pc, #128] ; (800202c ) - 8001fac: 4013 ands r3, r2 - 8001fae: 604b str r3, [r1, #4] + 8002006: 4b22 ldr r3, [pc, #136] ; (8002090 ) + 8002008: 685a ldr r2, [r3, #4] + 800200a: 69bb ldr r3, [r7, #24] + 800200c: 43db mvns r3, r3 + 800200e: 4920 ldr r1, [pc, #128] ; (8002090 ) + 8002010: 4013 ands r3, r2 + 8002012: 604b str r3, [r1, #4] } /* Enable or disable the rising trigger */ if ((GPIO_Init->Mode & RISING_EDGE) == RISING_EDGE) - 8001fb0: 683b ldr r3, [r7, #0] - 8001fb2: 685b ldr r3, [r3, #4] - 8001fb4: f403 1380 and.w r3, r3, #1048576 ; 0x100000 - 8001fb8: 2b00 cmp r3, #0 - 8001fba: d006 beq.n 8001fca + 8002014: 683b ldr r3, [r7, #0] + 8002016: 685b ldr r3, [r3, #4] + 8002018: f403 1380 and.w r3, r3, #1048576 ; 0x100000 + 800201c: 2b00 cmp r3, #0 + 800201e: d006 beq.n 800202e { SET_BIT(EXTI->RTSR, iocurrent); - 8001fbc: 4b1b ldr r3, [pc, #108] ; (800202c ) - 8001fbe: 689a ldr r2, [r3, #8] - 8001fc0: 491a ldr r1, [pc, #104] ; (800202c ) - 8001fc2: 69bb ldr r3, [r7, #24] - 8001fc4: 4313 orrs r3, r2 - 8001fc6: 608b str r3, [r1, #8] - 8001fc8: e006 b.n 8001fd8 + 8002020: 4b1b ldr r3, [pc, #108] ; (8002090 ) + 8002022: 689a ldr r2, [r3, #8] + 8002024: 491a ldr r1, [pc, #104] ; (8002090 ) + 8002026: 69bb ldr r3, [r7, #24] + 8002028: 4313 orrs r3, r2 + 800202a: 608b str r3, [r1, #8] + 800202c: e006 b.n 800203c } else { CLEAR_BIT(EXTI->RTSR, iocurrent); - 8001fca: 4b18 ldr r3, [pc, #96] ; (800202c ) - 8001fcc: 689a ldr r2, [r3, #8] - 8001fce: 69bb ldr r3, [r7, #24] - 8001fd0: 43db mvns r3, r3 - 8001fd2: 4916 ldr r1, [pc, #88] ; (800202c ) - 8001fd4: 4013 ands r3, r2 - 8001fd6: 608b str r3, [r1, #8] + 800202e: 4b18 ldr r3, [pc, #96] ; (8002090 ) + 8002030: 689a ldr r2, [r3, #8] + 8002032: 69bb ldr r3, [r7, #24] + 8002034: 43db mvns r3, r3 + 8002036: 4916 ldr r1, [pc, #88] ; (8002090 ) + 8002038: 4013 ands r3, r2 + 800203a: 608b str r3, [r1, #8] } /* Enable or disable the falling trigger */ if ((GPIO_Init->Mode & FALLING_EDGE) == FALLING_EDGE) - 8001fd8: 683b ldr r3, [r7, #0] - 8001fda: 685b ldr r3, [r3, #4] - 8001fdc: f403 1300 and.w r3, r3, #2097152 ; 0x200000 - 8001fe0: 2b00 cmp r3, #0 - 8001fe2: d025 beq.n 8002030 + 800203c: 683b ldr r3, [r7, #0] + 800203e: 685b ldr r3, [r3, #4] + 8002040: f403 1300 and.w r3, r3, #2097152 ; 0x200000 + 8002044: 2b00 cmp r3, #0 + 8002046: d025 beq.n 8002094 { SET_BIT(EXTI->FTSR, iocurrent); - 8001fe4: 4b11 ldr r3, [pc, #68] ; (800202c ) - 8001fe6: 68da ldr r2, [r3, #12] - 8001fe8: 4910 ldr r1, [pc, #64] ; (800202c ) - 8001fea: 69bb ldr r3, [r7, #24] - 8001fec: 4313 orrs r3, r2 - 8001fee: 60cb str r3, [r1, #12] - 8001ff0: e025 b.n 800203e - 8001ff2: bf00 nop - 8001ff4: 10320000 .word 0x10320000 - 8001ff8: 10310000 .word 0x10310000 - 8001ffc: 10220000 .word 0x10220000 - 8002000: 10210000 .word 0x10210000 - 8002004: 10120000 .word 0x10120000 - 8002008: 10110000 .word 0x10110000 - 800200c: 40021000 .word 0x40021000 - 8002010: 40010000 .word 0x40010000 - 8002014: 40010800 .word 0x40010800 - 8002018: 40010c00 .word 0x40010c00 - 800201c: 40011000 .word 0x40011000 - 8002020: 40011400 .word 0x40011400 - 8002024: 40011800 .word 0x40011800 - 8002028: 40011c00 .word 0x40011c00 - 800202c: 40010400 .word 0x40010400 + 8002048: 4b11 ldr r3, [pc, #68] ; (8002090 ) + 800204a: 68da ldr r2, [r3, #12] + 800204c: 4910 ldr r1, [pc, #64] ; (8002090 ) + 800204e: 69bb ldr r3, [r7, #24] + 8002050: 4313 orrs r3, r2 + 8002052: 60cb str r3, [r1, #12] + 8002054: e025 b.n 80020a2 + 8002056: bf00 nop + 8002058: 10320000 .word 0x10320000 + 800205c: 10310000 .word 0x10310000 + 8002060: 10220000 .word 0x10220000 + 8002064: 10210000 .word 0x10210000 + 8002068: 10120000 .word 0x10120000 + 800206c: 10110000 .word 0x10110000 + 8002070: 40021000 .word 0x40021000 + 8002074: 40010000 .word 0x40010000 + 8002078: 40010800 .word 0x40010800 + 800207c: 40010c00 .word 0x40010c00 + 8002080: 40011000 .word 0x40011000 + 8002084: 40011400 .word 0x40011400 + 8002088: 40011800 .word 0x40011800 + 800208c: 40011c00 .word 0x40011c00 + 8002090: 40010400 .word 0x40010400 } else { CLEAR_BIT(EXTI->FTSR, iocurrent); - 8002030: 4b0b ldr r3, [pc, #44] ; (8002060 ) - 8002032: 68da ldr r2, [r3, #12] - 8002034: 69bb ldr r3, [r7, #24] - 8002036: 43db mvns r3, r3 - 8002038: 4909 ldr r1, [pc, #36] ; (8002060 ) - 800203a: 4013 ands r3, r2 - 800203c: 60cb str r3, [r1, #12] + 8002094: 4b0b ldr r3, [pc, #44] ; (80020c4 ) + 8002096: 68da ldr r2, [r3, #12] + 8002098: 69bb ldr r3, [r7, #24] + 800209a: 43db mvns r3, r3 + 800209c: 4909 ldr r1, [pc, #36] ; (80020c4 ) + 800209e: 4013 ands r3, r2 + 80020a0: 60cb str r3, [r1, #12] } } } position++; - 800203e: 6a7b ldr r3, [r7, #36] ; 0x24 - 8002040: 3301 adds r3, #1 - 8002042: 627b str r3, [r7, #36] ; 0x24 + 80020a2: 6a7b ldr r3, [r7, #36] ; 0x24 + 80020a4: 3301 adds r3, #1 + 80020a6: 627b str r3, [r7, #36] ; 0x24 while (((GPIO_Init->Pin) >> position) != 0x00u) - 8002044: 683b ldr r3, [r7, #0] - 8002046: 681a ldr r2, [r3, #0] - 8002048: 6a7b ldr r3, [r7, #36] ; 0x24 - 800204a: fa22 f303 lsr.w r3, r2, r3 - 800204e: 2b00 cmp r3, #0 - 8002050: f47f ae7e bne.w 8001d50 + 80020a8: 683b ldr r3, [r7, #0] + 80020aa: 681a ldr r2, [r3, #0] + 80020ac: 6a7b ldr r3, [r7, #36] ; 0x24 + 80020ae: fa22 f303 lsr.w r3, r2, r3 + 80020b2: 2b00 cmp r3, #0 + 80020b4: f47f ae7e bne.w 8001db4 } } - 8002054: bf00 nop - 8002056: bf00 nop - 8002058: 372c adds r7, #44 ; 0x2c - 800205a: 46bd mov sp, r7 - 800205c: bc80 pop {r7} - 800205e: 4770 bx lr - 8002060: 40010400 .word 0x40010400 + 80020b8: bf00 nop + 80020ba: bf00 nop + 80020bc: 372c adds r7, #44 ; 0x2c + 80020be: 46bd mov sp, r7 + 80020c0: bc80 pop {r7} + 80020c2: 4770 bx lr + 80020c4: 40010400 .word 0x40010400 -08002064 : +080020c8 : * @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) { - 8002064: b480 push {r7} - 8002066: b085 sub sp, #20 - 8002068: af00 add r7, sp, #0 - 800206a: 6078 str r0, [r7, #4] - 800206c: 460b mov r3, r1 - 800206e: 807b strh r3, [r7, #2] + 80020c8: b480 push {r7} + 80020ca: b085 sub sp, #20 + 80020cc: af00 add r7, sp, #0 + 80020ce: 6078 str r0, [r7, #4] + 80020d0: 460b mov r3, r1 + 80020d2: 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) - 8002070: 687b ldr r3, [r7, #4] - 8002072: 689a ldr r2, [r3, #8] - 8002074: 887b ldrh r3, [r7, #2] - 8002076: 4013 ands r3, r2 - 8002078: 2b00 cmp r3, #0 - 800207a: d002 beq.n 8002082 + 80020d4: 687b ldr r3, [r7, #4] + 80020d6: 689a ldr r2, [r3, #8] + 80020d8: 887b ldrh r3, [r7, #2] + 80020da: 4013 ands r3, r2 + 80020dc: 2b00 cmp r3, #0 + 80020de: d002 beq.n 80020e6 { bitstatus = GPIO_PIN_SET; - 800207c: 2301 movs r3, #1 - 800207e: 73fb strb r3, [r7, #15] - 8002080: e001 b.n 8002086 + 80020e0: 2301 movs r3, #1 + 80020e2: 73fb strb r3, [r7, #15] + 80020e4: e001 b.n 80020ea } else { bitstatus = GPIO_PIN_RESET; - 8002082: 2300 movs r3, #0 - 8002084: 73fb strb r3, [r7, #15] + 80020e6: 2300 movs r3, #0 + 80020e8: 73fb strb r3, [r7, #15] } return bitstatus; - 8002086: 7bfb ldrb r3, [r7, #15] + 80020ea: 7bfb ldrb r3, [r7, #15] } - 8002088: 4618 mov r0, r3 - 800208a: 3714 adds r7, #20 - 800208c: 46bd mov sp, r7 - 800208e: bc80 pop {r7} - 8002090: 4770 bx lr + 80020ec: 4618 mov r0, r3 + 80020ee: 3714 adds r7, #20 + 80020f0: 46bd mov sp, r7 + 80020f2: bc80 pop {r7} + 80020f4: 4770 bx lr -08002092 : +080020f6 : * @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) { - 8002092: b480 push {r7} - 8002094: b083 sub sp, #12 - 8002096: af00 add r7, sp, #0 - 8002098: 6078 str r0, [r7, #4] - 800209a: 460b mov r3, r1 - 800209c: 807b strh r3, [r7, #2] - 800209e: 4613 mov r3, r2 - 80020a0: 707b strb r3, [r7, #1] + 80020f6: b480 push {r7} + 80020f8: b083 sub sp, #12 + 80020fa: af00 add r7, sp, #0 + 80020fc: 6078 str r0, [r7, #4] + 80020fe: 460b mov r3, r1 + 8002100: 807b strh r3, [r7, #2] + 8002102: 4613 mov r3, r2 + 8002104: 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) - 80020a2: 787b ldrb r3, [r7, #1] - 80020a4: 2b00 cmp r3, #0 - 80020a6: d003 beq.n 80020b0 + 8002106: 787b ldrb r3, [r7, #1] + 8002108: 2b00 cmp r3, #0 + 800210a: d003 beq.n 8002114 { GPIOx->BSRR = GPIO_Pin; - 80020a8: 887a ldrh r2, [r7, #2] - 80020aa: 687b ldr r3, [r7, #4] - 80020ac: 611a str r2, [r3, #16] + 800210c: 887a ldrh r2, [r7, #2] + 800210e: 687b ldr r3, [r7, #4] + 8002110: 611a str r2, [r3, #16] } else { GPIOx->BSRR = (uint32_t)GPIO_Pin << 16u; } } - 80020ae: e003 b.n 80020b8 + 8002112: e003 b.n 800211c GPIOx->BSRR = (uint32_t)GPIO_Pin << 16u; - 80020b0: 887b ldrh r3, [r7, #2] - 80020b2: 041a lsls r2, r3, #16 - 80020b4: 687b ldr r3, [r7, #4] - 80020b6: 611a str r2, [r3, #16] + 8002114: 887b ldrh r3, [r7, #2] + 8002116: 041a lsls r2, r3, #16 + 8002118: 687b ldr r3, [r7, #4] + 800211a: 611a str r2, [r3, #16] } - 80020b8: bf00 nop - 80020ba: 370c adds r7, #12 - 80020bc: 46bd mov sp, r7 - 80020be: bc80 pop {r7} - 80020c0: 4770 bx lr + 800211c: bf00 nop + 800211e: 370c adds r7, #12 + 8002120: 46bd mov sp, r7 + 8002122: bc80 pop {r7} + 8002124: 4770 bx lr ... -080020c4 : +08002128 : * @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) { - 80020c4: b580 push {r7, lr} - 80020c6: b084 sub sp, #16 - 80020c8: af00 add r7, sp, #0 - 80020ca: 6078 str r0, [r7, #4] + 8002128: b580 push {r7, lr} + 800212a: b084 sub sp, #16 + 800212c: af00 add r7, sp, #0 + 800212e: 6078 str r0, [r7, #4] uint32_t freqrange; uint32_t pclk1; /* Check the I2C handle allocation */ if (hi2c == NULL) - 80020cc: 687b ldr r3, [r7, #4] - 80020ce: 2b00 cmp r3, #0 - 80020d0: d101 bne.n 80020d6 + 8002130: 687b ldr r3, [r7, #4] + 8002132: 2b00 cmp r3, #0 + 8002134: d101 bne.n 800213a { return HAL_ERROR; - 80020d2: 2301 movs r3, #1 - 80020d4: e12b b.n 800232e + 8002136: 2301 movs r3, #1 + 8002138: e12b b.n 8002392 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) - 80020d6: 687b ldr r3, [r7, #4] - 80020d8: f893 303d ldrb.w r3, [r3, #61] ; 0x3d - 80020dc: b2db uxtb r3, r3 - 80020de: 2b00 cmp r3, #0 - 80020e0: d106 bne.n 80020f0 + 800213a: 687b ldr r3, [r7, #4] + 800213c: f893 303d ldrb.w r3, [r3, #61] ; 0x3d + 8002140: b2db uxtb r3, r3 + 8002142: 2b00 cmp r3, #0 + 8002144: d106 bne.n 8002154 { /* Allocate lock resource and initialize it */ hi2c->Lock = HAL_UNLOCKED; - 80020e2: 687b ldr r3, [r7, #4] - 80020e4: 2200 movs r2, #0 - 80020e6: f883 203c strb.w r2, [r3, #60] ; 0x3c + 8002146: 687b ldr r3, [r7, #4] + 8002148: 2200 movs r2, #0 + 800214a: 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); - 80020ea: 6878 ldr r0, [r7, #4] - 80020ec: f7ff fab0 bl 8001650 + 800214e: 6878 ldr r0, [r7, #4] + 8002150: f7ff fa66 bl 8001620 #endif /* USE_HAL_I2C_REGISTER_CALLBACKS */ } hi2c->State = HAL_I2C_STATE_BUSY; - 80020f0: 687b ldr r3, [r7, #4] - 80020f2: 2224 movs r2, #36 ; 0x24 - 80020f4: f883 203d strb.w r2, [r3, #61] ; 0x3d + 8002154: 687b ldr r3, [r7, #4] + 8002156: 2224 movs r2, #36 ; 0x24 + 8002158: f883 203d strb.w r2, [r3, #61] ; 0x3d /* Disable the selected I2C peripheral */ __HAL_I2C_DISABLE(hi2c); - 80020f8: 687b ldr r3, [r7, #4] - 80020fa: 681b ldr r3, [r3, #0] - 80020fc: 681a ldr r2, [r3, #0] - 80020fe: 687b ldr r3, [r7, #4] - 8002100: 681b ldr r3, [r3, #0] - 8002102: f022 0201 bic.w r2, r2, #1 - 8002106: 601a str r2, [r3, #0] + 800215c: 687b ldr r3, [r7, #4] + 800215e: 681b ldr r3, [r3, #0] + 8002160: 681a ldr r2, [r3, #0] + 8002162: 687b ldr r3, [r7, #4] + 8002164: 681b ldr r3, [r3, #0] + 8002166: f022 0201 bic.w r2, r2, #1 + 800216a: 601a str r2, [r3, #0] /*Reset I2C*/ hi2c->Instance->CR1 |= I2C_CR1_SWRST; - 8002108: 687b ldr r3, [r7, #4] - 800210a: 681b ldr r3, [r3, #0] - 800210c: 681a ldr r2, [r3, #0] - 800210e: 687b ldr r3, [r7, #4] - 8002110: 681b ldr r3, [r3, #0] - 8002112: f442 4200 orr.w r2, r2, #32768 ; 0x8000 - 8002116: 601a str r2, [r3, #0] + 800216c: 687b ldr r3, [r7, #4] + 800216e: 681b ldr r3, [r3, #0] + 8002170: 681a ldr r2, [r3, #0] + 8002172: 687b ldr r3, [r7, #4] + 8002174: 681b ldr r3, [r3, #0] + 8002176: f442 4200 orr.w r2, r2, #32768 ; 0x8000 + 800217a: 601a str r2, [r3, #0] hi2c->Instance->CR1 &= ~I2C_CR1_SWRST; - 8002118: 687b ldr r3, [r7, #4] - 800211a: 681b ldr r3, [r3, #0] - 800211c: 681a ldr r2, [r3, #0] - 800211e: 687b ldr r3, [r7, #4] - 8002120: 681b ldr r3, [r3, #0] - 8002122: f422 4200 bic.w r2, r2, #32768 ; 0x8000 - 8002126: 601a str r2, [r3, #0] + 800217c: 687b ldr r3, [r7, #4] + 800217e: 681b ldr r3, [r3, #0] + 8002180: 681a ldr r2, [r3, #0] + 8002182: 687b ldr r3, [r7, #4] + 8002184: 681b ldr r3, [r3, #0] + 8002186: f422 4200 bic.w r2, r2, #32768 ; 0x8000 + 800218a: 601a str r2, [r3, #0] /* Get PCLK1 frequency */ pclk1 = HAL_RCC_GetPCLK1Freq(); - 8002128: f001 fba0 bl 800386c - 800212c: 60f8 str r0, [r7, #12] + 800218c: f001 fba0 bl 80038d0 + 8002190: 60f8 str r0, [r7, #12] /* Check the minimum allowed PCLK1 frequency */ if (I2C_MIN_PCLK_FREQ(pclk1, hi2c->Init.ClockSpeed) == 1U) - 800212e: 687b ldr r3, [r7, #4] - 8002130: 685b ldr r3, [r3, #4] - 8002132: 4a81 ldr r2, [pc, #516] ; (8002338 ) - 8002134: 4293 cmp r3, r2 - 8002136: d807 bhi.n 8002148 - 8002138: 68fb ldr r3, [r7, #12] - 800213a: 4a80 ldr r2, [pc, #512] ; (800233c ) - 800213c: 4293 cmp r3, r2 - 800213e: bf94 ite ls - 8002140: 2301 movls r3, #1 - 8002142: 2300 movhi r3, #0 - 8002144: b2db uxtb r3, r3 - 8002146: e006 b.n 8002156 - 8002148: 68fb ldr r3, [r7, #12] - 800214a: 4a7d ldr r2, [pc, #500] ; (8002340 ) - 800214c: 4293 cmp r3, r2 - 800214e: bf94 ite ls - 8002150: 2301 movls r3, #1 - 8002152: 2300 movhi r3, #0 - 8002154: b2db uxtb r3, r3 - 8002156: 2b00 cmp r3, #0 - 8002158: d001 beq.n 800215e + 8002192: 687b ldr r3, [r7, #4] + 8002194: 685b ldr r3, [r3, #4] + 8002196: 4a81 ldr r2, [pc, #516] ; (800239c ) + 8002198: 4293 cmp r3, r2 + 800219a: d807 bhi.n 80021ac + 800219c: 68fb ldr r3, [r7, #12] + 800219e: 4a80 ldr r2, [pc, #512] ; (80023a0 ) + 80021a0: 4293 cmp r3, r2 + 80021a2: bf94 ite ls + 80021a4: 2301 movls r3, #1 + 80021a6: 2300 movhi r3, #0 + 80021a8: b2db uxtb r3, r3 + 80021aa: e006 b.n 80021ba + 80021ac: 68fb ldr r3, [r7, #12] + 80021ae: 4a7d ldr r2, [pc, #500] ; (80023a4 ) + 80021b0: 4293 cmp r3, r2 + 80021b2: bf94 ite ls + 80021b4: 2301 movls r3, #1 + 80021b6: 2300 movhi r3, #0 + 80021b8: b2db uxtb r3, r3 + 80021ba: 2b00 cmp r3, #0 + 80021bc: d001 beq.n 80021c2 { return HAL_ERROR; - 800215a: 2301 movs r3, #1 - 800215c: e0e7 b.n 800232e + 80021be: 2301 movs r3, #1 + 80021c0: e0e7 b.n 8002392 } /* Calculate frequency range */ freqrange = I2C_FREQRANGE(pclk1); - 800215e: 68fb ldr r3, [r7, #12] - 8002160: 4a78 ldr r2, [pc, #480] ; (8002344 ) - 8002162: fba2 2303 umull r2, r3, r2, r3 - 8002166: 0c9b lsrs r3, r3, #18 - 8002168: 60bb str r3, [r7, #8] + 80021c2: 68fb ldr r3, [r7, #12] + 80021c4: 4a78 ldr r2, [pc, #480] ; (80023a8 ) + 80021c6: fba2 2303 umull r2, r3, r2, r3 + 80021ca: 0c9b lsrs r3, r3, #18 + 80021cc: 60bb str r3, [r7, #8] /*---------------------------- I2Cx CR2 Configuration ----------------------*/ /* Configure I2Cx: Frequency range */ MODIFY_REG(hi2c->Instance->CR2, I2C_CR2_FREQ, freqrange); - 800216a: 687b ldr r3, [r7, #4] - 800216c: 681b ldr r3, [r3, #0] - 800216e: 685b ldr r3, [r3, #4] - 8002170: f023 013f bic.w r1, r3, #63 ; 0x3f - 8002174: 687b ldr r3, [r7, #4] - 8002176: 681b ldr r3, [r3, #0] - 8002178: 68ba ldr r2, [r7, #8] - 800217a: 430a orrs r2, r1 - 800217c: 605a str r2, [r3, #4] + 80021ce: 687b ldr r3, [r7, #4] + 80021d0: 681b ldr r3, [r3, #0] + 80021d2: 685b ldr r3, [r3, #4] + 80021d4: f023 013f bic.w r1, r3, #63 ; 0x3f + 80021d8: 687b ldr r3, [r7, #4] + 80021da: 681b ldr r3, [r3, #0] + 80021dc: 68ba ldr r2, [r7, #8] + 80021de: 430a orrs r2, r1 + 80021e0: 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)); - 800217e: 687b ldr r3, [r7, #4] - 8002180: 681b ldr r3, [r3, #0] - 8002182: 6a1b ldr r3, [r3, #32] - 8002184: f023 013f bic.w r1, r3, #63 ; 0x3f - 8002188: 687b ldr r3, [r7, #4] - 800218a: 685b ldr r3, [r3, #4] - 800218c: 4a6a ldr r2, [pc, #424] ; (8002338 ) - 800218e: 4293 cmp r3, r2 - 8002190: d802 bhi.n 8002198 - 8002192: 68bb ldr r3, [r7, #8] - 8002194: 3301 adds r3, #1 - 8002196: e009 b.n 80021ac - 8002198: 68bb ldr r3, [r7, #8] - 800219a: f44f 7296 mov.w r2, #300 ; 0x12c - 800219e: fb02 f303 mul.w r3, r2, r3 - 80021a2: 4a69 ldr r2, [pc, #420] ; (8002348 ) - 80021a4: fba2 2303 umull r2, r3, r2, r3 - 80021a8: 099b lsrs r3, r3, #6 - 80021aa: 3301 adds r3, #1 - 80021ac: 687a ldr r2, [r7, #4] - 80021ae: 6812 ldr r2, [r2, #0] - 80021b0: 430b orrs r3, r1 - 80021b2: 6213 str r3, [r2, #32] + 80021e2: 687b ldr r3, [r7, #4] + 80021e4: 681b ldr r3, [r3, #0] + 80021e6: 6a1b ldr r3, [r3, #32] + 80021e8: f023 013f bic.w r1, r3, #63 ; 0x3f + 80021ec: 687b ldr r3, [r7, #4] + 80021ee: 685b ldr r3, [r3, #4] + 80021f0: 4a6a ldr r2, [pc, #424] ; (800239c ) + 80021f2: 4293 cmp r3, r2 + 80021f4: d802 bhi.n 80021fc + 80021f6: 68bb ldr r3, [r7, #8] + 80021f8: 3301 adds r3, #1 + 80021fa: e009 b.n 8002210 + 80021fc: 68bb ldr r3, [r7, #8] + 80021fe: f44f 7296 mov.w r2, #300 ; 0x12c + 8002202: fb02 f303 mul.w r3, r2, r3 + 8002206: 4a69 ldr r2, [pc, #420] ; (80023ac ) + 8002208: fba2 2303 umull r2, r3, r2, r3 + 800220c: 099b lsrs r3, r3, #6 + 800220e: 3301 adds r3, #1 + 8002210: 687a ldr r2, [r7, #4] + 8002212: 6812 ldr r2, [r2, #0] + 8002214: 430b orrs r3, r1 + 8002216: 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)); - 80021b4: 687b ldr r3, [r7, #4] - 80021b6: 681b ldr r3, [r3, #0] - 80021b8: 69db ldr r3, [r3, #28] - 80021ba: f423 424f bic.w r2, r3, #52992 ; 0xcf00 - 80021be: f022 02ff bic.w r2, r2, #255 ; 0xff - 80021c2: 687b ldr r3, [r7, #4] - 80021c4: 685b ldr r3, [r3, #4] - 80021c6: 495c ldr r1, [pc, #368] ; (8002338 ) - 80021c8: 428b cmp r3, r1 - 80021ca: d819 bhi.n 8002200 - 80021cc: 68fb ldr r3, [r7, #12] - 80021ce: 1e59 subs r1, r3, #1 - 80021d0: 687b ldr r3, [r7, #4] - 80021d2: 685b ldr r3, [r3, #4] - 80021d4: 005b lsls r3, r3, #1 - 80021d6: fbb1 f3f3 udiv r3, r1, r3 - 80021da: 1c59 adds r1, r3, #1 - 80021dc: f640 73fc movw r3, #4092 ; 0xffc - 80021e0: 400b ands r3, r1 - 80021e2: 2b00 cmp r3, #0 - 80021e4: d00a beq.n 80021fc - 80021e6: 68fb ldr r3, [r7, #12] - 80021e8: 1e59 subs r1, r3, #1 - 80021ea: 687b ldr r3, [r7, #4] - 80021ec: 685b ldr r3, [r3, #4] - 80021ee: 005b lsls r3, r3, #1 - 80021f0: fbb1 f3f3 udiv r3, r1, r3 - 80021f4: 3301 adds r3, #1 - 80021f6: f3c3 030b ubfx r3, r3, #0, #12 - 80021fa: e051 b.n 80022a0 - 80021fc: 2304 movs r3, #4 - 80021fe: e04f b.n 80022a0 - 8002200: 687b ldr r3, [r7, #4] - 8002202: 689b ldr r3, [r3, #8] - 8002204: 2b00 cmp r3, #0 - 8002206: d111 bne.n 800222c - 8002208: 68fb ldr r3, [r7, #12] - 800220a: 1e58 subs r0, r3, #1 - 800220c: 687b ldr r3, [r7, #4] - 800220e: 6859 ldr r1, [r3, #4] - 8002210: 460b mov r3, r1 - 8002212: 005b lsls r3, r3, #1 - 8002214: 440b add r3, r1 - 8002216: fbb0 f3f3 udiv r3, r0, r3 - 800221a: 3301 adds r3, #1 - 800221c: f3c3 030b ubfx r3, r3, #0, #12 - 8002220: 2b00 cmp r3, #0 - 8002222: bf0c ite eq - 8002224: 2301 moveq r3, #1 - 8002226: 2300 movne r3, #0 - 8002228: b2db uxtb r3, r3 - 800222a: e012 b.n 8002252 - 800222c: 68fb ldr r3, [r7, #12] - 800222e: 1e58 subs r0, r3, #1 - 8002230: 687b ldr r3, [r7, #4] - 8002232: 6859 ldr r1, [r3, #4] - 8002234: 460b mov r3, r1 - 8002236: 009b lsls r3, r3, #2 - 8002238: 440b add r3, r1 - 800223a: 0099 lsls r1, r3, #2 - 800223c: 440b add r3, r1 - 800223e: fbb0 f3f3 udiv r3, r0, r3 - 8002242: 3301 adds r3, #1 - 8002244: f3c3 030b ubfx r3, r3, #0, #12 - 8002248: 2b00 cmp r3, #0 - 800224a: bf0c ite eq - 800224c: 2301 moveq r3, #1 - 800224e: 2300 movne r3, #0 - 8002250: b2db uxtb r3, r3 - 8002252: 2b00 cmp r3, #0 - 8002254: d001 beq.n 800225a - 8002256: 2301 movs r3, #1 - 8002258: e022 b.n 80022a0 - 800225a: 687b ldr r3, [r7, #4] - 800225c: 689b ldr r3, [r3, #8] - 800225e: 2b00 cmp r3, #0 - 8002260: d10e bne.n 8002280 - 8002262: 68fb ldr r3, [r7, #12] - 8002264: 1e58 subs r0, r3, #1 - 8002266: 687b ldr r3, [r7, #4] - 8002268: 6859 ldr r1, [r3, #4] - 800226a: 460b mov r3, r1 - 800226c: 005b lsls r3, r3, #1 - 800226e: 440b add r3, r1 - 8002270: fbb0 f3f3 udiv r3, r0, r3 - 8002274: 3301 adds r3, #1 - 8002276: f3c3 030b ubfx r3, r3, #0, #12 - 800227a: f443 4300 orr.w r3, r3, #32768 ; 0x8000 - 800227e: e00f b.n 80022a0 - 8002280: 68fb ldr r3, [r7, #12] - 8002282: 1e58 subs r0, r3, #1 - 8002284: 687b ldr r3, [r7, #4] - 8002286: 6859 ldr r1, [r3, #4] - 8002288: 460b mov r3, r1 - 800228a: 009b lsls r3, r3, #2 - 800228c: 440b add r3, r1 - 800228e: 0099 lsls r1, r3, #2 - 8002290: 440b add r3, r1 - 8002292: fbb0 f3f3 udiv r3, r0, r3 - 8002296: 3301 adds r3, #1 - 8002298: f3c3 030b ubfx r3, r3, #0, #12 - 800229c: f443 4340 orr.w r3, r3, #49152 ; 0xc000 - 80022a0: 6879 ldr r1, [r7, #4] - 80022a2: 6809 ldr r1, [r1, #0] - 80022a4: 4313 orrs r3, r2 - 80022a6: 61cb str r3, [r1, #28] + 8002218: 687b ldr r3, [r7, #4] + 800221a: 681b ldr r3, [r3, #0] + 800221c: 69db ldr r3, [r3, #28] + 800221e: f423 424f bic.w r2, r3, #52992 ; 0xcf00 + 8002222: f022 02ff bic.w r2, r2, #255 ; 0xff + 8002226: 687b ldr r3, [r7, #4] + 8002228: 685b ldr r3, [r3, #4] + 800222a: 495c ldr r1, [pc, #368] ; (800239c ) + 800222c: 428b cmp r3, r1 + 800222e: d819 bhi.n 8002264 + 8002230: 68fb ldr r3, [r7, #12] + 8002232: 1e59 subs r1, r3, #1 + 8002234: 687b ldr r3, [r7, #4] + 8002236: 685b ldr r3, [r3, #4] + 8002238: 005b lsls r3, r3, #1 + 800223a: fbb1 f3f3 udiv r3, r1, r3 + 800223e: 1c59 adds r1, r3, #1 + 8002240: f640 73fc movw r3, #4092 ; 0xffc + 8002244: 400b ands r3, r1 + 8002246: 2b00 cmp r3, #0 + 8002248: d00a beq.n 8002260 + 800224a: 68fb ldr r3, [r7, #12] + 800224c: 1e59 subs r1, r3, #1 + 800224e: 687b ldr r3, [r7, #4] + 8002250: 685b ldr r3, [r3, #4] + 8002252: 005b lsls r3, r3, #1 + 8002254: fbb1 f3f3 udiv r3, r1, r3 + 8002258: 3301 adds r3, #1 + 800225a: f3c3 030b ubfx r3, r3, #0, #12 + 800225e: e051 b.n 8002304 + 8002260: 2304 movs r3, #4 + 8002262: e04f b.n 8002304 + 8002264: 687b ldr r3, [r7, #4] + 8002266: 689b ldr r3, [r3, #8] + 8002268: 2b00 cmp r3, #0 + 800226a: d111 bne.n 8002290 + 800226c: 68fb ldr r3, [r7, #12] + 800226e: 1e58 subs r0, r3, #1 + 8002270: 687b ldr r3, [r7, #4] + 8002272: 6859 ldr r1, [r3, #4] + 8002274: 460b mov r3, r1 + 8002276: 005b lsls r3, r3, #1 + 8002278: 440b add r3, r1 + 800227a: fbb0 f3f3 udiv r3, r0, r3 + 800227e: 3301 adds r3, #1 + 8002280: f3c3 030b ubfx r3, r3, #0, #12 + 8002284: 2b00 cmp r3, #0 + 8002286: bf0c ite eq + 8002288: 2301 moveq r3, #1 + 800228a: 2300 movne r3, #0 + 800228c: b2db uxtb r3, r3 + 800228e: e012 b.n 80022b6 + 8002290: 68fb ldr r3, [r7, #12] + 8002292: 1e58 subs r0, r3, #1 + 8002294: 687b ldr r3, [r7, #4] + 8002296: 6859 ldr r1, [r3, #4] + 8002298: 460b mov r3, r1 + 800229a: 009b lsls r3, r3, #2 + 800229c: 440b add r3, r1 + 800229e: 0099 lsls r1, r3, #2 + 80022a0: 440b add r3, r1 + 80022a2: fbb0 f3f3 udiv r3, r0, r3 + 80022a6: 3301 adds r3, #1 + 80022a8: f3c3 030b ubfx r3, r3, #0, #12 + 80022ac: 2b00 cmp r3, #0 + 80022ae: bf0c ite eq + 80022b0: 2301 moveq r3, #1 + 80022b2: 2300 movne r3, #0 + 80022b4: b2db uxtb r3, r3 + 80022b6: 2b00 cmp r3, #0 + 80022b8: d001 beq.n 80022be + 80022ba: 2301 movs r3, #1 + 80022bc: e022 b.n 8002304 + 80022be: 687b ldr r3, [r7, #4] + 80022c0: 689b ldr r3, [r3, #8] + 80022c2: 2b00 cmp r3, #0 + 80022c4: d10e bne.n 80022e4 + 80022c6: 68fb ldr r3, [r7, #12] + 80022c8: 1e58 subs r0, r3, #1 + 80022ca: 687b ldr r3, [r7, #4] + 80022cc: 6859 ldr r1, [r3, #4] + 80022ce: 460b mov r3, r1 + 80022d0: 005b lsls r3, r3, #1 + 80022d2: 440b add r3, r1 + 80022d4: fbb0 f3f3 udiv r3, r0, r3 + 80022d8: 3301 adds r3, #1 + 80022da: f3c3 030b ubfx r3, r3, #0, #12 + 80022de: f443 4300 orr.w r3, r3, #32768 ; 0x8000 + 80022e2: e00f b.n 8002304 + 80022e4: 68fb ldr r3, [r7, #12] + 80022e6: 1e58 subs r0, r3, #1 + 80022e8: 687b ldr r3, [r7, #4] + 80022ea: 6859 ldr r1, [r3, #4] + 80022ec: 460b mov r3, r1 + 80022ee: 009b lsls r3, r3, #2 + 80022f0: 440b add r3, r1 + 80022f2: 0099 lsls r1, r3, #2 + 80022f4: 440b add r3, r1 + 80022f6: fbb0 f3f3 udiv r3, r0, r3 + 80022fa: 3301 adds r3, #1 + 80022fc: f3c3 030b ubfx r3, r3, #0, #12 + 8002300: f443 4340 orr.w r3, r3, #49152 ; 0xc000 + 8002304: 6879 ldr r1, [r7, #4] + 8002306: 6809 ldr r1, [r1, #0] + 8002308: 4313 orrs r3, r2 + 800230a: 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)); - 80022a8: 687b ldr r3, [r7, #4] - 80022aa: 681b ldr r3, [r3, #0] - 80022ac: 681b ldr r3, [r3, #0] - 80022ae: f023 01c0 bic.w r1, r3, #192 ; 0xc0 - 80022b2: 687b ldr r3, [r7, #4] - 80022b4: 69da ldr r2, [r3, #28] - 80022b6: 687b ldr r3, [r7, #4] - 80022b8: 6a1b ldr r3, [r3, #32] - 80022ba: 431a orrs r2, r3 - 80022bc: 687b ldr r3, [r7, #4] - 80022be: 681b ldr r3, [r3, #0] - 80022c0: 430a orrs r2, r1 - 80022c2: 601a str r2, [r3, #0] + 800230c: 687b ldr r3, [r7, #4] + 800230e: 681b ldr r3, [r3, #0] + 8002310: 681b ldr r3, [r3, #0] + 8002312: f023 01c0 bic.w r1, r3, #192 ; 0xc0 + 8002316: 687b ldr r3, [r7, #4] + 8002318: 69da ldr r2, [r3, #28] + 800231a: 687b ldr r3, [r7, #4] + 800231c: 6a1b ldr r3, [r3, #32] + 800231e: 431a orrs r2, r3 + 8002320: 687b ldr r3, [r7, #4] + 8002322: 681b ldr r3, [r3, #0] + 8002324: 430a orrs r2, r1 + 8002326: 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)); - 80022c4: 687b ldr r3, [r7, #4] - 80022c6: 681b ldr r3, [r3, #0] - 80022c8: 689b ldr r3, [r3, #8] - 80022ca: f423 4303 bic.w r3, r3, #33536 ; 0x8300 - 80022ce: f023 03ff bic.w r3, r3, #255 ; 0xff - 80022d2: 687a ldr r2, [r7, #4] - 80022d4: 6911 ldr r1, [r2, #16] - 80022d6: 687a ldr r2, [r7, #4] - 80022d8: 68d2 ldr r2, [r2, #12] - 80022da: 4311 orrs r1, r2 - 80022dc: 687a ldr r2, [r7, #4] - 80022de: 6812 ldr r2, [r2, #0] - 80022e0: 430b orrs r3, r1 - 80022e2: 6093 str r3, [r2, #8] + 8002328: 687b ldr r3, [r7, #4] + 800232a: 681b ldr r3, [r3, #0] + 800232c: 689b ldr r3, [r3, #8] + 800232e: f423 4303 bic.w r3, r3, #33536 ; 0x8300 + 8002332: f023 03ff bic.w r3, r3, #255 ; 0xff + 8002336: 687a ldr r2, [r7, #4] + 8002338: 6911 ldr r1, [r2, #16] + 800233a: 687a ldr r2, [r7, #4] + 800233c: 68d2 ldr r2, [r2, #12] + 800233e: 4311 orrs r1, r2 + 8002340: 687a ldr r2, [r7, #4] + 8002342: 6812 ldr r2, [r2, #0] + 8002344: 430b orrs r3, r1 + 8002346: 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)); - 80022e4: 687b ldr r3, [r7, #4] - 80022e6: 681b ldr r3, [r3, #0] - 80022e8: 68db ldr r3, [r3, #12] - 80022ea: f023 01ff bic.w r1, r3, #255 ; 0xff - 80022ee: 687b ldr r3, [r7, #4] - 80022f0: 695a ldr r2, [r3, #20] - 80022f2: 687b ldr r3, [r7, #4] - 80022f4: 699b ldr r3, [r3, #24] - 80022f6: 431a orrs r2, r3 - 80022f8: 687b ldr r3, [r7, #4] - 80022fa: 681b ldr r3, [r3, #0] - 80022fc: 430a orrs r2, r1 - 80022fe: 60da str r2, [r3, #12] + 8002348: 687b ldr r3, [r7, #4] + 800234a: 681b ldr r3, [r3, #0] + 800234c: 68db ldr r3, [r3, #12] + 800234e: f023 01ff bic.w r1, r3, #255 ; 0xff + 8002352: 687b ldr r3, [r7, #4] + 8002354: 695a ldr r2, [r3, #20] + 8002356: 687b ldr r3, [r7, #4] + 8002358: 699b ldr r3, [r3, #24] + 800235a: 431a orrs r2, r3 + 800235c: 687b ldr r3, [r7, #4] + 800235e: 681b ldr r3, [r3, #0] + 8002360: 430a orrs r2, r1 + 8002362: 60da str r2, [r3, #12] /* Enable the selected I2C peripheral */ __HAL_I2C_ENABLE(hi2c); - 8002300: 687b ldr r3, [r7, #4] - 8002302: 681b ldr r3, [r3, #0] - 8002304: 681a ldr r2, [r3, #0] - 8002306: 687b ldr r3, [r7, #4] - 8002308: 681b ldr r3, [r3, #0] - 800230a: f042 0201 orr.w r2, r2, #1 - 800230e: 601a str r2, [r3, #0] + 8002364: 687b ldr r3, [r7, #4] + 8002366: 681b ldr r3, [r3, #0] + 8002368: 681a ldr r2, [r3, #0] + 800236a: 687b ldr r3, [r7, #4] + 800236c: 681b ldr r3, [r3, #0] + 800236e: f042 0201 orr.w r2, r2, #1 + 8002372: 601a str r2, [r3, #0] hi2c->ErrorCode = HAL_I2C_ERROR_NONE; - 8002310: 687b ldr r3, [r7, #4] - 8002312: 2200 movs r2, #0 - 8002314: 641a str r2, [r3, #64] ; 0x40 + 8002374: 687b ldr r3, [r7, #4] + 8002376: 2200 movs r2, #0 + 8002378: 641a str r2, [r3, #64] ; 0x40 hi2c->State = HAL_I2C_STATE_READY; - 8002316: 687b ldr r3, [r7, #4] - 8002318: 2220 movs r2, #32 - 800231a: f883 203d strb.w r2, [r3, #61] ; 0x3d + 800237a: 687b ldr r3, [r7, #4] + 800237c: 2220 movs r2, #32 + 800237e: f883 203d strb.w r2, [r3, #61] ; 0x3d hi2c->PreviousState = I2C_STATE_NONE; - 800231e: 687b ldr r3, [r7, #4] - 8002320: 2200 movs r2, #0 - 8002322: 631a str r2, [r3, #48] ; 0x30 + 8002382: 687b ldr r3, [r7, #4] + 8002384: 2200 movs r2, #0 + 8002386: 631a str r2, [r3, #48] ; 0x30 hi2c->Mode = HAL_I2C_MODE_NONE; - 8002324: 687b ldr r3, [r7, #4] - 8002326: 2200 movs r2, #0 - 8002328: f883 203e strb.w r2, [r3, #62] ; 0x3e + 8002388: 687b ldr r3, [r7, #4] + 800238a: 2200 movs r2, #0 + 800238c: f883 203e strb.w r2, [r3, #62] ; 0x3e return HAL_OK; - 800232c: 2300 movs r3, #0 + 8002390: 2300 movs r3, #0 } - 800232e: 4618 mov r0, r3 - 8002330: 3710 adds r7, #16 - 8002332: 46bd mov sp, r7 - 8002334: bd80 pop {r7, pc} - 8002336: bf00 nop - 8002338: 000186a0 .word 0x000186a0 - 800233c: 001e847f .word 0x001e847f - 8002340: 003d08ff .word 0x003d08ff - 8002344: 431bde83 .word 0x431bde83 - 8002348: 10624dd3 .word 0x10624dd3 + 8002392: 4618 mov r0, r3 + 8002394: 3710 adds r7, #16 + 8002396: 46bd mov sp, r7 + 8002398: bd80 pop {r7, pc} + 800239a: bf00 nop + 800239c: 000186a0 .word 0x000186a0 + 80023a0: 001e847f .word 0x001e847f + 80023a4: 003d08ff .word 0x003d08ff + 80023a8: 431bde83 .word 0x431bde83 + 80023ac: 10624dd3 .word 0x10624dd3 -0800234c : +080023b0 : * @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) { - 800234c: b580 push {r7, lr} - 800234e: b088 sub sp, #32 - 8002350: af02 add r7, sp, #8 - 8002352: 60f8 str r0, [r7, #12] - 8002354: 4608 mov r0, r1 - 8002356: 4611 mov r1, r2 - 8002358: 461a mov r2, r3 - 800235a: 4603 mov r3, r0 - 800235c: 817b strh r3, [r7, #10] - 800235e: 460b mov r3, r1 - 8002360: 813b strh r3, [r7, #8] - 8002362: 4613 mov r3, r2 - 8002364: 80fb strh r3, [r7, #6] + 80023b0: b580 push {r7, lr} + 80023b2: b088 sub sp, #32 + 80023b4: af02 add r7, sp, #8 + 80023b6: 60f8 str r0, [r7, #12] + 80023b8: 4608 mov r0, r1 + 80023ba: 4611 mov r1, r2 + 80023bc: 461a mov r2, r3 + 80023be: 4603 mov r3, r0 + 80023c0: 817b strh r3, [r7, #10] + 80023c2: 460b mov r3, r1 + 80023c4: 813b strh r3, [r7, #8] + 80023c6: 4613 mov r3, r2 + 80023c8: 80fb strh r3, [r7, #6] /* Init tickstart for timeout management*/ uint32_t tickstart = HAL_GetTick(); - 8002366: f7ff fbad bl 8001ac4 - 800236a: 6178 str r0, [r7, #20] + 80023ca: f7ff fbad bl 8001b28 + 80023ce: 6178 str r0, [r7, #20] /* Check the parameters */ assert_param(IS_I2C_MEMADD_SIZE(MemAddSize)); if (hi2c->State == HAL_I2C_STATE_READY) - 800236c: 68fb ldr r3, [r7, #12] - 800236e: f893 303d ldrb.w r3, [r3, #61] ; 0x3d - 8002372: b2db uxtb r3, r3 - 8002374: 2b20 cmp r3, #32 - 8002376: f040 80d9 bne.w 800252c + 80023d0: 68fb ldr r3, [r7, #12] + 80023d2: f893 303d ldrb.w r3, [r3, #61] ; 0x3d + 80023d6: b2db uxtb r3, r3 + 80023d8: 2b20 cmp r3, #32 + 80023da: f040 80d9 bne.w 8002590 { /* Wait until BUSY flag is reset */ if (I2C_WaitOnFlagUntilTimeout(hi2c, I2C_FLAG_BUSY, SET, I2C_TIMEOUT_BUSY_FLAG, tickstart) != HAL_OK) - 800237a: 697b ldr r3, [r7, #20] - 800237c: 9300 str r3, [sp, #0] - 800237e: 2319 movs r3, #25 - 8002380: 2201 movs r2, #1 - 8002382: 496d ldr r1, [pc, #436] ; (8002538 ) - 8002384: 68f8 ldr r0, [r7, #12] - 8002386: f000 fcc1 bl 8002d0c - 800238a: 4603 mov r3, r0 - 800238c: 2b00 cmp r3, #0 - 800238e: d001 beq.n 8002394 + 80023de: 697b ldr r3, [r7, #20] + 80023e0: 9300 str r3, [sp, #0] + 80023e2: 2319 movs r3, #25 + 80023e4: 2201 movs r2, #1 + 80023e6: 496d ldr r1, [pc, #436] ; (800259c ) + 80023e8: 68f8 ldr r0, [r7, #12] + 80023ea: f000 fcc1 bl 8002d70 + 80023ee: 4603 mov r3, r0 + 80023f0: 2b00 cmp r3, #0 + 80023f2: d001 beq.n 80023f8 { return HAL_BUSY; - 8002390: 2302 movs r3, #2 - 8002392: e0cc b.n 800252e + 80023f4: 2302 movs r3, #2 + 80023f6: e0cc b.n 8002592 } /* Process Locked */ __HAL_LOCK(hi2c); - 8002394: 68fb ldr r3, [r7, #12] - 8002396: f893 303c ldrb.w r3, [r3, #60] ; 0x3c - 800239a: 2b01 cmp r3, #1 - 800239c: d101 bne.n 80023a2 - 800239e: 2302 movs r3, #2 - 80023a0: e0c5 b.n 800252e - 80023a2: 68fb ldr r3, [r7, #12] - 80023a4: 2201 movs r2, #1 - 80023a6: f883 203c strb.w r2, [r3, #60] ; 0x3c + 80023f8: 68fb ldr r3, [r7, #12] + 80023fa: f893 303c ldrb.w r3, [r3, #60] ; 0x3c + 80023fe: 2b01 cmp r3, #1 + 8002400: d101 bne.n 8002406 + 8002402: 2302 movs r3, #2 + 8002404: e0c5 b.n 8002592 + 8002406: 68fb ldr r3, [r7, #12] + 8002408: 2201 movs r2, #1 + 800240a: 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) - 80023aa: 68fb ldr r3, [r7, #12] - 80023ac: 681b ldr r3, [r3, #0] - 80023ae: 681b ldr r3, [r3, #0] - 80023b0: f003 0301 and.w r3, r3, #1 - 80023b4: 2b01 cmp r3, #1 - 80023b6: d007 beq.n 80023c8 + 800240e: 68fb ldr r3, [r7, #12] + 8002410: 681b ldr r3, [r3, #0] + 8002412: 681b ldr r3, [r3, #0] + 8002414: f003 0301 and.w r3, r3, #1 + 8002418: 2b01 cmp r3, #1 + 800241a: d007 beq.n 800242c { /* Enable I2C peripheral */ __HAL_I2C_ENABLE(hi2c); - 80023b8: 68fb ldr r3, [r7, #12] - 80023ba: 681b ldr r3, [r3, #0] - 80023bc: 681a ldr r2, [r3, #0] - 80023be: 68fb ldr r3, [r7, #12] - 80023c0: 681b ldr r3, [r3, #0] - 80023c2: f042 0201 orr.w r2, r2, #1 - 80023c6: 601a str r2, [r3, #0] + 800241c: 68fb ldr r3, [r7, #12] + 800241e: 681b ldr r3, [r3, #0] + 8002420: 681a ldr r2, [r3, #0] + 8002422: 68fb ldr r3, [r7, #12] + 8002424: 681b ldr r3, [r3, #0] + 8002426: f042 0201 orr.w r2, r2, #1 + 800242a: 601a str r2, [r3, #0] } /* Disable Pos */ CLEAR_BIT(hi2c->Instance->CR1, I2C_CR1_POS); - 80023c8: 68fb ldr r3, [r7, #12] - 80023ca: 681b ldr r3, [r3, #0] - 80023cc: 681a ldr r2, [r3, #0] - 80023ce: 68fb ldr r3, [r7, #12] - 80023d0: 681b ldr r3, [r3, #0] - 80023d2: f422 6200 bic.w r2, r2, #2048 ; 0x800 - 80023d6: 601a str r2, [r3, #0] + 800242c: 68fb ldr r3, [r7, #12] + 800242e: 681b ldr r3, [r3, #0] + 8002430: 681a ldr r2, [r3, #0] + 8002432: 68fb ldr r3, [r7, #12] + 8002434: 681b ldr r3, [r3, #0] + 8002436: f422 6200 bic.w r2, r2, #2048 ; 0x800 + 800243a: 601a str r2, [r3, #0] hi2c->State = HAL_I2C_STATE_BUSY_TX; - 80023d8: 68fb ldr r3, [r7, #12] - 80023da: 2221 movs r2, #33 ; 0x21 - 80023dc: f883 203d strb.w r2, [r3, #61] ; 0x3d + 800243c: 68fb ldr r3, [r7, #12] + 800243e: 2221 movs r2, #33 ; 0x21 + 8002440: f883 203d strb.w r2, [r3, #61] ; 0x3d hi2c->Mode = HAL_I2C_MODE_MEM; - 80023e0: 68fb ldr r3, [r7, #12] - 80023e2: 2240 movs r2, #64 ; 0x40 - 80023e4: f883 203e strb.w r2, [r3, #62] ; 0x3e + 8002444: 68fb ldr r3, [r7, #12] + 8002446: 2240 movs r2, #64 ; 0x40 + 8002448: f883 203e strb.w r2, [r3, #62] ; 0x3e hi2c->ErrorCode = HAL_I2C_ERROR_NONE; - 80023e8: 68fb ldr r3, [r7, #12] - 80023ea: 2200 movs r2, #0 - 80023ec: 641a str r2, [r3, #64] ; 0x40 + 800244c: 68fb ldr r3, [r7, #12] + 800244e: 2200 movs r2, #0 + 8002450: 641a str r2, [r3, #64] ; 0x40 /* Prepare transfer parameters */ hi2c->pBuffPtr = pData; - 80023ee: 68fb ldr r3, [r7, #12] - 80023f0: 6a3a ldr r2, [r7, #32] - 80023f2: 625a str r2, [r3, #36] ; 0x24 + 8002452: 68fb ldr r3, [r7, #12] + 8002454: 6a3a ldr r2, [r7, #32] + 8002456: 625a str r2, [r3, #36] ; 0x24 hi2c->XferCount = Size; - 80023f4: 68fb ldr r3, [r7, #12] - 80023f6: 8cba ldrh r2, [r7, #36] ; 0x24 - 80023f8: 855a strh r2, [r3, #42] ; 0x2a + 8002458: 68fb ldr r3, [r7, #12] + 800245a: 8cba ldrh r2, [r7, #36] ; 0x24 + 800245c: 855a strh r2, [r3, #42] ; 0x2a hi2c->XferSize = hi2c->XferCount; - 80023fa: 68fb ldr r3, [r7, #12] - 80023fc: 8d5b ldrh r3, [r3, #42] ; 0x2a - 80023fe: b29a uxth r2, r3 - 8002400: 68fb ldr r3, [r7, #12] - 8002402: 851a strh r2, [r3, #40] ; 0x28 + 800245e: 68fb ldr r3, [r7, #12] + 8002460: 8d5b ldrh r3, [r3, #42] ; 0x2a + 8002462: b29a uxth r2, r3 + 8002464: 68fb ldr r3, [r7, #12] + 8002466: 851a strh r2, [r3, #40] ; 0x28 hi2c->XferOptions = I2C_NO_OPTION_FRAME; - 8002404: 68fb ldr r3, [r7, #12] - 8002406: 4a4d ldr r2, [pc, #308] ; (800253c ) - 8002408: 62da str r2, [r3, #44] ; 0x2c + 8002468: 68fb ldr r3, [r7, #12] + 800246a: 4a4d ldr r2, [pc, #308] ; (80025a0 ) + 800246c: 62da str r2, [r3, #44] ; 0x2c /* Send Slave Address and Memory Address */ if (I2C_RequestMemoryWrite(hi2c, DevAddress, MemAddress, MemAddSize, Timeout, tickstart) != HAL_OK) - 800240a: 88f8 ldrh r0, [r7, #6] - 800240c: 893a ldrh r2, [r7, #8] - 800240e: 8979 ldrh r1, [r7, #10] - 8002410: 697b ldr r3, [r7, #20] - 8002412: 9301 str r3, [sp, #4] - 8002414: 6abb ldr r3, [r7, #40] ; 0x28 - 8002416: 9300 str r3, [sp, #0] - 8002418: 4603 mov r3, r0 - 800241a: 68f8 ldr r0, [r7, #12] - 800241c: f000 faf8 bl 8002a10 - 8002420: 4603 mov r3, r0 - 8002422: 2b00 cmp r3, #0 - 8002424: d052 beq.n 80024cc + 800246e: 88f8 ldrh r0, [r7, #6] + 8002470: 893a ldrh r2, [r7, #8] + 8002472: 8979 ldrh r1, [r7, #10] + 8002474: 697b ldr r3, [r7, #20] + 8002476: 9301 str r3, [sp, #4] + 8002478: 6abb ldr r3, [r7, #40] ; 0x28 + 800247a: 9300 str r3, [sp, #0] + 800247c: 4603 mov r3, r0 + 800247e: 68f8 ldr r0, [r7, #12] + 8002480: f000 faf8 bl 8002a74 + 8002484: 4603 mov r3, r0 + 8002486: 2b00 cmp r3, #0 + 8002488: d052 beq.n 8002530 { return HAL_ERROR; - 8002426: 2301 movs r3, #1 - 8002428: e081 b.n 800252e + 800248a: 2301 movs r3, #1 + 800248c: e081 b.n 8002592 } while (hi2c->XferSize > 0U) { /* Wait until TXE flag is set */ if (I2C_WaitOnTXEFlagUntilTimeout(hi2c, Timeout, tickstart) != HAL_OK) - 800242a: 697a ldr r2, [r7, #20] - 800242c: 6ab9 ldr r1, [r7, #40] ; 0x28 - 800242e: 68f8 ldr r0, [r7, #12] - 8002430: f000 fd42 bl 8002eb8 - 8002434: 4603 mov r3, r0 - 8002436: 2b00 cmp r3, #0 - 8002438: d00d beq.n 8002456 + 800248e: 697a ldr r2, [r7, #20] + 8002490: 6ab9 ldr r1, [r7, #40] ; 0x28 + 8002492: 68f8 ldr r0, [r7, #12] + 8002494: f000 fd42 bl 8002f1c + 8002498: 4603 mov r3, r0 + 800249a: 2b00 cmp r3, #0 + 800249c: d00d beq.n 80024ba { if (hi2c->ErrorCode == HAL_I2C_ERROR_AF) - 800243a: 68fb ldr r3, [r7, #12] - 800243c: 6c1b ldr r3, [r3, #64] ; 0x40 - 800243e: 2b04 cmp r3, #4 - 8002440: d107 bne.n 8002452 + 800249e: 68fb ldr r3, [r7, #12] + 80024a0: 6c1b ldr r3, [r3, #64] ; 0x40 + 80024a2: 2b04 cmp r3, #4 + 80024a4: d107 bne.n 80024b6 { /* Generate Stop */ SET_BIT(hi2c->Instance->CR1, I2C_CR1_STOP); - 8002442: 68fb ldr r3, [r7, #12] - 8002444: 681b ldr r3, [r3, #0] - 8002446: 681a ldr r2, [r3, #0] - 8002448: 68fb ldr r3, [r7, #12] - 800244a: 681b ldr r3, [r3, #0] - 800244c: f442 7200 orr.w r2, r2, #512 ; 0x200 - 8002450: 601a str r2, [r3, #0] + 80024a6: 68fb ldr r3, [r7, #12] + 80024a8: 681b ldr r3, [r3, #0] + 80024aa: 681a ldr r2, [r3, #0] + 80024ac: 68fb ldr r3, [r7, #12] + 80024ae: 681b ldr r3, [r3, #0] + 80024b0: f442 7200 orr.w r2, r2, #512 ; 0x200 + 80024b4: 601a str r2, [r3, #0] } return HAL_ERROR; - 8002452: 2301 movs r3, #1 - 8002454: e06b b.n 800252e + 80024b6: 2301 movs r3, #1 + 80024b8: e06b b.n 8002592 } /* Write data to DR */ hi2c->Instance->DR = *hi2c->pBuffPtr; - 8002456: 68fb ldr r3, [r7, #12] - 8002458: 6a5b ldr r3, [r3, #36] ; 0x24 - 800245a: 781a ldrb r2, [r3, #0] - 800245c: 68fb ldr r3, [r7, #12] - 800245e: 681b ldr r3, [r3, #0] - 8002460: 611a str r2, [r3, #16] + 80024ba: 68fb ldr r3, [r7, #12] + 80024bc: 6a5b ldr r3, [r3, #36] ; 0x24 + 80024be: 781a ldrb r2, [r3, #0] + 80024c0: 68fb ldr r3, [r7, #12] + 80024c2: 681b ldr r3, [r3, #0] + 80024c4: 611a str r2, [r3, #16] /* Increment Buffer pointer */ hi2c->pBuffPtr++; - 8002462: 68fb ldr r3, [r7, #12] - 8002464: 6a5b ldr r3, [r3, #36] ; 0x24 - 8002466: 1c5a adds r2, r3, #1 - 8002468: 68fb ldr r3, [r7, #12] - 800246a: 625a str r2, [r3, #36] ; 0x24 + 80024c6: 68fb ldr r3, [r7, #12] + 80024c8: 6a5b ldr r3, [r3, #36] ; 0x24 + 80024ca: 1c5a adds r2, r3, #1 + 80024cc: 68fb ldr r3, [r7, #12] + 80024ce: 625a str r2, [r3, #36] ; 0x24 /* Update counter */ hi2c->XferSize--; - 800246c: 68fb ldr r3, [r7, #12] - 800246e: 8d1b ldrh r3, [r3, #40] ; 0x28 - 8002470: 3b01 subs r3, #1 - 8002472: b29a uxth r2, r3 - 8002474: 68fb ldr r3, [r7, #12] - 8002476: 851a strh r2, [r3, #40] ; 0x28 + 80024d0: 68fb ldr r3, [r7, #12] + 80024d2: 8d1b ldrh r3, [r3, #40] ; 0x28 + 80024d4: 3b01 subs r3, #1 + 80024d6: b29a uxth r2, r3 + 80024d8: 68fb ldr r3, [r7, #12] + 80024da: 851a strh r2, [r3, #40] ; 0x28 hi2c->XferCount--; - 8002478: 68fb ldr r3, [r7, #12] - 800247a: 8d5b ldrh r3, [r3, #42] ; 0x2a - 800247c: b29b uxth r3, r3 - 800247e: 3b01 subs r3, #1 - 8002480: b29a uxth r2, r3 - 8002482: 68fb ldr r3, [r7, #12] - 8002484: 855a strh r2, [r3, #42] ; 0x2a + 80024dc: 68fb ldr r3, [r7, #12] + 80024de: 8d5b ldrh r3, [r3, #42] ; 0x2a + 80024e0: b29b uxth r3, r3 + 80024e2: 3b01 subs r3, #1 + 80024e4: b29a uxth r2, r3 + 80024e6: 68fb ldr r3, [r7, #12] + 80024e8: 855a strh r2, [r3, #42] ; 0x2a if ((__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_BTF) == SET) && (hi2c->XferSize != 0U)) - 8002486: 68fb ldr r3, [r7, #12] - 8002488: 681b ldr r3, [r3, #0] - 800248a: 695b ldr r3, [r3, #20] - 800248c: f003 0304 and.w r3, r3, #4 - 8002490: 2b04 cmp r3, #4 - 8002492: d11b bne.n 80024cc - 8002494: 68fb ldr r3, [r7, #12] - 8002496: 8d1b ldrh r3, [r3, #40] ; 0x28 - 8002498: 2b00 cmp r3, #0 - 800249a: d017 beq.n 80024cc + 80024ea: 68fb ldr r3, [r7, #12] + 80024ec: 681b ldr r3, [r3, #0] + 80024ee: 695b ldr r3, [r3, #20] + 80024f0: f003 0304 and.w r3, r3, #4 + 80024f4: 2b04 cmp r3, #4 + 80024f6: d11b bne.n 8002530 + 80024f8: 68fb ldr r3, [r7, #12] + 80024fa: 8d1b ldrh r3, [r3, #40] ; 0x28 + 80024fc: 2b00 cmp r3, #0 + 80024fe: d017 beq.n 8002530 { /* Write data to DR */ hi2c->Instance->DR = *hi2c->pBuffPtr; - 800249c: 68fb ldr r3, [r7, #12] - 800249e: 6a5b ldr r3, [r3, #36] ; 0x24 - 80024a0: 781a ldrb r2, [r3, #0] - 80024a2: 68fb ldr r3, [r7, #12] - 80024a4: 681b ldr r3, [r3, #0] - 80024a6: 611a str r2, [r3, #16] + 8002500: 68fb ldr r3, [r7, #12] + 8002502: 6a5b ldr r3, [r3, #36] ; 0x24 + 8002504: 781a ldrb r2, [r3, #0] + 8002506: 68fb ldr r3, [r7, #12] + 8002508: 681b ldr r3, [r3, #0] + 800250a: 611a str r2, [r3, #16] /* Increment Buffer pointer */ hi2c->pBuffPtr++; - 80024a8: 68fb ldr r3, [r7, #12] - 80024aa: 6a5b ldr r3, [r3, #36] ; 0x24 - 80024ac: 1c5a adds r2, r3, #1 - 80024ae: 68fb ldr r3, [r7, #12] - 80024b0: 625a str r2, [r3, #36] ; 0x24 + 800250c: 68fb ldr r3, [r7, #12] + 800250e: 6a5b ldr r3, [r3, #36] ; 0x24 + 8002510: 1c5a adds r2, r3, #1 + 8002512: 68fb ldr r3, [r7, #12] + 8002514: 625a str r2, [r3, #36] ; 0x24 /* Update counter */ hi2c->XferSize--; - 80024b2: 68fb ldr r3, [r7, #12] - 80024b4: 8d1b ldrh r3, [r3, #40] ; 0x28 - 80024b6: 3b01 subs r3, #1 - 80024b8: b29a uxth r2, r3 - 80024ba: 68fb ldr r3, [r7, #12] - 80024bc: 851a strh r2, [r3, #40] ; 0x28 + 8002516: 68fb ldr r3, [r7, #12] + 8002518: 8d1b ldrh r3, [r3, #40] ; 0x28 + 800251a: 3b01 subs r3, #1 + 800251c: b29a uxth r2, r3 + 800251e: 68fb ldr r3, [r7, #12] + 8002520: 851a strh r2, [r3, #40] ; 0x28 hi2c->XferCount--; - 80024be: 68fb ldr r3, [r7, #12] - 80024c0: 8d5b ldrh r3, [r3, #42] ; 0x2a - 80024c2: b29b uxth r3, r3 - 80024c4: 3b01 subs r3, #1 - 80024c6: b29a uxth r2, r3 - 80024c8: 68fb ldr r3, [r7, #12] - 80024ca: 855a strh r2, [r3, #42] ; 0x2a + 8002522: 68fb ldr r3, [r7, #12] + 8002524: 8d5b ldrh r3, [r3, #42] ; 0x2a + 8002526: b29b uxth r3, r3 + 8002528: 3b01 subs r3, #1 + 800252a: b29a uxth r2, r3 + 800252c: 68fb ldr r3, [r7, #12] + 800252e: 855a strh r2, [r3, #42] ; 0x2a while (hi2c->XferSize > 0U) - 80024cc: 68fb ldr r3, [r7, #12] - 80024ce: 8d1b ldrh r3, [r3, #40] ; 0x28 - 80024d0: 2b00 cmp r3, #0 - 80024d2: d1aa bne.n 800242a + 8002530: 68fb ldr r3, [r7, #12] + 8002532: 8d1b ldrh r3, [r3, #40] ; 0x28 + 8002534: 2b00 cmp r3, #0 + 8002536: d1aa bne.n 800248e } } /* Wait until BTF flag is set */ if (I2C_WaitOnBTFFlagUntilTimeout(hi2c, Timeout, tickstart) != HAL_OK) - 80024d4: 697a ldr r2, [r7, #20] - 80024d6: 6ab9 ldr r1, [r7, #40] ; 0x28 - 80024d8: 68f8 ldr r0, [r7, #12] - 80024da: f000 fd2e bl 8002f3a - 80024de: 4603 mov r3, r0 - 80024e0: 2b00 cmp r3, #0 - 80024e2: d00d beq.n 8002500 + 8002538: 697a ldr r2, [r7, #20] + 800253a: 6ab9 ldr r1, [r7, #40] ; 0x28 + 800253c: 68f8 ldr r0, [r7, #12] + 800253e: f000 fd2e bl 8002f9e + 8002542: 4603 mov r3, r0 + 8002544: 2b00 cmp r3, #0 + 8002546: d00d beq.n 8002564 { if (hi2c->ErrorCode == HAL_I2C_ERROR_AF) - 80024e4: 68fb ldr r3, [r7, #12] - 80024e6: 6c1b ldr r3, [r3, #64] ; 0x40 - 80024e8: 2b04 cmp r3, #4 - 80024ea: d107 bne.n 80024fc + 8002548: 68fb ldr r3, [r7, #12] + 800254a: 6c1b ldr r3, [r3, #64] ; 0x40 + 800254c: 2b04 cmp r3, #4 + 800254e: d107 bne.n 8002560 { /* Generate Stop */ SET_BIT(hi2c->Instance->CR1, I2C_CR1_STOP); - 80024ec: 68fb ldr r3, [r7, #12] - 80024ee: 681b ldr r3, [r3, #0] - 80024f0: 681a ldr r2, [r3, #0] - 80024f2: 68fb ldr r3, [r7, #12] - 80024f4: 681b ldr r3, [r3, #0] - 80024f6: f442 7200 orr.w r2, r2, #512 ; 0x200 - 80024fa: 601a str r2, [r3, #0] + 8002550: 68fb ldr r3, [r7, #12] + 8002552: 681b ldr r3, [r3, #0] + 8002554: 681a ldr r2, [r3, #0] + 8002556: 68fb ldr r3, [r7, #12] + 8002558: 681b ldr r3, [r3, #0] + 800255a: f442 7200 orr.w r2, r2, #512 ; 0x200 + 800255e: 601a str r2, [r3, #0] } return HAL_ERROR; - 80024fc: 2301 movs r3, #1 - 80024fe: e016 b.n 800252e + 8002560: 2301 movs r3, #1 + 8002562: e016 b.n 8002592 } /* Generate Stop */ SET_BIT(hi2c->Instance->CR1, I2C_CR1_STOP); - 8002500: 68fb ldr r3, [r7, #12] - 8002502: 681b ldr r3, [r3, #0] - 8002504: 681a ldr r2, [r3, #0] - 8002506: 68fb ldr r3, [r7, #12] - 8002508: 681b ldr r3, [r3, #0] - 800250a: f442 7200 orr.w r2, r2, #512 ; 0x200 - 800250e: 601a str r2, [r3, #0] + 8002564: 68fb ldr r3, [r7, #12] + 8002566: 681b ldr r3, [r3, #0] + 8002568: 681a ldr r2, [r3, #0] + 800256a: 68fb ldr r3, [r7, #12] + 800256c: 681b ldr r3, [r3, #0] + 800256e: f442 7200 orr.w r2, r2, #512 ; 0x200 + 8002572: 601a str r2, [r3, #0] hi2c->State = HAL_I2C_STATE_READY; - 8002510: 68fb ldr r3, [r7, #12] - 8002512: 2220 movs r2, #32 - 8002514: f883 203d strb.w r2, [r3, #61] ; 0x3d + 8002574: 68fb ldr r3, [r7, #12] + 8002576: 2220 movs r2, #32 + 8002578: f883 203d strb.w r2, [r3, #61] ; 0x3d hi2c->Mode = HAL_I2C_MODE_NONE; - 8002518: 68fb ldr r3, [r7, #12] - 800251a: 2200 movs r2, #0 - 800251c: f883 203e strb.w r2, [r3, #62] ; 0x3e + 800257c: 68fb ldr r3, [r7, #12] + 800257e: 2200 movs r2, #0 + 8002580: f883 203e strb.w r2, [r3, #62] ; 0x3e /* Process Unlocked */ __HAL_UNLOCK(hi2c); - 8002520: 68fb ldr r3, [r7, #12] - 8002522: 2200 movs r2, #0 - 8002524: f883 203c strb.w r2, [r3, #60] ; 0x3c + 8002584: 68fb ldr r3, [r7, #12] + 8002586: 2200 movs r2, #0 + 8002588: f883 203c strb.w r2, [r3, #60] ; 0x3c return HAL_OK; - 8002528: 2300 movs r3, #0 - 800252a: e000 b.n 800252e + 800258c: 2300 movs r3, #0 + 800258e: e000 b.n 8002592 } else { return HAL_BUSY; - 800252c: 2302 movs r3, #2 + 8002590: 2302 movs r3, #2 } } - 800252e: 4618 mov r0, r3 - 8002530: 3718 adds r7, #24 - 8002532: 46bd mov sp, r7 - 8002534: bd80 pop {r7, pc} - 8002536: bf00 nop - 8002538: 00100002 .word 0x00100002 - 800253c: ffff0000 .word 0xffff0000 + 8002592: 4618 mov r0, r3 + 8002594: 3718 adds r7, #24 + 8002596: 46bd mov sp, r7 + 8002598: bd80 pop {r7, pc} + 800259a: bf00 nop + 800259c: 00100002 .word 0x00100002 + 80025a0: ffff0000 .word 0xffff0000 -08002540 : +080025a4 : * @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) { - 8002540: b580 push {r7, lr} - 8002542: b08c sub sp, #48 ; 0x30 - 8002544: af02 add r7, sp, #8 - 8002546: 60f8 str r0, [r7, #12] - 8002548: 4608 mov r0, r1 - 800254a: 4611 mov r1, r2 - 800254c: 461a mov r2, r3 - 800254e: 4603 mov r3, r0 - 8002550: 817b strh r3, [r7, #10] - 8002552: 460b mov r3, r1 - 8002554: 813b strh r3, [r7, #8] - 8002556: 4613 mov r3, r2 - 8002558: 80fb strh r3, [r7, #6] + 80025a4: b580 push {r7, lr} + 80025a6: b08c sub sp, #48 ; 0x30 + 80025a8: af02 add r7, sp, #8 + 80025aa: 60f8 str r0, [r7, #12] + 80025ac: 4608 mov r0, r1 + 80025ae: 4611 mov r1, r2 + 80025b0: 461a mov r2, r3 + 80025b2: 4603 mov r3, r0 + 80025b4: 817b strh r3, [r7, #10] + 80025b6: 460b mov r3, r1 + 80025b8: 813b strh r3, [r7, #8] + 80025ba: 4613 mov r3, r2 + 80025bc: 80fb strh r3, [r7, #6] __IO uint32_t count = 0U; - 800255a: 2300 movs r3, #0 - 800255c: 623b str r3, [r7, #32] + 80025be: 2300 movs r3, #0 + 80025c0: 623b str r3, [r7, #32] /* Init tickstart for timeout management*/ uint32_t tickstart = HAL_GetTick(); - 800255e: f7ff fab1 bl 8001ac4 - 8002562: 6278 str r0, [r7, #36] ; 0x24 + 80025c2: f7ff fab1 bl 8001b28 + 80025c6: 6278 str r0, [r7, #36] ; 0x24 /* Check the parameters */ assert_param(IS_I2C_MEMADD_SIZE(MemAddSize)); if (hi2c->State == HAL_I2C_STATE_READY) - 8002564: 68fb ldr r3, [r7, #12] - 8002566: f893 303d ldrb.w r3, [r3, #61] ; 0x3d - 800256a: b2db uxtb r3, r3 - 800256c: 2b20 cmp r3, #32 - 800256e: f040 8244 bne.w 80029fa + 80025c8: 68fb ldr r3, [r7, #12] + 80025ca: f893 303d ldrb.w r3, [r3, #61] ; 0x3d + 80025ce: b2db uxtb r3, r3 + 80025d0: 2b20 cmp r3, #32 + 80025d2: f040 8244 bne.w 8002a5e { /* Wait until BUSY flag is reset */ if (I2C_WaitOnFlagUntilTimeout(hi2c, I2C_FLAG_BUSY, SET, I2C_TIMEOUT_BUSY_FLAG, tickstart) != HAL_OK) - 8002572: 6a7b ldr r3, [r7, #36] ; 0x24 - 8002574: 9300 str r3, [sp, #0] - 8002576: 2319 movs r3, #25 - 8002578: 2201 movs r2, #1 - 800257a: 4982 ldr r1, [pc, #520] ; (8002784 ) - 800257c: 68f8 ldr r0, [r7, #12] - 800257e: f000 fbc5 bl 8002d0c - 8002582: 4603 mov r3, r0 - 8002584: 2b00 cmp r3, #0 - 8002586: d001 beq.n 800258c + 80025d6: 6a7b ldr r3, [r7, #36] ; 0x24 + 80025d8: 9300 str r3, [sp, #0] + 80025da: 2319 movs r3, #25 + 80025dc: 2201 movs r2, #1 + 80025de: 4982 ldr r1, [pc, #520] ; (80027e8 ) + 80025e0: 68f8 ldr r0, [r7, #12] + 80025e2: f000 fbc5 bl 8002d70 + 80025e6: 4603 mov r3, r0 + 80025e8: 2b00 cmp r3, #0 + 80025ea: d001 beq.n 80025f0 { return HAL_BUSY; - 8002588: 2302 movs r3, #2 - 800258a: e237 b.n 80029fc + 80025ec: 2302 movs r3, #2 + 80025ee: e237 b.n 8002a60 } /* Process Locked */ __HAL_LOCK(hi2c); - 800258c: 68fb ldr r3, [r7, #12] - 800258e: f893 303c ldrb.w r3, [r3, #60] ; 0x3c - 8002592: 2b01 cmp r3, #1 - 8002594: d101 bne.n 800259a - 8002596: 2302 movs r3, #2 - 8002598: e230 b.n 80029fc - 800259a: 68fb ldr r3, [r7, #12] - 800259c: 2201 movs r2, #1 - 800259e: f883 203c strb.w r2, [r3, #60] ; 0x3c + 80025f0: 68fb ldr r3, [r7, #12] + 80025f2: f893 303c ldrb.w r3, [r3, #60] ; 0x3c + 80025f6: 2b01 cmp r3, #1 + 80025f8: d101 bne.n 80025fe + 80025fa: 2302 movs r3, #2 + 80025fc: e230 b.n 8002a60 + 80025fe: 68fb ldr r3, [r7, #12] + 8002600: 2201 movs r2, #1 + 8002602: 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) - 80025a2: 68fb ldr r3, [r7, #12] - 80025a4: 681b ldr r3, [r3, #0] - 80025a6: 681b ldr r3, [r3, #0] - 80025a8: f003 0301 and.w r3, r3, #1 - 80025ac: 2b01 cmp r3, #1 - 80025ae: d007 beq.n 80025c0 + 8002606: 68fb ldr r3, [r7, #12] + 8002608: 681b ldr r3, [r3, #0] + 800260a: 681b ldr r3, [r3, #0] + 800260c: f003 0301 and.w r3, r3, #1 + 8002610: 2b01 cmp r3, #1 + 8002612: d007 beq.n 8002624 { /* Enable I2C peripheral */ __HAL_I2C_ENABLE(hi2c); - 80025b0: 68fb ldr r3, [r7, #12] - 80025b2: 681b ldr r3, [r3, #0] - 80025b4: 681a ldr r2, [r3, #0] - 80025b6: 68fb ldr r3, [r7, #12] - 80025b8: 681b ldr r3, [r3, #0] - 80025ba: f042 0201 orr.w r2, r2, #1 - 80025be: 601a str r2, [r3, #0] + 8002614: 68fb ldr r3, [r7, #12] + 8002616: 681b ldr r3, [r3, #0] + 8002618: 681a ldr r2, [r3, #0] + 800261a: 68fb ldr r3, [r7, #12] + 800261c: 681b ldr r3, [r3, #0] + 800261e: f042 0201 orr.w r2, r2, #1 + 8002622: 601a str r2, [r3, #0] } /* Disable Pos */ CLEAR_BIT(hi2c->Instance->CR1, I2C_CR1_POS); - 80025c0: 68fb ldr r3, [r7, #12] - 80025c2: 681b ldr r3, [r3, #0] - 80025c4: 681a ldr r2, [r3, #0] - 80025c6: 68fb ldr r3, [r7, #12] - 80025c8: 681b ldr r3, [r3, #0] - 80025ca: f422 6200 bic.w r2, r2, #2048 ; 0x800 - 80025ce: 601a str r2, [r3, #0] + 8002624: 68fb ldr r3, [r7, #12] + 8002626: 681b ldr r3, [r3, #0] + 8002628: 681a ldr r2, [r3, #0] + 800262a: 68fb ldr r3, [r7, #12] + 800262c: 681b ldr r3, [r3, #0] + 800262e: f422 6200 bic.w r2, r2, #2048 ; 0x800 + 8002632: 601a str r2, [r3, #0] hi2c->State = HAL_I2C_STATE_BUSY_RX; - 80025d0: 68fb ldr r3, [r7, #12] - 80025d2: 2222 movs r2, #34 ; 0x22 - 80025d4: f883 203d strb.w r2, [r3, #61] ; 0x3d + 8002634: 68fb ldr r3, [r7, #12] + 8002636: 2222 movs r2, #34 ; 0x22 + 8002638: f883 203d strb.w r2, [r3, #61] ; 0x3d hi2c->Mode = HAL_I2C_MODE_MEM; - 80025d8: 68fb ldr r3, [r7, #12] - 80025da: 2240 movs r2, #64 ; 0x40 - 80025dc: f883 203e strb.w r2, [r3, #62] ; 0x3e + 800263c: 68fb ldr r3, [r7, #12] + 800263e: 2240 movs r2, #64 ; 0x40 + 8002640: f883 203e strb.w r2, [r3, #62] ; 0x3e hi2c->ErrorCode = HAL_I2C_ERROR_NONE; - 80025e0: 68fb ldr r3, [r7, #12] - 80025e2: 2200 movs r2, #0 - 80025e4: 641a str r2, [r3, #64] ; 0x40 + 8002644: 68fb ldr r3, [r7, #12] + 8002646: 2200 movs r2, #0 + 8002648: 641a str r2, [r3, #64] ; 0x40 /* Prepare transfer parameters */ hi2c->pBuffPtr = pData; - 80025e6: 68fb ldr r3, [r7, #12] - 80025e8: 6b3a ldr r2, [r7, #48] ; 0x30 - 80025ea: 625a str r2, [r3, #36] ; 0x24 + 800264a: 68fb ldr r3, [r7, #12] + 800264c: 6b3a ldr r2, [r7, #48] ; 0x30 + 800264e: 625a str r2, [r3, #36] ; 0x24 hi2c->XferCount = Size; - 80025ec: 68fb ldr r3, [r7, #12] - 80025ee: 8eba ldrh r2, [r7, #52] ; 0x34 - 80025f0: 855a strh r2, [r3, #42] ; 0x2a + 8002650: 68fb ldr r3, [r7, #12] + 8002652: 8eba ldrh r2, [r7, #52] ; 0x34 + 8002654: 855a strh r2, [r3, #42] ; 0x2a hi2c->XferSize = hi2c->XferCount; - 80025f2: 68fb ldr r3, [r7, #12] - 80025f4: 8d5b ldrh r3, [r3, #42] ; 0x2a - 80025f6: b29a uxth r2, r3 - 80025f8: 68fb ldr r3, [r7, #12] - 80025fa: 851a strh r2, [r3, #40] ; 0x28 + 8002656: 68fb ldr r3, [r7, #12] + 8002658: 8d5b ldrh r3, [r3, #42] ; 0x2a + 800265a: b29a uxth r2, r3 + 800265c: 68fb ldr r3, [r7, #12] + 800265e: 851a strh r2, [r3, #40] ; 0x28 hi2c->XferOptions = I2C_NO_OPTION_FRAME; - 80025fc: 68fb ldr r3, [r7, #12] - 80025fe: 4a62 ldr r2, [pc, #392] ; (8002788 ) - 8002600: 62da str r2, [r3, #44] ; 0x2c + 8002660: 68fb ldr r3, [r7, #12] + 8002662: 4a62 ldr r2, [pc, #392] ; (80027ec ) + 8002664: 62da str r2, [r3, #44] ; 0x2c /* Send Slave Address and Memory Address */ if (I2C_RequestMemoryRead(hi2c, DevAddress, MemAddress, MemAddSize, Timeout, tickstart) != HAL_OK) - 8002602: 88f8 ldrh r0, [r7, #6] - 8002604: 893a ldrh r2, [r7, #8] - 8002606: 8979 ldrh r1, [r7, #10] - 8002608: 6a7b ldr r3, [r7, #36] ; 0x24 - 800260a: 9301 str r3, [sp, #4] - 800260c: 6bbb ldr r3, [r7, #56] ; 0x38 - 800260e: 9300 str r3, [sp, #0] - 8002610: 4603 mov r3, r0 - 8002612: 68f8 ldr r0, [r7, #12] - 8002614: f000 fa92 bl 8002b3c - 8002618: 4603 mov r3, r0 - 800261a: 2b00 cmp r3, #0 - 800261c: d001 beq.n 8002622 + 8002666: 88f8 ldrh r0, [r7, #6] + 8002668: 893a ldrh r2, [r7, #8] + 800266a: 8979 ldrh r1, [r7, #10] + 800266c: 6a7b ldr r3, [r7, #36] ; 0x24 + 800266e: 9301 str r3, [sp, #4] + 8002670: 6bbb ldr r3, [r7, #56] ; 0x38 + 8002672: 9300 str r3, [sp, #0] + 8002674: 4603 mov r3, r0 + 8002676: 68f8 ldr r0, [r7, #12] + 8002678: f000 fa92 bl 8002ba0 + 800267c: 4603 mov r3, r0 + 800267e: 2b00 cmp r3, #0 + 8002680: d001 beq.n 8002686 { return HAL_ERROR; - 800261e: 2301 movs r3, #1 - 8002620: e1ec b.n 80029fc + 8002682: 2301 movs r3, #1 + 8002684: e1ec b.n 8002a60 } if (hi2c->XferSize == 0U) - 8002622: 68fb ldr r3, [r7, #12] - 8002624: 8d1b ldrh r3, [r3, #40] ; 0x28 - 8002626: 2b00 cmp r3, #0 - 8002628: d113 bne.n 8002652 + 8002686: 68fb ldr r3, [r7, #12] + 8002688: 8d1b ldrh r3, [r3, #40] ; 0x28 + 800268a: 2b00 cmp r3, #0 + 800268c: d113 bne.n 80026b6 { /* Clear ADDR flag */ __HAL_I2C_CLEAR_ADDRFLAG(hi2c); - 800262a: 2300 movs r3, #0 - 800262c: 61fb str r3, [r7, #28] - 800262e: 68fb ldr r3, [r7, #12] - 8002630: 681b ldr r3, [r3, #0] - 8002632: 695b ldr r3, [r3, #20] - 8002634: 61fb str r3, [r7, #28] - 8002636: 68fb ldr r3, [r7, #12] - 8002638: 681b ldr r3, [r3, #0] - 800263a: 699b ldr r3, [r3, #24] - 800263c: 61fb str r3, [r7, #28] - 800263e: 69fb ldr r3, [r7, #28] + 800268e: 2300 movs r3, #0 + 8002690: 61fb str r3, [r7, #28] + 8002692: 68fb ldr r3, [r7, #12] + 8002694: 681b ldr r3, [r3, #0] + 8002696: 695b ldr r3, [r3, #20] + 8002698: 61fb str r3, [r7, #28] + 800269a: 68fb ldr r3, [r7, #12] + 800269c: 681b ldr r3, [r3, #0] + 800269e: 699b ldr r3, [r3, #24] + 80026a0: 61fb str r3, [r7, #28] + 80026a2: 69fb ldr r3, [r7, #28] /* Generate Stop */ SET_BIT(hi2c->Instance->CR1, I2C_CR1_STOP); - 8002640: 68fb ldr r3, [r7, #12] - 8002642: 681b ldr r3, [r3, #0] - 8002644: 681a ldr r2, [r3, #0] - 8002646: 68fb ldr r3, [r7, #12] - 8002648: 681b ldr r3, [r3, #0] - 800264a: f442 7200 orr.w r2, r2, #512 ; 0x200 - 800264e: 601a str r2, [r3, #0] - 8002650: e1c0 b.n 80029d4 + 80026a4: 68fb ldr r3, [r7, #12] + 80026a6: 681b ldr r3, [r3, #0] + 80026a8: 681a ldr r2, [r3, #0] + 80026aa: 68fb ldr r3, [r7, #12] + 80026ac: 681b ldr r3, [r3, #0] + 80026ae: f442 7200 orr.w r2, r2, #512 ; 0x200 + 80026b2: 601a str r2, [r3, #0] + 80026b4: e1c0 b.n 8002a38 } else if (hi2c->XferSize == 1U) - 8002652: 68fb ldr r3, [r7, #12] - 8002654: 8d1b ldrh r3, [r3, #40] ; 0x28 - 8002656: 2b01 cmp r3, #1 - 8002658: d11e bne.n 8002698 + 80026b6: 68fb ldr r3, [r7, #12] + 80026b8: 8d1b ldrh r3, [r3, #40] ; 0x28 + 80026ba: 2b01 cmp r3, #1 + 80026bc: d11e bne.n 80026fc { /* Disable Acknowledge */ CLEAR_BIT(hi2c->Instance->CR1, I2C_CR1_ACK); - 800265a: 68fb ldr r3, [r7, #12] - 800265c: 681b ldr r3, [r3, #0] - 800265e: 681a ldr r2, [r3, #0] - 8002660: 68fb ldr r3, [r7, #12] - 8002662: 681b ldr r3, [r3, #0] - 8002664: f422 6280 bic.w r2, r2, #1024 ; 0x400 - 8002668: 601a str r2, [r3, #0] + 80026be: 68fb ldr r3, [r7, #12] + 80026c0: 681b ldr r3, [r3, #0] + 80026c2: 681a ldr r2, [r3, #0] + 80026c4: 68fb ldr r3, [r7, #12] + 80026c6: 681b ldr r3, [r3, #0] + 80026c8: f422 6280 bic.w r2, r2, #1024 ; 0x400 + 80026cc: 601a str r2, [r3, #0] __ASM volatile ("cpsid i" : : : "memory"); - 800266a: b672 cpsid i + 80026ce: b672 cpsid i } - 800266c: bf00 nop + 80026d0: 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); - 800266e: 2300 movs r3, #0 - 8002670: 61bb str r3, [r7, #24] - 8002672: 68fb ldr r3, [r7, #12] - 8002674: 681b ldr r3, [r3, #0] - 8002676: 695b ldr r3, [r3, #20] - 8002678: 61bb str r3, [r7, #24] - 800267a: 68fb ldr r3, [r7, #12] - 800267c: 681b ldr r3, [r3, #0] - 800267e: 699b ldr r3, [r3, #24] - 8002680: 61bb str r3, [r7, #24] - 8002682: 69bb ldr r3, [r7, #24] + 80026d2: 2300 movs r3, #0 + 80026d4: 61bb str r3, [r7, #24] + 80026d6: 68fb ldr r3, [r7, #12] + 80026d8: 681b ldr r3, [r3, #0] + 80026da: 695b ldr r3, [r3, #20] + 80026dc: 61bb str r3, [r7, #24] + 80026de: 68fb ldr r3, [r7, #12] + 80026e0: 681b ldr r3, [r3, #0] + 80026e2: 699b ldr r3, [r3, #24] + 80026e4: 61bb str r3, [r7, #24] + 80026e6: 69bb ldr r3, [r7, #24] /* Generate Stop */ SET_BIT(hi2c->Instance->CR1, I2C_CR1_STOP); - 8002684: 68fb ldr r3, [r7, #12] - 8002686: 681b ldr r3, [r3, #0] - 8002688: 681a ldr r2, [r3, #0] - 800268a: 68fb ldr r3, [r7, #12] - 800268c: 681b ldr r3, [r3, #0] - 800268e: f442 7200 orr.w r2, r2, #512 ; 0x200 - 8002692: 601a str r2, [r3, #0] + 80026e8: 68fb ldr r3, [r7, #12] + 80026ea: 681b ldr r3, [r3, #0] + 80026ec: 681a ldr r2, [r3, #0] + 80026ee: 68fb ldr r3, [r7, #12] + 80026f0: 681b ldr r3, [r3, #0] + 80026f2: f442 7200 orr.w r2, r2, #512 ; 0x200 + 80026f6: 601a str r2, [r3, #0] __ASM volatile ("cpsie i" : : : "memory"); - 8002694: b662 cpsie i + 80026f8: b662 cpsie i } - 8002696: e035 b.n 8002704 + 80026fa: e035 b.n 8002768 /* Re-enable IRQs */ __enable_irq(); } else if (hi2c->XferSize == 2U) - 8002698: 68fb ldr r3, [r7, #12] - 800269a: 8d1b ldrh r3, [r3, #40] ; 0x28 - 800269c: 2b02 cmp r3, #2 - 800269e: d11e bne.n 80026de + 80026fc: 68fb ldr r3, [r7, #12] + 80026fe: 8d1b ldrh r3, [r3, #40] ; 0x28 + 8002700: 2b02 cmp r3, #2 + 8002702: d11e bne.n 8002742 { /* Enable Pos */ SET_BIT(hi2c->Instance->CR1, I2C_CR1_POS); - 80026a0: 68fb ldr r3, [r7, #12] - 80026a2: 681b ldr r3, [r3, #0] - 80026a4: 681a ldr r2, [r3, #0] - 80026a6: 68fb ldr r3, [r7, #12] - 80026a8: 681b ldr r3, [r3, #0] - 80026aa: f442 6200 orr.w r2, r2, #2048 ; 0x800 - 80026ae: 601a str r2, [r3, #0] + 8002704: 68fb ldr r3, [r7, #12] + 8002706: 681b ldr r3, [r3, #0] + 8002708: 681a ldr r2, [r3, #0] + 800270a: 68fb ldr r3, [r7, #12] + 800270c: 681b ldr r3, [r3, #0] + 800270e: f442 6200 orr.w r2, r2, #2048 ; 0x800 + 8002712: 601a str r2, [r3, #0] __ASM volatile ("cpsid i" : : : "memory"); - 80026b0: b672 cpsid i + 8002714: b672 cpsid i } - 80026b2: bf00 nop + 8002716: 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); - 80026b4: 2300 movs r3, #0 - 80026b6: 617b str r3, [r7, #20] - 80026b8: 68fb ldr r3, [r7, #12] - 80026ba: 681b ldr r3, [r3, #0] - 80026bc: 695b ldr r3, [r3, #20] - 80026be: 617b str r3, [r7, #20] - 80026c0: 68fb ldr r3, [r7, #12] - 80026c2: 681b ldr r3, [r3, #0] - 80026c4: 699b ldr r3, [r3, #24] - 80026c6: 617b str r3, [r7, #20] - 80026c8: 697b ldr r3, [r7, #20] + 8002718: 2300 movs r3, #0 + 800271a: 617b str r3, [r7, #20] + 800271c: 68fb ldr r3, [r7, #12] + 800271e: 681b ldr r3, [r3, #0] + 8002720: 695b ldr r3, [r3, #20] + 8002722: 617b str r3, [r7, #20] + 8002724: 68fb ldr r3, [r7, #12] + 8002726: 681b ldr r3, [r3, #0] + 8002728: 699b ldr r3, [r3, #24] + 800272a: 617b str r3, [r7, #20] + 800272c: 697b ldr r3, [r7, #20] /* Disable Acknowledge */ CLEAR_BIT(hi2c->Instance->CR1, I2C_CR1_ACK); - 80026ca: 68fb ldr r3, [r7, #12] - 80026cc: 681b ldr r3, [r3, #0] - 80026ce: 681a ldr r2, [r3, #0] - 80026d0: 68fb ldr r3, [r7, #12] - 80026d2: 681b ldr r3, [r3, #0] - 80026d4: f422 6280 bic.w r2, r2, #1024 ; 0x400 - 80026d8: 601a str r2, [r3, #0] + 800272e: 68fb ldr r3, [r7, #12] + 8002730: 681b ldr r3, [r3, #0] + 8002732: 681a ldr r2, [r3, #0] + 8002734: 68fb ldr r3, [r7, #12] + 8002736: 681b ldr r3, [r3, #0] + 8002738: f422 6280 bic.w r2, r2, #1024 ; 0x400 + 800273c: 601a str r2, [r3, #0] __ASM volatile ("cpsie i" : : : "memory"); - 80026da: b662 cpsie i + 800273e: b662 cpsie i } - 80026dc: e012 b.n 8002704 + 8002740: e012 b.n 8002768 __enable_irq(); } else { /* Enable Acknowledge */ SET_BIT(hi2c->Instance->CR1, I2C_CR1_ACK); - 80026de: 68fb ldr r3, [r7, #12] - 80026e0: 681b ldr r3, [r3, #0] - 80026e2: 681a ldr r2, [r3, #0] - 80026e4: 68fb ldr r3, [r7, #12] - 80026e6: 681b ldr r3, [r3, #0] - 80026e8: f442 6280 orr.w r2, r2, #1024 ; 0x400 - 80026ec: 601a str r2, [r3, #0] + 8002742: 68fb ldr r3, [r7, #12] + 8002744: 681b ldr r3, [r3, #0] + 8002746: 681a ldr r2, [r3, #0] + 8002748: 68fb ldr r3, [r7, #12] + 800274a: 681b ldr r3, [r3, #0] + 800274c: f442 6280 orr.w r2, r2, #1024 ; 0x400 + 8002750: 601a str r2, [r3, #0] /* Clear ADDR flag */ __HAL_I2C_CLEAR_ADDRFLAG(hi2c); - 80026ee: 2300 movs r3, #0 - 80026f0: 613b str r3, [r7, #16] - 80026f2: 68fb ldr r3, [r7, #12] - 80026f4: 681b ldr r3, [r3, #0] - 80026f6: 695b ldr r3, [r3, #20] - 80026f8: 613b str r3, [r7, #16] - 80026fa: 68fb ldr r3, [r7, #12] - 80026fc: 681b ldr r3, [r3, #0] - 80026fe: 699b ldr r3, [r3, #24] - 8002700: 613b str r3, [r7, #16] - 8002702: 693b ldr r3, [r7, #16] + 8002752: 2300 movs r3, #0 + 8002754: 613b str r3, [r7, #16] + 8002756: 68fb ldr r3, [r7, #12] + 8002758: 681b ldr r3, [r3, #0] + 800275a: 695b ldr r3, [r3, #20] + 800275c: 613b str r3, [r7, #16] + 800275e: 68fb ldr r3, [r7, #12] + 8002760: 681b ldr r3, [r3, #0] + 8002762: 699b ldr r3, [r3, #24] + 8002764: 613b str r3, [r7, #16] + 8002766: 693b ldr r3, [r7, #16] } while (hi2c->XferSize > 0U) - 8002704: e166 b.n 80029d4 + 8002768: e166 b.n 8002a38 { if (hi2c->XferSize <= 3U) - 8002706: 68fb ldr r3, [r7, #12] - 8002708: 8d1b ldrh r3, [r3, #40] ; 0x28 - 800270a: 2b03 cmp r3, #3 - 800270c: f200 811f bhi.w 800294e + 800276a: 68fb ldr r3, [r7, #12] + 800276c: 8d1b ldrh r3, [r3, #40] ; 0x28 + 800276e: 2b03 cmp r3, #3 + 8002770: f200 811f bhi.w 80029b2 { /* One byte */ if (hi2c->XferSize == 1U) - 8002710: 68fb ldr r3, [r7, #12] - 8002712: 8d1b ldrh r3, [r3, #40] ; 0x28 - 8002714: 2b01 cmp r3, #1 - 8002716: d123 bne.n 8002760 + 8002774: 68fb ldr r3, [r7, #12] + 8002776: 8d1b ldrh r3, [r3, #40] ; 0x28 + 8002778: 2b01 cmp r3, #1 + 800277a: d123 bne.n 80027c4 { /* Wait until RXNE flag is set */ if (I2C_WaitOnRXNEFlagUntilTimeout(hi2c, Timeout, tickstart) != HAL_OK) - 8002718: 6a7a ldr r2, [r7, #36] ; 0x24 - 800271a: 6bb9 ldr r1, [r7, #56] ; 0x38 - 800271c: 68f8 ldr r0, [r7, #12] - 800271e: f000 fc4d bl 8002fbc - 8002722: 4603 mov r3, r0 - 8002724: 2b00 cmp r3, #0 - 8002726: d001 beq.n 800272c + 800277c: 6a7a ldr r2, [r7, #36] ; 0x24 + 800277e: 6bb9 ldr r1, [r7, #56] ; 0x38 + 8002780: 68f8 ldr r0, [r7, #12] + 8002782: f000 fc4d bl 8003020 + 8002786: 4603 mov r3, r0 + 8002788: 2b00 cmp r3, #0 + 800278a: d001 beq.n 8002790 { return HAL_ERROR; - 8002728: 2301 movs r3, #1 - 800272a: e167 b.n 80029fc + 800278c: 2301 movs r3, #1 + 800278e: e167 b.n 8002a60 } /* Read data from DR */ *hi2c->pBuffPtr = (uint8_t)hi2c->Instance->DR; - 800272c: 68fb ldr r3, [r7, #12] - 800272e: 681b ldr r3, [r3, #0] - 8002730: 691a ldr r2, [r3, #16] - 8002732: 68fb ldr r3, [r7, #12] - 8002734: 6a5b ldr r3, [r3, #36] ; 0x24 - 8002736: b2d2 uxtb r2, r2 - 8002738: 701a strb r2, [r3, #0] + 8002790: 68fb ldr r3, [r7, #12] + 8002792: 681b ldr r3, [r3, #0] + 8002794: 691a ldr r2, [r3, #16] + 8002796: 68fb ldr r3, [r7, #12] + 8002798: 6a5b ldr r3, [r3, #36] ; 0x24 + 800279a: b2d2 uxtb r2, r2 + 800279c: 701a strb r2, [r3, #0] /* Increment Buffer pointer */ hi2c->pBuffPtr++; - 800273a: 68fb ldr r3, [r7, #12] - 800273c: 6a5b ldr r3, [r3, #36] ; 0x24 - 800273e: 1c5a adds r2, r3, #1 - 8002740: 68fb ldr r3, [r7, #12] - 8002742: 625a str r2, [r3, #36] ; 0x24 + 800279e: 68fb ldr r3, [r7, #12] + 80027a0: 6a5b ldr r3, [r3, #36] ; 0x24 + 80027a2: 1c5a adds r2, r3, #1 + 80027a4: 68fb ldr r3, [r7, #12] + 80027a6: 625a str r2, [r3, #36] ; 0x24 /* Update counter */ hi2c->XferSize--; - 8002744: 68fb ldr r3, [r7, #12] - 8002746: 8d1b ldrh r3, [r3, #40] ; 0x28 - 8002748: 3b01 subs r3, #1 - 800274a: b29a uxth r2, r3 - 800274c: 68fb ldr r3, [r7, #12] - 800274e: 851a strh r2, [r3, #40] ; 0x28 + 80027a8: 68fb ldr r3, [r7, #12] + 80027aa: 8d1b ldrh r3, [r3, #40] ; 0x28 + 80027ac: 3b01 subs r3, #1 + 80027ae: b29a uxth r2, r3 + 80027b0: 68fb ldr r3, [r7, #12] + 80027b2: 851a strh r2, [r3, #40] ; 0x28 hi2c->XferCount--; - 8002750: 68fb ldr r3, [r7, #12] - 8002752: 8d5b ldrh r3, [r3, #42] ; 0x2a - 8002754: b29b uxth r3, r3 - 8002756: 3b01 subs r3, #1 - 8002758: b29a uxth r2, r3 - 800275a: 68fb ldr r3, [r7, #12] - 800275c: 855a strh r2, [r3, #42] ; 0x2a - 800275e: e139 b.n 80029d4 + 80027b4: 68fb ldr r3, [r7, #12] + 80027b6: 8d5b ldrh r3, [r3, #42] ; 0x2a + 80027b8: b29b uxth r3, r3 + 80027ba: 3b01 subs r3, #1 + 80027bc: b29a uxth r2, r3 + 80027be: 68fb ldr r3, [r7, #12] + 80027c0: 855a strh r2, [r3, #42] ; 0x2a + 80027c2: e139 b.n 8002a38 } /* Two bytes */ else if (hi2c->XferSize == 2U) - 8002760: 68fb ldr r3, [r7, #12] - 8002762: 8d1b ldrh r3, [r3, #40] ; 0x28 - 8002764: 2b02 cmp r3, #2 - 8002766: d152 bne.n 800280e + 80027c4: 68fb ldr r3, [r7, #12] + 80027c6: 8d1b ldrh r3, [r3, #40] ; 0x28 + 80027c8: 2b02 cmp r3, #2 + 80027ca: d152 bne.n 8002872 { /* Wait until BTF flag is set */ if (I2C_WaitOnFlagUntilTimeout(hi2c, I2C_FLAG_BTF, RESET, Timeout, tickstart) != HAL_OK) - 8002768: 6a7b ldr r3, [r7, #36] ; 0x24 - 800276a: 9300 str r3, [sp, #0] - 800276c: 6bbb ldr r3, [r7, #56] ; 0x38 - 800276e: 2200 movs r2, #0 - 8002770: 4906 ldr r1, [pc, #24] ; (800278c ) - 8002772: 68f8 ldr r0, [r7, #12] - 8002774: f000 faca bl 8002d0c - 8002778: 4603 mov r3, r0 - 800277a: 2b00 cmp r3, #0 - 800277c: d008 beq.n 8002790 + 80027cc: 6a7b ldr r3, [r7, #36] ; 0x24 + 80027ce: 9300 str r3, [sp, #0] + 80027d0: 6bbb ldr r3, [r7, #56] ; 0x38 + 80027d2: 2200 movs r2, #0 + 80027d4: 4906 ldr r1, [pc, #24] ; (80027f0 ) + 80027d6: 68f8 ldr r0, [r7, #12] + 80027d8: f000 faca bl 8002d70 + 80027dc: 4603 mov r3, r0 + 80027de: 2b00 cmp r3, #0 + 80027e0: d008 beq.n 80027f4 { return HAL_ERROR; - 800277e: 2301 movs r3, #1 - 8002780: e13c b.n 80029fc - 8002782: bf00 nop - 8002784: 00100002 .word 0x00100002 - 8002788: ffff0000 .word 0xffff0000 - 800278c: 00010004 .word 0x00010004 + 80027e2: 2301 movs r3, #1 + 80027e4: e13c b.n 8002a60 + 80027e6: bf00 nop + 80027e8: 00100002 .word 0x00100002 + 80027ec: ffff0000 .word 0xffff0000 + 80027f0: 00010004 .word 0x00010004 __ASM volatile ("cpsid i" : : : "memory"); - 8002790: b672 cpsid i + 80027f4: b672 cpsid i } - 8002792: bf00 nop + 80027f6: 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); - 8002794: 68fb ldr r3, [r7, #12] - 8002796: 681b ldr r3, [r3, #0] - 8002798: 681a ldr r2, [r3, #0] - 800279a: 68fb ldr r3, [r7, #12] - 800279c: 681b ldr r3, [r3, #0] - 800279e: f442 7200 orr.w r2, r2, #512 ; 0x200 - 80027a2: 601a str r2, [r3, #0] + 80027f8: 68fb ldr r3, [r7, #12] + 80027fa: 681b ldr r3, [r3, #0] + 80027fc: 681a ldr r2, [r3, #0] + 80027fe: 68fb ldr r3, [r7, #12] + 8002800: 681b ldr r3, [r3, #0] + 8002802: f442 7200 orr.w r2, r2, #512 ; 0x200 + 8002806: 601a str r2, [r3, #0] /* Read data from DR */ *hi2c->pBuffPtr = (uint8_t)hi2c->Instance->DR; - 80027a4: 68fb ldr r3, [r7, #12] - 80027a6: 681b ldr r3, [r3, #0] - 80027a8: 691a ldr r2, [r3, #16] - 80027aa: 68fb ldr r3, [r7, #12] - 80027ac: 6a5b ldr r3, [r3, #36] ; 0x24 - 80027ae: b2d2 uxtb r2, r2 - 80027b0: 701a strb r2, [r3, #0] + 8002808: 68fb ldr r3, [r7, #12] + 800280a: 681b ldr r3, [r3, #0] + 800280c: 691a ldr r2, [r3, #16] + 800280e: 68fb ldr r3, [r7, #12] + 8002810: 6a5b ldr r3, [r3, #36] ; 0x24 + 8002812: b2d2 uxtb r2, r2 + 8002814: 701a strb r2, [r3, #0] /* Increment Buffer pointer */ hi2c->pBuffPtr++; - 80027b2: 68fb ldr r3, [r7, #12] - 80027b4: 6a5b ldr r3, [r3, #36] ; 0x24 - 80027b6: 1c5a adds r2, r3, #1 - 80027b8: 68fb ldr r3, [r7, #12] - 80027ba: 625a str r2, [r3, #36] ; 0x24 + 8002816: 68fb ldr r3, [r7, #12] + 8002818: 6a5b ldr r3, [r3, #36] ; 0x24 + 800281a: 1c5a adds r2, r3, #1 + 800281c: 68fb ldr r3, [r7, #12] + 800281e: 625a str r2, [r3, #36] ; 0x24 /* Update counter */ hi2c->XferSize--; - 80027bc: 68fb ldr r3, [r7, #12] - 80027be: 8d1b ldrh r3, [r3, #40] ; 0x28 - 80027c0: 3b01 subs r3, #1 - 80027c2: b29a uxth r2, r3 - 80027c4: 68fb ldr r3, [r7, #12] - 80027c6: 851a strh r2, [r3, #40] ; 0x28 + 8002820: 68fb ldr r3, [r7, #12] + 8002822: 8d1b ldrh r3, [r3, #40] ; 0x28 + 8002824: 3b01 subs r3, #1 + 8002826: b29a uxth r2, r3 + 8002828: 68fb ldr r3, [r7, #12] + 800282a: 851a strh r2, [r3, #40] ; 0x28 hi2c->XferCount--; - 80027c8: 68fb ldr r3, [r7, #12] - 80027ca: 8d5b ldrh r3, [r3, #42] ; 0x2a - 80027cc: b29b uxth r3, r3 - 80027ce: 3b01 subs r3, #1 - 80027d0: b29a uxth r2, r3 - 80027d2: 68fb ldr r3, [r7, #12] - 80027d4: 855a strh r2, [r3, #42] ; 0x2a + 800282c: 68fb ldr r3, [r7, #12] + 800282e: 8d5b ldrh r3, [r3, #42] ; 0x2a + 8002830: b29b uxth r3, r3 + 8002832: 3b01 subs r3, #1 + 8002834: b29a uxth r2, r3 + 8002836: 68fb ldr r3, [r7, #12] + 8002838: 855a strh r2, [r3, #42] ; 0x2a __ASM volatile ("cpsie i" : : : "memory"); - 80027d6: b662 cpsie i + 800283a: b662 cpsie i } - 80027d8: bf00 nop + 800283c: bf00 nop /* Re-enable IRQs */ __enable_irq(); /* Read data from DR */ *hi2c->pBuffPtr = (uint8_t)hi2c->Instance->DR; - 80027da: 68fb ldr r3, [r7, #12] - 80027dc: 681b ldr r3, [r3, #0] - 80027de: 691a ldr r2, [r3, #16] - 80027e0: 68fb ldr r3, [r7, #12] - 80027e2: 6a5b ldr r3, [r3, #36] ; 0x24 - 80027e4: b2d2 uxtb r2, r2 - 80027e6: 701a strb r2, [r3, #0] + 800283e: 68fb ldr r3, [r7, #12] + 8002840: 681b ldr r3, [r3, #0] + 8002842: 691a ldr r2, [r3, #16] + 8002844: 68fb ldr r3, [r7, #12] + 8002846: 6a5b ldr r3, [r3, #36] ; 0x24 + 8002848: b2d2 uxtb r2, r2 + 800284a: 701a strb r2, [r3, #0] /* Increment Buffer pointer */ hi2c->pBuffPtr++; - 80027e8: 68fb ldr r3, [r7, #12] - 80027ea: 6a5b ldr r3, [r3, #36] ; 0x24 - 80027ec: 1c5a adds r2, r3, #1 - 80027ee: 68fb ldr r3, [r7, #12] - 80027f0: 625a str r2, [r3, #36] ; 0x24 + 800284c: 68fb ldr r3, [r7, #12] + 800284e: 6a5b ldr r3, [r3, #36] ; 0x24 + 8002850: 1c5a adds r2, r3, #1 + 8002852: 68fb ldr r3, [r7, #12] + 8002854: 625a str r2, [r3, #36] ; 0x24 /* Update counter */ hi2c->XferSize--; - 80027f2: 68fb ldr r3, [r7, #12] - 80027f4: 8d1b ldrh r3, [r3, #40] ; 0x28 - 80027f6: 3b01 subs r3, #1 - 80027f8: b29a uxth r2, r3 - 80027fa: 68fb ldr r3, [r7, #12] - 80027fc: 851a strh r2, [r3, #40] ; 0x28 + 8002856: 68fb ldr r3, [r7, #12] + 8002858: 8d1b ldrh r3, [r3, #40] ; 0x28 + 800285a: 3b01 subs r3, #1 + 800285c: b29a uxth r2, r3 + 800285e: 68fb ldr r3, [r7, #12] + 8002860: 851a strh r2, [r3, #40] ; 0x28 hi2c->XferCount--; - 80027fe: 68fb ldr r3, [r7, #12] - 8002800: 8d5b ldrh r3, [r3, #42] ; 0x2a - 8002802: b29b uxth r3, r3 - 8002804: 3b01 subs r3, #1 - 8002806: b29a uxth r2, r3 - 8002808: 68fb ldr r3, [r7, #12] - 800280a: 855a strh r2, [r3, #42] ; 0x2a - 800280c: e0e2 b.n 80029d4 + 8002862: 68fb ldr r3, [r7, #12] + 8002864: 8d5b ldrh r3, [r3, #42] ; 0x2a + 8002866: b29b uxth r3, r3 + 8002868: 3b01 subs r3, #1 + 800286a: b29a uxth r2, r3 + 800286c: 68fb ldr r3, [r7, #12] + 800286e: 855a strh r2, [r3, #42] ; 0x2a + 8002870: e0e2 b.n 8002a38 } /* 3 Last bytes */ else { /* Wait until BTF flag is set */ if (I2C_WaitOnFlagUntilTimeout(hi2c, I2C_FLAG_BTF, RESET, Timeout, tickstart) != HAL_OK) - 800280e: 6a7b ldr r3, [r7, #36] ; 0x24 - 8002810: 9300 str r3, [sp, #0] - 8002812: 6bbb ldr r3, [r7, #56] ; 0x38 - 8002814: 2200 movs r2, #0 - 8002816: 497b ldr r1, [pc, #492] ; (8002a04 ) - 8002818: 68f8 ldr r0, [r7, #12] - 800281a: f000 fa77 bl 8002d0c - 800281e: 4603 mov r3, r0 - 8002820: 2b00 cmp r3, #0 - 8002822: d001 beq.n 8002828 + 8002872: 6a7b ldr r3, [r7, #36] ; 0x24 + 8002874: 9300 str r3, [sp, #0] + 8002876: 6bbb ldr r3, [r7, #56] ; 0x38 + 8002878: 2200 movs r2, #0 + 800287a: 497b ldr r1, [pc, #492] ; (8002a68 ) + 800287c: 68f8 ldr r0, [r7, #12] + 800287e: f000 fa77 bl 8002d70 + 8002882: 4603 mov r3, r0 + 8002884: 2b00 cmp r3, #0 + 8002886: d001 beq.n 800288c { return HAL_ERROR; - 8002824: 2301 movs r3, #1 - 8002826: e0e9 b.n 80029fc + 8002888: 2301 movs r3, #1 + 800288a: e0e9 b.n 8002a60 } /* Disable Acknowledge */ CLEAR_BIT(hi2c->Instance->CR1, I2C_CR1_ACK); - 8002828: 68fb ldr r3, [r7, #12] - 800282a: 681b ldr r3, [r3, #0] - 800282c: 681a ldr r2, [r3, #0] - 800282e: 68fb ldr r3, [r7, #12] - 8002830: 681b ldr r3, [r3, #0] - 8002832: f422 6280 bic.w r2, r2, #1024 ; 0x400 - 8002836: 601a str r2, [r3, #0] + 800288c: 68fb ldr r3, [r7, #12] + 800288e: 681b ldr r3, [r3, #0] + 8002890: 681a ldr r2, [r3, #0] + 8002892: 68fb ldr r3, [r7, #12] + 8002894: 681b ldr r3, [r3, #0] + 8002896: f422 6280 bic.w r2, r2, #1024 ; 0x400 + 800289a: 601a str r2, [r3, #0] __ASM volatile ("cpsid i" : : : "memory"); - 8002838: b672 cpsid i + 800289c: b672 cpsid i } - 800283a: bf00 nop + 800289e: 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; - 800283c: 68fb ldr r3, [r7, #12] - 800283e: 681b ldr r3, [r3, #0] - 8002840: 691a ldr r2, [r3, #16] - 8002842: 68fb ldr r3, [r7, #12] - 8002844: 6a5b ldr r3, [r3, #36] ; 0x24 - 8002846: b2d2 uxtb r2, r2 - 8002848: 701a strb r2, [r3, #0] + 80028a0: 68fb ldr r3, [r7, #12] + 80028a2: 681b ldr r3, [r3, #0] + 80028a4: 691a ldr r2, [r3, #16] + 80028a6: 68fb ldr r3, [r7, #12] + 80028a8: 6a5b ldr r3, [r3, #36] ; 0x24 + 80028aa: b2d2 uxtb r2, r2 + 80028ac: 701a strb r2, [r3, #0] /* Increment Buffer pointer */ hi2c->pBuffPtr++; - 800284a: 68fb ldr r3, [r7, #12] - 800284c: 6a5b ldr r3, [r3, #36] ; 0x24 - 800284e: 1c5a adds r2, r3, #1 - 8002850: 68fb ldr r3, [r7, #12] - 8002852: 625a str r2, [r3, #36] ; 0x24 + 80028ae: 68fb ldr r3, [r7, #12] + 80028b0: 6a5b ldr r3, [r3, #36] ; 0x24 + 80028b2: 1c5a adds r2, r3, #1 + 80028b4: 68fb ldr r3, [r7, #12] + 80028b6: 625a str r2, [r3, #36] ; 0x24 /* Update counter */ hi2c->XferSize--; - 8002854: 68fb ldr r3, [r7, #12] - 8002856: 8d1b ldrh r3, [r3, #40] ; 0x28 - 8002858: 3b01 subs r3, #1 - 800285a: b29a uxth r2, r3 - 800285c: 68fb ldr r3, [r7, #12] - 800285e: 851a strh r2, [r3, #40] ; 0x28 + 80028b8: 68fb ldr r3, [r7, #12] + 80028ba: 8d1b ldrh r3, [r3, #40] ; 0x28 + 80028bc: 3b01 subs r3, #1 + 80028be: b29a uxth r2, r3 + 80028c0: 68fb ldr r3, [r7, #12] + 80028c2: 851a strh r2, [r3, #40] ; 0x28 hi2c->XferCount--; - 8002860: 68fb ldr r3, [r7, #12] - 8002862: 8d5b ldrh r3, [r3, #42] ; 0x2a - 8002864: b29b uxth r3, r3 - 8002866: 3b01 subs r3, #1 - 8002868: b29a uxth r2, r3 - 800286a: 68fb ldr r3, [r7, #12] - 800286c: 855a strh r2, [r3, #42] ; 0x2a + 80028c4: 68fb ldr r3, [r7, #12] + 80028c6: 8d5b ldrh r3, [r3, #42] ; 0x2a + 80028c8: b29b uxth r3, r3 + 80028ca: 3b01 subs r3, #1 + 80028cc: b29a uxth r2, r3 + 80028ce: 68fb ldr r3, [r7, #12] + 80028d0: 855a strh r2, [r3, #42] ; 0x2a /* Wait until BTF flag is set */ count = I2C_TIMEOUT_FLAG * (SystemCoreClock / 25U / 1000U); - 800286e: 4b66 ldr r3, [pc, #408] ; (8002a08 ) - 8002870: 681b ldr r3, [r3, #0] - 8002872: 08db lsrs r3, r3, #3 - 8002874: 4a65 ldr r2, [pc, #404] ; (8002a0c ) - 8002876: fba2 2303 umull r2, r3, r2, r3 - 800287a: 0a1a lsrs r2, r3, #8 - 800287c: 4613 mov r3, r2 - 800287e: 009b lsls r3, r3, #2 - 8002880: 4413 add r3, r2 - 8002882: 00da lsls r2, r3, #3 - 8002884: 1ad3 subs r3, r2, r3 - 8002886: 623b str r3, [r7, #32] + 80028d2: 4b66 ldr r3, [pc, #408] ; (8002a6c ) + 80028d4: 681b ldr r3, [r3, #0] + 80028d6: 08db lsrs r3, r3, #3 + 80028d8: 4a65 ldr r2, [pc, #404] ; (8002a70 ) + 80028da: fba2 2303 umull r2, r3, r2, r3 + 80028de: 0a1a lsrs r2, r3, #8 + 80028e0: 4613 mov r3, r2 + 80028e2: 009b lsls r3, r3, #2 + 80028e4: 4413 add r3, r2 + 80028e6: 00da lsls r2, r3, #3 + 80028e8: 1ad3 subs r3, r2, r3 + 80028ea: 623b str r3, [r7, #32] do { count--; - 8002888: 6a3b ldr r3, [r7, #32] - 800288a: 3b01 subs r3, #1 - 800288c: 623b str r3, [r7, #32] + 80028ec: 6a3b ldr r3, [r7, #32] + 80028ee: 3b01 subs r3, #1 + 80028f0: 623b str r3, [r7, #32] if (count == 0U) - 800288e: 6a3b ldr r3, [r7, #32] - 8002890: 2b00 cmp r3, #0 - 8002892: d118 bne.n 80028c6 + 80028f2: 6a3b ldr r3, [r7, #32] + 80028f4: 2b00 cmp r3, #0 + 80028f6: d118 bne.n 800292a { hi2c->PreviousState = I2C_STATE_NONE; - 8002894: 68fb ldr r3, [r7, #12] - 8002896: 2200 movs r2, #0 - 8002898: 631a str r2, [r3, #48] ; 0x30 + 80028f8: 68fb ldr r3, [r7, #12] + 80028fa: 2200 movs r2, #0 + 80028fc: 631a str r2, [r3, #48] ; 0x30 hi2c->State = HAL_I2C_STATE_READY; - 800289a: 68fb ldr r3, [r7, #12] - 800289c: 2220 movs r2, #32 - 800289e: f883 203d strb.w r2, [r3, #61] ; 0x3d + 80028fe: 68fb ldr r3, [r7, #12] + 8002900: 2220 movs r2, #32 + 8002902: f883 203d strb.w r2, [r3, #61] ; 0x3d hi2c->Mode = HAL_I2C_MODE_NONE; - 80028a2: 68fb ldr r3, [r7, #12] - 80028a4: 2200 movs r2, #0 - 80028a6: f883 203e strb.w r2, [r3, #62] ; 0x3e + 8002906: 68fb ldr r3, [r7, #12] + 8002908: 2200 movs r2, #0 + 800290a: f883 203e strb.w r2, [r3, #62] ; 0x3e hi2c->ErrorCode |= HAL_I2C_ERROR_TIMEOUT; - 80028aa: 68fb ldr r3, [r7, #12] - 80028ac: 6c1b ldr r3, [r3, #64] ; 0x40 - 80028ae: f043 0220 orr.w r2, r3, #32 - 80028b2: 68fb ldr r3, [r7, #12] - 80028b4: 641a str r2, [r3, #64] ; 0x40 + 800290e: 68fb ldr r3, [r7, #12] + 8002910: 6c1b ldr r3, [r3, #64] ; 0x40 + 8002912: f043 0220 orr.w r2, r3, #32 + 8002916: 68fb ldr r3, [r7, #12] + 8002918: 641a str r2, [r3, #64] ; 0x40 __ASM volatile ("cpsie i" : : : "memory"); - 80028b6: b662 cpsie i + 800291a: b662 cpsie i } - 80028b8: bf00 nop + 800291c: bf00 nop /* Re-enable IRQs */ __enable_irq(); /* Process Unlocked */ __HAL_UNLOCK(hi2c); - 80028ba: 68fb ldr r3, [r7, #12] - 80028bc: 2200 movs r2, #0 - 80028be: f883 203c strb.w r2, [r3, #60] ; 0x3c + 800291e: 68fb ldr r3, [r7, #12] + 8002920: 2200 movs r2, #0 + 8002922: f883 203c strb.w r2, [r3, #60] ; 0x3c return HAL_ERROR; - 80028c2: 2301 movs r3, #1 - 80028c4: e09a b.n 80029fc + 8002926: 2301 movs r3, #1 + 8002928: e09a b.n 8002a60 } } while (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_BTF) == RESET); - 80028c6: 68fb ldr r3, [r7, #12] - 80028c8: 681b ldr r3, [r3, #0] - 80028ca: 695b ldr r3, [r3, #20] - 80028cc: f003 0304 and.w r3, r3, #4 - 80028d0: 2b04 cmp r3, #4 - 80028d2: d1d9 bne.n 8002888 + 800292a: 68fb ldr r3, [r7, #12] + 800292c: 681b ldr r3, [r3, #0] + 800292e: 695b ldr r3, [r3, #20] + 8002930: f003 0304 and.w r3, r3, #4 + 8002934: 2b04 cmp r3, #4 + 8002936: d1d9 bne.n 80028ec /* Generate Stop */ SET_BIT(hi2c->Instance->CR1, I2C_CR1_STOP); - 80028d4: 68fb ldr r3, [r7, #12] - 80028d6: 681b ldr r3, [r3, #0] - 80028d8: 681a ldr r2, [r3, #0] - 80028da: 68fb ldr r3, [r7, #12] - 80028dc: 681b ldr r3, [r3, #0] - 80028de: f442 7200 orr.w r2, r2, #512 ; 0x200 - 80028e2: 601a str r2, [r3, #0] + 8002938: 68fb ldr r3, [r7, #12] + 800293a: 681b ldr r3, [r3, #0] + 800293c: 681a ldr r2, [r3, #0] + 800293e: 68fb ldr r3, [r7, #12] + 8002940: 681b ldr r3, [r3, #0] + 8002942: f442 7200 orr.w r2, r2, #512 ; 0x200 + 8002946: 601a str r2, [r3, #0] /* Read data from DR */ *hi2c->pBuffPtr = (uint8_t)hi2c->Instance->DR; - 80028e4: 68fb ldr r3, [r7, #12] - 80028e6: 681b ldr r3, [r3, #0] - 80028e8: 691a ldr r2, [r3, #16] - 80028ea: 68fb ldr r3, [r7, #12] - 80028ec: 6a5b ldr r3, [r3, #36] ; 0x24 - 80028ee: b2d2 uxtb r2, r2 - 80028f0: 701a strb r2, [r3, #0] + 8002948: 68fb ldr r3, [r7, #12] + 800294a: 681b ldr r3, [r3, #0] + 800294c: 691a ldr r2, [r3, #16] + 800294e: 68fb ldr r3, [r7, #12] + 8002950: 6a5b ldr r3, [r3, #36] ; 0x24 + 8002952: b2d2 uxtb r2, r2 + 8002954: 701a strb r2, [r3, #0] /* Increment Buffer pointer */ hi2c->pBuffPtr++; - 80028f2: 68fb ldr r3, [r7, #12] - 80028f4: 6a5b ldr r3, [r3, #36] ; 0x24 - 80028f6: 1c5a adds r2, r3, #1 - 80028f8: 68fb ldr r3, [r7, #12] - 80028fa: 625a str r2, [r3, #36] ; 0x24 + 8002956: 68fb ldr r3, [r7, #12] + 8002958: 6a5b ldr r3, [r3, #36] ; 0x24 + 800295a: 1c5a adds r2, r3, #1 + 800295c: 68fb ldr r3, [r7, #12] + 800295e: 625a str r2, [r3, #36] ; 0x24 /* Update counter */ hi2c->XferSize--; - 80028fc: 68fb ldr r3, [r7, #12] - 80028fe: 8d1b ldrh r3, [r3, #40] ; 0x28 - 8002900: 3b01 subs r3, #1 - 8002902: b29a uxth r2, r3 - 8002904: 68fb ldr r3, [r7, #12] - 8002906: 851a strh r2, [r3, #40] ; 0x28 + 8002960: 68fb ldr r3, [r7, #12] + 8002962: 8d1b ldrh r3, [r3, #40] ; 0x28 + 8002964: 3b01 subs r3, #1 + 8002966: b29a uxth r2, r3 + 8002968: 68fb ldr r3, [r7, #12] + 800296a: 851a strh r2, [r3, #40] ; 0x28 hi2c->XferCount--; - 8002908: 68fb ldr r3, [r7, #12] - 800290a: 8d5b ldrh r3, [r3, #42] ; 0x2a - 800290c: b29b uxth r3, r3 - 800290e: 3b01 subs r3, #1 - 8002910: b29a uxth r2, r3 - 8002912: 68fb ldr r3, [r7, #12] - 8002914: 855a strh r2, [r3, #42] ; 0x2a + 800296c: 68fb ldr r3, [r7, #12] + 800296e: 8d5b ldrh r3, [r3, #42] ; 0x2a + 8002970: b29b uxth r3, r3 + 8002972: 3b01 subs r3, #1 + 8002974: b29a uxth r2, r3 + 8002976: 68fb ldr r3, [r7, #12] + 8002978: 855a strh r2, [r3, #42] ; 0x2a __ASM volatile ("cpsie i" : : : "memory"); - 8002916: b662 cpsie i + 800297a: b662 cpsie i } - 8002918: bf00 nop + 800297c: bf00 nop /* Re-enable IRQs */ __enable_irq(); /* Read data from DR */ *hi2c->pBuffPtr = (uint8_t)hi2c->Instance->DR; - 800291a: 68fb ldr r3, [r7, #12] - 800291c: 681b ldr r3, [r3, #0] - 800291e: 691a ldr r2, [r3, #16] - 8002920: 68fb ldr r3, [r7, #12] - 8002922: 6a5b ldr r3, [r3, #36] ; 0x24 - 8002924: b2d2 uxtb r2, r2 - 8002926: 701a strb r2, [r3, #0] + 800297e: 68fb ldr r3, [r7, #12] + 8002980: 681b ldr r3, [r3, #0] + 8002982: 691a ldr r2, [r3, #16] + 8002984: 68fb ldr r3, [r7, #12] + 8002986: 6a5b ldr r3, [r3, #36] ; 0x24 + 8002988: b2d2 uxtb r2, r2 + 800298a: 701a strb r2, [r3, #0] /* Increment Buffer pointer */ hi2c->pBuffPtr++; - 8002928: 68fb ldr r3, [r7, #12] - 800292a: 6a5b ldr r3, [r3, #36] ; 0x24 - 800292c: 1c5a adds r2, r3, #1 - 800292e: 68fb ldr r3, [r7, #12] - 8002930: 625a str r2, [r3, #36] ; 0x24 + 800298c: 68fb ldr r3, [r7, #12] + 800298e: 6a5b ldr r3, [r3, #36] ; 0x24 + 8002990: 1c5a adds r2, r3, #1 + 8002992: 68fb ldr r3, [r7, #12] + 8002994: 625a str r2, [r3, #36] ; 0x24 /* Update counter */ hi2c->XferSize--; - 8002932: 68fb ldr r3, [r7, #12] - 8002934: 8d1b ldrh r3, [r3, #40] ; 0x28 - 8002936: 3b01 subs r3, #1 - 8002938: b29a uxth r2, r3 - 800293a: 68fb ldr r3, [r7, #12] - 800293c: 851a strh r2, [r3, #40] ; 0x28 + 8002996: 68fb ldr r3, [r7, #12] + 8002998: 8d1b ldrh r3, [r3, #40] ; 0x28 + 800299a: 3b01 subs r3, #1 + 800299c: b29a uxth r2, r3 + 800299e: 68fb ldr r3, [r7, #12] + 80029a0: 851a strh r2, [r3, #40] ; 0x28 hi2c->XferCount--; - 800293e: 68fb ldr r3, [r7, #12] - 8002940: 8d5b ldrh r3, [r3, #42] ; 0x2a - 8002942: b29b uxth r3, r3 - 8002944: 3b01 subs r3, #1 - 8002946: b29a uxth r2, r3 - 8002948: 68fb ldr r3, [r7, #12] - 800294a: 855a strh r2, [r3, #42] ; 0x2a - 800294c: e042 b.n 80029d4 + 80029a2: 68fb ldr r3, [r7, #12] + 80029a4: 8d5b ldrh r3, [r3, #42] ; 0x2a + 80029a6: b29b uxth r3, r3 + 80029a8: 3b01 subs r3, #1 + 80029aa: b29a uxth r2, r3 + 80029ac: 68fb ldr r3, [r7, #12] + 80029ae: 855a strh r2, [r3, #42] ; 0x2a + 80029b0: e042 b.n 8002a38 } } else { /* Wait until RXNE flag is set */ if (I2C_WaitOnRXNEFlagUntilTimeout(hi2c, Timeout, tickstart) != HAL_OK) - 800294e: 6a7a ldr r2, [r7, #36] ; 0x24 - 8002950: 6bb9 ldr r1, [r7, #56] ; 0x38 - 8002952: 68f8 ldr r0, [r7, #12] - 8002954: f000 fb32 bl 8002fbc - 8002958: 4603 mov r3, r0 - 800295a: 2b00 cmp r3, #0 - 800295c: d001 beq.n 8002962 + 80029b2: 6a7a ldr r2, [r7, #36] ; 0x24 + 80029b4: 6bb9 ldr r1, [r7, #56] ; 0x38 + 80029b6: 68f8 ldr r0, [r7, #12] + 80029b8: f000 fb32 bl 8003020 + 80029bc: 4603 mov r3, r0 + 80029be: 2b00 cmp r3, #0 + 80029c0: d001 beq.n 80029c6 { return HAL_ERROR; - 800295e: 2301 movs r3, #1 - 8002960: e04c b.n 80029fc + 80029c2: 2301 movs r3, #1 + 80029c4: e04c b.n 8002a60 } /* Read data from DR */ *hi2c->pBuffPtr = (uint8_t)hi2c->Instance->DR; - 8002962: 68fb ldr r3, [r7, #12] - 8002964: 681b ldr r3, [r3, #0] - 8002966: 691a ldr r2, [r3, #16] - 8002968: 68fb ldr r3, [r7, #12] - 800296a: 6a5b ldr r3, [r3, #36] ; 0x24 - 800296c: b2d2 uxtb r2, r2 - 800296e: 701a strb r2, [r3, #0] + 80029c6: 68fb ldr r3, [r7, #12] + 80029c8: 681b ldr r3, [r3, #0] + 80029ca: 691a ldr r2, [r3, #16] + 80029cc: 68fb ldr r3, [r7, #12] + 80029ce: 6a5b ldr r3, [r3, #36] ; 0x24 + 80029d0: b2d2 uxtb r2, r2 + 80029d2: 701a strb r2, [r3, #0] /* Increment Buffer pointer */ hi2c->pBuffPtr++; - 8002970: 68fb ldr r3, [r7, #12] - 8002972: 6a5b ldr r3, [r3, #36] ; 0x24 - 8002974: 1c5a adds r2, r3, #1 - 8002976: 68fb ldr r3, [r7, #12] - 8002978: 625a str r2, [r3, #36] ; 0x24 + 80029d4: 68fb ldr r3, [r7, #12] + 80029d6: 6a5b ldr r3, [r3, #36] ; 0x24 + 80029d8: 1c5a adds r2, r3, #1 + 80029da: 68fb ldr r3, [r7, #12] + 80029dc: 625a str r2, [r3, #36] ; 0x24 /* Update counter */ hi2c->XferSize--; - 800297a: 68fb ldr r3, [r7, #12] - 800297c: 8d1b ldrh r3, [r3, #40] ; 0x28 - 800297e: 3b01 subs r3, #1 - 8002980: b29a uxth r2, r3 - 8002982: 68fb ldr r3, [r7, #12] - 8002984: 851a strh r2, [r3, #40] ; 0x28 + 80029de: 68fb ldr r3, [r7, #12] + 80029e0: 8d1b ldrh r3, [r3, #40] ; 0x28 + 80029e2: 3b01 subs r3, #1 + 80029e4: b29a uxth r2, r3 + 80029e6: 68fb ldr r3, [r7, #12] + 80029e8: 851a strh r2, [r3, #40] ; 0x28 hi2c->XferCount--; - 8002986: 68fb ldr r3, [r7, #12] - 8002988: 8d5b ldrh r3, [r3, #42] ; 0x2a - 800298a: b29b uxth r3, r3 - 800298c: 3b01 subs r3, #1 - 800298e: b29a uxth r2, r3 - 8002990: 68fb ldr r3, [r7, #12] - 8002992: 855a strh r2, [r3, #42] ; 0x2a + 80029ea: 68fb ldr r3, [r7, #12] + 80029ec: 8d5b ldrh r3, [r3, #42] ; 0x2a + 80029ee: b29b uxth r3, r3 + 80029f0: 3b01 subs r3, #1 + 80029f2: b29a uxth r2, r3 + 80029f4: 68fb ldr r3, [r7, #12] + 80029f6: 855a strh r2, [r3, #42] ; 0x2a if (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_BTF) == SET) - 8002994: 68fb ldr r3, [r7, #12] - 8002996: 681b ldr r3, [r3, #0] - 8002998: 695b ldr r3, [r3, #20] - 800299a: f003 0304 and.w r3, r3, #4 - 800299e: 2b04 cmp r3, #4 - 80029a0: d118 bne.n 80029d4 + 80029f8: 68fb ldr r3, [r7, #12] + 80029fa: 681b ldr r3, [r3, #0] + 80029fc: 695b ldr r3, [r3, #20] + 80029fe: f003 0304 and.w r3, r3, #4 + 8002a02: 2b04 cmp r3, #4 + 8002a04: d118 bne.n 8002a38 { /* Read data from DR */ *hi2c->pBuffPtr = (uint8_t)hi2c->Instance->DR; - 80029a2: 68fb ldr r3, [r7, #12] - 80029a4: 681b ldr r3, [r3, #0] - 80029a6: 691a ldr r2, [r3, #16] - 80029a8: 68fb ldr r3, [r7, #12] - 80029aa: 6a5b ldr r3, [r3, #36] ; 0x24 - 80029ac: b2d2 uxtb r2, r2 - 80029ae: 701a strb r2, [r3, #0] + 8002a06: 68fb ldr r3, [r7, #12] + 8002a08: 681b ldr r3, [r3, #0] + 8002a0a: 691a ldr r2, [r3, #16] + 8002a0c: 68fb ldr r3, [r7, #12] + 8002a0e: 6a5b ldr r3, [r3, #36] ; 0x24 + 8002a10: b2d2 uxtb r2, r2 + 8002a12: 701a strb r2, [r3, #0] /* Increment Buffer pointer */ hi2c->pBuffPtr++; - 80029b0: 68fb ldr r3, [r7, #12] - 80029b2: 6a5b ldr r3, [r3, #36] ; 0x24 - 80029b4: 1c5a adds r2, r3, #1 - 80029b6: 68fb ldr r3, [r7, #12] - 80029b8: 625a str r2, [r3, #36] ; 0x24 + 8002a14: 68fb ldr r3, [r7, #12] + 8002a16: 6a5b ldr r3, [r3, #36] ; 0x24 + 8002a18: 1c5a adds r2, r3, #1 + 8002a1a: 68fb ldr r3, [r7, #12] + 8002a1c: 625a str r2, [r3, #36] ; 0x24 /* Update counter */ hi2c->XferSize--; - 80029ba: 68fb ldr r3, [r7, #12] - 80029bc: 8d1b ldrh r3, [r3, #40] ; 0x28 - 80029be: 3b01 subs r3, #1 - 80029c0: b29a uxth r2, r3 - 80029c2: 68fb ldr r3, [r7, #12] - 80029c4: 851a strh r2, [r3, #40] ; 0x28 + 8002a1e: 68fb ldr r3, [r7, #12] + 8002a20: 8d1b ldrh r3, [r3, #40] ; 0x28 + 8002a22: 3b01 subs r3, #1 + 8002a24: b29a uxth r2, r3 + 8002a26: 68fb ldr r3, [r7, #12] + 8002a28: 851a strh r2, [r3, #40] ; 0x28 hi2c->XferCount--; - 80029c6: 68fb ldr r3, [r7, #12] - 80029c8: 8d5b ldrh r3, [r3, #42] ; 0x2a - 80029ca: b29b uxth r3, r3 - 80029cc: 3b01 subs r3, #1 - 80029ce: b29a uxth r2, r3 - 80029d0: 68fb ldr r3, [r7, #12] - 80029d2: 855a strh r2, [r3, #42] ; 0x2a + 8002a2a: 68fb ldr r3, [r7, #12] + 8002a2c: 8d5b ldrh r3, [r3, #42] ; 0x2a + 8002a2e: b29b uxth r3, r3 + 8002a30: 3b01 subs r3, #1 + 8002a32: b29a uxth r2, r3 + 8002a34: 68fb ldr r3, [r7, #12] + 8002a36: 855a strh r2, [r3, #42] ; 0x2a while (hi2c->XferSize > 0U) - 80029d4: 68fb ldr r3, [r7, #12] - 80029d6: 8d1b ldrh r3, [r3, #40] ; 0x28 - 80029d8: 2b00 cmp r3, #0 - 80029da: f47f ae94 bne.w 8002706 + 8002a38: 68fb ldr r3, [r7, #12] + 8002a3a: 8d1b ldrh r3, [r3, #40] ; 0x28 + 8002a3c: 2b00 cmp r3, #0 + 8002a3e: f47f ae94 bne.w 800276a } } } hi2c->State = HAL_I2C_STATE_READY; - 80029de: 68fb ldr r3, [r7, #12] - 80029e0: 2220 movs r2, #32 - 80029e2: f883 203d strb.w r2, [r3, #61] ; 0x3d + 8002a42: 68fb ldr r3, [r7, #12] + 8002a44: 2220 movs r2, #32 + 8002a46: f883 203d strb.w r2, [r3, #61] ; 0x3d hi2c->Mode = HAL_I2C_MODE_NONE; - 80029e6: 68fb ldr r3, [r7, #12] - 80029e8: 2200 movs r2, #0 - 80029ea: f883 203e strb.w r2, [r3, #62] ; 0x3e + 8002a4a: 68fb ldr r3, [r7, #12] + 8002a4c: 2200 movs r2, #0 + 8002a4e: f883 203e strb.w r2, [r3, #62] ; 0x3e /* Process Unlocked */ __HAL_UNLOCK(hi2c); - 80029ee: 68fb ldr r3, [r7, #12] - 80029f0: 2200 movs r2, #0 - 80029f2: f883 203c strb.w r2, [r3, #60] ; 0x3c + 8002a52: 68fb ldr r3, [r7, #12] + 8002a54: 2200 movs r2, #0 + 8002a56: f883 203c strb.w r2, [r3, #60] ; 0x3c return HAL_OK; - 80029f6: 2300 movs r3, #0 - 80029f8: e000 b.n 80029fc + 8002a5a: 2300 movs r3, #0 + 8002a5c: e000 b.n 8002a60 } else { return HAL_BUSY; - 80029fa: 2302 movs r3, #2 + 8002a5e: 2302 movs r3, #2 } } - 80029fc: 4618 mov r0, r3 - 80029fe: 3728 adds r7, #40 ; 0x28 - 8002a00: 46bd mov sp, r7 - 8002a02: bd80 pop {r7, pc} - 8002a04: 00010004 .word 0x00010004 - 8002a08: 20000000 .word 0x20000000 - 8002a0c: 14f8b589 .word 0x14f8b589 + 8002a60: 4618 mov r0, r3 + 8002a62: 3728 adds r7, #40 ; 0x28 + 8002a64: 46bd mov sp, r7 + 8002a66: bd80 pop {r7, pc} + 8002a68: 00010004 .word 0x00010004 + 8002a6c: 20000000 .word 0x20000000 + 8002a70: 14f8b589 .word 0x14f8b589 -08002a10 : +08002a74 : * @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) { - 8002a10: b580 push {r7, lr} - 8002a12: b088 sub sp, #32 - 8002a14: af02 add r7, sp, #8 - 8002a16: 60f8 str r0, [r7, #12] - 8002a18: 4608 mov r0, r1 - 8002a1a: 4611 mov r1, r2 - 8002a1c: 461a mov r2, r3 - 8002a1e: 4603 mov r3, r0 - 8002a20: 817b strh r3, [r7, #10] - 8002a22: 460b mov r3, r1 - 8002a24: 813b strh r3, [r7, #8] - 8002a26: 4613 mov r3, r2 - 8002a28: 80fb strh r3, [r7, #6] + 8002a74: b580 push {r7, lr} + 8002a76: b088 sub sp, #32 + 8002a78: af02 add r7, sp, #8 + 8002a7a: 60f8 str r0, [r7, #12] + 8002a7c: 4608 mov r0, r1 + 8002a7e: 4611 mov r1, r2 + 8002a80: 461a mov r2, r3 + 8002a82: 4603 mov r3, r0 + 8002a84: 817b strh r3, [r7, #10] + 8002a86: 460b mov r3, r1 + 8002a88: 813b strh r3, [r7, #8] + 8002a8a: 4613 mov r3, r2 + 8002a8c: 80fb strh r3, [r7, #6] /* Generate Start */ SET_BIT(hi2c->Instance->CR1, I2C_CR1_START); - 8002a2a: 68fb ldr r3, [r7, #12] - 8002a2c: 681b ldr r3, [r3, #0] - 8002a2e: 681a ldr r2, [r3, #0] - 8002a30: 68fb ldr r3, [r7, #12] - 8002a32: 681b ldr r3, [r3, #0] - 8002a34: f442 7280 orr.w r2, r2, #256 ; 0x100 - 8002a38: 601a str r2, [r3, #0] + 8002a8e: 68fb ldr r3, [r7, #12] + 8002a90: 681b ldr r3, [r3, #0] + 8002a92: 681a ldr r2, [r3, #0] + 8002a94: 68fb ldr r3, [r7, #12] + 8002a96: 681b ldr r3, [r3, #0] + 8002a98: f442 7280 orr.w r2, r2, #256 ; 0x100 + 8002a9c: 601a str r2, [r3, #0] /* Wait until SB flag is set */ if (I2C_WaitOnFlagUntilTimeout(hi2c, I2C_FLAG_SB, RESET, Timeout, Tickstart) != HAL_OK) - 8002a3a: 6a7b ldr r3, [r7, #36] ; 0x24 - 8002a3c: 9300 str r3, [sp, #0] - 8002a3e: 6a3b ldr r3, [r7, #32] - 8002a40: 2200 movs r2, #0 - 8002a42: f04f 1101 mov.w r1, #65537 ; 0x10001 - 8002a46: 68f8 ldr r0, [r7, #12] - 8002a48: f000 f960 bl 8002d0c - 8002a4c: 4603 mov r3, r0 - 8002a4e: 2b00 cmp r3, #0 - 8002a50: d00d beq.n 8002a6e + 8002a9e: 6a7b ldr r3, [r7, #36] ; 0x24 + 8002aa0: 9300 str r3, [sp, #0] + 8002aa2: 6a3b ldr r3, [r7, #32] + 8002aa4: 2200 movs r2, #0 + 8002aa6: f04f 1101 mov.w r1, #65537 ; 0x10001 + 8002aaa: 68f8 ldr r0, [r7, #12] + 8002aac: f000 f960 bl 8002d70 + 8002ab0: 4603 mov r3, r0 + 8002ab2: 2b00 cmp r3, #0 + 8002ab4: d00d beq.n 8002ad2 { if (READ_BIT(hi2c->Instance->CR1, I2C_CR1_START) == I2C_CR1_START) - 8002a52: 68fb ldr r3, [r7, #12] - 8002a54: 681b ldr r3, [r3, #0] - 8002a56: 681b ldr r3, [r3, #0] - 8002a58: f403 7380 and.w r3, r3, #256 ; 0x100 - 8002a5c: f5b3 7f80 cmp.w r3, #256 ; 0x100 - 8002a60: d103 bne.n 8002a6a + 8002ab6: 68fb ldr r3, [r7, #12] + 8002ab8: 681b ldr r3, [r3, #0] + 8002aba: 681b ldr r3, [r3, #0] + 8002abc: f403 7380 and.w r3, r3, #256 ; 0x100 + 8002ac0: f5b3 7f80 cmp.w r3, #256 ; 0x100 + 8002ac4: d103 bne.n 8002ace { hi2c->ErrorCode = HAL_I2C_WRONG_START; - 8002a62: 68fb ldr r3, [r7, #12] - 8002a64: f44f 7200 mov.w r2, #512 ; 0x200 - 8002a68: 641a str r2, [r3, #64] ; 0x40 + 8002ac6: 68fb ldr r3, [r7, #12] + 8002ac8: f44f 7200 mov.w r2, #512 ; 0x200 + 8002acc: 641a str r2, [r3, #64] ; 0x40 } return HAL_TIMEOUT; - 8002a6a: 2303 movs r3, #3 - 8002a6c: e05f b.n 8002b2e + 8002ace: 2303 movs r3, #3 + 8002ad0: e05f b.n 8002b92 } /* Send slave address */ hi2c->Instance->DR = I2C_7BIT_ADD_WRITE(DevAddress); - 8002a6e: 897b ldrh r3, [r7, #10] - 8002a70: b2db uxtb r3, r3 - 8002a72: 461a mov r2, r3 - 8002a74: 68fb ldr r3, [r7, #12] - 8002a76: 681b ldr r3, [r3, #0] - 8002a78: f002 02fe and.w r2, r2, #254 ; 0xfe - 8002a7c: 611a str r2, [r3, #16] + 8002ad2: 897b ldrh r3, [r7, #10] + 8002ad4: b2db uxtb r3, r3 + 8002ad6: 461a mov r2, r3 + 8002ad8: 68fb ldr r3, [r7, #12] + 8002ada: 681b ldr r3, [r3, #0] + 8002adc: f002 02fe and.w r2, r2, #254 ; 0xfe + 8002ae0: 611a str r2, [r3, #16] /* Wait until ADDR flag is set */ if (I2C_WaitOnMasterAddressFlagUntilTimeout(hi2c, I2C_FLAG_ADDR, Timeout, Tickstart) != HAL_OK) - 8002a7e: 6a7b ldr r3, [r7, #36] ; 0x24 - 8002a80: 6a3a ldr r2, [r7, #32] - 8002a82: 492d ldr r1, [pc, #180] ; (8002b38 ) - 8002a84: 68f8 ldr r0, [r7, #12] - 8002a86: f000 f998 bl 8002dba - 8002a8a: 4603 mov r3, r0 - 8002a8c: 2b00 cmp r3, #0 - 8002a8e: d001 beq.n 8002a94 + 8002ae2: 6a7b ldr r3, [r7, #36] ; 0x24 + 8002ae4: 6a3a ldr r2, [r7, #32] + 8002ae6: 492d ldr r1, [pc, #180] ; (8002b9c ) + 8002ae8: 68f8 ldr r0, [r7, #12] + 8002aea: f000 f998 bl 8002e1e + 8002aee: 4603 mov r3, r0 + 8002af0: 2b00 cmp r3, #0 + 8002af2: d001 beq.n 8002af8 { return HAL_ERROR; - 8002a90: 2301 movs r3, #1 - 8002a92: e04c b.n 8002b2e + 8002af4: 2301 movs r3, #1 + 8002af6: e04c b.n 8002b92 } /* Clear ADDR flag */ __HAL_I2C_CLEAR_ADDRFLAG(hi2c); - 8002a94: 2300 movs r3, #0 - 8002a96: 617b str r3, [r7, #20] - 8002a98: 68fb ldr r3, [r7, #12] - 8002a9a: 681b ldr r3, [r3, #0] - 8002a9c: 695b ldr r3, [r3, #20] - 8002a9e: 617b str r3, [r7, #20] - 8002aa0: 68fb ldr r3, [r7, #12] - 8002aa2: 681b ldr r3, [r3, #0] - 8002aa4: 699b ldr r3, [r3, #24] - 8002aa6: 617b str r3, [r7, #20] - 8002aa8: 697b ldr r3, [r7, #20] + 8002af8: 2300 movs r3, #0 + 8002afa: 617b str r3, [r7, #20] + 8002afc: 68fb ldr r3, [r7, #12] + 8002afe: 681b ldr r3, [r3, #0] + 8002b00: 695b ldr r3, [r3, #20] + 8002b02: 617b str r3, [r7, #20] + 8002b04: 68fb ldr r3, [r7, #12] + 8002b06: 681b ldr r3, [r3, #0] + 8002b08: 699b ldr r3, [r3, #24] + 8002b0a: 617b str r3, [r7, #20] + 8002b0c: 697b ldr r3, [r7, #20] /* Wait until TXE flag is set */ if (I2C_WaitOnTXEFlagUntilTimeout(hi2c, Timeout, Tickstart) != HAL_OK) - 8002aaa: 6a7a ldr r2, [r7, #36] ; 0x24 - 8002aac: 6a39 ldr r1, [r7, #32] - 8002aae: 68f8 ldr r0, [r7, #12] - 8002ab0: f000 fa02 bl 8002eb8 - 8002ab4: 4603 mov r3, r0 - 8002ab6: 2b00 cmp r3, #0 - 8002ab8: d00d beq.n 8002ad6 + 8002b0e: 6a7a ldr r2, [r7, #36] ; 0x24 + 8002b10: 6a39 ldr r1, [r7, #32] + 8002b12: 68f8 ldr r0, [r7, #12] + 8002b14: f000 fa02 bl 8002f1c + 8002b18: 4603 mov r3, r0 + 8002b1a: 2b00 cmp r3, #0 + 8002b1c: d00d beq.n 8002b3a { if (hi2c->ErrorCode == HAL_I2C_ERROR_AF) - 8002aba: 68fb ldr r3, [r7, #12] - 8002abc: 6c1b ldr r3, [r3, #64] ; 0x40 - 8002abe: 2b04 cmp r3, #4 - 8002ac0: d107 bne.n 8002ad2 + 8002b1e: 68fb ldr r3, [r7, #12] + 8002b20: 6c1b ldr r3, [r3, #64] ; 0x40 + 8002b22: 2b04 cmp r3, #4 + 8002b24: d107 bne.n 8002b36 { /* Generate Stop */ SET_BIT(hi2c->Instance->CR1, I2C_CR1_STOP); - 8002ac2: 68fb ldr r3, [r7, #12] - 8002ac4: 681b ldr r3, [r3, #0] - 8002ac6: 681a ldr r2, [r3, #0] - 8002ac8: 68fb ldr r3, [r7, #12] - 8002aca: 681b ldr r3, [r3, #0] - 8002acc: f442 7200 orr.w r2, r2, #512 ; 0x200 - 8002ad0: 601a str r2, [r3, #0] + 8002b26: 68fb ldr r3, [r7, #12] + 8002b28: 681b ldr r3, [r3, #0] + 8002b2a: 681a ldr r2, [r3, #0] + 8002b2c: 68fb ldr r3, [r7, #12] + 8002b2e: 681b ldr r3, [r3, #0] + 8002b30: f442 7200 orr.w r2, r2, #512 ; 0x200 + 8002b34: 601a str r2, [r3, #0] } return HAL_ERROR; - 8002ad2: 2301 movs r3, #1 - 8002ad4: e02b b.n 8002b2e + 8002b36: 2301 movs r3, #1 + 8002b38: e02b b.n 8002b92 } /* If Memory address size is 8Bit */ if (MemAddSize == I2C_MEMADD_SIZE_8BIT) - 8002ad6: 88fb ldrh r3, [r7, #6] - 8002ad8: 2b01 cmp r3, #1 - 8002ada: d105 bne.n 8002ae8 + 8002b3a: 88fb ldrh r3, [r7, #6] + 8002b3c: 2b01 cmp r3, #1 + 8002b3e: d105 bne.n 8002b4c { /* Send Memory Address */ hi2c->Instance->DR = I2C_MEM_ADD_LSB(MemAddress); - 8002adc: 893b ldrh r3, [r7, #8] - 8002ade: b2da uxtb r2, r3 - 8002ae0: 68fb ldr r3, [r7, #12] - 8002ae2: 681b ldr r3, [r3, #0] - 8002ae4: 611a str r2, [r3, #16] - 8002ae6: e021 b.n 8002b2c + 8002b40: 893b ldrh r3, [r7, #8] + 8002b42: b2da uxtb r2, r3 + 8002b44: 68fb ldr r3, [r7, #12] + 8002b46: 681b ldr r3, [r3, #0] + 8002b48: 611a str r2, [r3, #16] + 8002b4a: e021 b.n 8002b90 } /* If Memory address size is 16Bit */ else { /* Send MSB of Memory Address */ hi2c->Instance->DR = I2C_MEM_ADD_MSB(MemAddress); - 8002ae8: 893b ldrh r3, [r7, #8] - 8002aea: 0a1b lsrs r3, r3, #8 - 8002aec: b29b uxth r3, r3 - 8002aee: b2da uxtb r2, r3 - 8002af0: 68fb ldr r3, [r7, #12] - 8002af2: 681b ldr r3, [r3, #0] - 8002af4: 611a str r2, [r3, #16] + 8002b4c: 893b ldrh r3, [r7, #8] + 8002b4e: 0a1b lsrs r3, r3, #8 + 8002b50: b29b uxth r3, r3 + 8002b52: b2da uxtb r2, r3 + 8002b54: 68fb ldr r3, [r7, #12] + 8002b56: 681b ldr r3, [r3, #0] + 8002b58: 611a str r2, [r3, #16] /* Wait until TXE flag is set */ if (I2C_WaitOnTXEFlagUntilTimeout(hi2c, Timeout, Tickstart) != HAL_OK) - 8002af6: 6a7a ldr r2, [r7, #36] ; 0x24 - 8002af8: 6a39 ldr r1, [r7, #32] - 8002afa: 68f8 ldr r0, [r7, #12] - 8002afc: f000 f9dc bl 8002eb8 - 8002b00: 4603 mov r3, r0 - 8002b02: 2b00 cmp r3, #0 - 8002b04: d00d beq.n 8002b22 + 8002b5a: 6a7a ldr r2, [r7, #36] ; 0x24 + 8002b5c: 6a39 ldr r1, [r7, #32] + 8002b5e: 68f8 ldr r0, [r7, #12] + 8002b60: f000 f9dc bl 8002f1c + 8002b64: 4603 mov r3, r0 + 8002b66: 2b00 cmp r3, #0 + 8002b68: d00d beq.n 8002b86 { if (hi2c->ErrorCode == HAL_I2C_ERROR_AF) - 8002b06: 68fb ldr r3, [r7, #12] - 8002b08: 6c1b ldr r3, [r3, #64] ; 0x40 - 8002b0a: 2b04 cmp r3, #4 - 8002b0c: d107 bne.n 8002b1e + 8002b6a: 68fb ldr r3, [r7, #12] + 8002b6c: 6c1b ldr r3, [r3, #64] ; 0x40 + 8002b6e: 2b04 cmp r3, #4 + 8002b70: d107 bne.n 8002b82 { /* Generate Stop */ SET_BIT(hi2c->Instance->CR1, I2C_CR1_STOP); - 8002b0e: 68fb ldr r3, [r7, #12] - 8002b10: 681b ldr r3, [r3, #0] - 8002b12: 681a ldr r2, [r3, #0] - 8002b14: 68fb ldr r3, [r7, #12] - 8002b16: 681b ldr r3, [r3, #0] - 8002b18: f442 7200 orr.w r2, r2, #512 ; 0x200 - 8002b1c: 601a str r2, [r3, #0] + 8002b72: 68fb ldr r3, [r7, #12] + 8002b74: 681b ldr r3, [r3, #0] + 8002b76: 681a ldr r2, [r3, #0] + 8002b78: 68fb ldr r3, [r7, #12] + 8002b7a: 681b ldr r3, [r3, #0] + 8002b7c: f442 7200 orr.w r2, r2, #512 ; 0x200 + 8002b80: 601a str r2, [r3, #0] } return HAL_ERROR; - 8002b1e: 2301 movs r3, #1 - 8002b20: e005 b.n 8002b2e + 8002b82: 2301 movs r3, #1 + 8002b84: e005 b.n 8002b92 } /* Send LSB of Memory Address */ hi2c->Instance->DR = I2C_MEM_ADD_LSB(MemAddress); - 8002b22: 893b ldrh r3, [r7, #8] - 8002b24: b2da uxtb r2, r3 - 8002b26: 68fb ldr r3, [r7, #12] - 8002b28: 681b ldr r3, [r3, #0] - 8002b2a: 611a str r2, [r3, #16] + 8002b86: 893b ldrh r3, [r7, #8] + 8002b88: b2da uxtb r2, r3 + 8002b8a: 68fb ldr r3, [r7, #12] + 8002b8c: 681b ldr r3, [r3, #0] + 8002b8e: 611a str r2, [r3, #16] } return HAL_OK; - 8002b2c: 2300 movs r3, #0 + 8002b90: 2300 movs r3, #0 } - 8002b2e: 4618 mov r0, r3 - 8002b30: 3718 adds r7, #24 - 8002b32: 46bd mov sp, r7 - 8002b34: bd80 pop {r7, pc} - 8002b36: bf00 nop - 8002b38: 00010002 .word 0x00010002 + 8002b92: 4618 mov r0, r3 + 8002b94: 3718 adds r7, #24 + 8002b96: 46bd mov sp, r7 + 8002b98: bd80 pop {r7, pc} + 8002b9a: bf00 nop + 8002b9c: 00010002 .word 0x00010002 -08002b3c : +08002ba0 : * @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) { - 8002b3c: b580 push {r7, lr} - 8002b3e: b088 sub sp, #32 - 8002b40: af02 add r7, sp, #8 - 8002b42: 60f8 str r0, [r7, #12] - 8002b44: 4608 mov r0, r1 - 8002b46: 4611 mov r1, r2 - 8002b48: 461a mov r2, r3 - 8002b4a: 4603 mov r3, r0 - 8002b4c: 817b strh r3, [r7, #10] - 8002b4e: 460b mov r3, r1 - 8002b50: 813b strh r3, [r7, #8] - 8002b52: 4613 mov r3, r2 - 8002b54: 80fb strh r3, [r7, #6] + 8002ba0: b580 push {r7, lr} + 8002ba2: b088 sub sp, #32 + 8002ba4: af02 add r7, sp, #8 + 8002ba6: 60f8 str r0, [r7, #12] + 8002ba8: 4608 mov r0, r1 + 8002baa: 4611 mov r1, r2 + 8002bac: 461a mov r2, r3 + 8002bae: 4603 mov r3, r0 + 8002bb0: 817b strh r3, [r7, #10] + 8002bb2: 460b mov r3, r1 + 8002bb4: 813b strh r3, [r7, #8] + 8002bb6: 4613 mov r3, r2 + 8002bb8: 80fb strh r3, [r7, #6] /* Enable Acknowledge */ SET_BIT(hi2c->Instance->CR1, I2C_CR1_ACK); - 8002b56: 68fb ldr r3, [r7, #12] - 8002b58: 681b ldr r3, [r3, #0] - 8002b5a: 681a ldr r2, [r3, #0] - 8002b5c: 68fb ldr r3, [r7, #12] - 8002b5e: 681b ldr r3, [r3, #0] - 8002b60: f442 6280 orr.w r2, r2, #1024 ; 0x400 - 8002b64: 601a str r2, [r3, #0] + 8002bba: 68fb ldr r3, [r7, #12] + 8002bbc: 681b ldr r3, [r3, #0] + 8002bbe: 681a ldr r2, [r3, #0] + 8002bc0: 68fb ldr r3, [r7, #12] + 8002bc2: 681b ldr r3, [r3, #0] + 8002bc4: f442 6280 orr.w r2, r2, #1024 ; 0x400 + 8002bc8: 601a str r2, [r3, #0] /* Generate Start */ SET_BIT(hi2c->Instance->CR1, I2C_CR1_START); - 8002b66: 68fb ldr r3, [r7, #12] - 8002b68: 681b ldr r3, [r3, #0] - 8002b6a: 681a ldr r2, [r3, #0] - 8002b6c: 68fb ldr r3, [r7, #12] - 8002b6e: 681b ldr r3, [r3, #0] - 8002b70: f442 7280 orr.w r2, r2, #256 ; 0x100 - 8002b74: 601a str r2, [r3, #0] + 8002bca: 68fb ldr r3, [r7, #12] + 8002bcc: 681b ldr r3, [r3, #0] + 8002bce: 681a ldr r2, [r3, #0] + 8002bd0: 68fb ldr r3, [r7, #12] + 8002bd2: 681b ldr r3, [r3, #0] + 8002bd4: f442 7280 orr.w r2, r2, #256 ; 0x100 + 8002bd8: 601a str r2, [r3, #0] /* Wait until SB flag is set */ if (I2C_WaitOnFlagUntilTimeout(hi2c, I2C_FLAG_SB, RESET, Timeout, Tickstart) != HAL_OK) - 8002b76: 6a7b ldr r3, [r7, #36] ; 0x24 - 8002b78: 9300 str r3, [sp, #0] - 8002b7a: 6a3b ldr r3, [r7, #32] - 8002b7c: 2200 movs r2, #0 - 8002b7e: f04f 1101 mov.w r1, #65537 ; 0x10001 - 8002b82: 68f8 ldr r0, [r7, #12] - 8002b84: f000 f8c2 bl 8002d0c - 8002b88: 4603 mov r3, r0 - 8002b8a: 2b00 cmp r3, #0 - 8002b8c: d00d beq.n 8002baa + 8002bda: 6a7b ldr r3, [r7, #36] ; 0x24 + 8002bdc: 9300 str r3, [sp, #0] + 8002bde: 6a3b ldr r3, [r7, #32] + 8002be0: 2200 movs r2, #0 + 8002be2: f04f 1101 mov.w r1, #65537 ; 0x10001 + 8002be6: 68f8 ldr r0, [r7, #12] + 8002be8: f000 f8c2 bl 8002d70 + 8002bec: 4603 mov r3, r0 + 8002bee: 2b00 cmp r3, #0 + 8002bf0: d00d beq.n 8002c0e { if (READ_BIT(hi2c->Instance->CR1, I2C_CR1_START) == I2C_CR1_START) - 8002b8e: 68fb ldr r3, [r7, #12] - 8002b90: 681b ldr r3, [r3, #0] - 8002b92: 681b ldr r3, [r3, #0] - 8002b94: f403 7380 and.w r3, r3, #256 ; 0x100 - 8002b98: f5b3 7f80 cmp.w r3, #256 ; 0x100 - 8002b9c: d103 bne.n 8002ba6 + 8002bf2: 68fb ldr r3, [r7, #12] + 8002bf4: 681b ldr r3, [r3, #0] + 8002bf6: 681b ldr r3, [r3, #0] + 8002bf8: f403 7380 and.w r3, r3, #256 ; 0x100 + 8002bfc: f5b3 7f80 cmp.w r3, #256 ; 0x100 + 8002c00: d103 bne.n 8002c0a { hi2c->ErrorCode = HAL_I2C_WRONG_START; - 8002b9e: 68fb ldr r3, [r7, #12] - 8002ba0: f44f 7200 mov.w r2, #512 ; 0x200 - 8002ba4: 641a str r2, [r3, #64] ; 0x40 + 8002c02: 68fb ldr r3, [r7, #12] + 8002c04: f44f 7200 mov.w r2, #512 ; 0x200 + 8002c08: 641a str r2, [r3, #64] ; 0x40 } return HAL_TIMEOUT; - 8002ba6: 2303 movs r3, #3 - 8002ba8: e0aa b.n 8002d00 + 8002c0a: 2303 movs r3, #3 + 8002c0c: e0aa b.n 8002d64 } /* Send slave address */ hi2c->Instance->DR = I2C_7BIT_ADD_WRITE(DevAddress); - 8002baa: 897b ldrh r3, [r7, #10] - 8002bac: b2db uxtb r3, r3 - 8002bae: 461a mov r2, r3 - 8002bb0: 68fb ldr r3, [r7, #12] - 8002bb2: 681b ldr r3, [r3, #0] - 8002bb4: f002 02fe and.w r2, r2, #254 ; 0xfe - 8002bb8: 611a str r2, [r3, #16] + 8002c0e: 897b ldrh r3, [r7, #10] + 8002c10: b2db uxtb r3, r3 + 8002c12: 461a mov r2, r3 + 8002c14: 68fb ldr r3, [r7, #12] + 8002c16: 681b ldr r3, [r3, #0] + 8002c18: f002 02fe and.w r2, r2, #254 ; 0xfe + 8002c1c: 611a str r2, [r3, #16] /* Wait until ADDR flag is set */ if (I2C_WaitOnMasterAddressFlagUntilTimeout(hi2c, I2C_FLAG_ADDR, Timeout, Tickstart) != HAL_OK) - 8002bba: 6a7b ldr r3, [r7, #36] ; 0x24 - 8002bbc: 6a3a ldr r2, [r7, #32] - 8002bbe: 4952 ldr r1, [pc, #328] ; (8002d08 ) - 8002bc0: 68f8 ldr r0, [r7, #12] - 8002bc2: f000 f8fa bl 8002dba - 8002bc6: 4603 mov r3, r0 - 8002bc8: 2b00 cmp r3, #0 - 8002bca: d001 beq.n 8002bd0 + 8002c1e: 6a7b ldr r3, [r7, #36] ; 0x24 + 8002c20: 6a3a ldr r2, [r7, #32] + 8002c22: 4952 ldr r1, [pc, #328] ; (8002d6c ) + 8002c24: 68f8 ldr r0, [r7, #12] + 8002c26: f000 f8fa bl 8002e1e + 8002c2a: 4603 mov r3, r0 + 8002c2c: 2b00 cmp r3, #0 + 8002c2e: d001 beq.n 8002c34 { return HAL_ERROR; - 8002bcc: 2301 movs r3, #1 - 8002bce: e097 b.n 8002d00 + 8002c30: 2301 movs r3, #1 + 8002c32: e097 b.n 8002d64 } /* Clear ADDR flag */ __HAL_I2C_CLEAR_ADDRFLAG(hi2c); - 8002bd0: 2300 movs r3, #0 - 8002bd2: 617b str r3, [r7, #20] - 8002bd4: 68fb ldr r3, [r7, #12] - 8002bd6: 681b ldr r3, [r3, #0] - 8002bd8: 695b ldr r3, [r3, #20] - 8002bda: 617b str r3, [r7, #20] - 8002bdc: 68fb ldr r3, [r7, #12] - 8002bde: 681b ldr r3, [r3, #0] - 8002be0: 699b ldr r3, [r3, #24] - 8002be2: 617b str r3, [r7, #20] - 8002be4: 697b ldr r3, [r7, #20] + 8002c34: 2300 movs r3, #0 + 8002c36: 617b str r3, [r7, #20] + 8002c38: 68fb ldr r3, [r7, #12] + 8002c3a: 681b ldr r3, [r3, #0] + 8002c3c: 695b ldr r3, [r3, #20] + 8002c3e: 617b str r3, [r7, #20] + 8002c40: 68fb ldr r3, [r7, #12] + 8002c42: 681b ldr r3, [r3, #0] + 8002c44: 699b ldr r3, [r3, #24] + 8002c46: 617b str r3, [r7, #20] + 8002c48: 697b ldr r3, [r7, #20] /* Wait until TXE flag is set */ if (I2C_WaitOnTXEFlagUntilTimeout(hi2c, Timeout, Tickstart) != HAL_OK) - 8002be6: 6a7a ldr r2, [r7, #36] ; 0x24 - 8002be8: 6a39 ldr r1, [r7, #32] - 8002bea: 68f8 ldr r0, [r7, #12] - 8002bec: f000 f964 bl 8002eb8 - 8002bf0: 4603 mov r3, r0 - 8002bf2: 2b00 cmp r3, #0 - 8002bf4: d00d beq.n 8002c12 + 8002c4a: 6a7a ldr r2, [r7, #36] ; 0x24 + 8002c4c: 6a39 ldr r1, [r7, #32] + 8002c4e: 68f8 ldr r0, [r7, #12] + 8002c50: f000 f964 bl 8002f1c + 8002c54: 4603 mov r3, r0 + 8002c56: 2b00 cmp r3, #0 + 8002c58: d00d beq.n 8002c76 { if (hi2c->ErrorCode == HAL_I2C_ERROR_AF) - 8002bf6: 68fb ldr r3, [r7, #12] - 8002bf8: 6c1b ldr r3, [r3, #64] ; 0x40 - 8002bfa: 2b04 cmp r3, #4 - 8002bfc: d107 bne.n 8002c0e + 8002c5a: 68fb ldr r3, [r7, #12] + 8002c5c: 6c1b ldr r3, [r3, #64] ; 0x40 + 8002c5e: 2b04 cmp r3, #4 + 8002c60: d107 bne.n 8002c72 { /* Generate Stop */ SET_BIT(hi2c->Instance->CR1, I2C_CR1_STOP); - 8002bfe: 68fb ldr r3, [r7, #12] - 8002c00: 681b ldr r3, [r3, #0] - 8002c02: 681a ldr r2, [r3, #0] - 8002c04: 68fb ldr r3, [r7, #12] - 8002c06: 681b ldr r3, [r3, #0] - 8002c08: f442 7200 orr.w r2, r2, #512 ; 0x200 - 8002c0c: 601a str r2, [r3, #0] + 8002c62: 68fb ldr r3, [r7, #12] + 8002c64: 681b ldr r3, [r3, #0] + 8002c66: 681a ldr r2, [r3, #0] + 8002c68: 68fb ldr r3, [r7, #12] + 8002c6a: 681b ldr r3, [r3, #0] + 8002c6c: f442 7200 orr.w r2, r2, #512 ; 0x200 + 8002c70: 601a str r2, [r3, #0] } return HAL_ERROR; - 8002c0e: 2301 movs r3, #1 - 8002c10: e076 b.n 8002d00 + 8002c72: 2301 movs r3, #1 + 8002c74: e076 b.n 8002d64 } /* If Memory address size is 8Bit */ if (MemAddSize == I2C_MEMADD_SIZE_8BIT) - 8002c12: 88fb ldrh r3, [r7, #6] - 8002c14: 2b01 cmp r3, #1 - 8002c16: d105 bne.n 8002c24 + 8002c76: 88fb ldrh r3, [r7, #6] + 8002c78: 2b01 cmp r3, #1 + 8002c7a: d105 bne.n 8002c88 { /* Send Memory Address */ hi2c->Instance->DR = I2C_MEM_ADD_LSB(MemAddress); - 8002c18: 893b ldrh r3, [r7, #8] - 8002c1a: b2da uxtb r2, r3 - 8002c1c: 68fb ldr r3, [r7, #12] - 8002c1e: 681b ldr r3, [r3, #0] - 8002c20: 611a str r2, [r3, #16] - 8002c22: e021 b.n 8002c68 + 8002c7c: 893b ldrh r3, [r7, #8] + 8002c7e: b2da uxtb r2, r3 + 8002c80: 68fb ldr r3, [r7, #12] + 8002c82: 681b ldr r3, [r3, #0] + 8002c84: 611a str r2, [r3, #16] + 8002c86: e021 b.n 8002ccc } /* If Memory address size is 16Bit */ else { /* Send MSB of Memory Address */ hi2c->Instance->DR = I2C_MEM_ADD_MSB(MemAddress); - 8002c24: 893b ldrh r3, [r7, #8] - 8002c26: 0a1b lsrs r3, r3, #8 - 8002c28: b29b uxth r3, r3 - 8002c2a: b2da uxtb r2, r3 - 8002c2c: 68fb ldr r3, [r7, #12] - 8002c2e: 681b ldr r3, [r3, #0] - 8002c30: 611a str r2, [r3, #16] + 8002c88: 893b ldrh r3, [r7, #8] + 8002c8a: 0a1b lsrs r3, r3, #8 + 8002c8c: b29b uxth r3, r3 + 8002c8e: b2da uxtb r2, r3 + 8002c90: 68fb ldr r3, [r7, #12] + 8002c92: 681b ldr r3, [r3, #0] + 8002c94: 611a str r2, [r3, #16] /* Wait until TXE flag is set */ if (I2C_WaitOnTXEFlagUntilTimeout(hi2c, Timeout, Tickstart) != HAL_OK) - 8002c32: 6a7a ldr r2, [r7, #36] ; 0x24 - 8002c34: 6a39 ldr r1, [r7, #32] - 8002c36: 68f8 ldr r0, [r7, #12] - 8002c38: f000 f93e bl 8002eb8 - 8002c3c: 4603 mov r3, r0 - 8002c3e: 2b00 cmp r3, #0 - 8002c40: d00d beq.n 8002c5e + 8002c96: 6a7a ldr r2, [r7, #36] ; 0x24 + 8002c98: 6a39 ldr r1, [r7, #32] + 8002c9a: 68f8 ldr r0, [r7, #12] + 8002c9c: f000 f93e bl 8002f1c + 8002ca0: 4603 mov r3, r0 + 8002ca2: 2b00 cmp r3, #0 + 8002ca4: d00d beq.n 8002cc2 { if (hi2c->ErrorCode == HAL_I2C_ERROR_AF) - 8002c42: 68fb ldr r3, [r7, #12] - 8002c44: 6c1b ldr r3, [r3, #64] ; 0x40 - 8002c46: 2b04 cmp r3, #4 - 8002c48: d107 bne.n 8002c5a + 8002ca6: 68fb ldr r3, [r7, #12] + 8002ca8: 6c1b ldr r3, [r3, #64] ; 0x40 + 8002caa: 2b04 cmp r3, #4 + 8002cac: d107 bne.n 8002cbe { /* Generate Stop */ SET_BIT(hi2c->Instance->CR1, I2C_CR1_STOP); - 8002c4a: 68fb ldr r3, [r7, #12] - 8002c4c: 681b ldr r3, [r3, #0] - 8002c4e: 681a ldr r2, [r3, #0] - 8002c50: 68fb ldr r3, [r7, #12] - 8002c52: 681b ldr r3, [r3, #0] - 8002c54: f442 7200 orr.w r2, r2, #512 ; 0x200 - 8002c58: 601a str r2, [r3, #0] + 8002cae: 68fb ldr r3, [r7, #12] + 8002cb0: 681b ldr r3, [r3, #0] + 8002cb2: 681a ldr r2, [r3, #0] + 8002cb4: 68fb ldr r3, [r7, #12] + 8002cb6: 681b ldr r3, [r3, #0] + 8002cb8: f442 7200 orr.w r2, r2, #512 ; 0x200 + 8002cbc: 601a str r2, [r3, #0] } return HAL_ERROR; - 8002c5a: 2301 movs r3, #1 - 8002c5c: e050 b.n 8002d00 + 8002cbe: 2301 movs r3, #1 + 8002cc0: e050 b.n 8002d64 } /* Send LSB of Memory Address */ hi2c->Instance->DR = I2C_MEM_ADD_LSB(MemAddress); - 8002c5e: 893b ldrh r3, [r7, #8] - 8002c60: b2da uxtb r2, r3 - 8002c62: 68fb ldr r3, [r7, #12] - 8002c64: 681b ldr r3, [r3, #0] - 8002c66: 611a str r2, [r3, #16] + 8002cc2: 893b ldrh r3, [r7, #8] + 8002cc4: b2da uxtb r2, r3 + 8002cc6: 68fb ldr r3, [r7, #12] + 8002cc8: 681b ldr r3, [r3, #0] + 8002cca: 611a str r2, [r3, #16] } /* Wait until TXE flag is set */ if (I2C_WaitOnTXEFlagUntilTimeout(hi2c, Timeout, Tickstart) != HAL_OK) - 8002c68: 6a7a ldr r2, [r7, #36] ; 0x24 - 8002c6a: 6a39 ldr r1, [r7, #32] - 8002c6c: 68f8 ldr r0, [r7, #12] - 8002c6e: f000 f923 bl 8002eb8 - 8002c72: 4603 mov r3, r0 - 8002c74: 2b00 cmp r3, #0 - 8002c76: d00d beq.n 8002c94 + 8002ccc: 6a7a ldr r2, [r7, #36] ; 0x24 + 8002cce: 6a39 ldr r1, [r7, #32] + 8002cd0: 68f8 ldr r0, [r7, #12] + 8002cd2: f000 f923 bl 8002f1c + 8002cd6: 4603 mov r3, r0 + 8002cd8: 2b00 cmp r3, #0 + 8002cda: d00d beq.n 8002cf8 { if (hi2c->ErrorCode == HAL_I2C_ERROR_AF) - 8002c78: 68fb ldr r3, [r7, #12] - 8002c7a: 6c1b ldr r3, [r3, #64] ; 0x40 - 8002c7c: 2b04 cmp r3, #4 - 8002c7e: d107 bne.n 8002c90 + 8002cdc: 68fb ldr r3, [r7, #12] + 8002cde: 6c1b ldr r3, [r3, #64] ; 0x40 + 8002ce0: 2b04 cmp r3, #4 + 8002ce2: d107 bne.n 8002cf4 { /* Generate Stop */ SET_BIT(hi2c->Instance->CR1, I2C_CR1_STOP); - 8002c80: 68fb ldr r3, [r7, #12] - 8002c82: 681b ldr r3, [r3, #0] - 8002c84: 681a ldr r2, [r3, #0] - 8002c86: 68fb ldr r3, [r7, #12] - 8002c88: 681b ldr r3, [r3, #0] - 8002c8a: f442 7200 orr.w r2, r2, #512 ; 0x200 - 8002c8e: 601a str r2, [r3, #0] + 8002ce4: 68fb ldr r3, [r7, #12] + 8002ce6: 681b ldr r3, [r3, #0] + 8002ce8: 681a ldr r2, [r3, #0] + 8002cea: 68fb ldr r3, [r7, #12] + 8002cec: 681b ldr r3, [r3, #0] + 8002cee: f442 7200 orr.w r2, r2, #512 ; 0x200 + 8002cf2: 601a str r2, [r3, #0] } return HAL_ERROR; - 8002c90: 2301 movs r3, #1 - 8002c92: e035 b.n 8002d00 + 8002cf4: 2301 movs r3, #1 + 8002cf6: e035 b.n 8002d64 } /* Generate Restart */ SET_BIT(hi2c->Instance->CR1, I2C_CR1_START); - 8002c94: 68fb ldr r3, [r7, #12] - 8002c96: 681b ldr r3, [r3, #0] - 8002c98: 681a ldr r2, [r3, #0] - 8002c9a: 68fb ldr r3, [r7, #12] - 8002c9c: 681b ldr r3, [r3, #0] - 8002c9e: f442 7280 orr.w r2, r2, #256 ; 0x100 - 8002ca2: 601a str r2, [r3, #0] + 8002cf8: 68fb ldr r3, [r7, #12] + 8002cfa: 681b ldr r3, [r3, #0] + 8002cfc: 681a ldr r2, [r3, #0] + 8002cfe: 68fb ldr r3, [r7, #12] + 8002d00: 681b ldr r3, [r3, #0] + 8002d02: f442 7280 orr.w r2, r2, #256 ; 0x100 + 8002d06: 601a str r2, [r3, #0] /* Wait until SB flag is set */ if (I2C_WaitOnFlagUntilTimeout(hi2c, I2C_FLAG_SB, RESET, Timeout, Tickstart) != HAL_OK) - 8002ca4: 6a7b ldr r3, [r7, #36] ; 0x24 - 8002ca6: 9300 str r3, [sp, #0] - 8002ca8: 6a3b ldr r3, [r7, #32] - 8002caa: 2200 movs r2, #0 - 8002cac: f04f 1101 mov.w r1, #65537 ; 0x10001 - 8002cb0: 68f8 ldr r0, [r7, #12] - 8002cb2: f000 f82b bl 8002d0c - 8002cb6: 4603 mov r3, r0 - 8002cb8: 2b00 cmp r3, #0 - 8002cba: d00d beq.n 8002cd8 + 8002d08: 6a7b ldr r3, [r7, #36] ; 0x24 + 8002d0a: 9300 str r3, [sp, #0] + 8002d0c: 6a3b ldr r3, [r7, #32] + 8002d0e: 2200 movs r2, #0 + 8002d10: f04f 1101 mov.w r1, #65537 ; 0x10001 + 8002d14: 68f8 ldr r0, [r7, #12] + 8002d16: f000 f82b bl 8002d70 + 8002d1a: 4603 mov r3, r0 + 8002d1c: 2b00 cmp r3, #0 + 8002d1e: d00d beq.n 8002d3c { if (READ_BIT(hi2c->Instance->CR1, I2C_CR1_START) == I2C_CR1_START) - 8002cbc: 68fb ldr r3, [r7, #12] - 8002cbe: 681b ldr r3, [r3, #0] - 8002cc0: 681b ldr r3, [r3, #0] - 8002cc2: f403 7380 and.w r3, r3, #256 ; 0x100 - 8002cc6: f5b3 7f80 cmp.w r3, #256 ; 0x100 - 8002cca: d103 bne.n 8002cd4 + 8002d20: 68fb ldr r3, [r7, #12] + 8002d22: 681b ldr r3, [r3, #0] + 8002d24: 681b ldr r3, [r3, #0] + 8002d26: f403 7380 and.w r3, r3, #256 ; 0x100 + 8002d2a: f5b3 7f80 cmp.w r3, #256 ; 0x100 + 8002d2e: d103 bne.n 8002d38 { hi2c->ErrorCode = HAL_I2C_WRONG_START; - 8002ccc: 68fb ldr r3, [r7, #12] - 8002cce: f44f 7200 mov.w r2, #512 ; 0x200 - 8002cd2: 641a str r2, [r3, #64] ; 0x40 + 8002d30: 68fb ldr r3, [r7, #12] + 8002d32: f44f 7200 mov.w r2, #512 ; 0x200 + 8002d36: 641a str r2, [r3, #64] ; 0x40 } return HAL_TIMEOUT; - 8002cd4: 2303 movs r3, #3 - 8002cd6: e013 b.n 8002d00 + 8002d38: 2303 movs r3, #3 + 8002d3a: e013 b.n 8002d64 } /* Send slave address */ hi2c->Instance->DR = I2C_7BIT_ADD_READ(DevAddress); - 8002cd8: 897b ldrh r3, [r7, #10] - 8002cda: b2db uxtb r3, r3 - 8002cdc: f043 0301 orr.w r3, r3, #1 - 8002ce0: b2da uxtb r2, r3 - 8002ce2: 68fb ldr r3, [r7, #12] - 8002ce4: 681b ldr r3, [r3, #0] - 8002ce6: 611a str r2, [r3, #16] + 8002d3c: 897b ldrh r3, [r7, #10] + 8002d3e: b2db uxtb r3, r3 + 8002d40: f043 0301 orr.w r3, r3, #1 + 8002d44: b2da uxtb r2, r3 + 8002d46: 68fb ldr r3, [r7, #12] + 8002d48: 681b ldr r3, [r3, #0] + 8002d4a: 611a str r2, [r3, #16] /* Wait until ADDR flag is set */ if (I2C_WaitOnMasterAddressFlagUntilTimeout(hi2c, I2C_FLAG_ADDR, Timeout, Tickstart) != HAL_OK) - 8002ce8: 6a7b ldr r3, [r7, #36] ; 0x24 - 8002cea: 6a3a ldr r2, [r7, #32] - 8002cec: 4906 ldr r1, [pc, #24] ; (8002d08 ) - 8002cee: 68f8 ldr r0, [r7, #12] - 8002cf0: f000 f863 bl 8002dba - 8002cf4: 4603 mov r3, r0 - 8002cf6: 2b00 cmp r3, #0 - 8002cf8: d001 beq.n 8002cfe + 8002d4c: 6a7b ldr r3, [r7, #36] ; 0x24 + 8002d4e: 6a3a ldr r2, [r7, #32] + 8002d50: 4906 ldr r1, [pc, #24] ; (8002d6c ) + 8002d52: 68f8 ldr r0, [r7, #12] + 8002d54: f000 f863 bl 8002e1e + 8002d58: 4603 mov r3, r0 + 8002d5a: 2b00 cmp r3, #0 + 8002d5c: d001 beq.n 8002d62 { return HAL_ERROR; - 8002cfa: 2301 movs r3, #1 - 8002cfc: e000 b.n 8002d00 + 8002d5e: 2301 movs r3, #1 + 8002d60: e000 b.n 8002d64 } return HAL_OK; - 8002cfe: 2300 movs r3, #0 + 8002d62: 2300 movs r3, #0 } - 8002d00: 4618 mov r0, r3 - 8002d02: 3718 adds r7, #24 - 8002d04: 46bd mov sp, r7 - 8002d06: bd80 pop {r7, pc} - 8002d08: 00010002 .word 0x00010002 + 8002d64: 4618 mov r0, r3 + 8002d66: 3718 adds r7, #24 + 8002d68: 46bd mov sp, r7 + 8002d6a: bd80 pop {r7, pc} + 8002d6c: 00010002 .word 0x00010002 -08002d0c : +08002d70 : * @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) { - 8002d0c: b580 push {r7, lr} - 8002d0e: b084 sub sp, #16 - 8002d10: af00 add r7, sp, #0 - 8002d12: 60f8 str r0, [r7, #12] - 8002d14: 60b9 str r1, [r7, #8] - 8002d16: 603b str r3, [r7, #0] - 8002d18: 4613 mov r3, r2 - 8002d1a: 71fb strb r3, [r7, #7] + 8002d70: b580 push {r7, lr} + 8002d72: b084 sub sp, #16 + 8002d74: af00 add r7, sp, #0 + 8002d76: 60f8 str r0, [r7, #12] + 8002d78: 60b9 str r1, [r7, #8] + 8002d7a: 603b str r3, [r7, #0] + 8002d7c: 4613 mov r3, r2 + 8002d7e: 71fb strb r3, [r7, #7] /* Wait until flag is set */ while (__HAL_I2C_GET_FLAG(hi2c, Flag) == Status) - 8002d1c: e025 b.n 8002d6a + 8002d80: e025 b.n 8002dce { /* Check for the Timeout */ if (Timeout != HAL_MAX_DELAY) - 8002d1e: 683b ldr r3, [r7, #0] - 8002d20: f1b3 3fff cmp.w r3, #4294967295 ; 0xffffffff - 8002d24: d021 beq.n 8002d6a + 8002d82: 683b ldr r3, [r7, #0] + 8002d84: f1b3 3fff cmp.w r3, #4294967295 ; 0xffffffff + 8002d88: d021 beq.n 8002dce { if (((HAL_GetTick() - Tickstart) > Timeout) || (Timeout == 0U)) - 8002d26: f7fe fecd bl 8001ac4 - 8002d2a: 4602 mov r2, r0 - 8002d2c: 69bb ldr r3, [r7, #24] - 8002d2e: 1ad3 subs r3, r2, r3 - 8002d30: 683a ldr r2, [r7, #0] - 8002d32: 429a cmp r2, r3 - 8002d34: d302 bcc.n 8002d3c - 8002d36: 683b ldr r3, [r7, #0] - 8002d38: 2b00 cmp r3, #0 - 8002d3a: d116 bne.n 8002d6a + 8002d8a: f7fe fecd bl 8001b28 + 8002d8e: 4602 mov r2, r0 + 8002d90: 69bb ldr r3, [r7, #24] + 8002d92: 1ad3 subs r3, r2, r3 + 8002d94: 683a ldr r2, [r7, #0] + 8002d96: 429a cmp r2, r3 + 8002d98: d302 bcc.n 8002da0 + 8002d9a: 683b ldr r3, [r7, #0] + 8002d9c: 2b00 cmp r3, #0 + 8002d9e: d116 bne.n 8002dce { hi2c->PreviousState = I2C_STATE_NONE; - 8002d3c: 68fb ldr r3, [r7, #12] - 8002d3e: 2200 movs r2, #0 - 8002d40: 631a str r2, [r3, #48] ; 0x30 + 8002da0: 68fb ldr r3, [r7, #12] + 8002da2: 2200 movs r2, #0 + 8002da4: 631a str r2, [r3, #48] ; 0x30 hi2c->State = HAL_I2C_STATE_READY; - 8002d42: 68fb ldr r3, [r7, #12] - 8002d44: 2220 movs r2, #32 - 8002d46: f883 203d strb.w r2, [r3, #61] ; 0x3d + 8002da6: 68fb ldr r3, [r7, #12] + 8002da8: 2220 movs r2, #32 + 8002daa: f883 203d strb.w r2, [r3, #61] ; 0x3d hi2c->Mode = HAL_I2C_MODE_NONE; - 8002d4a: 68fb ldr r3, [r7, #12] - 8002d4c: 2200 movs r2, #0 - 8002d4e: f883 203e strb.w r2, [r3, #62] ; 0x3e + 8002dae: 68fb ldr r3, [r7, #12] + 8002db0: 2200 movs r2, #0 + 8002db2: f883 203e strb.w r2, [r3, #62] ; 0x3e hi2c->ErrorCode |= HAL_I2C_ERROR_TIMEOUT; - 8002d52: 68fb ldr r3, [r7, #12] - 8002d54: 6c1b ldr r3, [r3, #64] ; 0x40 - 8002d56: f043 0220 orr.w r2, r3, #32 - 8002d5a: 68fb ldr r3, [r7, #12] - 8002d5c: 641a str r2, [r3, #64] ; 0x40 + 8002db6: 68fb ldr r3, [r7, #12] + 8002db8: 6c1b ldr r3, [r3, #64] ; 0x40 + 8002dba: f043 0220 orr.w r2, r3, #32 + 8002dbe: 68fb ldr r3, [r7, #12] + 8002dc0: 641a str r2, [r3, #64] ; 0x40 /* Process Unlocked */ __HAL_UNLOCK(hi2c); - 8002d5e: 68fb ldr r3, [r7, #12] - 8002d60: 2200 movs r2, #0 - 8002d62: f883 203c strb.w r2, [r3, #60] ; 0x3c + 8002dc2: 68fb ldr r3, [r7, #12] + 8002dc4: 2200 movs r2, #0 + 8002dc6: f883 203c strb.w r2, [r3, #60] ; 0x3c return HAL_ERROR; - 8002d66: 2301 movs r3, #1 - 8002d68: e023 b.n 8002db2 + 8002dca: 2301 movs r3, #1 + 8002dcc: e023 b.n 8002e16 while (__HAL_I2C_GET_FLAG(hi2c, Flag) == Status) - 8002d6a: 68bb ldr r3, [r7, #8] - 8002d6c: 0c1b lsrs r3, r3, #16 - 8002d6e: b2db uxtb r3, r3 - 8002d70: 2b01 cmp r3, #1 - 8002d72: d10d bne.n 8002d90 - 8002d74: 68fb ldr r3, [r7, #12] - 8002d76: 681b ldr r3, [r3, #0] - 8002d78: 695b ldr r3, [r3, #20] - 8002d7a: 43da mvns r2, r3 - 8002d7c: 68bb ldr r3, [r7, #8] - 8002d7e: 4013 ands r3, r2 - 8002d80: b29b uxth r3, r3 - 8002d82: 2b00 cmp r3, #0 - 8002d84: bf0c ite eq - 8002d86: 2301 moveq r3, #1 - 8002d88: 2300 movne r3, #0 - 8002d8a: b2db uxtb r3, r3 - 8002d8c: 461a mov r2, r3 - 8002d8e: e00c b.n 8002daa - 8002d90: 68fb ldr r3, [r7, #12] - 8002d92: 681b ldr r3, [r3, #0] - 8002d94: 699b ldr r3, [r3, #24] - 8002d96: 43da mvns r2, r3 - 8002d98: 68bb ldr r3, [r7, #8] - 8002d9a: 4013 ands r3, r2 - 8002d9c: b29b uxth r3, r3 - 8002d9e: 2b00 cmp r3, #0 - 8002da0: bf0c ite eq - 8002da2: 2301 moveq r3, #1 - 8002da4: 2300 movne r3, #0 - 8002da6: b2db uxtb r3, r3 - 8002da8: 461a mov r2, r3 - 8002daa: 79fb ldrb r3, [r7, #7] - 8002dac: 429a cmp r2, r3 - 8002dae: d0b6 beq.n 8002d1e + 8002dce: 68bb ldr r3, [r7, #8] + 8002dd0: 0c1b lsrs r3, r3, #16 + 8002dd2: b2db uxtb r3, r3 + 8002dd4: 2b01 cmp r3, #1 + 8002dd6: d10d bne.n 8002df4 + 8002dd8: 68fb ldr r3, [r7, #12] + 8002dda: 681b ldr r3, [r3, #0] + 8002ddc: 695b ldr r3, [r3, #20] + 8002dde: 43da mvns r2, r3 + 8002de0: 68bb ldr r3, [r7, #8] + 8002de2: 4013 ands r3, r2 + 8002de4: b29b uxth r3, r3 + 8002de6: 2b00 cmp r3, #0 + 8002de8: bf0c ite eq + 8002dea: 2301 moveq r3, #1 + 8002dec: 2300 movne r3, #0 + 8002dee: b2db uxtb r3, r3 + 8002df0: 461a mov r2, r3 + 8002df2: e00c b.n 8002e0e + 8002df4: 68fb ldr r3, [r7, #12] + 8002df6: 681b ldr r3, [r3, #0] + 8002df8: 699b ldr r3, [r3, #24] + 8002dfa: 43da mvns r2, r3 + 8002dfc: 68bb ldr r3, [r7, #8] + 8002dfe: 4013 ands r3, r2 + 8002e00: b29b uxth r3, r3 + 8002e02: 2b00 cmp r3, #0 + 8002e04: bf0c ite eq + 8002e06: 2301 moveq r3, #1 + 8002e08: 2300 movne r3, #0 + 8002e0a: b2db uxtb r3, r3 + 8002e0c: 461a mov r2, r3 + 8002e0e: 79fb ldrb r3, [r7, #7] + 8002e10: 429a cmp r2, r3 + 8002e12: d0b6 beq.n 8002d82 } } } return HAL_OK; - 8002db0: 2300 movs r3, #0 + 8002e14: 2300 movs r3, #0 } - 8002db2: 4618 mov r0, r3 - 8002db4: 3710 adds r7, #16 - 8002db6: 46bd mov sp, r7 - 8002db8: bd80 pop {r7, pc} + 8002e16: 4618 mov r0, r3 + 8002e18: 3710 adds r7, #16 + 8002e1a: 46bd mov sp, r7 + 8002e1c: bd80 pop {r7, pc} -08002dba : +08002e1e : * @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) { - 8002dba: b580 push {r7, lr} - 8002dbc: b084 sub sp, #16 - 8002dbe: af00 add r7, sp, #0 - 8002dc0: 60f8 str r0, [r7, #12] - 8002dc2: 60b9 str r1, [r7, #8] - 8002dc4: 607a str r2, [r7, #4] - 8002dc6: 603b str r3, [r7, #0] + 8002e1e: b580 push {r7, lr} + 8002e20: b084 sub sp, #16 + 8002e22: af00 add r7, sp, #0 + 8002e24: 60f8 str r0, [r7, #12] + 8002e26: 60b9 str r1, [r7, #8] + 8002e28: 607a str r2, [r7, #4] + 8002e2a: 603b str r3, [r7, #0] while (__HAL_I2C_GET_FLAG(hi2c, Flag) == RESET) - 8002dc8: e051 b.n 8002e6e + 8002e2c: e051 b.n 8002ed2 { if (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_AF) == SET) - 8002dca: 68fb ldr r3, [r7, #12] - 8002dcc: 681b ldr r3, [r3, #0] - 8002dce: 695b ldr r3, [r3, #20] - 8002dd0: f403 6380 and.w r3, r3, #1024 ; 0x400 - 8002dd4: f5b3 6f80 cmp.w r3, #1024 ; 0x400 - 8002dd8: d123 bne.n 8002e22 + 8002e2e: 68fb ldr r3, [r7, #12] + 8002e30: 681b ldr r3, [r3, #0] + 8002e32: 695b ldr r3, [r3, #20] + 8002e34: f403 6380 and.w r3, r3, #1024 ; 0x400 + 8002e38: f5b3 6f80 cmp.w r3, #1024 ; 0x400 + 8002e3c: d123 bne.n 8002e86 { /* Generate Stop */ SET_BIT(hi2c->Instance->CR1, I2C_CR1_STOP); - 8002dda: 68fb ldr r3, [r7, #12] - 8002ddc: 681b ldr r3, [r3, #0] - 8002dde: 681a ldr r2, [r3, #0] - 8002de0: 68fb ldr r3, [r7, #12] - 8002de2: 681b ldr r3, [r3, #0] - 8002de4: f442 7200 orr.w r2, r2, #512 ; 0x200 - 8002de8: 601a str r2, [r3, #0] + 8002e3e: 68fb ldr r3, [r7, #12] + 8002e40: 681b ldr r3, [r3, #0] + 8002e42: 681a ldr r2, [r3, #0] + 8002e44: 68fb ldr r3, [r7, #12] + 8002e46: 681b ldr r3, [r3, #0] + 8002e48: f442 7200 orr.w r2, r2, #512 ; 0x200 + 8002e4c: 601a str r2, [r3, #0] /* Clear AF Flag */ __HAL_I2C_CLEAR_FLAG(hi2c, I2C_FLAG_AF); - 8002dea: 68fb ldr r3, [r7, #12] - 8002dec: 681b ldr r3, [r3, #0] - 8002dee: f46f 6280 mvn.w r2, #1024 ; 0x400 - 8002df2: 615a str r2, [r3, #20] + 8002e4e: 68fb ldr r3, [r7, #12] + 8002e50: 681b ldr r3, [r3, #0] + 8002e52: f46f 6280 mvn.w r2, #1024 ; 0x400 + 8002e56: 615a str r2, [r3, #20] hi2c->PreviousState = I2C_STATE_NONE; - 8002df4: 68fb ldr r3, [r7, #12] - 8002df6: 2200 movs r2, #0 - 8002df8: 631a str r2, [r3, #48] ; 0x30 + 8002e58: 68fb ldr r3, [r7, #12] + 8002e5a: 2200 movs r2, #0 + 8002e5c: 631a str r2, [r3, #48] ; 0x30 hi2c->State = HAL_I2C_STATE_READY; - 8002dfa: 68fb ldr r3, [r7, #12] - 8002dfc: 2220 movs r2, #32 - 8002dfe: f883 203d strb.w r2, [r3, #61] ; 0x3d + 8002e5e: 68fb ldr r3, [r7, #12] + 8002e60: 2220 movs r2, #32 + 8002e62: f883 203d strb.w r2, [r3, #61] ; 0x3d hi2c->Mode = HAL_I2C_MODE_NONE; - 8002e02: 68fb ldr r3, [r7, #12] - 8002e04: 2200 movs r2, #0 - 8002e06: f883 203e strb.w r2, [r3, #62] ; 0x3e + 8002e66: 68fb ldr r3, [r7, #12] + 8002e68: 2200 movs r2, #0 + 8002e6a: f883 203e strb.w r2, [r3, #62] ; 0x3e hi2c->ErrorCode |= HAL_I2C_ERROR_AF; - 8002e0a: 68fb ldr r3, [r7, #12] - 8002e0c: 6c1b ldr r3, [r3, #64] ; 0x40 - 8002e0e: f043 0204 orr.w r2, r3, #4 - 8002e12: 68fb ldr r3, [r7, #12] - 8002e14: 641a str r2, [r3, #64] ; 0x40 + 8002e6e: 68fb ldr r3, [r7, #12] + 8002e70: 6c1b ldr r3, [r3, #64] ; 0x40 + 8002e72: f043 0204 orr.w r2, r3, #4 + 8002e76: 68fb ldr r3, [r7, #12] + 8002e78: 641a str r2, [r3, #64] ; 0x40 /* Process Unlocked */ __HAL_UNLOCK(hi2c); - 8002e16: 68fb ldr r3, [r7, #12] - 8002e18: 2200 movs r2, #0 - 8002e1a: f883 203c strb.w r2, [r3, #60] ; 0x3c + 8002e7a: 68fb ldr r3, [r7, #12] + 8002e7c: 2200 movs r2, #0 + 8002e7e: f883 203c strb.w r2, [r3, #60] ; 0x3c return HAL_ERROR; - 8002e1e: 2301 movs r3, #1 - 8002e20: e046 b.n 8002eb0 + 8002e82: 2301 movs r3, #1 + 8002e84: e046 b.n 8002f14 } /* Check for the Timeout */ if (Timeout != HAL_MAX_DELAY) - 8002e22: 687b ldr r3, [r7, #4] - 8002e24: f1b3 3fff cmp.w r3, #4294967295 ; 0xffffffff - 8002e28: d021 beq.n 8002e6e + 8002e86: 687b ldr r3, [r7, #4] + 8002e88: f1b3 3fff cmp.w r3, #4294967295 ; 0xffffffff + 8002e8c: d021 beq.n 8002ed2 { if (((HAL_GetTick() - Tickstart) > Timeout) || (Timeout == 0U)) - 8002e2a: f7fe fe4b bl 8001ac4 - 8002e2e: 4602 mov r2, r0 - 8002e30: 683b ldr r3, [r7, #0] - 8002e32: 1ad3 subs r3, r2, r3 - 8002e34: 687a ldr r2, [r7, #4] - 8002e36: 429a cmp r2, r3 - 8002e38: d302 bcc.n 8002e40 - 8002e3a: 687b ldr r3, [r7, #4] - 8002e3c: 2b00 cmp r3, #0 - 8002e3e: d116 bne.n 8002e6e + 8002e8e: f7fe fe4b bl 8001b28 + 8002e92: 4602 mov r2, r0 + 8002e94: 683b ldr r3, [r7, #0] + 8002e96: 1ad3 subs r3, r2, r3 + 8002e98: 687a ldr r2, [r7, #4] + 8002e9a: 429a cmp r2, r3 + 8002e9c: d302 bcc.n 8002ea4 + 8002e9e: 687b ldr r3, [r7, #4] + 8002ea0: 2b00 cmp r3, #0 + 8002ea2: d116 bne.n 8002ed2 { hi2c->PreviousState = I2C_STATE_NONE; - 8002e40: 68fb ldr r3, [r7, #12] - 8002e42: 2200 movs r2, #0 - 8002e44: 631a str r2, [r3, #48] ; 0x30 + 8002ea4: 68fb ldr r3, [r7, #12] + 8002ea6: 2200 movs r2, #0 + 8002ea8: 631a str r2, [r3, #48] ; 0x30 hi2c->State = HAL_I2C_STATE_READY; - 8002e46: 68fb ldr r3, [r7, #12] - 8002e48: 2220 movs r2, #32 - 8002e4a: f883 203d strb.w r2, [r3, #61] ; 0x3d + 8002eaa: 68fb ldr r3, [r7, #12] + 8002eac: 2220 movs r2, #32 + 8002eae: f883 203d strb.w r2, [r3, #61] ; 0x3d hi2c->Mode = HAL_I2C_MODE_NONE; - 8002e4e: 68fb ldr r3, [r7, #12] - 8002e50: 2200 movs r2, #0 - 8002e52: f883 203e strb.w r2, [r3, #62] ; 0x3e + 8002eb2: 68fb ldr r3, [r7, #12] + 8002eb4: 2200 movs r2, #0 + 8002eb6: f883 203e strb.w r2, [r3, #62] ; 0x3e hi2c->ErrorCode |= HAL_I2C_ERROR_TIMEOUT; - 8002e56: 68fb ldr r3, [r7, #12] - 8002e58: 6c1b ldr r3, [r3, #64] ; 0x40 - 8002e5a: f043 0220 orr.w r2, r3, #32 - 8002e5e: 68fb ldr r3, [r7, #12] - 8002e60: 641a str r2, [r3, #64] ; 0x40 + 8002eba: 68fb ldr r3, [r7, #12] + 8002ebc: 6c1b ldr r3, [r3, #64] ; 0x40 + 8002ebe: f043 0220 orr.w r2, r3, #32 + 8002ec2: 68fb ldr r3, [r7, #12] + 8002ec4: 641a str r2, [r3, #64] ; 0x40 /* Process Unlocked */ __HAL_UNLOCK(hi2c); - 8002e62: 68fb ldr r3, [r7, #12] - 8002e64: 2200 movs r2, #0 - 8002e66: f883 203c strb.w r2, [r3, #60] ; 0x3c + 8002ec6: 68fb ldr r3, [r7, #12] + 8002ec8: 2200 movs r2, #0 + 8002eca: f883 203c strb.w r2, [r3, #60] ; 0x3c return HAL_ERROR; - 8002e6a: 2301 movs r3, #1 - 8002e6c: e020 b.n 8002eb0 + 8002ece: 2301 movs r3, #1 + 8002ed0: e020 b.n 8002f14 while (__HAL_I2C_GET_FLAG(hi2c, Flag) == RESET) - 8002e6e: 68bb ldr r3, [r7, #8] - 8002e70: 0c1b lsrs r3, r3, #16 - 8002e72: b2db uxtb r3, r3 - 8002e74: 2b01 cmp r3, #1 - 8002e76: d10c bne.n 8002e92 - 8002e78: 68fb ldr r3, [r7, #12] - 8002e7a: 681b ldr r3, [r3, #0] - 8002e7c: 695b ldr r3, [r3, #20] - 8002e7e: 43da mvns r2, r3 - 8002e80: 68bb ldr r3, [r7, #8] - 8002e82: 4013 ands r3, r2 - 8002e84: b29b uxth r3, r3 - 8002e86: 2b00 cmp r3, #0 - 8002e88: bf14 ite ne - 8002e8a: 2301 movne r3, #1 - 8002e8c: 2300 moveq r3, #0 - 8002e8e: b2db uxtb r3, r3 - 8002e90: e00b b.n 8002eaa - 8002e92: 68fb ldr r3, [r7, #12] - 8002e94: 681b ldr r3, [r3, #0] - 8002e96: 699b ldr r3, [r3, #24] - 8002e98: 43da mvns r2, r3 - 8002e9a: 68bb ldr r3, [r7, #8] - 8002e9c: 4013 ands r3, r2 - 8002e9e: b29b uxth r3, r3 - 8002ea0: 2b00 cmp r3, #0 - 8002ea2: bf14 ite ne - 8002ea4: 2301 movne r3, #1 - 8002ea6: 2300 moveq r3, #0 - 8002ea8: b2db uxtb r3, r3 - 8002eaa: 2b00 cmp r3, #0 - 8002eac: d18d bne.n 8002dca + 8002ed2: 68bb ldr r3, [r7, #8] + 8002ed4: 0c1b lsrs r3, r3, #16 + 8002ed6: b2db uxtb r3, r3 + 8002ed8: 2b01 cmp r3, #1 + 8002eda: d10c bne.n 8002ef6 + 8002edc: 68fb ldr r3, [r7, #12] + 8002ede: 681b ldr r3, [r3, #0] + 8002ee0: 695b ldr r3, [r3, #20] + 8002ee2: 43da mvns r2, r3 + 8002ee4: 68bb ldr r3, [r7, #8] + 8002ee6: 4013 ands r3, r2 + 8002ee8: b29b uxth r3, r3 + 8002eea: 2b00 cmp r3, #0 + 8002eec: bf14 ite ne + 8002eee: 2301 movne r3, #1 + 8002ef0: 2300 moveq r3, #0 + 8002ef2: b2db uxtb r3, r3 + 8002ef4: e00b b.n 8002f0e + 8002ef6: 68fb ldr r3, [r7, #12] + 8002ef8: 681b ldr r3, [r3, #0] + 8002efa: 699b ldr r3, [r3, #24] + 8002efc: 43da mvns r2, r3 + 8002efe: 68bb ldr r3, [r7, #8] + 8002f00: 4013 ands r3, r2 + 8002f02: b29b uxth r3, r3 + 8002f04: 2b00 cmp r3, #0 + 8002f06: bf14 ite ne + 8002f08: 2301 movne r3, #1 + 8002f0a: 2300 moveq r3, #0 + 8002f0c: b2db uxtb r3, r3 + 8002f0e: 2b00 cmp r3, #0 + 8002f10: d18d bne.n 8002e2e } } } return HAL_OK; - 8002eae: 2300 movs r3, #0 + 8002f12: 2300 movs r3, #0 } - 8002eb0: 4618 mov r0, r3 - 8002eb2: 3710 adds r7, #16 - 8002eb4: 46bd mov sp, r7 - 8002eb6: bd80 pop {r7, pc} + 8002f14: 4618 mov r0, r3 + 8002f16: 3710 adds r7, #16 + 8002f18: 46bd mov sp, r7 + 8002f1a: bd80 pop {r7, pc} -08002eb8 : +08002f1c : * @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) { - 8002eb8: b580 push {r7, lr} - 8002eba: b084 sub sp, #16 - 8002ebc: af00 add r7, sp, #0 - 8002ebe: 60f8 str r0, [r7, #12] - 8002ec0: 60b9 str r1, [r7, #8] - 8002ec2: 607a str r2, [r7, #4] + 8002f1c: b580 push {r7, lr} + 8002f1e: b084 sub sp, #16 + 8002f20: af00 add r7, sp, #0 + 8002f22: 60f8 str r0, [r7, #12] + 8002f24: 60b9 str r1, [r7, #8] + 8002f26: 607a str r2, [r7, #4] while (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_TXE) == RESET) - 8002ec4: e02d b.n 8002f22 + 8002f28: e02d b.n 8002f86 { /* Check if a NACK is detected */ if (I2C_IsAcknowledgeFailed(hi2c) != HAL_OK) - 8002ec6: 68f8 ldr r0, [r7, #12] - 8002ec8: f000 f8ce bl 8003068 - 8002ecc: 4603 mov r3, r0 - 8002ece: 2b00 cmp r3, #0 - 8002ed0: d001 beq.n 8002ed6 + 8002f2a: 68f8 ldr r0, [r7, #12] + 8002f2c: f000 f8ce bl 80030cc + 8002f30: 4603 mov r3, r0 + 8002f32: 2b00 cmp r3, #0 + 8002f34: d001 beq.n 8002f3a { return HAL_ERROR; - 8002ed2: 2301 movs r3, #1 - 8002ed4: e02d b.n 8002f32 + 8002f36: 2301 movs r3, #1 + 8002f38: e02d b.n 8002f96 } /* Check for the Timeout */ if (Timeout != HAL_MAX_DELAY) - 8002ed6: 68bb ldr r3, [r7, #8] - 8002ed8: f1b3 3fff cmp.w r3, #4294967295 ; 0xffffffff - 8002edc: d021 beq.n 8002f22 + 8002f3a: 68bb ldr r3, [r7, #8] + 8002f3c: f1b3 3fff cmp.w r3, #4294967295 ; 0xffffffff + 8002f40: d021 beq.n 8002f86 { if (((HAL_GetTick() - Tickstart) > Timeout) || (Timeout == 0U)) - 8002ede: f7fe fdf1 bl 8001ac4 - 8002ee2: 4602 mov r2, r0 - 8002ee4: 687b ldr r3, [r7, #4] - 8002ee6: 1ad3 subs r3, r2, r3 - 8002ee8: 68ba ldr r2, [r7, #8] - 8002eea: 429a cmp r2, r3 - 8002eec: d302 bcc.n 8002ef4 - 8002eee: 68bb ldr r3, [r7, #8] - 8002ef0: 2b00 cmp r3, #0 - 8002ef2: d116 bne.n 8002f22 + 8002f42: f7fe fdf1 bl 8001b28 + 8002f46: 4602 mov r2, r0 + 8002f48: 687b ldr r3, [r7, #4] + 8002f4a: 1ad3 subs r3, r2, r3 + 8002f4c: 68ba ldr r2, [r7, #8] + 8002f4e: 429a cmp r2, r3 + 8002f50: d302 bcc.n 8002f58 + 8002f52: 68bb ldr r3, [r7, #8] + 8002f54: 2b00 cmp r3, #0 + 8002f56: d116 bne.n 8002f86 { hi2c->PreviousState = I2C_STATE_NONE; - 8002ef4: 68fb ldr r3, [r7, #12] - 8002ef6: 2200 movs r2, #0 - 8002ef8: 631a str r2, [r3, #48] ; 0x30 + 8002f58: 68fb ldr r3, [r7, #12] + 8002f5a: 2200 movs r2, #0 + 8002f5c: 631a str r2, [r3, #48] ; 0x30 hi2c->State = HAL_I2C_STATE_READY; - 8002efa: 68fb ldr r3, [r7, #12] - 8002efc: 2220 movs r2, #32 - 8002efe: f883 203d strb.w r2, [r3, #61] ; 0x3d + 8002f5e: 68fb ldr r3, [r7, #12] + 8002f60: 2220 movs r2, #32 + 8002f62: f883 203d strb.w r2, [r3, #61] ; 0x3d hi2c->Mode = HAL_I2C_MODE_NONE; - 8002f02: 68fb ldr r3, [r7, #12] - 8002f04: 2200 movs r2, #0 - 8002f06: f883 203e strb.w r2, [r3, #62] ; 0x3e + 8002f66: 68fb ldr r3, [r7, #12] + 8002f68: 2200 movs r2, #0 + 8002f6a: f883 203e strb.w r2, [r3, #62] ; 0x3e hi2c->ErrorCode |= HAL_I2C_ERROR_TIMEOUT; - 8002f0a: 68fb ldr r3, [r7, #12] - 8002f0c: 6c1b ldr r3, [r3, #64] ; 0x40 - 8002f0e: f043 0220 orr.w r2, r3, #32 - 8002f12: 68fb ldr r3, [r7, #12] - 8002f14: 641a str r2, [r3, #64] ; 0x40 + 8002f6e: 68fb ldr r3, [r7, #12] + 8002f70: 6c1b ldr r3, [r3, #64] ; 0x40 + 8002f72: f043 0220 orr.w r2, r3, #32 + 8002f76: 68fb ldr r3, [r7, #12] + 8002f78: 641a str r2, [r3, #64] ; 0x40 /* Process Unlocked */ __HAL_UNLOCK(hi2c); - 8002f16: 68fb ldr r3, [r7, #12] - 8002f18: 2200 movs r2, #0 - 8002f1a: f883 203c strb.w r2, [r3, #60] ; 0x3c + 8002f7a: 68fb ldr r3, [r7, #12] + 8002f7c: 2200 movs r2, #0 + 8002f7e: f883 203c strb.w r2, [r3, #60] ; 0x3c return HAL_ERROR; - 8002f1e: 2301 movs r3, #1 - 8002f20: e007 b.n 8002f32 + 8002f82: 2301 movs r3, #1 + 8002f84: e007 b.n 8002f96 while (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_TXE) == RESET) - 8002f22: 68fb ldr r3, [r7, #12] - 8002f24: 681b ldr r3, [r3, #0] - 8002f26: 695b ldr r3, [r3, #20] - 8002f28: f003 0380 and.w r3, r3, #128 ; 0x80 - 8002f2c: 2b80 cmp r3, #128 ; 0x80 - 8002f2e: d1ca bne.n 8002ec6 + 8002f86: 68fb ldr r3, [r7, #12] + 8002f88: 681b ldr r3, [r3, #0] + 8002f8a: 695b ldr r3, [r3, #20] + 8002f8c: f003 0380 and.w r3, r3, #128 ; 0x80 + 8002f90: 2b80 cmp r3, #128 ; 0x80 + 8002f92: d1ca bne.n 8002f2a } } } return HAL_OK; - 8002f30: 2300 movs r3, #0 + 8002f94: 2300 movs r3, #0 } - 8002f32: 4618 mov r0, r3 - 8002f34: 3710 adds r7, #16 - 8002f36: 46bd mov sp, r7 - 8002f38: bd80 pop {r7, pc} + 8002f96: 4618 mov r0, r3 + 8002f98: 3710 adds r7, #16 + 8002f9a: 46bd mov sp, r7 + 8002f9c: bd80 pop {r7, pc} -08002f3a : +08002f9e : * @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) { - 8002f3a: b580 push {r7, lr} - 8002f3c: b084 sub sp, #16 - 8002f3e: af00 add r7, sp, #0 - 8002f40: 60f8 str r0, [r7, #12] - 8002f42: 60b9 str r1, [r7, #8] - 8002f44: 607a str r2, [r7, #4] + 8002f9e: b580 push {r7, lr} + 8002fa0: b084 sub sp, #16 + 8002fa2: af00 add r7, sp, #0 + 8002fa4: 60f8 str r0, [r7, #12] + 8002fa6: 60b9 str r1, [r7, #8] + 8002fa8: 607a str r2, [r7, #4] while (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_BTF) == RESET) - 8002f46: e02d b.n 8002fa4 + 8002faa: e02d b.n 8003008 { /* Check if a NACK is detected */ if (I2C_IsAcknowledgeFailed(hi2c) != HAL_OK) - 8002f48: 68f8 ldr r0, [r7, #12] - 8002f4a: f000 f88d bl 8003068 - 8002f4e: 4603 mov r3, r0 - 8002f50: 2b00 cmp r3, #0 - 8002f52: d001 beq.n 8002f58 + 8002fac: 68f8 ldr r0, [r7, #12] + 8002fae: f000 f88d bl 80030cc + 8002fb2: 4603 mov r3, r0 + 8002fb4: 2b00 cmp r3, #0 + 8002fb6: d001 beq.n 8002fbc { return HAL_ERROR; - 8002f54: 2301 movs r3, #1 - 8002f56: e02d b.n 8002fb4 + 8002fb8: 2301 movs r3, #1 + 8002fba: e02d b.n 8003018 } /* Check for the Timeout */ if (Timeout != HAL_MAX_DELAY) - 8002f58: 68bb ldr r3, [r7, #8] - 8002f5a: f1b3 3fff cmp.w r3, #4294967295 ; 0xffffffff - 8002f5e: d021 beq.n 8002fa4 + 8002fbc: 68bb ldr r3, [r7, #8] + 8002fbe: f1b3 3fff cmp.w r3, #4294967295 ; 0xffffffff + 8002fc2: d021 beq.n 8003008 { if (((HAL_GetTick() - Tickstart) > Timeout) || (Timeout == 0U)) - 8002f60: f7fe fdb0 bl 8001ac4 - 8002f64: 4602 mov r2, r0 - 8002f66: 687b ldr r3, [r7, #4] - 8002f68: 1ad3 subs r3, r2, r3 - 8002f6a: 68ba ldr r2, [r7, #8] - 8002f6c: 429a cmp r2, r3 - 8002f6e: d302 bcc.n 8002f76 - 8002f70: 68bb ldr r3, [r7, #8] - 8002f72: 2b00 cmp r3, #0 - 8002f74: d116 bne.n 8002fa4 + 8002fc4: f7fe fdb0 bl 8001b28 + 8002fc8: 4602 mov r2, r0 + 8002fca: 687b ldr r3, [r7, #4] + 8002fcc: 1ad3 subs r3, r2, r3 + 8002fce: 68ba ldr r2, [r7, #8] + 8002fd0: 429a cmp r2, r3 + 8002fd2: d302 bcc.n 8002fda + 8002fd4: 68bb ldr r3, [r7, #8] + 8002fd6: 2b00 cmp r3, #0 + 8002fd8: d116 bne.n 8003008 { hi2c->PreviousState = I2C_STATE_NONE; - 8002f76: 68fb ldr r3, [r7, #12] - 8002f78: 2200 movs r2, #0 - 8002f7a: 631a str r2, [r3, #48] ; 0x30 + 8002fda: 68fb ldr r3, [r7, #12] + 8002fdc: 2200 movs r2, #0 + 8002fde: 631a str r2, [r3, #48] ; 0x30 hi2c->State = HAL_I2C_STATE_READY; - 8002f7c: 68fb ldr r3, [r7, #12] - 8002f7e: 2220 movs r2, #32 - 8002f80: f883 203d strb.w r2, [r3, #61] ; 0x3d + 8002fe0: 68fb ldr r3, [r7, #12] + 8002fe2: 2220 movs r2, #32 + 8002fe4: f883 203d strb.w r2, [r3, #61] ; 0x3d hi2c->Mode = HAL_I2C_MODE_NONE; - 8002f84: 68fb ldr r3, [r7, #12] - 8002f86: 2200 movs r2, #0 - 8002f88: f883 203e strb.w r2, [r3, #62] ; 0x3e + 8002fe8: 68fb ldr r3, [r7, #12] + 8002fea: 2200 movs r2, #0 + 8002fec: f883 203e strb.w r2, [r3, #62] ; 0x3e hi2c->ErrorCode |= HAL_I2C_ERROR_TIMEOUT; - 8002f8c: 68fb ldr r3, [r7, #12] - 8002f8e: 6c1b ldr r3, [r3, #64] ; 0x40 - 8002f90: f043 0220 orr.w r2, r3, #32 - 8002f94: 68fb ldr r3, [r7, #12] - 8002f96: 641a str r2, [r3, #64] ; 0x40 + 8002ff0: 68fb ldr r3, [r7, #12] + 8002ff2: 6c1b ldr r3, [r3, #64] ; 0x40 + 8002ff4: f043 0220 orr.w r2, r3, #32 + 8002ff8: 68fb ldr r3, [r7, #12] + 8002ffa: 641a str r2, [r3, #64] ; 0x40 /* Process Unlocked */ __HAL_UNLOCK(hi2c); - 8002f98: 68fb ldr r3, [r7, #12] - 8002f9a: 2200 movs r2, #0 - 8002f9c: f883 203c strb.w r2, [r3, #60] ; 0x3c + 8002ffc: 68fb ldr r3, [r7, #12] + 8002ffe: 2200 movs r2, #0 + 8003000: f883 203c strb.w r2, [r3, #60] ; 0x3c return HAL_ERROR; - 8002fa0: 2301 movs r3, #1 - 8002fa2: e007 b.n 8002fb4 + 8003004: 2301 movs r3, #1 + 8003006: e007 b.n 8003018 while (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_BTF) == RESET) - 8002fa4: 68fb ldr r3, [r7, #12] - 8002fa6: 681b ldr r3, [r3, #0] - 8002fa8: 695b ldr r3, [r3, #20] - 8002faa: f003 0304 and.w r3, r3, #4 - 8002fae: 2b04 cmp r3, #4 - 8002fb0: d1ca bne.n 8002f48 + 8003008: 68fb ldr r3, [r7, #12] + 800300a: 681b ldr r3, [r3, #0] + 800300c: 695b ldr r3, [r3, #20] + 800300e: f003 0304 and.w r3, r3, #4 + 8003012: 2b04 cmp r3, #4 + 8003014: d1ca bne.n 8002fac } } } return HAL_OK; - 8002fb2: 2300 movs r3, #0 + 8003016: 2300 movs r3, #0 } - 8002fb4: 4618 mov r0, r3 - 8002fb6: 3710 adds r7, #16 - 8002fb8: 46bd mov sp, r7 - 8002fba: bd80 pop {r7, pc} + 8003018: 4618 mov r0, r3 + 800301a: 3710 adds r7, #16 + 800301c: 46bd mov sp, r7 + 800301e: bd80 pop {r7, pc} -08002fbc : +08003020 : * @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) { - 8002fbc: b580 push {r7, lr} - 8002fbe: b084 sub sp, #16 - 8002fc0: af00 add r7, sp, #0 - 8002fc2: 60f8 str r0, [r7, #12] - 8002fc4: 60b9 str r1, [r7, #8] - 8002fc6: 607a str r2, [r7, #4] + 8003020: b580 push {r7, lr} + 8003022: b084 sub sp, #16 + 8003024: af00 add r7, sp, #0 + 8003026: 60f8 str r0, [r7, #12] + 8003028: 60b9 str r1, [r7, #8] + 800302a: 607a str r2, [r7, #4] while (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_RXNE) == RESET) - 8002fc8: e042 b.n 8003050 + 800302c: e042 b.n 80030b4 { /* Check if a STOPF is detected */ if (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_STOPF) == SET) - 8002fca: 68fb ldr r3, [r7, #12] - 8002fcc: 681b ldr r3, [r3, #0] - 8002fce: 695b ldr r3, [r3, #20] - 8002fd0: f003 0310 and.w r3, r3, #16 - 8002fd4: 2b10 cmp r3, #16 - 8002fd6: d119 bne.n 800300c + 800302e: 68fb ldr r3, [r7, #12] + 8003030: 681b ldr r3, [r3, #0] + 8003032: 695b ldr r3, [r3, #20] + 8003034: f003 0310 and.w r3, r3, #16 + 8003038: 2b10 cmp r3, #16 + 800303a: d119 bne.n 8003070 { /* Clear STOP Flag */ __HAL_I2C_CLEAR_FLAG(hi2c, I2C_FLAG_STOPF); - 8002fd8: 68fb ldr r3, [r7, #12] - 8002fda: 681b ldr r3, [r3, #0] - 8002fdc: f06f 0210 mvn.w r2, #16 - 8002fe0: 615a str r2, [r3, #20] + 800303c: 68fb ldr r3, [r7, #12] + 800303e: 681b ldr r3, [r3, #0] + 8003040: f06f 0210 mvn.w r2, #16 + 8003044: 615a str r2, [r3, #20] hi2c->PreviousState = I2C_STATE_NONE; - 8002fe2: 68fb ldr r3, [r7, #12] - 8002fe4: 2200 movs r2, #0 - 8002fe6: 631a str r2, [r3, #48] ; 0x30 + 8003046: 68fb ldr r3, [r7, #12] + 8003048: 2200 movs r2, #0 + 800304a: 631a str r2, [r3, #48] ; 0x30 hi2c->State = HAL_I2C_STATE_READY; - 8002fe8: 68fb ldr r3, [r7, #12] - 8002fea: 2220 movs r2, #32 - 8002fec: f883 203d strb.w r2, [r3, #61] ; 0x3d + 800304c: 68fb ldr r3, [r7, #12] + 800304e: 2220 movs r2, #32 + 8003050: f883 203d strb.w r2, [r3, #61] ; 0x3d hi2c->Mode = HAL_I2C_MODE_NONE; - 8002ff0: 68fb ldr r3, [r7, #12] - 8002ff2: 2200 movs r2, #0 - 8002ff4: f883 203e strb.w r2, [r3, #62] ; 0x3e + 8003054: 68fb ldr r3, [r7, #12] + 8003056: 2200 movs r2, #0 + 8003058: f883 203e strb.w r2, [r3, #62] ; 0x3e hi2c->ErrorCode |= HAL_I2C_ERROR_NONE; - 8002ff8: 68fb ldr r3, [r7, #12] - 8002ffa: 6c1a ldr r2, [r3, #64] ; 0x40 - 8002ffc: 68fb ldr r3, [r7, #12] - 8002ffe: 641a str r2, [r3, #64] ; 0x40 + 800305c: 68fb ldr r3, [r7, #12] + 800305e: 6c1a ldr r2, [r3, #64] ; 0x40 + 8003060: 68fb ldr r3, [r7, #12] + 8003062: 641a str r2, [r3, #64] ; 0x40 /* Process Unlocked */ __HAL_UNLOCK(hi2c); - 8003000: 68fb ldr r3, [r7, #12] - 8003002: 2200 movs r2, #0 - 8003004: f883 203c strb.w r2, [r3, #60] ; 0x3c + 8003064: 68fb ldr r3, [r7, #12] + 8003066: 2200 movs r2, #0 + 8003068: f883 203c strb.w r2, [r3, #60] ; 0x3c return HAL_ERROR; - 8003008: 2301 movs r3, #1 - 800300a: e029 b.n 8003060 + 800306c: 2301 movs r3, #1 + 800306e: e029 b.n 80030c4 } /* Check for the Timeout */ if (((HAL_GetTick() - Tickstart) > Timeout) || (Timeout == 0U)) - 800300c: f7fe fd5a bl 8001ac4 - 8003010: 4602 mov r2, r0 - 8003012: 687b ldr r3, [r7, #4] - 8003014: 1ad3 subs r3, r2, r3 - 8003016: 68ba ldr r2, [r7, #8] - 8003018: 429a cmp r2, r3 - 800301a: d302 bcc.n 8003022 - 800301c: 68bb ldr r3, [r7, #8] - 800301e: 2b00 cmp r3, #0 - 8003020: d116 bne.n 8003050 + 8003070: f7fe fd5a bl 8001b28 + 8003074: 4602 mov r2, r0 + 8003076: 687b ldr r3, [r7, #4] + 8003078: 1ad3 subs r3, r2, r3 + 800307a: 68ba ldr r2, [r7, #8] + 800307c: 429a cmp r2, r3 + 800307e: d302 bcc.n 8003086 + 8003080: 68bb ldr r3, [r7, #8] + 8003082: 2b00 cmp r3, #0 + 8003084: d116 bne.n 80030b4 { hi2c->PreviousState = I2C_STATE_NONE; - 8003022: 68fb ldr r3, [r7, #12] - 8003024: 2200 movs r2, #0 - 8003026: 631a str r2, [r3, #48] ; 0x30 + 8003086: 68fb ldr r3, [r7, #12] + 8003088: 2200 movs r2, #0 + 800308a: 631a str r2, [r3, #48] ; 0x30 hi2c->State = HAL_I2C_STATE_READY; - 8003028: 68fb ldr r3, [r7, #12] - 800302a: 2220 movs r2, #32 - 800302c: f883 203d strb.w r2, [r3, #61] ; 0x3d + 800308c: 68fb ldr r3, [r7, #12] + 800308e: 2220 movs r2, #32 + 8003090: f883 203d strb.w r2, [r3, #61] ; 0x3d hi2c->Mode = HAL_I2C_MODE_NONE; - 8003030: 68fb ldr r3, [r7, #12] - 8003032: 2200 movs r2, #0 - 8003034: f883 203e strb.w r2, [r3, #62] ; 0x3e + 8003094: 68fb ldr r3, [r7, #12] + 8003096: 2200 movs r2, #0 + 8003098: f883 203e strb.w r2, [r3, #62] ; 0x3e hi2c->ErrorCode |= HAL_I2C_ERROR_TIMEOUT; - 8003038: 68fb ldr r3, [r7, #12] - 800303a: 6c1b ldr r3, [r3, #64] ; 0x40 - 800303c: f043 0220 orr.w r2, r3, #32 - 8003040: 68fb ldr r3, [r7, #12] - 8003042: 641a str r2, [r3, #64] ; 0x40 + 800309c: 68fb ldr r3, [r7, #12] + 800309e: 6c1b ldr r3, [r3, #64] ; 0x40 + 80030a0: f043 0220 orr.w r2, r3, #32 + 80030a4: 68fb ldr r3, [r7, #12] + 80030a6: 641a str r2, [r3, #64] ; 0x40 /* Process Unlocked */ __HAL_UNLOCK(hi2c); - 8003044: 68fb ldr r3, [r7, #12] - 8003046: 2200 movs r2, #0 - 8003048: f883 203c strb.w r2, [r3, #60] ; 0x3c + 80030a8: 68fb ldr r3, [r7, #12] + 80030aa: 2200 movs r2, #0 + 80030ac: f883 203c strb.w r2, [r3, #60] ; 0x3c return HAL_ERROR; - 800304c: 2301 movs r3, #1 - 800304e: e007 b.n 8003060 + 80030b0: 2301 movs r3, #1 + 80030b2: e007 b.n 80030c4 while (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_RXNE) == RESET) - 8003050: 68fb ldr r3, [r7, #12] - 8003052: 681b ldr r3, [r3, #0] - 8003054: 695b ldr r3, [r3, #20] - 8003056: f003 0340 and.w r3, r3, #64 ; 0x40 - 800305a: 2b40 cmp r3, #64 ; 0x40 - 800305c: d1b5 bne.n 8002fca + 80030b4: 68fb ldr r3, [r7, #12] + 80030b6: 681b ldr r3, [r3, #0] + 80030b8: 695b ldr r3, [r3, #20] + 80030ba: f003 0340 and.w r3, r3, #64 ; 0x40 + 80030be: 2b40 cmp r3, #64 ; 0x40 + 80030c0: d1b5 bne.n 800302e } } return HAL_OK; - 800305e: 2300 movs r3, #0 + 80030c2: 2300 movs r3, #0 } - 8003060: 4618 mov r0, r3 - 8003062: 3710 adds r7, #16 - 8003064: 46bd mov sp, r7 - 8003066: bd80 pop {r7, pc} + 80030c4: 4618 mov r0, r3 + 80030c6: 3710 adds r7, #16 + 80030c8: 46bd mov sp, r7 + 80030ca: bd80 pop {r7, pc} -08003068 : +080030cc : * @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) { - 8003068: b480 push {r7} - 800306a: b083 sub sp, #12 - 800306c: af00 add r7, sp, #0 - 800306e: 6078 str r0, [r7, #4] + 80030cc: b480 push {r7} + 80030ce: b083 sub sp, #12 + 80030d0: af00 add r7, sp, #0 + 80030d2: 6078 str r0, [r7, #4] if (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_AF) == SET) - 8003070: 687b ldr r3, [r7, #4] - 8003072: 681b ldr r3, [r3, #0] - 8003074: 695b ldr r3, [r3, #20] - 8003076: f403 6380 and.w r3, r3, #1024 ; 0x400 - 800307a: f5b3 6f80 cmp.w r3, #1024 ; 0x400 - 800307e: d11b bne.n 80030b8 + 80030d4: 687b ldr r3, [r7, #4] + 80030d6: 681b ldr r3, [r3, #0] + 80030d8: 695b ldr r3, [r3, #20] + 80030da: f403 6380 and.w r3, r3, #1024 ; 0x400 + 80030de: f5b3 6f80 cmp.w r3, #1024 ; 0x400 + 80030e2: d11b bne.n 800311c { /* Clear NACKF Flag */ __HAL_I2C_CLEAR_FLAG(hi2c, I2C_FLAG_AF); - 8003080: 687b ldr r3, [r7, #4] - 8003082: 681b ldr r3, [r3, #0] - 8003084: f46f 6280 mvn.w r2, #1024 ; 0x400 - 8003088: 615a str r2, [r3, #20] + 80030e4: 687b ldr r3, [r7, #4] + 80030e6: 681b ldr r3, [r3, #0] + 80030e8: f46f 6280 mvn.w r2, #1024 ; 0x400 + 80030ec: 615a str r2, [r3, #20] hi2c->PreviousState = I2C_STATE_NONE; - 800308a: 687b ldr r3, [r7, #4] - 800308c: 2200 movs r2, #0 - 800308e: 631a str r2, [r3, #48] ; 0x30 + 80030ee: 687b ldr r3, [r7, #4] + 80030f0: 2200 movs r2, #0 + 80030f2: 631a str r2, [r3, #48] ; 0x30 hi2c->State = HAL_I2C_STATE_READY; - 8003090: 687b ldr r3, [r7, #4] - 8003092: 2220 movs r2, #32 - 8003094: f883 203d strb.w r2, [r3, #61] ; 0x3d + 80030f4: 687b ldr r3, [r7, #4] + 80030f6: 2220 movs r2, #32 + 80030f8: f883 203d strb.w r2, [r3, #61] ; 0x3d hi2c->Mode = HAL_I2C_MODE_NONE; - 8003098: 687b ldr r3, [r7, #4] - 800309a: 2200 movs r2, #0 - 800309c: f883 203e strb.w r2, [r3, #62] ; 0x3e + 80030fc: 687b ldr r3, [r7, #4] + 80030fe: 2200 movs r2, #0 + 8003100: f883 203e strb.w r2, [r3, #62] ; 0x3e hi2c->ErrorCode |= HAL_I2C_ERROR_AF; - 80030a0: 687b ldr r3, [r7, #4] - 80030a2: 6c1b ldr r3, [r3, #64] ; 0x40 - 80030a4: f043 0204 orr.w r2, r3, #4 - 80030a8: 687b ldr r3, [r7, #4] - 80030aa: 641a str r2, [r3, #64] ; 0x40 + 8003104: 687b ldr r3, [r7, #4] + 8003106: 6c1b ldr r3, [r3, #64] ; 0x40 + 8003108: f043 0204 orr.w r2, r3, #4 + 800310c: 687b ldr r3, [r7, #4] + 800310e: 641a str r2, [r3, #64] ; 0x40 /* Process Unlocked */ __HAL_UNLOCK(hi2c); - 80030ac: 687b ldr r3, [r7, #4] - 80030ae: 2200 movs r2, #0 - 80030b0: f883 203c strb.w r2, [r3, #60] ; 0x3c + 8003110: 687b ldr r3, [r7, #4] + 8003112: 2200 movs r2, #0 + 8003114: f883 203c strb.w r2, [r3, #60] ; 0x3c return HAL_ERROR; - 80030b4: 2301 movs r3, #1 - 80030b6: e000 b.n 80030ba + 8003118: 2301 movs r3, #1 + 800311a: e000 b.n 800311e } return HAL_OK; - 80030b8: 2300 movs r3, #0 + 800311c: 2300 movs r3, #0 } - 80030ba: 4618 mov r0, r3 - 80030bc: 370c adds r7, #12 - 80030be: 46bd mov sp, r7 - 80030c0: bc80 pop {r7} - 80030c2: 4770 bx lr + 800311e: 4618 mov r0, r3 + 8003120: 370c adds r7, #12 + 8003122: 46bd mov sp, r7 + 8003124: bc80 pop {r7} + 8003126: 4770 bx lr -080030c4 : +08003128 : * 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) { - 80030c4: b580 push {r7, lr} - 80030c6: b086 sub sp, #24 - 80030c8: af00 add r7, sp, #0 - 80030ca: 6078 str r0, [r7, #4] + 8003128: b580 push {r7, lr} + 800312a: b086 sub sp, #24 + 800312c: af00 add r7, sp, #0 + 800312e: 6078 str r0, [r7, #4] uint32_t tickstart; uint32_t pll_config; /* Check Null pointer */ if (RCC_OscInitStruct == NULL) - 80030cc: 687b ldr r3, [r7, #4] - 80030ce: 2b00 cmp r3, #0 - 80030d0: d101 bne.n 80030d6 + 8003130: 687b ldr r3, [r7, #4] + 8003132: 2b00 cmp r3, #0 + 8003134: d101 bne.n 800313a { return HAL_ERROR; - 80030d2: 2301 movs r3, #1 - 80030d4: e26c b.n 80035b0 + 8003136: 2301 movs r3, #1 + 8003138: e26c b.n 8003614 /* Check the parameters */ assert_param(IS_RCC_OSCILLATORTYPE(RCC_OscInitStruct->OscillatorType)); /*------------------------------- HSE Configuration ------------------------*/ if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_HSE) == RCC_OSCILLATORTYPE_HSE) - 80030d6: 687b ldr r3, [r7, #4] - 80030d8: 681b ldr r3, [r3, #0] - 80030da: f003 0301 and.w r3, r3, #1 - 80030de: 2b00 cmp r3, #0 - 80030e0: f000 8087 beq.w 80031f2 + 800313a: 687b ldr r3, [r7, #4] + 800313c: 681b ldr r3, [r3, #0] + 800313e: f003 0301 and.w r3, r3, #1 + 8003142: 2b00 cmp r3, #0 + 8003144: f000 8087 beq.w 8003256 { /* 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) - 80030e4: 4b92 ldr r3, [pc, #584] ; (8003330 ) - 80030e6: 685b ldr r3, [r3, #4] - 80030e8: f003 030c and.w r3, r3, #12 - 80030ec: 2b04 cmp r3, #4 - 80030ee: d00c beq.n 800310a + 8003148: 4b92 ldr r3, [pc, #584] ; (8003394 ) + 800314a: 685b ldr r3, [r3, #4] + 800314c: f003 030c and.w r3, r3, #12 + 8003150: 2b04 cmp r3, #4 + 8003152: d00c beq.n 800316e || ((__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_SYSCLKSOURCE_STATUS_PLLCLK) && (__HAL_RCC_GET_PLL_OSCSOURCE() == RCC_PLLSOURCE_HSE))) - 80030f0: 4b8f ldr r3, [pc, #572] ; (8003330 ) - 80030f2: 685b ldr r3, [r3, #4] - 80030f4: f003 030c and.w r3, r3, #12 - 80030f8: 2b08 cmp r3, #8 - 80030fa: d112 bne.n 8003122 - 80030fc: 4b8c ldr r3, [pc, #560] ; (8003330 ) - 80030fe: 685b ldr r3, [r3, #4] - 8003100: f403 3380 and.w r3, r3, #65536 ; 0x10000 - 8003104: f5b3 3f80 cmp.w r3, #65536 ; 0x10000 - 8003108: d10b bne.n 8003122 + 8003154: 4b8f ldr r3, [pc, #572] ; (8003394 ) + 8003156: 685b ldr r3, [r3, #4] + 8003158: f003 030c and.w r3, r3, #12 + 800315c: 2b08 cmp r3, #8 + 800315e: d112 bne.n 8003186 + 8003160: 4b8c ldr r3, [pc, #560] ; (8003394 ) + 8003162: 685b ldr r3, [r3, #4] + 8003164: f403 3380 and.w r3, r3, #65536 ; 0x10000 + 8003168: f5b3 3f80 cmp.w r3, #65536 ; 0x10000 + 800316c: d10b bne.n 8003186 { if ((__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != RESET) && (RCC_OscInitStruct->HSEState == RCC_HSE_OFF)) - 800310a: 4b89 ldr r3, [pc, #548] ; (8003330 ) - 800310c: 681b ldr r3, [r3, #0] - 800310e: f403 3300 and.w r3, r3, #131072 ; 0x20000 - 8003112: 2b00 cmp r3, #0 - 8003114: d06c beq.n 80031f0 - 8003116: 687b ldr r3, [r7, #4] - 8003118: 685b ldr r3, [r3, #4] - 800311a: 2b00 cmp r3, #0 - 800311c: d168 bne.n 80031f0 + 800316e: 4b89 ldr r3, [pc, #548] ; (8003394 ) + 8003170: 681b ldr r3, [r3, #0] + 8003172: f403 3300 and.w r3, r3, #131072 ; 0x20000 + 8003176: 2b00 cmp r3, #0 + 8003178: d06c beq.n 8003254 + 800317a: 687b ldr r3, [r7, #4] + 800317c: 685b ldr r3, [r3, #4] + 800317e: 2b00 cmp r3, #0 + 8003180: d168 bne.n 8003254 { return HAL_ERROR; - 800311e: 2301 movs r3, #1 - 8003120: e246 b.n 80035b0 + 8003182: 2301 movs r3, #1 + 8003184: e246 b.n 8003614 } } else { /* Set the new HSE configuration ---------------------------------------*/ __HAL_RCC_HSE_CONFIG(RCC_OscInitStruct->HSEState); - 8003122: 687b ldr r3, [r7, #4] - 8003124: 685b ldr r3, [r3, #4] - 8003126: f5b3 3f80 cmp.w r3, #65536 ; 0x10000 - 800312a: d106 bne.n 800313a - 800312c: 4b80 ldr r3, [pc, #512] ; (8003330 ) - 800312e: 681b ldr r3, [r3, #0] - 8003130: 4a7f ldr r2, [pc, #508] ; (8003330 ) - 8003132: f443 3380 orr.w r3, r3, #65536 ; 0x10000 - 8003136: 6013 str r3, [r2, #0] - 8003138: e02e b.n 8003198 - 800313a: 687b ldr r3, [r7, #4] - 800313c: 685b ldr r3, [r3, #4] - 800313e: 2b00 cmp r3, #0 - 8003140: d10c bne.n 800315c - 8003142: 4b7b ldr r3, [pc, #492] ; (8003330 ) - 8003144: 681b ldr r3, [r3, #0] - 8003146: 4a7a ldr r2, [pc, #488] ; (8003330 ) - 8003148: f423 3380 bic.w r3, r3, #65536 ; 0x10000 - 800314c: 6013 str r3, [r2, #0] - 800314e: 4b78 ldr r3, [pc, #480] ; (8003330 ) - 8003150: 681b ldr r3, [r3, #0] - 8003152: 4a77 ldr r2, [pc, #476] ; (8003330 ) - 8003154: f423 2380 bic.w r3, r3, #262144 ; 0x40000 - 8003158: 6013 str r3, [r2, #0] - 800315a: e01d b.n 8003198 - 800315c: 687b ldr r3, [r7, #4] - 800315e: 685b ldr r3, [r3, #4] - 8003160: f5b3 2fa0 cmp.w r3, #327680 ; 0x50000 - 8003164: d10c bne.n 8003180 - 8003166: 4b72 ldr r3, [pc, #456] ; (8003330 ) - 8003168: 681b ldr r3, [r3, #0] - 800316a: 4a71 ldr r2, [pc, #452] ; (8003330 ) - 800316c: f443 2380 orr.w r3, r3, #262144 ; 0x40000 - 8003170: 6013 str r3, [r2, #0] - 8003172: 4b6f ldr r3, [pc, #444] ; (8003330 ) - 8003174: 681b ldr r3, [r3, #0] - 8003176: 4a6e ldr r2, [pc, #440] ; (8003330 ) - 8003178: f443 3380 orr.w r3, r3, #65536 ; 0x10000 - 800317c: 6013 str r3, [r2, #0] - 800317e: e00b b.n 8003198 - 8003180: 4b6b ldr r3, [pc, #428] ; (8003330 ) - 8003182: 681b ldr r3, [r3, #0] - 8003184: 4a6a ldr r2, [pc, #424] ; (8003330 ) - 8003186: f423 3380 bic.w r3, r3, #65536 ; 0x10000 - 800318a: 6013 str r3, [r2, #0] - 800318c: 4b68 ldr r3, [pc, #416] ; (8003330 ) - 800318e: 681b ldr r3, [r3, #0] - 8003190: 4a67 ldr r2, [pc, #412] ; (8003330 ) - 8003192: f423 2380 bic.w r3, r3, #262144 ; 0x40000 - 8003196: 6013 str r3, [r2, #0] + 8003186: 687b ldr r3, [r7, #4] + 8003188: 685b ldr r3, [r3, #4] + 800318a: f5b3 3f80 cmp.w r3, #65536 ; 0x10000 + 800318e: d106 bne.n 800319e + 8003190: 4b80 ldr r3, [pc, #512] ; (8003394 ) + 8003192: 681b ldr r3, [r3, #0] + 8003194: 4a7f ldr r2, [pc, #508] ; (8003394 ) + 8003196: f443 3380 orr.w r3, r3, #65536 ; 0x10000 + 800319a: 6013 str r3, [r2, #0] + 800319c: e02e b.n 80031fc + 800319e: 687b ldr r3, [r7, #4] + 80031a0: 685b ldr r3, [r3, #4] + 80031a2: 2b00 cmp r3, #0 + 80031a4: d10c bne.n 80031c0 + 80031a6: 4b7b ldr r3, [pc, #492] ; (8003394 ) + 80031a8: 681b ldr r3, [r3, #0] + 80031aa: 4a7a ldr r2, [pc, #488] ; (8003394 ) + 80031ac: f423 3380 bic.w r3, r3, #65536 ; 0x10000 + 80031b0: 6013 str r3, [r2, #0] + 80031b2: 4b78 ldr r3, [pc, #480] ; (8003394 ) + 80031b4: 681b ldr r3, [r3, #0] + 80031b6: 4a77 ldr r2, [pc, #476] ; (8003394 ) + 80031b8: f423 2380 bic.w r3, r3, #262144 ; 0x40000 + 80031bc: 6013 str r3, [r2, #0] + 80031be: e01d b.n 80031fc + 80031c0: 687b ldr r3, [r7, #4] + 80031c2: 685b ldr r3, [r3, #4] + 80031c4: f5b3 2fa0 cmp.w r3, #327680 ; 0x50000 + 80031c8: d10c bne.n 80031e4 + 80031ca: 4b72 ldr r3, [pc, #456] ; (8003394 ) + 80031cc: 681b ldr r3, [r3, #0] + 80031ce: 4a71 ldr r2, [pc, #452] ; (8003394 ) + 80031d0: f443 2380 orr.w r3, r3, #262144 ; 0x40000 + 80031d4: 6013 str r3, [r2, #0] + 80031d6: 4b6f ldr r3, [pc, #444] ; (8003394 ) + 80031d8: 681b ldr r3, [r3, #0] + 80031da: 4a6e ldr r2, [pc, #440] ; (8003394 ) + 80031dc: f443 3380 orr.w r3, r3, #65536 ; 0x10000 + 80031e0: 6013 str r3, [r2, #0] + 80031e2: e00b b.n 80031fc + 80031e4: 4b6b ldr r3, [pc, #428] ; (8003394 ) + 80031e6: 681b ldr r3, [r3, #0] + 80031e8: 4a6a ldr r2, [pc, #424] ; (8003394 ) + 80031ea: f423 3380 bic.w r3, r3, #65536 ; 0x10000 + 80031ee: 6013 str r3, [r2, #0] + 80031f0: 4b68 ldr r3, [pc, #416] ; (8003394 ) + 80031f2: 681b ldr r3, [r3, #0] + 80031f4: 4a67 ldr r2, [pc, #412] ; (8003394 ) + 80031f6: f423 2380 bic.w r3, r3, #262144 ; 0x40000 + 80031fa: 6013 str r3, [r2, #0] /* Check the HSE State */ if (RCC_OscInitStruct->HSEState != RCC_HSE_OFF) - 8003198: 687b ldr r3, [r7, #4] - 800319a: 685b ldr r3, [r3, #4] - 800319c: 2b00 cmp r3, #0 - 800319e: d013 beq.n 80031c8 + 80031fc: 687b ldr r3, [r7, #4] + 80031fe: 685b ldr r3, [r3, #4] + 8003200: 2b00 cmp r3, #0 + 8003202: d013 beq.n 800322c { /* Get Start Tick */ tickstart = HAL_GetTick(); - 80031a0: f7fe fc90 bl 8001ac4 - 80031a4: 6138 str r0, [r7, #16] + 8003204: f7fe fc90 bl 8001b28 + 8003208: 6138 str r0, [r7, #16] /* Wait till HSE is ready */ while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) == RESET) - 80031a6: e008 b.n 80031ba + 800320a: e008 b.n 800321e { if ((HAL_GetTick() - tickstart) > HSE_TIMEOUT_VALUE) - 80031a8: f7fe fc8c bl 8001ac4 - 80031ac: 4602 mov r2, r0 - 80031ae: 693b ldr r3, [r7, #16] - 80031b0: 1ad3 subs r3, r2, r3 - 80031b2: 2b64 cmp r3, #100 ; 0x64 - 80031b4: d901 bls.n 80031ba + 800320c: f7fe fc8c bl 8001b28 + 8003210: 4602 mov r2, r0 + 8003212: 693b ldr r3, [r7, #16] + 8003214: 1ad3 subs r3, r2, r3 + 8003216: 2b64 cmp r3, #100 ; 0x64 + 8003218: d901 bls.n 800321e { return HAL_TIMEOUT; - 80031b6: 2303 movs r3, #3 - 80031b8: e1fa b.n 80035b0 + 800321a: 2303 movs r3, #3 + 800321c: e1fa b.n 8003614 while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) == RESET) - 80031ba: 4b5d ldr r3, [pc, #372] ; (8003330 ) - 80031bc: 681b ldr r3, [r3, #0] - 80031be: f403 3300 and.w r3, r3, #131072 ; 0x20000 - 80031c2: 2b00 cmp r3, #0 - 80031c4: d0f0 beq.n 80031a8 - 80031c6: e014 b.n 80031f2 + 800321e: 4b5d ldr r3, [pc, #372] ; (8003394 ) + 8003220: 681b ldr r3, [r3, #0] + 8003222: f403 3300 and.w r3, r3, #131072 ; 0x20000 + 8003226: 2b00 cmp r3, #0 + 8003228: d0f0 beq.n 800320c + 800322a: e014 b.n 8003256 } } else { /* Get Start Tick */ tickstart = HAL_GetTick(); - 80031c8: f7fe fc7c bl 8001ac4 - 80031cc: 6138 str r0, [r7, #16] + 800322c: f7fe fc7c bl 8001b28 + 8003230: 6138 str r0, [r7, #16] /* Wait till HSE is disabled */ while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != RESET) - 80031ce: e008 b.n 80031e2 + 8003232: e008 b.n 8003246 { if ((HAL_GetTick() - tickstart) > HSE_TIMEOUT_VALUE) - 80031d0: f7fe fc78 bl 8001ac4 - 80031d4: 4602 mov r2, r0 - 80031d6: 693b ldr r3, [r7, #16] - 80031d8: 1ad3 subs r3, r2, r3 - 80031da: 2b64 cmp r3, #100 ; 0x64 - 80031dc: d901 bls.n 80031e2 + 8003234: f7fe fc78 bl 8001b28 + 8003238: 4602 mov r2, r0 + 800323a: 693b ldr r3, [r7, #16] + 800323c: 1ad3 subs r3, r2, r3 + 800323e: 2b64 cmp r3, #100 ; 0x64 + 8003240: d901 bls.n 8003246 { return HAL_TIMEOUT; - 80031de: 2303 movs r3, #3 - 80031e0: e1e6 b.n 80035b0 + 8003242: 2303 movs r3, #3 + 8003244: e1e6 b.n 8003614 while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != RESET) - 80031e2: 4b53 ldr r3, [pc, #332] ; (8003330 ) - 80031e4: 681b ldr r3, [r3, #0] - 80031e6: f403 3300 and.w r3, r3, #131072 ; 0x20000 - 80031ea: 2b00 cmp r3, #0 - 80031ec: d1f0 bne.n 80031d0 - 80031ee: e000 b.n 80031f2 + 8003246: 4b53 ldr r3, [pc, #332] ; (8003394 ) + 8003248: 681b ldr r3, [r3, #0] + 800324a: f403 3300 and.w r3, r3, #131072 ; 0x20000 + 800324e: 2b00 cmp r3, #0 + 8003250: d1f0 bne.n 8003234 + 8003252: e000 b.n 8003256 if ((__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != RESET) && (RCC_OscInitStruct->HSEState == RCC_HSE_OFF)) - 80031f0: bf00 nop + 8003254: bf00 nop } } } } /*----------------------------- HSI Configuration --------------------------*/ if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_HSI) == RCC_OSCILLATORTYPE_HSI) - 80031f2: 687b ldr r3, [r7, #4] - 80031f4: 681b ldr r3, [r3, #0] - 80031f6: f003 0302 and.w r3, r3, #2 - 80031fa: 2b00 cmp r3, #0 - 80031fc: d063 beq.n 80032c6 + 8003256: 687b ldr r3, [r7, #4] + 8003258: 681b ldr r3, [r3, #0] + 800325a: f003 0302 and.w r3, r3, #2 + 800325e: 2b00 cmp r3, #0 + 8003260: d063 beq.n 800332a /* 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) - 80031fe: 4b4c ldr r3, [pc, #304] ; (8003330 ) - 8003200: 685b ldr r3, [r3, #4] - 8003202: f003 030c and.w r3, r3, #12 - 8003206: 2b00 cmp r3, #0 - 8003208: d00b beq.n 8003222 + 8003262: 4b4c ldr r3, [pc, #304] ; (8003394 ) + 8003264: 685b ldr r3, [r3, #4] + 8003266: f003 030c and.w r3, r3, #12 + 800326a: 2b00 cmp r3, #0 + 800326c: d00b beq.n 8003286 || ((__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_SYSCLKSOURCE_STATUS_PLLCLK) && (__HAL_RCC_GET_PLL_OSCSOURCE() == RCC_PLLSOURCE_HSI_DIV2))) - 800320a: 4b49 ldr r3, [pc, #292] ; (8003330 ) - 800320c: 685b ldr r3, [r3, #4] - 800320e: f003 030c and.w r3, r3, #12 - 8003212: 2b08 cmp r3, #8 - 8003214: d11c bne.n 8003250 - 8003216: 4b46 ldr r3, [pc, #280] ; (8003330 ) - 8003218: 685b ldr r3, [r3, #4] - 800321a: f403 3380 and.w r3, r3, #65536 ; 0x10000 - 800321e: 2b00 cmp r3, #0 - 8003220: d116 bne.n 8003250 + 800326e: 4b49 ldr r3, [pc, #292] ; (8003394 ) + 8003270: 685b ldr r3, [r3, #4] + 8003272: f003 030c and.w r3, r3, #12 + 8003276: 2b08 cmp r3, #8 + 8003278: d11c bne.n 80032b4 + 800327a: 4b46 ldr r3, [pc, #280] ; (8003394 ) + 800327c: 685b ldr r3, [r3, #4] + 800327e: f403 3380 and.w r3, r3, #65536 ; 0x10000 + 8003282: 2b00 cmp r3, #0 + 8003284: d116 bne.n 80032b4 { /* 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)) - 8003222: 4b43 ldr r3, [pc, #268] ; (8003330 ) - 8003224: 681b ldr r3, [r3, #0] - 8003226: f003 0302 and.w r3, r3, #2 - 800322a: 2b00 cmp r3, #0 - 800322c: d005 beq.n 800323a - 800322e: 687b ldr r3, [r7, #4] - 8003230: 691b ldr r3, [r3, #16] - 8003232: 2b01 cmp r3, #1 - 8003234: d001 beq.n 800323a + 8003286: 4b43 ldr r3, [pc, #268] ; (8003394 ) + 8003288: 681b ldr r3, [r3, #0] + 800328a: f003 0302 and.w r3, r3, #2 + 800328e: 2b00 cmp r3, #0 + 8003290: d005 beq.n 800329e + 8003292: 687b ldr r3, [r7, #4] + 8003294: 691b ldr r3, [r3, #16] + 8003296: 2b01 cmp r3, #1 + 8003298: d001 beq.n 800329e { return HAL_ERROR; - 8003236: 2301 movs r3, #1 - 8003238: e1ba b.n 80035b0 + 800329a: 2301 movs r3, #1 + 800329c: e1ba b.n 8003614 } /* Otherwise, just the calibration is allowed */ else { /* Adjusts the Internal High Speed oscillator (HSI) calibration value.*/ __HAL_RCC_HSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->HSICalibrationValue); - 800323a: 4b3d ldr r3, [pc, #244] ; (8003330 ) - 800323c: 681b ldr r3, [r3, #0] - 800323e: f023 02f8 bic.w r2, r3, #248 ; 0xf8 - 8003242: 687b ldr r3, [r7, #4] - 8003244: 695b ldr r3, [r3, #20] - 8003246: 00db lsls r3, r3, #3 - 8003248: 4939 ldr r1, [pc, #228] ; (8003330 ) - 800324a: 4313 orrs r3, r2 - 800324c: 600b str r3, [r1, #0] + 800329e: 4b3d ldr r3, [pc, #244] ; (8003394 ) + 80032a0: 681b ldr r3, [r3, #0] + 80032a2: f023 02f8 bic.w r2, r3, #248 ; 0xf8 + 80032a6: 687b ldr r3, [r7, #4] + 80032a8: 695b ldr r3, [r3, #20] + 80032aa: 00db lsls r3, r3, #3 + 80032ac: 4939 ldr r1, [pc, #228] ; (8003394 ) + 80032ae: 4313 orrs r3, r2 + 80032b0: 600b str r3, [r1, #0] if ((__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != RESET) && (RCC_OscInitStruct->HSIState != RCC_HSI_ON)) - 800324e: e03a b.n 80032c6 + 80032b2: e03a b.n 800332a } } else { /* Check the HSI State */ if (RCC_OscInitStruct->HSIState != RCC_HSI_OFF) - 8003250: 687b ldr r3, [r7, #4] - 8003252: 691b ldr r3, [r3, #16] - 8003254: 2b00 cmp r3, #0 - 8003256: d020 beq.n 800329a + 80032b4: 687b ldr r3, [r7, #4] + 80032b6: 691b ldr r3, [r3, #16] + 80032b8: 2b00 cmp r3, #0 + 80032ba: d020 beq.n 80032fe { /* Enable the Internal High Speed oscillator (HSI). */ __HAL_RCC_HSI_ENABLE(); - 8003258: 4b36 ldr r3, [pc, #216] ; (8003334 ) - 800325a: 2201 movs r2, #1 - 800325c: 601a str r2, [r3, #0] + 80032bc: 4b36 ldr r3, [pc, #216] ; (8003398 ) + 80032be: 2201 movs r2, #1 + 80032c0: 601a str r2, [r3, #0] /* Get Start Tick */ tickstart = HAL_GetTick(); - 800325e: f7fe fc31 bl 8001ac4 - 8003262: 6138 str r0, [r7, #16] + 80032c2: f7fe fc31 bl 8001b28 + 80032c6: 6138 str r0, [r7, #16] /* Wait till HSI is ready */ while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) == RESET) - 8003264: e008 b.n 8003278 + 80032c8: e008 b.n 80032dc { if ((HAL_GetTick() - tickstart) > HSI_TIMEOUT_VALUE) - 8003266: f7fe fc2d bl 8001ac4 - 800326a: 4602 mov r2, r0 - 800326c: 693b ldr r3, [r7, #16] - 800326e: 1ad3 subs r3, r2, r3 - 8003270: 2b02 cmp r3, #2 - 8003272: d901 bls.n 8003278 + 80032ca: f7fe fc2d bl 8001b28 + 80032ce: 4602 mov r2, r0 + 80032d0: 693b ldr r3, [r7, #16] + 80032d2: 1ad3 subs r3, r2, r3 + 80032d4: 2b02 cmp r3, #2 + 80032d6: d901 bls.n 80032dc { return HAL_TIMEOUT; - 8003274: 2303 movs r3, #3 - 8003276: e19b b.n 80035b0 + 80032d8: 2303 movs r3, #3 + 80032da: e19b b.n 8003614 while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) == RESET) - 8003278: 4b2d ldr r3, [pc, #180] ; (8003330 ) - 800327a: 681b ldr r3, [r3, #0] - 800327c: f003 0302 and.w r3, r3, #2 - 8003280: 2b00 cmp r3, #0 - 8003282: d0f0 beq.n 8003266 + 80032dc: 4b2d ldr r3, [pc, #180] ; (8003394 ) + 80032de: 681b ldr r3, [r3, #0] + 80032e0: f003 0302 and.w r3, r3, #2 + 80032e4: 2b00 cmp r3, #0 + 80032e6: d0f0 beq.n 80032ca } } /* Adjusts the Internal High Speed oscillator (HSI) calibration value.*/ __HAL_RCC_HSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->HSICalibrationValue); - 8003284: 4b2a ldr r3, [pc, #168] ; (8003330 ) - 8003286: 681b ldr r3, [r3, #0] - 8003288: f023 02f8 bic.w r2, r3, #248 ; 0xf8 - 800328c: 687b ldr r3, [r7, #4] - 800328e: 695b ldr r3, [r3, #20] - 8003290: 00db lsls r3, r3, #3 - 8003292: 4927 ldr r1, [pc, #156] ; (8003330 ) - 8003294: 4313 orrs r3, r2 - 8003296: 600b str r3, [r1, #0] - 8003298: e015 b.n 80032c6 + 80032e8: 4b2a ldr r3, [pc, #168] ; (8003394 ) + 80032ea: 681b ldr r3, [r3, #0] + 80032ec: f023 02f8 bic.w r2, r3, #248 ; 0xf8 + 80032f0: 687b ldr r3, [r7, #4] + 80032f2: 695b ldr r3, [r3, #20] + 80032f4: 00db lsls r3, r3, #3 + 80032f6: 4927 ldr r1, [pc, #156] ; (8003394 ) + 80032f8: 4313 orrs r3, r2 + 80032fa: 600b str r3, [r1, #0] + 80032fc: e015 b.n 800332a } else { /* Disable the Internal High Speed oscillator (HSI). */ __HAL_RCC_HSI_DISABLE(); - 800329a: 4b26 ldr r3, [pc, #152] ; (8003334 ) - 800329c: 2200 movs r2, #0 - 800329e: 601a str r2, [r3, #0] + 80032fe: 4b26 ldr r3, [pc, #152] ; (8003398 ) + 8003300: 2200 movs r2, #0 + 8003302: 601a str r2, [r3, #0] /* Get Start Tick */ tickstart = HAL_GetTick(); - 80032a0: f7fe fc10 bl 8001ac4 - 80032a4: 6138 str r0, [r7, #16] + 8003304: f7fe fc10 bl 8001b28 + 8003308: 6138 str r0, [r7, #16] /* Wait till HSI is disabled */ while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != RESET) - 80032a6: e008 b.n 80032ba + 800330a: e008 b.n 800331e { if ((HAL_GetTick() - tickstart) > HSI_TIMEOUT_VALUE) - 80032a8: f7fe fc0c bl 8001ac4 - 80032ac: 4602 mov r2, r0 - 80032ae: 693b ldr r3, [r7, #16] - 80032b0: 1ad3 subs r3, r2, r3 - 80032b2: 2b02 cmp r3, #2 - 80032b4: d901 bls.n 80032ba + 800330c: f7fe fc0c bl 8001b28 + 8003310: 4602 mov r2, r0 + 8003312: 693b ldr r3, [r7, #16] + 8003314: 1ad3 subs r3, r2, r3 + 8003316: 2b02 cmp r3, #2 + 8003318: d901 bls.n 800331e { return HAL_TIMEOUT; - 80032b6: 2303 movs r3, #3 - 80032b8: e17a b.n 80035b0 + 800331a: 2303 movs r3, #3 + 800331c: e17a b.n 8003614 while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != RESET) - 80032ba: 4b1d ldr r3, [pc, #116] ; (8003330 ) - 80032bc: 681b ldr r3, [r3, #0] - 80032be: f003 0302 and.w r3, r3, #2 - 80032c2: 2b00 cmp r3, #0 - 80032c4: d1f0 bne.n 80032a8 + 800331e: 4b1d ldr r3, [pc, #116] ; (8003394 ) + 8003320: 681b ldr r3, [r3, #0] + 8003322: f003 0302 and.w r3, r3, #2 + 8003326: 2b00 cmp r3, #0 + 8003328: d1f0 bne.n 800330c } } } } /*------------------------------ LSI Configuration -------------------------*/ if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_LSI) == RCC_OSCILLATORTYPE_LSI) - 80032c6: 687b ldr r3, [r7, #4] - 80032c8: 681b ldr r3, [r3, #0] - 80032ca: f003 0308 and.w r3, r3, #8 - 80032ce: 2b00 cmp r3, #0 - 80032d0: d03a beq.n 8003348 + 800332a: 687b ldr r3, [r7, #4] + 800332c: 681b ldr r3, [r3, #0] + 800332e: f003 0308 and.w r3, r3, #8 + 8003332: 2b00 cmp r3, #0 + 8003334: d03a beq.n 80033ac { /* Check the parameters */ assert_param(IS_RCC_LSI(RCC_OscInitStruct->LSIState)); /* Check the LSI State */ if (RCC_OscInitStruct->LSIState != RCC_LSI_OFF) - 80032d2: 687b ldr r3, [r7, #4] - 80032d4: 699b ldr r3, [r3, #24] - 80032d6: 2b00 cmp r3, #0 - 80032d8: d019 beq.n 800330e + 8003336: 687b ldr r3, [r7, #4] + 8003338: 699b ldr r3, [r3, #24] + 800333a: 2b00 cmp r3, #0 + 800333c: d019 beq.n 8003372 { /* Enable the Internal Low Speed oscillator (LSI). */ __HAL_RCC_LSI_ENABLE(); - 80032da: 4b17 ldr r3, [pc, #92] ; (8003338 ) - 80032dc: 2201 movs r2, #1 - 80032de: 601a str r2, [r3, #0] + 800333e: 4b17 ldr r3, [pc, #92] ; (800339c ) + 8003340: 2201 movs r2, #1 + 8003342: 601a str r2, [r3, #0] /* Get Start Tick */ tickstart = HAL_GetTick(); - 80032e0: f7fe fbf0 bl 8001ac4 - 80032e4: 6138 str r0, [r7, #16] + 8003344: f7fe fbf0 bl 8001b28 + 8003348: 6138 str r0, [r7, #16] /* Wait till LSI is ready */ while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) == RESET) - 80032e6: e008 b.n 80032fa + 800334a: e008 b.n 800335e { if ((HAL_GetTick() - tickstart) > LSI_TIMEOUT_VALUE) - 80032e8: f7fe fbec bl 8001ac4 - 80032ec: 4602 mov r2, r0 - 80032ee: 693b ldr r3, [r7, #16] - 80032f0: 1ad3 subs r3, r2, r3 - 80032f2: 2b02 cmp r3, #2 - 80032f4: d901 bls.n 80032fa + 800334c: f7fe fbec bl 8001b28 + 8003350: 4602 mov r2, r0 + 8003352: 693b ldr r3, [r7, #16] + 8003354: 1ad3 subs r3, r2, r3 + 8003356: 2b02 cmp r3, #2 + 8003358: d901 bls.n 800335e { return HAL_TIMEOUT; - 80032f6: 2303 movs r3, #3 - 80032f8: e15a b.n 80035b0 + 800335a: 2303 movs r3, #3 + 800335c: e15a b.n 8003614 while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) == RESET) - 80032fa: 4b0d ldr r3, [pc, #52] ; (8003330 ) - 80032fc: 6a5b ldr r3, [r3, #36] ; 0x24 - 80032fe: f003 0302 and.w r3, r3, #2 - 8003302: 2b00 cmp r3, #0 - 8003304: d0f0 beq.n 80032e8 + 800335e: 4b0d ldr r3, [pc, #52] ; (8003394 ) + 8003360: 6a5b ldr r3, [r3, #36] ; 0x24 + 8003362: f003 0302 and.w r3, r3, #2 + 8003366: 2b00 cmp r3, #0 + 8003368: d0f0 beq.n 800334c } } /* To have a fully stabilized clock in the specified range, a software delay of 1ms should be added.*/ RCC_Delay(1); - 8003306: 2001 movs r0, #1 - 8003308: f000 fac4 bl 8003894 - 800330c: e01c b.n 8003348 + 800336a: 2001 movs r0, #1 + 800336c: f000 fac4 bl 80038f8 + 8003370: e01c b.n 80033ac } else { /* Disable the Internal Low Speed oscillator (LSI). */ __HAL_RCC_LSI_DISABLE(); - 800330e: 4b0a ldr r3, [pc, #40] ; (8003338 ) - 8003310: 2200 movs r2, #0 - 8003312: 601a str r2, [r3, #0] + 8003372: 4b0a ldr r3, [pc, #40] ; (800339c ) + 8003374: 2200 movs r2, #0 + 8003376: 601a str r2, [r3, #0] /* Get Start Tick */ tickstart = HAL_GetTick(); - 8003314: f7fe fbd6 bl 8001ac4 - 8003318: 6138 str r0, [r7, #16] + 8003378: f7fe fbd6 bl 8001b28 + 800337c: 6138 str r0, [r7, #16] /* Wait till LSI is disabled */ while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) != RESET) - 800331a: e00f b.n 800333c + 800337e: e00f b.n 80033a0 { if ((HAL_GetTick() - tickstart) > LSI_TIMEOUT_VALUE) - 800331c: f7fe fbd2 bl 8001ac4 - 8003320: 4602 mov r2, r0 - 8003322: 693b ldr r3, [r7, #16] - 8003324: 1ad3 subs r3, r2, r3 - 8003326: 2b02 cmp r3, #2 - 8003328: d908 bls.n 800333c + 8003380: f7fe fbd2 bl 8001b28 + 8003384: 4602 mov r2, r0 + 8003386: 693b ldr r3, [r7, #16] + 8003388: 1ad3 subs r3, r2, r3 + 800338a: 2b02 cmp r3, #2 + 800338c: d908 bls.n 80033a0 { return HAL_TIMEOUT; - 800332a: 2303 movs r3, #3 - 800332c: e140 b.n 80035b0 - 800332e: bf00 nop - 8003330: 40021000 .word 0x40021000 - 8003334: 42420000 .word 0x42420000 - 8003338: 42420480 .word 0x42420480 + 800338e: 2303 movs r3, #3 + 8003390: e140 b.n 8003614 + 8003392: bf00 nop + 8003394: 40021000 .word 0x40021000 + 8003398: 42420000 .word 0x42420000 + 800339c: 42420480 .word 0x42420480 while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) != RESET) - 800333c: 4b9e ldr r3, [pc, #632] ; (80035b8 ) - 800333e: 6a5b ldr r3, [r3, #36] ; 0x24 - 8003340: f003 0302 and.w r3, r3, #2 - 8003344: 2b00 cmp r3, #0 - 8003346: d1e9 bne.n 800331c + 80033a0: 4b9e ldr r3, [pc, #632] ; (800361c ) + 80033a2: 6a5b ldr r3, [r3, #36] ; 0x24 + 80033a4: f003 0302 and.w r3, r3, #2 + 80033a8: 2b00 cmp r3, #0 + 80033aa: d1e9 bne.n 8003380 } } } } /*------------------------------ LSE Configuration -------------------------*/ if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_LSE) == RCC_OSCILLATORTYPE_LSE) - 8003348: 687b ldr r3, [r7, #4] - 800334a: 681b ldr r3, [r3, #0] - 800334c: f003 0304 and.w r3, r3, #4 - 8003350: 2b00 cmp r3, #0 - 8003352: f000 80a6 beq.w 80034a2 + 80033ac: 687b ldr r3, [r7, #4] + 80033ae: 681b ldr r3, [r3, #0] + 80033b0: f003 0304 and.w r3, r3, #4 + 80033b4: 2b00 cmp r3, #0 + 80033b6: f000 80a6 beq.w 8003506 { FlagStatus pwrclkchanged = RESET; - 8003356: 2300 movs r3, #0 - 8003358: 75fb strb r3, [r7, #23] + 80033ba: 2300 movs r3, #0 + 80033bc: 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()) - 800335a: 4b97 ldr r3, [pc, #604] ; (80035b8 ) - 800335c: 69db ldr r3, [r3, #28] - 800335e: f003 5380 and.w r3, r3, #268435456 ; 0x10000000 - 8003362: 2b00 cmp r3, #0 - 8003364: d10d bne.n 8003382 + 80033be: 4b97 ldr r3, [pc, #604] ; (800361c ) + 80033c0: 69db ldr r3, [r3, #28] + 80033c2: f003 5380 and.w r3, r3, #268435456 ; 0x10000000 + 80033c6: 2b00 cmp r3, #0 + 80033c8: d10d bne.n 80033e6 { __HAL_RCC_PWR_CLK_ENABLE(); - 8003366: 4b94 ldr r3, [pc, #592] ; (80035b8 ) - 8003368: 69db ldr r3, [r3, #28] - 800336a: 4a93 ldr r2, [pc, #588] ; (80035b8 ) - 800336c: f043 5380 orr.w r3, r3, #268435456 ; 0x10000000 - 8003370: 61d3 str r3, [r2, #28] - 8003372: 4b91 ldr r3, [pc, #580] ; (80035b8 ) - 8003374: 69db ldr r3, [r3, #28] - 8003376: f003 5380 and.w r3, r3, #268435456 ; 0x10000000 - 800337a: 60bb str r3, [r7, #8] - 800337c: 68bb ldr r3, [r7, #8] + 80033ca: 4b94 ldr r3, [pc, #592] ; (800361c ) + 80033cc: 69db ldr r3, [r3, #28] + 80033ce: 4a93 ldr r2, [pc, #588] ; (800361c ) + 80033d0: f043 5380 orr.w r3, r3, #268435456 ; 0x10000000 + 80033d4: 61d3 str r3, [r2, #28] + 80033d6: 4b91 ldr r3, [pc, #580] ; (800361c ) + 80033d8: 69db ldr r3, [r3, #28] + 80033da: f003 5380 and.w r3, r3, #268435456 ; 0x10000000 + 80033de: 60bb str r3, [r7, #8] + 80033e0: 68bb ldr r3, [r7, #8] pwrclkchanged = SET; - 800337e: 2301 movs r3, #1 - 8003380: 75fb strb r3, [r7, #23] + 80033e2: 2301 movs r3, #1 + 80033e4: 75fb strb r3, [r7, #23] } if (HAL_IS_BIT_CLR(PWR->CR, PWR_CR_DBP)) - 8003382: 4b8e ldr r3, [pc, #568] ; (80035bc ) - 8003384: 681b ldr r3, [r3, #0] - 8003386: f403 7380 and.w r3, r3, #256 ; 0x100 - 800338a: 2b00 cmp r3, #0 - 800338c: d118 bne.n 80033c0 + 80033e6: 4b8e ldr r3, [pc, #568] ; (8003620 ) + 80033e8: 681b ldr r3, [r3, #0] + 80033ea: f403 7380 and.w r3, r3, #256 ; 0x100 + 80033ee: 2b00 cmp r3, #0 + 80033f0: d118 bne.n 8003424 { /* Enable write access to Backup domain */ SET_BIT(PWR->CR, PWR_CR_DBP); - 800338e: 4b8b ldr r3, [pc, #556] ; (80035bc ) - 8003390: 681b ldr r3, [r3, #0] - 8003392: 4a8a ldr r2, [pc, #552] ; (80035bc ) - 8003394: f443 7380 orr.w r3, r3, #256 ; 0x100 - 8003398: 6013 str r3, [r2, #0] + 80033f2: 4b8b ldr r3, [pc, #556] ; (8003620 ) + 80033f4: 681b ldr r3, [r3, #0] + 80033f6: 4a8a ldr r2, [pc, #552] ; (8003620 ) + 80033f8: f443 7380 orr.w r3, r3, #256 ; 0x100 + 80033fc: 6013 str r3, [r2, #0] /* Wait for Backup domain Write protection disable */ tickstart = HAL_GetTick(); - 800339a: f7fe fb93 bl 8001ac4 - 800339e: 6138 str r0, [r7, #16] + 80033fe: f7fe fb93 bl 8001b28 + 8003402: 6138 str r0, [r7, #16] while (HAL_IS_BIT_CLR(PWR->CR, PWR_CR_DBP)) - 80033a0: e008 b.n 80033b4 + 8003404: e008 b.n 8003418 { if ((HAL_GetTick() - tickstart) > RCC_DBP_TIMEOUT_VALUE) - 80033a2: f7fe fb8f bl 8001ac4 - 80033a6: 4602 mov r2, r0 - 80033a8: 693b ldr r3, [r7, #16] - 80033aa: 1ad3 subs r3, r2, r3 - 80033ac: 2b64 cmp r3, #100 ; 0x64 - 80033ae: d901 bls.n 80033b4 + 8003406: f7fe fb8f bl 8001b28 + 800340a: 4602 mov r2, r0 + 800340c: 693b ldr r3, [r7, #16] + 800340e: 1ad3 subs r3, r2, r3 + 8003410: 2b64 cmp r3, #100 ; 0x64 + 8003412: d901 bls.n 8003418 { return HAL_TIMEOUT; - 80033b0: 2303 movs r3, #3 - 80033b2: e0fd b.n 80035b0 + 8003414: 2303 movs r3, #3 + 8003416: e0fd b.n 8003614 while (HAL_IS_BIT_CLR(PWR->CR, PWR_CR_DBP)) - 80033b4: 4b81 ldr r3, [pc, #516] ; (80035bc ) - 80033b6: 681b ldr r3, [r3, #0] - 80033b8: f403 7380 and.w r3, r3, #256 ; 0x100 - 80033bc: 2b00 cmp r3, #0 - 80033be: d0f0 beq.n 80033a2 + 8003418: 4b81 ldr r3, [pc, #516] ; (8003620 ) + 800341a: 681b ldr r3, [r3, #0] + 800341c: f403 7380 and.w r3, r3, #256 ; 0x100 + 8003420: 2b00 cmp r3, #0 + 8003422: d0f0 beq.n 8003406 } } } /* Set the new LSE configuration -----------------------------------------*/ __HAL_RCC_LSE_CONFIG(RCC_OscInitStruct->LSEState); - 80033c0: 687b ldr r3, [r7, #4] - 80033c2: 68db ldr r3, [r3, #12] - 80033c4: 2b01 cmp r3, #1 - 80033c6: d106 bne.n 80033d6 - 80033c8: 4b7b ldr r3, [pc, #492] ; (80035b8 ) - 80033ca: 6a1b ldr r3, [r3, #32] - 80033cc: 4a7a ldr r2, [pc, #488] ; (80035b8 ) - 80033ce: f043 0301 orr.w r3, r3, #1 - 80033d2: 6213 str r3, [r2, #32] - 80033d4: e02d b.n 8003432 - 80033d6: 687b ldr r3, [r7, #4] - 80033d8: 68db ldr r3, [r3, #12] - 80033da: 2b00 cmp r3, #0 - 80033dc: d10c bne.n 80033f8 - 80033de: 4b76 ldr r3, [pc, #472] ; (80035b8 ) - 80033e0: 6a1b ldr r3, [r3, #32] - 80033e2: 4a75 ldr r2, [pc, #468] ; (80035b8 ) - 80033e4: f023 0301 bic.w r3, r3, #1 - 80033e8: 6213 str r3, [r2, #32] - 80033ea: 4b73 ldr r3, [pc, #460] ; (80035b8 ) - 80033ec: 6a1b ldr r3, [r3, #32] - 80033ee: 4a72 ldr r2, [pc, #456] ; (80035b8 ) - 80033f0: f023 0304 bic.w r3, r3, #4 - 80033f4: 6213 str r3, [r2, #32] - 80033f6: e01c b.n 8003432 - 80033f8: 687b ldr r3, [r7, #4] - 80033fa: 68db ldr r3, [r3, #12] - 80033fc: 2b05 cmp r3, #5 - 80033fe: d10c bne.n 800341a - 8003400: 4b6d ldr r3, [pc, #436] ; (80035b8 ) - 8003402: 6a1b ldr r3, [r3, #32] - 8003404: 4a6c ldr r2, [pc, #432] ; (80035b8 ) - 8003406: f043 0304 orr.w r3, r3, #4 - 800340a: 6213 str r3, [r2, #32] - 800340c: 4b6a ldr r3, [pc, #424] ; (80035b8 ) - 800340e: 6a1b ldr r3, [r3, #32] - 8003410: 4a69 ldr r2, [pc, #420] ; (80035b8 ) - 8003412: f043 0301 orr.w r3, r3, #1 - 8003416: 6213 str r3, [r2, #32] - 8003418: e00b b.n 8003432 - 800341a: 4b67 ldr r3, [pc, #412] ; (80035b8 ) - 800341c: 6a1b ldr r3, [r3, #32] - 800341e: 4a66 ldr r2, [pc, #408] ; (80035b8 ) - 8003420: f023 0301 bic.w r3, r3, #1 - 8003424: 6213 str r3, [r2, #32] - 8003426: 4b64 ldr r3, [pc, #400] ; (80035b8 ) - 8003428: 6a1b ldr r3, [r3, #32] - 800342a: 4a63 ldr r2, [pc, #396] ; (80035b8 ) - 800342c: f023 0304 bic.w r3, r3, #4 - 8003430: 6213 str r3, [r2, #32] + 8003424: 687b ldr r3, [r7, #4] + 8003426: 68db ldr r3, [r3, #12] + 8003428: 2b01 cmp r3, #1 + 800342a: d106 bne.n 800343a + 800342c: 4b7b ldr r3, [pc, #492] ; (800361c ) + 800342e: 6a1b ldr r3, [r3, #32] + 8003430: 4a7a ldr r2, [pc, #488] ; (800361c ) + 8003432: f043 0301 orr.w r3, r3, #1 + 8003436: 6213 str r3, [r2, #32] + 8003438: e02d b.n 8003496 + 800343a: 687b ldr r3, [r7, #4] + 800343c: 68db ldr r3, [r3, #12] + 800343e: 2b00 cmp r3, #0 + 8003440: d10c bne.n 800345c + 8003442: 4b76 ldr r3, [pc, #472] ; (800361c ) + 8003444: 6a1b ldr r3, [r3, #32] + 8003446: 4a75 ldr r2, [pc, #468] ; (800361c ) + 8003448: f023 0301 bic.w r3, r3, #1 + 800344c: 6213 str r3, [r2, #32] + 800344e: 4b73 ldr r3, [pc, #460] ; (800361c ) + 8003450: 6a1b ldr r3, [r3, #32] + 8003452: 4a72 ldr r2, [pc, #456] ; (800361c ) + 8003454: f023 0304 bic.w r3, r3, #4 + 8003458: 6213 str r3, [r2, #32] + 800345a: e01c b.n 8003496 + 800345c: 687b ldr r3, [r7, #4] + 800345e: 68db ldr r3, [r3, #12] + 8003460: 2b05 cmp r3, #5 + 8003462: d10c bne.n 800347e + 8003464: 4b6d ldr r3, [pc, #436] ; (800361c ) + 8003466: 6a1b ldr r3, [r3, #32] + 8003468: 4a6c ldr r2, [pc, #432] ; (800361c ) + 800346a: f043 0304 orr.w r3, r3, #4 + 800346e: 6213 str r3, [r2, #32] + 8003470: 4b6a ldr r3, [pc, #424] ; (800361c ) + 8003472: 6a1b ldr r3, [r3, #32] + 8003474: 4a69 ldr r2, [pc, #420] ; (800361c ) + 8003476: f043 0301 orr.w r3, r3, #1 + 800347a: 6213 str r3, [r2, #32] + 800347c: e00b b.n 8003496 + 800347e: 4b67 ldr r3, [pc, #412] ; (800361c ) + 8003480: 6a1b ldr r3, [r3, #32] + 8003482: 4a66 ldr r2, [pc, #408] ; (800361c ) + 8003484: f023 0301 bic.w r3, r3, #1 + 8003488: 6213 str r3, [r2, #32] + 800348a: 4b64 ldr r3, [pc, #400] ; (800361c ) + 800348c: 6a1b ldr r3, [r3, #32] + 800348e: 4a63 ldr r2, [pc, #396] ; (800361c ) + 8003490: f023 0304 bic.w r3, r3, #4 + 8003494: 6213 str r3, [r2, #32] /* Check the LSE State */ if (RCC_OscInitStruct->LSEState != RCC_LSE_OFF) - 8003432: 687b ldr r3, [r7, #4] - 8003434: 68db ldr r3, [r3, #12] - 8003436: 2b00 cmp r3, #0 - 8003438: d015 beq.n 8003466 + 8003496: 687b ldr r3, [r7, #4] + 8003498: 68db ldr r3, [r3, #12] + 800349a: 2b00 cmp r3, #0 + 800349c: d015 beq.n 80034ca { /* Get Start Tick */ tickstart = HAL_GetTick(); - 800343a: f7fe fb43 bl 8001ac4 - 800343e: 6138 str r0, [r7, #16] + 800349e: f7fe fb43 bl 8001b28 + 80034a2: 6138 str r0, [r7, #16] /* Wait till LSE is ready */ while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) == RESET) - 8003440: e00a b.n 8003458 + 80034a4: e00a b.n 80034bc { if ((HAL_GetTick() - tickstart) > RCC_LSE_TIMEOUT_VALUE) - 8003442: f7fe fb3f bl 8001ac4 - 8003446: 4602 mov r2, r0 - 8003448: 693b ldr r3, [r7, #16] - 800344a: 1ad3 subs r3, r2, r3 - 800344c: f241 3288 movw r2, #5000 ; 0x1388 - 8003450: 4293 cmp r3, r2 - 8003452: d901 bls.n 8003458 + 80034a6: f7fe fb3f bl 8001b28 + 80034aa: 4602 mov r2, r0 + 80034ac: 693b ldr r3, [r7, #16] + 80034ae: 1ad3 subs r3, r2, r3 + 80034b0: f241 3288 movw r2, #5000 ; 0x1388 + 80034b4: 4293 cmp r3, r2 + 80034b6: d901 bls.n 80034bc { return HAL_TIMEOUT; - 8003454: 2303 movs r3, #3 - 8003456: e0ab b.n 80035b0 + 80034b8: 2303 movs r3, #3 + 80034ba: e0ab b.n 8003614 while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) == RESET) - 8003458: 4b57 ldr r3, [pc, #348] ; (80035b8 ) - 800345a: 6a1b ldr r3, [r3, #32] - 800345c: f003 0302 and.w r3, r3, #2 - 8003460: 2b00 cmp r3, #0 - 8003462: d0ee beq.n 8003442 - 8003464: e014 b.n 8003490 + 80034bc: 4b57 ldr r3, [pc, #348] ; (800361c ) + 80034be: 6a1b ldr r3, [r3, #32] + 80034c0: f003 0302 and.w r3, r3, #2 + 80034c4: 2b00 cmp r3, #0 + 80034c6: d0ee beq.n 80034a6 + 80034c8: e014 b.n 80034f4 } } else { /* Get Start Tick */ tickstart = HAL_GetTick(); - 8003466: f7fe fb2d bl 8001ac4 - 800346a: 6138 str r0, [r7, #16] + 80034ca: f7fe fb2d bl 8001b28 + 80034ce: 6138 str r0, [r7, #16] /* Wait till LSE is disabled */ while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) != RESET) - 800346c: e00a b.n 8003484 + 80034d0: e00a b.n 80034e8 { if ((HAL_GetTick() - tickstart) > RCC_LSE_TIMEOUT_VALUE) - 800346e: f7fe fb29 bl 8001ac4 - 8003472: 4602 mov r2, r0 - 8003474: 693b ldr r3, [r7, #16] - 8003476: 1ad3 subs r3, r2, r3 - 8003478: f241 3288 movw r2, #5000 ; 0x1388 - 800347c: 4293 cmp r3, r2 - 800347e: d901 bls.n 8003484 + 80034d2: f7fe fb29 bl 8001b28 + 80034d6: 4602 mov r2, r0 + 80034d8: 693b ldr r3, [r7, #16] + 80034da: 1ad3 subs r3, r2, r3 + 80034dc: f241 3288 movw r2, #5000 ; 0x1388 + 80034e0: 4293 cmp r3, r2 + 80034e2: d901 bls.n 80034e8 { return HAL_TIMEOUT; - 8003480: 2303 movs r3, #3 - 8003482: e095 b.n 80035b0 + 80034e4: 2303 movs r3, #3 + 80034e6: e095 b.n 8003614 while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) != RESET) - 8003484: 4b4c ldr r3, [pc, #304] ; (80035b8 ) - 8003486: 6a1b ldr r3, [r3, #32] - 8003488: f003 0302 and.w r3, r3, #2 - 800348c: 2b00 cmp r3, #0 - 800348e: d1ee bne.n 800346e + 80034e8: 4b4c ldr r3, [pc, #304] ; (800361c ) + 80034ea: 6a1b ldr r3, [r3, #32] + 80034ec: f003 0302 and.w r3, r3, #2 + 80034f0: 2b00 cmp r3, #0 + 80034f2: d1ee bne.n 80034d2 } } } /* Require to disable power clock if necessary */ if (pwrclkchanged == SET) - 8003490: 7dfb ldrb r3, [r7, #23] - 8003492: 2b01 cmp r3, #1 - 8003494: d105 bne.n 80034a2 + 80034f4: 7dfb ldrb r3, [r7, #23] + 80034f6: 2b01 cmp r3, #1 + 80034f8: d105 bne.n 8003506 { __HAL_RCC_PWR_CLK_DISABLE(); - 8003496: 4b48 ldr r3, [pc, #288] ; (80035b8 ) - 8003498: 69db ldr r3, [r3, #28] - 800349a: 4a47 ldr r2, [pc, #284] ; (80035b8 ) - 800349c: f023 5380 bic.w r3, r3, #268435456 ; 0x10000000 - 80034a0: 61d3 str r3, [r2, #28] + 80034fa: 4b48 ldr r3, [pc, #288] ; (800361c ) + 80034fc: 69db ldr r3, [r3, #28] + 80034fe: 4a47 ldr r2, [pc, #284] ; (800361c ) + 8003500: f023 5380 bic.w r3, r3, #268435456 ; 0x10000000 + 8003504: 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) - 80034a2: 687b ldr r3, [r7, #4] - 80034a4: 69db ldr r3, [r3, #28] - 80034a6: 2b00 cmp r3, #0 - 80034a8: f000 8081 beq.w 80035ae + 8003506: 687b ldr r3, [r7, #4] + 8003508: 69db ldr r3, [r3, #28] + 800350a: 2b00 cmp r3, #0 + 800350c: f000 8081 beq.w 8003612 { /* Check if the PLL is used as system clock or not */ if (__HAL_RCC_GET_SYSCLK_SOURCE() != RCC_SYSCLKSOURCE_STATUS_PLLCLK) - 80034ac: 4b42 ldr r3, [pc, #264] ; (80035b8 ) - 80034ae: 685b ldr r3, [r3, #4] - 80034b0: f003 030c and.w r3, r3, #12 - 80034b4: 2b08 cmp r3, #8 - 80034b6: d061 beq.n 800357c + 8003510: 4b42 ldr r3, [pc, #264] ; (800361c ) + 8003512: 685b ldr r3, [r3, #4] + 8003514: f003 030c and.w r3, r3, #12 + 8003518: 2b08 cmp r3, #8 + 800351a: d061 beq.n 80035e0 { if ((RCC_OscInitStruct->PLL.PLLState) == RCC_PLL_ON) - 80034b8: 687b ldr r3, [r7, #4] - 80034ba: 69db ldr r3, [r3, #28] - 80034bc: 2b02 cmp r3, #2 - 80034be: d146 bne.n 800354e + 800351c: 687b ldr r3, [r7, #4] + 800351e: 69db ldr r3, [r3, #28] + 8003520: 2b02 cmp r3, #2 + 8003522: d146 bne.n 80035b2 /* 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(); - 80034c0: 4b3f ldr r3, [pc, #252] ; (80035c0 ) - 80034c2: 2200 movs r2, #0 - 80034c4: 601a str r2, [r3, #0] + 8003524: 4b3f ldr r3, [pc, #252] ; (8003624 ) + 8003526: 2200 movs r2, #0 + 8003528: 601a str r2, [r3, #0] /* Get Start Tick */ tickstart = HAL_GetTick(); - 80034c6: f7fe fafd bl 8001ac4 - 80034ca: 6138 str r0, [r7, #16] + 800352a: f7fe fafd bl 8001b28 + 800352e: 6138 str r0, [r7, #16] /* Wait till PLL is disabled */ while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != RESET) - 80034cc: e008 b.n 80034e0 + 8003530: e008 b.n 8003544 { if ((HAL_GetTick() - tickstart) > PLL_TIMEOUT_VALUE) - 80034ce: f7fe faf9 bl 8001ac4 - 80034d2: 4602 mov r2, r0 - 80034d4: 693b ldr r3, [r7, #16] - 80034d6: 1ad3 subs r3, r2, r3 - 80034d8: 2b02 cmp r3, #2 - 80034da: d901 bls.n 80034e0 + 8003532: f7fe faf9 bl 8001b28 + 8003536: 4602 mov r2, r0 + 8003538: 693b ldr r3, [r7, #16] + 800353a: 1ad3 subs r3, r2, r3 + 800353c: 2b02 cmp r3, #2 + 800353e: d901 bls.n 8003544 { return HAL_TIMEOUT; - 80034dc: 2303 movs r3, #3 - 80034de: e067 b.n 80035b0 + 8003540: 2303 movs r3, #3 + 8003542: e067 b.n 8003614 while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != RESET) - 80034e0: 4b35 ldr r3, [pc, #212] ; (80035b8 ) - 80034e2: 681b ldr r3, [r3, #0] - 80034e4: f003 7300 and.w r3, r3, #33554432 ; 0x2000000 - 80034e8: 2b00 cmp r3, #0 - 80034ea: d1f0 bne.n 80034ce + 8003544: 4b35 ldr r3, [pc, #212] ; (800361c ) + 8003546: 681b ldr r3, [r3, #0] + 8003548: f003 7300 and.w r3, r3, #33554432 ; 0x2000000 + 800354c: 2b00 cmp r3, #0 + 800354e: d1f0 bne.n 8003532 } } /* 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) - 80034ec: 687b ldr r3, [r7, #4] - 80034ee: 6a1b ldr r3, [r3, #32] - 80034f0: f5b3 3f80 cmp.w r3, #65536 ; 0x10000 - 80034f4: d108 bne.n 8003508 + 8003550: 687b ldr r3, [r7, #4] + 8003552: 6a1b ldr r3, [r3, #32] + 8003554: f5b3 3f80 cmp.w r3, #65536 ; 0x10000 + 8003558: d108 bne.n 800356c /* 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); - 80034f6: 4b30 ldr r3, [pc, #192] ; (80035b8 ) - 80034f8: 685b ldr r3, [r3, #4] - 80034fa: f423 3200 bic.w r2, r3, #131072 ; 0x20000 - 80034fe: 687b ldr r3, [r7, #4] - 8003500: 689b ldr r3, [r3, #8] - 8003502: 492d ldr r1, [pc, #180] ; (80035b8 ) - 8003504: 4313 orrs r3, r2 - 8003506: 604b str r3, [r1, #4] + 800355a: 4b30 ldr r3, [pc, #192] ; (800361c ) + 800355c: 685b ldr r3, [r3, #4] + 800355e: f423 3200 bic.w r2, r3, #131072 ; 0x20000 + 8003562: 687b ldr r3, [r7, #4] + 8003564: 689b ldr r3, [r3, #8] + 8003566: 492d ldr r1, [pc, #180] ; (800361c ) + 8003568: 4313 orrs r3, r2 + 800356a: 604b str r3, [r1, #4] } /* Configure the main PLL clock source and multiplication factors. */ __HAL_RCC_PLL_CONFIG(RCC_OscInitStruct->PLL.PLLSource, - 8003508: 4b2b ldr r3, [pc, #172] ; (80035b8 ) - 800350a: 685b ldr r3, [r3, #4] - 800350c: f423 1274 bic.w r2, r3, #3997696 ; 0x3d0000 - 8003510: 687b ldr r3, [r7, #4] - 8003512: 6a19 ldr r1, [r3, #32] - 8003514: 687b ldr r3, [r7, #4] - 8003516: 6a5b ldr r3, [r3, #36] ; 0x24 - 8003518: 430b orrs r3, r1 - 800351a: 4927 ldr r1, [pc, #156] ; (80035b8 ) - 800351c: 4313 orrs r3, r2 - 800351e: 604b str r3, [r1, #4] + 800356c: 4b2b ldr r3, [pc, #172] ; (800361c ) + 800356e: 685b ldr r3, [r3, #4] + 8003570: f423 1274 bic.w r2, r3, #3997696 ; 0x3d0000 + 8003574: 687b ldr r3, [r7, #4] + 8003576: 6a19 ldr r1, [r3, #32] + 8003578: 687b ldr r3, [r7, #4] + 800357a: 6a5b ldr r3, [r3, #36] ; 0x24 + 800357c: 430b orrs r3, r1 + 800357e: 4927 ldr r1, [pc, #156] ; (800361c ) + 8003580: 4313 orrs r3, r2 + 8003582: 604b str r3, [r1, #4] RCC_OscInitStruct->PLL.PLLMUL); /* Enable the main PLL. */ __HAL_RCC_PLL_ENABLE(); - 8003520: 4b27 ldr r3, [pc, #156] ; (80035c0 ) - 8003522: 2201 movs r2, #1 - 8003524: 601a str r2, [r3, #0] + 8003584: 4b27 ldr r3, [pc, #156] ; (8003624 ) + 8003586: 2201 movs r2, #1 + 8003588: 601a str r2, [r3, #0] /* Get Start Tick */ tickstart = HAL_GetTick(); - 8003526: f7fe facd bl 8001ac4 - 800352a: 6138 str r0, [r7, #16] + 800358a: f7fe facd bl 8001b28 + 800358e: 6138 str r0, [r7, #16] /* Wait till PLL is ready */ while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) == RESET) - 800352c: e008 b.n 8003540 + 8003590: e008 b.n 80035a4 { if ((HAL_GetTick() - tickstart) > PLL_TIMEOUT_VALUE) - 800352e: f7fe fac9 bl 8001ac4 - 8003532: 4602 mov r2, r0 - 8003534: 693b ldr r3, [r7, #16] - 8003536: 1ad3 subs r3, r2, r3 - 8003538: 2b02 cmp r3, #2 - 800353a: d901 bls.n 8003540 + 8003592: f7fe fac9 bl 8001b28 + 8003596: 4602 mov r2, r0 + 8003598: 693b ldr r3, [r7, #16] + 800359a: 1ad3 subs r3, r2, r3 + 800359c: 2b02 cmp r3, #2 + 800359e: d901 bls.n 80035a4 { return HAL_TIMEOUT; - 800353c: 2303 movs r3, #3 - 800353e: e037 b.n 80035b0 + 80035a0: 2303 movs r3, #3 + 80035a2: e037 b.n 8003614 while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) == RESET) - 8003540: 4b1d ldr r3, [pc, #116] ; (80035b8 ) - 8003542: 681b ldr r3, [r3, #0] - 8003544: f003 7300 and.w r3, r3, #33554432 ; 0x2000000 - 8003548: 2b00 cmp r3, #0 - 800354a: d0f0 beq.n 800352e - 800354c: e02f b.n 80035ae + 80035a4: 4b1d ldr r3, [pc, #116] ; (800361c ) + 80035a6: 681b ldr r3, [r3, #0] + 80035a8: f003 7300 and.w r3, r3, #33554432 ; 0x2000000 + 80035ac: 2b00 cmp r3, #0 + 80035ae: d0f0 beq.n 8003592 + 80035b0: e02f b.n 8003612 } } else { /* Disable the main PLL. */ __HAL_RCC_PLL_DISABLE(); - 800354e: 4b1c ldr r3, [pc, #112] ; (80035c0 ) - 8003550: 2200 movs r2, #0 - 8003552: 601a str r2, [r3, #0] + 80035b2: 4b1c ldr r3, [pc, #112] ; (8003624 ) + 80035b4: 2200 movs r2, #0 + 80035b6: 601a str r2, [r3, #0] /* Get Start Tick */ tickstart = HAL_GetTick(); - 8003554: f7fe fab6 bl 8001ac4 - 8003558: 6138 str r0, [r7, #16] + 80035b8: f7fe fab6 bl 8001b28 + 80035bc: 6138 str r0, [r7, #16] /* Wait till PLL is disabled */ while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != RESET) - 800355a: e008 b.n 800356e + 80035be: e008 b.n 80035d2 { if ((HAL_GetTick() - tickstart) > PLL_TIMEOUT_VALUE) - 800355c: f7fe fab2 bl 8001ac4 - 8003560: 4602 mov r2, r0 - 8003562: 693b ldr r3, [r7, #16] - 8003564: 1ad3 subs r3, r2, r3 - 8003566: 2b02 cmp r3, #2 - 8003568: d901 bls.n 800356e + 80035c0: f7fe fab2 bl 8001b28 + 80035c4: 4602 mov r2, r0 + 80035c6: 693b ldr r3, [r7, #16] + 80035c8: 1ad3 subs r3, r2, r3 + 80035ca: 2b02 cmp r3, #2 + 80035cc: d901 bls.n 80035d2 { return HAL_TIMEOUT; - 800356a: 2303 movs r3, #3 - 800356c: e020 b.n 80035b0 + 80035ce: 2303 movs r3, #3 + 80035d0: e020 b.n 8003614 while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != RESET) - 800356e: 4b12 ldr r3, [pc, #72] ; (80035b8 ) - 8003570: 681b ldr r3, [r3, #0] - 8003572: f003 7300 and.w r3, r3, #33554432 ; 0x2000000 - 8003576: 2b00 cmp r3, #0 - 8003578: d1f0 bne.n 800355c - 800357a: e018 b.n 80035ae + 80035d2: 4b12 ldr r3, [pc, #72] ; (800361c ) + 80035d4: 681b ldr r3, [r3, #0] + 80035d6: f003 7300 and.w r3, r3, #33554432 ; 0x2000000 + 80035da: 2b00 cmp r3, #0 + 80035dc: d1f0 bne.n 80035c0 + 80035de: e018 b.n 8003612 } } else { /* Check if there is a request to disable the PLL used as System clock source */ if ((RCC_OscInitStruct->PLL.PLLState) == RCC_PLL_OFF) - 800357c: 687b ldr r3, [r7, #4] - 800357e: 69db ldr r3, [r3, #28] - 8003580: 2b01 cmp r3, #1 - 8003582: d101 bne.n 8003588 + 80035e0: 687b ldr r3, [r7, #4] + 80035e2: 69db ldr r3, [r3, #28] + 80035e4: 2b01 cmp r3, #1 + 80035e6: d101 bne.n 80035ec { return HAL_ERROR; - 8003584: 2301 movs r3, #1 - 8003586: e013 b.n 80035b0 + 80035e8: 2301 movs r3, #1 + 80035ea: e013 b.n 8003614 } else { /* Do not return HAL_ERROR if request repeats the current configuration */ pll_config = RCC->CFGR; - 8003588: 4b0b ldr r3, [pc, #44] ; (80035b8 ) - 800358a: 685b ldr r3, [r3, #4] - 800358c: 60fb str r3, [r7, #12] + 80035ec: 4b0b ldr r3, [pc, #44] ; (800361c ) + 80035ee: 685b ldr r3, [r3, #4] + 80035f0: 60fb str r3, [r7, #12] if ((READ_BIT(pll_config, RCC_CFGR_PLLSRC) != RCC_OscInitStruct->PLL.PLLSource) || - 800358e: 68fb ldr r3, [r7, #12] - 8003590: f403 3280 and.w r2, r3, #65536 ; 0x10000 - 8003594: 687b ldr r3, [r7, #4] - 8003596: 6a1b ldr r3, [r3, #32] - 8003598: 429a cmp r2, r3 - 800359a: d106 bne.n 80035aa + 80035f2: 68fb ldr r3, [r7, #12] + 80035f4: f403 3280 and.w r2, r3, #65536 ; 0x10000 + 80035f8: 687b ldr r3, [r7, #4] + 80035fa: 6a1b ldr r3, [r3, #32] + 80035fc: 429a cmp r2, r3 + 80035fe: d106 bne.n 800360e (READ_BIT(pll_config, RCC_CFGR_PLLMULL) != RCC_OscInitStruct->PLL.PLLMUL)) - 800359c: 68fb ldr r3, [r7, #12] - 800359e: f403 1270 and.w r2, r3, #3932160 ; 0x3c0000 - 80035a2: 687b ldr r3, [r7, #4] - 80035a4: 6a5b ldr r3, [r3, #36] ; 0x24 + 8003600: 68fb ldr r3, [r7, #12] + 8003602: f403 1270 and.w r2, r3, #3932160 ; 0x3c0000 + 8003606: 687b ldr r3, [r7, #4] + 8003608: 6a5b ldr r3, [r3, #36] ; 0x24 if ((READ_BIT(pll_config, RCC_CFGR_PLLSRC) != RCC_OscInitStruct->PLL.PLLSource) || - 80035a6: 429a cmp r2, r3 - 80035a8: d001 beq.n 80035ae + 800360a: 429a cmp r2, r3 + 800360c: d001 beq.n 8003612 { return HAL_ERROR; - 80035aa: 2301 movs r3, #1 - 80035ac: e000 b.n 80035b0 + 800360e: 2301 movs r3, #1 + 8003610: e000 b.n 8003614 } } } } return HAL_OK; - 80035ae: 2300 movs r3, #0 + 8003612: 2300 movs r3, #0 } - 80035b0: 4618 mov r0, r3 - 80035b2: 3718 adds r7, #24 - 80035b4: 46bd mov sp, r7 - 80035b6: bd80 pop {r7, pc} - 80035b8: 40021000 .word 0x40021000 - 80035bc: 40007000 .word 0x40007000 - 80035c0: 42420060 .word 0x42420060 + 8003614: 4618 mov r0, r3 + 8003616: 3718 adds r7, #24 + 8003618: 46bd mov sp, r7 + 800361a: bd80 pop {r7, pc} + 800361c: 40021000 .word 0x40021000 + 8003620: 40007000 .word 0x40007000 + 8003624: 42420060 .word 0x42420060 -080035c4 : +08003628 : * 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) { - 80035c4: b580 push {r7, lr} - 80035c6: b084 sub sp, #16 - 80035c8: af00 add r7, sp, #0 - 80035ca: 6078 str r0, [r7, #4] - 80035cc: 6039 str r1, [r7, #0] + 8003628: b580 push {r7, lr} + 800362a: b084 sub sp, #16 + 800362c: af00 add r7, sp, #0 + 800362e: 6078 str r0, [r7, #4] + 8003630: 6039 str r1, [r7, #0] uint32_t tickstart; /* Check Null pointer */ if (RCC_ClkInitStruct == NULL) - 80035ce: 687b ldr r3, [r7, #4] - 80035d0: 2b00 cmp r3, #0 - 80035d2: d101 bne.n 80035d8 + 8003632: 687b ldr r3, [r7, #4] + 8003634: 2b00 cmp r3, #0 + 8003636: d101 bne.n 800363c { return HAL_ERROR; - 80035d4: 2301 movs r3, #1 - 80035d6: e0d0 b.n 800377a + 8003638: 2301 movs r3, #1 + 800363a: e0d0 b.n 80037de 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()) - 80035d8: 4b6a ldr r3, [pc, #424] ; (8003784 ) - 80035da: 681b ldr r3, [r3, #0] - 80035dc: f003 0307 and.w r3, r3, #7 - 80035e0: 683a ldr r2, [r7, #0] - 80035e2: 429a cmp r2, r3 - 80035e4: d910 bls.n 8003608 + 800363c: 4b6a ldr r3, [pc, #424] ; (80037e8 ) + 800363e: 681b ldr r3, [r3, #0] + 8003640: f003 0307 and.w r3, r3, #7 + 8003644: 683a ldr r2, [r7, #0] + 8003646: 429a cmp r2, r3 + 8003648: d910 bls.n 800366c { /* Program the new number of wait states to the LATENCY bits in the FLASH_ACR register */ __HAL_FLASH_SET_LATENCY(FLatency); - 80035e6: 4b67 ldr r3, [pc, #412] ; (8003784 ) - 80035e8: 681b ldr r3, [r3, #0] - 80035ea: f023 0207 bic.w r2, r3, #7 - 80035ee: 4965 ldr r1, [pc, #404] ; (8003784 ) - 80035f0: 683b ldr r3, [r7, #0] - 80035f2: 4313 orrs r3, r2 - 80035f4: 600b str r3, [r1, #0] + 800364a: 4b67 ldr r3, [pc, #412] ; (80037e8 ) + 800364c: 681b ldr r3, [r3, #0] + 800364e: f023 0207 bic.w r2, r3, #7 + 8003652: 4965 ldr r1, [pc, #404] ; (80037e8 ) + 8003654: 683b ldr r3, [r7, #0] + 8003656: 4313 orrs r3, r2 + 8003658: 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) - 80035f6: 4b63 ldr r3, [pc, #396] ; (8003784 ) - 80035f8: 681b ldr r3, [r3, #0] - 80035fa: f003 0307 and.w r3, r3, #7 - 80035fe: 683a ldr r2, [r7, #0] - 8003600: 429a cmp r2, r3 - 8003602: d001 beq.n 8003608 + 800365a: 4b63 ldr r3, [pc, #396] ; (80037e8 ) + 800365c: 681b ldr r3, [r3, #0] + 800365e: f003 0307 and.w r3, r3, #7 + 8003662: 683a ldr r2, [r7, #0] + 8003664: 429a cmp r2, r3 + 8003666: d001 beq.n 800366c { return HAL_ERROR; - 8003604: 2301 movs r3, #1 - 8003606: e0b8 b.n 800377a + 8003668: 2301 movs r3, #1 + 800366a: e0b8 b.n 80037de } } #endif /* FLASH_ACR_LATENCY */ /*-------------------------- HCLK Configuration --------------------------*/ if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_HCLK) == RCC_CLOCKTYPE_HCLK) - 8003608: 687b ldr r3, [r7, #4] - 800360a: 681b ldr r3, [r3, #0] - 800360c: f003 0302 and.w r3, r3, #2 - 8003610: 2b00 cmp r3, #0 - 8003612: d020 beq.n 8003656 + 800366c: 687b ldr r3, [r7, #4] + 800366e: 681b ldr r3, [r3, #0] + 8003670: f003 0302 and.w r3, r3, #2 + 8003674: 2b00 cmp r3, #0 + 8003676: d020 beq.n 80036ba { /* 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) - 8003614: 687b ldr r3, [r7, #4] - 8003616: 681b ldr r3, [r3, #0] - 8003618: f003 0304 and.w r3, r3, #4 - 800361c: 2b00 cmp r3, #0 - 800361e: d005 beq.n 800362c + 8003678: 687b ldr r3, [r7, #4] + 800367a: 681b ldr r3, [r3, #0] + 800367c: f003 0304 and.w r3, r3, #4 + 8003680: 2b00 cmp r3, #0 + 8003682: d005 beq.n 8003690 { MODIFY_REG(RCC->CFGR, RCC_CFGR_PPRE1, RCC_HCLK_DIV16); - 8003620: 4b59 ldr r3, [pc, #356] ; (8003788 ) - 8003622: 685b ldr r3, [r3, #4] - 8003624: 4a58 ldr r2, [pc, #352] ; (8003788 ) - 8003626: f443 63e0 orr.w r3, r3, #1792 ; 0x700 - 800362a: 6053 str r3, [r2, #4] + 8003684: 4b59 ldr r3, [pc, #356] ; (80037ec ) + 8003686: 685b ldr r3, [r3, #4] + 8003688: 4a58 ldr r2, [pc, #352] ; (80037ec ) + 800368a: f443 63e0 orr.w r3, r3, #1792 ; 0x700 + 800368e: 6053 str r3, [r2, #4] } if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_PCLK2) == RCC_CLOCKTYPE_PCLK2) - 800362c: 687b ldr r3, [r7, #4] - 800362e: 681b ldr r3, [r3, #0] - 8003630: f003 0308 and.w r3, r3, #8 - 8003634: 2b00 cmp r3, #0 - 8003636: d005 beq.n 8003644 + 8003690: 687b ldr r3, [r7, #4] + 8003692: 681b ldr r3, [r3, #0] + 8003694: f003 0308 and.w r3, r3, #8 + 8003698: 2b00 cmp r3, #0 + 800369a: d005 beq.n 80036a8 { MODIFY_REG(RCC->CFGR, RCC_CFGR_PPRE2, (RCC_HCLK_DIV16 << 3)); - 8003638: 4b53 ldr r3, [pc, #332] ; (8003788 ) - 800363a: 685b ldr r3, [r3, #4] - 800363c: 4a52 ldr r2, [pc, #328] ; (8003788 ) - 800363e: f443 5360 orr.w r3, r3, #14336 ; 0x3800 - 8003642: 6053 str r3, [r2, #4] + 800369c: 4b53 ldr r3, [pc, #332] ; (80037ec ) + 800369e: 685b ldr r3, [r3, #4] + 80036a0: 4a52 ldr r2, [pc, #328] ; (80037ec ) + 80036a2: f443 5360 orr.w r3, r3, #14336 ; 0x3800 + 80036a6: 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); - 8003644: 4b50 ldr r3, [pc, #320] ; (8003788 ) - 8003646: 685b ldr r3, [r3, #4] - 8003648: f023 02f0 bic.w r2, r3, #240 ; 0xf0 - 800364c: 687b ldr r3, [r7, #4] - 800364e: 689b ldr r3, [r3, #8] - 8003650: 494d ldr r1, [pc, #308] ; (8003788 ) - 8003652: 4313 orrs r3, r2 - 8003654: 604b str r3, [r1, #4] + 80036a8: 4b50 ldr r3, [pc, #320] ; (80037ec ) + 80036aa: 685b ldr r3, [r3, #4] + 80036ac: f023 02f0 bic.w r2, r3, #240 ; 0xf0 + 80036b0: 687b ldr r3, [r7, #4] + 80036b2: 689b ldr r3, [r3, #8] + 80036b4: 494d ldr r1, [pc, #308] ; (80037ec ) + 80036b6: 4313 orrs r3, r2 + 80036b8: 604b str r3, [r1, #4] } /*------------------------- SYSCLK Configuration ---------------------------*/ if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_SYSCLK) == RCC_CLOCKTYPE_SYSCLK) - 8003656: 687b ldr r3, [r7, #4] - 8003658: 681b ldr r3, [r3, #0] - 800365a: f003 0301 and.w r3, r3, #1 - 800365e: 2b00 cmp r3, #0 - 8003660: d040 beq.n 80036e4 + 80036ba: 687b ldr r3, [r7, #4] + 80036bc: 681b ldr r3, [r3, #0] + 80036be: f003 0301 and.w r3, r3, #1 + 80036c2: 2b00 cmp r3, #0 + 80036c4: d040 beq.n 8003748 { assert_param(IS_RCC_SYSCLKSOURCE(RCC_ClkInitStruct->SYSCLKSource)); /* HSE is selected as System Clock Source */ if (RCC_ClkInitStruct->SYSCLKSource == RCC_SYSCLKSOURCE_HSE) - 8003662: 687b ldr r3, [r7, #4] - 8003664: 685b ldr r3, [r3, #4] - 8003666: 2b01 cmp r3, #1 - 8003668: d107 bne.n 800367a + 80036c6: 687b ldr r3, [r7, #4] + 80036c8: 685b ldr r3, [r3, #4] + 80036ca: 2b01 cmp r3, #1 + 80036cc: d107 bne.n 80036de { /* Check the HSE ready flag */ if (__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) == RESET) - 800366a: 4b47 ldr r3, [pc, #284] ; (8003788 ) - 800366c: 681b ldr r3, [r3, #0] - 800366e: f403 3300 and.w r3, r3, #131072 ; 0x20000 - 8003672: 2b00 cmp r3, #0 - 8003674: d115 bne.n 80036a2 + 80036ce: 4b47 ldr r3, [pc, #284] ; (80037ec ) + 80036d0: 681b ldr r3, [r3, #0] + 80036d2: f403 3300 and.w r3, r3, #131072 ; 0x20000 + 80036d6: 2b00 cmp r3, #0 + 80036d8: d115 bne.n 8003706 { return HAL_ERROR; - 8003676: 2301 movs r3, #1 - 8003678: e07f b.n 800377a + 80036da: 2301 movs r3, #1 + 80036dc: e07f b.n 80037de } } /* PLL is selected as System Clock Source */ else if (RCC_ClkInitStruct->SYSCLKSource == RCC_SYSCLKSOURCE_PLLCLK) - 800367a: 687b ldr r3, [r7, #4] - 800367c: 685b ldr r3, [r3, #4] - 800367e: 2b02 cmp r3, #2 - 8003680: d107 bne.n 8003692 + 80036de: 687b ldr r3, [r7, #4] + 80036e0: 685b ldr r3, [r3, #4] + 80036e2: 2b02 cmp r3, #2 + 80036e4: d107 bne.n 80036f6 { /* Check the PLL ready flag */ if (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) == RESET) - 8003682: 4b41 ldr r3, [pc, #260] ; (8003788 ) - 8003684: 681b ldr r3, [r3, #0] - 8003686: f003 7300 and.w r3, r3, #33554432 ; 0x2000000 - 800368a: 2b00 cmp r3, #0 - 800368c: d109 bne.n 80036a2 + 80036e6: 4b41 ldr r3, [pc, #260] ; (80037ec ) + 80036e8: 681b ldr r3, [r3, #0] + 80036ea: f003 7300 and.w r3, r3, #33554432 ; 0x2000000 + 80036ee: 2b00 cmp r3, #0 + 80036f0: d109 bne.n 8003706 { return HAL_ERROR; - 800368e: 2301 movs r3, #1 - 8003690: e073 b.n 800377a + 80036f2: 2301 movs r3, #1 + 80036f4: e073 b.n 80037de } /* HSI is selected as System Clock Source */ else { /* Check the HSI ready flag */ if (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) == RESET) - 8003692: 4b3d ldr r3, [pc, #244] ; (8003788 ) - 8003694: 681b ldr r3, [r3, #0] - 8003696: f003 0302 and.w r3, r3, #2 - 800369a: 2b00 cmp r3, #0 - 800369c: d101 bne.n 80036a2 + 80036f6: 4b3d ldr r3, [pc, #244] ; (80037ec ) + 80036f8: 681b ldr r3, [r3, #0] + 80036fa: f003 0302 and.w r3, r3, #2 + 80036fe: 2b00 cmp r3, #0 + 8003700: d101 bne.n 8003706 { return HAL_ERROR; - 800369e: 2301 movs r3, #1 - 80036a0: e06b b.n 800377a + 8003702: 2301 movs r3, #1 + 8003704: e06b b.n 80037de } } __HAL_RCC_SYSCLK_CONFIG(RCC_ClkInitStruct->SYSCLKSource); - 80036a2: 4b39 ldr r3, [pc, #228] ; (8003788 ) - 80036a4: 685b ldr r3, [r3, #4] - 80036a6: f023 0203 bic.w r2, r3, #3 - 80036aa: 687b ldr r3, [r7, #4] - 80036ac: 685b ldr r3, [r3, #4] - 80036ae: 4936 ldr r1, [pc, #216] ; (8003788 ) - 80036b0: 4313 orrs r3, r2 - 80036b2: 604b str r3, [r1, #4] + 8003706: 4b39 ldr r3, [pc, #228] ; (80037ec ) + 8003708: 685b ldr r3, [r3, #4] + 800370a: f023 0203 bic.w r2, r3, #3 + 800370e: 687b ldr r3, [r7, #4] + 8003710: 685b ldr r3, [r3, #4] + 8003712: 4936 ldr r1, [pc, #216] ; (80037ec ) + 8003714: 4313 orrs r3, r2 + 8003716: 604b str r3, [r1, #4] /* Get Start Tick */ tickstart = HAL_GetTick(); - 80036b4: f7fe fa06 bl 8001ac4 - 80036b8: 60f8 str r0, [r7, #12] + 8003718: f7fe fa06 bl 8001b28 + 800371c: 60f8 str r0, [r7, #12] while (__HAL_RCC_GET_SYSCLK_SOURCE() != (RCC_ClkInitStruct->SYSCLKSource << RCC_CFGR_SWS_Pos)) - 80036ba: e00a b.n 80036d2 + 800371e: e00a b.n 8003736 { if ((HAL_GetTick() - tickstart) > CLOCKSWITCH_TIMEOUT_VALUE) - 80036bc: f7fe fa02 bl 8001ac4 - 80036c0: 4602 mov r2, r0 - 80036c2: 68fb ldr r3, [r7, #12] - 80036c4: 1ad3 subs r3, r2, r3 - 80036c6: f241 3288 movw r2, #5000 ; 0x1388 - 80036ca: 4293 cmp r3, r2 - 80036cc: d901 bls.n 80036d2 + 8003720: f7fe fa02 bl 8001b28 + 8003724: 4602 mov r2, r0 + 8003726: 68fb ldr r3, [r7, #12] + 8003728: 1ad3 subs r3, r2, r3 + 800372a: f241 3288 movw r2, #5000 ; 0x1388 + 800372e: 4293 cmp r3, r2 + 8003730: d901 bls.n 8003736 { return HAL_TIMEOUT; - 80036ce: 2303 movs r3, #3 - 80036d0: e053 b.n 800377a + 8003732: 2303 movs r3, #3 + 8003734: e053 b.n 80037de while (__HAL_RCC_GET_SYSCLK_SOURCE() != (RCC_ClkInitStruct->SYSCLKSource << RCC_CFGR_SWS_Pos)) - 80036d2: 4b2d ldr r3, [pc, #180] ; (8003788 ) - 80036d4: 685b ldr r3, [r3, #4] - 80036d6: f003 020c and.w r2, r3, #12 - 80036da: 687b ldr r3, [r7, #4] - 80036dc: 685b ldr r3, [r3, #4] - 80036de: 009b lsls r3, r3, #2 - 80036e0: 429a cmp r2, r3 - 80036e2: d1eb bne.n 80036bc + 8003736: 4b2d ldr r3, [pc, #180] ; (80037ec ) + 8003738: 685b ldr r3, [r3, #4] + 800373a: f003 020c and.w r2, r3, #12 + 800373e: 687b ldr r3, [r7, #4] + 8003740: 685b ldr r3, [r3, #4] + 8003742: 009b lsls r3, r3, #2 + 8003744: 429a cmp r2, r3 + 8003746: d1eb bne.n 8003720 } } #if defined(FLASH_ACR_LATENCY) /* Decreasing the number of wait states because of lower CPU frequency */ if (FLatency < __HAL_FLASH_GET_LATENCY()) - 80036e4: 4b27 ldr r3, [pc, #156] ; (8003784 ) - 80036e6: 681b ldr r3, [r3, #0] - 80036e8: f003 0307 and.w r3, r3, #7 - 80036ec: 683a ldr r2, [r7, #0] - 80036ee: 429a cmp r2, r3 - 80036f0: d210 bcs.n 8003714 + 8003748: 4b27 ldr r3, [pc, #156] ; (80037e8 ) + 800374a: 681b ldr r3, [r3, #0] + 800374c: f003 0307 and.w r3, r3, #7 + 8003750: 683a ldr r2, [r7, #0] + 8003752: 429a cmp r2, r3 + 8003754: d210 bcs.n 8003778 { /* Program the new number of wait states to the LATENCY bits in the FLASH_ACR register */ __HAL_FLASH_SET_LATENCY(FLatency); - 80036f2: 4b24 ldr r3, [pc, #144] ; (8003784 ) - 80036f4: 681b ldr r3, [r3, #0] - 80036f6: f023 0207 bic.w r2, r3, #7 - 80036fa: 4922 ldr r1, [pc, #136] ; (8003784 ) - 80036fc: 683b ldr r3, [r7, #0] - 80036fe: 4313 orrs r3, r2 - 8003700: 600b str r3, [r1, #0] + 8003756: 4b24 ldr r3, [pc, #144] ; (80037e8 ) + 8003758: 681b ldr r3, [r3, #0] + 800375a: f023 0207 bic.w r2, r3, #7 + 800375e: 4922 ldr r1, [pc, #136] ; (80037e8 ) + 8003760: 683b ldr r3, [r7, #0] + 8003762: 4313 orrs r3, r2 + 8003764: 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) - 8003702: 4b20 ldr r3, [pc, #128] ; (8003784 ) - 8003704: 681b ldr r3, [r3, #0] - 8003706: f003 0307 and.w r3, r3, #7 - 800370a: 683a ldr r2, [r7, #0] - 800370c: 429a cmp r2, r3 - 800370e: d001 beq.n 8003714 + 8003766: 4b20 ldr r3, [pc, #128] ; (80037e8 ) + 8003768: 681b ldr r3, [r3, #0] + 800376a: f003 0307 and.w r3, r3, #7 + 800376e: 683a ldr r2, [r7, #0] + 8003770: 429a cmp r2, r3 + 8003772: d001 beq.n 8003778 { return HAL_ERROR; - 8003710: 2301 movs r3, #1 - 8003712: e032 b.n 800377a + 8003774: 2301 movs r3, #1 + 8003776: e032 b.n 80037de } } #endif /* FLASH_ACR_LATENCY */ /*-------------------------- PCLK1 Configuration ---------------------------*/ if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_PCLK1) == RCC_CLOCKTYPE_PCLK1) - 8003714: 687b ldr r3, [r7, #4] - 8003716: 681b ldr r3, [r3, #0] - 8003718: f003 0304 and.w r3, r3, #4 - 800371c: 2b00 cmp r3, #0 - 800371e: d008 beq.n 8003732 + 8003778: 687b ldr r3, [r7, #4] + 800377a: 681b ldr r3, [r3, #0] + 800377c: f003 0304 and.w r3, r3, #4 + 8003780: 2b00 cmp r3, #0 + 8003782: d008 beq.n 8003796 { assert_param(IS_RCC_PCLK(RCC_ClkInitStruct->APB1CLKDivider)); MODIFY_REG(RCC->CFGR, RCC_CFGR_PPRE1, RCC_ClkInitStruct->APB1CLKDivider); - 8003720: 4b19 ldr r3, [pc, #100] ; (8003788 ) - 8003722: 685b ldr r3, [r3, #4] - 8003724: f423 62e0 bic.w r2, r3, #1792 ; 0x700 - 8003728: 687b ldr r3, [r7, #4] - 800372a: 68db ldr r3, [r3, #12] - 800372c: 4916 ldr r1, [pc, #88] ; (8003788 ) - 800372e: 4313 orrs r3, r2 - 8003730: 604b str r3, [r1, #4] + 8003784: 4b19 ldr r3, [pc, #100] ; (80037ec ) + 8003786: 685b ldr r3, [r3, #4] + 8003788: f423 62e0 bic.w r2, r3, #1792 ; 0x700 + 800378c: 687b ldr r3, [r7, #4] + 800378e: 68db ldr r3, [r3, #12] + 8003790: 4916 ldr r1, [pc, #88] ; (80037ec ) + 8003792: 4313 orrs r3, r2 + 8003794: 604b str r3, [r1, #4] } /*-------------------------- PCLK2 Configuration ---------------------------*/ if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_PCLK2) == RCC_CLOCKTYPE_PCLK2) - 8003732: 687b ldr r3, [r7, #4] - 8003734: 681b ldr r3, [r3, #0] - 8003736: f003 0308 and.w r3, r3, #8 - 800373a: 2b00 cmp r3, #0 - 800373c: d009 beq.n 8003752 + 8003796: 687b ldr r3, [r7, #4] + 8003798: 681b ldr r3, [r3, #0] + 800379a: f003 0308 and.w r3, r3, #8 + 800379e: 2b00 cmp r3, #0 + 80037a0: d009 beq.n 80037b6 { assert_param(IS_RCC_PCLK(RCC_ClkInitStruct->APB2CLKDivider)); MODIFY_REG(RCC->CFGR, RCC_CFGR_PPRE2, ((RCC_ClkInitStruct->APB2CLKDivider) << 3)); - 800373e: 4b12 ldr r3, [pc, #72] ; (8003788 ) - 8003740: 685b ldr r3, [r3, #4] - 8003742: f423 5260 bic.w r2, r3, #14336 ; 0x3800 - 8003746: 687b ldr r3, [r7, #4] - 8003748: 691b ldr r3, [r3, #16] - 800374a: 00db lsls r3, r3, #3 - 800374c: 490e ldr r1, [pc, #56] ; (8003788 ) - 800374e: 4313 orrs r3, r2 - 8003750: 604b str r3, [r1, #4] + 80037a2: 4b12 ldr r3, [pc, #72] ; (80037ec ) + 80037a4: 685b ldr r3, [r3, #4] + 80037a6: f423 5260 bic.w r2, r3, #14336 ; 0x3800 + 80037aa: 687b ldr r3, [r7, #4] + 80037ac: 691b ldr r3, [r3, #16] + 80037ae: 00db lsls r3, r3, #3 + 80037b0: 490e ldr r1, [pc, #56] ; (80037ec ) + 80037b2: 4313 orrs r3, r2 + 80037b4: 604b str r3, [r1, #4] } /* Update the SystemCoreClock global variable */ SystemCoreClock = HAL_RCC_GetSysClockFreq() >> AHBPrescTable[(RCC->CFGR & RCC_CFGR_HPRE) >> RCC_CFGR_HPRE_Pos]; - 8003752: f000 f821 bl 8003798 - 8003756: 4602 mov r2, r0 - 8003758: 4b0b ldr r3, [pc, #44] ; (8003788 ) - 800375a: 685b ldr r3, [r3, #4] - 800375c: 091b lsrs r3, r3, #4 - 800375e: f003 030f and.w r3, r3, #15 - 8003762: 490a ldr r1, [pc, #40] ; (800378c ) - 8003764: 5ccb ldrb r3, [r1, r3] - 8003766: fa22 f303 lsr.w r3, r2, r3 - 800376a: 4a09 ldr r2, [pc, #36] ; (8003790 ) - 800376c: 6013 str r3, [r2, #0] + 80037b6: f000 f821 bl 80037fc + 80037ba: 4602 mov r2, r0 + 80037bc: 4b0b ldr r3, [pc, #44] ; (80037ec ) + 80037be: 685b ldr r3, [r3, #4] + 80037c0: 091b lsrs r3, r3, #4 + 80037c2: f003 030f and.w r3, r3, #15 + 80037c6: 490a ldr r1, [pc, #40] ; (80037f0 ) + 80037c8: 5ccb ldrb r3, [r1, r3] + 80037ca: fa22 f303 lsr.w r3, r2, r3 + 80037ce: 4a09 ldr r2, [pc, #36] ; (80037f4 ) + 80037d0: 6013 str r3, [r2, #0] /* Configure the source of time base considering new system clocks settings*/ HAL_InitTick(uwTickPrio); - 800376e: 4b09 ldr r3, [pc, #36] ; (8003794 ) - 8003770: 681b ldr r3, [r3, #0] - 8003772: 4618 mov r0, r3 - 8003774: f7fe f964 bl 8001a40 + 80037d2: 4b09 ldr r3, [pc, #36] ; (80037f8 ) + 80037d4: 681b ldr r3, [r3, #0] + 80037d6: 4618 mov r0, r3 + 80037d8: f7fe f964 bl 8001aa4 return HAL_OK; - 8003778: 2300 movs r3, #0 + 80037dc: 2300 movs r3, #0 } - 800377a: 4618 mov r0, r3 - 800377c: 3710 adds r7, #16 - 800377e: 46bd mov sp, r7 - 8003780: bd80 pop {r7, pc} - 8003782: bf00 nop - 8003784: 40022000 .word 0x40022000 - 8003788: 40021000 .word 0x40021000 - 800378c: 0800a130 .word 0x0800a130 - 8003790: 20000000 .word 0x20000000 - 8003794: 20000004 .word 0x20000004 + 80037de: 4618 mov r0, r3 + 80037e0: 3710 adds r7, #16 + 80037e2: 46bd mov sp, r7 + 80037e4: bd80 pop {r7, pc} + 80037e6: bf00 nop + 80037e8: 40022000 .word 0x40022000 + 80037ec: 40021000 .word 0x40021000 + 80037f0: 08009df8 .word 0x08009df8 + 80037f4: 20000000 .word 0x20000000 + 80037f8: 20000004 .word 0x20000004 -08003798 : +080037fc : * right SYSCLK value. Otherwise, any configuration based on this function will be incorrect. * * @retval SYSCLK frequency */ uint32_t HAL_RCC_GetSysClockFreq(void) { - 8003798: b490 push {r4, r7} - 800379a: b08a sub sp, #40 ; 0x28 - 800379c: af00 add r7, sp, #0 + 80037fc: b490 push {r4, r7} + 80037fe: b08a sub sp, #40 ; 0x28 + 8003800: 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}; - 800379e: 4b2a ldr r3, [pc, #168] ; (8003848 ) - 80037a0: 1d3c adds r4, r7, #4 - 80037a2: cb0f ldmia r3, {r0, r1, r2, r3} - 80037a4: e884 000f stmia.w r4, {r0, r1, r2, r3} + 8003802: 4b2a ldr r3, [pc, #168] ; (80038ac ) + 8003804: 1d3c adds r4, r7, #4 + 8003806: cb0f ldmia r3, {r0, r1, r2, r3} + 8003808: 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}; - 80037a8: f240 2301 movw r3, #513 ; 0x201 - 80037ac: 803b strh r3, [r7, #0] + 800380c: f240 2301 movw r3, #513 ; 0x201 + 8003810: 803b strh r3, [r7, #0] #endif /*RCC_CFGR2_PREDIV1*/ #endif uint32_t tmpreg = 0U, prediv = 0U, pllclk = 0U, pllmul = 0U; - 80037ae: 2300 movs r3, #0 - 80037b0: 61fb str r3, [r7, #28] - 80037b2: 2300 movs r3, #0 - 80037b4: 61bb str r3, [r7, #24] - 80037b6: 2300 movs r3, #0 - 80037b8: 627b str r3, [r7, #36] ; 0x24 - 80037ba: 2300 movs r3, #0 - 80037bc: 617b str r3, [r7, #20] + 8003812: 2300 movs r3, #0 + 8003814: 61fb str r3, [r7, #28] + 8003816: 2300 movs r3, #0 + 8003818: 61bb str r3, [r7, #24] + 800381a: 2300 movs r3, #0 + 800381c: 627b str r3, [r7, #36] ; 0x24 + 800381e: 2300 movs r3, #0 + 8003820: 617b str r3, [r7, #20] uint32_t sysclockfreq = 0U; - 80037be: 2300 movs r3, #0 - 80037c0: 623b str r3, [r7, #32] + 8003822: 2300 movs r3, #0 + 8003824: 623b str r3, [r7, #32] #if defined(RCC_CFGR2_PREDIV1SRC) uint32_t prediv2 = 0U, pll2mul = 0U; #endif /*RCC_CFGR2_PREDIV1SRC*/ tmpreg = RCC->CFGR; - 80037c2: 4b22 ldr r3, [pc, #136] ; (800384c ) - 80037c4: 685b ldr r3, [r3, #4] - 80037c6: 61fb str r3, [r7, #28] + 8003826: 4b22 ldr r3, [pc, #136] ; (80038b0 ) + 8003828: 685b ldr r3, [r3, #4] + 800382a: 61fb str r3, [r7, #28] /* Get SYSCLK source -------------------------------------------------------*/ switch (tmpreg & RCC_CFGR_SWS) - 80037c8: 69fb ldr r3, [r7, #28] - 80037ca: f003 030c and.w r3, r3, #12 - 80037ce: 2b04 cmp r3, #4 - 80037d0: d002 beq.n 80037d8 - 80037d2: 2b08 cmp r3, #8 - 80037d4: d003 beq.n 80037de - 80037d6: e02d b.n 8003834 + 800382c: 69fb ldr r3, [r7, #28] + 800382e: f003 030c and.w r3, r3, #12 + 8003832: 2b04 cmp r3, #4 + 8003834: d002 beq.n 800383c + 8003836: 2b08 cmp r3, #8 + 8003838: d003 beq.n 8003842 + 800383a: e02d b.n 8003898 { case RCC_SYSCLKSOURCE_STATUS_HSE: /* HSE used as system clock */ { sysclockfreq = HSE_VALUE; - 80037d8: 4b1d ldr r3, [pc, #116] ; (8003850 ) - 80037da: 623b str r3, [r7, #32] + 800383c: 4b1d ldr r3, [pc, #116] ; (80038b4 ) + 800383e: 623b str r3, [r7, #32] break; - 80037dc: e02d b.n 800383a + 8003840: e02d b.n 800389e } case RCC_SYSCLKSOURCE_STATUS_PLLCLK: /* PLL used as system clock */ { pllmul = aPLLMULFactorTable[(uint32_t)(tmpreg & RCC_CFGR_PLLMULL) >> RCC_CFGR_PLLMULL_Pos]; - 80037de: 69fb ldr r3, [r7, #28] - 80037e0: 0c9b lsrs r3, r3, #18 - 80037e2: f003 030f and.w r3, r3, #15 - 80037e6: f107 0228 add.w r2, r7, #40 ; 0x28 - 80037ea: 4413 add r3, r2 - 80037ec: f813 3c24 ldrb.w r3, [r3, #-36] - 80037f0: 617b str r3, [r7, #20] + 8003842: 69fb ldr r3, [r7, #28] + 8003844: 0c9b lsrs r3, r3, #18 + 8003846: f003 030f and.w r3, r3, #15 + 800384a: f107 0228 add.w r2, r7, #40 ; 0x28 + 800384e: 4413 add r3, r2 + 8003850: f813 3c24 ldrb.w r3, [r3, #-36] + 8003854: 617b str r3, [r7, #20] if ((tmpreg & RCC_CFGR_PLLSRC) != RCC_PLLSOURCE_HSI_DIV2) - 80037f2: 69fb ldr r3, [r7, #28] - 80037f4: f403 3380 and.w r3, r3, #65536 ; 0x10000 - 80037f8: 2b00 cmp r3, #0 - 80037fa: d013 beq.n 8003824 + 8003856: 69fb ldr r3, [r7, #28] + 8003858: f403 3380 and.w r3, r3, #65536 ; 0x10000 + 800385c: 2b00 cmp r3, #0 + 800385e: d013 beq.n 8003888 { #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]; - 80037fc: 4b13 ldr r3, [pc, #76] ; (800384c ) - 80037fe: 685b ldr r3, [r3, #4] - 8003800: 0c5b lsrs r3, r3, #17 - 8003802: f003 0301 and.w r3, r3, #1 - 8003806: f107 0228 add.w r2, r7, #40 ; 0x28 - 800380a: 4413 add r3, r2 - 800380c: f813 3c28 ldrb.w r3, [r3, #-40] - 8003810: 61bb str r3, [r7, #24] + 8003860: 4b13 ldr r3, [pc, #76] ; (80038b0 ) + 8003862: 685b ldr r3, [r3, #4] + 8003864: 0c5b lsrs r3, r3, #17 + 8003866: f003 0301 and.w r3, r3, #1 + 800386a: f107 0228 add.w r2, r7, #40 ; 0x28 + 800386e: 4413 add r3, r2 + 8003870: f813 3c28 ldrb.w r3, [r3, #-40] + 8003874: 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); - 8003812: 697b ldr r3, [r7, #20] - 8003814: 4a0e ldr r2, [pc, #56] ; (8003850 ) - 8003816: fb02 f203 mul.w r2, r2, r3 - 800381a: 69bb ldr r3, [r7, #24] - 800381c: fbb2 f3f3 udiv r3, r2, r3 - 8003820: 627b str r3, [r7, #36] ; 0x24 - 8003822: e004 b.n 800382e + 8003876: 697b ldr r3, [r7, #20] + 8003878: 4a0e ldr r2, [pc, #56] ; (80038b4 ) + 800387a: fb02 f203 mul.w r2, r2, r3 + 800387e: 69bb ldr r3, [r7, #24] + 8003880: fbb2 f3f3 udiv r3, r2, r3 + 8003884: 627b str r3, [r7, #36] ; 0x24 + 8003886: e004 b.n 8003892 #endif /*RCC_CFGR2_PREDIV1SRC*/ } else { /* HSI used as PLL clock source : PLLCLK = HSI/2 * PLLMUL */ pllclk = (uint32_t)((HSI_VALUE >> 1) * pllmul); - 8003824: 697b ldr r3, [r7, #20] - 8003826: 4a0b ldr r2, [pc, #44] ; (8003854 ) - 8003828: fb02 f303 mul.w r3, r2, r3 - 800382c: 627b str r3, [r7, #36] ; 0x24 + 8003888: 697b ldr r3, [r7, #20] + 800388a: 4a0b ldr r2, [pc, #44] ; (80038b8 ) + 800388c: fb02 f303 mul.w r3, r2, r3 + 8003890: 627b str r3, [r7, #36] ; 0x24 } sysclockfreq = pllclk; - 800382e: 6a7b ldr r3, [r7, #36] ; 0x24 - 8003830: 623b str r3, [r7, #32] + 8003892: 6a7b ldr r3, [r7, #36] ; 0x24 + 8003894: 623b str r3, [r7, #32] break; - 8003832: e002 b.n 800383a + 8003896: e002 b.n 800389e } case RCC_SYSCLKSOURCE_STATUS_HSI: /* HSI used as system clock source */ default: /* HSI used as system clock */ { sysclockfreq = HSI_VALUE; - 8003834: 4b06 ldr r3, [pc, #24] ; (8003850 ) - 8003836: 623b str r3, [r7, #32] + 8003898: 4b06 ldr r3, [pc, #24] ; (80038b4 ) + 800389a: 623b str r3, [r7, #32] break; - 8003838: bf00 nop + 800389c: bf00 nop } } return sysclockfreq; - 800383a: 6a3b ldr r3, [r7, #32] + 800389e: 6a3b ldr r3, [r7, #32] } - 800383c: 4618 mov r0, r3 - 800383e: 3728 adds r7, #40 ; 0x28 - 8003840: 46bd mov sp, r7 - 8003842: bc90 pop {r4, r7} - 8003844: 4770 bx lr - 8003846: bf00 nop - 8003848: 0800a020 .word 0x0800a020 - 800384c: 40021000 .word 0x40021000 - 8003850: 007a1200 .word 0x007a1200 - 8003854: 003d0900 .word 0x003d0900 + 80038a0: 4618 mov r0, r3 + 80038a2: 3728 adds r7, #40 ; 0x28 + 80038a4: 46bd mov sp, r7 + 80038a6: bc90 pop {r4, r7} + 80038a8: 4770 bx lr + 80038aa: bf00 nop + 80038ac: 08009d28 .word 0x08009d28 + 80038b0: 40021000 .word 0x40021000 + 80038b4: 007a1200 .word 0x007a1200 + 80038b8: 003d0900 .word 0x003d0900 -08003858 : +080038bc : * @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) { - 8003858: b480 push {r7} - 800385a: af00 add r7, sp, #0 + 80038bc: b480 push {r7} + 80038be: af00 add r7, sp, #0 return SystemCoreClock; - 800385c: 4b02 ldr r3, [pc, #8] ; (8003868 ) - 800385e: 681b ldr r3, [r3, #0] + 80038c0: 4b02 ldr r3, [pc, #8] ; (80038cc ) + 80038c2: 681b ldr r3, [r3, #0] } - 8003860: 4618 mov r0, r3 - 8003862: 46bd mov sp, r7 - 8003864: bc80 pop {r7} - 8003866: 4770 bx lr - 8003868: 20000000 .word 0x20000000 + 80038c4: 4618 mov r0, r3 + 80038c6: 46bd mov sp, r7 + 80038c8: bc80 pop {r7} + 80038ca: 4770 bx lr + 80038cc: 20000000 .word 0x20000000 -0800386c : +080038d0 : * @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) { - 800386c: b580 push {r7, lr} - 800386e: af00 add r7, sp, #0 + 80038d0: b580 push {r7, lr} + 80038d2: 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]); - 8003870: f7ff fff2 bl 8003858 - 8003874: 4602 mov r2, r0 - 8003876: 4b05 ldr r3, [pc, #20] ; (800388c ) - 8003878: 685b ldr r3, [r3, #4] - 800387a: 0a1b lsrs r3, r3, #8 - 800387c: f003 0307 and.w r3, r3, #7 - 8003880: 4903 ldr r1, [pc, #12] ; (8003890 ) - 8003882: 5ccb ldrb r3, [r1, r3] - 8003884: fa22 f303 lsr.w r3, r2, r3 + 80038d4: f7ff fff2 bl 80038bc + 80038d8: 4602 mov r2, r0 + 80038da: 4b05 ldr r3, [pc, #20] ; (80038f0 ) + 80038dc: 685b ldr r3, [r3, #4] + 80038de: 0a1b lsrs r3, r3, #8 + 80038e0: f003 0307 and.w r3, r3, #7 + 80038e4: 4903 ldr r1, [pc, #12] ; (80038f4 ) + 80038e6: 5ccb ldrb r3, [r1, r3] + 80038e8: fa22 f303 lsr.w r3, r2, r3 } - 8003888: 4618 mov r0, r3 - 800388a: bd80 pop {r7, pc} - 800388c: 40021000 .word 0x40021000 - 8003890: 0800a140 .word 0x0800a140 + 80038ec: 4618 mov r0, r3 + 80038ee: bd80 pop {r7, pc} + 80038f0: 40021000 .word 0x40021000 + 80038f4: 08009e08 .word 0x08009e08 -08003894 : +080038f8 : * @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) { - 8003894: b480 push {r7} - 8003896: b085 sub sp, #20 - 8003898: af00 add r7, sp, #0 - 800389a: 6078 str r0, [r7, #4] + 80038f8: b480 push {r7} + 80038fa: b085 sub sp, #20 + 80038fc: af00 add r7, sp, #0 + 80038fe: 6078 str r0, [r7, #4] __IO uint32_t Delay = mdelay * (SystemCoreClock / 8U / 1000U); - 800389c: 4b0a ldr r3, [pc, #40] ; (80038c8 ) - 800389e: 681b ldr r3, [r3, #0] - 80038a0: 4a0a ldr r2, [pc, #40] ; (80038cc ) - 80038a2: fba2 2303 umull r2, r3, r2, r3 - 80038a6: 0a5b lsrs r3, r3, #9 - 80038a8: 687a ldr r2, [r7, #4] - 80038aa: fb02 f303 mul.w r3, r2, r3 - 80038ae: 60fb str r3, [r7, #12] + 8003900: 4b0a ldr r3, [pc, #40] ; (800392c ) + 8003902: 681b ldr r3, [r3, #0] + 8003904: 4a0a ldr r2, [pc, #40] ; (8003930 ) + 8003906: fba2 2303 umull r2, r3, r2, r3 + 800390a: 0a5b lsrs r3, r3, #9 + 800390c: 687a ldr r2, [r7, #4] + 800390e: fb02 f303 mul.w r3, r2, r3 + 8003912: 60fb str r3, [r7, #12] do { __NOP(); - 80038b0: bf00 nop + 8003914: bf00 nop } while (Delay --); - 80038b2: 68fb ldr r3, [r7, #12] - 80038b4: 1e5a subs r2, r3, #1 - 80038b6: 60fa str r2, [r7, #12] - 80038b8: 2b00 cmp r3, #0 - 80038ba: d1f9 bne.n 80038b0 + 8003916: 68fb ldr r3, [r7, #12] + 8003918: 1e5a subs r2, r3, #1 + 800391a: 60fa str r2, [r7, #12] + 800391c: 2b00 cmp r3, #0 + 800391e: d1f9 bne.n 8003914 } - 80038bc: bf00 nop - 80038be: bf00 nop - 80038c0: 3714 adds r7, #20 - 80038c2: 46bd mov sp, r7 - 80038c4: bc80 pop {r7} - 80038c6: 4770 bx lr - 80038c8: 20000000 .word 0x20000000 - 80038cc: 10624dd3 .word 0x10624dd3 + 8003920: bf00 nop + 8003922: bf00 nop + 8003924: 3714 adds r7, #20 + 8003926: 46bd mov sp, r7 + 8003928: bc80 pop {r7} + 800392a: 4770 bx lr + 800392c: 20000000 .word 0x20000000 + 8003930: 10624dd3 .word 0x10624dd3 -080038d0 : +08003934 : + * @param hspi pointer to a SPI_HandleTypeDef structure that contains + * the configuration information for SPI module. + * @retval HAL status + */ +HAL_StatusTypeDef HAL_SPI_Init(SPI_HandleTypeDef *hspi) +{ + 8003934: b580 push {r7, lr} + 8003936: b082 sub sp, #8 + 8003938: af00 add r7, sp, #0 + 800393a: 6078 str r0, [r7, #4] + /* Check the SPI handle allocation */ + if (hspi == NULL) + 800393c: 687b ldr r3, [r7, #4] + 800393e: 2b00 cmp r3, #0 + 8003940: d101 bne.n 8003946 + { + return HAL_ERROR; + 8003942: 2301 movs r3, #1 + 8003944: e076 b.n 8003a34 + assert_param(IS_SPI_BAUDRATE_PRESCALER(hspi->Init.BaudRatePrescaler)); + assert_param(IS_SPI_FIRST_BIT(hspi->Init.FirstBit)); + /* TI mode is not supported on this device. + TIMode parameter is mandatory equal to SPI_TIMODE_DISABLE */ + assert_param(IS_SPI_TIMODE(hspi->Init.TIMode)); + if (hspi->Init.TIMode == SPI_TIMODE_DISABLE) + 8003946: 687b ldr r3, [r7, #4] + 8003948: 6a5b ldr r3, [r3, #36] ; 0x24 + 800394a: 2b00 cmp r3, #0 + 800394c: d108 bne.n 8003960 + { + assert_param(IS_SPI_CPOL(hspi->Init.CLKPolarity)); + assert_param(IS_SPI_CPHA(hspi->Init.CLKPhase)); + + if (hspi->Init.Mode == SPI_MODE_MASTER) + 800394e: 687b ldr r3, [r7, #4] + 8003950: 685b ldr r3, [r3, #4] + 8003952: f5b3 7f82 cmp.w r3, #260 ; 0x104 + 8003956: d009 beq.n 800396c + assert_param(IS_SPI_BAUDRATE_PRESCALER(hspi->Init.BaudRatePrescaler)); + } + else + { + /* Baudrate prescaler not use in Motoraola Slave mode. force to default value */ + hspi->Init.BaudRatePrescaler = SPI_BAUDRATEPRESCALER_2; + 8003958: 687b ldr r3, [r7, #4] + 800395a: 2200 movs r2, #0 + 800395c: 61da str r2, [r3, #28] + 800395e: e005 b.n 800396c + else + { + assert_param(IS_SPI_BAUDRATE_PRESCALER(hspi->Init.BaudRatePrescaler)); + + /* Force polarity and phase to TI protocaol requirements */ + hspi->Init.CLKPolarity = SPI_POLARITY_LOW; + 8003960: 687b ldr r3, [r7, #4] + 8003962: 2200 movs r2, #0 + 8003964: 611a str r2, [r3, #16] + hspi->Init.CLKPhase = SPI_PHASE_1EDGE; + 8003966: 687b ldr r3, [r7, #4] + 8003968: 2200 movs r2, #0 + 800396a: 615a str r2, [r3, #20] + if (hspi->Init.CRCCalculation == SPI_CRCCALCULATION_ENABLE) + { + assert_param(IS_SPI_CRC_POLYNOMIAL(hspi->Init.CRCPolynomial)); + } +#else + hspi->Init.CRCCalculation = SPI_CRCCALCULATION_DISABLE; + 800396c: 687b ldr r3, [r7, #4] + 800396e: 2200 movs r2, #0 + 8003970: 629a str r2, [r3, #40] ; 0x28 +#endif /* USE_SPI_CRC */ + + if (hspi->State == HAL_SPI_STATE_RESET) + 8003972: 687b ldr r3, [r7, #4] + 8003974: f893 3051 ldrb.w r3, [r3, #81] ; 0x51 + 8003978: b2db uxtb r3, r3 + 800397a: 2b00 cmp r3, #0 + 800397c: d106 bne.n 800398c + { + /* Allocate lock resource and initialize it */ + hspi->Lock = HAL_UNLOCKED; + 800397e: 687b ldr r3, [r7, #4] + 8003980: 2200 movs r2, #0 + 8003982: f883 2050 strb.w r2, [r3, #80] ; 0x50 + + /* Init the low level hardware : GPIO, CLOCK, NVIC... */ + hspi->MspInitCallback(hspi); +#else + /* Init the low level hardware : GPIO, CLOCK, NVIC... */ + HAL_SPI_MspInit(hspi); + 8003986: 6878 ldr r0, [r7, #4] + 8003988: f7fd fe8a bl 80016a0 +#endif /* USE_HAL_SPI_REGISTER_CALLBACKS */ + } + + hspi->State = HAL_SPI_STATE_BUSY; + 800398c: 687b ldr r3, [r7, #4] + 800398e: 2202 movs r2, #2 + 8003990: f883 2051 strb.w r2, [r3, #81] ; 0x51 + + /* Disable the selected SPI peripheral */ + __HAL_SPI_DISABLE(hspi); + 8003994: 687b ldr r3, [r7, #4] + 8003996: 681b ldr r3, [r3, #0] + 8003998: 681a ldr r2, [r3, #0] + 800399a: 687b ldr r3, [r7, #4] + 800399c: 681b ldr r3, [r3, #0] + 800399e: f022 0240 bic.w r2, r2, #64 ; 0x40 + 80039a2: 601a str r2, [r3, #0] + + /*----------------------- SPIx CR1 & CR2 Configuration ---------------------*/ + /* Configure : SPI Mode, Communication Mode, Data size, Clock polarity and phase, NSS management, + Communication speed, First bit and CRC calculation state */ + WRITE_REG(hspi->Instance->CR1, ((hspi->Init.Mode & (SPI_CR1_MSTR | SPI_CR1_SSI)) | + 80039a4: 687b ldr r3, [r7, #4] + 80039a6: 685b ldr r3, [r3, #4] + 80039a8: f403 7282 and.w r2, r3, #260 ; 0x104 + 80039ac: 687b ldr r3, [r7, #4] + 80039ae: 689b ldr r3, [r3, #8] + 80039b0: f403 4304 and.w r3, r3, #33792 ; 0x8400 + 80039b4: 431a orrs r2, r3 + 80039b6: 687b ldr r3, [r7, #4] + 80039b8: 68db ldr r3, [r3, #12] + 80039ba: f403 6300 and.w r3, r3, #2048 ; 0x800 + 80039be: 431a orrs r2, r3 + 80039c0: 687b ldr r3, [r7, #4] + 80039c2: 691b ldr r3, [r3, #16] + 80039c4: f003 0302 and.w r3, r3, #2 + 80039c8: 431a orrs r2, r3 + 80039ca: 687b ldr r3, [r7, #4] + 80039cc: 695b ldr r3, [r3, #20] + 80039ce: f003 0301 and.w r3, r3, #1 + 80039d2: 431a orrs r2, r3 + 80039d4: 687b ldr r3, [r7, #4] + 80039d6: 699b ldr r3, [r3, #24] + 80039d8: f403 7300 and.w r3, r3, #512 ; 0x200 + 80039dc: 431a orrs r2, r3 + 80039de: 687b ldr r3, [r7, #4] + 80039e0: 69db ldr r3, [r3, #28] + 80039e2: f003 0338 and.w r3, r3, #56 ; 0x38 + 80039e6: 431a orrs r2, r3 + 80039e8: 687b ldr r3, [r7, #4] + 80039ea: 6a1b ldr r3, [r3, #32] + 80039ec: f003 0380 and.w r3, r3, #128 ; 0x80 + 80039f0: ea42 0103 orr.w r1, r2, r3 + 80039f4: 687b ldr r3, [r7, #4] + 80039f6: 6a9b ldr r3, [r3, #40] ; 0x28 + 80039f8: f403 5200 and.w r2, r3, #8192 ; 0x2000 + 80039fc: 687b ldr r3, [r7, #4] + 80039fe: 681b ldr r3, [r3, #0] + 8003a00: 430a orrs r2, r1 + 8003a02: 601a str r2, [r3, #0] + (hspi->Init.BaudRatePrescaler & SPI_CR1_BR_Msk) | + (hspi->Init.FirstBit & SPI_CR1_LSBFIRST) | + (hspi->Init.CRCCalculation & SPI_CR1_CRCEN))); + + /* Configure : NSS management */ + WRITE_REG(hspi->Instance->CR2, ((hspi->Init.NSS >> 16U) & SPI_CR2_SSOE)); + 8003a04: 687b ldr r3, [r7, #4] + 8003a06: 699b ldr r3, [r3, #24] + 8003a08: 0c1a lsrs r2, r3, #16 + 8003a0a: 687b ldr r3, [r7, #4] + 8003a0c: 681b ldr r3, [r3, #0] + 8003a0e: f002 0204 and.w r2, r2, #4 + 8003a12: 605a str r2, [r3, #4] + } +#endif /* USE_SPI_CRC */ + +#if defined(SPI_I2SCFGR_I2SMOD) + /* Activate the SPI mode (Make sure that I2SMOD bit in I2SCFGR register is reset) */ + CLEAR_BIT(hspi->Instance->I2SCFGR, SPI_I2SCFGR_I2SMOD); + 8003a14: 687b ldr r3, [r7, #4] + 8003a16: 681b ldr r3, [r3, #0] + 8003a18: 69da ldr r2, [r3, #28] + 8003a1a: 687b ldr r3, [r7, #4] + 8003a1c: 681b ldr r3, [r3, #0] + 8003a1e: f422 6200 bic.w r2, r2, #2048 ; 0x800 + 8003a22: 61da str r2, [r3, #28] +#endif /* SPI_I2SCFGR_I2SMOD */ + + hspi->ErrorCode = HAL_SPI_ERROR_NONE; + 8003a24: 687b ldr r3, [r7, #4] + 8003a26: 2200 movs r2, #0 + 8003a28: 655a str r2, [r3, #84] ; 0x54 + hspi->State = HAL_SPI_STATE_READY; + 8003a2a: 687b ldr r3, [r7, #4] + 8003a2c: 2201 movs r2, #1 + 8003a2e: f883 2051 strb.w r2, [r3, #81] ; 0x51 + + return HAL_OK; + 8003a32: 2300 movs r3, #0 +} + 8003a34: 4618 mov r0, r3 + 8003a36: 3708 adds r7, #8 + 8003a38: 46bd mov sp, r7 + 8003a3a: bd80 pop {r7, pc} + +08003a3c : + * @param Size amount of data to be sent + * @param Timeout Timeout duration + * @retval HAL status + */ +HAL_StatusTypeDef HAL_SPI_Transmit(SPI_HandleTypeDef *hspi, uint8_t *pData, uint16_t Size, uint32_t Timeout) +{ + 8003a3c: b580 push {r7, lr} + 8003a3e: b088 sub sp, #32 + 8003a40: af00 add r7, sp, #0 + 8003a42: 60f8 str r0, [r7, #12] + 8003a44: 60b9 str r1, [r7, #8] + 8003a46: 603b str r3, [r7, #0] + 8003a48: 4613 mov r3, r2 + 8003a4a: 80fb strh r3, [r7, #6] + uint32_t tickstart; + HAL_StatusTypeDef errorcode = HAL_OK; + 8003a4c: 2300 movs r3, #0 + 8003a4e: 77fb strb r3, [r7, #31] + + /* Check Direction parameter */ + assert_param(IS_SPI_DIRECTION_2LINES_OR_1LINE(hspi->Init.Direction)); + + /* Process Locked */ + __HAL_LOCK(hspi); + 8003a50: 68fb ldr r3, [r7, #12] + 8003a52: f893 3050 ldrb.w r3, [r3, #80] ; 0x50 + 8003a56: 2b01 cmp r3, #1 + 8003a58: d101 bne.n 8003a5e + 8003a5a: 2302 movs r3, #2 + 8003a5c: e126 b.n 8003cac + 8003a5e: 68fb ldr r3, [r7, #12] + 8003a60: 2201 movs r2, #1 + 8003a62: f883 2050 strb.w r2, [r3, #80] ; 0x50 + + /* Init tickstart for timeout management*/ + tickstart = HAL_GetTick(); + 8003a66: f7fe f85f bl 8001b28 + 8003a6a: 61b8 str r0, [r7, #24] + initial_TxXferCount = Size; + 8003a6c: 88fb ldrh r3, [r7, #6] + 8003a6e: 82fb strh r3, [r7, #22] + + if (hspi->State != HAL_SPI_STATE_READY) + 8003a70: 68fb ldr r3, [r7, #12] + 8003a72: f893 3051 ldrb.w r3, [r3, #81] ; 0x51 + 8003a76: b2db uxtb r3, r3 + 8003a78: 2b01 cmp r3, #1 + 8003a7a: d002 beq.n 8003a82 + { + errorcode = HAL_BUSY; + 8003a7c: 2302 movs r3, #2 + 8003a7e: 77fb strb r3, [r7, #31] + goto error; + 8003a80: e10b b.n 8003c9a + } + + if ((pData == NULL) || (Size == 0U)) + 8003a82: 68bb ldr r3, [r7, #8] + 8003a84: 2b00 cmp r3, #0 + 8003a86: d002 beq.n 8003a8e + 8003a88: 88fb ldrh r3, [r7, #6] + 8003a8a: 2b00 cmp r3, #0 + 8003a8c: d102 bne.n 8003a94 + { + errorcode = HAL_ERROR; + 8003a8e: 2301 movs r3, #1 + 8003a90: 77fb strb r3, [r7, #31] + goto error; + 8003a92: e102 b.n 8003c9a + } + + /* Set the transaction information */ + hspi->State = HAL_SPI_STATE_BUSY_TX; + 8003a94: 68fb ldr r3, [r7, #12] + 8003a96: 2203 movs r2, #3 + 8003a98: f883 2051 strb.w r2, [r3, #81] ; 0x51 + hspi->ErrorCode = HAL_SPI_ERROR_NONE; + 8003a9c: 68fb ldr r3, [r7, #12] + 8003a9e: 2200 movs r2, #0 + 8003aa0: 655a str r2, [r3, #84] ; 0x54 + hspi->pTxBuffPtr = (uint8_t *)pData; + 8003aa2: 68fb ldr r3, [r7, #12] + 8003aa4: 68ba ldr r2, [r7, #8] + 8003aa6: 631a str r2, [r3, #48] ; 0x30 + hspi->TxXferSize = Size; + 8003aa8: 68fb ldr r3, [r7, #12] + 8003aaa: 88fa ldrh r2, [r7, #6] + 8003aac: 869a strh r2, [r3, #52] ; 0x34 + hspi->TxXferCount = Size; + 8003aae: 68fb ldr r3, [r7, #12] + 8003ab0: 88fa ldrh r2, [r7, #6] + 8003ab2: 86da strh r2, [r3, #54] ; 0x36 + + /*Init field not used in handle to zero */ + hspi->pRxBuffPtr = (uint8_t *)NULL; + 8003ab4: 68fb ldr r3, [r7, #12] + 8003ab6: 2200 movs r2, #0 + 8003ab8: 639a str r2, [r3, #56] ; 0x38 + hspi->RxXferSize = 0U; + 8003aba: 68fb ldr r3, [r7, #12] + 8003abc: 2200 movs r2, #0 + 8003abe: 879a strh r2, [r3, #60] ; 0x3c + hspi->RxXferCount = 0U; + 8003ac0: 68fb ldr r3, [r7, #12] + 8003ac2: 2200 movs r2, #0 + 8003ac4: 87da strh r2, [r3, #62] ; 0x3e + hspi->TxISR = NULL; + 8003ac6: 68fb ldr r3, [r7, #12] + 8003ac8: 2200 movs r2, #0 + 8003aca: 645a str r2, [r3, #68] ; 0x44 + hspi->RxISR = NULL; + 8003acc: 68fb ldr r3, [r7, #12] + 8003ace: 2200 movs r2, #0 + 8003ad0: 641a str r2, [r3, #64] ; 0x40 + + /* Configure communication direction : 1Line */ + if (hspi->Init.Direction == SPI_DIRECTION_1LINE) + 8003ad2: 68fb ldr r3, [r7, #12] + 8003ad4: 689b ldr r3, [r3, #8] + 8003ad6: f5b3 4f00 cmp.w r3, #32768 ; 0x8000 + 8003ada: d10f bne.n 8003afc + { + /* Disable SPI Peripheral before set 1Line direction (BIDIOE bit) */ + __HAL_SPI_DISABLE(hspi); + 8003adc: 68fb ldr r3, [r7, #12] + 8003ade: 681b ldr r3, [r3, #0] + 8003ae0: 681a ldr r2, [r3, #0] + 8003ae2: 68fb ldr r3, [r7, #12] + 8003ae4: 681b ldr r3, [r3, #0] + 8003ae6: f022 0240 bic.w r2, r2, #64 ; 0x40 + 8003aea: 601a str r2, [r3, #0] + SPI_1LINE_TX(hspi); + 8003aec: 68fb ldr r3, [r7, #12] + 8003aee: 681b ldr r3, [r3, #0] + 8003af0: 681a ldr r2, [r3, #0] + 8003af2: 68fb ldr r3, [r7, #12] + 8003af4: 681b ldr r3, [r3, #0] + 8003af6: f442 4280 orr.w r2, r2, #16384 ; 0x4000 + 8003afa: 601a str r2, [r3, #0] + SPI_RESET_CRC(hspi); + } +#endif /* USE_SPI_CRC */ + + /* Check if the SPI is already enabled */ + if ((hspi->Instance->CR1 & SPI_CR1_SPE) != SPI_CR1_SPE) + 8003afc: 68fb ldr r3, [r7, #12] + 8003afe: 681b ldr r3, [r3, #0] + 8003b00: 681b ldr r3, [r3, #0] + 8003b02: f003 0340 and.w r3, r3, #64 ; 0x40 + 8003b06: 2b40 cmp r3, #64 ; 0x40 + 8003b08: d007 beq.n 8003b1a + { + /* Enable SPI peripheral */ + __HAL_SPI_ENABLE(hspi); + 8003b0a: 68fb ldr r3, [r7, #12] + 8003b0c: 681b ldr r3, [r3, #0] + 8003b0e: 681a ldr r2, [r3, #0] + 8003b10: 68fb ldr r3, [r7, #12] + 8003b12: 681b ldr r3, [r3, #0] + 8003b14: f042 0240 orr.w r2, r2, #64 ; 0x40 + 8003b18: 601a str r2, [r3, #0] + } + + /* Transmit data in 16 Bit mode */ + if (hspi->Init.DataSize == SPI_DATASIZE_16BIT) + 8003b1a: 68fb ldr r3, [r7, #12] + 8003b1c: 68db ldr r3, [r3, #12] + 8003b1e: f5b3 6f00 cmp.w r3, #2048 ; 0x800 + 8003b22: d14b bne.n 8003bbc + { + if ((hspi->Init.Mode == SPI_MODE_SLAVE) || (initial_TxXferCount == 0x01U)) + 8003b24: 68fb ldr r3, [r7, #12] + 8003b26: 685b ldr r3, [r3, #4] + 8003b28: 2b00 cmp r3, #0 + 8003b2a: d002 beq.n 8003b32 + 8003b2c: 8afb ldrh r3, [r7, #22] + 8003b2e: 2b01 cmp r3, #1 + 8003b30: d13e bne.n 8003bb0 + { + hspi->Instance->DR = *((uint16_t *)hspi->pTxBuffPtr); + 8003b32: 68fb ldr r3, [r7, #12] + 8003b34: 6b1b ldr r3, [r3, #48] ; 0x30 + 8003b36: 881a ldrh r2, [r3, #0] + 8003b38: 68fb ldr r3, [r7, #12] + 8003b3a: 681b ldr r3, [r3, #0] + 8003b3c: 60da str r2, [r3, #12] + hspi->pTxBuffPtr += sizeof(uint16_t); + 8003b3e: 68fb ldr r3, [r7, #12] + 8003b40: 6b1b ldr r3, [r3, #48] ; 0x30 + 8003b42: 1c9a adds r2, r3, #2 + 8003b44: 68fb ldr r3, [r7, #12] + 8003b46: 631a str r2, [r3, #48] ; 0x30 + hspi->TxXferCount--; + 8003b48: 68fb ldr r3, [r7, #12] + 8003b4a: 8edb ldrh r3, [r3, #54] ; 0x36 + 8003b4c: b29b uxth r3, r3 + 8003b4e: 3b01 subs r3, #1 + 8003b50: b29a uxth r2, r3 + 8003b52: 68fb ldr r3, [r7, #12] + 8003b54: 86da strh r2, [r3, #54] ; 0x36 + } + /* Transmit data in 16 Bit mode */ + while (hspi->TxXferCount > 0U) + 8003b56: e02b b.n 8003bb0 + { + /* Wait until TXE flag is set to send data */ + if (__HAL_SPI_GET_FLAG(hspi, SPI_FLAG_TXE)) + 8003b58: 68fb ldr r3, [r7, #12] + 8003b5a: 681b ldr r3, [r3, #0] + 8003b5c: 689b ldr r3, [r3, #8] + 8003b5e: f003 0302 and.w r3, r3, #2 + 8003b62: 2b02 cmp r3, #2 + 8003b64: d112 bne.n 8003b8c + { + hspi->Instance->DR = *((uint16_t *)hspi->pTxBuffPtr); + 8003b66: 68fb ldr r3, [r7, #12] + 8003b68: 6b1b ldr r3, [r3, #48] ; 0x30 + 8003b6a: 881a ldrh r2, [r3, #0] + 8003b6c: 68fb ldr r3, [r7, #12] + 8003b6e: 681b ldr r3, [r3, #0] + 8003b70: 60da str r2, [r3, #12] + hspi->pTxBuffPtr += sizeof(uint16_t); + 8003b72: 68fb ldr r3, [r7, #12] + 8003b74: 6b1b ldr r3, [r3, #48] ; 0x30 + 8003b76: 1c9a adds r2, r3, #2 + 8003b78: 68fb ldr r3, [r7, #12] + 8003b7a: 631a str r2, [r3, #48] ; 0x30 + hspi->TxXferCount--; + 8003b7c: 68fb ldr r3, [r7, #12] + 8003b7e: 8edb ldrh r3, [r3, #54] ; 0x36 + 8003b80: b29b uxth r3, r3 + 8003b82: 3b01 subs r3, #1 + 8003b84: b29a uxth r2, r3 + 8003b86: 68fb ldr r3, [r7, #12] + 8003b88: 86da strh r2, [r3, #54] ; 0x36 + 8003b8a: e011 b.n 8003bb0 + } + else + { + /* Timeout management */ + if ((((HAL_GetTick() - tickstart) >= Timeout) && (Timeout != HAL_MAX_DELAY)) || (Timeout == 0U)) + 8003b8c: f7fd ffcc bl 8001b28 + 8003b90: 4602 mov r2, r0 + 8003b92: 69bb ldr r3, [r7, #24] + 8003b94: 1ad3 subs r3, r2, r3 + 8003b96: 683a ldr r2, [r7, #0] + 8003b98: 429a cmp r2, r3 + 8003b9a: d803 bhi.n 8003ba4 + 8003b9c: 683b ldr r3, [r7, #0] + 8003b9e: f1b3 3fff cmp.w r3, #4294967295 ; 0xffffffff + 8003ba2: d102 bne.n 8003baa + 8003ba4: 683b ldr r3, [r7, #0] + 8003ba6: 2b00 cmp r3, #0 + 8003ba8: d102 bne.n 8003bb0 + { + errorcode = HAL_TIMEOUT; + 8003baa: 2303 movs r3, #3 + 8003bac: 77fb strb r3, [r7, #31] + goto error; + 8003bae: e074 b.n 8003c9a + while (hspi->TxXferCount > 0U) + 8003bb0: 68fb ldr r3, [r7, #12] + 8003bb2: 8edb ldrh r3, [r3, #54] ; 0x36 + 8003bb4: b29b uxth r3, r3 + 8003bb6: 2b00 cmp r3, #0 + 8003bb8: d1ce bne.n 8003b58 + 8003bba: e04c b.n 8003c56 + } + } + /* Transmit data in 8 Bit mode */ + else + { + if ((hspi->Init.Mode == SPI_MODE_SLAVE) || (initial_TxXferCount == 0x01U)) + 8003bbc: 68fb ldr r3, [r7, #12] + 8003bbe: 685b ldr r3, [r3, #4] + 8003bc0: 2b00 cmp r3, #0 + 8003bc2: d002 beq.n 8003bca + 8003bc4: 8afb ldrh r3, [r7, #22] + 8003bc6: 2b01 cmp r3, #1 + 8003bc8: d140 bne.n 8003c4c + { + *((__IO uint8_t *)&hspi->Instance->DR) = (*hspi->pTxBuffPtr); + 8003bca: 68fb ldr r3, [r7, #12] + 8003bcc: 6b1a ldr r2, [r3, #48] ; 0x30 + 8003bce: 68fb ldr r3, [r7, #12] + 8003bd0: 681b ldr r3, [r3, #0] + 8003bd2: 330c adds r3, #12 + 8003bd4: 7812 ldrb r2, [r2, #0] + 8003bd6: 701a strb r2, [r3, #0] + hspi->pTxBuffPtr += sizeof(uint8_t); + 8003bd8: 68fb ldr r3, [r7, #12] + 8003bda: 6b1b ldr r3, [r3, #48] ; 0x30 + 8003bdc: 1c5a adds r2, r3, #1 + 8003bde: 68fb ldr r3, [r7, #12] + 8003be0: 631a str r2, [r3, #48] ; 0x30 + hspi->TxXferCount--; + 8003be2: 68fb ldr r3, [r7, #12] + 8003be4: 8edb ldrh r3, [r3, #54] ; 0x36 + 8003be6: b29b uxth r3, r3 + 8003be8: 3b01 subs r3, #1 + 8003bea: b29a uxth r2, r3 + 8003bec: 68fb ldr r3, [r7, #12] + 8003bee: 86da strh r2, [r3, #54] ; 0x36 + } + while (hspi->TxXferCount > 0U) + 8003bf0: e02c b.n 8003c4c + { + /* Wait until TXE flag is set to send data */ + if (__HAL_SPI_GET_FLAG(hspi, SPI_FLAG_TXE)) + 8003bf2: 68fb ldr r3, [r7, #12] + 8003bf4: 681b ldr r3, [r3, #0] + 8003bf6: 689b ldr r3, [r3, #8] + 8003bf8: f003 0302 and.w r3, r3, #2 + 8003bfc: 2b02 cmp r3, #2 + 8003bfe: d113 bne.n 8003c28 + { + *((__IO uint8_t *)&hspi->Instance->DR) = (*hspi->pTxBuffPtr); + 8003c00: 68fb ldr r3, [r7, #12] + 8003c02: 6b1a ldr r2, [r3, #48] ; 0x30 + 8003c04: 68fb ldr r3, [r7, #12] + 8003c06: 681b ldr r3, [r3, #0] + 8003c08: 330c adds r3, #12 + 8003c0a: 7812 ldrb r2, [r2, #0] + 8003c0c: 701a strb r2, [r3, #0] + hspi->pTxBuffPtr += sizeof(uint8_t); + 8003c0e: 68fb ldr r3, [r7, #12] + 8003c10: 6b1b ldr r3, [r3, #48] ; 0x30 + 8003c12: 1c5a adds r2, r3, #1 + 8003c14: 68fb ldr r3, [r7, #12] + 8003c16: 631a str r2, [r3, #48] ; 0x30 + hspi->TxXferCount--; + 8003c18: 68fb ldr r3, [r7, #12] + 8003c1a: 8edb ldrh r3, [r3, #54] ; 0x36 + 8003c1c: b29b uxth r3, r3 + 8003c1e: 3b01 subs r3, #1 + 8003c20: b29a uxth r2, r3 + 8003c22: 68fb ldr r3, [r7, #12] + 8003c24: 86da strh r2, [r3, #54] ; 0x36 + 8003c26: e011 b.n 8003c4c + } + else + { + /* Timeout management */ + if ((((HAL_GetTick() - tickstart) >= Timeout) && (Timeout != HAL_MAX_DELAY)) || (Timeout == 0U)) + 8003c28: f7fd ff7e bl 8001b28 + 8003c2c: 4602 mov r2, r0 + 8003c2e: 69bb ldr r3, [r7, #24] + 8003c30: 1ad3 subs r3, r2, r3 + 8003c32: 683a ldr r2, [r7, #0] + 8003c34: 429a cmp r2, r3 + 8003c36: d803 bhi.n 8003c40 + 8003c38: 683b ldr r3, [r7, #0] + 8003c3a: f1b3 3fff cmp.w r3, #4294967295 ; 0xffffffff + 8003c3e: d102 bne.n 8003c46 + 8003c40: 683b ldr r3, [r7, #0] + 8003c42: 2b00 cmp r3, #0 + 8003c44: d102 bne.n 8003c4c + { + errorcode = HAL_TIMEOUT; + 8003c46: 2303 movs r3, #3 + 8003c48: 77fb strb r3, [r7, #31] + goto error; + 8003c4a: e026 b.n 8003c9a + while (hspi->TxXferCount > 0U) + 8003c4c: 68fb ldr r3, [r7, #12] + 8003c4e: 8edb ldrh r3, [r3, #54] ; 0x36 + 8003c50: b29b uxth r3, r3 + 8003c52: 2b00 cmp r3, #0 + 8003c54: d1cd bne.n 8003bf2 + SET_BIT(hspi->Instance->CR1, SPI_CR1_CRCNEXT); + } +#endif /* USE_SPI_CRC */ + + /* Check the end of the transaction */ + if (SPI_EndRxTxTransaction(hspi, Timeout, tickstart) != HAL_OK) + 8003c56: 69ba ldr r2, [r7, #24] + 8003c58: 6839 ldr r1, [r7, #0] + 8003c5a: 68f8 ldr r0, [r7, #12] + 8003c5c: f000 fbb8 bl 80043d0 + 8003c60: 4603 mov r3, r0 + 8003c62: 2b00 cmp r3, #0 + 8003c64: d002 beq.n 8003c6c + { + hspi->ErrorCode = HAL_SPI_ERROR_FLAG; + 8003c66: 68fb ldr r3, [r7, #12] + 8003c68: 2220 movs r2, #32 + 8003c6a: 655a str r2, [r3, #84] ; 0x54 + } + + /* Clear overrun flag in 2 Lines communication mode because received is not read */ + if (hspi->Init.Direction == SPI_DIRECTION_2LINES) + 8003c6c: 68fb ldr r3, [r7, #12] + 8003c6e: 689b ldr r3, [r3, #8] + 8003c70: 2b00 cmp r3, #0 + 8003c72: d10a bne.n 8003c8a + { + __HAL_SPI_CLEAR_OVRFLAG(hspi); + 8003c74: 2300 movs r3, #0 + 8003c76: 613b str r3, [r7, #16] + 8003c78: 68fb ldr r3, [r7, #12] + 8003c7a: 681b ldr r3, [r3, #0] + 8003c7c: 68db ldr r3, [r3, #12] + 8003c7e: 613b str r3, [r7, #16] + 8003c80: 68fb ldr r3, [r7, #12] + 8003c82: 681b ldr r3, [r3, #0] + 8003c84: 689b ldr r3, [r3, #8] + 8003c86: 613b str r3, [r7, #16] + 8003c88: 693b ldr r3, [r7, #16] + } + + if (hspi->ErrorCode != HAL_SPI_ERROR_NONE) + 8003c8a: 68fb ldr r3, [r7, #12] + 8003c8c: 6d5b ldr r3, [r3, #84] ; 0x54 + 8003c8e: 2b00 cmp r3, #0 + 8003c90: d002 beq.n 8003c98 + { + errorcode = HAL_ERROR; + 8003c92: 2301 movs r3, #1 + 8003c94: 77fb strb r3, [r7, #31] + 8003c96: e000 b.n 8003c9a + } + +error: + 8003c98: bf00 nop + hspi->State = HAL_SPI_STATE_READY; + 8003c9a: 68fb ldr r3, [r7, #12] + 8003c9c: 2201 movs r2, #1 + 8003c9e: f883 2051 strb.w r2, [r3, #81] ; 0x51 + /* Process Unlocked */ + __HAL_UNLOCK(hspi); + 8003ca2: 68fb ldr r3, [r7, #12] + 8003ca4: 2200 movs r2, #0 + 8003ca6: f883 2050 strb.w r2, [r3, #80] ; 0x50 + return errorcode; + 8003caa: 7ffb ldrb r3, [r7, #31] +} + 8003cac: 4618 mov r0, r3 + 8003cae: 3720 adds r7, #32 + 8003cb0: 46bd mov sp, r7 + 8003cb2: bd80 pop {r7, pc} + +08003cb4 : + * @param Size amount of data to be received + * @param Timeout Timeout duration + * @retval HAL status + */ +HAL_StatusTypeDef HAL_SPI_Receive(SPI_HandleTypeDef *hspi, uint8_t *pData, uint16_t Size, uint32_t Timeout) +{ + 8003cb4: b580 push {r7, lr} + 8003cb6: b088 sub sp, #32 + 8003cb8: af02 add r7, sp, #8 + 8003cba: 60f8 str r0, [r7, #12] + 8003cbc: 60b9 str r1, [r7, #8] + 8003cbe: 603b str r3, [r7, #0] + 8003cc0: 4613 mov r3, r2 + 8003cc2: 80fb strh r3, [r7, #6] +#if (USE_SPI_CRC != 0U) + __IO uint32_t tmpreg = 0U; +#endif /* USE_SPI_CRC */ + uint32_t tickstart; + HAL_StatusTypeDef errorcode = HAL_OK; + 8003cc4: 2300 movs r3, #0 + 8003cc6: 75fb strb r3, [r7, #23] + + if ((hspi->Init.Mode == SPI_MODE_MASTER) && (hspi->Init.Direction == SPI_DIRECTION_2LINES)) + 8003cc8: 68fb ldr r3, [r7, #12] + 8003cca: 685b ldr r3, [r3, #4] + 8003ccc: f5b3 7f82 cmp.w r3, #260 ; 0x104 + 8003cd0: d112 bne.n 8003cf8 + 8003cd2: 68fb ldr r3, [r7, #12] + 8003cd4: 689b ldr r3, [r3, #8] + 8003cd6: 2b00 cmp r3, #0 + 8003cd8: d10e bne.n 8003cf8 + { + hspi->State = HAL_SPI_STATE_BUSY_RX; + 8003cda: 68fb ldr r3, [r7, #12] + 8003cdc: 2204 movs r2, #4 + 8003cde: f883 2051 strb.w r2, [r3, #81] ; 0x51 + /* Call transmit-receive function to send Dummy data on Tx line and generate clock on CLK line */ + return HAL_SPI_TransmitReceive(hspi, pData, pData, Size, Timeout); + 8003ce2: 88fa ldrh r2, [r7, #6] + 8003ce4: 683b ldr r3, [r7, #0] + 8003ce6: 9300 str r3, [sp, #0] + 8003ce8: 4613 mov r3, r2 + 8003cea: 68ba ldr r2, [r7, #8] + 8003cec: 68b9 ldr r1, [r7, #8] + 8003cee: 68f8 ldr r0, [r7, #12] + 8003cf0: f000 f8f1 bl 8003ed6 + 8003cf4: 4603 mov r3, r0 + 8003cf6: e0ea b.n 8003ece + } + + /* Process Locked */ + __HAL_LOCK(hspi); + 8003cf8: 68fb ldr r3, [r7, #12] + 8003cfa: f893 3050 ldrb.w r3, [r3, #80] ; 0x50 + 8003cfe: 2b01 cmp r3, #1 + 8003d00: d101 bne.n 8003d06 + 8003d02: 2302 movs r3, #2 + 8003d04: e0e3 b.n 8003ece + 8003d06: 68fb ldr r3, [r7, #12] + 8003d08: 2201 movs r2, #1 + 8003d0a: f883 2050 strb.w r2, [r3, #80] ; 0x50 + + /* Init tickstart for timeout management*/ + tickstart = HAL_GetTick(); + 8003d0e: f7fd ff0b bl 8001b28 + 8003d12: 6138 str r0, [r7, #16] + + if (hspi->State != HAL_SPI_STATE_READY) + 8003d14: 68fb ldr r3, [r7, #12] + 8003d16: f893 3051 ldrb.w r3, [r3, #81] ; 0x51 + 8003d1a: b2db uxtb r3, r3 + 8003d1c: 2b01 cmp r3, #1 + 8003d1e: d002 beq.n 8003d26 + { + errorcode = HAL_BUSY; + 8003d20: 2302 movs r3, #2 + 8003d22: 75fb strb r3, [r7, #23] + goto error; + 8003d24: e0ca b.n 8003ebc + } + + if ((pData == NULL) || (Size == 0U)) + 8003d26: 68bb ldr r3, [r7, #8] + 8003d28: 2b00 cmp r3, #0 + 8003d2a: d002 beq.n 8003d32 + 8003d2c: 88fb ldrh r3, [r7, #6] + 8003d2e: 2b00 cmp r3, #0 + 8003d30: d102 bne.n 8003d38 + { + errorcode = HAL_ERROR; + 8003d32: 2301 movs r3, #1 + 8003d34: 75fb strb r3, [r7, #23] + goto error; + 8003d36: e0c1 b.n 8003ebc + } + + /* Set the transaction information */ + hspi->State = HAL_SPI_STATE_BUSY_RX; + 8003d38: 68fb ldr r3, [r7, #12] + 8003d3a: 2204 movs r2, #4 + 8003d3c: f883 2051 strb.w r2, [r3, #81] ; 0x51 + hspi->ErrorCode = HAL_SPI_ERROR_NONE; + 8003d40: 68fb ldr r3, [r7, #12] + 8003d42: 2200 movs r2, #0 + 8003d44: 655a str r2, [r3, #84] ; 0x54 + hspi->pRxBuffPtr = (uint8_t *)pData; + 8003d46: 68fb ldr r3, [r7, #12] + 8003d48: 68ba ldr r2, [r7, #8] + 8003d4a: 639a str r2, [r3, #56] ; 0x38 + hspi->RxXferSize = Size; + 8003d4c: 68fb ldr r3, [r7, #12] + 8003d4e: 88fa ldrh r2, [r7, #6] + 8003d50: 879a strh r2, [r3, #60] ; 0x3c + hspi->RxXferCount = Size; + 8003d52: 68fb ldr r3, [r7, #12] + 8003d54: 88fa ldrh r2, [r7, #6] + 8003d56: 87da strh r2, [r3, #62] ; 0x3e + + /*Init field not used in handle to zero */ + hspi->pTxBuffPtr = (uint8_t *)NULL; + 8003d58: 68fb ldr r3, [r7, #12] + 8003d5a: 2200 movs r2, #0 + 8003d5c: 631a str r2, [r3, #48] ; 0x30 + hspi->TxXferSize = 0U; + 8003d5e: 68fb ldr r3, [r7, #12] + 8003d60: 2200 movs r2, #0 + 8003d62: 869a strh r2, [r3, #52] ; 0x34 + hspi->TxXferCount = 0U; + 8003d64: 68fb ldr r3, [r7, #12] + 8003d66: 2200 movs r2, #0 + 8003d68: 86da strh r2, [r3, #54] ; 0x36 + hspi->RxISR = NULL; + 8003d6a: 68fb ldr r3, [r7, #12] + 8003d6c: 2200 movs r2, #0 + 8003d6e: 641a str r2, [r3, #64] ; 0x40 + hspi->TxISR = NULL; + 8003d70: 68fb ldr r3, [r7, #12] + 8003d72: 2200 movs r2, #0 + 8003d74: 645a str r2, [r3, #68] ; 0x44 + hspi->RxXferCount--; + } +#endif /* USE_SPI_CRC */ + + /* Configure communication direction: 1Line */ + if (hspi->Init.Direction == SPI_DIRECTION_1LINE) + 8003d76: 68fb ldr r3, [r7, #12] + 8003d78: 689b ldr r3, [r3, #8] + 8003d7a: f5b3 4f00 cmp.w r3, #32768 ; 0x8000 + 8003d7e: d10f bne.n 8003da0 + { + /* Disable SPI Peripheral before set 1Line direction (BIDIOE bit) */ + __HAL_SPI_DISABLE(hspi); + 8003d80: 68fb ldr r3, [r7, #12] + 8003d82: 681b ldr r3, [r3, #0] + 8003d84: 681a ldr r2, [r3, #0] + 8003d86: 68fb ldr r3, [r7, #12] + 8003d88: 681b ldr r3, [r3, #0] + 8003d8a: f022 0240 bic.w r2, r2, #64 ; 0x40 + 8003d8e: 601a str r2, [r3, #0] + SPI_1LINE_RX(hspi); + 8003d90: 68fb ldr r3, [r7, #12] + 8003d92: 681b ldr r3, [r3, #0] + 8003d94: 681a ldr r2, [r3, #0] + 8003d96: 68fb ldr r3, [r7, #12] + 8003d98: 681b ldr r3, [r3, #0] + 8003d9a: f422 4280 bic.w r2, r2, #16384 ; 0x4000 + 8003d9e: 601a str r2, [r3, #0] + } + + /* Check if the SPI is already enabled */ + if ((hspi->Instance->CR1 & SPI_CR1_SPE) != SPI_CR1_SPE) + 8003da0: 68fb ldr r3, [r7, #12] + 8003da2: 681b ldr r3, [r3, #0] + 8003da4: 681b ldr r3, [r3, #0] + 8003da6: f003 0340 and.w r3, r3, #64 ; 0x40 + 8003daa: 2b40 cmp r3, #64 ; 0x40 + 8003dac: d007 beq.n 8003dbe + { + /* Enable SPI peripheral */ + __HAL_SPI_ENABLE(hspi); + 8003dae: 68fb ldr r3, [r7, #12] + 8003db0: 681b ldr r3, [r3, #0] + 8003db2: 681a ldr r2, [r3, #0] + 8003db4: 68fb ldr r3, [r7, #12] + 8003db6: 681b ldr r3, [r3, #0] + 8003db8: f042 0240 orr.w r2, r2, #64 ; 0x40 + 8003dbc: 601a str r2, [r3, #0] + } + + /* Receive data in 8 Bit mode */ + if (hspi->Init.DataSize == SPI_DATASIZE_8BIT) + 8003dbe: 68fb ldr r3, [r7, #12] + 8003dc0: 68db ldr r3, [r3, #12] + 8003dc2: 2b00 cmp r3, #0 + 8003dc4: d162 bne.n 8003e8c + { + /* Transfer loop */ + while (hspi->RxXferCount > 0U) + 8003dc6: e02e b.n 8003e26 + { + /* Check the RXNE flag */ + if (__HAL_SPI_GET_FLAG(hspi, SPI_FLAG_RXNE)) + 8003dc8: 68fb ldr r3, [r7, #12] + 8003dca: 681b ldr r3, [r3, #0] + 8003dcc: 689b ldr r3, [r3, #8] + 8003dce: f003 0301 and.w r3, r3, #1 + 8003dd2: 2b01 cmp r3, #1 + 8003dd4: d115 bne.n 8003e02 + { + /* read the received data */ + (* (uint8_t *)hspi->pRxBuffPtr) = *(__IO uint8_t *)&hspi->Instance->DR; + 8003dd6: 68fb ldr r3, [r7, #12] + 8003dd8: 681b ldr r3, [r3, #0] + 8003dda: f103 020c add.w r2, r3, #12 + 8003dde: 68fb ldr r3, [r7, #12] + 8003de0: 6b9b ldr r3, [r3, #56] ; 0x38 + 8003de2: 7812 ldrb r2, [r2, #0] + 8003de4: b2d2 uxtb r2, r2 + 8003de6: 701a strb r2, [r3, #0] + hspi->pRxBuffPtr += sizeof(uint8_t); + 8003de8: 68fb ldr r3, [r7, #12] + 8003dea: 6b9b ldr r3, [r3, #56] ; 0x38 + 8003dec: 1c5a adds r2, r3, #1 + 8003dee: 68fb ldr r3, [r7, #12] + 8003df0: 639a str r2, [r3, #56] ; 0x38 + hspi->RxXferCount--; + 8003df2: 68fb ldr r3, [r7, #12] + 8003df4: 8fdb ldrh r3, [r3, #62] ; 0x3e + 8003df6: b29b uxth r3, r3 + 8003df8: 3b01 subs r3, #1 + 8003dfa: b29a uxth r2, r3 + 8003dfc: 68fb ldr r3, [r7, #12] + 8003dfe: 87da strh r2, [r3, #62] ; 0x3e + 8003e00: e011 b.n 8003e26 + } + else + { + /* Timeout management */ + if ((((HAL_GetTick() - tickstart) >= Timeout) && (Timeout != HAL_MAX_DELAY)) || (Timeout == 0U)) + 8003e02: f7fd fe91 bl 8001b28 + 8003e06: 4602 mov r2, r0 + 8003e08: 693b ldr r3, [r7, #16] + 8003e0a: 1ad3 subs r3, r2, r3 + 8003e0c: 683a ldr r2, [r7, #0] + 8003e0e: 429a cmp r2, r3 + 8003e10: d803 bhi.n 8003e1a + 8003e12: 683b ldr r3, [r7, #0] + 8003e14: f1b3 3fff cmp.w r3, #4294967295 ; 0xffffffff + 8003e18: d102 bne.n 8003e20 + 8003e1a: 683b ldr r3, [r7, #0] + 8003e1c: 2b00 cmp r3, #0 + 8003e1e: d102 bne.n 8003e26 + { + errorcode = HAL_TIMEOUT; + 8003e20: 2303 movs r3, #3 + 8003e22: 75fb strb r3, [r7, #23] + goto error; + 8003e24: e04a b.n 8003ebc + while (hspi->RxXferCount > 0U) + 8003e26: 68fb ldr r3, [r7, #12] + 8003e28: 8fdb ldrh r3, [r3, #62] ; 0x3e + 8003e2a: b29b uxth r3, r3 + 8003e2c: 2b00 cmp r3, #0 + 8003e2e: d1cb bne.n 8003dc8 + 8003e30: e031 b.n 8003e96 + { + /* Transfer loop */ + while (hspi->RxXferCount > 0U) + { + /* Check the RXNE flag */ + if (__HAL_SPI_GET_FLAG(hspi, SPI_FLAG_RXNE)) + 8003e32: 68fb ldr r3, [r7, #12] + 8003e34: 681b ldr r3, [r3, #0] + 8003e36: 689b ldr r3, [r3, #8] + 8003e38: f003 0301 and.w r3, r3, #1 + 8003e3c: 2b01 cmp r3, #1 + 8003e3e: d113 bne.n 8003e68 + { + *((uint16_t *)hspi->pRxBuffPtr) = (uint16_t)hspi->Instance->DR; + 8003e40: 68fb ldr r3, [r7, #12] + 8003e42: 681b ldr r3, [r3, #0] + 8003e44: 68da ldr r2, [r3, #12] + 8003e46: 68fb ldr r3, [r7, #12] + 8003e48: 6b9b ldr r3, [r3, #56] ; 0x38 + 8003e4a: b292 uxth r2, r2 + 8003e4c: 801a strh r2, [r3, #0] + hspi->pRxBuffPtr += sizeof(uint16_t); + 8003e4e: 68fb ldr r3, [r7, #12] + 8003e50: 6b9b ldr r3, [r3, #56] ; 0x38 + 8003e52: 1c9a adds r2, r3, #2 + 8003e54: 68fb ldr r3, [r7, #12] + 8003e56: 639a str r2, [r3, #56] ; 0x38 + hspi->RxXferCount--; + 8003e58: 68fb ldr r3, [r7, #12] + 8003e5a: 8fdb ldrh r3, [r3, #62] ; 0x3e + 8003e5c: b29b uxth r3, r3 + 8003e5e: 3b01 subs r3, #1 + 8003e60: b29a uxth r2, r3 + 8003e62: 68fb ldr r3, [r7, #12] + 8003e64: 87da strh r2, [r3, #62] ; 0x3e + 8003e66: e011 b.n 8003e8c + } + else + { + /* Timeout management */ + if ((((HAL_GetTick() - tickstart) >= Timeout) && (Timeout != HAL_MAX_DELAY)) || (Timeout == 0U)) + 8003e68: f7fd fe5e bl 8001b28 + 8003e6c: 4602 mov r2, r0 + 8003e6e: 693b ldr r3, [r7, #16] + 8003e70: 1ad3 subs r3, r2, r3 + 8003e72: 683a ldr r2, [r7, #0] + 8003e74: 429a cmp r2, r3 + 8003e76: d803 bhi.n 8003e80 + 8003e78: 683b ldr r3, [r7, #0] + 8003e7a: f1b3 3fff cmp.w r3, #4294967295 ; 0xffffffff + 8003e7e: d102 bne.n 8003e86 + 8003e80: 683b ldr r3, [r7, #0] + 8003e82: 2b00 cmp r3, #0 + 8003e84: d102 bne.n 8003e8c + { + errorcode = HAL_TIMEOUT; + 8003e86: 2303 movs r3, #3 + 8003e88: 75fb strb r3, [r7, #23] + goto error; + 8003e8a: e017 b.n 8003ebc + while (hspi->RxXferCount > 0U) + 8003e8c: 68fb ldr r3, [r7, #12] + 8003e8e: 8fdb ldrh r3, [r3, #62] ; 0x3e + 8003e90: b29b uxth r3, r3 + 8003e92: 2b00 cmp r3, #0 + 8003e94: d1cd bne.n 8003e32 + UNUSED(tmpreg); + } +#endif /* USE_SPI_CRC */ + + /* Check the end of the transaction */ + if (SPI_EndRxTransaction(hspi, Timeout, tickstart) != HAL_OK) + 8003e96: 693a ldr r2, [r7, #16] + 8003e98: 6839 ldr r1, [r7, #0] + 8003e9a: 68f8 ldr r0, [r7, #12] + 8003e9c: f000 fa46 bl 800432c + 8003ea0: 4603 mov r3, r0 + 8003ea2: 2b00 cmp r3, #0 + 8003ea4: d002 beq.n 8003eac + { + hspi->ErrorCode = HAL_SPI_ERROR_FLAG; + 8003ea6: 68fb ldr r3, [r7, #12] + 8003ea8: 2220 movs r2, #32 + 8003eaa: 655a str r2, [r3, #84] ; 0x54 + __HAL_SPI_CLEAR_CRCERRFLAG(hspi); + } + } +#endif /* USE_SPI_CRC */ + + if (hspi->ErrorCode != HAL_SPI_ERROR_NONE) + 8003eac: 68fb ldr r3, [r7, #12] + 8003eae: 6d5b ldr r3, [r3, #84] ; 0x54 + 8003eb0: 2b00 cmp r3, #0 + 8003eb2: d002 beq.n 8003eba + { + errorcode = HAL_ERROR; + 8003eb4: 2301 movs r3, #1 + 8003eb6: 75fb strb r3, [r7, #23] + 8003eb8: e000 b.n 8003ebc + } + +error : + 8003eba: bf00 nop + hspi->State = HAL_SPI_STATE_READY; + 8003ebc: 68fb ldr r3, [r7, #12] + 8003ebe: 2201 movs r2, #1 + 8003ec0: f883 2051 strb.w r2, [r3, #81] ; 0x51 + __HAL_UNLOCK(hspi); + 8003ec4: 68fb ldr r3, [r7, #12] + 8003ec6: 2200 movs r2, #0 + 8003ec8: f883 2050 strb.w r2, [r3, #80] ; 0x50 + return errorcode; + 8003ecc: 7dfb ldrb r3, [r7, #23] +} + 8003ece: 4618 mov r0, r3 + 8003ed0: 3718 adds r7, #24 + 8003ed2: 46bd mov sp, r7 + 8003ed4: bd80 pop {r7, pc} + +08003ed6 : + * @param Timeout Timeout duration + * @retval HAL status + */ +HAL_StatusTypeDef HAL_SPI_TransmitReceive(SPI_HandleTypeDef *hspi, uint8_t *pTxData, uint8_t *pRxData, uint16_t Size, + uint32_t Timeout) +{ + 8003ed6: b580 push {r7, lr} + 8003ed8: b08c sub sp, #48 ; 0x30 + 8003eda: af00 add r7, sp, #0 + 8003edc: 60f8 str r0, [r7, #12] + 8003ede: 60b9 str r1, [r7, #8] + 8003ee0: 607a str r2, [r7, #4] + 8003ee2: 807b strh r3, [r7, #2] +#if (USE_SPI_CRC != 0U) + __IO uint32_t tmpreg = 0U; +#endif /* USE_SPI_CRC */ + + /* Variable used to alternate Rx and Tx during transfer */ + uint32_t txallowed = 1U; + 8003ee4: 2301 movs r3, #1 + 8003ee6: 62fb str r3, [r7, #44] ; 0x2c + HAL_StatusTypeDef errorcode = HAL_OK; + 8003ee8: 2300 movs r3, #0 + 8003eea: f887 302b strb.w r3, [r7, #43] ; 0x2b + + /* Check Direction parameter */ + assert_param(IS_SPI_DIRECTION_2LINES(hspi->Init.Direction)); + + /* Process Locked */ + __HAL_LOCK(hspi); + 8003eee: 68fb ldr r3, [r7, #12] + 8003ef0: f893 3050 ldrb.w r3, [r3, #80] ; 0x50 + 8003ef4: 2b01 cmp r3, #1 + 8003ef6: d101 bne.n 8003efc + 8003ef8: 2302 movs r3, #2 + 8003efa: e18a b.n 8004212 + 8003efc: 68fb ldr r3, [r7, #12] + 8003efe: 2201 movs r2, #1 + 8003f00: f883 2050 strb.w r2, [r3, #80] ; 0x50 + + /* Init tickstart for timeout management*/ + tickstart = HAL_GetTick(); + 8003f04: f7fd fe10 bl 8001b28 + 8003f08: 6278 str r0, [r7, #36] ; 0x24 + + /* Init temporary variables */ + tmp_state = hspi->State; + 8003f0a: 68fb ldr r3, [r7, #12] + 8003f0c: f893 3051 ldrb.w r3, [r3, #81] ; 0x51 + 8003f10: f887 3023 strb.w r3, [r7, #35] ; 0x23 + tmp_mode = hspi->Init.Mode; + 8003f14: 68fb ldr r3, [r7, #12] + 8003f16: 685b ldr r3, [r3, #4] + 8003f18: 61fb str r3, [r7, #28] + initial_TxXferCount = Size; + 8003f1a: 887b ldrh r3, [r7, #2] + 8003f1c: 837b strh r3, [r7, #26] + + if (!((tmp_state == HAL_SPI_STATE_READY) || \ + 8003f1e: f897 3023 ldrb.w r3, [r7, #35] ; 0x23 + 8003f22: 2b01 cmp r3, #1 + 8003f24: d00f beq.n 8003f46 + 8003f26: 69fb ldr r3, [r7, #28] + 8003f28: f5b3 7f82 cmp.w r3, #260 ; 0x104 + 8003f2c: d107 bne.n 8003f3e + ((tmp_mode == SPI_MODE_MASTER) && (hspi->Init.Direction == SPI_DIRECTION_2LINES) && (tmp_state == HAL_SPI_STATE_BUSY_RX)))) + 8003f2e: 68fb ldr r3, [r7, #12] + 8003f30: 689b ldr r3, [r3, #8] + 8003f32: 2b00 cmp r3, #0 + 8003f34: d103 bne.n 8003f3e + 8003f36: f897 3023 ldrb.w r3, [r7, #35] ; 0x23 + 8003f3a: 2b04 cmp r3, #4 + 8003f3c: d003 beq.n 8003f46 + { + errorcode = HAL_BUSY; + 8003f3e: 2302 movs r3, #2 + 8003f40: f887 302b strb.w r3, [r7, #43] ; 0x2b + goto error; + 8003f44: e15b b.n 80041fe + } + + if ((pTxData == NULL) || (pRxData == NULL) || (Size == 0U)) + 8003f46: 68bb ldr r3, [r7, #8] + 8003f48: 2b00 cmp r3, #0 + 8003f4a: d005 beq.n 8003f58 + 8003f4c: 687b ldr r3, [r7, #4] + 8003f4e: 2b00 cmp r3, #0 + 8003f50: d002 beq.n 8003f58 + 8003f52: 887b ldrh r3, [r7, #2] + 8003f54: 2b00 cmp r3, #0 + 8003f56: d103 bne.n 8003f60 + { + errorcode = HAL_ERROR; + 8003f58: 2301 movs r3, #1 + 8003f5a: f887 302b strb.w r3, [r7, #43] ; 0x2b + goto error; + 8003f5e: e14e b.n 80041fe + } + + /* Don't overwrite in case of HAL_SPI_STATE_BUSY_RX */ + if (hspi->State != HAL_SPI_STATE_BUSY_RX) + 8003f60: 68fb ldr r3, [r7, #12] + 8003f62: f893 3051 ldrb.w r3, [r3, #81] ; 0x51 + 8003f66: b2db uxtb r3, r3 + 8003f68: 2b04 cmp r3, #4 + 8003f6a: d003 beq.n 8003f74 + { + hspi->State = HAL_SPI_STATE_BUSY_TX_RX; + 8003f6c: 68fb ldr r3, [r7, #12] + 8003f6e: 2205 movs r2, #5 + 8003f70: f883 2051 strb.w r2, [r3, #81] ; 0x51 + } + + /* Set the transaction information */ + hspi->ErrorCode = HAL_SPI_ERROR_NONE; + 8003f74: 68fb ldr r3, [r7, #12] + 8003f76: 2200 movs r2, #0 + 8003f78: 655a str r2, [r3, #84] ; 0x54 + hspi->pRxBuffPtr = (uint8_t *)pRxData; + 8003f7a: 68fb ldr r3, [r7, #12] + 8003f7c: 687a ldr r2, [r7, #4] + 8003f7e: 639a str r2, [r3, #56] ; 0x38 + hspi->RxXferCount = Size; + 8003f80: 68fb ldr r3, [r7, #12] + 8003f82: 887a ldrh r2, [r7, #2] + 8003f84: 87da strh r2, [r3, #62] ; 0x3e + hspi->RxXferSize = Size; + 8003f86: 68fb ldr r3, [r7, #12] + 8003f88: 887a ldrh r2, [r7, #2] + 8003f8a: 879a strh r2, [r3, #60] ; 0x3c + hspi->pTxBuffPtr = (uint8_t *)pTxData; + 8003f8c: 68fb ldr r3, [r7, #12] + 8003f8e: 68ba ldr r2, [r7, #8] + 8003f90: 631a str r2, [r3, #48] ; 0x30 + hspi->TxXferCount = Size; + 8003f92: 68fb ldr r3, [r7, #12] + 8003f94: 887a ldrh r2, [r7, #2] + 8003f96: 86da strh r2, [r3, #54] ; 0x36 + hspi->TxXferSize = Size; + 8003f98: 68fb ldr r3, [r7, #12] + 8003f9a: 887a ldrh r2, [r7, #2] + 8003f9c: 869a strh r2, [r3, #52] ; 0x34 + + /*Init field not used in handle to zero */ + hspi->RxISR = NULL; + 8003f9e: 68fb ldr r3, [r7, #12] + 8003fa0: 2200 movs r2, #0 + 8003fa2: 641a str r2, [r3, #64] ; 0x40 + hspi->TxISR = NULL; + 8003fa4: 68fb ldr r3, [r7, #12] + 8003fa6: 2200 movs r2, #0 + 8003fa8: 645a str r2, [r3, #68] ; 0x44 + SPI_RESET_CRC(hspi); + } +#endif /* USE_SPI_CRC */ + + /* Check if the SPI is already enabled */ + if ((hspi->Instance->CR1 & SPI_CR1_SPE) != SPI_CR1_SPE) + 8003faa: 68fb ldr r3, [r7, #12] + 8003fac: 681b ldr r3, [r3, #0] + 8003fae: 681b ldr r3, [r3, #0] + 8003fb0: f003 0340 and.w r3, r3, #64 ; 0x40 + 8003fb4: 2b40 cmp r3, #64 ; 0x40 + 8003fb6: d007 beq.n 8003fc8 + { + /* Enable SPI peripheral */ + __HAL_SPI_ENABLE(hspi); + 8003fb8: 68fb ldr r3, [r7, #12] + 8003fba: 681b ldr r3, [r3, #0] + 8003fbc: 681a ldr r2, [r3, #0] + 8003fbe: 68fb ldr r3, [r7, #12] + 8003fc0: 681b ldr r3, [r3, #0] + 8003fc2: f042 0240 orr.w r2, r2, #64 ; 0x40 + 8003fc6: 601a str r2, [r3, #0] + } + + /* Transmit and Receive data in 16 Bit mode */ + if (hspi->Init.DataSize == SPI_DATASIZE_16BIT) + 8003fc8: 68fb ldr r3, [r7, #12] + 8003fca: 68db ldr r3, [r3, #12] + 8003fcc: f5b3 6f00 cmp.w r3, #2048 ; 0x800 + 8003fd0: d178 bne.n 80040c4 + { + if ((hspi->Init.Mode == SPI_MODE_SLAVE) || (initial_TxXferCount == 0x01U)) + 8003fd2: 68fb ldr r3, [r7, #12] + 8003fd4: 685b ldr r3, [r3, #4] + 8003fd6: 2b00 cmp r3, #0 + 8003fd8: d002 beq.n 8003fe0 + 8003fda: 8b7b ldrh r3, [r7, #26] + 8003fdc: 2b01 cmp r3, #1 + 8003fde: d166 bne.n 80040ae + { + hspi->Instance->DR = *((uint16_t *)hspi->pTxBuffPtr); + 8003fe0: 68fb ldr r3, [r7, #12] + 8003fe2: 6b1b ldr r3, [r3, #48] ; 0x30 + 8003fe4: 881a ldrh r2, [r3, #0] + 8003fe6: 68fb ldr r3, [r7, #12] + 8003fe8: 681b ldr r3, [r3, #0] + 8003fea: 60da str r2, [r3, #12] + hspi->pTxBuffPtr += sizeof(uint16_t); + 8003fec: 68fb ldr r3, [r7, #12] + 8003fee: 6b1b ldr r3, [r3, #48] ; 0x30 + 8003ff0: 1c9a adds r2, r3, #2 + 8003ff2: 68fb ldr r3, [r7, #12] + 8003ff4: 631a str r2, [r3, #48] ; 0x30 + hspi->TxXferCount--; + 8003ff6: 68fb ldr r3, [r7, #12] + 8003ff8: 8edb ldrh r3, [r3, #54] ; 0x36 + 8003ffa: b29b uxth r3, r3 + 8003ffc: 3b01 subs r3, #1 + 8003ffe: b29a uxth r2, r3 + 8004000: 68fb ldr r3, [r7, #12] + 8004002: 86da strh r2, [r3, #54] ; 0x36 + } + while ((hspi->TxXferCount > 0U) || (hspi->RxXferCount > 0U)) + 8004004: e053 b.n 80040ae + { + /* Check TXE flag */ + if ((__HAL_SPI_GET_FLAG(hspi, SPI_FLAG_TXE)) && (hspi->TxXferCount > 0U) && (txallowed == 1U)) + 8004006: 68fb ldr r3, [r7, #12] + 8004008: 681b ldr r3, [r3, #0] + 800400a: 689b ldr r3, [r3, #8] + 800400c: f003 0302 and.w r3, r3, #2 + 8004010: 2b02 cmp r3, #2 + 8004012: d11b bne.n 800404c + 8004014: 68fb ldr r3, [r7, #12] + 8004016: 8edb ldrh r3, [r3, #54] ; 0x36 + 8004018: b29b uxth r3, r3 + 800401a: 2b00 cmp r3, #0 + 800401c: d016 beq.n 800404c + 800401e: 6afb ldr r3, [r7, #44] ; 0x2c + 8004020: 2b01 cmp r3, #1 + 8004022: d113 bne.n 800404c + { + hspi->Instance->DR = *((uint16_t *)hspi->pTxBuffPtr); + 8004024: 68fb ldr r3, [r7, #12] + 8004026: 6b1b ldr r3, [r3, #48] ; 0x30 + 8004028: 881a ldrh r2, [r3, #0] + 800402a: 68fb ldr r3, [r7, #12] + 800402c: 681b ldr r3, [r3, #0] + 800402e: 60da str r2, [r3, #12] + hspi->pTxBuffPtr += sizeof(uint16_t); + 8004030: 68fb ldr r3, [r7, #12] + 8004032: 6b1b ldr r3, [r3, #48] ; 0x30 + 8004034: 1c9a adds r2, r3, #2 + 8004036: 68fb ldr r3, [r7, #12] + 8004038: 631a str r2, [r3, #48] ; 0x30 + hspi->TxXferCount--; + 800403a: 68fb ldr r3, [r7, #12] + 800403c: 8edb ldrh r3, [r3, #54] ; 0x36 + 800403e: b29b uxth r3, r3 + 8004040: 3b01 subs r3, #1 + 8004042: b29a uxth r2, r3 + 8004044: 68fb ldr r3, [r7, #12] + 8004046: 86da strh r2, [r3, #54] ; 0x36 + /* Next Data is a reception (Rx). Tx not allowed */ + txallowed = 0U; + 8004048: 2300 movs r3, #0 + 800404a: 62fb str r3, [r7, #44] ; 0x2c + } +#endif /* USE_SPI_CRC */ + } + + /* Check RXNE flag */ + if ((__HAL_SPI_GET_FLAG(hspi, SPI_FLAG_RXNE)) && (hspi->RxXferCount > 0U)) + 800404c: 68fb ldr r3, [r7, #12] + 800404e: 681b ldr r3, [r3, #0] + 8004050: 689b ldr r3, [r3, #8] + 8004052: f003 0301 and.w r3, r3, #1 + 8004056: 2b01 cmp r3, #1 + 8004058: d119 bne.n 800408e + 800405a: 68fb ldr r3, [r7, #12] + 800405c: 8fdb ldrh r3, [r3, #62] ; 0x3e + 800405e: b29b uxth r3, r3 + 8004060: 2b00 cmp r3, #0 + 8004062: d014 beq.n 800408e + { + *((uint16_t *)hspi->pRxBuffPtr) = (uint16_t)hspi->Instance->DR; + 8004064: 68fb ldr r3, [r7, #12] + 8004066: 681b ldr r3, [r3, #0] + 8004068: 68da ldr r2, [r3, #12] + 800406a: 68fb ldr r3, [r7, #12] + 800406c: 6b9b ldr r3, [r3, #56] ; 0x38 + 800406e: b292 uxth r2, r2 + 8004070: 801a strh r2, [r3, #0] + hspi->pRxBuffPtr += sizeof(uint16_t); + 8004072: 68fb ldr r3, [r7, #12] + 8004074: 6b9b ldr r3, [r3, #56] ; 0x38 + 8004076: 1c9a adds r2, r3, #2 + 8004078: 68fb ldr r3, [r7, #12] + 800407a: 639a str r2, [r3, #56] ; 0x38 + hspi->RxXferCount--; + 800407c: 68fb ldr r3, [r7, #12] + 800407e: 8fdb ldrh r3, [r3, #62] ; 0x3e + 8004080: b29b uxth r3, r3 + 8004082: 3b01 subs r3, #1 + 8004084: b29a uxth r2, r3 + 8004086: 68fb ldr r3, [r7, #12] + 8004088: 87da strh r2, [r3, #62] ; 0x3e + /* Next Data is a Transmission (Tx). Tx is allowed */ + txallowed = 1U; + 800408a: 2301 movs r3, #1 + 800408c: 62fb str r3, [r7, #44] ; 0x2c + } + if (((HAL_GetTick() - tickstart) >= Timeout) && (Timeout != HAL_MAX_DELAY)) + 800408e: f7fd fd4b bl 8001b28 + 8004092: 4602 mov r2, r0 + 8004094: 6a7b ldr r3, [r7, #36] ; 0x24 + 8004096: 1ad3 subs r3, r2, r3 + 8004098: 6bba ldr r2, [r7, #56] ; 0x38 + 800409a: 429a cmp r2, r3 + 800409c: d807 bhi.n 80040ae + 800409e: 6bbb ldr r3, [r7, #56] ; 0x38 + 80040a0: f1b3 3fff cmp.w r3, #4294967295 ; 0xffffffff + 80040a4: d003 beq.n 80040ae + { + errorcode = HAL_TIMEOUT; + 80040a6: 2303 movs r3, #3 + 80040a8: f887 302b strb.w r3, [r7, #43] ; 0x2b + goto error; + 80040ac: e0a7 b.n 80041fe + while ((hspi->TxXferCount > 0U) || (hspi->RxXferCount > 0U)) + 80040ae: 68fb ldr r3, [r7, #12] + 80040b0: 8edb ldrh r3, [r3, #54] ; 0x36 + 80040b2: b29b uxth r3, r3 + 80040b4: 2b00 cmp r3, #0 + 80040b6: d1a6 bne.n 8004006 + 80040b8: 68fb ldr r3, [r7, #12] + 80040ba: 8fdb ldrh r3, [r3, #62] ; 0x3e + 80040bc: b29b uxth r3, r3 + 80040be: 2b00 cmp r3, #0 + 80040c0: d1a1 bne.n 8004006 + 80040c2: e07c b.n 80041be + } + } + /* Transmit and Receive data in 8 Bit mode */ + else + { + if ((hspi->Init.Mode == SPI_MODE_SLAVE) || (initial_TxXferCount == 0x01U)) + 80040c4: 68fb ldr r3, [r7, #12] + 80040c6: 685b ldr r3, [r3, #4] + 80040c8: 2b00 cmp r3, #0 + 80040ca: d002 beq.n 80040d2 + 80040cc: 8b7b ldrh r3, [r7, #26] + 80040ce: 2b01 cmp r3, #1 + 80040d0: d16b bne.n 80041aa + { + *((__IO uint8_t *)&hspi->Instance->DR) = (*hspi->pTxBuffPtr); + 80040d2: 68fb ldr r3, [r7, #12] + 80040d4: 6b1a ldr r2, [r3, #48] ; 0x30 + 80040d6: 68fb ldr r3, [r7, #12] + 80040d8: 681b ldr r3, [r3, #0] + 80040da: 330c adds r3, #12 + 80040dc: 7812 ldrb r2, [r2, #0] + 80040de: 701a strb r2, [r3, #0] + hspi->pTxBuffPtr += sizeof(uint8_t); + 80040e0: 68fb ldr r3, [r7, #12] + 80040e2: 6b1b ldr r3, [r3, #48] ; 0x30 + 80040e4: 1c5a adds r2, r3, #1 + 80040e6: 68fb ldr r3, [r7, #12] + 80040e8: 631a str r2, [r3, #48] ; 0x30 + hspi->TxXferCount--; + 80040ea: 68fb ldr r3, [r7, #12] + 80040ec: 8edb ldrh r3, [r3, #54] ; 0x36 + 80040ee: b29b uxth r3, r3 + 80040f0: 3b01 subs r3, #1 + 80040f2: b29a uxth r2, r3 + 80040f4: 68fb ldr r3, [r7, #12] + 80040f6: 86da strh r2, [r3, #54] ; 0x36 + } + while ((hspi->TxXferCount > 0U) || (hspi->RxXferCount > 0U)) + 80040f8: e057 b.n 80041aa + { + /* Check TXE flag */ + if ((__HAL_SPI_GET_FLAG(hspi, SPI_FLAG_TXE)) && (hspi->TxXferCount > 0U) && (txallowed == 1U)) + 80040fa: 68fb ldr r3, [r7, #12] + 80040fc: 681b ldr r3, [r3, #0] + 80040fe: 689b ldr r3, [r3, #8] + 8004100: f003 0302 and.w r3, r3, #2 + 8004104: 2b02 cmp r3, #2 + 8004106: d11c bne.n 8004142 + 8004108: 68fb ldr r3, [r7, #12] + 800410a: 8edb ldrh r3, [r3, #54] ; 0x36 + 800410c: b29b uxth r3, r3 + 800410e: 2b00 cmp r3, #0 + 8004110: d017 beq.n 8004142 + 8004112: 6afb ldr r3, [r7, #44] ; 0x2c + 8004114: 2b01 cmp r3, #1 + 8004116: d114 bne.n 8004142 + { + *(__IO uint8_t *)&hspi->Instance->DR = (*hspi->pTxBuffPtr); + 8004118: 68fb ldr r3, [r7, #12] + 800411a: 6b1a ldr r2, [r3, #48] ; 0x30 + 800411c: 68fb ldr r3, [r7, #12] + 800411e: 681b ldr r3, [r3, #0] + 8004120: 330c adds r3, #12 + 8004122: 7812 ldrb r2, [r2, #0] + 8004124: 701a strb r2, [r3, #0] + hspi->pTxBuffPtr++; + 8004126: 68fb ldr r3, [r7, #12] + 8004128: 6b1b ldr r3, [r3, #48] ; 0x30 + 800412a: 1c5a adds r2, r3, #1 + 800412c: 68fb ldr r3, [r7, #12] + 800412e: 631a str r2, [r3, #48] ; 0x30 + hspi->TxXferCount--; + 8004130: 68fb ldr r3, [r7, #12] + 8004132: 8edb ldrh r3, [r3, #54] ; 0x36 + 8004134: b29b uxth r3, r3 + 8004136: 3b01 subs r3, #1 + 8004138: b29a uxth r2, r3 + 800413a: 68fb ldr r3, [r7, #12] + 800413c: 86da strh r2, [r3, #54] ; 0x36 + /* Next Data is a reception (Rx). Tx not allowed */ + txallowed = 0U; + 800413e: 2300 movs r3, #0 + 8004140: 62fb str r3, [r7, #44] ; 0x2c + } +#endif /* USE_SPI_CRC */ + } + + /* Wait until RXNE flag is reset */ + if ((__HAL_SPI_GET_FLAG(hspi, SPI_FLAG_RXNE)) && (hspi->RxXferCount > 0U)) + 8004142: 68fb ldr r3, [r7, #12] + 8004144: 681b ldr r3, [r3, #0] + 8004146: 689b ldr r3, [r3, #8] + 8004148: f003 0301 and.w r3, r3, #1 + 800414c: 2b01 cmp r3, #1 + 800414e: d119 bne.n 8004184 + 8004150: 68fb ldr r3, [r7, #12] + 8004152: 8fdb ldrh r3, [r3, #62] ; 0x3e + 8004154: b29b uxth r3, r3 + 8004156: 2b00 cmp r3, #0 + 8004158: d014 beq.n 8004184 + { + (*(uint8_t *)hspi->pRxBuffPtr) = hspi->Instance->DR; + 800415a: 68fb ldr r3, [r7, #12] + 800415c: 681b ldr r3, [r3, #0] + 800415e: 68da ldr r2, [r3, #12] + 8004160: 68fb ldr r3, [r7, #12] + 8004162: 6b9b ldr r3, [r3, #56] ; 0x38 + 8004164: b2d2 uxtb r2, r2 + 8004166: 701a strb r2, [r3, #0] + hspi->pRxBuffPtr++; + 8004168: 68fb ldr r3, [r7, #12] + 800416a: 6b9b ldr r3, [r3, #56] ; 0x38 + 800416c: 1c5a adds r2, r3, #1 + 800416e: 68fb ldr r3, [r7, #12] + 8004170: 639a str r2, [r3, #56] ; 0x38 + hspi->RxXferCount--; + 8004172: 68fb ldr r3, [r7, #12] + 8004174: 8fdb ldrh r3, [r3, #62] ; 0x3e + 8004176: b29b uxth r3, r3 + 8004178: 3b01 subs r3, #1 + 800417a: b29a uxth r2, r3 + 800417c: 68fb ldr r3, [r7, #12] + 800417e: 87da strh r2, [r3, #62] ; 0x3e + /* Next Data is a Transmission (Tx). Tx is allowed */ + txallowed = 1U; + 8004180: 2301 movs r3, #1 + 8004182: 62fb str r3, [r7, #44] ; 0x2c + } + if ((((HAL_GetTick() - tickstart) >= Timeout) && ((Timeout != HAL_MAX_DELAY))) || (Timeout == 0U)) + 8004184: f7fd fcd0 bl 8001b28 + 8004188: 4602 mov r2, r0 + 800418a: 6a7b ldr r3, [r7, #36] ; 0x24 + 800418c: 1ad3 subs r3, r2, r3 + 800418e: 6bba ldr r2, [r7, #56] ; 0x38 + 8004190: 429a cmp r2, r3 + 8004192: d803 bhi.n 800419c + 8004194: 6bbb ldr r3, [r7, #56] ; 0x38 + 8004196: f1b3 3fff cmp.w r3, #4294967295 ; 0xffffffff + 800419a: d102 bne.n 80041a2 + 800419c: 6bbb ldr r3, [r7, #56] ; 0x38 + 800419e: 2b00 cmp r3, #0 + 80041a0: d103 bne.n 80041aa + { + errorcode = HAL_TIMEOUT; + 80041a2: 2303 movs r3, #3 + 80041a4: f887 302b strb.w r3, [r7, #43] ; 0x2b + goto error; + 80041a8: e029 b.n 80041fe + while ((hspi->TxXferCount > 0U) || (hspi->RxXferCount > 0U)) + 80041aa: 68fb ldr r3, [r7, #12] + 80041ac: 8edb ldrh r3, [r3, #54] ; 0x36 + 80041ae: b29b uxth r3, r3 + 80041b0: 2b00 cmp r3, #0 + 80041b2: d1a2 bne.n 80040fa + 80041b4: 68fb ldr r3, [r7, #12] + 80041b6: 8fdb ldrh r3, [r3, #62] ; 0x3e + 80041b8: b29b uxth r3, r3 + 80041ba: 2b00 cmp r3, #0 + 80041bc: d19d bne.n 80040fa + } + } +#endif /* USE_SPI_CRC */ + + /* Check the end of the transaction */ + if (SPI_EndRxTxTransaction(hspi, Timeout, tickstart) != HAL_OK) + 80041be: 6a7a ldr r2, [r7, #36] ; 0x24 + 80041c0: 6bb9 ldr r1, [r7, #56] ; 0x38 + 80041c2: 68f8 ldr r0, [r7, #12] + 80041c4: f000 f904 bl 80043d0 + 80041c8: 4603 mov r3, r0 + 80041ca: 2b00 cmp r3, #0 + 80041cc: d006 beq.n 80041dc + { + errorcode = HAL_ERROR; + 80041ce: 2301 movs r3, #1 + 80041d0: f887 302b strb.w r3, [r7, #43] ; 0x2b + hspi->ErrorCode = HAL_SPI_ERROR_FLAG; + 80041d4: 68fb ldr r3, [r7, #12] + 80041d6: 2220 movs r2, #32 + 80041d8: 655a str r2, [r3, #84] ; 0x54 + goto error; + 80041da: e010 b.n 80041fe + } + + /* Clear overrun flag in 2 Lines communication mode because received is not read */ + if (hspi->Init.Direction == SPI_DIRECTION_2LINES) + 80041dc: 68fb ldr r3, [r7, #12] + 80041de: 689b ldr r3, [r3, #8] + 80041e0: 2b00 cmp r3, #0 + 80041e2: d10b bne.n 80041fc + { + __HAL_SPI_CLEAR_OVRFLAG(hspi); + 80041e4: 2300 movs r3, #0 + 80041e6: 617b str r3, [r7, #20] + 80041e8: 68fb ldr r3, [r7, #12] + 80041ea: 681b ldr r3, [r3, #0] + 80041ec: 68db ldr r3, [r3, #12] + 80041ee: 617b str r3, [r7, #20] + 80041f0: 68fb ldr r3, [r7, #12] + 80041f2: 681b ldr r3, [r3, #0] + 80041f4: 689b ldr r3, [r3, #8] + 80041f6: 617b str r3, [r7, #20] + 80041f8: 697b ldr r3, [r7, #20] + 80041fa: e000 b.n 80041fe + } + +error : + 80041fc: bf00 nop + hspi->State = HAL_SPI_STATE_READY; + 80041fe: 68fb ldr r3, [r7, #12] + 8004200: 2201 movs r2, #1 + 8004202: f883 2051 strb.w r2, [r3, #81] ; 0x51 + __HAL_UNLOCK(hspi); + 8004206: 68fb ldr r3, [r7, #12] + 8004208: 2200 movs r2, #0 + 800420a: f883 2050 strb.w r2, [r3, #80] ; 0x50 + return errorcode; + 800420e: f897 302b ldrb.w r3, [r7, #43] ; 0x2b +} + 8004212: 4618 mov r0, r3 + 8004214: 3730 adds r7, #48 ; 0x30 + 8004216: 46bd mov sp, r7 + 8004218: bd80 pop {r7, pc} + ... + +0800421c : + * @param Tickstart tick start value + * @retval HAL status + */ +static HAL_StatusTypeDef SPI_WaitFlagStateUntilTimeout(SPI_HandleTypeDef *hspi, uint32_t Flag, FlagStatus State, + uint32_t Timeout, uint32_t Tickstart) +{ + 800421c: b580 push {r7, lr} + 800421e: b088 sub sp, #32 + 8004220: af00 add r7, sp, #0 + 8004222: 60f8 str r0, [r7, #12] + 8004224: 60b9 str r1, [r7, #8] + 8004226: 603b str r3, [r7, #0] + 8004228: 4613 mov r3, r2 + 800422a: 71fb strb r3, [r7, #7] + __IO uint32_t count; + uint32_t tmp_timeout; + uint32_t tmp_tickstart; + + /* Adjust Timeout value in case of end of transfer */ + tmp_timeout = Timeout - (HAL_GetTick() - Tickstart); + 800422c: f7fd fc7c bl 8001b28 + 8004230: 4602 mov r2, r0 + 8004232: 6abb ldr r3, [r7, #40] ; 0x28 + 8004234: 1a9b subs r3, r3, r2 + 8004236: 683a ldr r2, [r7, #0] + 8004238: 4413 add r3, r2 + 800423a: 61fb str r3, [r7, #28] + tmp_tickstart = HAL_GetTick(); + 800423c: f7fd fc74 bl 8001b28 + 8004240: 61b8 str r0, [r7, #24] + + /* Calculate Timeout based on a software loop to avoid blocking issue if Systick is disabled */ + count = tmp_timeout * ((SystemCoreClock * 32U) >> 20U); + 8004242: 4b39 ldr r3, [pc, #228] ; (8004328 ) + 8004244: 681b ldr r3, [r3, #0] + 8004246: 015b lsls r3, r3, #5 + 8004248: 0d1b lsrs r3, r3, #20 + 800424a: 69fa ldr r2, [r7, #28] + 800424c: fb02 f303 mul.w r3, r2, r3 + 8004250: 617b str r3, [r7, #20] + + while ((__HAL_SPI_GET_FLAG(hspi, Flag) ? SET : RESET) != State) + 8004252: e054 b.n 80042fe + { + if (Timeout != HAL_MAX_DELAY) + 8004254: 683b ldr r3, [r7, #0] + 8004256: f1b3 3fff cmp.w r3, #4294967295 ; 0xffffffff + 800425a: d050 beq.n 80042fe + { + if (((HAL_GetTick() - tmp_tickstart) >= tmp_timeout) || (tmp_timeout == 0U)) + 800425c: f7fd fc64 bl 8001b28 + 8004260: 4602 mov r2, r0 + 8004262: 69bb ldr r3, [r7, #24] + 8004264: 1ad3 subs r3, r2, r3 + 8004266: 69fa ldr r2, [r7, #28] + 8004268: 429a cmp r2, r3 + 800426a: d902 bls.n 8004272 + 800426c: 69fb ldr r3, [r7, #28] + 800426e: 2b00 cmp r3, #0 + 8004270: d13d bne.n 80042ee + /* Disable the SPI and reset the CRC: the CRC value should be cleared + on both master and slave sides in order to resynchronize the master + and slave for their respective CRC calculation */ + + /* Disable TXE, RXNE and ERR interrupts for the interrupt process */ + __HAL_SPI_DISABLE_IT(hspi, (SPI_IT_TXE | SPI_IT_RXNE | SPI_IT_ERR)); + 8004272: 68fb ldr r3, [r7, #12] + 8004274: 681b ldr r3, [r3, #0] + 8004276: 685a ldr r2, [r3, #4] + 8004278: 68fb ldr r3, [r7, #12] + 800427a: 681b ldr r3, [r3, #0] + 800427c: f022 02e0 bic.w r2, r2, #224 ; 0xe0 + 8004280: 605a str r2, [r3, #4] + + if ((hspi->Init.Mode == SPI_MODE_MASTER) && ((hspi->Init.Direction == SPI_DIRECTION_1LINE) + 8004282: 68fb ldr r3, [r7, #12] + 8004284: 685b ldr r3, [r3, #4] + 8004286: f5b3 7f82 cmp.w r3, #260 ; 0x104 + 800428a: d111 bne.n 80042b0 + 800428c: 68fb ldr r3, [r7, #12] + 800428e: 689b ldr r3, [r3, #8] + 8004290: f5b3 4f00 cmp.w r3, #32768 ; 0x8000 + 8004294: d004 beq.n 80042a0 + || (hspi->Init.Direction == SPI_DIRECTION_2LINES_RXONLY))) + 8004296: 68fb ldr r3, [r7, #12] + 8004298: 689b ldr r3, [r3, #8] + 800429a: f5b3 6f80 cmp.w r3, #1024 ; 0x400 + 800429e: d107 bne.n 80042b0 + { + /* Disable SPI peripheral */ + __HAL_SPI_DISABLE(hspi); + 80042a0: 68fb ldr r3, [r7, #12] + 80042a2: 681b ldr r3, [r3, #0] + 80042a4: 681a ldr r2, [r3, #0] + 80042a6: 68fb ldr r3, [r7, #12] + 80042a8: 681b ldr r3, [r3, #0] + 80042aa: f022 0240 bic.w r2, r2, #64 ; 0x40 + 80042ae: 601a str r2, [r3, #0] + } + + /* Reset CRC Calculation */ + if (hspi->Init.CRCCalculation == SPI_CRCCALCULATION_ENABLE) + 80042b0: 68fb ldr r3, [r7, #12] + 80042b2: 6a9b ldr r3, [r3, #40] ; 0x28 + 80042b4: f5b3 5f00 cmp.w r3, #8192 ; 0x2000 + 80042b8: d10f bne.n 80042da + { + SPI_RESET_CRC(hspi); + 80042ba: 68fb ldr r3, [r7, #12] + 80042bc: 681b ldr r3, [r3, #0] + 80042be: 681a ldr r2, [r3, #0] + 80042c0: 68fb ldr r3, [r7, #12] + 80042c2: 681b ldr r3, [r3, #0] + 80042c4: f422 5200 bic.w r2, r2, #8192 ; 0x2000 + 80042c8: 601a str r2, [r3, #0] + 80042ca: 68fb ldr r3, [r7, #12] + 80042cc: 681b ldr r3, [r3, #0] + 80042ce: 681a ldr r2, [r3, #0] + 80042d0: 68fb ldr r3, [r7, #12] + 80042d2: 681b ldr r3, [r3, #0] + 80042d4: f442 5200 orr.w r2, r2, #8192 ; 0x2000 + 80042d8: 601a str r2, [r3, #0] + } + + hspi->State = HAL_SPI_STATE_READY; + 80042da: 68fb ldr r3, [r7, #12] + 80042dc: 2201 movs r2, #1 + 80042de: f883 2051 strb.w r2, [r3, #81] ; 0x51 + + /* Process Unlocked */ + __HAL_UNLOCK(hspi); + 80042e2: 68fb ldr r3, [r7, #12] + 80042e4: 2200 movs r2, #0 + 80042e6: f883 2050 strb.w r2, [r3, #80] ; 0x50 + + return HAL_TIMEOUT; + 80042ea: 2303 movs r3, #3 + 80042ec: e017 b.n 800431e + } + /* If Systick is disabled or not incremented, deactivate timeout to go in disable loop procedure */ + if(count == 0U) + 80042ee: 697b ldr r3, [r7, #20] + 80042f0: 2b00 cmp r3, #0 + 80042f2: d101 bne.n 80042f8 + { + tmp_timeout = 0U; + 80042f4: 2300 movs r3, #0 + 80042f6: 61fb str r3, [r7, #28] + } + count--; + 80042f8: 697b ldr r3, [r7, #20] + 80042fa: 3b01 subs r3, #1 + 80042fc: 617b str r3, [r7, #20] + while ((__HAL_SPI_GET_FLAG(hspi, Flag) ? SET : RESET) != State) + 80042fe: 68fb ldr r3, [r7, #12] + 8004300: 681b ldr r3, [r3, #0] + 8004302: 689a ldr r2, [r3, #8] + 8004304: 68bb ldr r3, [r7, #8] + 8004306: 4013 ands r3, r2 + 8004308: 68ba ldr r2, [r7, #8] + 800430a: 429a cmp r2, r3 + 800430c: bf0c ite eq + 800430e: 2301 moveq r3, #1 + 8004310: 2300 movne r3, #0 + 8004312: b2db uxtb r3, r3 + 8004314: 461a mov r2, r3 + 8004316: 79fb ldrb r3, [r7, #7] + 8004318: 429a cmp r2, r3 + 800431a: d19b bne.n 8004254 + } + } + + return HAL_OK; + 800431c: 2300 movs r3, #0 +} + 800431e: 4618 mov r0, r3 + 8004320: 3720 adds r7, #32 + 8004322: 46bd mov sp, r7 + 8004324: bd80 pop {r7, pc} + 8004326: bf00 nop + 8004328: 20000000 .word 0x20000000 + +0800432c : + * @param Timeout Timeout duration + * @param Tickstart tick start value + * @retval HAL status + */ +static HAL_StatusTypeDef SPI_EndRxTransaction(SPI_HandleTypeDef *hspi, uint32_t Timeout, uint32_t Tickstart) +{ + 800432c: b580 push {r7, lr} + 800432e: b086 sub sp, #24 + 8004330: af02 add r7, sp, #8 + 8004332: 60f8 str r0, [r7, #12] + 8004334: 60b9 str r1, [r7, #8] + 8004336: 607a str r2, [r7, #4] + if ((hspi->Init.Mode == SPI_MODE_MASTER) && ((hspi->Init.Direction == SPI_DIRECTION_1LINE) + 8004338: 68fb ldr r3, [r7, #12] + 800433a: 685b ldr r3, [r3, #4] + 800433c: f5b3 7f82 cmp.w r3, #260 ; 0x104 + 8004340: d111 bne.n 8004366 + 8004342: 68fb ldr r3, [r7, #12] + 8004344: 689b ldr r3, [r3, #8] + 8004346: f5b3 4f00 cmp.w r3, #32768 ; 0x8000 + 800434a: d004 beq.n 8004356 + || (hspi->Init.Direction == SPI_DIRECTION_2LINES_RXONLY))) + 800434c: 68fb ldr r3, [r7, #12] + 800434e: 689b ldr r3, [r3, #8] + 8004350: f5b3 6f80 cmp.w r3, #1024 ; 0x400 + 8004354: d107 bne.n 8004366 + { + /* Disable SPI peripheral */ + __HAL_SPI_DISABLE(hspi); + 8004356: 68fb ldr r3, [r7, #12] + 8004358: 681b ldr r3, [r3, #0] + 800435a: 681a ldr r2, [r3, #0] + 800435c: 68fb ldr r3, [r7, #12] + 800435e: 681b ldr r3, [r3, #0] + 8004360: f022 0240 bic.w r2, r2, #64 ; 0x40 + 8004364: 601a str r2, [r3, #0] + } + + if ((hspi->Init.Mode == SPI_MODE_MASTER) && (hspi->Init.Direction == SPI_DIRECTION_2LINES_RXONLY)) + 8004366: 68fb ldr r3, [r7, #12] + 8004368: 685b ldr r3, [r3, #4] + 800436a: f5b3 7f82 cmp.w r3, #260 ; 0x104 + 800436e: d117 bne.n 80043a0 + 8004370: 68fb ldr r3, [r7, #12] + 8004372: 689b ldr r3, [r3, #8] + 8004374: f5b3 6f80 cmp.w r3, #1024 ; 0x400 + 8004378: d112 bne.n 80043a0 + { + /* Wait the RXNE reset */ + if (SPI_WaitFlagStateUntilTimeout(hspi, SPI_FLAG_RXNE, RESET, Timeout, Tickstart) != HAL_OK) + 800437a: 687b ldr r3, [r7, #4] + 800437c: 9300 str r3, [sp, #0] + 800437e: 68bb ldr r3, [r7, #8] + 8004380: 2200 movs r2, #0 + 8004382: 2101 movs r1, #1 + 8004384: 68f8 ldr r0, [r7, #12] + 8004386: f7ff ff49 bl 800421c + 800438a: 4603 mov r3, r0 + 800438c: 2b00 cmp r3, #0 + 800438e: d01a beq.n 80043c6 + { + SET_BIT(hspi->ErrorCode, HAL_SPI_ERROR_FLAG); + 8004390: 68fb ldr r3, [r7, #12] + 8004392: 6d5b ldr r3, [r3, #84] ; 0x54 + 8004394: f043 0220 orr.w r2, r3, #32 + 8004398: 68fb ldr r3, [r7, #12] + 800439a: 655a str r2, [r3, #84] ; 0x54 + return HAL_TIMEOUT; + 800439c: 2303 movs r3, #3 + 800439e: e013 b.n 80043c8 + } + } + else + { + /* Control the BSY flag */ + if (SPI_WaitFlagStateUntilTimeout(hspi, SPI_FLAG_BSY, RESET, Timeout, Tickstart) != HAL_OK) + 80043a0: 687b ldr r3, [r7, #4] + 80043a2: 9300 str r3, [sp, #0] + 80043a4: 68bb ldr r3, [r7, #8] + 80043a6: 2200 movs r2, #0 + 80043a8: 2180 movs r1, #128 ; 0x80 + 80043aa: 68f8 ldr r0, [r7, #12] + 80043ac: f7ff ff36 bl 800421c + 80043b0: 4603 mov r3, r0 + 80043b2: 2b00 cmp r3, #0 + 80043b4: d007 beq.n 80043c6 + { + SET_BIT(hspi->ErrorCode, HAL_SPI_ERROR_FLAG); + 80043b6: 68fb ldr r3, [r7, #12] + 80043b8: 6d5b ldr r3, [r3, #84] ; 0x54 + 80043ba: f043 0220 orr.w r2, r3, #32 + 80043be: 68fb ldr r3, [r7, #12] + 80043c0: 655a str r2, [r3, #84] ; 0x54 + return HAL_TIMEOUT; + 80043c2: 2303 movs r3, #3 + 80043c4: e000 b.n 80043c8 + } + } + return HAL_OK; + 80043c6: 2300 movs r3, #0 +} + 80043c8: 4618 mov r0, r3 + 80043ca: 3710 adds r7, #16 + 80043cc: 46bd mov sp, r7 + 80043ce: bd80 pop {r7, pc} + +080043d0 : + * @param Timeout Timeout duration + * @param Tickstart tick start value + * @retval HAL status + */ +static HAL_StatusTypeDef SPI_EndRxTxTransaction(SPI_HandleTypeDef *hspi, uint32_t Timeout, uint32_t Tickstart) +{ + 80043d0: b580 push {r7, lr} + 80043d2: b086 sub sp, #24 + 80043d4: af02 add r7, sp, #8 + 80043d6: 60f8 str r0, [r7, #12] + 80043d8: 60b9 str r1, [r7, #8] + 80043da: 607a str r2, [r7, #4] + /* Control the BSY flag */ + if (SPI_WaitFlagStateUntilTimeout(hspi, SPI_FLAG_BSY, RESET, Timeout, Tickstart) != HAL_OK) + 80043dc: 687b ldr r3, [r7, #4] + 80043de: 9300 str r3, [sp, #0] + 80043e0: 68bb ldr r3, [r7, #8] + 80043e2: 2200 movs r2, #0 + 80043e4: 2180 movs r1, #128 ; 0x80 + 80043e6: 68f8 ldr r0, [r7, #12] + 80043e8: f7ff ff18 bl 800421c + 80043ec: 4603 mov r3, r0 + 80043ee: 2b00 cmp r3, #0 + 80043f0: d007 beq.n 8004402 + { + SET_BIT(hspi->ErrorCode, HAL_SPI_ERROR_FLAG); + 80043f2: 68fb ldr r3, [r7, #12] + 80043f4: 6d5b ldr r3, [r3, #84] ; 0x54 + 80043f6: f043 0220 orr.w r2, r3, #32 + 80043fa: 68fb ldr r3, [r7, #12] + 80043fc: 655a str r2, [r3, #84] ; 0x54 + return HAL_TIMEOUT; + 80043fe: 2303 movs r3, #3 + 8004400: e000 b.n 8004404 + } + return HAL_OK; + 8004402: 2300 movs r3, #0 +} + 8004404: 4618 mov r0, r3 + 8004406: 3710 adds r7, #16 + 8004408: 46bd mov sp, r7 + 800440a: bd80 pop {r7, pc} + +0800440c : * @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) { - 80038d0: b580 push {r7, lr} - 80038d2: b084 sub sp, #16 - 80038d4: af00 add r7, sp, #0 - 80038d6: 60f8 str r0, [r7, #12] - 80038d8: 60b9 str r1, [r7, #8] - 80038da: 607a str r2, [r7, #4] + 800440c: b580 push {r7, lr} + 800440e: b084 sub sp, #16 + 8004410: af00 add r7, sp, #0 + 8004412: 60f8 str r0, [r7, #12] + 8004414: 60b9 str r1, [r7, #8] + 8004416: 607a str r2, [r7, #4] /* Check the SRAM handle parameter */ if ((hsram == NULL) || (hsram->Init.BurstAccessMode == FSMC_BURST_ACCESS_MODE_ENABLE)) - 80038dc: 68fb ldr r3, [r7, #12] - 80038de: 2b00 cmp r3, #0 - 80038e0: d004 beq.n 80038ec - 80038e2: 68fb ldr r3, [r7, #12] - 80038e4: 699b ldr r3, [r3, #24] - 80038e6: f5b3 7f80 cmp.w r3, #256 ; 0x100 - 80038ea: d101 bne.n 80038f0 + 8004418: 68fb ldr r3, [r7, #12] + 800441a: 2b00 cmp r3, #0 + 800441c: d004 beq.n 8004428 + 800441e: 68fb ldr r3, [r7, #12] + 8004420: 699b ldr r3, [r3, #24] + 8004422: f5b3 7f80 cmp.w r3, #256 ; 0x100 + 8004426: d101 bne.n 800442c { return HAL_ERROR; - 80038ec: 2301 movs r3, #1 - 80038ee: e038 b.n 8003962 + 8004428: 2301 movs r3, #1 + 800442a: e038 b.n 800449e } if (hsram->State == HAL_SRAM_STATE_RESET) - 80038f0: 68fb ldr r3, [r7, #12] - 80038f2: f893 3041 ldrb.w r3, [r3, #65] ; 0x41 - 80038f6: b2db uxtb r3, r3 - 80038f8: 2b00 cmp r3, #0 - 80038fa: d106 bne.n 800390a + 800442c: 68fb ldr r3, [r7, #12] + 800442e: f893 3041 ldrb.w r3, [r3, #65] ; 0x41 + 8004432: b2db uxtb r3, r3 + 8004434: 2b00 cmp r3, #0 + 8004436: d106 bne.n 8004446 { /* Allocate lock resource and initialize it */ hsram->Lock = HAL_UNLOCKED; - 80038fc: 68fb ldr r3, [r7, #12] - 80038fe: 2200 movs r2, #0 - 8003900: f883 2040 strb.w r2, [r3, #64] ; 0x40 + 8004438: 68fb ldr r3, [r7, #12] + 800443a: 2200 movs r2, #0 + 800443c: 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); - 8003904: 68f8 ldr r0, [r7, #12] - 8003906: f7fd ff5d bl 80017c4 + 8004440: 68f8 ldr r0, [r7, #12] + 8004442: f7fd f9f1 bl 8001828 #endif /* USE_HAL_SRAM_REGISTER_CALLBACKS */ } /* Initialize SRAM control Interface */ (void)FSMC_NORSRAM_Init(hsram->Instance, &(hsram->Init)); - 800390a: 68fb ldr r3, [r7, #12] - 800390c: 681a ldr r2, [r3, #0] - 800390e: 68fb ldr r3, [r7, #12] - 8003910: 3308 adds r3, #8 - 8003912: 4619 mov r1, r3 - 8003914: 4610 mov r0, r2 - 8003916: f000 fb29 bl 8003f6c + 8004446: 68fb ldr r3, [r7, #12] + 8004448: 681a ldr r2, [r3, #0] + 800444a: 68fb ldr r3, [r7, #12] + 800444c: 3308 adds r3, #8 + 800444e: 4619 mov r1, r3 + 8004450: 4610 mov r0, r2 + 8004452: f000 fac9 bl 80049e8 /* Initialize SRAM timing Interface */ (void)FSMC_NORSRAM_Timing_Init(hsram->Instance, Timing, hsram->Init.NSBank); - 800391a: 68fb ldr r3, [r7, #12] - 800391c: 6818 ldr r0, [r3, #0] - 800391e: 68fb ldr r3, [r7, #12] - 8003920: 689b ldr r3, [r3, #8] - 8003922: 461a mov r2, r3 - 8003924: 68b9 ldr r1, [r7, #8] - 8003926: f000 fb8b bl 8004040 + 8004456: 68fb ldr r3, [r7, #12] + 8004458: 6818 ldr r0, [r3, #0] + 800445a: 68fb ldr r3, [r7, #12] + 800445c: 689b ldr r3, [r3, #8] + 800445e: 461a mov r2, r3 + 8004460: 68b9 ldr r1, [r7, #8] + 8004462: f000 fb2b bl 8004abc /* Initialize SRAM extended mode timing Interface */ (void)FSMC_NORSRAM_Extended_Timing_Init(hsram->Extended, ExtTiming, hsram->Init.NSBank, - 800392a: 68fb ldr r3, [r7, #12] - 800392c: 6858 ldr r0, [r3, #4] - 800392e: 68fb ldr r3, [r7, #12] - 8003930: 689a ldr r2, [r3, #8] - 8003932: 68fb ldr r3, [r7, #12] - 8003934: 6b1b ldr r3, [r3, #48] ; 0x30 - 8003936: 6879 ldr r1, [r7, #4] - 8003938: f000 fbb6 bl 80040a8 + 8004466: 68fb ldr r3, [r7, #12] + 8004468: 6858 ldr r0, [r3, #4] + 800446a: 68fb ldr r3, [r7, #12] + 800446c: 689a ldr r2, [r3, #8] + 800446e: 68fb ldr r3, [r7, #12] + 8004470: 6b1b ldr r3, [r3, #48] ; 0x30 + 8004472: 6879 ldr r1, [r7, #4] + 8004474: f000 fb56 bl 8004b24 hsram->Init.ExtendedMode); /* Enable the NORSRAM device */ __FSMC_NORSRAM_ENABLE(hsram->Instance, hsram->Init.NSBank); - 800393c: 68fb ldr r3, [r7, #12] - 800393e: 681b ldr r3, [r3, #0] - 8003940: 68fa ldr r2, [r7, #12] - 8003942: 6892 ldr r2, [r2, #8] - 8003944: f853 1022 ldr.w r1, [r3, r2, lsl #2] - 8003948: 68fb ldr r3, [r7, #12] - 800394a: 681b ldr r3, [r3, #0] - 800394c: 68fa ldr r2, [r7, #12] - 800394e: 6892 ldr r2, [r2, #8] - 8003950: f041 0101 orr.w r1, r1, #1 - 8003954: f843 1022 str.w r1, [r3, r2, lsl #2] + 8004478: 68fb ldr r3, [r7, #12] + 800447a: 681b ldr r3, [r3, #0] + 800447c: 68fa ldr r2, [r7, #12] + 800447e: 6892 ldr r2, [r2, #8] + 8004480: f853 1022 ldr.w r1, [r3, r2, lsl #2] + 8004484: 68fb ldr r3, [r7, #12] + 8004486: 681b ldr r3, [r3, #0] + 8004488: 68fa ldr r2, [r7, #12] + 800448a: 6892 ldr r2, [r2, #8] + 800448c: f041 0101 orr.w r1, r1, #1 + 8004490: f843 1022 str.w r1, [r3, r2, lsl #2] /* Initialize the SRAM controller state */ hsram->State = HAL_SRAM_STATE_READY; - 8003958: 68fb ldr r3, [r7, #12] - 800395a: 2201 movs r2, #1 - 800395c: f883 2041 strb.w r2, [r3, #65] ; 0x41 + 8004494: 68fb ldr r3, [r7, #12] + 8004496: 2201 movs r2, #1 + 8004498: f883 2041 strb.w r2, [r3, #65] ; 0x41 return HAL_OK; - 8003960: 2300 movs r3, #0 + 800449c: 2300 movs r3, #0 } - 8003962: 4618 mov r0, r3 - 8003964: 3710 adds r7, #16 - 8003966: 46bd mov sp, r7 - 8003968: bd80 pop {r7, pc} + 800449e: 4618 mov r0, r3 + 80044a0: 3710 adds r7, #16 + 80044a2: 46bd mov sp, r7 + 80044a4: bd80 pop {r7, pc} -0800396a : +080044a6 : * Ex: call @ref HAL_TIM_Base_DeInit() before HAL_TIM_Base_Init() * @param htim TIM Base handle * @retval HAL status */ HAL_StatusTypeDef HAL_TIM_Base_Init(TIM_HandleTypeDef *htim) { - 800396a: b580 push {r7, lr} - 800396c: b082 sub sp, #8 - 800396e: af00 add r7, sp, #0 - 8003970: 6078 str r0, [r7, #4] + 80044a6: b580 push {r7, lr} + 80044a8: b082 sub sp, #8 + 80044aa: af00 add r7, sp, #0 + 80044ac: 6078 str r0, [r7, #4] /* Check the TIM handle allocation */ if (htim == NULL) - 8003972: 687b ldr r3, [r7, #4] - 8003974: 2b00 cmp r3, #0 - 8003976: d101 bne.n 800397c + 80044ae: 687b ldr r3, [r7, #4] + 80044b0: 2b00 cmp r3, #0 + 80044b2: d101 bne.n 80044b8 { return HAL_ERROR; - 8003978: 2301 movs r3, #1 - 800397a: e041 b.n 8003a00 + 80044b4: 2301 movs r3, #1 + 80044b6: e041 b.n 800453c assert_param(IS_TIM_INSTANCE(htim->Instance)); assert_param(IS_TIM_COUNTER_MODE(htim->Init.CounterMode)); assert_param(IS_TIM_CLOCKDIVISION_DIV(htim->Init.ClockDivision)); assert_param(IS_TIM_AUTORELOAD_PRELOAD(htim->Init.AutoReloadPreload)); if (htim->State == HAL_TIM_STATE_RESET) - 800397c: 687b ldr r3, [r7, #4] - 800397e: f893 303d ldrb.w r3, [r3, #61] ; 0x3d - 8003982: b2db uxtb r3, r3 - 8003984: 2b00 cmp r3, #0 - 8003986: d106 bne.n 8003996 + 80044b8: 687b ldr r3, [r7, #4] + 80044ba: f893 303d ldrb.w r3, [r3, #61] ; 0x3d + 80044be: b2db uxtb r3, r3 + 80044c0: 2b00 cmp r3, #0 + 80044c2: d106 bne.n 80044d2 { /* Allocate lock resource and initialize it */ htim->Lock = HAL_UNLOCKED; - 8003988: 687b ldr r3, [r7, #4] - 800398a: 2200 movs r2, #0 - 800398c: f883 203c strb.w r2, [r3, #60] ; 0x3c + 80044c4: 687b ldr r3, [r7, #4] + 80044c6: 2200 movs r2, #0 + 80044c8: f883 203c strb.w r2, [r3, #60] ; 0x3c } /* Init the low level hardware : GPIO, CLOCK, NVIC */ htim->Base_MspInitCallback(htim); #else /* Init the low level hardware : GPIO, CLOCK, NVIC */ HAL_TIM_Base_MspInit(htim); - 8003990: 6878 ldr r0, [r7, #4] - 8003992: f7fd fe9d bl 80016d0 + 80044cc: 6878 ldr r0, [r7, #4] + 80044ce: f7fd f931 bl 8001734 #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ } /* Set the TIM state */ htim->State = HAL_TIM_STATE_BUSY; - 8003996: 687b ldr r3, [r7, #4] - 8003998: 2202 movs r2, #2 - 800399a: f883 203d strb.w r2, [r3, #61] ; 0x3d + 80044d2: 687b ldr r3, [r7, #4] + 80044d4: 2202 movs r2, #2 + 80044d6: f883 203d strb.w r2, [r3, #61] ; 0x3d /* Set the Time Base configuration */ TIM_Base_SetConfig(htim->Instance, &htim->Init); - 800399e: 687b ldr r3, [r7, #4] - 80039a0: 681a ldr r2, [r3, #0] - 80039a2: 687b ldr r3, [r7, #4] - 80039a4: 3304 adds r3, #4 - 80039a6: 4619 mov r1, r3 - 80039a8: 4610 mov r0, r2 - 80039aa: f000 f9e7 bl 8003d7c + 80044da: 687b ldr r3, [r7, #4] + 80044dc: 681a ldr r2, [r3, #0] + 80044de: 687b ldr r3, [r7, #4] + 80044e0: 3304 adds r3, #4 + 80044e2: 4619 mov r1, r3 + 80044e4: 4610 mov r0, r2 + 80044e6: f000 f987 bl 80047f8 /* Initialize the DMA burst operation state */ htim->DMABurstState = HAL_DMA_BURST_STATE_READY; - 80039ae: 687b ldr r3, [r7, #4] - 80039b0: 2201 movs r2, #1 - 80039b2: f883 2046 strb.w r2, [r3, #70] ; 0x46 + 80044ea: 687b ldr r3, [r7, #4] + 80044ec: 2201 movs r2, #1 + 80044ee: f883 2046 strb.w r2, [r3, #70] ; 0x46 /* Initialize the TIM channels state */ TIM_CHANNEL_STATE_SET_ALL(htim, HAL_TIM_CHANNEL_STATE_READY); - 80039b6: 687b ldr r3, [r7, #4] - 80039b8: 2201 movs r2, #1 - 80039ba: f883 203e strb.w r2, [r3, #62] ; 0x3e - 80039be: 687b ldr r3, [r7, #4] - 80039c0: 2201 movs r2, #1 - 80039c2: f883 203f strb.w r2, [r3, #63] ; 0x3f - 80039c6: 687b ldr r3, [r7, #4] - 80039c8: 2201 movs r2, #1 - 80039ca: f883 2040 strb.w r2, [r3, #64] ; 0x40 - 80039ce: 687b ldr r3, [r7, #4] - 80039d0: 2201 movs r2, #1 - 80039d2: f883 2041 strb.w r2, [r3, #65] ; 0x41 + 80044f2: 687b ldr r3, [r7, #4] + 80044f4: 2201 movs r2, #1 + 80044f6: f883 203e strb.w r2, [r3, #62] ; 0x3e + 80044fa: 687b ldr r3, [r7, #4] + 80044fc: 2201 movs r2, #1 + 80044fe: f883 203f strb.w r2, [r3, #63] ; 0x3f + 8004502: 687b ldr r3, [r7, #4] + 8004504: 2201 movs r2, #1 + 8004506: f883 2040 strb.w r2, [r3, #64] ; 0x40 + 800450a: 687b ldr r3, [r7, #4] + 800450c: 2201 movs r2, #1 + 800450e: f883 2041 strb.w r2, [r3, #65] ; 0x41 TIM_CHANNEL_N_STATE_SET_ALL(htim, HAL_TIM_CHANNEL_STATE_READY); - 80039d6: 687b ldr r3, [r7, #4] - 80039d8: 2201 movs r2, #1 - 80039da: f883 2042 strb.w r2, [r3, #66] ; 0x42 - 80039de: 687b ldr r3, [r7, #4] - 80039e0: 2201 movs r2, #1 - 80039e2: f883 2043 strb.w r2, [r3, #67] ; 0x43 - 80039e6: 687b ldr r3, [r7, #4] - 80039e8: 2201 movs r2, #1 - 80039ea: f883 2044 strb.w r2, [r3, #68] ; 0x44 - 80039ee: 687b ldr r3, [r7, #4] - 80039f0: 2201 movs r2, #1 - 80039f2: f883 2045 strb.w r2, [r3, #69] ; 0x45 + 8004512: 687b ldr r3, [r7, #4] + 8004514: 2201 movs r2, #1 + 8004516: f883 2042 strb.w r2, [r3, #66] ; 0x42 + 800451a: 687b ldr r3, [r7, #4] + 800451c: 2201 movs r2, #1 + 800451e: f883 2043 strb.w r2, [r3, #67] ; 0x43 + 8004522: 687b ldr r3, [r7, #4] + 8004524: 2201 movs r2, #1 + 8004526: f883 2044 strb.w r2, [r3, #68] ; 0x44 + 800452a: 687b ldr r3, [r7, #4] + 800452c: 2201 movs r2, #1 + 800452e: f883 2045 strb.w r2, [r3, #69] ; 0x45 /* Initialize the TIM state*/ htim->State = HAL_TIM_STATE_READY; - 80039f6: 687b ldr r3, [r7, #4] - 80039f8: 2201 movs r2, #1 - 80039fa: f883 203d strb.w r2, [r3, #61] ; 0x3d + 8004532: 687b ldr r3, [r7, #4] + 8004534: 2201 movs r2, #1 + 8004536: f883 203d strb.w r2, [r3, #61] ; 0x3d return HAL_OK; - 80039fe: 2300 movs r3, #0 + 800453a: 2300 movs r3, #0 } - 8003a00: 4618 mov r0, r3 - 8003a02: 3708 adds r7, #8 - 8003a04: 46bd mov sp, r7 - 8003a06: bd80 pop {r7, pc} + 800453c: 4618 mov r0, r3 + 800453e: 3708 adds r7, #8 + 8004540: 46bd mov sp, r7 + 8004542: bd80 pop {r7, pc} -08003a08 : - * @brief Starts the TIM Base generation in interrupt mode. - * @param htim TIM Base handle - * @retval HAL status - */ -HAL_StatusTypeDef HAL_TIM_Base_Start_IT(TIM_HandleTypeDef *htim) -{ - 8003a08: b480 push {r7} - 8003a0a: b085 sub sp, #20 - 8003a0c: af00 add r7, sp, #0 - 8003a0e: 6078 str r0, [r7, #4] - - /* Check the parameters */ - assert_param(IS_TIM_INSTANCE(htim->Instance)); - - /* Check the TIM state */ - if (htim->State != HAL_TIM_STATE_READY) - 8003a10: 687b ldr r3, [r7, #4] - 8003a12: f893 303d ldrb.w r3, [r3, #61] ; 0x3d - 8003a16: b2db uxtb r3, r3 - 8003a18: 2b01 cmp r3, #1 - 8003a1a: d001 beq.n 8003a20 - { - return HAL_ERROR; - 8003a1c: 2301 movs r3, #1 - 8003a1e: e044 b.n 8003aaa - } - - /* Set the TIM state */ - htim->State = HAL_TIM_STATE_BUSY; - 8003a20: 687b ldr r3, [r7, #4] - 8003a22: 2202 movs r2, #2 - 8003a24: f883 203d strb.w r2, [r3, #61] ; 0x3d - - /* Enable the TIM Update interrupt */ - __HAL_TIM_ENABLE_IT(htim, TIM_IT_UPDATE); - 8003a28: 687b ldr r3, [r7, #4] - 8003a2a: 681b ldr r3, [r3, #0] - 8003a2c: 68da ldr r2, [r3, #12] - 8003a2e: 687b ldr r3, [r7, #4] - 8003a30: 681b ldr r3, [r3, #0] - 8003a32: f042 0201 orr.w r2, r2, #1 - 8003a36: 60da str r2, [r3, #12] - - /* Enable the Peripheral, except in trigger mode where enable is automatically done with trigger */ - if (IS_TIM_SLAVE_INSTANCE(htim->Instance)) - 8003a38: 687b ldr r3, [r7, #4] - 8003a3a: 681b ldr r3, [r3, #0] - 8003a3c: 4a1d ldr r2, [pc, #116] ; (8003ab4 ) - 8003a3e: 4293 cmp r3, r2 - 8003a40: d018 beq.n 8003a74 - 8003a42: 687b ldr r3, [r7, #4] - 8003a44: 681b ldr r3, [r3, #0] - 8003a46: 4a1c ldr r2, [pc, #112] ; (8003ab8 ) - 8003a48: 4293 cmp r3, r2 - 8003a4a: d013 beq.n 8003a74 - 8003a4c: 687b ldr r3, [r7, #4] - 8003a4e: 681b ldr r3, [r3, #0] - 8003a50: f1b3 4f80 cmp.w r3, #1073741824 ; 0x40000000 - 8003a54: d00e beq.n 8003a74 - 8003a56: 687b ldr r3, [r7, #4] - 8003a58: 681b ldr r3, [r3, #0] - 8003a5a: 4a18 ldr r2, [pc, #96] ; (8003abc ) - 8003a5c: 4293 cmp r3, r2 - 8003a5e: d009 beq.n 8003a74 - 8003a60: 687b ldr r3, [r7, #4] - 8003a62: 681b ldr r3, [r3, #0] - 8003a64: 4a16 ldr r2, [pc, #88] ; (8003ac0 ) - 8003a66: 4293 cmp r3, r2 - 8003a68: d004 beq.n 8003a74 - 8003a6a: 687b ldr r3, [r7, #4] - 8003a6c: 681b ldr r3, [r3, #0] - 8003a6e: 4a15 ldr r2, [pc, #84] ; (8003ac4 ) - 8003a70: 4293 cmp r3, r2 - 8003a72: d111 bne.n 8003a98 - { - tmpsmcr = htim->Instance->SMCR & TIM_SMCR_SMS; - 8003a74: 687b ldr r3, [r7, #4] - 8003a76: 681b ldr r3, [r3, #0] - 8003a78: 689b ldr r3, [r3, #8] - 8003a7a: f003 0307 and.w r3, r3, #7 - 8003a7e: 60fb str r3, [r7, #12] - if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr)) - 8003a80: 68fb ldr r3, [r7, #12] - 8003a82: 2b06 cmp r3, #6 - 8003a84: d010 beq.n 8003aa8 - { - __HAL_TIM_ENABLE(htim); - 8003a86: 687b ldr r3, [r7, #4] - 8003a88: 681b ldr r3, [r3, #0] - 8003a8a: 681a ldr r2, [r3, #0] - 8003a8c: 687b ldr r3, [r7, #4] - 8003a8e: 681b ldr r3, [r3, #0] - 8003a90: f042 0201 orr.w r2, r2, #1 - 8003a94: 601a str r2, [r3, #0] - if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr)) - 8003a96: e007 b.n 8003aa8 - } - } - else - { - __HAL_TIM_ENABLE(htim); - 8003a98: 687b ldr r3, [r7, #4] - 8003a9a: 681b ldr r3, [r3, #0] - 8003a9c: 681a ldr r2, [r3, #0] - 8003a9e: 687b ldr r3, [r7, #4] - 8003aa0: 681b ldr r3, [r3, #0] - 8003aa2: f042 0201 orr.w r2, r2, #1 - 8003aa6: 601a str r2, [r3, #0] - } - - /* Return function status */ - return HAL_OK; - 8003aa8: 2300 movs r3, #0 -} - 8003aaa: 4618 mov r0, r3 - 8003aac: 3714 adds r7, #20 - 8003aae: 46bd mov sp, r7 - 8003ab0: bc80 pop {r7} - 8003ab2: 4770 bx lr - 8003ab4: 40012c00 .word 0x40012c00 - 8003ab8: 40013400 .word 0x40013400 - 8003abc: 40000400 .word 0x40000400 - 8003ac0: 40000800 .word 0x40000800 - 8003ac4: 40000c00 .word 0x40000c00 - -08003ac8 : +08004544 : * @brief Stops the TIM Base generation in interrupt mode. * @param htim TIM Base handle * @retval HAL status */ HAL_StatusTypeDef HAL_TIM_Base_Stop_IT(TIM_HandleTypeDef *htim) { - 8003ac8: b480 push {r7} - 8003aca: b083 sub sp, #12 - 8003acc: af00 add r7, sp, #0 - 8003ace: 6078 str r0, [r7, #4] + 8004544: b480 push {r7} + 8004546: b083 sub sp, #12 + 8004548: af00 add r7, sp, #0 + 800454a: 6078 str r0, [r7, #4] /* Check the parameters */ assert_param(IS_TIM_INSTANCE(htim->Instance)); /* Disable the TIM Update interrupt */ __HAL_TIM_DISABLE_IT(htim, TIM_IT_UPDATE); - 8003ad0: 687b ldr r3, [r7, #4] - 8003ad2: 681b ldr r3, [r3, #0] - 8003ad4: 68da ldr r2, [r3, #12] - 8003ad6: 687b ldr r3, [r7, #4] - 8003ad8: 681b ldr r3, [r3, #0] - 8003ada: f022 0201 bic.w r2, r2, #1 - 8003ade: 60da str r2, [r3, #12] + 800454c: 687b ldr r3, [r7, #4] + 800454e: 681b ldr r3, [r3, #0] + 8004550: 68da ldr r2, [r3, #12] + 8004552: 687b ldr r3, [r7, #4] + 8004554: 681b ldr r3, [r3, #0] + 8004556: f022 0201 bic.w r2, r2, #1 + 800455a: 60da str r2, [r3, #12] /* Disable the Peripheral */ __HAL_TIM_DISABLE(htim); - 8003ae0: 687b ldr r3, [r7, #4] - 8003ae2: 681b ldr r3, [r3, #0] - 8003ae4: 6a1a ldr r2, [r3, #32] - 8003ae6: f241 1311 movw r3, #4369 ; 0x1111 - 8003aea: 4013 ands r3, r2 - 8003aec: 2b00 cmp r3, #0 - 8003aee: d10f bne.n 8003b10 - 8003af0: 687b ldr r3, [r7, #4] - 8003af2: 681b ldr r3, [r3, #0] - 8003af4: 6a1a ldr r2, [r3, #32] - 8003af6: f240 4344 movw r3, #1092 ; 0x444 - 8003afa: 4013 ands r3, r2 - 8003afc: 2b00 cmp r3, #0 - 8003afe: d107 bne.n 8003b10 - 8003b00: 687b ldr r3, [r7, #4] - 8003b02: 681b ldr r3, [r3, #0] - 8003b04: 681a ldr r2, [r3, #0] - 8003b06: 687b ldr r3, [r7, #4] - 8003b08: 681b ldr r3, [r3, #0] - 8003b0a: f022 0201 bic.w r2, r2, #1 - 8003b0e: 601a str r2, [r3, #0] + 800455c: 687b ldr r3, [r7, #4] + 800455e: 681b ldr r3, [r3, #0] + 8004560: 6a1a ldr r2, [r3, #32] + 8004562: f241 1311 movw r3, #4369 ; 0x1111 + 8004566: 4013 ands r3, r2 + 8004568: 2b00 cmp r3, #0 + 800456a: d10f bne.n 800458c + 800456c: 687b ldr r3, [r7, #4] + 800456e: 681b ldr r3, [r3, #0] + 8004570: 6a1a ldr r2, [r3, #32] + 8004572: f240 4344 movw r3, #1092 ; 0x444 + 8004576: 4013 ands r3, r2 + 8004578: 2b00 cmp r3, #0 + 800457a: d107 bne.n 800458c + 800457c: 687b ldr r3, [r7, #4] + 800457e: 681b ldr r3, [r3, #0] + 8004580: 681a ldr r2, [r3, #0] + 8004582: 687b ldr r3, [r7, #4] + 8004584: 681b ldr r3, [r3, #0] + 8004586: f022 0201 bic.w r2, r2, #1 + 800458a: 601a str r2, [r3, #0] /* Set the TIM state */ htim->State = HAL_TIM_STATE_READY; - 8003b10: 687b ldr r3, [r7, #4] - 8003b12: 2201 movs r2, #1 - 8003b14: f883 203d strb.w r2, [r3, #61] ; 0x3d + 800458c: 687b ldr r3, [r7, #4] + 800458e: 2201 movs r2, #1 + 8004590: f883 203d strb.w r2, [r3, #61] ; 0x3d /* Return function status */ return HAL_OK; - 8003b18: 2300 movs r3, #0 + 8004594: 2300 movs r3, #0 } - 8003b1a: 4618 mov r0, r3 - 8003b1c: 370c adds r7, #12 - 8003b1e: 46bd mov sp, r7 - 8003b20: bc80 pop {r7} - 8003b22: 4770 bx lr + 8004596: 4618 mov r0, r3 + 8004598: 370c adds r7, #12 + 800459a: 46bd mov sp, r7 + 800459c: bc80 pop {r7} + 800459e: 4770 bx lr -08003b24 : +080045a0 : * @brief This function handles TIM interrupts requests. * @param htim TIM handle * @retval None */ void HAL_TIM_IRQHandler(TIM_HandleTypeDef *htim) { - 8003b24: b580 push {r7, lr} - 8003b26: b082 sub sp, #8 - 8003b28: af00 add r7, sp, #0 - 8003b2a: 6078 str r0, [r7, #4] + 80045a0: b580 push {r7, lr} + 80045a2: b082 sub sp, #8 + 80045a4: af00 add r7, sp, #0 + 80045a6: 6078 str r0, [r7, #4] /* Capture compare 1 event */ if (__HAL_TIM_GET_FLAG(htim, TIM_FLAG_CC1) != RESET) - 8003b2c: 687b ldr r3, [r7, #4] - 8003b2e: 681b ldr r3, [r3, #0] - 8003b30: 691b ldr r3, [r3, #16] - 8003b32: f003 0302 and.w r3, r3, #2 - 8003b36: 2b02 cmp r3, #2 - 8003b38: d122 bne.n 8003b80 + 80045a8: 687b ldr r3, [r7, #4] + 80045aa: 681b ldr r3, [r3, #0] + 80045ac: 691b ldr r3, [r3, #16] + 80045ae: f003 0302 and.w r3, r3, #2 + 80045b2: 2b02 cmp r3, #2 + 80045b4: d122 bne.n 80045fc { if (__HAL_TIM_GET_IT_SOURCE(htim, TIM_IT_CC1) != RESET) - 8003b3a: 687b ldr r3, [r7, #4] - 8003b3c: 681b ldr r3, [r3, #0] - 8003b3e: 68db ldr r3, [r3, #12] - 8003b40: f003 0302 and.w r3, r3, #2 - 8003b44: 2b02 cmp r3, #2 - 8003b46: d11b bne.n 8003b80 + 80045b6: 687b ldr r3, [r7, #4] + 80045b8: 681b ldr r3, [r3, #0] + 80045ba: 68db ldr r3, [r3, #12] + 80045bc: f003 0302 and.w r3, r3, #2 + 80045c0: 2b02 cmp r3, #2 + 80045c2: d11b bne.n 80045fc { { __HAL_TIM_CLEAR_IT(htim, TIM_IT_CC1); - 8003b48: 687b ldr r3, [r7, #4] - 8003b4a: 681b ldr r3, [r3, #0] - 8003b4c: f06f 0202 mvn.w r2, #2 - 8003b50: 611a str r2, [r3, #16] + 80045c4: 687b ldr r3, [r7, #4] + 80045c6: 681b ldr r3, [r3, #0] + 80045c8: f06f 0202 mvn.w r2, #2 + 80045cc: 611a str r2, [r3, #16] htim->Channel = HAL_TIM_ACTIVE_CHANNEL_1; - 8003b52: 687b ldr r3, [r7, #4] - 8003b54: 2201 movs r2, #1 - 8003b56: 771a strb r2, [r3, #28] + 80045ce: 687b ldr r3, [r7, #4] + 80045d0: 2201 movs r2, #1 + 80045d2: 771a strb r2, [r3, #28] /* Input capture event */ if ((htim->Instance->CCMR1 & TIM_CCMR1_CC1S) != 0x00U) - 8003b58: 687b ldr r3, [r7, #4] - 8003b5a: 681b ldr r3, [r3, #0] - 8003b5c: 699b ldr r3, [r3, #24] - 8003b5e: f003 0303 and.w r3, r3, #3 - 8003b62: 2b00 cmp r3, #0 - 8003b64: d003 beq.n 8003b6e + 80045d4: 687b ldr r3, [r7, #4] + 80045d6: 681b ldr r3, [r3, #0] + 80045d8: 699b ldr r3, [r3, #24] + 80045da: f003 0303 and.w r3, r3, #3 + 80045de: 2b00 cmp r3, #0 + 80045e0: d003 beq.n 80045ea { #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) htim->IC_CaptureCallback(htim); #else HAL_TIM_IC_CaptureCallback(htim); - 8003b66: 6878 ldr r0, [r7, #4] - 8003b68: f000 f8ed bl 8003d46 - 8003b6c: e005 b.n 8003b7a + 80045e2: 6878 ldr r0, [r7, #4] + 80045e4: f000 f8ed bl 80047c2 + 80045e8: e005 b.n 80045f6 { #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) htim->OC_DelayElapsedCallback(htim); htim->PWM_PulseFinishedCallback(htim); #else HAL_TIM_OC_DelayElapsedCallback(htim); - 8003b6e: 6878 ldr r0, [r7, #4] - 8003b70: f000 f8e0 bl 8003d34 + 80045ea: 6878 ldr r0, [r7, #4] + 80045ec: f000 f8e0 bl 80047b0 HAL_TIM_PWM_PulseFinishedCallback(htim); - 8003b74: 6878 ldr r0, [r7, #4] - 8003b76: f000 f8ef bl 8003d58 + 80045f0: 6878 ldr r0, [r7, #4] + 80045f2: f000 f8ef bl 80047d4 #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ } htim->Channel = HAL_TIM_ACTIVE_CHANNEL_CLEARED; - 8003b7a: 687b ldr r3, [r7, #4] - 8003b7c: 2200 movs r2, #0 - 8003b7e: 771a strb r2, [r3, #28] + 80045f6: 687b ldr r3, [r7, #4] + 80045f8: 2200 movs r2, #0 + 80045fa: 771a strb r2, [r3, #28] } } } /* Capture compare 2 event */ if (__HAL_TIM_GET_FLAG(htim, TIM_FLAG_CC2) != RESET) - 8003b80: 687b ldr r3, [r7, #4] - 8003b82: 681b ldr r3, [r3, #0] - 8003b84: 691b ldr r3, [r3, #16] - 8003b86: f003 0304 and.w r3, r3, #4 - 8003b8a: 2b04 cmp r3, #4 - 8003b8c: d122 bne.n 8003bd4 + 80045fc: 687b ldr r3, [r7, #4] + 80045fe: 681b ldr r3, [r3, #0] + 8004600: 691b ldr r3, [r3, #16] + 8004602: f003 0304 and.w r3, r3, #4 + 8004606: 2b04 cmp r3, #4 + 8004608: d122 bne.n 8004650 { if (__HAL_TIM_GET_IT_SOURCE(htim, TIM_IT_CC2) != RESET) - 8003b8e: 687b ldr r3, [r7, #4] - 8003b90: 681b ldr r3, [r3, #0] - 8003b92: 68db ldr r3, [r3, #12] - 8003b94: f003 0304 and.w r3, r3, #4 - 8003b98: 2b04 cmp r3, #4 - 8003b9a: d11b bne.n 8003bd4 + 800460a: 687b ldr r3, [r7, #4] + 800460c: 681b ldr r3, [r3, #0] + 800460e: 68db ldr r3, [r3, #12] + 8004610: f003 0304 and.w r3, r3, #4 + 8004614: 2b04 cmp r3, #4 + 8004616: d11b bne.n 8004650 { __HAL_TIM_CLEAR_IT(htim, TIM_IT_CC2); - 8003b9c: 687b ldr r3, [r7, #4] - 8003b9e: 681b ldr r3, [r3, #0] - 8003ba0: f06f 0204 mvn.w r2, #4 - 8003ba4: 611a str r2, [r3, #16] + 8004618: 687b ldr r3, [r7, #4] + 800461a: 681b ldr r3, [r3, #0] + 800461c: f06f 0204 mvn.w r2, #4 + 8004620: 611a str r2, [r3, #16] htim->Channel = HAL_TIM_ACTIVE_CHANNEL_2; - 8003ba6: 687b ldr r3, [r7, #4] - 8003ba8: 2202 movs r2, #2 - 8003baa: 771a strb r2, [r3, #28] + 8004622: 687b ldr r3, [r7, #4] + 8004624: 2202 movs r2, #2 + 8004626: 771a strb r2, [r3, #28] /* Input capture event */ if ((htim->Instance->CCMR1 & TIM_CCMR1_CC2S) != 0x00U) - 8003bac: 687b ldr r3, [r7, #4] - 8003bae: 681b ldr r3, [r3, #0] - 8003bb0: 699b ldr r3, [r3, #24] - 8003bb2: f403 7340 and.w r3, r3, #768 ; 0x300 - 8003bb6: 2b00 cmp r3, #0 - 8003bb8: d003 beq.n 8003bc2 + 8004628: 687b ldr r3, [r7, #4] + 800462a: 681b ldr r3, [r3, #0] + 800462c: 699b ldr r3, [r3, #24] + 800462e: f403 7340 and.w r3, r3, #768 ; 0x300 + 8004632: 2b00 cmp r3, #0 + 8004634: d003 beq.n 800463e { #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) htim->IC_CaptureCallback(htim); #else HAL_TIM_IC_CaptureCallback(htim); - 8003bba: 6878 ldr r0, [r7, #4] - 8003bbc: f000 f8c3 bl 8003d46 - 8003bc0: e005 b.n 8003bce + 8004636: 6878 ldr r0, [r7, #4] + 8004638: f000 f8c3 bl 80047c2 + 800463c: e005 b.n 800464a { #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) htim->OC_DelayElapsedCallback(htim); htim->PWM_PulseFinishedCallback(htim); #else HAL_TIM_OC_DelayElapsedCallback(htim); - 8003bc2: 6878 ldr r0, [r7, #4] - 8003bc4: f000 f8b6 bl 8003d34 + 800463e: 6878 ldr r0, [r7, #4] + 8004640: f000 f8b6 bl 80047b0 HAL_TIM_PWM_PulseFinishedCallback(htim); - 8003bc8: 6878 ldr r0, [r7, #4] - 8003bca: f000 f8c5 bl 8003d58 + 8004644: 6878 ldr r0, [r7, #4] + 8004646: f000 f8c5 bl 80047d4 #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ } htim->Channel = HAL_TIM_ACTIVE_CHANNEL_CLEARED; - 8003bce: 687b ldr r3, [r7, #4] - 8003bd0: 2200 movs r2, #0 - 8003bd2: 771a strb r2, [r3, #28] + 800464a: 687b ldr r3, [r7, #4] + 800464c: 2200 movs r2, #0 + 800464e: 771a strb r2, [r3, #28] } } /* Capture compare 3 event */ if (__HAL_TIM_GET_FLAG(htim, TIM_FLAG_CC3) != RESET) - 8003bd4: 687b ldr r3, [r7, #4] - 8003bd6: 681b ldr r3, [r3, #0] - 8003bd8: 691b ldr r3, [r3, #16] - 8003bda: f003 0308 and.w r3, r3, #8 - 8003bde: 2b08 cmp r3, #8 - 8003be0: d122 bne.n 8003c28 + 8004650: 687b ldr r3, [r7, #4] + 8004652: 681b ldr r3, [r3, #0] + 8004654: 691b ldr r3, [r3, #16] + 8004656: f003 0308 and.w r3, r3, #8 + 800465a: 2b08 cmp r3, #8 + 800465c: d122 bne.n 80046a4 { if (__HAL_TIM_GET_IT_SOURCE(htim, TIM_IT_CC3) != RESET) - 8003be2: 687b ldr r3, [r7, #4] - 8003be4: 681b ldr r3, [r3, #0] - 8003be6: 68db ldr r3, [r3, #12] - 8003be8: f003 0308 and.w r3, r3, #8 - 8003bec: 2b08 cmp r3, #8 - 8003bee: d11b bne.n 8003c28 + 800465e: 687b ldr r3, [r7, #4] + 8004660: 681b ldr r3, [r3, #0] + 8004662: 68db ldr r3, [r3, #12] + 8004664: f003 0308 and.w r3, r3, #8 + 8004668: 2b08 cmp r3, #8 + 800466a: d11b bne.n 80046a4 { __HAL_TIM_CLEAR_IT(htim, TIM_IT_CC3); - 8003bf0: 687b ldr r3, [r7, #4] - 8003bf2: 681b ldr r3, [r3, #0] - 8003bf4: f06f 0208 mvn.w r2, #8 - 8003bf8: 611a str r2, [r3, #16] + 800466c: 687b ldr r3, [r7, #4] + 800466e: 681b ldr r3, [r3, #0] + 8004670: f06f 0208 mvn.w r2, #8 + 8004674: 611a str r2, [r3, #16] htim->Channel = HAL_TIM_ACTIVE_CHANNEL_3; - 8003bfa: 687b ldr r3, [r7, #4] - 8003bfc: 2204 movs r2, #4 - 8003bfe: 771a strb r2, [r3, #28] + 8004676: 687b ldr r3, [r7, #4] + 8004678: 2204 movs r2, #4 + 800467a: 771a strb r2, [r3, #28] /* Input capture event */ if ((htim->Instance->CCMR2 & TIM_CCMR2_CC3S) != 0x00U) - 8003c00: 687b ldr r3, [r7, #4] - 8003c02: 681b ldr r3, [r3, #0] - 8003c04: 69db ldr r3, [r3, #28] - 8003c06: f003 0303 and.w r3, r3, #3 - 8003c0a: 2b00 cmp r3, #0 - 8003c0c: d003 beq.n 8003c16 + 800467c: 687b ldr r3, [r7, #4] + 800467e: 681b ldr r3, [r3, #0] + 8004680: 69db ldr r3, [r3, #28] + 8004682: f003 0303 and.w r3, r3, #3 + 8004686: 2b00 cmp r3, #0 + 8004688: d003 beq.n 8004692 { #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) htim->IC_CaptureCallback(htim); #else HAL_TIM_IC_CaptureCallback(htim); - 8003c0e: 6878 ldr r0, [r7, #4] - 8003c10: f000 f899 bl 8003d46 - 8003c14: e005 b.n 8003c22 + 800468a: 6878 ldr r0, [r7, #4] + 800468c: f000 f899 bl 80047c2 + 8004690: e005 b.n 800469e { #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) htim->OC_DelayElapsedCallback(htim); htim->PWM_PulseFinishedCallback(htim); #else HAL_TIM_OC_DelayElapsedCallback(htim); - 8003c16: 6878 ldr r0, [r7, #4] - 8003c18: f000 f88c bl 8003d34 + 8004692: 6878 ldr r0, [r7, #4] + 8004694: f000 f88c bl 80047b0 HAL_TIM_PWM_PulseFinishedCallback(htim); - 8003c1c: 6878 ldr r0, [r7, #4] - 8003c1e: f000 f89b bl 8003d58 + 8004698: 6878 ldr r0, [r7, #4] + 800469a: f000 f89b bl 80047d4 #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ } htim->Channel = HAL_TIM_ACTIVE_CHANNEL_CLEARED; - 8003c22: 687b ldr r3, [r7, #4] - 8003c24: 2200 movs r2, #0 - 8003c26: 771a strb r2, [r3, #28] + 800469e: 687b ldr r3, [r7, #4] + 80046a0: 2200 movs r2, #0 + 80046a2: 771a strb r2, [r3, #28] } } /* Capture compare 4 event */ if (__HAL_TIM_GET_FLAG(htim, TIM_FLAG_CC4) != RESET) - 8003c28: 687b ldr r3, [r7, #4] - 8003c2a: 681b ldr r3, [r3, #0] - 8003c2c: 691b ldr r3, [r3, #16] - 8003c2e: f003 0310 and.w r3, r3, #16 - 8003c32: 2b10 cmp r3, #16 - 8003c34: d122 bne.n 8003c7c + 80046a4: 687b ldr r3, [r7, #4] + 80046a6: 681b ldr r3, [r3, #0] + 80046a8: 691b ldr r3, [r3, #16] + 80046aa: f003 0310 and.w r3, r3, #16 + 80046ae: 2b10 cmp r3, #16 + 80046b0: d122 bne.n 80046f8 { if (__HAL_TIM_GET_IT_SOURCE(htim, TIM_IT_CC4) != RESET) - 8003c36: 687b ldr r3, [r7, #4] - 8003c38: 681b ldr r3, [r3, #0] - 8003c3a: 68db ldr r3, [r3, #12] - 8003c3c: f003 0310 and.w r3, r3, #16 - 8003c40: 2b10 cmp r3, #16 - 8003c42: d11b bne.n 8003c7c + 80046b2: 687b ldr r3, [r7, #4] + 80046b4: 681b ldr r3, [r3, #0] + 80046b6: 68db ldr r3, [r3, #12] + 80046b8: f003 0310 and.w r3, r3, #16 + 80046bc: 2b10 cmp r3, #16 + 80046be: d11b bne.n 80046f8 { __HAL_TIM_CLEAR_IT(htim, TIM_IT_CC4); - 8003c44: 687b ldr r3, [r7, #4] - 8003c46: 681b ldr r3, [r3, #0] - 8003c48: f06f 0210 mvn.w r2, #16 - 8003c4c: 611a str r2, [r3, #16] + 80046c0: 687b ldr r3, [r7, #4] + 80046c2: 681b ldr r3, [r3, #0] + 80046c4: f06f 0210 mvn.w r2, #16 + 80046c8: 611a str r2, [r3, #16] htim->Channel = HAL_TIM_ACTIVE_CHANNEL_4; - 8003c4e: 687b ldr r3, [r7, #4] - 8003c50: 2208 movs r2, #8 - 8003c52: 771a strb r2, [r3, #28] + 80046ca: 687b ldr r3, [r7, #4] + 80046cc: 2208 movs r2, #8 + 80046ce: 771a strb r2, [r3, #28] /* Input capture event */ if ((htim->Instance->CCMR2 & TIM_CCMR2_CC4S) != 0x00U) - 8003c54: 687b ldr r3, [r7, #4] - 8003c56: 681b ldr r3, [r3, #0] - 8003c58: 69db ldr r3, [r3, #28] - 8003c5a: f403 7340 and.w r3, r3, #768 ; 0x300 - 8003c5e: 2b00 cmp r3, #0 - 8003c60: d003 beq.n 8003c6a + 80046d0: 687b ldr r3, [r7, #4] + 80046d2: 681b ldr r3, [r3, #0] + 80046d4: 69db ldr r3, [r3, #28] + 80046d6: f403 7340 and.w r3, r3, #768 ; 0x300 + 80046da: 2b00 cmp r3, #0 + 80046dc: d003 beq.n 80046e6 { #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) htim->IC_CaptureCallback(htim); #else HAL_TIM_IC_CaptureCallback(htim); - 8003c62: 6878 ldr r0, [r7, #4] - 8003c64: f000 f86f bl 8003d46 - 8003c68: e005 b.n 8003c76 + 80046de: 6878 ldr r0, [r7, #4] + 80046e0: f000 f86f bl 80047c2 + 80046e4: e005 b.n 80046f2 { #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) htim->OC_DelayElapsedCallback(htim); htim->PWM_PulseFinishedCallback(htim); #else HAL_TIM_OC_DelayElapsedCallback(htim); - 8003c6a: 6878 ldr r0, [r7, #4] - 8003c6c: f000 f862 bl 8003d34 + 80046e6: 6878 ldr r0, [r7, #4] + 80046e8: f000 f862 bl 80047b0 HAL_TIM_PWM_PulseFinishedCallback(htim); - 8003c70: 6878 ldr r0, [r7, #4] - 8003c72: f000 f871 bl 8003d58 + 80046ec: 6878 ldr r0, [r7, #4] + 80046ee: f000 f871 bl 80047d4 #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ } htim->Channel = HAL_TIM_ACTIVE_CHANNEL_CLEARED; - 8003c76: 687b ldr r3, [r7, #4] - 8003c78: 2200 movs r2, #0 - 8003c7a: 771a strb r2, [r3, #28] + 80046f2: 687b ldr r3, [r7, #4] + 80046f4: 2200 movs r2, #0 + 80046f6: 771a strb r2, [r3, #28] } } /* TIM Update event */ if (__HAL_TIM_GET_FLAG(htim, TIM_FLAG_UPDATE) != RESET) - 8003c7c: 687b ldr r3, [r7, #4] - 8003c7e: 681b ldr r3, [r3, #0] - 8003c80: 691b ldr r3, [r3, #16] - 8003c82: f003 0301 and.w r3, r3, #1 - 8003c86: 2b01 cmp r3, #1 - 8003c88: d10e bne.n 8003ca8 + 80046f8: 687b ldr r3, [r7, #4] + 80046fa: 681b ldr r3, [r3, #0] + 80046fc: 691b ldr r3, [r3, #16] + 80046fe: f003 0301 and.w r3, r3, #1 + 8004702: 2b01 cmp r3, #1 + 8004704: d10e bne.n 8004724 { if (__HAL_TIM_GET_IT_SOURCE(htim, TIM_IT_UPDATE) != RESET) - 8003c8a: 687b ldr r3, [r7, #4] - 8003c8c: 681b ldr r3, [r3, #0] - 8003c8e: 68db ldr r3, [r3, #12] - 8003c90: f003 0301 and.w r3, r3, #1 - 8003c94: 2b01 cmp r3, #1 - 8003c96: d107 bne.n 8003ca8 + 8004706: 687b ldr r3, [r7, #4] + 8004708: 681b ldr r3, [r3, #0] + 800470a: 68db ldr r3, [r3, #12] + 800470c: f003 0301 and.w r3, r3, #1 + 8004710: 2b01 cmp r3, #1 + 8004712: d107 bne.n 8004724 { __HAL_TIM_CLEAR_IT(htim, TIM_IT_UPDATE); - 8003c98: 687b ldr r3, [r7, #4] - 8003c9a: 681b ldr r3, [r3, #0] - 8003c9c: f06f 0201 mvn.w r2, #1 - 8003ca0: 611a str r2, [r3, #16] + 8004714: 687b ldr r3, [r7, #4] + 8004716: 681b ldr r3, [r3, #0] + 8004718: f06f 0201 mvn.w r2, #1 + 800471c: 611a str r2, [r3, #16] #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) htim->PeriodElapsedCallback(htim); #else HAL_TIM_PeriodElapsedCallback(htim); - 8003ca2: 6878 ldr r0, [r7, #4] - 8003ca4: f002 fee4 bl 8006a70 + 800471e: 6878 ldr r0, [r7, #4] + 8004720: f002 f88e bl 8006840 #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ } } /* TIM Break input event */ if (__HAL_TIM_GET_FLAG(htim, TIM_FLAG_BREAK) != RESET) - 8003ca8: 687b ldr r3, [r7, #4] - 8003caa: 681b ldr r3, [r3, #0] - 8003cac: 691b ldr r3, [r3, #16] - 8003cae: f003 0380 and.w r3, r3, #128 ; 0x80 - 8003cb2: 2b80 cmp r3, #128 ; 0x80 - 8003cb4: d10e bne.n 8003cd4 + 8004724: 687b ldr r3, [r7, #4] + 8004726: 681b ldr r3, [r3, #0] + 8004728: 691b ldr r3, [r3, #16] + 800472a: f003 0380 and.w r3, r3, #128 ; 0x80 + 800472e: 2b80 cmp r3, #128 ; 0x80 + 8004730: d10e bne.n 8004750 { if (__HAL_TIM_GET_IT_SOURCE(htim, TIM_IT_BREAK) != RESET) - 8003cb6: 687b ldr r3, [r7, #4] - 8003cb8: 681b ldr r3, [r3, #0] - 8003cba: 68db ldr r3, [r3, #12] - 8003cbc: f003 0380 and.w r3, r3, #128 ; 0x80 - 8003cc0: 2b80 cmp r3, #128 ; 0x80 - 8003cc2: d107 bne.n 8003cd4 + 8004732: 687b ldr r3, [r7, #4] + 8004734: 681b ldr r3, [r3, #0] + 8004736: 68db ldr r3, [r3, #12] + 8004738: f003 0380 and.w r3, r3, #128 ; 0x80 + 800473c: 2b80 cmp r3, #128 ; 0x80 + 800473e: d107 bne.n 8004750 { __HAL_TIM_CLEAR_IT(htim, TIM_IT_BREAK); - 8003cc4: 687b ldr r3, [r7, #4] - 8003cc6: 681b ldr r3, [r3, #0] - 8003cc8: f06f 0280 mvn.w r2, #128 ; 0x80 - 8003ccc: 611a str r2, [r3, #16] + 8004740: 687b ldr r3, [r7, #4] + 8004742: 681b ldr r3, [r3, #0] + 8004744: f06f 0280 mvn.w r2, #128 ; 0x80 + 8004748: 611a str r2, [r3, #16] #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) htim->BreakCallback(htim); #else HAL_TIMEx_BreakCallback(htim); - 8003cce: 6878 ldr r0, [r7, #4] - 8003cd0: f000 f943 bl 8003f5a + 800474a: 6878 ldr r0, [r7, #4] + 800474c: f000 f943 bl 80049d6 #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ } } /* TIM Trigger detection event */ if (__HAL_TIM_GET_FLAG(htim, TIM_FLAG_TRIGGER) != RESET) - 8003cd4: 687b ldr r3, [r7, #4] - 8003cd6: 681b ldr r3, [r3, #0] - 8003cd8: 691b ldr r3, [r3, #16] - 8003cda: f003 0340 and.w r3, r3, #64 ; 0x40 - 8003cde: 2b40 cmp r3, #64 ; 0x40 - 8003ce0: d10e bne.n 8003d00 + 8004750: 687b ldr r3, [r7, #4] + 8004752: 681b ldr r3, [r3, #0] + 8004754: 691b ldr r3, [r3, #16] + 8004756: f003 0340 and.w r3, r3, #64 ; 0x40 + 800475a: 2b40 cmp r3, #64 ; 0x40 + 800475c: d10e bne.n 800477c { if (__HAL_TIM_GET_IT_SOURCE(htim, TIM_IT_TRIGGER) != RESET) - 8003ce2: 687b ldr r3, [r7, #4] - 8003ce4: 681b ldr r3, [r3, #0] - 8003ce6: 68db ldr r3, [r3, #12] - 8003ce8: f003 0340 and.w r3, r3, #64 ; 0x40 - 8003cec: 2b40 cmp r3, #64 ; 0x40 - 8003cee: d107 bne.n 8003d00 + 800475e: 687b ldr r3, [r7, #4] + 8004760: 681b ldr r3, [r3, #0] + 8004762: 68db ldr r3, [r3, #12] + 8004764: f003 0340 and.w r3, r3, #64 ; 0x40 + 8004768: 2b40 cmp r3, #64 ; 0x40 + 800476a: d107 bne.n 800477c { __HAL_TIM_CLEAR_IT(htim, TIM_IT_TRIGGER); - 8003cf0: 687b ldr r3, [r7, #4] - 8003cf2: 681b ldr r3, [r3, #0] - 8003cf4: f06f 0240 mvn.w r2, #64 ; 0x40 - 8003cf8: 611a str r2, [r3, #16] + 800476c: 687b ldr r3, [r7, #4] + 800476e: 681b ldr r3, [r3, #0] + 8004770: f06f 0240 mvn.w r2, #64 ; 0x40 + 8004774: 611a str r2, [r3, #16] #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) htim->TriggerCallback(htim); #else HAL_TIM_TriggerCallback(htim); - 8003cfa: 6878 ldr r0, [r7, #4] - 8003cfc: f000 f835 bl 8003d6a + 8004776: 6878 ldr r0, [r7, #4] + 8004778: f000 f835 bl 80047e6 #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ } } /* TIM commutation event */ if (__HAL_TIM_GET_FLAG(htim, TIM_FLAG_COM) != RESET) - 8003d00: 687b ldr r3, [r7, #4] - 8003d02: 681b ldr r3, [r3, #0] - 8003d04: 691b ldr r3, [r3, #16] - 8003d06: f003 0320 and.w r3, r3, #32 - 8003d0a: 2b20 cmp r3, #32 - 8003d0c: d10e bne.n 8003d2c + 800477c: 687b ldr r3, [r7, #4] + 800477e: 681b ldr r3, [r3, #0] + 8004780: 691b ldr r3, [r3, #16] + 8004782: f003 0320 and.w r3, r3, #32 + 8004786: 2b20 cmp r3, #32 + 8004788: d10e bne.n 80047a8 { if (__HAL_TIM_GET_IT_SOURCE(htim, TIM_IT_COM) != RESET) - 8003d0e: 687b ldr r3, [r7, #4] - 8003d10: 681b ldr r3, [r3, #0] - 8003d12: 68db ldr r3, [r3, #12] - 8003d14: f003 0320 and.w r3, r3, #32 - 8003d18: 2b20 cmp r3, #32 - 8003d1a: d107 bne.n 8003d2c + 800478a: 687b ldr r3, [r7, #4] + 800478c: 681b ldr r3, [r3, #0] + 800478e: 68db ldr r3, [r3, #12] + 8004790: f003 0320 and.w r3, r3, #32 + 8004794: 2b20 cmp r3, #32 + 8004796: d107 bne.n 80047a8 { __HAL_TIM_CLEAR_IT(htim, TIM_FLAG_COM); - 8003d1c: 687b ldr r3, [r7, #4] - 8003d1e: 681b ldr r3, [r3, #0] - 8003d20: f06f 0220 mvn.w r2, #32 - 8003d24: 611a str r2, [r3, #16] + 8004798: 687b ldr r3, [r7, #4] + 800479a: 681b ldr r3, [r3, #0] + 800479c: f06f 0220 mvn.w r2, #32 + 80047a0: 611a str r2, [r3, #16] #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) htim->CommutationCallback(htim); #else HAL_TIMEx_CommutCallback(htim); - 8003d26: 6878 ldr r0, [r7, #4] - 8003d28: f000 f90e bl 8003f48 + 80047a2: 6878 ldr r0, [r7, #4] + 80047a4: f000 f90e bl 80049c4 #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ } } } - 8003d2c: bf00 nop - 8003d2e: 3708 adds r7, #8 - 8003d30: 46bd mov sp, r7 - 8003d32: bd80 pop {r7, pc} + 80047a8: bf00 nop + 80047aa: 3708 adds r7, #8 + 80047ac: 46bd mov sp, r7 + 80047ae: bd80 pop {r7, pc} -08003d34 : +080047b0 : * @brief Output Compare callback in non-blocking mode * @param htim TIM OC handle * @retval None */ __weak void HAL_TIM_OC_DelayElapsedCallback(TIM_HandleTypeDef *htim) { - 8003d34: b480 push {r7} - 8003d36: b083 sub sp, #12 - 8003d38: af00 add r7, sp, #0 - 8003d3a: 6078 str r0, [r7, #4] + 80047b0: b480 push {r7} + 80047b2: b083 sub sp, #12 + 80047b4: af00 add r7, sp, #0 + 80047b6: 6078 str r0, [r7, #4] UNUSED(htim); /* NOTE : This function should not be modified, when the callback is needed, the HAL_TIM_OC_DelayElapsedCallback could be implemented in the user file */ } - 8003d3c: bf00 nop - 8003d3e: 370c adds r7, #12 - 8003d40: 46bd mov sp, r7 - 8003d42: bc80 pop {r7} - 8003d44: 4770 bx lr + 80047b8: bf00 nop + 80047ba: 370c adds r7, #12 + 80047bc: 46bd mov sp, r7 + 80047be: bc80 pop {r7} + 80047c0: 4770 bx lr -08003d46 : +080047c2 : * @brief Input Capture callback in non-blocking mode * @param htim TIM IC handle * @retval None */ __weak void HAL_TIM_IC_CaptureCallback(TIM_HandleTypeDef *htim) { - 8003d46: b480 push {r7} - 8003d48: b083 sub sp, #12 - 8003d4a: af00 add r7, sp, #0 - 8003d4c: 6078 str r0, [r7, #4] + 80047c2: b480 push {r7} + 80047c4: b083 sub sp, #12 + 80047c6: af00 add r7, sp, #0 + 80047c8: 6078 str r0, [r7, #4] UNUSED(htim); /* NOTE : This function should not be modified, when the callback is needed, the HAL_TIM_IC_CaptureCallback could be implemented in the user file */ } - 8003d4e: bf00 nop - 8003d50: 370c adds r7, #12 - 8003d52: 46bd mov sp, r7 - 8003d54: bc80 pop {r7} - 8003d56: 4770 bx lr + 80047ca: bf00 nop + 80047cc: 370c adds r7, #12 + 80047ce: 46bd mov sp, r7 + 80047d0: bc80 pop {r7} + 80047d2: 4770 bx lr -08003d58 : +080047d4 : * @brief PWM Pulse finished callback in non-blocking mode * @param htim TIM handle * @retval None */ __weak void HAL_TIM_PWM_PulseFinishedCallback(TIM_HandleTypeDef *htim) { - 8003d58: b480 push {r7} - 8003d5a: b083 sub sp, #12 - 8003d5c: af00 add r7, sp, #0 - 8003d5e: 6078 str r0, [r7, #4] + 80047d4: b480 push {r7} + 80047d6: b083 sub sp, #12 + 80047d8: af00 add r7, sp, #0 + 80047da: 6078 str r0, [r7, #4] UNUSED(htim); /* NOTE : This function should not be modified, when the callback is needed, the HAL_TIM_PWM_PulseFinishedCallback could be implemented in the user file */ } - 8003d60: bf00 nop - 8003d62: 370c adds r7, #12 - 8003d64: 46bd mov sp, r7 - 8003d66: bc80 pop {r7} - 8003d68: 4770 bx lr + 80047dc: bf00 nop + 80047de: 370c adds r7, #12 + 80047e0: 46bd mov sp, r7 + 80047e2: bc80 pop {r7} + 80047e4: 4770 bx lr -08003d6a : +080047e6 : * @brief Hall Trigger detection callback in non-blocking mode * @param htim TIM handle * @retval None */ __weak void HAL_TIM_TriggerCallback(TIM_HandleTypeDef *htim) { - 8003d6a: b480 push {r7} - 8003d6c: b083 sub sp, #12 - 8003d6e: af00 add r7, sp, #0 - 8003d70: 6078 str r0, [r7, #4] + 80047e6: b480 push {r7} + 80047e8: b083 sub sp, #12 + 80047ea: af00 add r7, sp, #0 + 80047ec: 6078 str r0, [r7, #4] UNUSED(htim); /* NOTE : This function should not be modified, when the callback is needed, the HAL_TIM_TriggerCallback could be implemented in the user file */ } - 8003d72: bf00 nop - 8003d74: 370c adds r7, #12 - 8003d76: 46bd mov sp, r7 - 8003d78: bc80 pop {r7} - 8003d7a: 4770 bx lr + 80047ee: bf00 nop + 80047f0: 370c adds r7, #12 + 80047f2: 46bd mov sp, r7 + 80047f4: bc80 pop {r7} + 80047f6: 4770 bx lr -08003d7c : +080047f8 : * @param TIMx TIM peripheral * @param Structure TIM Base configuration structure * @retval None */ void TIM_Base_SetConfig(TIM_TypeDef *TIMx, TIM_Base_InitTypeDef *Structure) { - 8003d7c: b480 push {r7} - 8003d7e: b085 sub sp, #20 - 8003d80: af00 add r7, sp, #0 - 8003d82: 6078 str r0, [r7, #4] - 8003d84: 6039 str r1, [r7, #0] + 80047f8: b480 push {r7} + 80047fa: b085 sub sp, #20 + 80047fc: af00 add r7, sp, #0 + 80047fe: 6078 str r0, [r7, #4] + 8004800: 6039 str r1, [r7, #0] uint32_t tmpcr1; tmpcr1 = TIMx->CR1; - 8003d86: 687b ldr r3, [r7, #4] - 8003d88: 681b ldr r3, [r3, #0] - 8003d8a: 60fb str r3, [r7, #12] + 8004802: 687b ldr r3, [r7, #4] + 8004804: 681b ldr r3, [r3, #0] + 8004806: 60fb str r3, [r7, #12] /* Set TIM Time Base Unit parameters ---------------------------------------*/ if (IS_TIM_COUNTER_MODE_SELECT_INSTANCE(TIMx)) - 8003d8c: 687b ldr r3, [r7, #4] - 8003d8e: 4a33 ldr r2, [pc, #204] ; (8003e5c ) - 8003d90: 4293 cmp r3, r2 - 8003d92: d013 beq.n 8003dbc - 8003d94: 687b ldr r3, [r7, #4] - 8003d96: 4a32 ldr r2, [pc, #200] ; (8003e60 ) - 8003d98: 4293 cmp r3, r2 - 8003d9a: d00f beq.n 8003dbc - 8003d9c: 687b ldr r3, [r7, #4] - 8003d9e: f1b3 4f80 cmp.w r3, #1073741824 ; 0x40000000 - 8003da2: d00b beq.n 8003dbc - 8003da4: 687b ldr r3, [r7, #4] - 8003da6: 4a2f ldr r2, [pc, #188] ; (8003e64 ) - 8003da8: 4293 cmp r3, r2 - 8003daa: d007 beq.n 8003dbc - 8003dac: 687b ldr r3, [r7, #4] - 8003dae: 4a2e ldr r2, [pc, #184] ; (8003e68 ) - 8003db0: 4293 cmp r3, r2 - 8003db2: d003 beq.n 8003dbc - 8003db4: 687b ldr r3, [r7, #4] - 8003db6: 4a2d ldr r2, [pc, #180] ; (8003e6c ) - 8003db8: 4293 cmp r3, r2 - 8003dba: d108 bne.n 8003dce + 8004808: 687b ldr r3, [r7, #4] + 800480a: 4a33 ldr r2, [pc, #204] ; (80048d8 ) + 800480c: 4293 cmp r3, r2 + 800480e: d013 beq.n 8004838 + 8004810: 687b ldr r3, [r7, #4] + 8004812: 4a32 ldr r2, [pc, #200] ; (80048dc ) + 8004814: 4293 cmp r3, r2 + 8004816: d00f beq.n 8004838 + 8004818: 687b ldr r3, [r7, #4] + 800481a: f1b3 4f80 cmp.w r3, #1073741824 ; 0x40000000 + 800481e: d00b beq.n 8004838 + 8004820: 687b ldr r3, [r7, #4] + 8004822: 4a2f ldr r2, [pc, #188] ; (80048e0 ) + 8004824: 4293 cmp r3, r2 + 8004826: d007 beq.n 8004838 + 8004828: 687b ldr r3, [r7, #4] + 800482a: 4a2e ldr r2, [pc, #184] ; (80048e4 ) + 800482c: 4293 cmp r3, r2 + 800482e: d003 beq.n 8004838 + 8004830: 687b ldr r3, [r7, #4] + 8004832: 4a2d ldr r2, [pc, #180] ; (80048e8 ) + 8004834: 4293 cmp r3, r2 + 8004836: d108 bne.n 800484a { /* Select the Counter Mode */ tmpcr1 &= ~(TIM_CR1_DIR | TIM_CR1_CMS); - 8003dbc: 68fb ldr r3, [r7, #12] - 8003dbe: f023 0370 bic.w r3, r3, #112 ; 0x70 - 8003dc2: 60fb str r3, [r7, #12] + 8004838: 68fb ldr r3, [r7, #12] + 800483a: f023 0370 bic.w r3, r3, #112 ; 0x70 + 800483e: 60fb str r3, [r7, #12] tmpcr1 |= Structure->CounterMode; - 8003dc4: 683b ldr r3, [r7, #0] - 8003dc6: 685b ldr r3, [r3, #4] - 8003dc8: 68fa ldr r2, [r7, #12] - 8003dca: 4313 orrs r3, r2 - 8003dcc: 60fb str r3, [r7, #12] + 8004840: 683b ldr r3, [r7, #0] + 8004842: 685b ldr r3, [r3, #4] + 8004844: 68fa ldr r2, [r7, #12] + 8004846: 4313 orrs r3, r2 + 8004848: 60fb str r3, [r7, #12] } if (IS_TIM_CLOCK_DIVISION_INSTANCE(TIMx)) - 8003dce: 687b ldr r3, [r7, #4] - 8003dd0: 4a22 ldr r2, [pc, #136] ; (8003e5c ) - 8003dd2: 4293 cmp r3, r2 - 8003dd4: d013 beq.n 8003dfe - 8003dd6: 687b ldr r3, [r7, #4] - 8003dd8: 4a21 ldr r2, [pc, #132] ; (8003e60 ) - 8003dda: 4293 cmp r3, r2 - 8003ddc: d00f beq.n 8003dfe - 8003dde: 687b ldr r3, [r7, #4] - 8003de0: f1b3 4f80 cmp.w r3, #1073741824 ; 0x40000000 - 8003de4: d00b beq.n 8003dfe - 8003de6: 687b ldr r3, [r7, #4] - 8003de8: 4a1e ldr r2, [pc, #120] ; (8003e64 ) - 8003dea: 4293 cmp r3, r2 - 8003dec: d007 beq.n 8003dfe - 8003dee: 687b ldr r3, [r7, #4] - 8003df0: 4a1d ldr r2, [pc, #116] ; (8003e68 ) - 8003df2: 4293 cmp r3, r2 - 8003df4: d003 beq.n 8003dfe - 8003df6: 687b ldr r3, [r7, #4] - 8003df8: 4a1c ldr r2, [pc, #112] ; (8003e6c ) - 8003dfa: 4293 cmp r3, r2 - 8003dfc: d108 bne.n 8003e10 + 800484a: 687b ldr r3, [r7, #4] + 800484c: 4a22 ldr r2, [pc, #136] ; (80048d8 ) + 800484e: 4293 cmp r3, r2 + 8004850: d013 beq.n 800487a + 8004852: 687b ldr r3, [r7, #4] + 8004854: 4a21 ldr r2, [pc, #132] ; (80048dc ) + 8004856: 4293 cmp r3, r2 + 8004858: d00f beq.n 800487a + 800485a: 687b ldr r3, [r7, #4] + 800485c: f1b3 4f80 cmp.w r3, #1073741824 ; 0x40000000 + 8004860: d00b beq.n 800487a + 8004862: 687b ldr r3, [r7, #4] + 8004864: 4a1e ldr r2, [pc, #120] ; (80048e0 ) + 8004866: 4293 cmp r3, r2 + 8004868: d007 beq.n 800487a + 800486a: 687b ldr r3, [r7, #4] + 800486c: 4a1d ldr r2, [pc, #116] ; (80048e4 ) + 800486e: 4293 cmp r3, r2 + 8004870: d003 beq.n 800487a + 8004872: 687b ldr r3, [r7, #4] + 8004874: 4a1c ldr r2, [pc, #112] ; (80048e8 ) + 8004876: 4293 cmp r3, r2 + 8004878: d108 bne.n 800488c { /* Set the clock division */ tmpcr1 &= ~TIM_CR1_CKD; - 8003dfe: 68fb ldr r3, [r7, #12] - 8003e00: f423 7340 bic.w r3, r3, #768 ; 0x300 - 8003e04: 60fb str r3, [r7, #12] + 800487a: 68fb ldr r3, [r7, #12] + 800487c: f423 7340 bic.w r3, r3, #768 ; 0x300 + 8004880: 60fb str r3, [r7, #12] tmpcr1 |= (uint32_t)Structure->ClockDivision; - 8003e06: 683b ldr r3, [r7, #0] - 8003e08: 68db ldr r3, [r3, #12] - 8003e0a: 68fa ldr r2, [r7, #12] - 8003e0c: 4313 orrs r3, r2 - 8003e0e: 60fb str r3, [r7, #12] + 8004882: 683b ldr r3, [r7, #0] + 8004884: 68db ldr r3, [r3, #12] + 8004886: 68fa ldr r2, [r7, #12] + 8004888: 4313 orrs r3, r2 + 800488a: 60fb str r3, [r7, #12] } /* Set the auto-reload preload */ MODIFY_REG(tmpcr1, TIM_CR1_ARPE, Structure->AutoReloadPreload); - 8003e10: 68fb ldr r3, [r7, #12] - 8003e12: f023 0280 bic.w r2, r3, #128 ; 0x80 - 8003e16: 683b ldr r3, [r7, #0] - 8003e18: 695b ldr r3, [r3, #20] - 8003e1a: 4313 orrs r3, r2 - 8003e1c: 60fb str r3, [r7, #12] + 800488c: 68fb ldr r3, [r7, #12] + 800488e: f023 0280 bic.w r2, r3, #128 ; 0x80 + 8004892: 683b ldr r3, [r7, #0] + 8004894: 695b ldr r3, [r3, #20] + 8004896: 4313 orrs r3, r2 + 8004898: 60fb str r3, [r7, #12] TIMx->CR1 = tmpcr1; - 8003e1e: 687b ldr r3, [r7, #4] - 8003e20: 68fa ldr r2, [r7, #12] - 8003e22: 601a str r2, [r3, #0] + 800489a: 687b ldr r3, [r7, #4] + 800489c: 68fa ldr r2, [r7, #12] + 800489e: 601a str r2, [r3, #0] /* Set the Autoreload value */ TIMx->ARR = (uint32_t)Structure->Period ; - 8003e24: 683b ldr r3, [r7, #0] - 8003e26: 689a ldr r2, [r3, #8] - 8003e28: 687b ldr r3, [r7, #4] - 8003e2a: 62da str r2, [r3, #44] ; 0x2c + 80048a0: 683b ldr r3, [r7, #0] + 80048a2: 689a ldr r2, [r3, #8] + 80048a4: 687b ldr r3, [r7, #4] + 80048a6: 62da str r2, [r3, #44] ; 0x2c /* Set the Prescaler value */ TIMx->PSC = Structure->Prescaler; - 8003e2c: 683b ldr r3, [r7, #0] - 8003e2e: 681a ldr r2, [r3, #0] - 8003e30: 687b ldr r3, [r7, #4] - 8003e32: 629a str r2, [r3, #40] ; 0x28 + 80048a8: 683b ldr r3, [r7, #0] + 80048aa: 681a ldr r2, [r3, #0] + 80048ac: 687b ldr r3, [r7, #4] + 80048ae: 629a str r2, [r3, #40] ; 0x28 if (IS_TIM_REPETITION_COUNTER_INSTANCE(TIMx)) - 8003e34: 687b ldr r3, [r7, #4] - 8003e36: 4a09 ldr r2, [pc, #36] ; (8003e5c ) - 8003e38: 4293 cmp r3, r2 - 8003e3a: d003 beq.n 8003e44 - 8003e3c: 687b ldr r3, [r7, #4] - 8003e3e: 4a08 ldr r2, [pc, #32] ; (8003e60 ) - 8003e40: 4293 cmp r3, r2 - 8003e42: d103 bne.n 8003e4c + 80048b0: 687b ldr r3, [r7, #4] + 80048b2: 4a09 ldr r2, [pc, #36] ; (80048d8 ) + 80048b4: 4293 cmp r3, r2 + 80048b6: d003 beq.n 80048c0 + 80048b8: 687b ldr r3, [r7, #4] + 80048ba: 4a08 ldr r2, [pc, #32] ; (80048dc ) + 80048bc: 4293 cmp r3, r2 + 80048be: d103 bne.n 80048c8 { /* Set the Repetition Counter value */ TIMx->RCR = Structure->RepetitionCounter; - 8003e44: 683b ldr r3, [r7, #0] - 8003e46: 691a ldr r2, [r3, #16] - 8003e48: 687b ldr r3, [r7, #4] - 8003e4a: 631a str r2, [r3, #48] ; 0x30 + 80048c0: 683b ldr r3, [r7, #0] + 80048c2: 691a ldr r2, [r3, #16] + 80048c4: 687b ldr r3, [r7, #4] + 80048c6: 631a str r2, [r3, #48] ; 0x30 } /* Generate an update event to reload the Prescaler and the repetition counter (only for advanced timer) value immediately */ TIMx->EGR = TIM_EGR_UG; - 8003e4c: 687b ldr r3, [r7, #4] - 8003e4e: 2201 movs r2, #1 - 8003e50: 615a str r2, [r3, #20] + 80048c8: 687b ldr r3, [r7, #4] + 80048ca: 2201 movs r2, #1 + 80048cc: 615a str r2, [r3, #20] } - 8003e52: bf00 nop - 8003e54: 3714 adds r7, #20 - 8003e56: 46bd mov sp, r7 - 8003e58: bc80 pop {r7} - 8003e5a: 4770 bx lr - 8003e5c: 40012c00 .word 0x40012c00 - 8003e60: 40013400 .word 0x40013400 - 8003e64: 40000400 .word 0x40000400 - 8003e68: 40000800 .word 0x40000800 - 8003e6c: 40000c00 .word 0x40000c00 + 80048ce: bf00 nop + 80048d0: 3714 adds r7, #20 + 80048d2: 46bd mov sp, r7 + 80048d4: bc80 pop {r7} + 80048d6: 4770 bx lr + 80048d8: 40012c00 .word 0x40012c00 + 80048dc: 40013400 .word 0x40013400 + 80048e0: 40000400 .word 0x40000400 + 80048e4: 40000800 .word 0x40000800 + 80048e8: 40000c00 .word 0x40000c00 -08003e70 : +080048ec : * mode. * @retval HAL status */ HAL_StatusTypeDef HAL_TIMEx_MasterConfigSynchronization(TIM_HandleTypeDef *htim, TIM_MasterConfigTypeDef *sMasterConfig) { - 8003e70: b480 push {r7} - 8003e72: b085 sub sp, #20 - 8003e74: af00 add r7, sp, #0 - 8003e76: 6078 str r0, [r7, #4] - 8003e78: 6039 str r1, [r7, #0] + 80048ec: b480 push {r7} + 80048ee: b085 sub sp, #20 + 80048f0: af00 add r7, sp, #0 + 80048f2: 6078 str r0, [r7, #4] + 80048f4: 6039 str r1, [r7, #0] assert_param(IS_TIM_MASTER_INSTANCE(htim->Instance)); assert_param(IS_TIM_TRGO_SOURCE(sMasterConfig->MasterOutputTrigger)); assert_param(IS_TIM_MSM_STATE(sMasterConfig->MasterSlaveMode)); /* Check input state */ __HAL_LOCK(htim); - 8003e7a: 687b ldr r3, [r7, #4] - 8003e7c: f893 303c ldrb.w r3, [r3, #60] ; 0x3c - 8003e80: 2b01 cmp r3, #1 - 8003e82: d101 bne.n 8003e88 - 8003e84: 2302 movs r3, #2 - 8003e86: e050 b.n 8003f2a - 8003e88: 687b ldr r3, [r7, #4] - 8003e8a: 2201 movs r2, #1 - 8003e8c: f883 203c strb.w r2, [r3, #60] ; 0x3c + 80048f6: 687b ldr r3, [r7, #4] + 80048f8: f893 303c ldrb.w r3, [r3, #60] ; 0x3c + 80048fc: 2b01 cmp r3, #1 + 80048fe: d101 bne.n 8004904 + 8004900: 2302 movs r3, #2 + 8004902: e050 b.n 80049a6 + 8004904: 687b ldr r3, [r7, #4] + 8004906: 2201 movs r2, #1 + 8004908: f883 203c strb.w r2, [r3, #60] ; 0x3c /* Change the handler state */ htim->State = HAL_TIM_STATE_BUSY; - 8003e90: 687b ldr r3, [r7, #4] - 8003e92: 2202 movs r2, #2 - 8003e94: f883 203d strb.w r2, [r3, #61] ; 0x3d + 800490c: 687b ldr r3, [r7, #4] + 800490e: 2202 movs r2, #2 + 8004910: f883 203d strb.w r2, [r3, #61] ; 0x3d /* Get the TIMx CR2 register value */ tmpcr2 = htim->Instance->CR2; - 8003e98: 687b ldr r3, [r7, #4] - 8003e9a: 681b ldr r3, [r3, #0] - 8003e9c: 685b ldr r3, [r3, #4] - 8003e9e: 60fb str r3, [r7, #12] + 8004914: 687b ldr r3, [r7, #4] + 8004916: 681b ldr r3, [r3, #0] + 8004918: 685b ldr r3, [r3, #4] + 800491a: 60fb str r3, [r7, #12] /* Get the TIMx SMCR register value */ tmpsmcr = htim->Instance->SMCR; - 8003ea0: 687b ldr r3, [r7, #4] - 8003ea2: 681b ldr r3, [r3, #0] - 8003ea4: 689b ldr r3, [r3, #8] - 8003ea6: 60bb str r3, [r7, #8] + 800491c: 687b ldr r3, [r7, #4] + 800491e: 681b ldr r3, [r3, #0] + 8004920: 689b ldr r3, [r3, #8] + 8004922: 60bb str r3, [r7, #8] /* Reset the MMS Bits */ tmpcr2 &= ~TIM_CR2_MMS; - 8003ea8: 68fb ldr r3, [r7, #12] - 8003eaa: f023 0370 bic.w r3, r3, #112 ; 0x70 - 8003eae: 60fb str r3, [r7, #12] + 8004924: 68fb ldr r3, [r7, #12] + 8004926: f023 0370 bic.w r3, r3, #112 ; 0x70 + 800492a: 60fb str r3, [r7, #12] /* Select the TRGO source */ tmpcr2 |= sMasterConfig->MasterOutputTrigger; - 8003eb0: 683b ldr r3, [r7, #0] - 8003eb2: 681b ldr r3, [r3, #0] - 8003eb4: 68fa ldr r2, [r7, #12] - 8003eb6: 4313 orrs r3, r2 - 8003eb8: 60fb str r3, [r7, #12] + 800492c: 683b ldr r3, [r7, #0] + 800492e: 681b ldr r3, [r3, #0] + 8004930: 68fa ldr r2, [r7, #12] + 8004932: 4313 orrs r3, r2 + 8004934: 60fb str r3, [r7, #12] /* Update TIMx CR2 */ htim->Instance->CR2 = tmpcr2; - 8003eba: 687b ldr r3, [r7, #4] - 8003ebc: 681b ldr r3, [r3, #0] - 8003ebe: 68fa ldr r2, [r7, #12] - 8003ec0: 605a str r2, [r3, #4] + 8004936: 687b ldr r3, [r7, #4] + 8004938: 681b ldr r3, [r3, #0] + 800493a: 68fa ldr r2, [r7, #12] + 800493c: 605a str r2, [r3, #4] if (IS_TIM_SLAVE_INSTANCE(htim->Instance)) - 8003ec2: 687b ldr r3, [r7, #4] - 8003ec4: 681b ldr r3, [r3, #0] - 8003ec6: 4a1b ldr r2, [pc, #108] ; (8003f34 ) - 8003ec8: 4293 cmp r3, r2 - 8003eca: d018 beq.n 8003efe - 8003ecc: 687b ldr r3, [r7, #4] - 8003ece: 681b ldr r3, [r3, #0] - 8003ed0: 4a19 ldr r2, [pc, #100] ; (8003f38 ) - 8003ed2: 4293 cmp r3, r2 - 8003ed4: d013 beq.n 8003efe - 8003ed6: 687b ldr r3, [r7, #4] - 8003ed8: 681b ldr r3, [r3, #0] - 8003eda: f1b3 4f80 cmp.w r3, #1073741824 ; 0x40000000 - 8003ede: d00e beq.n 8003efe - 8003ee0: 687b ldr r3, [r7, #4] - 8003ee2: 681b ldr r3, [r3, #0] - 8003ee4: 4a15 ldr r2, [pc, #84] ; (8003f3c ) - 8003ee6: 4293 cmp r3, r2 - 8003ee8: d009 beq.n 8003efe - 8003eea: 687b ldr r3, [r7, #4] - 8003eec: 681b ldr r3, [r3, #0] - 8003eee: 4a14 ldr r2, [pc, #80] ; (8003f40 ) - 8003ef0: 4293 cmp r3, r2 - 8003ef2: d004 beq.n 8003efe - 8003ef4: 687b ldr r3, [r7, #4] - 8003ef6: 681b ldr r3, [r3, #0] - 8003ef8: 4a12 ldr r2, [pc, #72] ; (8003f44 ) - 8003efa: 4293 cmp r3, r2 - 8003efc: d10c bne.n 8003f18 + 800493e: 687b ldr r3, [r7, #4] + 8004940: 681b ldr r3, [r3, #0] + 8004942: 4a1b ldr r2, [pc, #108] ; (80049b0 ) + 8004944: 4293 cmp r3, r2 + 8004946: d018 beq.n 800497a + 8004948: 687b ldr r3, [r7, #4] + 800494a: 681b ldr r3, [r3, #0] + 800494c: 4a19 ldr r2, [pc, #100] ; (80049b4 ) + 800494e: 4293 cmp r3, r2 + 8004950: d013 beq.n 800497a + 8004952: 687b ldr r3, [r7, #4] + 8004954: 681b ldr r3, [r3, #0] + 8004956: f1b3 4f80 cmp.w r3, #1073741824 ; 0x40000000 + 800495a: d00e beq.n 800497a + 800495c: 687b ldr r3, [r7, #4] + 800495e: 681b ldr r3, [r3, #0] + 8004960: 4a15 ldr r2, [pc, #84] ; (80049b8 ) + 8004962: 4293 cmp r3, r2 + 8004964: d009 beq.n 800497a + 8004966: 687b ldr r3, [r7, #4] + 8004968: 681b ldr r3, [r3, #0] + 800496a: 4a14 ldr r2, [pc, #80] ; (80049bc ) + 800496c: 4293 cmp r3, r2 + 800496e: d004 beq.n 800497a + 8004970: 687b ldr r3, [r7, #4] + 8004972: 681b ldr r3, [r3, #0] + 8004974: 4a12 ldr r2, [pc, #72] ; (80049c0 ) + 8004976: 4293 cmp r3, r2 + 8004978: d10c bne.n 8004994 { /* Reset the MSM Bit */ tmpsmcr &= ~TIM_SMCR_MSM; - 8003efe: 68bb ldr r3, [r7, #8] - 8003f00: f023 0380 bic.w r3, r3, #128 ; 0x80 - 8003f04: 60bb str r3, [r7, #8] + 800497a: 68bb ldr r3, [r7, #8] + 800497c: f023 0380 bic.w r3, r3, #128 ; 0x80 + 8004980: 60bb str r3, [r7, #8] /* Set master mode */ tmpsmcr |= sMasterConfig->MasterSlaveMode; - 8003f06: 683b ldr r3, [r7, #0] - 8003f08: 685b ldr r3, [r3, #4] - 8003f0a: 68ba ldr r2, [r7, #8] - 8003f0c: 4313 orrs r3, r2 - 8003f0e: 60bb str r3, [r7, #8] + 8004982: 683b ldr r3, [r7, #0] + 8004984: 685b ldr r3, [r3, #4] + 8004986: 68ba ldr r2, [r7, #8] + 8004988: 4313 orrs r3, r2 + 800498a: 60bb str r3, [r7, #8] /* Update TIMx SMCR */ htim->Instance->SMCR = tmpsmcr; - 8003f10: 687b ldr r3, [r7, #4] - 8003f12: 681b ldr r3, [r3, #0] - 8003f14: 68ba ldr r2, [r7, #8] - 8003f16: 609a str r2, [r3, #8] + 800498c: 687b ldr r3, [r7, #4] + 800498e: 681b ldr r3, [r3, #0] + 8004990: 68ba ldr r2, [r7, #8] + 8004992: 609a str r2, [r3, #8] } /* Change the htim state */ htim->State = HAL_TIM_STATE_READY; - 8003f18: 687b ldr r3, [r7, #4] - 8003f1a: 2201 movs r2, #1 - 8003f1c: f883 203d strb.w r2, [r3, #61] ; 0x3d + 8004994: 687b ldr r3, [r7, #4] + 8004996: 2201 movs r2, #1 + 8004998: f883 203d strb.w r2, [r3, #61] ; 0x3d __HAL_UNLOCK(htim); - 8003f20: 687b ldr r3, [r7, #4] - 8003f22: 2200 movs r2, #0 - 8003f24: f883 203c strb.w r2, [r3, #60] ; 0x3c + 800499c: 687b ldr r3, [r7, #4] + 800499e: 2200 movs r2, #0 + 80049a0: f883 203c strb.w r2, [r3, #60] ; 0x3c return HAL_OK; - 8003f28: 2300 movs r3, #0 + 80049a4: 2300 movs r3, #0 } - 8003f2a: 4618 mov r0, r3 - 8003f2c: 3714 adds r7, #20 - 8003f2e: 46bd mov sp, r7 - 8003f30: bc80 pop {r7} - 8003f32: 4770 bx lr - 8003f34: 40012c00 .word 0x40012c00 - 8003f38: 40013400 .word 0x40013400 - 8003f3c: 40000400 .word 0x40000400 - 8003f40: 40000800 .word 0x40000800 - 8003f44: 40000c00 .word 0x40000c00 + 80049a6: 4618 mov r0, r3 + 80049a8: 3714 adds r7, #20 + 80049aa: 46bd mov sp, r7 + 80049ac: bc80 pop {r7} + 80049ae: 4770 bx lr + 80049b0: 40012c00 .word 0x40012c00 + 80049b4: 40013400 .word 0x40013400 + 80049b8: 40000400 .word 0x40000400 + 80049bc: 40000800 .word 0x40000800 + 80049c0: 40000c00 .word 0x40000c00 -08003f48 : +080049c4 : * @brief Hall commutation changed callback in non-blocking mode * @param htim TIM handle * @retval None */ __weak void HAL_TIMEx_CommutCallback(TIM_HandleTypeDef *htim) { - 8003f48: b480 push {r7} - 8003f4a: b083 sub sp, #12 - 8003f4c: af00 add r7, sp, #0 - 8003f4e: 6078 str r0, [r7, #4] + 80049c4: b480 push {r7} + 80049c6: b083 sub sp, #12 + 80049c8: af00 add r7, sp, #0 + 80049ca: 6078 str r0, [r7, #4] UNUSED(htim); /* NOTE : This function should not be modified, when the callback is needed, the HAL_TIMEx_CommutCallback could be implemented in the user file */ } - 8003f50: bf00 nop - 8003f52: 370c adds r7, #12 - 8003f54: 46bd mov sp, r7 - 8003f56: bc80 pop {r7} - 8003f58: 4770 bx lr + 80049cc: bf00 nop + 80049ce: 370c adds r7, #12 + 80049d0: 46bd mov sp, r7 + 80049d2: bc80 pop {r7} + 80049d4: 4770 bx lr -08003f5a : +080049d6 : * @brief Hall Break detection callback in non-blocking mode * @param htim TIM handle * @retval None */ __weak void HAL_TIMEx_BreakCallback(TIM_HandleTypeDef *htim) { - 8003f5a: b480 push {r7} - 8003f5c: b083 sub sp, #12 - 8003f5e: af00 add r7, sp, #0 - 8003f60: 6078 str r0, [r7, #4] + 80049d6: b480 push {r7} + 80049d8: b083 sub sp, #12 + 80049da: af00 add r7, sp, #0 + 80049dc: 6078 str r0, [r7, #4] UNUSED(htim); /* NOTE : This function should not be modified, when the callback is needed, the HAL_TIMEx_BreakCallback could be implemented in the user file */ } - 8003f62: bf00 nop - 8003f64: 370c adds r7, #12 - 8003f66: 46bd mov sp, r7 - 8003f68: bc80 pop {r7} - 8003f6a: 4770 bx lr + 80049de: bf00 nop + 80049e0: 370c adds r7, #12 + 80049e2: 46bd mov sp, r7 + 80049e4: bc80 pop {r7} + 80049e6: 4770 bx lr -08003f6c : +080049e8 : * @param Init Pointer to NORSRAM Initialization structure * @retval HAL status */ HAL_StatusTypeDef FSMC_NORSRAM_Init(FSMC_NORSRAM_TypeDef *Device, FSMC_NORSRAM_InitTypeDef *Init) { - 8003f6c: b480 push {r7} - 8003f6e: b087 sub sp, #28 - 8003f70: af00 add r7, sp, #0 - 8003f72: 6078 str r0, [r7, #4] - 8003f74: 6039 str r1, [r7, #0] + 80049e8: b480 push {r7} + 80049ea: b087 sub sp, #28 + 80049ec: af00 add r7, sp, #0 + 80049ee: 6078 str r0, [r7, #4] + 80049f0: 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); - 8003f76: 683b ldr r3, [r7, #0] - 8003f78: 681a ldr r2, [r3, #0] - 8003f7a: 687b ldr r3, [r7, #4] - 8003f7c: f853 3022 ldr.w r3, [r3, r2, lsl #2] - 8003f80: 683a ldr r2, [r7, #0] - 8003f82: 6812 ldr r2, [r2, #0] - 8003f84: f023 0101 bic.w r1, r3, #1 - 8003f88: 687b ldr r3, [r7, #4] - 8003f8a: f843 1022 str.w r1, [r3, r2, lsl #2] + 80049f2: 683b ldr r3, [r7, #0] + 80049f4: 681a ldr r2, [r3, #0] + 80049f6: 687b ldr r3, [r7, #4] + 80049f8: f853 3022 ldr.w r3, [r3, r2, lsl #2] + 80049fc: 683a ldr r2, [r7, #0] + 80049fe: 6812 ldr r2, [r2, #0] + 8004a00: f023 0101 bic.w r1, r3, #1 + 8004a04: 687b ldr r3, [r7, #4] + 8004a06: f843 1022 str.w r1, [r3, r2, lsl #2] /* Set NORSRAM device control parameters */ if (Init->MemoryType == FSMC_MEMORY_TYPE_NOR) - 8003f8e: 683b ldr r3, [r7, #0] - 8003f90: 689b ldr r3, [r3, #8] - 8003f92: 2b08 cmp r3, #8 - 8003f94: d102 bne.n 8003f9c + 8004a0a: 683b ldr r3, [r7, #0] + 8004a0c: 689b ldr r3, [r3, #8] + 8004a0e: 2b08 cmp r3, #8 + 8004a10: d102 bne.n 8004a18 { flashaccess = FSMC_NORSRAM_FLASH_ACCESS_ENABLE; - 8003f96: 2340 movs r3, #64 ; 0x40 - 8003f98: 617b str r3, [r7, #20] - 8003f9a: e001 b.n 8003fa0 + 8004a12: 2340 movs r3, #64 ; 0x40 + 8004a14: 617b str r3, [r7, #20] + 8004a16: e001 b.n 8004a1c } else { flashaccess = FSMC_NORSRAM_FLASH_ACCESS_DISABLE; - 8003f9c: 2300 movs r3, #0 - 8003f9e: 617b str r3, [r7, #20] + 8004a18: 2300 movs r3, #0 + 8004a1a: 617b str r3, [r7, #20] } btcr_reg = (flashaccess | \ Init->DataAddressMux | \ - 8003fa0: 683b ldr r3, [r7, #0] - 8003fa2: 685a ldr r2, [r3, #4] + 8004a1c: 683b ldr r3, [r7, #0] + 8004a1e: 685a ldr r2, [r3, #4] btcr_reg = (flashaccess | \ - 8003fa4: 697b ldr r3, [r7, #20] - 8003fa6: 431a orrs r2, r3 + 8004a20: 697b ldr r3, [r7, #20] + 8004a22: 431a orrs r2, r3 Init->MemoryType | \ - 8003fa8: 683b ldr r3, [r7, #0] - 8003faa: 689b ldr r3, [r3, #8] + 8004a24: 683b ldr r3, [r7, #0] + 8004a26: 689b ldr r3, [r3, #8] Init->DataAddressMux | \ - 8003fac: 431a orrs r2, r3 + 8004a28: 431a orrs r2, r3 Init->MemoryDataWidth | \ - 8003fae: 683b ldr r3, [r7, #0] - 8003fb0: 68db ldr r3, [r3, #12] + 8004a2a: 683b ldr r3, [r7, #0] + 8004a2c: 68db ldr r3, [r3, #12] Init->MemoryType | \ - 8003fb2: 431a orrs r2, r3 + 8004a2e: 431a orrs r2, r3 Init->BurstAccessMode | \ - 8003fb4: 683b ldr r3, [r7, #0] - 8003fb6: 691b ldr r3, [r3, #16] + 8004a30: 683b ldr r3, [r7, #0] + 8004a32: 691b ldr r3, [r3, #16] Init->MemoryDataWidth | \ - 8003fb8: 431a orrs r2, r3 + 8004a34: 431a orrs r2, r3 Init->WaitSignalPolarity | \ - 8003fba: 683b ldr r3, [r7, #0] - 8003fbc: 695b ldr r3, [r3, #20] + 8004a36: 683b ldr r3, [r7, #0] + 8004a38: 695b ldr r3, [r3, #20] Init->BurstAccessMode | \ - 8003fbe: 431a orrs r2, r3 + 8004a3a: 431a orrs r2, r3 Init->WaitSignalActive | \ - 8003fc0: 683b ldr r3, [r7, #0] - 8003fc2: 69db ldr r3, [r3, #28] + 8004a3c: 683b ldr r3, [r7, #0] + 8004a3e: 69db ldr r3, [r3, #28] Init->WaitSignalPolarity | \ - 8003fc4: 431a orrs r2, r3 + 8004a40: 431a orrs r2, r3 Init->WriteOperation | \ - 8003fc6: 683b ldr r3, [r7, #0] - 8003fc8: 6a1b ldr r3, [r3, #32] + 8004a42: 683b ldr r3, [r7, #0] + 8004a44: 6a1b ldr r3, [r3, #32] Init->WaitSignalActive | \ - 8003fca: 431a orrs r2, r3 + 8004a46: 431a orrs r2, r3 Init->WaitSignal | \ - 8003fcc: 683b ldr r3, [r7, #0] - 8003fce: 6a5b ldr r3, [r3, #36] ; 0x24 + 8004a48: 683b ldr r3, [r7, #0] + 8004a4a: 6a5b ldr r3, [r3, #36] ; 0x24 Init->WriteOperation | \ - 8003fd0: 431a orrs r2, r3 + 8004a4c: 431a orrs r2, r3 Init->ExtendedMode | \ - 8003fd2: 683b ldr r3, [r7, #0] - 8003fd4: 6a9b ldr r3, [r3, #40] ; 0x28 + 8004a4e: 683b ldr r3, [r7, #0] + 8004a50: 6a9b ldr r3, [r3, #40] ; 0x28 Init->WaitSignal | \ - 8003fd6: 431a orrs r2, r3 + 8004a52: 431a orrs r2, r3 Init->AsynchronousWait | \ - 8003fd8: 683b ldr r3, [r7, #0] - 8003fda: 6adb ldr r3, [r3, #44] ; 0x2c + 8004a54: 683b ldr r3, [r7, #0] + 8004a56: 6adb ldr r3, [r3, #44] ; 0x2c Init->ExtendedMode | \ - 8003fdc: 431a orrs r2, r3 + 8004a58: 431a orrs r2, r3 Init->WriteBurst); - 8003fde: 683b ldr r3, [r7, #0] - 8003fe0: 6b1b ldr r3, [r3, #48] ; 0x30 + 8004a5a: 683b ldr r3, [r7, #0] + 8004a5c: 6b1b ldr r3, [r3, #48] ; 0x30 btcr_reg = (flashaccess | \ - 8003fe2: 4313 orrs r3, r2 - 8003fe4: 613b str r3, [r7, #16] + 8004a5e: 4313 orrs r3, r2 + 8004a60: 613b str r3, [r7, #16] btcr_reg |= Init->WrapMode; - 8003fe6: 683b ldr r3, [r7, #0] - 8003fe8: 699b ldr r3, [r3, #24] - 8003fea: 693a ldr r2, [r7, #16] - 8003fec: 4313 orrs r3, r2 - 8003fee: 613b str r3, [r7, #16] + 8004a62: 683b ldr r3, [r7, #0] + 8004a64: 699b ldr r3, [r3, #24] + 8004a66: 693a ldr r2, [r7, #16] + 8004a68: 4313 orrs r3, r2 + 8004a6a: 613b str r3, [r7, #16] btcr_reg |= Init->PageSize; - 8003ff0: 683b ldr r3, [r7, #0] - 8003ff2: 6b5b ldr r3, [r3, #52] ; 0x34 - 8003ff4: 693a ldr r2, [r7, #16] - 8003ff6: 4313 orrs r3, r2 - 8003ff8: 613b str r3, [r7, #16] + 8004a6c: 683b ldr r3, [r7, #0] + 8004a6e: 6b5b ldr r3, [r3, #52] ; 0x34 + 8004a70: 693a ldr r2, [r7, #16] + 8004a72: 4313 orrs r3, r2 + 8004a74: 613b str r3, [r7, #16] mask = (FSMC_BCRx_MBKEN | - 8003ffa: 4b10 ldr r3, [pc, #64] ; (800403c ) - 8003ffc: 60fb str r3, [r7, #12] + 8004a76: 4b10 ldr r3, [pc, #64] ; (8004ab8 ) + 8004a78: 60fb str r3, [r7, #12] FSMC_BCRx_WAITEN | FSMC_BCRx_EXTMOD | FSMC_BCRx_ASYNCWAIT | FSMC_BCRx_CBURSTRW); mask |= FSMC_BCRx_WRAPMOD; - 8003ffe: 68fb ldr r3, [r7, #12] - 8004000: f443 6380 orr.w r3, r3, #1024 ; 0x400 - 8004004: 60fb str r3, [r7, #12] + 8004a7a: 68fb ldr r3, [r7, #12] + 8004a7c: f443 6380 orr.w r3, r3, #1024 ; 0x400 + 8004a80: 60fb str r3, [r7, #12] mask |= 0x00070000U; /* CPSIZE to be defined in CMSIS file */ - 8004006: 68fb ldr r3, [r7, #12] - 8004008: f443 23e0 orr.w r3, r3, #458752 ; 0x70000 - 800400c: 60fb str r3, [r7, #12] + 8004a82: 68fb ldr r3, [r7, #12] + 8004a84: f443 23e0 orr.w r3, r3, #458752 ; 0x70000 + 8004a88: 60fb str r3, [r7, #12] MODIFY_REG(Device->BTCR[Init->NSBank], mask, btcr_reg); - 800400e: 683b ldr r3, [r7, #0] - 8004010: 681a ldr r2, [r3, #0] - 8004012: 687b ldr r3, [r7, #4] - 8004014: f853 2022 ldr.w r2, [r3, r2, lsl #2] - 8004018: 68fb ldr r3, [r7, #12] - 800401a: 43db mvns r3, r3 - 800401c: ea02 0103 and.w r1, r2, r3 - 8004020: 683b ldr r3, [r7, #0] - 8004022: 681a ldr r2, [r3, #0] - 8004024: 693b ldr r3, [r7, #16] - 8004026: 4319 orrs r1, r3 - 8004028: 687b ldr r3, [r7, #4] - 800402a: f843 1022 str.w r1, [r3, r2, lsl #2] + 8004a8a: 683b ldr r3, [r7, #0] + 8004a8c: 681a ldr r2, [r3, #0] + 8004a8e: 687b ldr r3, [r7, #4] + 8004a90: f853 2022 ldr.w r2, [r3, r2, lsl #2] + 8004a94: 68fb ldr r3, [r7, #12] + 8004a96: 43db mvns r3, r3 + 8004a98: ea02 0103 and.w r1, r2, r3 + 8004a9c: 683b ldr r3, [r7, #0] + 8004a9e: 681a ldr r2, [r3, #0] + 8004aa0: 693b ldr r3, [r7, #16] + 8004aa2: 4319 orrs r1, r3 + 8004aa4: 687b ldr r3, [r7, #4] + 8004aa6: f843 1022 str.w r1, [r3, r2, lsl #2] return HAL_OK; - 800402e: 2300 movs r3, #0 + 8004aaa: 2300 movs r3, #0 } - 8004030: 4618 mov r0, r3 - 8004032: 371c adds r7, #28 - 8004034: 46bd mov sp, r7 - 8004036: bc80 pop {r7} - 8004038: 4770 bx lr - 800403a: bf00 nop - 800403c: 0008fb7f .word 0x0008fb7f + 8004aac: 4618 mov r0, r3 + 8004aae: 371c adds r7, #28 + 8004ab0: 46bd mov sp, r7 + 8004ab2: bc80 pop {r7} + 8004ab4: 4770 bx lr + 8004ab6: bf00 nop + 8004ab8: 0008fb7f .word 0x0008fb7f -08004040 : +08004abc : * @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) { - 8004040: b480 push {r7} - 8004042: b085 sub sp, #20 - 8004044: af00 add r7, sp, #0 - 8004046: 60f8 str r0, [r7, #12] - 8004048: 60b9 str r1, [r7, #8] - 800404a: 607a str r2, [r7, #4] + 8004abc: b480 push {r7} + 8004abe: b085 sub sp, #20 + 8004ac0: af00 add r7, sp, #0 + 8004ac2: 60f8 str r0, [r7, #12] + 8004ac4: 60b9 str r1, [r7, #8] + 8004ac6: 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 | - 800404c: 687b ldr r3, [r7, #4] - 800404e: 1c5a adds r2, r3, #1 - 8004050: 68fb ldr r3, [r7, #12] - 8004052: f853 3022 ldr.w r3, [r3, r2, lsl #2] - 8004056: f003 4140 and.w r1, r3, #3221225472 ; 0xc0000000 - 800405a: 68bb ldr r3, [r7, #8] - 800405c: 681a ldr r2, [r3, #0] - 800405e: 68bb ldr r3, [r7, #8] - 8004060: 685b ldr r3, [r3, #4] - 8004062: 011b lsls r3, r3, #4 - 8004064: 431a orrs r2, r3 - 8004066: 68bb ldr r3, [r7, #8] - 8004068: 689b ldr r3, [r3, #8] - 800406a: 021b lsls r3, r3, #8 - 800406c: 431a orrs r2, r3 - 800406e: 68bb ldr r3, [r7, #8] - 8004070: 68db ldr r3, [r3, #12] - 8004072: 041b lsls r3, r3, #16 - 8004074: 431a orrs r2, r3 - 8004076: 68bb ldr r3, [r7, #8] - 8004078: 691b ldr r3, [r3, #16] - 800407a: 3b01 subs r3, #1 - 800407c: 051b lsls r3, r3, #20 - 800407e: 431a orrs r2, r3 - 8004080: 68bb ldr r3, [r7, #8] - 8004082: 695b ldr r3, [r3, #20] - 8004084: 3b02 subs r3, #2 - 8004086: 061b lsls r3, r3, #24 - 8004088: 431a orrs r2, r3 - 800408a: 68bb ldr r3, [r7, #8] - 800408c: 699b ldr r3, [r3, #24] - 800408e: 4313 orrs r3, r2 - 8004090: 687a ldr r2, [r7, #4] - 8004092: 3201 adds r2, #1 - 8004094: 4319 orrs r1, r3 - 8004096: 68fb ldr r3, [r7, #12] - 8004098: f843 1022 str.w r1, [r3, r2, lsl #2] + 8004ac8: 687b ldr r3, [r7, #4] + 8004aca: 1c5a adds r2, r3, #1 + 8004acc: 68fb ldr r3, [r7, #12] + 8004ace: f853 3022 ldr.w r3, [r3, r2, lsl #2] + 8004ad2: f003 4140 and.w r1, r3, #3221225472 ; 0xc0000000 + 8004ad6: 68bb ldr r3, [r7, #8] + 8004ad8: 681a ldr r2, [r3, #0] + 8004ada: 68bb ldr r3, [r7, #8] + 8004adc: 685b ldr r3, [r3, #4] + 8004ade: 011b lsls r3, r3, #4 + 8004ae0: 431a orrs r2, r3 + 8004ae2: 68bb ldr r3, [r7, #8] + 8004ae4: 689b ldr r3, [r3, #8] + 8004ae6: 021b lsls r3, r3, #8 + 8004ae8: 431a orrs r2, r3 + 8004aea: 68bb ldr r3, [r7, #8] + 8004aec: 68db ldr r3, [r3, #12] + 8004aee: 041b lsls r3, r3, #16 + 8004af0: 431a orrs r2, r3 + 8004af2: 68bb ldr r3, [r7, #8] + 8004af4: 691b ldr r3, [r3, #16] + 8004af6: 3b01 subs r3, #1 + 8004af8: 051b lsls r3, r3, #20 + 8004afa: 431a orrs r2, r3 + 8004afc: 68bb ldr r3, [r7, #8] + 8004afe: 695b ldr r3, [r3, #20] + 8004b00: 3b02 subs r3, #2 + 8004b02: 061b lsls r3, r3, #24 + 8004b04: 431a orrs r2, r3 + 8004b06: 68bb ldr r3, [r7, #8] + 8004b08: 699b ldr r3, [r3, #24] + 8004b0a: 4313 orrs r3, r2 + 8004b0c: 687a ldr r2, [r7, #4] + 8004b0e: 3201 adds r2, #1 + 8004b10: 4319 orrs r1, r3 + 8004b12: 68fb ldr r3, [r7, #12] + 8004b14: 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; - 800409c: 2300 movs r3, #0 + 8004b18: 2300 movs r3, #0 } - 800409e: 4618 mov r0, r3 - 80040a0: 3714 adds r7, #20 - 80040a2: 46bd mov sp, r7 - 80040a4: bc80 pop {r7} - 80040a6: 4770 bx lr + 8004b1a: 4618 mov r0, r3 + 8004b1c: 3714 adds r7, #20 + 8004b1e: 46bd mov sp, r7 + 8004b20: bc80 pop {r7} + 8004b22: 4770 bx lr -080040a8 : +08004b24 : * @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) { - 80040a8: b480 push {r7} - 80040aa: b085 sub sp, #20 - 80040ac: af00 add r7, sp, #0 - 80040ae: 60f8 str r0, [r7, #12] - 80040b0: 60b9 str r1, [r7, #8] - 80040b2: 607a str r2, [r7, #4] - 80040b4: 603b str r3, [r7, #0] + 8004b24: b480 push {r7} + 8004b26: b085 sub sp, #20 + 8004b28: af00 add r7, sp, #0 + 8004b2a: 60f8 str r0, [r7, #12] + 8004b2c: 60b9 str r1, [r7, #8] + 8004b2e: 607a str r2, [r7, #4] + 8004b30: 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) - 80040b6: 683b ldr r3, [r7, #0] - 80040b8: f5b3 4f80 cmp.w r3, #16384 ; 0x4000 - 80040bc: d11d bne.n 80040fa + 8004b32: 683b ldr r3, [r7, #0] + 8004b34: f5b3 4f80 cmp.w r3, #16384 ; 0x4000 + 8004b38: d11d bne.n 8004b76 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 | - 80040be: 68fb ldr r3, [r7, #12] - 80040c0: 687a ldr r2, [r7, #4] - 80040c2: f853 2022 ldr.w r2, [r3, r2, lsl #2] - 80040c6: 4b13 ldr r3, [pc, #76] ; (8004114 ) - 80040c8: 4013 ands r3, r2 - 80040ca: 68ba ldr r2, [r7, #8] - 80040cc: 6811 ldr r1, [r2, #0] - 80040ce: 68ba ldr r2, [r7, #8] - 80040d0: 6852 ldr r2, [r2, #4] - 80040d2: 0112 lsls r2, r2, #4 - 80040d4: 4311 orrs r1, r2 - 80040d6: 68ba ldr r2, [r7, #8] - 80040d8: 6892 ldr r2, [r2, #8] - 80040da: 0212 lsls r2, r2, #8 - 80040dc: 4311 orrs r1, r2 - 80040de: 68ba ldr r2, [r7, #8] - 80040e0: 6992 ldr r2, [r2, #24] - 80040e2: 4311 orrs r1, r2 - 80040e4: 68ba ldr r2, [r7, #8] - 80040e6: 68d2 ldr r2, [r2, #12] - 80040e8: 0412 lsls r2, r2, #16 - 80040ea: 430a orrs r2, r1 - 80040ec: ea43 0102 orr.w r1, r3, r2 - 80040f0: 68fb ldr r3, [r7, #12] - 80040f2: 687a ldr r2, [r7, #4] - 80040f4: f843 1022 str.w r1, [r3, r2, lsl #2] - 80040f8: e005 b.n 8004106 + 8004b3a: 68fb ldr r3, [r7, #12] + 8004b3c: 687a ldr r2, [r7, #4] + 8004b3e: f853 2022 ldr.w r2, [r3, r2, lsl #2] + 8004b42: 4b13 ldr r3, [pc, #76] ; (8004b90 ) + 8004b44: 4013 ands r3, r2 + 8004b46: 68ba ldr r2, [r7, #8] + 8004b48: 6811 ldr r1, [r2, #0] + 8004b4a: 68ba ldr r2, [r7, #8] + 8004b4c: 6852 ldr r2, [r2, #4] + 8004b4e: 0112 lsls r2, r2, #4 + 8004b50: 4311 orrs r1, r2 + 8004b52: 68ba ldr r2, [r7, #8] + 8004b54: 6892 ldr r2, [r2, #8] + 8004b56: 0212 lsls r2, r2, #8 + 8004b58: 4311 orrs r1, r2 + 8004b5a: 68ba ldr r2, [r7, #8] + 8004b5c: 6992 ldr r2, [r2, #24] + 8004b5e: 4311 orrs r1, r2 + 8004b60: 68ba ldr r2, [r7, #8] + 8004b62: 68d2 ldr r2, [r2, #12] + 8004b64: 0412 lsls r2, r2, #16 + 8004b66: 430a orrs r2, r1 + 8004b68: ea43 0102 orr.w r1, r3, r2 + 8004b6c: 68fb ldr r3, [r7, #12] + 8004b6e: 687a ldr r2, [r7, #4] + 8004b70: f843 1022 str.w r1, [r3, r2, lsl #2] + 8004b74: e005 b.n 8004b82 (((Timing->DataLatency) - 2U) << FSMC_BWTRx_DATLAT_Pos))); #endif /* FSMC_BWTRx_BUSTURN */ } else { Device->BWTR[Bank] = 0x0FFFFFFFU; - 80040fa: 68fb ldr r3, [r7, #12] - 80040fc: 687a ldr r2, [r7, #4] - 80040fe: f06f 4170 mvn.w r1, #4026531840 ; 0xf0000000 - 8004102: f843 1022 str.w r1, [r3, r2, lsl #2] + 8004b76: 68fb ldr r3, [r7, #12] + 8004b78: 687a ldr r2, [r7, #4] + 8004b7a: f06f 4170 mvn.w r1, #4026531840 ; 0xf0000000 + 8004b7e: f843 1022 str.w r1, [r3, r2, lsl #2] } return HAL_OK; - 8004106: 2300 movs r3, #0 + 8004b82: 2300 movs r3, #0 } - 8004108: 4618 mov r0, r3 - 800410a: 3714 adds r7, #20 - 800410c: 46bd mov sp, r7 - 800410e: bc80 pop {r7} - 8004110: 4770 bx lr - 8004112: bf00 nop - 8004114: cff00000 .word 0xcff00000 + 8004b84: 4618 mov r0, r3 + 8004b86: 3714 adds r7, #20 + 8004b88: 46bd mov sp, r7 + 8004b8a: bc80 pop {r7} + 8004b8c: 4770 bx lr + 8004b8e: bf00 nop + 8004b90: cff00000 .word 0xcff00000 -08004118 : +08004b94 : _lcd_dev lcddev; //管理LCD重要参数 //**************************************************几种快速接口 //写寄存器函数 //regval:寄存器值 void LCD_WR_REG(uint16_t regval) { - 8004118: b480 push {r7} - 800411a: b083 sub sp, #12 - 800411c: af00 add r7, sp, #0 - 800411e: 4603 mov r3, r0 - 8004120: 80fb strh r3, [r7, #6] + 8004b94: b480 push {r7} + 8004b96: b083 sub sp, #12 + 8004b98: af00 add r7, sp, #0 + 8004b9a: 4603 mov r3, r0 + 8004b9c: 80fb strh r3, [r7, #6] LCD_REG_ADDRESS=regval;//写入要写的寄存器序号 - 8004122: f04f 42d8 mov.w r2, #1811939328 ; 0x6c000000 - 8004126: 88fb ldrh r3, [r7, #6] - 8004128: 8013 strh r3, [r2, #0] + 8004b9e: f04f 42d8 mov.w r2, #1811939328 ; 0x6c000000 + 8004ba2: 88fb ldrh r3, [r7, #6] + 8004ba4: 8013 strh r3, [r2, #0] } - 800412a: bf00 nop - 800412c: 370c adds r7, #12 - 800412e: 46bd mov sp, r7 - 8004130: bc80 pop {r7} - 8004132: 4770 bx lr + 8004ba6: bf00 nop + 8004ba8: 370c adds r7, #12 + 8004baa: 46bd mov sp, r7 + 8004bac: bc80 pop {r7} + 8004bae: 4770 bx lr -08004134 : +08004bb0 : //写LCD数据 //data:要写入的值 void LCD_WR_DATA(uint16_t data) { - 8004134: b480 push {r7} - 8004136: b083 sub sp, #12 - 8004138: af00 add r7, sp, #0 - 800413a: 4603 mov r3, r0 - 800413c: 80fb strh r3, [r7, #6] + 8004bb0: b480 push {r7} + 8004bb2: b083 sub sp, #12 + 8004bb4: af00 add r7, sp, #0 + 8004bb6: 4603 mov r3, r0 + 8004bb8: 80fb strh r3, [r7, #6] LCD_DATA_ADDRESS=data; - 800413e: 4a04 ldr r2, [pc, #16] ; (8004150 ) - 8004140: 88fb ldrh r3, [r7, #6] - 8004142: 8013 strh r3, [r2, #0] + 8004bba: 4a04 ldr r2, [pc, #16] ; (8004bcc ) + 8004bbc: 88fb ldrh r3, [r7, #6] + 8004bbe: 8013 strh r3, [r2, #0] } - 8004144: bf00 nop - 8004146: 370c adds r7, #12 - 8004148: 46bd mov sp, r7 - 800414a: bc80 pop {r7} - 800414c: 4770 bx lr - 800414e: bf00 nop - 8004150: 6c000800 .word 0x6c000800 + 8004bc0: bf00 nop + 8004bc2: 370c adds r7, #12 + 8004bc4: 46bd mov sp, r7 + 8004bc6: bc80 pop {r7} + 8004bc8: 4770 bx lr + 8004bca: bf00 nop + 8004bcc: 6c000800 .word 0x6c000800 -08004154 : +08004bd0 : } //写寄存器 //LCD_Reg:寄存器地址 //LCD_RegValue:要写入的数据 void LCD_WriteReg(uint16_t LCD_Reg, uint16_t LCD_RegValue) { - 8004154: b480 push {r7} - 8004156: b083 sub sp, #12 - 8004158: af00 add r7, sp, #0 - 800415a: 4603 mov r3, r0 - 800415c: 460a mov r2, r1 - 800415e: 80fb strh r3, [r7, #6] - 8004160: 4613 mov r3, r2 - 8004162: 80bb strh r3, [r7, #4] + 8004bd0: b480 push {r7} + 8004bd2: b083 sub sp, #12 + 8004bd4: af00 add r7, sp, #0 + 8004bd6: 4603 mov r3, r0 + 8004bd8: 460a mov r2, r1 + 8004bda: 80fb strh r3, [r7, #6] + 8004bdc: 4613 mov r3, r2 + 8004bde: 80bb strh r3, [r7, #4] LCD_REG_ADDRESS = LCD_Reg; //写入要写的寄存器序号 - 8004164: f04f 42d8 mov.w r2, #1811939328 ; 0x6c000000 - 8004168: 88fb ldrh r3, [r7, #6] - 800416a: 8013 strh r3, [r2, #0] + 8004be0: f04f 42d8 mov.w r2, #1811939328 ; 0x6c000000 + 8004be4: 88fb ldrh r3, [r7, #6] + 8004be6: 8013 strh r3, [r2, #0] LCD_DATA_ADDRESS = LCD_RegValue;//写入数据 - 800416c: 4a03 ldr r2, [pc, #12] ; (800417c ) - 800416e: 88bb ldrh r3, [r7, #4] - 8004170: 8013 strh r3, [r2, #0] + 8004be8: 4a03 ldr r2, [pc, #12] ; (8004bf8 ) + 8004bea: 88bb ldrh r3, [r7, #4] + 8004bec: 8013 strh r3, [r2, #0] } - 8004172: bf00 nop - 8004174: 370c adds r7, #12 - 8004176: 46bd mov sp, r7 - 8004178: bc80 pop {r7} - 800417a: 4770 bx lr - 800417c: 6c000800 .word 0x6c000800 + 8004bee: bf00 nop + 8004bf0: 370c adds r7, #12 + 8004bf2: 46bd mov sp, r7 + 8004bf4: bc80 pop {r7} + 8004bf6: 4770 bx lr + 8004bf8: 6c000800 .word 0x6c000800 -08004180 : +08004bfc : //读寄存器 //LCD_Reg:寄存器地址 //返回值:读到的数据 uint16_t LCD_ReadReg(uint16_t LCD_Reg) { - 8004180: b480 push {r7} - 8004182: b083 sub sp, #12 - 8004184: af00 add r7, sp, #0 - 8004186: 4603 mov r3, r0 - 8004188: 80fb strh r3, [r7, #6] + 8004bfc: b480 push {r7} + 8004bfe: b083 sub sp, #12 + 8004c00: af00 add r7, sp, #0 + 8004c02: 4603 mov r3, r0 + 8004c04: 80fb strh r3, [r7, #6] LCD_REG_ADDRESS=LCD_Reg; //写入要读的寄存器序号 - 800418a: f04f 42d8 mov.w r2, #1811939328 ; 0x6c000000 - 800418e: 88fb ldrh r3, [r7, #6] - 8004190: 8013 strh r3, [r2, #0] + 8004c06: f04f 42d8 mov.w r2, #1811939328 ; 0x6c000000 + 8004c0a: 88fb ldrh r3, [r7, #6] + 8004c0c: 8013 strh r3, [r2, #0] //delay_us(5); return LCD_DATA_ADDRESS; //返回读到的值 - 8004192: 4b04 ldr r3, [pc, #16] ; (80041a4 ) - 8004194: 881b ldrh r3, [r3, #0] - 8004196: b29b uxth r3, r3 + 8004c0e: 4b04 ldr r3, [pc, #16] ; (8004c20 ) + 8004c10: 881b ldrh r3, [r3, #0] + 8004c12: b29b uxth r3, r3 } - 8004198: 4618 mov r0, r3 - 800419a: 370c adds r7, #12 - 800419c: 46bd mov sp, r7 - 800419e: bc80 pop {r7} - 80041a0: 4770 bx lr - 80041a2: bf00 nop - 80041a4: 6c000800 .word 0x6c000800 + 8004c14: 4618 mov r0, r3 + 8004c16: 370c adds r7, #12 + 8004c18: 46bd mov sp, r7 + 8004c1a: bc80 pop {r7} + 8004c1c: 4770 bx lr + 8004c1e: bf00 nop + 8004c20: 6c000800 .word 0x6c000800 -080041a8 : +08004c24 : //注意:其他函数可能会受到此函数设置的影响(尤其是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) { - 80041a8: b580 push {r7, lr} - 80041aa: b084 sub sp, #16 - 80041ac: af00 add r7, sp, #0 - 80041ae: 4603 mov r3, r0 - 80041b0: 71fb strb r3, [r7, #7] + 8004c24: b580 push {r7, lr} + 8004c26: b084 sub sp, #16 + 8004c28: af00 add r7, sp, #0 + 8004c2a: 4603 mov r3, r0 + 8004c2c: 71fb strb r3, [r7, #7] uint16_t regval=0; - 80041b2: 2300 movs r3, #0 - 80041b4: 81fb strh r3, [r7, #14] + 8004c2e: 2300 movs r3, #0 + 8004c30: 81fb strh r3, [r7, #14] uint8_t dirreg=0; - 80041b6: 2300 movs r3, #0 - 80041b8: 737b strb r3, [r7, #13] + 8004c32: 2300 movs r3, #0 + 8004c34: 737b strb r3, [r7, #13] uint16_t temp; if(lcddev.dir==1&&lcddev.id!=0X6804)//横屏时,对6804不改变扫描方向! - 80041ba: 4ba8 ldr r3, [pc, #672] ; (800445c ) - 80041bc: 799b ldrb r3, [r3, #6] - 80041be: 2b01 cmp r3, #1 - 80041c0: d134 bne.n 800422c - 80041c2: 4ba6 ldr r3, [pc, #664] ; (800445c ) - 80041c4: 889b ldrh r3, [r3, #4] - 80041c6: f646 0204 movw r2, #26628 ; 0x6804 - 80041ca: 4293 cmp r3, r2 - 80041cc: d02e beq.n 800422c + 8004c36: 4ba8 ldr r3, [pc, #672] ; (8004ed8 ) + 8004c38: 799b ldrb r3, [r3, #6] + 8004c3a: 2b01 cmp r3, #1 + 8004c3c: d134 bne.n 8004ca8 + 8004c3e: 4ba6 ldr r3, [pc, #664] ; (8004ed8 ) + 8004c40: 889b ldrh r3, [r3, #4] + 8004c42: f646 0204 movw r2, #26628 ; 0x6804 + 8004c46: 4293 cmp r3, r2 + 8004c48: d02e beq.n 8004ca8 { switch(dir)//方向转换 - 80041ce: 79fb ldrb r3, [r7, #7] - 80041d0: 2b07 cmp r3, #7 - 80041d2: d82c bhi.n 800422e - 80041d4: a201 add r2, pc, #4 ; (adr r2, 80041dc ) - 80041d6: f852 f023 ldr.w pc, [r2, r3, lsl #2] - 80041da: bf00 nop - 80041dc: 080041fd .word 0x080041fd - 80041e0: 08004203 .word 0x08004203 - 80041e4: 08004209 .word 0x08004209 - 80041e8: 0800420f .word 0x0800420f - 80041ec: 08004215 .word 0x08004215 - 80041f0: 0800421b .word 0x0800421b - 80041f4: 08004221 .word 0x08004221 - 80041f8: 08004227 .word 0x08004227 + 8004c4a: 79fb ldrb r3, [r7, #7] + 8004c4c: 2b07 cmp r3, #7 + 8004c4e: d82c bhi.n 8004caa + 8004c50: a201 add r2, pc, #4 ; (adr r2, 8004c58 ) + 8004c52: f852 f023 ldr.w pc, [r2, r3, lsl #2] + 8004c56: bf00 nop + 8004c58: 08004c79 .word 0x08004c79 + 8004c5c: 08004c7f .word 0x08004c7f + 8004c60: 08004c85 .word 0x08004c85 + 8004c64: 08004c8b .word 0x08004c8b + 8004c68: 08004c91 .word 0x08004c91 + 8004c6c: 08004c97 .word 0x08004c97 + 8004c70: 08004c9d .word 0x08004c9d + 8004c74: 08004ca3 .word 0x08004ca3 { case 0:dir=6;break; - 80041fc: 2306 movs r3, #6 - 80041fe: 71fb strb r3, [r7, #7] - 8004200: e015 b.n 800422e + 8004c78: 2306 movs r3, #6 + 8004c7a: 71fb strb r3, [r7, #7] + 8004c7c: e015 b.n 8004caa case 1:dir=7;break; - 8004202: 2307 movs r3, #7 - 8004204: 71fb strb r3, [r7, #7] - 8004206: e012 b.n 800422e + 8004c7e: 2307 movs r3, #7 + 8004c80: 71fb strb r3, [r7, #7] + 8004c82: e012 b.n 8004caa case 2:dir=4;break; - 8004208: 2304 movs r3, #4 - 800420a: 71fb strb r3, [r7, #7] - 800420c: e00f b.n 800422e + 8004c84: 2304 movs r3, #4 + 8004c86: 71fb strb r3, [r7, #7] + 8004c88: e00f b.n 8004caa case 3:dir=5;break; - 800420e: 2305 movs r3, #5 - 8004210: 71fb strb r3, [r7, #7] - 8004212: e00c b.n 800422e + 8004c8a: 2305 movs r3, #5 + 8004c8c: 71fb strb r3, [r7, #7] + 8004c8e: e00c b.n 8004caa case 4:dir=1;break; - 8004214: 2301 movs r3, #1 - 8004216: 71fb strb r3, [r7, #7] - 8004218: e009 b.n 800422e + 8004c90: 2301 movs r3, #1 + 8004c92: 71fb strb r3, [r7, #7] + 8004c94: e009 b.n 8004caa case 5:dir=0;break; - 800421a: 2300 movs r3, #0 - 800421c: 71fb strb r3, [r7, #7] - 800421e: e006 b.n 800422e + 8004c96: 2300 movs r3, #0 + 8004c98: 71fb strb r3, [r7, #7] + 8004c9a: e006 b.n 8004caa case 6:dir=3;break; - 8004220: 2303 movs r3, #3 - 8004222: 71fb strb r3, [r7, #7] - 8004224: e003 b.n 800422e + 8004c9c: 2303 movs r3, #3 + 8004c9e: 71fb strb r3, [r7, #7] + 8004ca0: e003 b.n 8004caa case 7:dir=2;break; - 8004226: 2302 movs r3, #2 - 8004228: 71fb strb r3, [r7, #7] - 800422a: e000 b.n 800422e + 8004ca2: 2302 movs r3, #2 + 8004ca4: 71fb strb r3, [r7, #7] + 8004ca6: e000 b.n 8004caa } } - 800422c: bf00 nop + 8004ca8: bf00 nop if(lcddev.id==0x9341||lcddev.id==0X6804||lcddev.id==0X5310)//9341/6804/5310,很特殊 - 800422e: 4b8b ldr r3, [pc, #556] ; (800445c ) - 8004230: 889b ldrh r3, [r3, #4] - 8004232: f249 3241 movw r2, #37697 ; 0x9341 - 8004236: 4293 cmp r3, r2 - 8004238: d00c beq.n 8004254 - 800423a: 4b88 ldr r3, [pc, #544] ; (800445c ) - 800423c: 889b ldrh r3, [r3, #4] - 800423e: f646 0204 movw r2, #26628 ; 0x6804 - 8004242: 4293 cmp r3, r2 - 8004244: d006 beq.n 8004254 - 8004246: 4b85 ldr r3, [pc, #532] ; (800445c ) - 8004248: 889b ldrh r3, [r3, #4] - 800424a: f245 3210 movw r2, #21264 ; 0x5310 - 800424e: 4293 cmp r3, r2 - 8004250: f040 80bb bne.w 80043ca + 8004caa: 4b8b ldr r3, [pc, #556] ; (8004ed8 ) + 8004cac: 889b ldrh r3, [r3, #4] + 8004cae: f249 3241 movw r2, #37697 ; 0x9341 + 8004cb2: 4293 cmp r3, r2 + 8004cb4: d00c beq.n 8004cd0 + 8004cb6: 4b88 ldr r3, [pc, #544] ; (8004ed8 ) + 8004cb8: 889b ldrh r3, [r3, #4] + 8004cba: f646 0204 movw r2, #26628 ; 0x6804 + 8004cbe: 4293 cmp r3, r2 + 8004cc0: d006 beq.n 8004cd0 + 8004cc2: 4b85 ldr r3, [pc, #532] ; (8004ed8 ) + 8004cc4: 889b ldrh r3, [r3, #4] + 8004cc6: f245 3210 movw r2, #21264 ; 0x5310 + 8004cca: 4293 cmp r3, r2 + 8004ccc: f040 80bb bne.w 8004e46 { switch(dir) - 8004254: 79fb ldrb r3, [r7, #7] - 8004256: 2b07 cmp r3, #7 - 8004258: d835 bhi.n 80042c6 - 800425a: a201 add r2, pc, #4 ; (adr r2, 8004260 ) - 800425c: f852 f023 ldr.w pc, [r2, r3, lsl #2] - 8004260: 080042c7 .word 0x080042c7 - 8004264: 08004281 .word 0x08004281 - 8004268: 0800428b .word 0x0800428b - 800426c: 08004295 .word 0x08004295 - 8004270: 0800429f .word 0x0800429f - 8004274: 080042a9 .word 0x080042a9 - 8004278: 080042b3 .word 0x080042b3 - 800427c: 080042bd .word 0x080042bd + 8004cd0: 79fb ldrb r3, [r7, #7] + 8004cd2: 2b07 cmp r3, #7 + 8004cd4: d835 bhi.n 8004d42 + 8004cd6: a201 add r2, pc, #4 ; (adr r2, 8004cdc ) + 8004cd8: f852 f023 ldr.w pc, [r2, r3, lsl #2] + 8004cdc: 08004d43 .word 0x08004d43 + 8004ce0: 08004cfd .word 0x08004cfd + 8004ce4: 08004d07 .word 0x08004d07 + 8004ce8: 08004d11 .word 0x08004d11 + 8004cec: 08004d1b .word 0x08004d1b + 8004cf0: 08004d25 .word 0x08004d25 + 8004cf4: 08004d2f .word 0x08004d2f + 8004cf8: 08004d39 .word 0x08004d39 { case L2R_U2D://从左到右,从上到下 regval|=(0<<7)|(0<<6)|(0<<5); break; case L2R_D2U://从左到右,从下到上 regval|=(1<<7)|(0<<6)|(0<<5); - 8004280: 89fb ldrh r3, [r7, #14] - 8004282: f043 0380 orr.w r3, r3, #128 ; 0x80 - 8004286: 81fb strh r3, [r7, #14] + 8004cfc: 89fb ldrh r3, [r7, #14] + 8004cfe: f043 0380 orr.w r3, r3, #128 ; 0x80 + 8004d02: 81fb strh r3, [r7, #14] break; - 8004288: e01d b.n 80042c6 + 8004d04: e01d b.n 8004d42 case R2L_U2D://从右到左,从上到下 regval|=(0<<7)|(1<<6)|(0<<5); - 800428a: 89fb ldrh r3, [r7, #14] - 800428c: f043 0340 orr.w r3, r3, #64 ; 0x40 - 8004290: 81fb strh r3, [r7, #14] + 8004d06: 89fb ldrh r3, [r7, #14] + 8004d08: f043 0340 orr.w r3, r3, #64 ; 0x40 + 8004d0c: 81fb strh r3, [r7, #14] break; - 8004292: e018 b.n 80042c6 + 8004d0e: e018 b.n 8004d42 case R2L_D2U://从右到左,从下到上 regval|=(1<<7)|(1<<6)|(0<<5); - 8004294: 89fb ldrh r3, [r7, #14] - 8004296: f043 03c0 orr.w r3, r3, #192 ; 0xc0 - 800429a: 81fb strh r3, [r7, #14] + 8004d10: 89fb ldrh r3, [r7, #14] + 8004d12: f043 03c0 orr.w r3, r3, #192 ; 0xc0 + 8004d16: 81fb strh r3, [r7, #14] break; - 800429c: e013 b.n 80042c6 + 8004d18: e013 b.n 8004d42 case U2D_L2R://从上到下,从左到右 regval|=(0<<7)|(0<<6)|(1<<5); - 800429e: 89fb ldrh r3, [r7, #14] - 80042a0: f043 0320 orr.w r3, r3, #32 - 80042a4: 81fb strh r3, [r7, #14] + 8004d1a: 89fb ldrh r3, [r7, #14] + 8004d1c: f043 0320 orr.w r3, r3, #32 + 8004d20: 81fb strh r3, [r7, #14] break; - 80042a6: e00e b.n 80042c6 + 8004d22: e00e b.n 8004d42 case U2D_R2L://从上到下,从右到左 regval|=(0<<7)|(1<<6)|(1<<5); - 80042a8: 89fb ldrh r3, [r7, #14] - 80042aa: f043 0360 orr.w r3, r3, #96 ; 0x60 - 80042ae: 81fb strh r3, [r7, #14] + 8004d24: 89fb ldrh r3, [r7, #14] + 8004d26: f043 0360 orr.w r3, r3, #96 ; 0x60 + 8004d2a: 81fb strh r3, [r7, #14] break; - 80042b0: e009 b.n 80042c6 + 8004d2c: e009 b.n 8004d42 case D2U_L2R://从下到上,从左到右 regval|=(1<<7)|(0<<6)|(1<<5); - 80042b2: 89fb ldrh r3, [r7, #14] - 80042b4: f043 03a0 orr.w r3, r3, #160 ; 0xa0 - 80042b8: 81fb strh r3, [r7, #14] + 8004d2e: 89fb ldrh r3, [r7, #14] + 8004d30: f043 03a0 orr.w r3, r3, #160 ; 0xa0 + 8004d34: 81fb strh r3, [r7, #14] break; - 80042ba: e004 b.n 80042c6 + 8004d36: e004 b.n 8004d42 case D2U_R2L://从下到上,从右到左 regval|=(1<<7)|(1<<6)|(1<<5); - 80042bc: 89fb ldrh r3, [r7, #14] - 80042be: f043 03e0 orr.w r3, r3, #224 ; 0xe0 - 80042c2: 81fb strh r3, [r7, #14] + 8004d38: 89fb ldrh r3, [r7, #14] + 8004d3a: f043 03e0 orr.w r3, r3, #224 ; 0xe0 + 8004d3e: 81fb strh r3, [r7, #14] break; - 80042c4: bf00 nop + 8004d40: bf00 nop } dirreg=0X36; - 80042c6: 2336 movs r3, #54 ; 0x36 - 80042c8: 737b strb r3, [r7, #13] + 8004d42: 2336 movs r3, #54 ; 0x36 + 8004d44: 737b strb r3, [r7, #13] if(lcddev.id!=0X5310)regval|=0X08;//5310不需要BGR - 80042ca: 4b64 ldr r3, [pc, #400] ; (800445c ) - 80042cc: 889b ldrh r3, [r3, #4] - 80042ce: f245 3210 movw r2, #21264 ; 0x5310 - 80042d2: 4293 cmp r3, r2 - 80042d4: d003 beq.n 80042de - 80042d6: 89fb ldrh r3, [r7, #14] - 80042d8: f043 0308 orr.w r3, r3, #8 - 80042dc: 81fb strh r3, [r7, #14] + 8004d46: 4b64 ldr r3, [pc, #400] ; (8004ed8 ) + 8004d48: 889b ldrh r3, [r3, #4] + 8004d4a: f245 3210 movw r2, #21264 ; 0x5310 + 8004d4e: 4293 cmp r3, r2 + 8004d50: d003 beq.n 8004d5a + 8004d52: 89fb ldrh r3, [r7, #14] + 8004d54: f043 0308 orr.w r3, r3, #8 + 8004d58: 81fb strh r3, [r7, #14] if(lcddev.id==0X6804)regval|=0x02;//6804的BIT6和9341的反了 - 80042de: 4b5f ldr r3, [pc, #380] ; (800445c ) - 80042e0: 889b ldrh r3, [r3, #4] - 80042e2: f646 0204 movw r2, #26628 ; 0x6804 - 80042e6: 4293 cmp r3, r2 - 80042e8: d103 bne.n 80042f2 - 80042ea: 89fb ldrh r3, [r7, #14] - 80042ec: f043 0302 orr.w r3, r3, #2 - 80042f0: 81fb strh r3, [r7, #14] + 8004d5a: 4b5f ldr r3, [pc, #380] ; (8004ed8 ) + 8004d5c: 889b ldrh r3, [r3, #4] + 8004d5e: f646 0204 movw r2, #26628 ; 0x6804 + 8004d62: 4293 cmp r3, r2 + 8004d64: d103 bne.n 8004d6e + 8004d66: 89fb ldrh r3, [r7, #14] + 8004d68: f043 0302 orr.w r3, r3, #2 + 8004d6c: 81fb strh r3, [r7, #14] LCD_WriteReg(dirreg,regval); - 80042f2: 7b7b ldrb r3, [r7, #13] - 80042f4: b29b uxth r3, r3 - 80042f6: 89fa ldrh r2, [r7, #14] - 80042f8: 4611 mov r1, r2 - 80042fa: 4618 mov r0, r3 - 80042fc: f7ff ff2a bl 8004154 + 8004d6e: 7b7b ldrb r3, [r7, #13] + 8004d70: b29b uxth r3, r3 + 8004d72: 89fa ldrh r2, [r7, #14] + 8004d74: 4611 mov r1, r2 + 8004d76: 4618 mov r0, r3 + 8004d78: f7ff ff2a bl 8004bd0 if((regval&0X20)||lcddev.dir==1) - 8004300: 89fb ldrh r3, [r7, #14] - 8004302: f003 0320 and.w r3, r3, #32 - 8004306: 2b00 cmp r3, #0 - 8004308: d103 bne.n 8004312 - 800430a: 4b54 ldr r3, [pc, #336] ; (800445c ) - 800430c: 799b ldrb r3, [r3, #6] - 800430e: 2b01 cmp r3, #1 - 8004310: d110 bne.n 8004334 + 8004d7c: 89fb ldrh r3, [r7, #14] + 8004d7e: f003 0320 and.w r3, r3, #32 + 8004d82: 2b00 cmp r3, #0 + 8004d84: d103 bne.n 8004d8e + 8004d86: 4b54 ldr r3, [pc, #336] ; (8004ed8 ) + 8004d88: 799b ldrb r3, [r3, #6] + 8004d8a: 2b01 cmp r3, #1 + 8004d8c: d110 bne.n 8004db0 { if(lcddev.width) - 8004314: 881a ldrh r2, [r3, #0] - 8004316: 4b51 ldr r3, [pc, #324] ; (800445c ) - 8004318: 885b ldrh r3, [r3, #2] - 800431a: 429a cmp r2, r3 - 800431c: d21a bcs.n 8004354 + 8004d8e: 4b52 ldr r3, [pc, #328] ; (8004ed8 ) + 8004d90: 881a ldrh r2, [r3, #0] + 8004d92: 4b51 ldr r3, [pc, #324] ; (8004ed8 ) + 8004d94: 885b ldrh r3, [r3, #2] + 8004d96: 429a cmp r2, r3 + 8004d98: d21a bcs.n 8004dd0 { temp=lcddev.width; - 800431e: 4b4f ldr r3, [pc, #316] ; (800445c ) - 8004320: 881b ldrh r3, [r3, #0] - 8004322: 817b strh r3, [r7, #10] + 8004d9a: 4b4f ldr r3, [pc, #316] ; (8004ed8 ) + 8004d9c: 881b ldrh r3, [r3, #0] + 8004d9e: 817b strh r3, [r7, #10] lcddev.width=lcddev.height; - 8004324: 4b4d ldr r3, [pc, #308] ; (800445c ) - 8004326: 885a ldrh r2, [r3, #2] - 8004328: 4b4c ldr r3, [pc, #304] ; (800445c ) - 800432a: 801a strh r2, [r3, #0] + 8004da0: 4b4d ldr r3, [pc, #308] ; (8004ed8 ) + 8004da2: 885a ldrh r2, [r3, #2] + 8004da4: 4b4c ldr r3, [pc, #304] ; (8004ed8 ) + 8004da6: 801a strh r2, [r3, #0] lcddev.height=temp; - 800432c: 4a4b ldr r2, [pc, #300] ; (800445c ) - 800432e: 897b ldrh r3, [r7, #10] - 8004330: 8053 strh r3, [r2, #2] + 8004da8: 4a4b ldr r2, [pc, #300] ; (8004ed8 ) + 8004daa: 897b ldrh r3, [r7, #10] + 8004dac: 8053 strh r3, [r2, #2] if(lcddev.width + 8004dae: e00f b.n 8004dd0 } }else { if(lcddev.width>lcddev.height)//交换X,Y - 8004334: 4b49 ldr r3, [pc, #292] ; (800445c ) - 8004336: 881a ldrh r2, [r3, #0] - 8004338: 4b48 ldr r3, [pc, #288] ; (800445c ) - 800433a: 885b ldrh r3, [r3, #2] - 800433c: 429a cmp r2, r3 - 800433e: d909 bls.n 8004354 + 8004db0: 4b49 ldr r3, [pc, #292] ; (8004ed8 ) + 8004db2: 881a ldrh r2, [r3, #0] + 8004db4: 4b48 ldr r3, [pc, #288] ; (8004ed8 ) + 8004db6: 885b ldrh r3, [r3, #2] + 8004db8: 429a cmp r2, r3 + 8004dba: d909 bls.n 8004dd0 { temp=lcddev.width; - 8004340: 4b46 ldr r3, [pc, #280] ; (800445c ) - 8004342: 881b ldrh r3, [r3, #0] - 8004344: 817b strh r3, [r7, #10] + 8004dbc: 4b46 ldr r3, [pc, #280] ; (8004ed8 ) + 8004dbe: 881b ldrh r3, [r3, #0] + 8004dc0: 817b strh r3, [r7, #10] lcddev.width=lcddev.height; - 8004346: 4b45 ldr r3, [pc, #276] ; (800445c ) - 8004348: 885a ldrh r2, [r3, #2] - 800434a: 4b44 ldr r3, [pc, #272] ; (800445c ) - 800434c: 801a strh r2, [r3, #0] + 8004dc2: 4b45 ldr r3, [pc, #276] ; (8004ed8 ) + 8004dc4: 885a ldrh r2, [r3, #2] + 8004dc6: 4b44 ldr r3, [pc, #272] ; (8004ed8 ) + 8004dc8: 801a strh r2, [r3, #0] lcddev.height=temp; - 800434e: 4a43 ldr r2, [pc, #268] ; (800445c ) - 8004350: 897b ldrh r3, [r7, #10] - 8004352: 8053 strh r3, [r2, #2] + 8004dca: 4a43 ldr r2, [pc, #268] ; (8004ed8 ) + 8004dcc: 897b ldrh r3, [r7, #10] + 8004dce: 8053 strh r3, [r2, #2] } } LCD_WR_REG(lcddev.setxcmd); - 8004354: 4b41 ldr r3, [pc, #260] ; (800445c ) - 8004356: 7a1b ldrb r3, [r3, #8] - 8004358: b29b uxth r3, r3 - 800435a: 4618 mov r0, r3 - 800435c: f7ff fedc bl 8004118 + 8004dd0: 4b41 ldr r3, [pc, #260] ; (8004ed8 ) + 8004dd2: 7a1b ldrb r3, [r3, #8] + 8004dd4: b29b uxth r3, r3 + 8004dd6: 4618 mov r0, r3 + 8004dd8: f7ff fedc bl 8004b94 LCD_WR_DATA(0);LCD_WR_DATA(0); - 8004360: 2000 movs r0, #0 - 8004362: f7ff fee7 bl 8004134 - 8004366: 2000 movs r0, #0 - 8004368: f7ff fee4 bl 8004134 + 8004ddc: 2000 movs r0, #0 + 8004dde: f7ff fee7 bl 8004bb0 + 8004de2: 2000 movs r0, #0 + 8004de4: f7ff fee4 bl 8004bb0 LCD_WR_DATA((lcddev.width-1)>>8);LCD_WR_DATA((lcddev.width-1)&0XFF); - 800436c: 4b3b ldr r3, [pc, #236] ; (800445c ) - 800436e: 881b ldrh r3, [r3, #0] - 8004370: 3b01 subs r3, #1 - 8004372: 121b asrs r3, r3, #8 - 8004374: b29b uxth r3, r3 - 8004376: 4618 mov r0, r3 - 8004378: f7ff fedc bl 8004134 - 800437c: 4b37 ldr r3, [pc, #220] ; (800445c ) - 800437e: 881b ldrh r3, [r3, #0] - 8004380: 3b01 subs r3, #1 - 8004382: b29b uxth r3, r3 - 8004384: b2db uxtb r3, r3 - 8004386: b29b uxth r3, r3 - 8004388: 4618 mov r0, r3 - 800438a: f7ff fed3 bl 8004134 + 8004de8: 4b3b ldr r3, [pc, #236] ; (8004ed8 ) + 8004dea: 881b ldrh r3, [r3, #0] + 8004dec: 3b01 subs r3, #1 + 8004dee: 121b asrs r3, r3, #8 + 8004df0: b29b uxth r3, r3 + 8004df2: 4618 mov r0, r3 + 8004df4: f7ff fedc bl 8004bb0 + 8004df8: 4b37 ldr r3, [pc, #220] ; (8004ed8 ) + 8004dfa: 881b ldrh r3, [r3, #0] + 8004dfc: 3b01 subs r3, #1 + 8004dfe: b29b uxth r3, r3 + 8004e00: b2db uxtb r3, r3 + 8004e02: b29b uxth r3, r3 + 8004e04: 4618 mov r0, r3 + 8004e06: f7ff fed3 bl 8004bb0 LCD_WR_REG(lcddev.setycmd); - 800438e: 4b33 ldr r3, [pc, #204] ; (800445c ) - 8004390: 7a5b ldrb r3, [r3, #9] - 8004392: b29b uxth r3, r3 - 8004394: 4618 mov r0, r3 - 8004396: f7ff febf bl 8004118 + 8004e0a: 4b33 ldr r3, [pc, #204] ; (8004ed8 ) + 8004e0c: 7a5b ldrb r3, [r3, #9] + 8004e0e: b29b uxth r3, r3 + 8004e10: 4618 mov r0, r3 + 8004e12: f7ff febf bl 8004b94 LCD_WR_DATA(0);LCD_WR_DATA(0); - 800439a: 2000 movs r0, #0 - 800439c: f7ff feca bl 8004134 - 80043a0: 2000 movs r0, #0 - 80043a2: f7ff fec7 bl 8004134 + 8004e16: 2000 movs r0, #0 + 8004e18: f7ff feca bl 8004bb0 + 8004e1c: 2000 movs r0, #0 + 8004e1e: f7ff fec7 bl 8004bb0 LCD_WR_DATA((lcddev.height-1)>>8);LCD_WR_DATA((lcddev.height-1)&0XFF); - 80043a6: 4b2d ldr r3, [pc, #180] ; (800445c ) - 80043a8: 885b ldrh r3, [r3, #2] - 80043aa: 3b01 subs r3, #1 - 80043ac: 121b asrs r3, r3, #8 - 80043ae: b29b uxth r3, r3 - 80043b0: 4618 mov r0, r3 - 80043b2: f7ff febf bl 8004134 - 80043b6: 4b29 ldr r3, [pc, #164] ; (800445c ) - 80043b8: 885b ldrh r3, [r3, #2] - 80043ba: 3b01 subs r3, #1 - 80043bc: b29b uxth r3, r3 - 80043be: b2db uxtb r3, r3 - 80043c0: b29b uxth r3, r3 - 80043c2: 4618 mov r0, r3 - 80043c4: f7ff feb6 bl 8004134 - 80043c8: e058 b.n 800447c + 8004e22: 4b2d ldr r3, [pc, #180] ; (8004ed8 ) + 8004e24: 885b ldrh r3, [r3, #2] + 8004e26: 3b01 subs r3, #1 + 8004e28: 121b asrs r3, r3, #8 + 8004e2a: b29b uxth r3, r3 + 8004e2c: 4618 mov r0, r3 + 8004e2e: f7ff febf bl 8004bb0 + 8004e32: 4b29 ldr r3, [pc, #164] ; (8004ed8 ) + 8004e34: 885b ldrh r3, [r3, #2] + 8004e36: 3b01 subs r3, #1 + 8004e38: b29b uxth r3, r3 + 8004e3a: b2db uxtb r3, r3 + 8004e3c: b29b uxth r3, r3 + 8004e3e: 4618 mov r0, r3 + 8004e40: f7ff feb6 bl 8004bb0 + 8004e44: e058 b.n 8004ef8 }else { switch(dir) - 80043ca: 79fb ldrb r3, [r7, #7] - 80043cc: 2b07 cmp r3, #7 - 80043ce: d836 bhi.n 800443e - 80043d0: a201 add r2, pc, #4 ; (adr r2, 80043d8 ) - 80043d2: f852 f023 ldr.w pc, [r2, r3, lsl #2] - 80043d6: bf00 nop - 80043d8: 080043f9 .word 0x080043f9 - 80043dc: 08004403 .word 0x08004403 - 80043e0: 0800440d .word 0x0800440d - 80043e4: 0800443f .word 0x0800443f - 80043e8: 08004417 .word 0x08004417 - 80043ec: 08004421 .word 0x08004421 - 80043f0: 0800442b .word 0x0800442b - 80043f4: 08004435 .word 0x08004435 + 8004e46: 79fb ldrb r3, [r7, #7] + 8004e48: 2b07 cmp r3, #7 + 8004e4a: d836 bhi.n 8004eba + 8004e4c: a201 add r2, pc, #4 ; (adr r2, 8004e54 ) + 8004e4e: f852 f023 ldr.w pc, [r2, r3, lsl #2] + 8004e52: bf00 nop + 8004e54: 08004e75 .word 0x08004e75 + 8004e58: 08004e7f .word 0x08004e7f + 8004e5c: 08004e89 .word 0x08004e89 + 8004e60: 08004ebb .word 0x08004ebb + 8004e64: 08004e93 .word 0x08004e93 + 8004e68: 08004e9d .word 0x08004e9d + 8004e6c: 08004ea7 .word 0x08004ea7 + 8004e70: 08004eb1 .word 0x08004eb1 { case L2R_U2D://从左到右,从上到下 regval|=(1<<5)|(1<<4)|(0<<3); - 80043f8: 89fb ldrh r3, [r7, #14] - 80043fa: f043 0330 orr.w r3, r3, #48 ; 0x30 - 80043fe: 81fb strh r3, [r7, #14] + 8004e74: 89fb ldrh r3, [r7, #14] + 8004e76: f043 0330 orr.w r3, r3, #48 ; 0x30 + 8004e7a: 81fb strh r3, [r7, #14] break; - 8004400: e01d b.n 800443e + 8004e7c: e01d b.n 8004eba case L2R_D2U://从左到右,从下到上 regval|=(0<<5)|(1<<4)|(0<<3); - 8004402: 89fb ldrh r3, [r7, #14] - 8004404: f043 0310 orr.w r3, r3, #16 - 8004408: 81fb strh r3, [r7, #14] + 8004e7e: 89fb ldrh r3, [r7, #14] + 8004e80: f043 0310 orr.w r3, r3, #16 + 8004e84: 81fb strh r3, [r7, #14] break; - 800440a: e018 b.n 800443e + 8004e86: e018 b.n 8004eba case R2L_U2D://从右到左,从上到下 regval|=(1<<5)|(0<<4)|(0<<3); - 800440c: 89fb ldrh r3, [r7, #14] - 800440e: f043 0320 orr.w r3, r3, #32 - 8004412: 81fb strh r3, [r7, #14] + 8004e88: 89fb ldrh r3, [r7, #14] + 8004e8a: f043 0320 orr.w r3, r3, #32 + 8004e8e: 81fb strh r3, [r7, #14] break; - 8004414: e013 b.n 800443e + 8004e90: e013 b.n 8004eba case R2L_D2U://从右到左,从下到上 regval|=(0<<5)|(0<<4)|(0<<3); break; case U2D_L2R://从上到下,从左到右 regval|=(1<<5)|(1<<4)|(1<<3); - 8004416: 89fb ldrh r3, [r7, #14] - 8004418: f043 0338 orr.w r3, r3, #56 ; 0x38 - 800441c: 81fb strh r3, [r7, #14] + 8004e92: 89fb ldrh r3, [r7, #14] + 8004e94: f043 0338 orr.w r3, r3, #56 ; 0x38 + 8004e98: 81fb strh r3, [r7, #14] break; - 800441e: e00e b.n 800443e + 8004e9a: e00e b.n 8004eba case U2D_R2L://从上到下,从右到左 regval|=(1<<5)|(0<<4)|(1<<3); - 8004420: 89fb ldrh r3, [r7, #14] - 8004422: f043 0328 orr.w r3, r3, #40 ; 0x28 - 8004426: 81fb strh r3, [r7, #14] + 8004e9c: 89fb ldrh r3, [r7, #14] + 8004e9e: f043 0328 orr.w r3, r3, #40 ; 0x28 + 8004ea2: 81fb strh r3, [r7, #14] break; - 8004428: e009 b.n 800443e + 8004ea4: e009 b.n 8004eba case D2U_L2R://从下到上,从左到右 regval|=(0<<5)|(1<<4)|(1<<3); - 800442a: 89fb ldrh r3, [r7, #14] - 800442c: f043 0318 orr.w r3, r3, #24 - 8004430: 81fb strh r3, [r7, #14] + 8004ea6: 89fb ldrh r3, [r7, #14] + 8004ea8: f043 0318 orr.w r3, r3, #24 + 8004eac: 81fb strh r3, [r7, #14] break; - 8004432: e004 b.n 800443e + 8004eae: e004 b.n 8004eba case D2U_R2L://从下到上,从右到左 regval|=(0<<5)|(0<<4)|(1<<3); - 8004434: 89fb ldrh r3, [r7, #14] - 8004436: f043 0308 orr.w r3, r3, #8 - 800443a: 81fb strh r3, [r7, #14] + 8004eb0: 89fb ldrh r3, [r7, #14] + 8004eb2: f043 0308 orr.w r3, r3, #8 + 8004eb6: 81fb strh r3, [r7, #14] break; - 800443c: bf00 nop + 8004eb8: bf00 nop } if(lcddev.id==0x8989)//8989 IC - 800443e: 4b07 ldr r3, [pc, #28] ; (800445c ) - 8004440: 889b ldrh r3, [r3, #4] - 8004442: f648 1289 movw r2, #35209 ; 0x8989 - 8004446: 4293 cmp r3, r2 - 8004448: d10a bne.n 8004460 + 8004eba: 4b07 ldr r3, [pc, #28] ; (8004ed8 ) + 8004ebc: 889b ldrh r3, [r3, #4] + 8004ebe: f648 1289 movw r2, #35209 ; 0x8989 + 8004ec2: 4293 cmp r3, r2 + 8004ec4: d10a bne.n 8004edc { dirreg=0X11; - 800444a: 2311 movs r3, #17 - 800444c: 737b strb r3, [r7, #13] + 8004ec6: 2311 movs r3, #17 + 8004ec8: 737b strb r3, [r7, #13] regval|=0X6040; //65K - 800444e: 89fb ldrh r3, [r7, #14] - 8004450: f443 43c0 orr.w r3, r3, #24576 ; 0x6000 - 8004454: f043 0340 orr.w r3, r3, #64 ; 0x40 - 8004458: 81fb strh r3, [r7, #14] - 800445a: e007 b.n 800446c - 800445c: 20000300 .word 0x20000300 + 8004eca: 89fb ldrh r3, [r7, #14] + 8004ecc: f443 43c0 orr.w r3, r3, #24576 ; 0x6000 + 8004ed0: f043 0340 orr.w r3, r3, #64 ; 0x40 + 8004ed4: 81fb strh r3, [r7, #14] + 8004ed6: e007 b.n 8004ee8 + 8004ed8: 2000034c .word 0x2000034c }else//其他驱动IC { dirreg=0X03; - 8004460: 2303 movs r3, #3 - 8004462: 737b strb r3, [r7, #13] + 8004edc: 2303 movs r3, #3 + 8004ede: 737b strb r3, [r7, #13] regval|=1<<12; - 8004464: 89fb ldrh r3, [r7, #14] - 8004466: f443 5380 orr.w r3, r3, #4096 ; 0x1000 - 800446a: 81fb strh r3, [r7, #14] + 8004ee0: 89fb ldrh r3, [r7, #14] + 8004ee2: f443 5380 orr.w r3, r3, #4096 ; 0x1000 + 8004ee6: 81fb strh r3, [r7, #14] } LCD_WriteReg(dirreg,regval); - 800446c: 7b7b ldrb r3, [r7, #13] - 800446e: b29b uxth r3, r3 - 8004470: 89fa ldrh r2, [r7, #14] - 8004472: 4611 mov r1, r2 - 8004474: 4618 mov r0, r3 - 8004476: f7ff fe6d bl 8004154 + 8004ee8: 7b7b ldrb r3, [r7, #13] + 8004eea: b29b uxth r3, r3 + 8004eec: 89fa ldrh r2, [r7, #14] + 8004eee: 4611 mov r1, r2 + 8004ef0: 4618 mov r0, r3 + 8004ef2: f7ff fe6d bl 8004bd0 } } - 800447a: bf00 nop - 800447c: bf00 nop - 800447e: 3710 adds r7, #16 - 8004480: 46bd mov sp, r7 - 8004482: bd80 pop {r7, pc} + 8004ef6: bf00 nop + 8004ef8: bf00 nop + 8004efa: 3710 adds r7, #16 + 8004efc: 46bd mov sp, r7 + 8004efe: bd80 pop {r7, pc} -08004484 : +08004f00 : //设置LCD显示方向 //dir:0,竖屏;1,横屏 void LCD_Display_Dir(uint8_t dir) { - 8004484: b580 push {r7, lr} - 8004486: b082 sub sp, #8 - 8004488: af00 add r7, sp, #0 - 800448a: 4603 mov r3, r0 - 800448c: 71fb strb r3, [r7, #7] + 8004f00: b580 push {r7, lr} + 8004f02: b082 sub sp, #8 + 8004f04: af00 add r7, sp, #0 + 8004f06: 4603 mov r3, r0 + 8004f08: 71fb strb r3, [r7, #7] if(dir==0) //竖屏 - 800448e: 79fb ldrb r3, [r7, #7] - 8004490: 2b00 cmp r3, #0 - 8004492: d154 bne.n 800453e + 8004f0a: 79fb ldrb r3, [r7, #7] + 8004f0c: 2b00 cmp r3, #0 + 8004f0e: d154 bne.n 8004fba { lcddev.dir=0; //竖屏 - 8004494: 4b5d ldr r3, [pc, #372] ; (800460c ) - 8004496: 2200 movs r2, #0 - 8004498: 719a strb r2, [r3, #6] + 8004f10: 4b5d ldr r3, [pc, #372] ; (8005088 ) + 8004f12: 2200 movs r2, #0 + 8004f14: 719a strb r2, [r3, #6] lcddev.width=240; - 800449a: 4b5c ldr r3, [pc, #368] ; (800460c ) - 800449c: 22f0 movs r2, #240 ; 0xf0 - 800449e: 801a strh r2, [r3, #0] + 8004f16: 4b5c ldr r3, [pc, #368] ; (8005088 ) + 8004f18: 22f0 movs r2, #240 ; 0xf0 + 8004f1a: 801a strh r2, [r3, #0] lcddev.height=320; - 80044a0: 4b5a ldr r3, [pc, #360] ; (800460c ) - 80044a2: f44f 72a0 mov.w r2, #320 ; 0x140 - 80044a6: 805a strh r2, [r3, #2] + 8004f1c: 4b5a ldr r3, [pc, #360] ; (8005088 ) + 8004f1e: f44f 72a0 mov.w r2, #320 ; 0x140 + 8004f22: 805a strh r2, [r3, #2] if(lcddev.id==0X9341||lcddev.id==0X6804||lcddev.id==0X5310) - 80044a8: 4b58 ldr r3, [pc, #352] ; (800460c ) - 80044aa: 889b ldrh r3, [r3, #4] - 80044ac: f249 3241 movw r2, #37697 ; 0x9341 - 80044b0: 4293 cmp r3, r2 - 80044b2: d00b beq.n 80044cc - 80044b4: 4b55 ldr r3, [pc, #340] ; (800460c ) - 80044b6: 889b ldrh r3, [r3, #4] - 80044b8: f646 0204 movw r2, #26628 ; 0x6804 - 80044bc: 4293 cmp r3, r2 - 80044be: d005 beq.n 80044cc - 80044c0: 4b52 ldr r3, [pc, #328] ; (800460c ) - 80044c2: 889b ldrh r3, [r3, #4] - 80044c4: f245 3210 movw r2, #21264 ; 0x5310 - 80044c8: 4293 cmp r3, r2 - 80044ca: d11e bne.n 800450a + 8004f24: 4b58 ldr r3, [pc, #352] ; (8005088 ) + 8004f26: 889b ldrh r3, [r3, #4] + 8004f28: f249 3241 movw r2, #37697 ; 0x9341 + 8004f2c: 4293 cmp r3, r2 + 8004f2e: d00b beq.n 8004f48 + 8004f30: 4b55 ldr r3, [pc, #340] ; (8005088 ) + 8004f32: 889b ldrh r3, [r3, #4] + 8004f34: f646 0204 movw r2, #26628 ; 0x6804 + 8004f38: 4293 cmp r3, r2 + 8004f3a: d005 beq.n 8004f48 + 8004f3c: 4b52 ldr r3, [pc, #328] ; (8005088 ) + 8004f3e: 889b ldrh r3, [r3, #4] + 8004f40: f245 3210 movw r2, #21264 ; 0x5310 + 8004f44: 4293 cmp r3, r2 + 8004f46: d11e bne.n 8004f86 { lcddev.wramcmd=0X2C; - 80044cc: 4b4f ldr r3, [pc, #316] ; (800460c ) - 80044ce: 222c movs r2, #44 ; 0x2c - 80044d0: 71da strb r2, [r3, #7] + 8004f48: 4b4f ldr r3, [pc, #316] ; (8005088 ) + 8004f4a: 222c movs r2, #44 ; 0x2c + 8004f4c: 71da strb r2, [r3, #7] lcddev.setxcmd=0X2A; - 80044d2: 4b4e ldr r3, [pc, #312] ; (800460c ) - 80044d4: 222a movs r2, #42 ; 0x2a - 80044d6: 721a strb r2, [r3, #8] + 8004f4e: 4b4e ldr r3, [pc, #312] ; (8005088 ) + 8004f50: 222a movs r2, #42 ; 0x2a + 8004f52: 721a strb r2, [r3, #8] lcddev.setycmd=0X2B; - 80044d8: 4b4c ldr r3, [pc, #304] ; (800460c ) - 80044da: 222b movs r2, #43 ; 0x2b - 80044dc: 725a strb r2, [r3, #9] + 8004f54: 4b4c ldr r3, [pc, #304] ; (8005088 ) + 8004f56: 222b movs r2, #43 ; 0x2b + 8004f58: 725a strb r2, [r3, #9] if(lcddev.id==0X6804||lcddev.id==0X5310) - 80044de: 4b4b ldr r3, [pc, #300] ; (800460c ) - 80044e0: 889b ldrh r3, [r3, #4] - 80044e2: f646 0204 movw r2, #26628 ; 0x6804 - 80044e6: 4293 cmp r3, r2 - 80044e8: d006 beq.n 80044f8 - 80044ea: 4b48 ldr r3, [pc, #288] ; (800460c ) - 80044ec: 889b ldrh r3, [r3, #4] - 80044ee: f245 3210 movw r2, #21264 ; 0x5310 - 80044f2: 4293 cmp r3, r2 - 80044f4: f040 8081 bne.w 80045fa + 8004f5a: 4b4b ldr r3, [pc, #300] ; (8005088 ) + 8004f5c: 889b ldrh r3, [r3, #4] + 8004f5e: f646 0204 movw r2, #26628 ; 0x6804 + 8004f62: 4293 cmp r3, r2 + 8004f64: d006 beq.n 8004f74 + 8004f66: 4b48 ldr r3, [pc, #288] ; (8005088 ) + 8004f68: 889b ldrh r3, [r3, #4] + 8004f6a: f245 3210 movw r2, #21264 ; 0x5310 + 8004f6e: 4293 cmp r3, r2 + 8004f70: f040 8081 bne.w 8005076 { lcddev.width=320; - 80044f8: 4b44 ldr r3, [pc, #272] ; (800460c ) - 80044fa: f44f 72a0 mov.w r2, #320 ; 0x140 - 80044fe: 801a strh r2, [r3, #0] + 8004f74: 4b44 ldr r3, [pc, #272] ; (8005088 ) + 8004f76: f44f 72a0 mov.w r2, #320 ; 0x140 + 8004f7a: 801a strh r2, [r3, #0] lcddev.height=480; - 8004500: 4b42 ldr r3, [pc, #264] ; (800460c ) - 8004502: f44f 72f0 mov.w r2, #480 ; 0x1e0 - 8004506: 805a strh r2, [r3, #2] + 8004f7c: 4b42 ldr r3, [pc, #264] ; (8005088 ) + 8004f7e: f44f 72f0 mov.w r2, #480 ; 0x1e0 + 8004f82: 805a strh r2, [r3, #2] if(lcddev.id==0X6804||lcddev.id==0X5310) - 8004508: e077 b.n 80045fa + 8004f84: e077 b.n 8005076 } }else if(lcddev.id==0X8989) - 800450a: 4b40 ldr r3, [pc, #256] ; (800460c ) - 800450c: 889b ldrh r3, [r3, #4] - 800450e: f648 1289 movw r2, #35209 ; 0x8989 - 8004512: 4293 cmp r3, r2 - 8004514: d109 bne.n 800452a + 8004f86: 4b40 ldr r3, [pc, #256] ; (8005088 ) + 8004f88: 889b ldrh r3, [r3, #4] + 8004f8a: f648 1289 movw r2, #35209 ; 0x8989 + 8004f8e: 4293 cmp r3, r2 + 8004f90: d109 bne.n 8004fa6 { lcddev.wramcmd=R34; - 8004516: 4b3d ldr r3, [pc, #244] ; (800460c ) - 8004518: 2222 movs r2, #34 ; 0x22 - 800451a: 71da strb r2, [r3, #7] + 8004f92: 4b3d ldr r3, [pc, #244] ; (8005088 ) + 8004f94: 2222 movs r2, #34 ; 0x22 + 8004f96: 71da strb r2, [r3, #7] lcddev.setxcmd=0X4E; - 800451c: 4b3b ldr r3, [pc, #236] ; (800460c ) - 800451e: 224e movs r2, #78 ; 0x4e - 8004520: 721a strb r2, [r3, #8] + 8004f98: 4b3b ldr r3, [pc, #236] ; (8005088 ) + 8004f9a: 224e movs r2, #78 ; 0x4e + 8004f9c: 721a strb r2, [r3, #8] lcddev.setycmd=0X4F; - 8004522: 4b3a ldr r3, [pc, #232] ; (800460c ) - 8004524: 224f movs r2, #79 ; 0x4f - 8004526: 725a strb r2, [r3, #9] - 8004528: e068 b.n 80045fc + 8004f9e: 4b3a ldr r3, [pc, #232] ; (8005088 ) + 8004fa0: 224f movs r2, #79 ; 0x4f + 8004fa2: 725a strb r2, [r3, #9] + 8004fa4: e068 b.n 8005078 }else { lcddev.wramcmd=R34; - 800452a: 4b38 ldr r3, [pc, #224] ; (800460c ) - 800452c: 2222 movs r2, #34 ; 0x22 - 800452e: 71da strb r2, [r3, #7] + 8004fa6: 4b38 ldr r3, [pc, #224] ; (8005088 ) + 8004fa8: 2222 movs r2, #34 ; 0x22 + 8004faa: 71da strb r2, [r3, #7] lcddev.setxcmd=R32; - 8004530: 4b36 ldr r3, [pc, #216] ; (800460c ) - 8004532: 2220 movs r2, #32 - 8004534: 721a strb r2, [r3, #8] + 8004fac: 4b36 ldr r3, [pc, #216] ; (8005088 ) + 8004fae: 2220 movs r2, #32 + 8004fb0: 721a strb r2, [r3, #8] lcddev.setycmd=R33; - 8004536: 4b35 ldr r3, [pc, #212] ; (800460c ) - 8004538: 2221 movs r2, #33 ; 0x21 - 800453a: 725a strb r2, [r3, #9] - 800453c: e05e b.n 80045fc + 8004fb2: 4b35 ldr r3, [pc, #212] ; (8005088 ) + 8004fb4: 2221 movs r2, #33 ; 0x21 + 8004fb6: 725a strb r2, [r3, #9] + 8004fb8: e05e b.n 8005078 } }else //横屏 { lcddev.dir=1; //横屏 - 800453e: 4b33 ldr r3, [pc, #204] ; (800460c ) - 8004540: 2201 movs r2, #1 - 8004542: 719a strb r2, [r3, #6] + 8004fba: 4b33 ldr r3, [pc, #204] ; (8005088 ) + 8004fbc: 2201 movs r2, #1 + 8004fbe: 719a strb r2, [r3, #6] lcddev.width=320; - 8004544: 4b31 ldr r3, [pc, #196] ; (800460c ) - 8004546: f44f 72a0 mov.w r2, #320 ; 0x140 - 800454a: 801a strh r2, [r3, #0] + 8004fc0: 4b31 ldr r3, [pc, #196] ; (8005088 ) + 8004fc2: f44f 72a0 mov.w r2, #320 ; 0x140 + 8004fc6: 801a strh r2, [r3, #0] lcddev.height=240; - 800454c: 4b2f ldr r3, [pc, #188] ; (800460c ) - 800454e: 22f0 movs r2, #240 ; 0xf0 - 8004550: 805a strh r2, [r3, #2] + 8004fc8: 4b2f ldr r3, [pc, #188] ; (8005088 ) + 8004fca: 22f0 movs r2, #240 ; 0xf0 + 8004fcc: 805a strh r2, [r3, #2] if(lcddev.id==0X9341||lcddev.id==0X5310) - 8004552: 4b2e ldr r3, [pc, #184] ; (800460c ) - 8004554: 889b ldrh r3, [r3, #4] - 8004556: f249 3241 movw r2, #37697 ; 0x9341 - 800455a: 4293 cmp r3, r2 - 800455c: d005 beq.n 800456a - 800455e: 4b2b ldr r3, [pc, #172] ; (800460c ) - 8004560: 889b ldrh r3, [r3, #4] - 8004562: f245 3210 movw r2, #21264 ; 0x5310 - 8004566: 4293 cmp r3, r2 - 8004568: d109 bne.n 800457e + 8004fce: 4b2e ldr r3, [pc, #184] ; (8005088 ) + 8004fd0: 889b ldrh r3, [r3, #4] + 8004fd2: f249 3241 movw r2, #37697 ; 0x9341 + 8004fd6: 4293 cmp r3, r2 + 8004fd8: d005 beq.n 8004fe6 + 8004fda: 4b2b ldr r3, [pc, #172] ; (8005088 ) + 8004fdc: 889b ldrh r3, [r3, #4] + 8004fde: f245 3210 movw r2, #21264 ; 0x5310 + 8004fe2: 4293 cmp r3, r2 + 8004fe4: d109 bne.n 8004ffa { lcddev.wramcmd=0X2C; - 800456a: 4b28 ldr r3, [pc, #160] ; (800460c ) - 800456c: 222c movs r2, #44 ; 0x2c - 800456e: 71da strb r2, [r3, #7] + 8004fe6: 4b28 ldr r3, [pc, #160] ; (8005088 ) + 8004fe8: 222c movs r2, #44 ; 0x2c + 8004fea: 71da strb r2, [r3, #7] lcddev.setxcmd=0X2A; - 8004570: 4b26 ldr r3, [pc, #152] ; (800460c ) - 8004572: 222a movs r2, #42 ; 0x2a - 8004574: 721a strb r2, [r3, #8] + 8004fec: 4b26 ldr r3, [pc, #152] ; (8005088 ) + 8004fee: 222a movs r2, #42 ; 0x2a + 8004ff0: 721a strb r2, [r3, #8] lcddev.setycmd=0X2B; - 8004576: 4b25 ldr r3, [pc, #148] ; (800460c ) - 8004578: 222b movs r2, #43 ; 0x2b - 800457a: 725a strb r2, [r3, #9] - 800457c: e028 b.n 80045d0 + 8004ff2: 4b25 ldr r3, [pc, #148] ; (8005088 ) + 8004ff4: 222b movs r2, #43 ; 0x2b + 8004ff6: 725a strb r2, [r3, #9] + 8004ff8: e028 b.n 800504c }else if(lcddev.id==0X6804) - 800457e: 4b23 ldr r3, [pc, #140] ; (800460c ) - 8004580: 889b ldrh r3, [r3, #4] - 8004582: f646 0204 movw r2, #26628 ; 0x6804 - 8004586: 4293 cmp r3, r2 - 8004588: d109 bne.n 800459e + 8004ffa: 4b23 ldr r3, [pc, #140] ; (8005088 ) + 8004ffc: 889b ldrh r3, [r3, #4] + 8004ffe: f646 0204 movw r2, #26628 ; 0x6804 + 8005002: 4293 cmp r3, r2 + 8005004: d109 bne.n 800501a { lcddev.wramcmd=0X2C; - 800458a: 4b20 ldr r3, [pc, #128] ; (800460c ) - 800458c: 222c movs r2, #44 ; 0x2c - 800458e: 71da strb r2, [r3, #7] + 8005006: 4b20 ldr r3, [pc, #128] ; (8005088 ) + 8005008: 222c movs r2, #44 ; 0x2c + 800500a: 71da strb r2, [r3, #7] lcddev.setxcmd=0X2B; - 8004590: 4b1e ldr r3, [pc, #120] ; (800460c ) - 8004592: 222b movs r2, #43 ; 0x2b - 8004594: 721a strb r2, [r3, #8] + 800500c: 4b1e ldr r3, [pc, #120] ; (8005088 ) + 800500e: 222b movs r2, #43 ; 0x2b + 8005010: 721a strb r2, [r3, #8] lcddev.setycmd=0X2A; - 8004596: 4b1d ldr r3, [pc, #116] ; (800460c ) - 8004598: 222a movs r2, #42 ; 0x2a - 800459a: 725a strb r2, [r3, #9] - 800459c: e018 b.n 80045d0 + 8005012: 4b1d ldr r3, [pc, #116] ; (8005088 ) + 8005014: 222a movs r2, #42 ; 0x2a + 8005016: 725a strb r2, [r3, #9] + 8005018: e018 b.n 800504c }else if(lcddev.id==0X8989) - 800459e: 4b1b ldr r3, [pc, #108] ; (800460c ) - 80045a0: 889b ldrh r3, [r3, #4] - 80045a2: f648 1289 movw r2, #35209 ; 0x8989 - 80045a6: 4293 cmp r3, r2 - 80045a8: d109 bne.n 80045be + 800501a: 4b1b ldr r3, [pc, #108] ; (8005088 ) + 800501c: 889b ldrh r3, [r3, #4] + 800501e: f648 1289 movw r2, #35209 ; 0x8989 + 8005022: 4293 cmp r3, r2 + 8005024: d109 bne.n 800503a { lcddev.wramcmd=R34; - 80045aa: 4b18 ldr r3, [pc, #96] ; (800460c ) - 80045ac: 2222 movs r2, #34 ; 0x22 - 80045ae: 71da strb r2, [r3, #7] + 8005026: 4b18 ldr r3, [pc, #96] ; (8005088 ) + 8005028: 2222 movs r2, #34 ; 0x22 + 800502a: 71da strb r2, [r3, #7] lcddev.setxcmd=0X4F; - 80045b0: 4b16 ldr r3, [pc, #88] ; (800460c ) - 80045b2: 224f movs r2, #79 ; 0x4f - 80045b4: 721a strb r2, [r3, #8] + 800502c: 4b16 ldr r3, [pc, #88] ; (8005088 ) + 800502e: 224f movs r2, #79 ; 0x4f + 8005030: 721a strb r2, [r3, #8] lcddev.setycmd=0X4E; - 80045b6: 4b15 ldr r3, [pc, #84] ; (800460c ) - 80045b8: 224e movs r2, #78 ; 0x4e - 80045ba: 725a strb r2, [r3, #9] - 80045bc: e008 b.n 80045d0 + 8005032: 4b15 ldr r3, [pc, #84] ; (8005088 ) + 8005034: 224e movs r2, #78 ; 0x4e + 8005036: 725a strb r2, [r3, #9] + 8005038: e008 b.n 800504c }else { lcddev.wramcmd=R34; - 80045be: 4b13 ldr r3, [pc, #76] ; (800460c ) - 80045c0: 2222 movs r2, #34 ; 0x22 - 80045c2: 71da strb r2, [r3, #7] + 800503a: 4b13 ldr r3, [pc, #76] ; (8005088 ) + 800503c: 2222 movs r2, #34 ; 0x22 + 800503e: 71da strb r2, [r3, #7] lcddev.setxcmd=R33; - 80045c4: 4b11 ldr r3, [pc, #68] ; (800460c ) - 80045c6: 2221 movs r2, #33 ; 0x21 - 80045c8: 721a strb r2, [r3, #8] + 8005040: 4b11 ldr r3, [pc, #68] ; (8005088 ) + 8005042: 2221 movs r2, #33 ; 0x21 + 8005044: 721a strb r2, [r3, #8] lcddev.setycmd=R32; - 80045ca: 4b10 ldr r3, [pc, #64] ; (800460c ) - 80045cc: 2220 movs r2, #32 - 80045ce: 725a strb r2, [r3, #9] + 8005046: 4b10 ldr r3, [pc, #64] ; (8005088 ) + 8005048: 2220 movs r2, #32 + 800504a: 725a strb r2, [r3, #9] } if(lcddev.id==0X6804||lcddev.id==0X5310) - 80045d0: 4b0e ldr r3, [pc, #56] ; (800460c ) - 80045d2: 889b ldrh r3, [r3, #4] - 80045d4: f646 0204 movw r2, #26628 ; 0x6804 - 80045d8: 4293 cmp r3, r2 - 80045da: d005 beq.n 80045e8 - 80045dc: 4b0b ldr r3, [pc, #44] ; (800460c ) - 80045de: 889b ldrh r3, [r3, #4] - 80045e0: f245 3210 movw r2, #21264 ; 0x5310 - 80045e4: 4293 cmp r3, r2 - 80045e6: d109 bne.n 80045fc + 800504c: 4b0e ldr r3, [pc, #56] ; (8005088 ) + 800504e: 889b ldrh r3, [r3, #4] + 8005050: f646 0204 movw r2, #26628 ; 0x6804 + 8005054: 4293 cmp r3, r2 + 8005056: d005 beq.n 8005064 + 8005058: 4b0b ldr r3, [pc, #44] ; (8005088 ) + 800505a: 889b ldrh r3, [r3, #4] + 800505c: f245 3210 movw r2, #21264 ; 0x5310 + 8005060: 4293 cmp r3, r2 + 8005062: d109 bne.n 8005078 { lcddev.width=480; - 80045e8: 4b08 ldr r3, [pc, #32] ; (800460c ) - 80045ea: f44f 72f0 mov.w r2, #480 ; 0x1e0 - 80045ee: 801a strh r2, [r3, #0] + 8005064: 4b08 ldr r3, [pc, #32] ; (8005088 ) + 8005066: f44f 72f0 mov.w r2, #480 ; 0x1e0 + 800506a: 801a strh r2, [r3, #0] lcddev.height=320; - 80045f0: 4b06 ldr r3, [pc, #24] ; (800460c ) - 80045f2: f44f 72a0 mov.w r2, #320 ; 0x140 - 80045f6: 805a strh r2, [r3, #2] - 80045f8: e000 b.n 80045fc + 800506c: 4b06 ldr r3, [pc, #24] ; (8005088 ) + 800506e: f44f 72a0 mov.w r2, #320 ; 0x140 + 8005072: 805a strh r2, [r3, #2] + 8005074: e000 b.n 8005078 if(lcddev.id==0X6804||lcddev.id==0X5310) - 80045fa: bf00 nop + 8005076: bf00 nop } } LCD_Scan_Dir(DFT_SCAN_DIR); //默认扫描方向 - 80045fc: 2000 movs r0, #0 - 80045fe: f7ff fdd3 bl 80041a8 + 8005078: 2000 movs r0, #0 + 800507a: f7ff fdd3 bl 8004c24 } - 8004602: bf00 nop - 8004604: 3708 adds r7, #8 - 8004606: 46bd mov sp, r7 - 8004608: bd80 pop {r7, pc} - 800460a: bf00 nop - 800460c: 20000300 .word 0x20000300 + 800507e: bf00 nop + 8005080: 3708 adds r7, #8 + 8005082: 46bd mov sp, r7 + 8005084: bd80 pop {r7, pc} + 8005086: bf00 nop + 8005088: 2000034c .word 0x2000034c -08004610 : +0800508c : //初始化lcd //该初始化函数可以初始化各种液晶! void LCDx_Init(void) { - 8004610: b580 push {r7, lr} - 8004612: af00 add r7, sp, #0 + 800508c: b580 push {r7, lr} + 800508e: af00 add r7, sp, #0 HAL_Delay(50); // delay 50 ms - 8004614: 2032 movs r0, #50 ; 0x32 - 8004616: f7fd fa5f bl 8001ad8 + 8005090: 2032 movs r0, #50 ; 0x32 + 8005092: f7fc fd53 bl 8001b3c LCD_WriteReg(0x0000,0x0001); - 800461a: 2101 movs r1, #1 - 800461c: 2000 movs r0, #0 - 800461e: f7ff fd99 bl 8004154 + 8005096: 2101 movs r1, #1 + 8005098: 2000 movs r0, #0 + 800509a: f7ff fd99 bl 8004bd0 HAL_Delay(50); // delay 50 ms - 8004622: 2032 movs r0, #50 ; 0x32 - 8004624: f7fd fa58 bl 8001ad8 + 800509e: 2032 movs r0, #50 ; 0x32 + 80050a0: f7fc fd4c bl 8001b3c lcddev.id = LCD_ReadReg(0x0000); - 8004628: 2000 movs r0, #0 - 800462a: f7ff fda9 bl 8004180 - 800462e: 4603 mov r3, r0 - 8004630: 461a mov r2, r3 - 8004632: 4b70 ldr r3, [pc, #448] ; (80047f4 ) - 8004634: 809a strh r2, [r3, #4] + 80050a4: 2000 movs r0, #0 + 80050a6: f7ff fda9 bl 8004bfc + 80050aa: 4603 mov r3, r0 + 80050ac: 461a mov r2, r3 + 80050ae: 4b70 ldr r3, [pc, #448] ; (8005270 ) + 80050b0: 809a strh r2, [r3, #4] LCD_WriteReg(0x00E5,0x78F0); - 8004636: f647 01f0 movw r1, #30960 ; 0x78f0 - 800463a: 20e5 movs r0, #229 ; 0xe5 - 800463c: f7ff fd8a bl 8004154 + 80050b2: f647 01f0 movw r1, #30960 ; 0x78f0 + 80050b6: 20e5 movs r0, #229 ; 0xe5 + 80050b8: f7ff fd8a bl 8004bd0 LCD_WriteReg(0x0001,0x0100); - 8004640: f44f 7180 mov.w r1, #256 ; 0x100 - 8004644: 2001 movs r0, #1 - 8004646: f7ff fd85 bl 8004154 + 80050bc: f44f 7180 mov.w r1, #256 ; 0x100 + 80050c0: 2001 movs r0, #1 + 80050c2: f7ff fd85 bl 8004bd0 LCD_WriteReg(0x0002,0x0700); - 800464a: f44f 61e0 mov.w r1, #1792 ; 0x700 - 800464e: 2002 movs r0, #2 - 8004650: f7ff fd80 bl 8004154 + 80050c6: f44f 61e0 mov.w r1, #1792 ; 0x700 + 80050ca: 2002 movs r0, #2 + 80050cc: f7ff fd80 bl 8004bd0 LCD_WriteReg(0x0003,0x1030); - 8004654: f241 0130 movw r1, #4144 ; 0x1030 - 8004658: 2003 movs r0, #3 - 800465a: f7ff fd7b bl 8004154 + 80050d0: f241 0130 movw r1, #4144 ; 0x1030 + 80050d4: 2003 movs r0, #3 + 80050d6: f7ff fd7b bl 8004bd0 LCD_WriteReg(0x0004,0x0000); - 800465e: 2100 movs r1, #0 - 8004660: 2004 movs r0, #4 - 8004662: f7ff fd77 bl 8004154 + 80050da: 2100 movs r1, #0 + 80050dc: 2004 movs r0, #4 + 80050de: f7ff fd77 bl 8004bd0 LCD_WriteReg(0x0008,0x0202); - 8004666: f240 2102 movw r1, #514 ; 0x202 - 800466a: 2008 movs r0, #8 - 800466c: f7ff fd72 bl 8004154 + 80050e2: f240 2102 movw r1, #514 ; 0x202 + 80050e6: 2008 movs r0, #8 + 80050e8: f7ff fd72 bl 8004bd0 LCD_WriteReg(0x0009,0x0000); - 8004670: 2100 movs r1, #0 - 8004672: 2009 movs r0, #9 - 8004674: f7ff fd6e bl 8004154 + 80050ec: 2100 movs r1, #0 + 80050ee: 2009 movs r0, #9 + 80050f0: f7ff fd6e bl 8004bd0 LCD_WriteReg(0x000A,0x0000); - 8004678: 2100 movs r1, #0 - 800467a: 200a movs r0, #10 - 800467c: f7ff fd6a bl 8004154 + 80050f4: 2100 movs r1, #0 + 80050f6: 200a movs r0, #10 + 80050f8: f7ff fd6a bl 8004bd0 LCD_WriteReg(0x000C,0x0000); - 8004680: 2100 movs r1, #0 - 8004682: 200c movs r0, #12 - 8004684: f7ff fd66 bl 8004154 + 80050fc: 2100 movs r1, #0 + 80050fe: 200c movs r0, #12 + 8005100: f7ff fd66 bl 8004bd0 LCD_WriteReg(0x000D,0x0000); - 8004688: 2100 movs r1, #0 - 800468a: 200d movs r0, #13 - 800468c: f7ff fd62 bl 8004154 + 8005104: 2100 movs r1, #0 + 8005106: 200d movs r0, #13 + 8005108: f7ff fd62 bl 8004bd0 LCD_WriteReg(0x000F,0x0000); - 8004690: 2100 movs r1, #0 - 8004692: 200f movs r0, #15 - 8004694: f7ff fd5e bl 8004154 + 800510c: 2100 movs r1, #0 + 800510e: 200f movs r0, #15 + 8005110: f7ff fd5e bl 8004bd0 //power on sequence VGHVGL LCD_WriteReg(0x0010,0x0000); - 8004698: 2100 movs r1, #0 - 800469a: 2010 movs r0, #16 - 800469c: f7ff fd5a bl 8004154 + 8005114: 2100 movs r1, #0 + 8005116: 2010 movs r0, #16 + 8005118: f7ff fd5a bl 8004bd0 LCD_WriteReg(0x0011,0x0007); - 80046a0: 2107 movs r1, #7 - 80046a2: 2011 movs r0, #17 - 80046a4: f7ff fd56 bl 8004154 + 800511c: 2107 movs r1, #7 + 800511e: 2011 movs r0, #17 + 8005120: f7ff fd56 bl 8004bd0 LCD_WriteReg(0x0012,0x0000); - 80046a8: 2100 movs r1, #0 - 80046aa: 2012 movs r0, #18 - 80046ac: f7ff fd52 bl 8004154 + 8005124: 2100 movs r1, #0 + 8005126: 2012 movs r0, #18 + 8005128: f7ff fd52 bl 8004bd0 LCD_WriteReg(0x0013,0x0000); - 80046b0: 2100 movs r1, #0 - 80046b2: 2013 movs r0, #19 - 80046b4: f7ff fd4e bl 8004154 + 800512c: 2100 movs r1, #0 + 800512e: 2013 movs r0, #19 + 8005130: f7ff fd4e bl 8004bd0 LCD_WriteReg(0x0007,0x0000); - 80046b8: 2100 movs r1, #0 - 80046ba: 2007 movs r0, #7 - 80046bc: f7ff fd4a bl 8004154 + 8005134: 2100 movs r1, #0 + 8005136: 2007 movs r0, #7 + 8005138: f7ff fd4a bl 8004bd0 //vgh LCD_WriteReg(0x0010,0x1690); - 80046c0: f241 6190 movw r1, #5776 ; 0x1690 - 80046c4: 2010 movs r0, #16 - 80046c6: f7ff fd45 bl 8004154 + 800513c: f241 6190 movw r1, #5776 ; 0x1690 + 8005140: 2010 movs r0, #16 + 8005142: f7ff fd45 bl 8004bd0 LCD_WriteReg(0x0011,0x0227); - 80046ca: f240 2127 movw r1, #551 ; 0x227 - 80046ce: 2011 movs r0, #17 - 80046d0: f7ff fd40 bl 8004154 + 8005146: f240 2127 movw r1, #551 ; 0x227 + 800514a: 2011 movs r0, #17 + 800514c: f7ff fd40 bl 8004bd0 //delayms(100); //vregiout LCD_WriteReg(0x0012,0x009D); //0x001b - 80046d4: 219d movs r1, #157 ; 0x9d - 80046d6: 2012 movs r0, #18 - 80046d8: f7ff fd3c bl 8004154 + 8005150: 219d movs r1, #157 ; 0x9d + 8005152: 2012 movs r0, #18 + 8005154: f7ff fd3c bl 8004bd0 //delayms(100); //vom amplitude LCD_WriteReg(0x0013,0x1900); - 80046dc: f44f 51c8 mov.w r1, #6400 ; 0x1900 - 80046e0: 2013 movs r0, #19 - 80046e2: f7ff fd37 bl 8004154 + 8005158: f44f 51c8 mov.w r1, #6400 ; 0x1900 + 800515c: 2013 movs r0, #19 + 800515e: f7ff fd37 bl 8004bd0 //delayms(100); //vom H LCD_WriteReg(0x0029,0x0025); - 80046e6: 2125 movs r1, #37 ; 0x25 - 80046e8: 2029 movs r0, #41 ; 0x29 - 80046ea: f7ff fd33 bl 8004154 + 8005162: 2125 movs r1, #37 ; 0x25 + 8005164: 2029 movs r0, #41 ; 0x29 + 8005166: f7ff fd33 bl 8004bd0 LCD_WriteReg(0x002B,0x000D); - 80046ee: 210d movs r1, #13 - 80046f0: 202b movs r0, #43 ; 0x2b - 80046f2: f7ff fd2f bl 8004154 + 800516a: 210d movs r1, #13 + 800516c: 202b movs r0, #43 ; 0x2b + 800516e: f7ff fd2f bl 8004bd0 //gamma LCD_WriteReg(0x0030,0x0007); - 80046f6: 2107 movs r1, #7 - 80046f8: 2030 movs r0, #48 ; 0x30 - 80046fa: f7ff fd2b bl 8004154 + 8005172: 2107 movs r1, #7 + 8005174: 2030 movs r0, #48 ; 0x30 + 8005176: f7ff fd2b bl 8004bd0 LCD_WriteReg(0x0031,0x0303); - 80046fe: f240 3103 movw r1, #771 ; 0x303 - 8004702: 2031 movs r0, #49 ; 0x31 - 8004704: f7ff fd26 bl 8004154 + 800517a: f240 3103 movw r1, #771 ; 0x303 + 800517e: 2031 movs r0, #49 ; 0x31 + 8005180: f7ff fd26 bl 8004bd0 LCD_WriteReg(0x0032,0x0003);// 0006 - 8004708: 2103 movs r1, #3 - 800470a: 2032 movs r0, #50 ; 0x32 - 800470c: f7ff fd22 bl 8004154 + 8005184: 2103 movs r1, #3 + 8005186: 2032 movs r0, #50 ; 0x32 + 8005188: f7ff fd22 bl 8004bd0 LCD_WriteReg(0x0035,0x0206); - 8004710: f240 2106 movw r1, #518 ; 0x206 - 8004714: 2035 movs r0, #53 ; 0x35 - 8004716: f7ff fd1d bl 8004154 + 800518c: f240 2106 movw r1, #518 ; 0x206 + 8005190: 2035 movs r0, #53 ; 0x35 + 8005192: f7ff fd1d bl 8004bd0 LCD_WriteReg(0x0036,0x0008); - 800471a: 2108 movs r1, #8 - 800471c: 2036 movs r0, #54 ; 0x36 - 800471e: f7ff fd19 bl 8004154 + 8005196: 2108 movs r1, #8 + 8005198: 2036 movs r0, #54 ; 0x36 + 800519a: f7ff fd19 bl 8004bd0 LCD_WriteReg(0x0037,0x0406); - 8004722: f240 4106 movw r1, #1030 ; 0x406 - 8004726: 2037 movs r0, #55 ; 0x37 - 8004728: f7ff fd14 bl 8004154 + 800519e: f240 4106 movw r1, #1030 ; 0x406 + 80051a2: 2037 movs r0, #55 ; 0x37 + 80051a4: f7ff fd14 bl 8004bd0 LCD_WriteReg(0x0038,0x0304);//0200 - 800472c: f44f 7141 mov.w r1, #772 ; 0x304 - 8004730: 2038 movs r0, #56 ; 0x38 - 8004732: f7ff fd0f bl 8004154 + 80051a8: f44f 7141 mov.w r1, #772 ; 0x304 + 80051ac: 2038 movs r0, #56 ; 0x38 + 80051ae: f7ff fd0f bl 8004bd0 LCD_WriteReg(0x0039,0x0007); - 8004736: 2107 movs r1, #7 - 8004738: 2039 movs r0, #57 ; 0x39 - 800473a: f7ff fd0b bl 8004154 + 80051b2: 2107 movs r1, #7 + 80051b4: 2039 movs r0, #57 ; 0x39 + 80051b6: f7ff fd0b bl 8004bd0 LCD_WriteReg(0x003C,0x0602);// 0504 - 800473e: f240 6102 movw r1, #1538 ; 0x602 - 8004742: 203c movs r0, #60 ; 0x3c - 8004744: f7ff fd06 bl 8004154 + 80051ba: f240 6102 movw r1, #1538 ; 0x602 + 80051be: 203c movs r0, #60 ; 0x3c + 80051c0: f7ff fd06 bl 8004bd0 LCD_WriteReg(0x003D,0x0008); - 8004748: 2108 movs r1, #8 - 800474a: 203d movs r0, #61 ; 0x3d - 800474c: f7ff fd02 bl 8004154 + 80051c4: 2108 movs r1, #8 + 80051c6: 203d movs r0, #61 ; 0x3d + 80051c8: f7ff fd02 bl 8004bd0 //ram LCD_WriteReg(0x0050,0x0000); - 8004750: 2100 movs r1, #0 - 8004752: 2050 movs r0, #80 ; 0x50 - 8004754: f7ff fcfe bl 8004154 + 80051cc: 2100 movs r1, #0 + 80051ce: 2050 movs r0, #80 ; 0x50 + 80051d0: f7ff fcfe bl 8004bd0 LCD_WriteReg(0x0051,0x00EF); - 8004758: 21ef movs r1, #239 ; 0xef - 800475a: 2051 movs r0, #81 ; 0x51 - 800475c: f7ff fcfa bl 8004154 + 80051d4: 21ef movs r1, #239 ; 0xef + 80051d6: 2051 movs r0, #81 ; 0x51 + 80051d8: f7ff fcfa bl 8004bd0 LCD_WriteReg(0x0052,0x0000); - 8004760: 2100 movs r1, #0 - 8004762: 2052 movs r0, #82 ; 0x52 - 8004764: f7ff fcf6 bl 8004154 + 80051dc: 2100 movs r1, #0 + 80051de: 2052 movs r0, #82 ; 0x52 + 80051e0: f7ff fcf6 bl 8004bd0 LCD_WriteReg(0x0053,0x013F); - 8004768: f240 113f movw r1, #319 ; 0x13f - 800476c: 2053 movs r0, #83 ; 0x53 - 800476e: f7ff fcf1 bl 8004154 + 80051e4: f240 113f movw r1, #319 ; 0x13f + 80051e8: 2053 movs r0, #83 ; 0x53 + 80051ea: f7ff fcf1 bl 8004bd0 LCD_WriteReg(0x0060,0xA700); - 8004772: f44f 4127 mov.w r1, #42752 ; 0xa700 - 8004776: 2060 movs r0, #96 ; 0x60 - 8004778: f7ff fcec bl 8004154 + 80051ee: f44f 4127 mov.w r1, #42752 ; 0xa700 + 80051f2: 2060 movs r0, #96 ; 0x60 + 80051f4: f7ff fcec bl 8004bd0 LCD_WriteReg(0x0061,0x0001); - 800477c: 2101 movs r1, #1 - 800477e: 2061 movs r0, #97 ; 0x61 - 8004780: f7ff fce8 bl 8004154 + 80051f8: 2101 movs r1, #1 + 80051fa: 2061 movs r0, #97 ; 0x61 + 80051fc: f7ff fce8 bl 8004bd0 LCD_WriteReg(0x006A,0x0000); - 8004784: 2100 movs r1, #0 - 8004786: 206a movs r0, #106 ; 0x6a - 8004788: f7ff fce4 bl 8004154 + 8005200: 2100 movs r1, #0 + 8005202: 206a movs r0, #106 ; 0x6a + 8005204: f7ff fce4 bl 8004bd0 // LCD_WriteReg(0x0080,0x0000); - 800478c: 2100 movs r1, #0 - 800478e: 2080 movs r0, #128 ; 0x80 - 8004790: f7ff fce0 bl 8004154 + 8005208: 2100 movs r1, #0 + 800520a: 2080 movs r0, #128 ; 0x80 + 800520c: f7ff fce0 bl 8004bd0 LCD_WriteReg(0x0081,0x0000); - 8004794: 2100 movs r1, #0 - 8004796: 2081 movs r0, #129 ; 0x81 - 8004798: f7ff fcdc bl 8004154 + 8005210: 2100 movs r1, #0 + 8005212: 2081 movs r0, #129 ; 0x81 + 8005214: f7ff fcdc bl 8004bd0 LCD_WriteReg(0x0082,0x0000); - 800479c: 2100 movs r1, #0 - 800479e: 2082 movs r0, #130 ; 0x82 - 80047a0: f7ff fcd8 bl 8004154 + 8005218: 2100 movs r1, #0 + 800521a: 2082 movs r0, #130 ; 0x82 + 800521c: f7ff fcd8 bl 8004bd0 LCD_WriteReg(0x0083,0x0000); - 80047a4: 2100 movs r1, #0 - 80047a6: 2083 movs r0, #131 ; 0x83 - 80047a8: f7ff fcd4 bl 8004154 + 8005220: 2100 movs r1, #0 + 8005222: 2083 movs r0, #131 ; 0x83 + 8005224: f7ff fcd4 bl 8004bd0 LCD_WriteReg(0x0084,0x0000); - 80047ac: 2100 movs r1, #0 - 80047ae: 2084 movs r0, #132 ; 0x84 - 80047b0: f7ff fcd0 bl 8004154 + 8005228: 2100 movs r1, #0 + 800522a: 2084 movs r0, #132 ; 0x84 + 800522c: f7ff fcd0 bl 8004bd0 LCD_WriteReg(0x0085,0x0000); - 80047b4: 2100 movs r1, #0 - 80047b6: 2085 movs r0, #133 ; 0x85 - 80047b8: f7ff fccc bl 8004154 + 8005230: 2100 movs r1, #0 + 8005232: 2085 movs r0, #133 ; 0x85 + 8005234: f7ff fccc bl 8004bd0 // LCD_WriteReg(0x0090,0x0010); - 80047bc: 2110 movs r1, #16 - 80047be: 2090 movs r0, #144 ; 0x90 - 80047c0: f7ff fcc8 bl 8004154 + 8005238: 2110 movs r1, #16 + 800523a: 2090 movs r0, #144 ; 0x90 + 800523c: f7ff fcc8 bl 8004bd0 LCD_WriteReg(0x0092,0x0600); - 80047c4: f44f 61c0 mov.w r1, #1536 ; 0x600 - 80047c8: 2092 movs r0, #146 ; 0x92 - 80047ca: f7ff fcc3 bl 8004154 + 8005240: f44f 61c0 mov.w r1, #1536 ; 0x600 + 8005244: 2092 movs r0, #146 ; 0x92 + 8005246: f7ff fcc3 bl 8004bd0 LCD_WriteReg(0x0007,0x0133); - 80047ce: f240 1133 movw r1, #307 ; 0x133 - 80047d2: 2007 movs r0, #7 - 80047d4: f7ff fcbe bl 8004154 + 800524a: f240 1133 movw r1, #307 ; 0x133 + 800524e: 2007 movs r0, #7 + 8005250: f7ff fcbe bl 8004bd0 LCD_WriteReg(0x00,0x0022);// - 80047d8: 2122 movs r1, #34 ; 0x22 - 80047da: 2000 movs r0, #0 - 80047dc: f7ff fcba bl 8004154 + 8005254: 2122 movs r1, #34 ; 0x22 + 8005256: 2000 movs r0, #0 + 8005258: f7ff fcba bl 8004bd0 LCD_Display_Dir(1); //默认为h屏 - 80047e0: 2001 movs r0, #1 - 80047e2: f7ff fe4f bl 8004484 + 800525c: 2001 movs r0, #1 + 800525e: f7ff fe4f bl 8004f00 LCD_BL(0); - 80047e6: 2200 movs r2, #0 - 80047e8: 2101 movs r1, #1 - 80047ea: 4803 ldr r0, [pc, #12] ; (80047f8 ) - 80047ec: f7fd fc51 bl 8002092 + 8005262: 2200 movs r2, #0 + 8005264: 2101 movs r1, #1 + 8005266: 4803 ldr r0, [pc, #12] ; (8005274 ) + 8005268: f7fc ff45 bl 80020f6 } - 80047f0: bf00 nop - 80047f2: bd80 pop {r7, pc} - 80047f4: 20000300 .word 0x20000300 - 80047f8: 40010c00 .word 0x40010c00 + 800526c: bf00 nop + 800526e: bd80 pop {r7, pc} + 8005270: 2000034c .word 0x2000034c + 8005274: 40010c00 .word 0x40010c00 -080047fc : +08005278 : //***********************************************************打点 读点 什么的 //设置光标位置 //Xpos:横坐标 //Ypos:纵坐标 void LCD_SetCursor(uint16_t Xpos, uint16_t Ypos) { - 80047fc: b580 push {r7, lr} - 80047fe: b082 sub sp, #8 - 8004800: af00 add r7, sp, #0 - 8004802: 4603 mov r3, r0 - 8004804: 460a mov r2, r1 - 8004806: 80fb strh r3, [r7, #6] - 8004808: 4613 mov r3, r2 - 800480a: 80bb strh r3, [r7, #4] + 8005278: b580 push {r7, lr} + 800527a: b082 sub sp, #8 + 800527c: af00 add r7, sp, #0 + 800527e: 4603 mov r3, r0 + 8005280: 460a mov r2, r1 + 8005282: 80fb strh r3, [r7, #6] + 8005284: 4613 mov r3, r2 + 8005286: 80bb strh r3, [r7, #4] if(lcddev.id==0X9341||lcddev.id==0X5310) - 800480c: 4b42 ldr r3, [pc, #264] ; (8004918 ) - 800480e: 889b ldrh r3, [r3, #4] - 8004810: f249 3241 movw r2, #37697 ; 0x9341 - 8004814: 4293 cmp r3, r2 - 8004816: d005 beq.n 8004824 - 8004818: 4b3f ldr r3, [pc, #252] ; (8004918 ) - 800481a: 889b ldrh r3, [r3, #4] - 800481c: f245 3210 movw r2, #21264 ; 0x5310 - 8004820: 4293 cmp r3, r2 - 8004822: d124 bne.n 800486e + 8005288: 4b42 ldr r3, [pc, #264] ; (8005394 ) + 800528a: 889b ldrh r3, [r3, #4] + 800528c: f249 3241 movw r2, #37697 ; 0x9341 + 8005290: 4293 cmp r3, r2 + 8005292: d005 beq.n 80052a0 + 8005294: 4b3f ldr r3, [pc, #252] ; (8005394 ) + 8005296: 889b ldrh r3, [r3, #4] + 8005298: f245 3210 movw r2, #21264 ; 0x5310 + 800529c: 4293 cmp r3, r2 + 800529e: d124 bne.n 80052ea { LCD_WR_REG(lcddev.setxcmd); - 8004824: 4b3c ldr r3, [pc, #240] ; (8004918 ) - 8004826: 7a1b ldrb r3, [r3, #8] - 8004828: b29b uxth r3, r3 - 800482a: 4618 mov r0, r3 - 800482c: f7ff fc74 bl 8004118 + 80052a0: 4b3c ldr r3, [pc, #240] ; (8005394 ) + 80052a2: 7a1b ldrb r3, [r3, #8] + 80052a4: b29b uxth r3, r3 + 80052a6: 4618 mov r0, r3 + 80052a8: f7ff fc74 bl 8004b94 LCD_WR_DATA(Xpos>>8); - 8004830: 88fb ldrh r3, [r7, #6] - 8004832: 0a1b lsrs r3, r3, #8 - 8004834: b29b uxth r3, r3 - 8004836: 4618 mov r0, r3 - 8004838: f7ff fc7c bl 8004134 + 80052ac: 88fb ldrh r3, [r7, #6] + 80052ae: 0a1b lsrs r3, r3, #8 + 80052b0: b29b uxth r3, r3 + 80052b2: 4618 mov r0, r3 + 80052b4: f7ff fc7c bl 8004bb0 LCD_WR_DATA(Xpos&0XFF); - 800483c: 88fb ldrh r3, [r7, #6] - 800483e: b2db uxtb r3, r3 - 8004840: b29b uxth r3, r3 - 8004842: 4618 mov r0, r3 - 8004844: f7ff fc76 bl 8004134 + 80052b8: 88fb ldrh r3, [r7, #6] + 80052ba: b2db uxtb r3, r3 + 80052bc: b29b uxth r3, r3 + 80052be: 4618 mov r0, r3 + 80052c0: f7ff fc76 bl 8004bb0 LCD_WR_REG(lcddev.setycmd); - 8004848: 4b33 ldr r3, [pc, #204] ; (8004918 ) - 800484a: 7a5b ldrb r3, [r3, #9] - 800484c: b29b uxth r3, r3 - 800484e: 4618 mov r0, r3 - 8004850: f7ff fc62 bl 8004118 + 80052c4: 4b33 ldr r3, [pc, #204] ; (8005394 ) + 80052c6: 7a5b ldrb r3, [r3, #9] + 80052c8: b29b uxth r3, r3 + 80052ca: 4618 mov r0, r3 + 80052cc: f7ff fc62 bl 8004b94 LCD_WR_DATA(Ypos>>8); - 8004854: 88bb ldrh r3, [r7, #4] - 8004856: 0a1b lsrs r3, r3, #8 - 8004858: b29b uxth r3, r3 - 800485a: 4618 mov r0, r3 - 800485c: f7ff fc6a bl 8004134 + 80052d0: 88bb ldrh r3, [r7, #4] + 80052d2: 0a1b lsrs r3, r3, #8 + 80052d4: b29b uxth r3, r3 + 80052d6: 4618 mov r0, r3 + 80052d8: f7ff fc6a bl 8004bb0 LCD_WR_DATA(Ypos&0XFF); - 8004860: 88bb ldrh r3, [r7, #4] - 8004862: b2db uxtb r3, r3 - 8004864: b29b uxth r3, r3 - 8004866: 4618 mov r0, r3 - 8004868: f7ff fc64 bl 8004134 + 80052dc: 88bb ldrh r3, [r7, #4] + 80052de: b2db uxtb r3, r3 + 80052e0: b29b uxth r3, r3 + 80052e2: 4618 mov r0, r3 + 80052e4: f7ff fc64 bl 8004bb0 { if(lcddev.dir==1)Xpos=lcddev.width-1-Xpos;//横屏其实就是调转x,y坐标 LCD_WriteReg(lcddev.setxcmd, Xpos); LCD_WriteReg(lcddev.setycmd, Ypos); } } - 800486c: e050 b.n 8004910 + 80052e8: e050 b.n 800538c }else if(lcddev.id==0X6804) - 800486e: 4b2a ldr r3, [pc, #168] ; (8004918 ) - 8004870: 889b ldrh r3, [r3, #4] - 8004872: f646 0204 movw r2, #26628 ; 0x6804 - 8004876: 4293 cmp r3, r2 - 8004878: d12f bne.n 80048da + 80052ea: 4b2a ldr r3, [pc, #168] ; (8005394 ) + 80052ec: 889b ldrh r3, [r3, #4] + 80052ee: f646 0204 movw r2, #26628 ; 0x6804 + 80052f2: 4293 cmp r3, r2 + 80052f4: d12f bne.n 8005356 if(lcddev.dir==1)Xpos=lcddev.width-1-Xpos;//横屏时处理 - 800487a: 4b27 ldr r3, [pc, #156] ; (8004918 ) - 800487c: 799b ldrb r3, [r3, #6] - 800487e: 2b01 cmp r3, #1 - 8004880: d106 bne.n 8004890 - 8004882: 4b25 ldr r3, [pc, #148] ; (8004918 ) - 8004884: 881a ldrh r2, [r3, #0] - 8004886: 88fb ldrh r3, [r7, #6] - 8004888: 1ad3 subs r3, r2, r3 - 800488a: b29b uxth r3, r3 - 800488c: 3b01 subs r3, #1 - 800488e: 80fb strh r3, [r7, #6] + 80052f6: 4b27 ldr r3, [pc, #156] ; (8005394 ) + 80052f8: 799b ldrb r3, [r3, #6] + 80052fa: 2b01 cmp r3, #1 + 80052fc: d106 bne.n 800530c + 80052fe: 4b25 ldr r3, [pc, #148] ; (8005394 ) + 8005300: 881a ldrh r2, [r3, #0] + 8005302: 88fb ldrh r3, [r7, #6] + 8005304: 1ad3 subs r3, r2, r3 + 8005306: b29b uxth r3, r3 + 8005308: 3b01 subs r3, #1 + 800530a: 80fb strh r3, [r7, #6] LCD_WR_REG(lcddev.setxcmd); - 8004890: 4b21 ldr r3, [pc, #132] ; (8004918 ) - 8004892: 7a1b ldrb r3, [r3, #8] - 8004894: b29b uxth r3, r3 - 8004896: 4618 mov r0, r3 - 8004898: f7ff fc3e bl 8004118 + 800530c: 4b21 ldr r3, [pc, #132] ; (8005394 ) + 800530e: 7a1b ldrb r3, [r3, #8] + 8005310: b29b uxth r3, r3 + 8005312: 4618 mov r0, r3 + 8005314: f7ff fc3e bl 8004b94 LCD_WR_DATA(Xpos>>8); - 800489c: 88fb ldrh r3, [r7, #6] - 800489e: 0a1b lsrs r3, r3, #8 - 80048a0: b29b uxth r3, r3 - 80048a2: 4618 mov r0, r3 - 80048a4: f7ff fc46 bl 8004134 + 8005318: 88fb ldrh r3, [r7, #6] + 800531a: 0a1b lsrs r3, r3, #8 + 800531c: b29b uxth r3, r3 + 800531e: 4618 mov r0, r3 + 8005320: f7ff fc46 bl 8004bb0 LCD_WR_DATA(Xpos&0XFF); - 80048a8: 88fb ldrh r3, [r7, #6] - 80048aa: b2db uxtb r3, r3 - 80048ac: b29b uxth r3, r3 - 80048ae: 4618 mov r0, r3 - 80048b0: f7ff fc40 bl 8004134 + 8005324: 88fb ldrh r3, [r7, #6] + 8005326: b2db uxtb r3, r3 + 8005328: b29b uxth r3, r3 + 800532a: 4618 mov r0, r3 + 800532c: f7ff fc40 bl 8004bb0 LCD_WR_REG(lcddev.setycmd); - 80048b4: 4b18 ldr r3, [pc, #96] ; (8004918 ) - 80048b6: 7a5b ldrb r3, [r3, #9] - 80048b8: b29b uxth r3, r3 - 80048ba: 4618 mov r0, r3 - 80048bc: f7ff fc2c bl 8004118 + 8005330: 4b18 ldr r3, [pc, #96] ; (8005394 ) + 8005332: 7a5b ldrb r3, [r3, #9] + 8005334: b29b uxth r3, r3 + 8005336: 4618 mov r0, r3 + 8005338: f7ff fc2c bl 8004b94 LCD_WR_DATA(Ypos>>8); - 80048c0: 88bb ldrh r3, [r7, #4] - 80048c2: 0a1b lsrs r3, r3, #8 - 80048c4: b29b uxth r3, r3 - 80048c6: 4618 mov r0, r3 - 80048c8: f7ff fc34 bl 8004134 + 800533c: 88bb ldrh r3, [r7, #4] + 800533e: 0a1b lsrs r3, r3, #8 + 8005340: b29b uxth r3, r3 + 8005342: 4618 mov r0, r3 + 8005344: f7ff fc34 bl 8004bb0 LCD_WR_DATA(Ypos&0XFF); - 80048cc: 88bb ldrh r3, [r7, #4] - 80048ce: b2db uxtb r3, r3 - 80048d0: b29b uxth r3, r3 - 80048d2: 4618 mov r0, r3 - 80048d4: f7ff fc2e bl 8004134 + 8005348: 88bb ldrh r3, [r7, #4] + 800534a: b2db uxtb r3, r3 + 800534c: b29b uxth r3, r3 + 800534e: 4618 mov r0, r3 + 8005350: f7ff fc2e bl 8004bb0 } - 80048d8: e01a b.n 8004910 + 8005354: e01a b.n 800538c if(lcddev.dir==1)Xpos=lcddev.width-1-Xpos;//横屏其实就是调转x,y坐标 - 80048da: 4b0f ldr r3, [pc, #60] ; (8004918 ) - 80048dc: 799b ldrb r3, [r3, #6] - 80048de: 2b01 cmp r3, #1 - 80048e0: d106 bne.n 80048f0 - 80048e2: 4b0d ldr r3, [pc, #52] ; (8004918 ) - 80048e4: 881a ldrh r2, [r3, #0] - 80048e6: 88fb ldrh r3, [r7, #6] - 80048e8: 1ad3 subs r3, r2, r3 - 80048ea: b29b uxth r3, r3 - 80048ec: 3b01 subs r3, #1 - 80048ee: 80fb strh r3, [r7, #6] + 8005356: 4b0f ldr r3, [pc, #60] ; (8005394 ) + 8005358: 799b ldrb r3, [r3, #6] + 800535a: 2b01 cmp r3, #1 + 800535c: d106 bne.n 800536c + 800535e: 4b0d ldr r3, [pc, #52] ; (8005394 ) + 8005360: 881a ldrh r2, [r3, #0] + 8005362: 88fb ldrh r3, [r7, #6] + 8005364: 1ad3 subs r3, r2, r3 + 8005366: b29b uxth r3, r3 + 8005368: 3b01 subs r3, #1 + 800536a: 80fb strh r3, [r7, #6] LCD_WriteReg(lcddev.setxcmd, Xpos); - 80048f0: 4b09 ldr r3, [pc, #36] ; (8004918 ) - 80048f2: 7a1b ldrb r3, [r3, #8] - 80048f4: b29b uxth r3, r3 - 80048f6: 88fa ldrh r2, [r7, #6] - 80048f8: 4611 mov r1, r2 - 80048fa: 4618 mov r0, r3 - 80048fc: f7ff fc2a bl 8004154 + 800536c: 4b09 ldr r3, [pc, #36] ; (8005394 ) + 800536e: 7a1b ldrb r3, [r3, #8] + 8005370: b29b uxth r3, r3 + 8005372: 88fa ldrh r2, [r7, #6] + 8005374: 4611 mov r1, r2 + 8005376: 4618 mov r0, r3 + 8005378: f7ff fc2a bl 8004bd0 LCD_WriteReg(lcddev.setycmd, Ypos); - 8004900: 4b05 ldr r3, [pc, #20] ; (8004918 ) - 8004902: 7a5b ldrb r3, [r3, #9] - 8004904: b29b uxth r3, r3 - 8004906: 88ba ldrh r2, [r7, #4] - 8004908: 4611 mov r1, r2 - 800490a: 4618 mov r0, r3 - 800490c: f7ff fc22 bl 8004154 + 800537c: 4b05 ldr r3, [pc, #20] ; (8005394 ) + 800537e: 7a5b ldrb r3, [r3, #9] + 8005380: b29b uxth r3, r3 + 8005382: 88ba ldrh r2, [r7, #4] + 8005384: 4611 mov r1, r2 + 8005386: 4618 mov r0, r3 + 8005388: f7ff fc22 bl 8004bd0 } - 8004910: bf00 nop - 8004912: 3708 adds r7, #8 - 8004914: 46bd mov sp, r7 - 8004916: bd80 pop {r7, pc} - 8004918: 20000300 .word 0x20000300 + 800538c: bf00 nop + 800538e: 3708 adds r7, #8 + 8005390: 46bd mov sp, r7 + 8005392: bd80 pop {r7, pc} + 8005394: 2000034c .word 0x2000034c -0800491c : +08005398 : } //画点 //x,y:坐标 //POINT_COLOR:此点的颜色 void LCD_set_dot(uint16_t x,uint16_t y,uint16_t color) { - 800491c: b580 push {r7, lr} - 800491e: b082 sub sp, #8 - 8004920: af00 add r7, sp, #0 - 8004922: 4603 mov r3, r0 - 8004924: 80fb strh r3, [r7, #6] - 8004926: 460b mov r3, r1 - 8004928: 80bb strh r3, [r7, #4] - 800492a: 4613 mov r3, r2 - 800492c: 807b strh r3, [r7, #2] + 8005398: b580 push {r7, lr} + 800539a: b082 sub sp, #8 + 800539c: af00 add r7, sp, #0 + 800539e: 4603 mov r3, r0 + 80053a0: 80fb strh r3, [r7, #6] + 80053a2: 460b mov r3, r1 + 80053a4: 80bb strh r3, [r7, #4] + 80053a6: 4613 mov r3, r2 + 80053a8: 807b strh r3, [r7, #2] LCD_SetCursor(x,y); //设置光标位置 - 800492e: 88ba ldrh r2, [r7, #4] - 8004930: 88fb ldrh r3, [r7, #6] - 8004932: 4611 mov r1, r2 - 8004934: 4618 mov r0, r3 - 8004936: f7ff ff61 bl 80047fc + 80053aa: 88ba ldrh r2, [r7, #4] + 80053ac: 88fb ldrh r3, [r7, #6] + 80053ae: 4611 mov r1, r2 + 80053b0: 4618 mov r0, r3 + 80053b2: f7ff ff61 bl 8005278 LCD_REG_ADDRESS=lcddev.wramcmd; //开始写入GRAM - 800493a: 4b06 ldr r3, [pc, #24] ; (8004954 ) - 800493c: 79da ldrb r2, [r3, #7] - 800493e: f04f 43d8 mov.w r3, #1811939328 ; 0x6c000000 - 8004942: b292 uxth r2, r2 - 8004944: 801a strh r2, [r3, #0] + 80053b6: 4b06 ldr r3, [pc, #24] ; (80053d0 ) + 80053b8: 79da ldrb r2, [r3, #7] + 80053ba: f04f 43d8 mov.w r3, #1811939328 ; 0x6c000000 + 80053be: b292 uxth r2, r2 + 80053c0: 801a strh r2, [r3, #0] LCD_DATA_ADDRESS=color; - 8004946: 4a04 ldr r2, [pc, #16] ; (8004958 ) - 8004948: 887b ldrh r3, [r7, #2] - 800494a: 8013 strh r3, [r2, #0] + 80053c2: 4a04 ldr r2, [pc, #16] ; (80053d4 ) + 80053c4: 887b ldrh r3, [r7, #2] + 80053c6: 8013 strh r3, [r2, #0] } - 800494c: bf00 nop - 800494e: 3708 adds r7, #8 - 8004950: 46bd mov sp, r7 - 8004952: bd80 pop {r7, pc} - 8004954: 20000300 .word 0x20000300 - 8004958: 6c000800 .word 0x6c000800 + 80053c8: bf00 nop + 80053ca: 3708 adds r7, #8 + 80053cc: 46bd mov sp, r7 + 80053ce: bd80 pop {r7, pc} + 80053d0: 2000034c .word 0x2000034c + 80053d4: 6c000800 .word 0x6c000800 -0800495c : +080053d8 : //清屏函数 //color:要清屏的填充色 void LCD_Clear(uint16_t color) { - 800495c: b580 push {r7, lr} - 800495e: b084 sub sp, #16 - 8004960: af00 add r7, sp, #0 - 8004962: 4603 mov r3, r0 - 8004964: 80fb strh r3, [r7, #6] + 80053d8: b580 push {r7, lr} + 80053da: b084 sub sp, #16 + 80053dc: af00 add r7, sp, #0 + 80053de: 4603 mov r3, r0 + 80053e0: 80fb strh r3, [r7, #6] uint32_t index=0; - 8004966: 2300 movs r3, #0 - 8004968: 60fb str r3, [r7, #12] + 80053e2: 2300 movs r3, #0 + 80053e4: 60fb str r3, [r7, #12] uint32_t totalpoint=lcddev.width; - 800496a: 4b23 ldr r3, [pc, #140] ; (80049f8 ) - 800496c: 881b ldrh r3, [r3, #0] - 800496e: 60bb str r3, [r7, #8] + 80053e6: 4b23 ldr r3, [pc, #140] ; (8005474 ) + 80053e8: 881b ldrh r3, [r3, #0] + 80053ea: 60bb str r3, [r7, #8] totalpoint*=lcddev.height; //得到总点数 - 8004970: 4b21 ldr r3, [pc, #132] ; (80049f8 ) - 8004972: 885b ldrh r3, [r3, #2] - 8004974: 461a mov r2, r3 - 8004976: 68bb ldr r3, [r7, #8] - 8004978: fb02 f303 mul.w r3, r2, r3 - 800497c: 60bb str r3, [r7, #8] + 80053ec: 4b21 ldr r3, [pc, #132] ; (8005474 ) + 80053ee: 885b ldrh r3, [r3, #2] + 80053f0: 461a mov r2, r3 + 80053f2: 68bb ldr r3, [r7, #8] + 80053f4: fb02 f303 mul.w r3, r2, r3 + 80053f8: 60bb str r3, [r7, #8] if((lcddev.id==0X6804)&&(lcddev.dir==1))//6804横屏的时候特殊处理 - 800497e: 4b1e ldr r3, [pc, #120] ; (80049f8 ) - 8004980: 889b ldrh r3, [r3, #4] - 8004982: f646 0204 movw r2, #26628 ; 0x6804 - 8004986: 4293 cmp r3, r2 - 8004988: d11a bne.n 80049c0 - 800498a: 4b1b ldr r3, [pc, #108] ; (80049f8 ) - 800498c: 799b ldrb r3, [r3, #6] - 800498e: 2b01 cmp r3, #1 - 8004990: d116 bne.n 80049c0 + 80053fa: 4b1e ldr r3, [pc, #120] ; (8005474 ) + 80053fc: 889b ldrh r3, [r3, #4] + 80053fe: f646 0204 movw r2, #26628 ; 0x6804 + 8005402: 4293 cmp r3, r2 + 8005404: d11a bne.n 800543c + 8005406: 4b1b ldr r3, [pc, #108] ; (8005474 ) + 8005408: 799b ldrb r3, [r3, #6] + 800540a: 2b01 cmp r3, #1 + 800540c: d116 bne.n 800543c { lcddev.dir=0; - 8004992: 4b19 ldr r3, [pc, #100] ; (80049f8 ) - 8004994: 2200 movs r2, #0 - 8004996: 719a strb r2, [r3, #6] + 800540e: 4b19 ldr r3, [pc, #100] ; (8005474 ) + 8005410: 2200 movs r2, #0 + 8005412: 719a strb r2, [r3, #6] lcddev.setxcmd=0X2A; - 8004998: 4b17 ldr r3, [pc, #92] ; (80049f8 ) - 800499a: 222a movs r2, #42 ; 0x2a - 800499c: 721a strb r2, [r3, #8] + 8005414: 4b17 ldr r3, [pc, #92] ; (8005474 ) + 8005416: 222a movs r2, #42 ; 0x2a + 8005418: 721a strb r2, [r3, #8] lcddev.setycmd=0X2B; - 800499e: 4b16 ldr r3, [pc, #88] ; (80049f8 ) - 80049a0: 222b movs r2, #43 ; 0x2b - 80049a2: 725a strb r2, [r3, #9] + 800541a: 4b16 ldr r3, [pc, #88] ; (8005474 ) + 800541c: 222b movs r2, #43 ; 0x2b + 800541e: 725a strb r2, [r3, #9] LCD_SetCursor(0x00,0x0000); //设置光标位置 - 80049a4: 2100 movs r1, #0 - 80049a6: 2000 movs r0, #0 - 80049a8: f7ff ff28 bl 80047fc + 8005420: 2100 movs r1, #0 + 8005422: 2000 movs r0, #0 + 8005424: f7ff ff28 bl 8005278 lcddev.dir=1; - 80049ac: 4b12 ldr r3, [pc, #72] ; (80049f8 ) - 80049ae: 2201 movs r2, #1 - 80049b0: 719a strb r2, [r3, #6] + 8005428: 4b12 ldr r3, [pc, #72] ; (8005474 ) + 800542a: 2201 movs r2, #1 + 800542c: 719a strb r2, [r3, #6] lcddev.setxcmd=0X2B; - 80049b2: 4b11 ldr r3, [pc, #68] ; (80049f8 ) - 80049b4: 222b movs r2, #43 ; 0x2b - 80049b6: 721a strb r2, [r3, #8] + 800542e: 4b11 ldr r3, [pc, #68] ; (8005474 ) + 8005430: 222b movs r2, #43 ; 0x2b + 8005432: 721a strb r2, [r3, #8] lcddev.setycmd=0X2A; - 80049b8: 4b0f ldr r3, [pc, #60] ; (80049f8 ) - 80049ba: 222a movs r2, #42 ; 0x2a - 80049bc: 725a strb r2, [r3, #9] - 80049be: e003 b.n 80049c8 + 8005434: 4b0f ldr r3, [pc, #60] ; (8005474 ) + 8005436: 222a movs r2, #42 ; 0x2a + 8005438: 725a strb r2, [r3, #9] + 800543a: e003 b.n 8005444 }else LCD_SetCursor(0x00,0x0000); //设置光标位置 - 80049c0: 2100 movs r1, #0 - 80049c2: 2000 movs r0, #0 - 80049c4: f7ff ff1a bl 80047fc + 800543c: 2100 movs r1, #0 + 800543e: 2000 movs r0, #0 + 8005440: f7ff ff1a bl 8005278 LCD_REG_ADDRESS=lcddev.wramcmd; //开始写入GRAM - 80049c8: 4b0b ldr r3, [pc, #44] ; (80049f8 ) - 80049ca: 79da ldrb r2, [r3, #7] - 80049cc: f04f 43d8 mov.w r3, #1811939328 ; 0x6c000000 - 80049d0: b292 uxth r2, r2 - 80049d2: 801a strh r2, [r3, #0] + 8005444: 4b0b ldr r3, [pc, #44] ; (8005474 ) + 8005446: 79da ldrb r2, [r3, #7] + 8005448: f04f 43d8 mov.w r3, #1811939328 ; 0x6c000000 + 800544c: b292 uxth r2, r2 + 800544e: 801a strh r2, [r3, #0] for(index=0;index + 8005450: 2300 movs r3, #0 + 8005452: 60fb str r3, [r7, #12] + 8005454: e005 b.n 8005462 { LCD_DATA_ADDRESS=color; - 80049da: 4a08 ldr r2, [pc, #32] ; (80049fc ) - 80049dc: 88fb ldrh r3, [r7, #6] - 80049de: 8013 strh r3, [r2, #0] + 8005456: 4a08 ldr r2, [pc, #32] ; (8005478 ) + 8005458: 88fb ldrh r3, [r7, #6] + 800545a: 8013 strh r3, [r2, #0] for(index=0;index + 800545c: 68fb ldr r3, [r7, #12] + 800545e: 3301 adds r3, #1 + 8005460: 60fb str r3, [r7, #12] + 8005462: 68fa ldr r2, [r7, #12] + 8005464: 68bb ldr r3, [r7, #8] + 8005466: 429a cmp r2, r3 + 8005468: d3f5 bcc.n 8005456 } } - 80049ee: bf00 nop - 80049f0: bf00 nop - 80049f2: 3710 adds r7, #16 - 80049f4: 46bd mov sp, r7 - 80049f6: bd80 pop {r7, pc} - 80049f8: 20000300 .word 0x20000300 - 80049fc: 6c000800 .word 0x6c000800 + 800546a: bf00 nop + 800546c: bf00 nop + 800546e: 3710 adds r7, #16 + 8005470: 46bd mov sp, r7 + 8005472: bd80 pop {r7, pc} + 8005474: 2000034c .word 0x2000034c + 8005478: 6c000800 .word 0x6c000800 -08004a00 : +0800547c : //***********************************2D //画线 //x1,y1:起点坐标 //x2,y2:终点坐标 void LCD_DrawLine(uint16_t x1, uint16_t y1, uint16_t x2, uint16_t y2,uint16_t color) { - 8004a00: b590 push {r4, r7, lr} - 8004a02: b08d sub sp, #52 ; 0x34 - 8004a04: af00 add r7, sp, #0 - 8004a06: 4604 mov r4, r0 - 8004a08: 4608 mov r0, r1 - 8004a0a: 4611 mov r1, r2 - 8004a0c: 461a mov r2, r3 - 8004a0e: 4623 mov r3, r4 - 8004a10: 80fb strh r3, [r7, #6] - 8004a12: 4603 mov r3, r0 - 8004a14: 80bb strh r3, [r7, #4] - 8004a16: 460b mov r3, r1 - 8004a18: 807b strh r3, [r7, #2] - 8004a1a: 4613 mov r3, r2 - 8004a1c: 803b strh r3, [r7, #0] + 800547c: b590 push {r4, r7, lr} + 800547e: b08d sub sp, #52 ; 0x34 + 8005480: af00 add r7, sp, #0 + 8005482: 4604 mov r4, r0 + 8005484: 4608 mov r0, r1 + 8005486: 4611 mov r1, r2 + 8005488: 461a mov r2, r3 + 800548a: 4623 mov r3, r4 + 800548c: 80fb strh r3, [r7, #6] + 800548e: 4603 mov r3, r0 + 8005490: 80bb strh r3, [r7, #4] + 8005492: 460b mov r3, r1 + 8005494: 807b strh r3, [r7, #2] + 8005496: 4613 mov r3, r2 + 8005498: 803b strh r3, [r7, #0] uint16_t t; int xerr=0,yerr=0,delta_x,delta_y,distance; - 8004a1e: 2300 movs r3, #0 - 8004a20: 62bb str r3, [r7, #40] ; 0x28 - 8004a22: 2300 movs r3, #0 - 8004a24: 627b str r3, [r7, #36] ; 0x24 + 800549a: 2300 movs r3, #0 + 800549c: 62bb str r3, [r7, #40] ; 0x28 + 800549e: 2300 movs r3, #0 + 80054a0: 627b str r3, [r7, #36] ; 0x24 int incx,incy,uRow,uCol; delta_x=x2-x1; //计算坐标增量 - 8004a26: 887a ldrh r2, [r7, #2] - 8004a28: 88fb ldrh r3, [r7, #6] - 8004a2a: 1ad3 subs r3, r2, r3 - 8004a2c: 623b str r3, [r7, #32] + 80054a2: 887a ldrh r2, [r7, #2] + 80054a4: 88fb ldrh r3, [r7, #6] + 80054a6: 1ad3 subs r3, r2, r3 + 80054a8: 623b str r3, [r7, #32] delta_y=y2-y1; - 8004a2e: 883a ldrh r2, [r7, #0] - 8004a30: 88bb ldrh r3, [r7, #4] - 8004a32: 1ad3 subs r3, r2, r3 - 8004a34: 61fb str r3, [r7, #28] + 80054aa: 883a ldrh r2, [r7, #0] + 80054ac: 88bb ldrh r3, [r7, #4] + 80054ae: 1ad3 subs r3, r2, r3 + 80054b0: 61fb str r3, [r7, #28] uRow=x1; - 8004a36: 88fb ldrh r3, [r7, #6] - 8004a38: 60fb str r3, [r7, #12] + 80054b2: 88fb ldrh r3, [r7, #6] + 80054b4: 60fb str r3, [r7, #12] uCol=y1; - 8004a3a: 88bb ldrh r3, [r7, #4] - 8004a3c: 60bb str r3, [r7, #8] + 80054b6: 88bb ldrh r3, [r7, #4] + 80054b8: 60bb str r3, [r7, #8] if(delta_x>0)incx=1; //设置单步方向 - 8004a3e: 6a3b ldr r3, [r7, #32] - 8004a40: 2b00 cmp r3, #0 - 8004a42: dd02 ble.n 8004a4a - 8004a44: 2301 movs r3, #1 - 8004a46: 617b str r3, [r7, #20] - 8004a48: e00b b.n 8004a62 + 80054ba: 6a3b ldr r3, [r7, #32] + 80054bc: 2b00 cmp r3, #0 + 80054be: dd02 ble.n 80054c6 + 80054c0: 2301 movs r3, #1 + 80054c2: 617b str r3, [r7, #20] + 80054c4: e00b b.n 80054de else if(delta_x==0)incx=0;//垂直线 - 8004a4a: 6a3b ldr r3, [r7, #32] - 8004a4c: 2b00 cmp r3, #0 - 8004a4e: d102 bne.n 8004a56 - 8004a50: 2300 movs r3, #0 - 8004a52: 617b str r3, [r7, #20] - 8004a54: e005 b.n 8004a62 + 80054c6: 6a3b ldr r3, [r7, #32] + 80054c8: 2b00 cmp r3, #0 + 80054ca: d102 bne.n 80054d2 + 80054cc: 2300 movs r3, #0 + 80054ce: 617b str r3, [r7, #20] + 80054d0: e005 b.n 80054de else {incx=-1;delta_x=-delta_x;} - 8004a56: f04f 33ff mov.w r3, #4294967295 ; 0xffffffff - 8004a5a: 617b str r3, [r7, #20] - 8004a5c: 6a3b ldr r3, [r7, #32] - 8004a5e: 425b negs r3, r3 - 8004a60: 623b str r3, [r7, #32] + 80054d2: f04f 33ff mov.w r3, #4294967295 ; 0xffffffff + 80054d6: 617b str r3, [r7, #20] + 80054d8: 6a3b ldr r3, [r7, #32] + 80054da: 425b negs r3, r3 + 80054dc: 623b str r3, [r7, #32] if(delta_y>0)incy=1; - 8004a62: 69fb ldr r3, [r7, #28] - 8004a64: 2b00 cmp r3, #0 - 8004a66: dd02 ble.n 8004a6e - 8004a68: 2301 movs r3, #1 - 8004a6a: 613b str r3, [r7, #16] - 8004a6c: e00b b.n 8004a86 + 80054de: 69fb ldr r3, [r7, #28] + 80054e0: 2b00 cmp r3, #0 + 80054e2: dd02 ble.n 80054ea + 80054e4: 2301 movs r3, #1 + 80054e6: 613b str r3, [r7, #16] + 80054e8: e00b b.n 8005502 else if(delta_y==0)incy=0;//水平线 - 8004a6e: 69fb ldr r3, [r7, #28] - 8004a70: 2b00 cmp r3, #0 - 8004a72: d102 bne.n 8004a7a - 8004a74: 2300 movs r3, #0 - 8004a76: 613b str r3, [r7, #16] - 8004a78: e005 b.n 8004a86 + 80054ea: 69fb ldr r3, [r7, #28] + 80054ec: 2b00 cmp r3, #0 + 80054ee: d102 bne.n 80054f6 + 80054f0: 2300 movs r3, #0 + 80054f2: 613b str r3, [r7, #16] + 80054f4: e005 b.n 8005502 else{incy=-1;delta_y=-delta_y;} - 8004a7a: f04f 33ff mov.w r3, #4294967295 ; 0xffffffff - 8004a7e: 613b str r3, [r7, #16] - 8004a80: 69fb ldr r3, [r7, #28] - 8004a82: 425b negs r3, r3 - 8004a84: 61fb str r3, [r7, #28] + 80054f6: f04f 33ff mov.w r3, #4294967295 ; 0xffffffff + 80054fa: 613b str r3, [r7, #16] + 80054fc: 69fb ldr r3, [r7, #28] + 80054fe: 425b negs r3, r3 + 8005500: 61fb str r3, [r7, #28] if( delta_x>delta_y)distance=delta_x; //选取基本增量坐标轴 - 8004a86: 6a3a ldr r2, [r7, #32] - 8004a88: 69fb ldr r3, [r7, #28] - 8004a8a: 429a cmp r2, r3 - 8004a8c: dd02 ble.n 8004a94 - 8004a8e: 6a3b ldr r3, [r7, #32] - 8004a90: 61bb str r3, [r7, #24] - 8004a92: e001 b.n 8004a98 + 8005502: 6a3a ldr r2, [r7, #32] + 8005504: 69fb ldr r3, [r7, #28] + 8005506: 429a cmp r2, r3 + 8005508: dd02 ble.n 8005510 + 800550a: 6a3b ldr r3, [r7, #32] + 800550c: 61bb str r3, [r7, #24] + 800550e: e001 b.n 8005514 else distance=delta_y; - 8004a94: 69fb ldr r3, [r7, #28] - 8004a96: 61bb str r3, [r7, #24] + 8005510: 69fb ldr r3, [r7, #28] + 8005512: 61bb str r3, [r7, #24] for(t=0;t<=distance+1;t++ )//画线输出 - 8004a98: 2300 movs r3, #0 - 8004a9a: 85fb strh r3, [r7, #46] ; 0x2e - 8004a9c: e02b b.n 8004af6 + 8005514: 2300 movs r3, #0 + 8005516: 85fb strh r3, [r7, #46] ; 0x2e + 8005518: e02b b.n 8005572 { LCD_set_dot(uRow,uCol,color);//画点 - 8004a9e: 68fb ldr r3, [r7, #12] - 8004aa0: b29b uxth r3, r3 - 8004aa2: 68ba ldr r2, [r7, #8] - 8004aa4: b291 uxth r1, r2 - 8004aa6: f8b7 2040 ldrh.w r2, [r7, #64] ; 0x40 - 8004aaa: 4618 mov r0, r3 - 8004aac: f7ff ff36 bl 800491c + 800551a: 68fb ldr r3, [r7, #12] + 800551c: b29b uxth r3, r3 + 800551e: 68ba ldr r2, [r7, #8] + 8005520: b291 uxth r1, r2 + 8005522: f8b7 2040 ldrh.w r2, [r7, #64] ; 0x40 + 8005526: 4618 mov r0, r3 + 8005528: f7ff ff36 bl 8005398 xerr+=delta_x ; - 8004ab0: 6aba ldr r2, [r7, #40] ; 0x28 - 8004ab2: 6a3b ldr r3, [r7, #32] - 8004ab4: 4413 add r3, r2 - 8004ab6: 62bb str r3, [r7, #40] ; 0x28 + 800552c: 6aba ldr r2, [r7, #40] ; 0x28 + 800552e: 6a3b ldr r3, [r7, #32] + 8005530: 4413 add r3, r2 + 8005532: 62bb str r3, [r7, #40] ; 0x28 yerr+=delta_y ; - 8004ab8: 6a7a ldr r2, [r7, #36] ; 0x24 - 8004aba: 69fb ldr r3, [r7, #28] - 8004abc: 4413 add r3, r2 - 8004abe: 627b str r3, [r7, #36] ; 0x24 + 8005534: 6a7a ldr r2, [r7, #36] ; 0x24 + 8005536: 69fb ldr r3, [r7, #28] + 8005538: 4413 add r3, r2 + 800553a: 627b str r3, [r7, #36] ; 0x24 if(xerr>distance) - 8004ac0: 6aba ldr r2, [r7, #40] ; 0x28 - 8004ac2: 69bb ldr r3, [r7, #24] - 8004ac4: 429a cmp r2, r3 - 8004ac6: dd07 ble.n 8004ad8 + 800553c: 6aba ldr r2, [r7, #40] ; 0x28 + 800553e: 69bb ldr r3, [r7, #24] + 8005540: 429a cmp r2, r3 + 8005542: dd07 ble.n 8005554 { xerr-=distance; - 8004ac8: 6aba ldr r2, [r7, #40] ; 0x28 - 8004aca: 69bb ldr r3, [r7, #24] - 8004acc: 1ad3 subs r3, r2, r3 - 8004ace: 62bb str r3, [r7, #40] ; 0x28 + 8005544: 6aba ldr r2, [r7, #40] ; 0x28 + 8005546: 69bb ldr r3, [r7, #24] + 8005548: 1ad3 subs r3, r2, r3 + 800554a: 62bb str r3, [r7, #40] ; 0x28 uRow+=incx; - 8004ad0: 68fa ldr r2, [r7, #12] - 8004ad2: 697b ldr r3, [r7, #20] - 8004ad4: 4413 add r3, r2 - 8004ad6: 60fb str r3, [r7, #12] + 800554c: 68fa ldr r2, [r7, #12] + 800554e: 697b ldr r3, [r7, #20] + 8005550: 4413 add r3, r2 + 8005552: 60fb str r3, [r7, #12] } if(yerr>distance) - 8004ad8: 6a7a ldr r2, [r7, #36] ; 0x24 - 8004ada: 69bb ldr r3, [r7, #24] - 8004adc: 429a cmp r2, r3 - 8004ade: dd07 ble.n 8004af0 + 8005554: 6a7a ldr r2, [r7, #36] ; 0x24 + 8005556: 69bb ldr r3, [r7, #24] + 8005558: 429a cmp r2, r3 + 800555a: dd07 ble.n 800556c { yerr-=distance; - 8004ae0: 6a7a ldr r2, [r7, #36] ; 0x24 - 8004ae2: 69bb ldr r3, [r7, #24] - 8004ae4: 1ad3 subs r3, r2, r3 - 8004ae6: 627b str r3, [r7, #36] ; 0x24 + 800555c: 6a7a ldr r2, [r7, #36] ; 0x24 + 800555e: 69bb ldr r3, [r7, #24] + 8005560: 1ad3 subs r3, r2, r3 + 8005562: 627b str r3, [r7, #36] ; 0x24 uCol+=incy; - 8004ae8: 68ba ldr r2, [r7, #8] - 8004aea: 693b ldr r3, [r7, #16] - 8004aec: 4413 add r3, r2 - 8004aee: 60bb str r3, [r7, #8] + 8005564: 68ba ldr r2, [r7, #8] + 8005566: 693b ldr r3, [r7, #16] + 8005568: 4413 add r3, r2 + 800556a: 60bb str r3, [r7, #8] for(t=0;t<=distance+1;t++ )//画线输出 - 8004af0: 8dfb ldrh r3, [r7, #46] ; 0x2e - 8004af2: 3301 adds r3, #1 - 8004af4: 85fb strh r3, [r7, #46] ; 0x2e - 8004af6: 8dfa ldrh r2, [r7, #46] ; 0x2e - 8004af8: 69bb ldr r3, [r7, #24] - 8004afa: 3301 adds r3, #1 - 8004afc: 429a cmp r2, r3 - 8004afe: ddce ble.n 8004a9e + 800556c: 8dfb ldrh r3, [r7, #46] ; 0x2e + 800556e: 3301 adds r3, #1 + 8005570: 85fb strh r3, [r7, #46] ; 0x2e + 8005572: 8dfa ldrh r2, [r7, #46] ; 0x2e + 8005574: 69bb ldr r3, [r7, #24] + 8005576: 3301 adds r3, #1 + 8005578: 429a cmp r2, r3 + 800557a: ddce ble.n 800551a } } } - 8004b00: bf00 nop - 8004b02: bf00 nop - 8004b04: 3734 adds r7, #52 ; 0x34 - 8004b06: 46bd mov sp, r7 - 8004b08: bd90 pop {r4, r7, pc} + 800557c: bf00 nop + 800557e: bf00 nop + 8005580: 3734 adds r7, #52 ; 0x34 + 8005582: 46bd mov sp, r7 + 8005584: bd90 pop {r4, r7, pc} -08004b0a : +08005586 : //在指定位置画一个指定大小的圆 //(x,y):中心点 //r :半径 void Draw_Circle(uint16_t x0,uint16_t y0,uint16_t r,uint16_t color) { - 8004b0a: b590 push {r4, r7, lr} - 8004b0c: b087 sub sp, #28 - 8004b0e: af00 add r7, sp, #0 - 8004b10: 4604 mov r4, r0 - 8004b12: 4608 mov r0, r1 - 8004b14: 4611 mov r1, r2 - 8004b16: 461a mov r2, r3 - 8004b18: 4623 mov r3, r4 - 8004b1a: 80fb strh r3, [r7, #6] - 8004b1c: 4603 mov r3, r0 - 8004b1e: 80bb strh r3, [r7, #4] - 8004b20: 460b mov r3, r1 - 8004b22: 807b strh r3, [r7, #2] - 8004b24: 4613 mov r3, r2 - 8004b26: 803b strh r3, [r7, #0] + 8005586: b590 push {r4, r7, lr} + 8005588: b087 sub sp, #28 + 800558a: af00 add r7, sp, #0 + 800558c: 4604 mov r4, r0 + 800558e: 4608 mov r0, r1 + 8005590: 4611 mov r1, r2 + 8005592: 461a mov r2, r3 + 8005594: 4623 mov r3, r4 + 8005596: 80fb strh r3, [r7, #6] + 8005598: 4603 mov r3, r0 + 800559a: 80bb strh r3, [r7, #4] + 800559c: 460b mov r3, r1 + 800559e: 807b strh r3, [r7, #2] + 80055a0: 4613 mov r3, r2 + 80055a2: 803b strh r3, [r7, #0] int a,b; int di; a=0;b=r; - 8004b28: 2300 movs r3, #0 - 8004b2a: 617b str r3, [r7, #20] - 8004b2c: 887b ldrh r3, [r7, #2] - 8004b2e: 613b str r3, [r7, #16] + 80055a4: 2300 movs r3, #0 + 80055a6: 617b str r3, [r7, #20] + 80055a8: 887b ldrh r3, [r7, #2] + 80055aa: 613b str r3, [r7, #16] di=3-(r<<1); //判断下个点位置的标志 - 8004b30: 887b ldrh r3, [r7, #2] - 8004b32: 005b lsls r3, r3, #1 - 8004b34: f1c3 0303 rsb r3, r3, #3 - 8004b38: 60fb str r3, [r7, #12] + 80055ac: 887b ldrh r3, [r7, #2] + 80055ae: 005b lsls r3, r3, #1 + 80055b0: f1c3 0303 rsb r3, r3, #3 + 80055b4: 60fb str r3, [r7, #12] while(a<=b) - 8004b3a: e087 b.n 8004c4c + 80055b6: e087 b.n 80056c8 { LCD_set_dot(x0+a,y0-b,color); //5 - 8004b3c: 697b ldr r3, [r7, #20] - 8004b3e: b29a uxth r2, r3 - 8004b40: 88fb ldrh r3, [r7, #6] - 8004b42: 4413 add r3, r2 - 8004b44: b298 uxth r0, r3 - 8004b46: 693b ldr r3, [r7, #16] - 8004b48: b29b uxth r3, r3 - 8004b4a: 88ba ldrh r2, [r7, #4] - 8004b4c: 1ad3 subs r3, r2, r3 - 8004b4e: b29b uxth r3, r3 - 8004b50: 883a ldrh r2, [r7, #0] - 8004b52: 4619 mov r1, r3 - 8004b54: f7ff fee2 bl 800491c + 80055b8: 697b ldr r3, [r7, #20] + 80055ba: b29a uxth r2, r3 + 80055bc: 88fb ldrh r3, [r7, #6] + 80055be: 4413 add r3, r2 + 80055c0: b298 uxth r0, r3 + 80055c2: 693b ldr r3, [r7, #16] + 80055c4: b29b uxth r3, r3 + 80055c6: 88ba ldrh r2, [r7, #4] + 80055c8: 1ad3 subs r3, r2, r3 + 80055ca: b29b uxth r3, r3 + 80055cc: 883a ldrh r2, [r7, #0] + 80055ce: 4619 mov r1, r3 + 80055d0: f7ff fee2 bl 8005398 LCD_set_dot(x0+b,y0-a,color); //0 - 8004b58: 693b ldr r3, [r7, #16] - 8004b5a: b29a uxth r2, r3 - 8004b5c: 88fb ldrh r3, [r7, #6] - 8004b5e: 4413 add r3, r2 - 8004b60: b298 uxth r0, r3 - 8004b62: 697b ldr r3, [r7, #20] - 8004b64: b29b uxth r3, r3 - 8004b66: 88ba ldrh r2, [r7, #4] - 8004b68: 1ad3 subs r3, r2, r3 - 8004b6a: b29b uxth r3, r3 - 8004b6c: 883a ldrh r2, [r7, #0] - 8004b6e: 4619 mov r1, r3 - 8004b70: f7ff fed4 bl 800491c + 80055d4: 693b ldr r3, [r7, #16] + 80055d6: b29a uxth r2, r3 + 80055d8: 88fb ldrh r3, [r7, #6] + 80055da: 4413 add r3, r2 + 80055dc: b298 uxth r0, r3 + 80055de: 697b ldr r3, [r7, #20] + 80055e0: b29b uxth r3, r3 + 80055e2: 88ba ldrh r2, [r7, #4] + 80055e4: 1ad3 subs r3, r2, r3 + 80055e6: b29b uxth r3, r3 + 80055e8: 883a ldrh r2, [r7, #0] + 80055ea: 4619 mov r1, r3 + 80055ec: f7ff fed4 bl 8005398 LCD_set_dot(x0+b,y0+a,color); //4 - 8004b74: 693b ldr r3, [r7, #16] - 8004b76: b29a uxth r2, r3 - 8004b78: 88fb ldrh r3, [r7, #6] - 8004b7a: 4413 add r3, r2 - 8004b7c: b298 uxth r0, r3 - 8004b7e: 697b ldr r3, [r7, #20] - 8004b80: b29a uxth r2, r3 - 8004b82: 88bb ldrh r3, [r7, #4] - 8004b84: 4413 add r3, r2 - 8004b86: b29b uxth r3, r3 - 8004b88: 883a ldrh r2, [r7, #0] - 8004b8a: 4619 mov r1, r3 - 8004b8c: f7ff fec6 bl 800491c + 80055f0: 693b ldr r3, [r7, #16] + 80055f2: b29a uxth r2, r3 + 80055f4: 88fb ldrh r3, [r7, #6] + 80055f6: 4413 add r3, r2 + 80055f8: b298 uxth r0, r3 + 80055fa: 697b ldr r3, [r7, #20] + 80055fc: b29a uxth r2, r3 + 80055fe: 88bb ldrh r3, [r7, #4] + 8005600: 4413 add r3, r2 + 8005602: b29b uxth r3, r3 + 8005604: 883a ldrh r2, [r7, #0] + 8005606: 4619 mov r1, r3 + 8005608: f7ff fec6 bl 8005398 LCD_set_dot(x0+a,y0+b,color); //6 - 8004b90: 697b ldr r3, [r7, #20] - 8004b92: b29a uxth r2, r3 - 8004b94: 88fb ldrh r3, [r7, #6] - 8004b96: 4413 add r3, r2 - 8004b98: b298 uxth r0, r3 - 8004b9a: 693b ldr r3, [r7, #16] - 8004b9c: b29a uxth r2, r3 - 8004b9e: 88bb ldrh r3, [r7, #4] - 8004ba0: 4413 add r3, r2 - 8004ba2: b29b uxth r3, r3 - 8004ba4: 883a ldrh r2, [r7, #0] - 8004ba6: 4619 mov r1, r3 - 8004ba8: f7ff feb8 bl 800491c + 800560c: 697b ldr r3, [r7, #20] + 800560e: b29a uxth r2, r3 + 8005610: 88fb ldrh r3, [r7, #6] + 8005612: 4413 add r3, r2 + 8005614: b298 uxth r0, r3 + 8005616: 693b ldr r3, [r7, #16] + 8005618: b29a uxth r2, r3 + 800561a: 88bb ldrh r3, [r7, #4] + 800561c: 4413 add r3, r2 + 800561e: b29b uxth r3, r3 + 8005620: 883a ldrh r2, [r7, #0] + 8005622: 4619 mov r1, r3 + 8005624: f7ff feb8 bl 8005398 LCD_set_dot(x0-a,y0+b,color); //1 - 8004bac: 697b ldr r3, [r7, #20] - 8004bae: b29b uxth r3, r3 - 8004bb0: 88fa ldrh r2, [r7, #6] - 8004bb2: 1ad3 subs r3, r2, r3 - 8004bb4: b298 uxth r0, r3 - 8004bb6: 693b ldr r3, [r7, #16] - 8004bb8: b29a uxth r2, r3 - 8004bba: 88bb ldrh r3, [r7, #4] - 8004bbc: 4413 add r3, r2 - 8004bbe: b29b uxth r3, r3 - 8004bc0: 883a ldrh r2, [r7, #0] - 8004bc2: 4619 mov r1, r3 - 8004bc4: f7ff feaa bl 800491c + 8005628: 697b ldr r3, [r7, #20] + 800562a: b29b uxth r3, r3 + 800562c: 88fa ldrh r2, [r7, #6] + 800562e: 1ad3 subs r3, r2, r3 + 8005630: b298 uxth r0, r3 + 8005632: 693b ldr r3, [r7, #16] + 8005634: b29a uxth r2, r3 + 8005636: 88bb ldrh r3, [r7, #4] + 8005638: 4413 add r3, r2 + 800563a: b29b uxth r3, r3 + 800563c: 883a ldrh r2, [r7, #0] + 800563e: 4619 mov r1, r3 + 8005640: f7ff feaa bl 8005398 LCD_set_dot(x0-b,y0+a,color); - 8004bc8: 693b ldr r3, [r7, #16] - 8004bca: b29b uxth r3, r3 - 8004bcc: 88fa ldrh r2, [r7, #6] - 8004bce: 1ad3 subs r3, r2, r3 - 8004bd0: b298 uxth r0, r3 - 8004bd2: 697b ldr r3, [r7, #20] - 8004bd4: b29a uxth r2, r3 - 8004bd6: 88bb ldrh r3, [r7, #4] - 8004bd8: 4413 add r3, r2 - 8004bda: b29b uxth r3, r3 - 8004bdc: 883a ldrh r2, [r7, #0] - 8004bde: 4619 mov r1, r3 - 8004be0: f7ff fe9c bl 800491c + 8005644: 693b ldr r3, [r7, #16] + 8005646: b29b uxth r3, r3 + 8005648: 88fa ldrh r2, [r7, #6] + 800564a: 1ad3 subs r3, r2, r3 + 800564c: b298 uxth r0, r3 + 800564e: 697b ldr r3, [r7, #20] + 8005650: b29a uxth r2, r3 + 8005652: 88bb ldrh r3, [r7, #4] + 8005654: 4413 add r3, r2 + 8005656: b29b uxth r3, r3 + 8005658: 883a ldrh r2, [r7, #0] + 800565a: 4619 mov r1, r3 + 800565c: f7ff fe9c bl 8005398 LCD_set_dot(x0-a,y0-b,color); //2 - 8004be4: 697b ldr r3, [r7, #20] - 8004be6: b29b uxth r3, r3 - 8004be8: 88fa ldrh r2, [r7, #6] - 8004bea: 1ad3 subs r3, r2, r3 - 8004bec: b298 uxth r0, r3 - 8004bee: 693b ldr r3, [r7, #16] - 8004bf0: b29b uxth r3, r3 - 8004bf2: 88ba ldrh r2, [r7, #4] - 8004bf4: 1ad3 subs r3, r2, r3 - 8004bf6: b29b uxth r3, r3 - 8004bf8: 883a ldrh r2, [r7, #0] - 8004bfa: 4619 mov r1, r3 - 8004bfc: f7ff fe8e bl 800491c + 8005660: 697b ldr r3, [r7, #20] + 8005662: b29b uxth r3, r3 + 8005664: 88fa ldrh r2, [r7, #6] + 8005666: 1ad3 subs r3, r2, r3 + 8005668: b298 uxth r0, r3 + 800566a: 693b ldr r3, [r7, #16] + 800566c: b29b uxth r3, r3 + 800566e: 88ba ldrh r2, [r7, #4] + 8005670: 1ad3 subs r3, r2, r3 + 8005672: b29b uxth r3, r3 + 8005674: 883a ldrh r2, [r7, #0] + 8005676: 4619 mov r1, r3 + 8005678: f7ff fe8e bl 8005398 LCD_set_dot(x0-b,y0-a,color); //7 - 8004c00: 693b ldr r3, [r7, #16] - 8004c02: b29b uxth r3, r3 - 8004c04: 88fa ldrh r2, [r7, #6] - 8004c06: 1ad3 subs r3, r2, r3 - 8004c08: b298 uxth r0, r3 - 8004c0a: 697b ldr r3, [r7, #20] - 8004c0c: b29b uxth r3, r3 - 8004c0e: 88ba ldrh r2, [r7, #4] - 8004c10: 1ad3 subs r3, r2, r3 - 8004c12: b29b uxth r3, r3 - 8004c14: 883a ldrh r2, [r7, #0] - 8004c16: 4619 mov r1, r3 - 8004c18: f7ff fe80 bl 800491c + 800567c: 693b ldr r3, [r7, #16] + 800567e: b29b uxth r3, r3 + 8005680: 88fa ldrh r2, [r7, #6] + 8005682: 1ad3 subs r3, r2, r3 + 8005684: b298 uxth r0, r3 + 8005686: 697b ldr r3, [r7, #20] + 8005688: b29b uxth r3, r3 + 800568a: 88ba ldrh r2, [r7, #4] + 800568c: 1ad3 subs r3, r2, r3 + 800568e: b29b uxth r3, r3 + 8005690: 883a ldrh r2, [r7, #0] + 8005692: 4619 mov r1, r3 + 8005694: f7ff fe80 bl 8005398 a++; - 8004c1c: 697b ldr r3, [r7, #20] - 8004c1e: 3301 adds r3, #1 - 8004c20: 617b str r3, [r7, #20] + 8005698: 697b ldr r3, [r7, #20] + 800569a: 3301 adds r3, #1 + 800569c: 617b str r3, [r7, #20] //使用Bresenham算法画圆 if(di<0)di +=4*a+6; - 8004c22: 68fb ldr r3, [r7, #12] - 8004c24: 2b00 cmp r3, #0 - 8004c26: da06 bge.n 8004c36 - 8004c28: 697b ldr r3, [r7, #20] - 8004c2a: 009b lsls r3, r3, #2 - 8004c2c: 3306 adds r3, #6 - 8004c2e: 68fa ldr r2, [r7, #12] - 8004c30: 4413 add r3, r2 - 8004c32: 60fb str r3, [r7, #12] - 8004c34: e00a b.n 8004c4c + 800569e: 68fb ldr r3, [r7, #12] + 80056a0: 2b00 cmp r3, #0 + 80056a2: da06 bge.n 80056b2 + 80056a4: 697b ldr r3, [r7, #20] + 80056a6: 009b lsls r3, r3, #2 + 80056a8: 3306 adds r3, #6 + 80056aa: 68fa ldr r2, [r7, #12] + 80056ac: 4413 add r3, r2 + 80056ae: 60fb str r3, [r7, #12] + 80056b0: e00a b.n 80056c8 else { di+=10+4*(a-b); - 8004c36: 697a ldr r2, [r7, #20] - 8004c38: 693b ldr r3, [r7, #16] - 8004c3a: 1ad3 subs r3, r2, r3 - 8004c3c: 009b lsls r3, r3, #2 - 8004c3e: 330a adds r3, #10 - 8004c40: 68fa ldr r2, [r7, #12] - 8004c42: 4413 add r3, r2 - 8004c44: 60fb str r3, [r7, #12] + 80056b2: 697a ldr r2, [r7, #20] + 80056b4: 693b ldr r3, [r7, #16] + 80056b6: 1ad3 subs r3, r2, r3 + 80056b8: 009b lsls r3, r3, #2 + 80056ba: 330a adds r3, #10 + 80056bc: 68fa ldr r2, [r7, #12] + 80056be: 4413 add r3, r2 + 80056c0: 60fb str r3, [r7, #12] b--; - 8004c46: 693b ldr r3, [r7, #16] - 8004c48: 3b01 subs r3, #1 - 8004c4a: 613b str r3, [r7, #16] + 80056c2: 693b ldr r3, [r7, #16] + 80056c4: 3b01 subs r3, #1 + 80056c6: 613b str r3, [r7, #16] while(a<=b) - 8004c4c: 697a ldr r2, [r7, #20] - 8004c4e: 693b ldr r3, [r7, #16] - 8004c50: 429a cmp r2, r3 - 8004c52: f77f af73 ble.w 8004b3c + 80056c8: 697a ldr r2, [r7, #20] + 80056ca: 693b ldr r3, [r7, #16] + 80056cc: 429a cmp r2, r3 + 80056ce: f77f af73 ble.w 80055b8 } } } - 8004c56: bf00 nop - 8004c58: bf00 nop - 8004c5a: 371c adds r7, #28 - 8004c5c: 46bd mov sp, r7 - 8004c5e: bd90 pop {r4, r7, pc} + 80056d2: bf00 nop + 80056d4: bf00 nop + 80056d6: 371c adds r7, #28 + 80056d8: 46bd mov sp, r7 + 80056da: bd90 pop {r4, r7, pc} -08004c60 : +080056dc : //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) { - 8004c60: b590 push {r4, r7, lr} - 8004c62: b085 sub sp, #20 - 8004c64: af00 add r7, sp, #0 - 8004c66: 4604 mov r4, r0 - 8004c68: 4608 mov r0, r1 - 8004c6a: 4611 mov r1, r2 - 8004c6c: 461a mov r2, r3 - 8004c6e: 4623 mov r3, r4 - 8004c70: 80fb strh r3, [r7, #6] - 8004c72: 4603 mov r3, r0 - 8004c74: 80bb strh r3, [r7, #4] - 8004c76: 460b mov r3, r1 - 8004c78: 70fb strb r3, [r7, #3] - 8004c7a: 4613 mov r3, r2 - 8004c7c: 70bb strb r3, [r7, #2] + 80056dc: b590 push {r4, r7, lr} + 80056de: b085 sub sp, #20 + 80056e0: af00 add r7, sp, #0 + 80056e2: 4604 mov r4, r0 + 80056e4: 4608 mov r0, r1 + 80056e6: 4611 mov r1, r2 + 80056e8: 461a mov r2, r3 + 80056ea: 4623 mov r3, r4 + 80056ec: 80fb strh r3, [r7, #6] + 80056ee: 4603 mov r3, r0 + 80056f0: 80bb strh r3, [r7, #4] + 80056f2: 460b mov r3, r1 + 80056f4: 70fb strb r3, [r7, #3] + 80056f6: 4613 mov r3, r2 + 80056f8: 70bb strb r3, [r7, #2] uint8_t temp,t1,t; uint16_t y0=y; - 8004c7e: 88bb ldrh r3, [r7, #4] - 8004c80: 817b strh r3, [r7, #10] + 80056fa: 88bb ldrh r3, [r7, #4] + 80056fc: 817b strh r3, [r7, #10] //设置窗口 num=num-' ';//得到偏移后的值 - 8004c82: 78fb ldrb r3, [r7, #3] - 8004c84: 3b20 subs r3, #32 - 8004c86: 70fb strb r3, [r7, #3] + 80056fe: 78fb ldrb r3, [r7, #3] + 8005700: 3b20 subs r3, #32 + 8005702: 70fb strb r3, [r7, #3] for(t=0;t + 8005704: 2300 movs r3, #0 + 8005706: 737b strb r3, [r7, #13] + 8005708: e055 b.n 80057b6 { if(size==12){temp=asc2_1206[num][t];} //调用1206字体 - 8004c8e: 78bb ldrb r3, [r7, #2] - 8004c90: 2b0c cmp r3, #12 - 8004c92: d10b bne.n 8004cac - 8004c94: 78fa ldrb r2, [r7, #3] - 8004c96: 7b79 ldrb r1, [r7, #13] - 8004c98: 482c ldr r0, [pc, #176] ; (8004d4c ) - 8004c9a: 4613 mov r3, r2 - 8004c9c: 005b lsls r3, r3, #1 - 8004c9e: 4413 add r3, r2 - 8004ca0: 009b lsls r3, r3, #2 - 8004ca2: 4403 add r3, r0 - 8004ca4: 440b add r3, r1 - 8004ca6: 781b ldrb r3, [r3, #0] - 8004ca8: 73fb strb r3, [r7, #15] - 8004caa: e007 b.n 8004cbc + 800570a: 78bb ldrb r3, [r7, #2] + 800570c: 2b0c cmp r3, #12 + 800570e: d10b bne.n 8005728 + 8005710: 78fa ldrb r2, [r7, #3] + 8005712: 7b79 ldrb r1, [r7, #13] + 8005714: 482c ldr r0, [pc, #176] ; (80057c8 ) + 8005716: 4613 mov r3, r2 + 8005718: 005b lsls r3, r3, #1 + 800571a: 4413 add r3, r2 + 800571c: 009b lsls r3, r3, #2 + 800571e: 4403 add r3, r0 + 8005720: 440b add r3, r1 + 8005722: 781b ldrb r3, [r3, #0] + 8005724: 73fb strb r3, [r7, #15] + 8005726: e007 b.n 8005738 else{ temp=asc2_1608[num][t]; } //调用1608字体 - 8004cac: 78fa ldrb r2, [r7, #3] - 8004cae: 7b7b ldrb r3, [r7, #13] - 8004cb0: 4927 ldr r1, [pc, #156] ; (8004d50 ) - 8004cb2: 0112 lsls r2, r2, #4 - 8004cb4: 440a add r2, r1 - 8004cb6: 4413 add r3, r2 - 8004cb8: 781b ldrb r3, [r3, #0] - 8004cba: 73fb strb r3, [r7, #15] + 8005728: 78fa ldrb r2, [r7, #3] + 800572a: 7b7b ldrb r3, [r7, #13] + 800572c: 4927 ldr r1, [pc, #156] ; (80057cc ) + 800572e: 0112 lsls r2, r2, #4 + 8005730: 440a add r2, r1 + 8005732: 4413 add r3, r2 + 8005734: 781b ldrb r3, [r3, #0] + 8005736: 73fb strb r3, [r7, #15] for(t1=0;t1<8;t1++) - 8004cbc: 2300 movs r3, #0 - 8004cbe: 73bb strb r3, [r7, #14] - 8004cc0: e033 b.n 8004d2a + 8005738: 2300 movs r3, #0 + 800573a: 73bb strb r3, [r7, #14] + 800573c: e033 b.n 80057a6 { if(temp&0x80){LCD_set_dot(x,y,color);}else{if(bg!=color){LCD_set_dot(x,y,bg);}} - 8004cc2: f997 300f ldrsb.w r3, [r7, #15] - 8004cc6: 2b00 cmp r3, #0 - 8004cc8: da06 bge.n 8004cd8 - 8004cca: 8cba ldrh r2, [r7, #36] ; 0x24 - 8004ccc: 88b9 ldrh r1, [r7, #4] - 8004cce: 88fb ldrh r3, [r7, #6] - 8004cd0: 4618 mov r0, r3 - 8004cd2: f7ff fe23 bl 800491c - 8004cd6: e009 b.n 8004cec - 8004cd8: 8c3a ldrh r2, [r7, #32] - 8004cda: 8cbb ldrh r3, [r7, #36] ; 0x24 - 8004cdc: 429a cmp r2, r3 - 8004cde: d005 beq.n 8004cec - 8004ce0: 8c3a ldrh r2, [r7, #32] - 8004ce2: 88b9 ldrh r1, [r7, #4] - 8004ce4: 88fb ldrh r3, [r7, #6] - 8004ce6: 4618 mov r0, r3 - 8004ce8: f7ff fe18 bl 800491c + 800573e: f997 300f ldrsb.w r3, [r7, #15] + 8005742: 2b00 cmp r3, #0 + 8005744: da06 bge.n 8005754 + 8005746: 8cba ldrh r2, [r7, #36] ; 0x24 + 8005748: 88b9 ldrh r1, [r7, #4] + 800574a: 88fb ldrh r3, [r7, #6] + 800574c: 4618 mov r0, r3 + 800574e: f7ff fe23 bl 8005398 + 8005752: e009 b.n 8005768 + 8005754: 8c3a ldrh r2, [r7, #32] + 8005756: 8cbb ldrh r3, [r7, #36] ; 0x24 + 8005758: 429a cmp r2, r3 + 800575a: d005 beq.n 8005768 + 800575c: 8c3a ldrh r2, [r7, #32] + 800575e: 88b9 ldrh r1, [r7, #4] + 8005760: 88fb ldrh r3, [r7, #6] + 8005762: 4618 mov r0, r3 + 8005764: f7ff fe18 bl 8005398 temp<<=1; - 8004cec: 7bfb ldrb r3, [r7, #15] - 8004cee: 005b lsls r3, r3, #1 - 8004cf0: 73fb strb r3, [r7, #15] + 8005768: 7bfb ldrb r3, [r7, #15] + 800576a: 005b lsls r3, r3, #1 + 800576c: 73fb strb r3, [r7, #15] y++; - 8004cf2: 88bb ldrh r3, [r7, #4] - 8004cf4: 3301 adds r3, #1 - 8004cf6: 80bb strh r3, [r7, #4] + 800576e: 88bb ldrh r3, [r7, #4] + 8005770: 3301 adds r3, #1 + 8005772: 80bb strh r3, [r7, #4] if(x>=lcddev.width){return;}//超区域了 - 8004cf8: 4b16 ldr r3, [pc, #88] ; (8004d54 ) - 8004cfa: 881b ldrh r3, [r3, #0] - 8004cfc: 88fa ldrh r2, [r7, #6] - 8004cfe: 429a cmp r2, r3 - 8004d00: d220 bcs.n 8004d44 + 8005774: 4b16 ldr r3, [pc, #88] ; (80057d0 ) + 8005776: 881b ldrh r3, [r3, #0] + 8005778: 88fa ldrh r2, [r7, #6] + 800577a: 429a cmp r2, r3 + 800577c: d220 bcs.n 80057c0 if((y-y0)==size) - 8004d02: 88ba ldrh r2, [r7, #4] - 8004d04: 897b ldrh r3, [r7, #10] - 8004d06: 1ad2 subs r2, r2, r3 - 8004d08: 78bb ldrb r3, [r7, #2] - 8004d0a: 429a cmp r2, r3 - 8004d0c: d10a bne.n 8004d24 + 800577e: 88ba ldrh r2, [r7, #4] + 8005780: 897b ldrh r3, [r7, #10] + 8005782: 1ad2 subs r2, r2, r3 + 8005784: 78bb ldrb r3, [r7, #2] + 8005786: 429a cmp r2, r3 + 8005788: d10a bne.n 80057a0 { y=y0; - 8004d0e: 897b ldrh r3, [r7, #10] - 8004d10: 80bb strh r3, [r7, #4] + 800578a: 897b ldrh r3, [r7, #10] + 800578c: 80bb strh r3, [r7, #4] x++; - 8004d12: 88fb ldrh r3, [r7, #6] - 8004d14: 3301 adds r3, #1 - 8004d16: 80fb strh r3, [r7, #6] + 800578e: 88fb ldrh r3, [r7, #6] + 8005790: 3301 adds r3, #1 + 8005792: 80fb strh r3, [r7, #6] if(x>=lcddev.width){return;}//超区域了 - 8004d18: 4b0e ldr r3, [pc, #56] ; (8004d54 ) - 8004d1a: 881b ldrh r3, [r3, #0] - 8004d1c: 88fa ldrh r2, [r7, #6] - 8004d1e: 429a cmp r2, r3 - 8004d20: d307 bcc.n 8004d32 - 8004d22: e010 b.n 8004d46 + 8005794: 4b0e ldr r3, [pc, #56] ; (80057d0 ) + 8005796: 881b ldrh r3, [r3, #0] + 8005798: 88fa ldrh r2, [r7, #6] + 800579a: 429a cmp r2, r3 + 800579c: d307 bcc.n 80057ae + 800579e: e010 b.n 80057c2 for(t1=0;t1<8;t1++) - 8004d24: 7bbb ldrb r3, [r7, #14] - 8004d26: 3301 adds r3, #1 - 8004d28: 73bb strb r3, [r7, #14] - 8004d2a: 7bbb ldrb r3, [r7, #14] - 8004d2c: 2b07 cmp r3, #7 - 8004d2e: d9c8 bls.n 8004cc2 - 8004d30: e000 b.n 8004d34 + 80057a0: 7bbb ldrb r3, [r7, #14] + 80057a2: 3301 adds r3, #1 + 80057a4: 73bb strb r3, [r7, #14] + 80057a6: 7bbb ldrb r3, [r7, #14] + 80057a8: 2b07 cmp r3, #7 + 80057aa: d9c8 bls.n 800573e + 80057ac: e000 b.n 80057b0 break; - 8004d32: bf00 nop + 80057ae: bf00 nop for(t=0;t - 8004d42: e000 b.n 8004d46 + 80057b0: 7b7b ldrb r3, [r7, #13] + 80057b2: 3301 adds r3, #1 + 80057b4: 737b strb r3, [r7, #13] + 80057b6: 7b7a ldrb r2, [r7, #13] + 80057b8: 78bb ldrb r3, [r7, #2] + 80057ba: 429a cmp r2, r3 + 80057bc: d3a5 bcc.n 800570a + 80057be: e000 b.n 80057c2 if(x>=lcddev.width){return;}//超区域了 - 8004d44: bf00 nop + 80057c0: bf00 nop } } } - 8004d46: 3714 adds r7, #20 - 8004d48: 46bd mov sp, r7 - 8004d4a: bd90 pop {r4, r7, pc} - 8004d4c: 0800a148 .word 0x0800a148 - 8004d50: 0800a5bc .word 0x0800a5bc - 8004d54: 20000300 .word 0x20000300 + 80057c2: 3714 adds r7, #20 + 80057c4: 46bd mov sp, r7 + 80057c6: bd90 pop {r4, r7, pc} + 80057c8: 08009e10 .word 0x08009e10 + 80057cc: 0800a284 .word 0x0800a284 + 80057d0: 2000034c .word 0x2000034c -08004d58 : +080057d4 : //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) { - 8004d58: b590 push {r4, r7, lr} - 8004d5a: b087 sub sp, #28 - 8004d5c: af02 add r7, sp, #8 - 8004d5e: 60ba str r2, [r7, #8] - 8004d60: 461a mov r2, r3 - 8004d62: 4603 mov r3, r0 - 8004d64: 81fb strh r3, [r7, #14] - 8004d66: 460b mov r3, r1 - 8004d68: 81bb strh r3, [r7, #12] - 8004d6a: 4613 mov r3, r2 - 8004d6c: 71fb strb r3, [r7, #7] + 80057d4: b590 push {r4, r7, lr} + 80057d6: b087 sub sp, #28 + 80057d8: af02 add r7, sp, #8 + 80057da: 60ba str r2, [r7, #8] + 80057dc: 461a mov r2, r3 + 80057de: 4603 mov r3, r0 + 80057e0: 81fb strh r3, [r7, #14] + 80057e2: 460b mov r3, r1 + 80057e4: 81bb strh r3, [r7, #12] + 80057e6: 4613 mov r3, r2 + 80057e8: 71fb strb r3, [r7, #7] while(*p!='\0') - 8004d6e: e026 b.n 8004dbe + 80057ea: e026 b.n 800583a { if(x>=lcddev.width||*p=='\n') - 8004d70: 4b17 ldr r3, [pc, #92] ; (8004dd0 ) - 8004d72: 881b ldrh r3, [r3, #0] - 8004d74: 89fa ldrh r2, [r7, #14] - 8004d76: 429a cmp r2, r3 - 8004d78: d203 bcs.n 8004d82 - 8004d7a: 68bb ldr r3, [r7, #8] - 8004d7c: 781b ldrb r3, [r3, #0] - 8004d7e: 2b0a cmp r3, #10 - 8004d80: d107 bne.n 8004d92 + 80057ec: 4b17 ldr r3, [pc, #92] ; (800584c ) + 80057ee: 881b ldrh r3, [r3, #0] + 80057f0: 89fa ldrh r2, [r7, #14] + 80057f2: 429a cmp r2, r3 + 80057f4: d203 bcs.n 80057fe + 80057f6: 68bb ldr r3, [r7, #8] + 80057f8: 781b ldrb r3, [r3, #0] + 80057fa: 2b0a cmp r3, #10 + 80057fc: d107 bne.n 800580e { x=0; - 8004d82: 2300 movs r3, #0 - 8004d84: 81fb strh r3, [r7, #14] + 80057fe: 2300 movs r3, #0 + 8005800: 81fb strh r3, [r7, #14] y+=size; - 8004d86: 79fb ldrb r3, [r7, #7] - 8004d88: b29a uxth r2, r3 - 8004d8a: 89bb ldrh r3, [r7, #12] - 8004d8c: 4413 add r3, r2 - 8004d8e: 81bb strh r3, [r7, #12] - 8004d90: e012 b.n 8004db8 + 8005802: 79fb ldrb r3, [r7, #7] + 8005804: b29a uxth r2, r3 + 8005806: 89bb ldrh r3, [r7, #12] + 8005808: 4413 add r3, r2 + 800580a: 81bb strh r3, [r7, #12] + 800580c: e012 b.n 8005834 }else { LCD_ShowChar(x,y,*p,size,bg,color); - 8004d92: 68bb ldr r3, [r7, #8] - 8004d94: 781a ldrb r2, [r3, #0] - 8004d96: 79fc ldrb r4, [r7, #7] - 8004d98: 89b9 ldrh r1, [r7, #12] - 8004d9a: 89f8 ldrh r0, [r7, #14] - 8004d9c: 8cbb ldrh r3, [r7, #36] ; 0x24 - 8004d9e: 9301 str r3, [sp, #4] - 8004da0: 8c3b ldrh r3, [r7, #32] - 8004da2: 9300 str r3, [sp, #0] - 8004da4: 4623 mov r3, r4 - 8004da6: f7ff ff5b bl 8004c60 + 800580e: 68bb ldr r3, [r7, #8] + 8005810: 781a ldrb r2, [r3, #0] + 8005812: 79fc ldrb r4, [r7, #7] + 8005814: 89b9 ldrh r1, [r7, #12] + 8005816: 89f8 ldrh r0, [r7, #14] + 8005818: 8cbb ldrh r3, [r7, #36] ; 0x24 + 800581a: 9301 str r3, [sp, #4] + 800581c: 8c3b ldrh r3, [r7, #32] + 800581e: 9300 str r3, [sp, #0] + 8005820: 4623 mov r3, r4 + 8005822: f7ff ff5b bl 80056dc x+=(size/2); - 8004daa: 79fb ldrb r3, [r7, #7] - 8004dac: 085b lsrs r3, r3, #1 - 8004dae: b2db uxtb r3, r3 - 8004db0: b29a uxth r2, r3 - 8004db2: 89fb ldrh r3, [r7, #14] - 8004db4: 4413 add r3, r2 - 8004db6: 81fb strh r3, [r7, #14] + 8005826: 79fb ldrb r3, [r7, #7] + 8005828: 085b lsrs r3, r3, #1 + 800582a: b2db uxtb r3, r3 + 800582c: b29a uxth r2, r3 + 800582e: 89fb ldrh r3, [r7, #14] + 8005830: 4413 add r3, r2 + 8005832: 81fb strh r3, [r7, #14] } p++; - 8004db8: 68bb ldr r3, [r7, #8] - 8004dba: 3301 adds r3, #1 - 8004dbc: 60bb str r3, [r7, #8] + 8005834: 68bb ldr r3, [r7, #8] + 8005836: 3301 adds r3, #1 + 8005838: 60bb str r3, [r7, #8] while(*p!='\0') - 8004dbe: 68bb ldr r3, [r7, #8] - 8004dc0: 781b ldrb r3, [r3, #0] - 8004dc2: 2b00 cmp r3, #0 - 8004dc4: d1d4 bne.n 8004d70 + 800583a: 68bb ldr r3, [r7, #8] + 800583c: 781b ldrb r3, [r3, #0] + 800583e: 2b00 cmp r3, #0 + 8005840: d1d4 bne.n 80057ec } } - 8004dc6: bf00 nop - 8004dc8: bf00 nop - 8004dca: 3714 adds r7, #20 - 8004dcc: 46bd mov sp, r7 - 8004dce: bd90 pop {r4, r7, pc} - 8004dd0: 20000300 .word 0x20000300 + 8005842: bf00 nop + 8005844: bf00 nop + 8005846: 3714 adds r7, #20 + 8005848: 46bd mov sp, r7 + 800584a: bd90 pop {r4, r7, pc} + 800584c: 2000034c .word 0x2000034c -08004dd4 : +08005850 : //因为eeprom芯片的写入速度有限,每写入一个字符都需要等待一段时间才能完成写入 //整个系统不可能等它一个的,传统的解决方法可以使用定时器中断或者多线程开辟子任务在后台保存, //这里的解决方法是使用状态机,通过一个链表将要保存的数据串起来,再通过状态循环一个个保存,保存延时等于循环用时。 eeprom_write_buff_info eeprom_write_buffer; //创建链表 void EPPROM_SLOWWRITE_INIT() //初始化链表 { - 8004dd4: b480 push {r7} - 8004dd6: af00 add r7, sp, #0 + 8005850: b480 push {r7} + 8005852: af00 add r7, sp, #0 eeprom_write_buffer.buff=NULL; - 8004dd8: 4b0a ldr r3, [pc, #40] ; (8004e04 ) - 8004dda: 2200 movs r2, #0 - 8004ddc: 601a str r2, [r3, #0] + 8005854: 4b0a ldr r3, [pc, #40] ; (8005880 ) + 8005856: 2200 movs r2, #0 + 8005858: 601a str r2, [r3, #0] eeprom_write_buffer.end=NULL; - 8004dde: 4b09 ldr r3, [pc, #36] ; (8004e04 ) - 8004de0: 2200 movs r2, #0 - 8004de2: 609a str r2, [r3, #8] + 800585a: 4b09 ldr r3, [pc, #36] ; (8005880 ) + 800585c: 2200 movs r2, #0 + 800585e: 609a str r2, [r3, #8] eeprom_write_buffer.head=NULL; - 8004de4: 4b07 ldr r3, [pc, #28] ; (8004e04 ) - 8004de6: 2200 movs r2, #0 - 8004de8: 605a str r2, [r3, #4] + 8005860: 4b07 ldr r3, [pc, #28] ; (8005880 ) + 8005862: 2200 movs r2, #0 + 8005864: 605a str r2, [r3, #4] eeprom_write_buffer.save_timeout=5; //避免状态机循环过快导致的保存失败,这个是最少延时。(感觉没必要写在这里,太浪费空间了) - 8004dea: 4b06 ldr r3, [pc, #24] ; (8004e04 ) - 8004dec: 2205 movs r2, #5 - 8004dee: 741a strb r2, [r3, #16] + 8005866: 4b06 ldr r3, [pc, #24] ; (8005880 ) + 8005868: 2205 movs r2, #5 + 800586a: 741a strb r2, [r3, #16] eeprom_write_buffer.save_busy=0; //最小延时内为忙状态 - 8004df0: 4a04 ldr r2, [pc, #16] ; (8004e04 ) - 8004df2: 7c53 ldrb r3, [r2, #17] - 8004df4: f36f 0300 bfc r3, #0, #1 - 8004df8: 7453 strb r3, [r2, #17] + 800586c: 4a04 ldr r2, [pc, #16] ; (8005880 ) + 800586e: 7c53 ldrb r3, [r2, #17] + 8005870: f36f 0300 bfc r3, #0, #1 + 8005874: 7453 strb r3, [r2, #17] } - 8004dfa: bf00 nop - 8004dfc: 46bd mov sp, r7 - 8004dfe: bc80 pop {r7} - 8004e00: 4770 bx lr - 8004e02: bf00 nop - 8004e04: 2000030c .word 0x2000030c + 8005876: bf00 nop + 8005878: 46bd mov sp, r7 + 800587a: bc80 pop {r7} + 800587c: 4770 bx lr + 800587e: bf00 nop + 8005880: 20000358 .word 0x20000358 -08004e08 : +08005884 : //循环保存服务,检查链表头是否有数据是否忙。 void EEPROM_SLOWWRITE_SERVER() { - 8004e08: b580 push {r7, lr} - 8004e0a: b082 sub sp, #8 - 8004e0c: af00 add r7, sp, #0 + 8005884: b580 push {r7, lr} + 8005886: b082 sub sp, #8 + 8005888: af00 add r7, sp, #0 eeprom_write_buff *buff; char data; if(eeprom_write_buffer.save_busy) - 8004e0e: 4b20 ldr r3, [pc, #128] ; (8004e90 ) - 8004e10: 7c5b ldrb r3, [r3, #17] - 8004e12: f003 0301 and.w r3, r3, #1 - 8004e16: b2db uxtb r3, r3 - 8004e18: 2b00 cmp r3, #0 - 8004e1a: d00c beq.n 8004e36 + 800588a: 4b20 ldr r3, [pc, #128] ; (800590c ) + 800588c: 7c5b ldrb r3, [r3, #17] + 800588e: f003 0301 and.w r3, r3, #1 + 8005892: b2db uxtb r3, r3 + 8005894: 2b00 cmp r3, #0 + 8005896: d00c beq.n 80058b2 { if(HAL_GetTick()>eeprom_write_buffer.save_time) - 8004e1c: f7fc fe52 bl 8001ac4 - 8004e20: 4602 mov r2, r0 - 8004e22: 4b1b ldr r3, [pc, #108] ; (8004e90 ) - 8004e24: 68db ldr r3, [r3, #12] - 8004e26: 429a cmp r2, r3 - 8004e28: d92e bls.n 8004e88 + 8005898: f7fc f946 bl 8001b28 + 800589c: 4602 mov r2, r0 + 800589e: 4b1b ldr r3, [pc, #108] ; (800590c ) + 80058a0: 68db ldr r3, [r3, #12] + 80058a2: 429a cmp r2, r3 + 80058a4: d92e bls.n 8005904 { eeprom_write_buffer.save_busy=0; - 8004e2a: 4a19 ldr r2, [pc, #100] ; (8004e90 ) - 8004e2c: 7c53 ldrb r3, [r2, #17] - 8004e2e: f36f 0300 bfc r3, #0, #1 - 8004e32: 7453 strb r3, [r2, #17] + 80058a6: 4a19 ldr r2, [pc, #100] ; (800590c ) + 80058a8: 7c53 ldrb r3, [r2, #17] + 80058aa: f36f 0300 bfc r3, #0, #1 + 80058ae: 7453 strb r3, [r2, #17] free(eeprom_write_buffer.head); eeprom_write_buffer.head=buff; } } } - 8004e34: e028 b.n 8004e88 + 80058b0: e028 b.n 8005904 if(eeprom_write_buffer.head!=NULL) - 8004e36: 4b16 ldr r3, [pc, #88] ; (8004e90 ) - 8004e38: 685b ldr r3, [r3, #4] - 8004e3a: 2b00 cmp r3, #0 - 8004e3c: d024 beq.n 8004e88 + 80058b2: 4b16 ldr r3, [pc, #88] ; (800590c ) + 80058b4: 685b ldr r3, [r3, #4] + 80058b6: 2b00 cmp r3, #0 + 80058b8: d024 beq.n 8005904 eeprom_write_buffer.save_busy=1; - 8004e3e: 4a14 ldr r2, [pc, #80] ; (8004e90 ) - 8004e40: 7c53 ldrb r3, [r2, #17] - 8004e42: f043 0301 orr.w r3, r3, #1 - 8004e46: 7453 strb r3, [r2, #17] + 80058ba: 4a14 ldr r2, [pc, #80] ; (800590c ) + 80058bc: 7c53 ldrb r3, [r2, #17] + 80058be: f043 0301 orr.w r3, r3, #1 + 80058c2: 7453 strb r3, [r2, #17] eeprom_write_buffer.save_time=HAL_GetTick()+eeprom_write_buffer.save_timeout; - 8004e48: f7fc fe3c bl 8001ac4 - 8004e4c: 4603 mov r3, r0 - 8004e4e: 4a10 ldr r2, [pc, #64] ; (8004e90 ) - 8004e50: 7c12 ldrb r2, [r2, #16] - 8004e52: 4413 add r3, r2 - 8004e54: 4a0e ldr r2, [pc, #56] ; (8004e90 ) - 8004e56: 60d3 str r3, [r2, #12] + 80058c4: f7fc f930 bl 8001b28 + 80058c8: 4603 mov r3, r0 + 80058ca: 4a10 ldr r2, [pc, #64] ; (800590c ) + 80058cc: 7c12 ldrb r2, [r2, #16] + 80058ce: 4413 add r3, r2 + 80058d0: 4a0e ldr r2, [pc, #56] ; (800590c ) + 80058d2: 60d3 str r3, [r2, #12] buff=eeprom_write_buffer.head->next; - 8004e58: 4b0d ldr r3, [pc, #52] ; (8004e90 ) - 8004e5a: 685b ldr r3, [r3, #4] - 8004e5c: 681b ldr r3, [r3, #0] - 8004e5e: 607b str r3, [r7, #4] + 80058d4: 4b0d ldr r3, [pc, #52] ; (800590c ) + 80058d6: 685b ldr r3, [r3, #4] + 80058d8: 681b ldr r3, [r3, #0] + 80058da: 607b str r3, [r7, #4] data=eeprom_write_buffer.head->date; - 8004e60: 4b0b ldr r3, [pc, #44] ; (8004e90 ) - 8004e62: 685b ldr r3, [r3, #4] - 8004e64: 799b ldrb r3, [r3, #6] - 8004e66: 70fb strb r3, [r7, #3] + 80058dc: 4b0b ldr r3, [pc, #44] ; (800590c ) + 80058de: 685b ldr r3, [r3, #4] + 80058e0: 799b ldrb r3, [r3, #6] + 80058e2: 70fb strb r3, [r7, #3] IIC_SAND_DATE(EEPROM_ADDRESS,eeprom_write_buffer.head->add,&data,1); - 8004e68: 4b09 ldr r3, [pc, #36] ; (8004e90 ) - 8004e6a: 685b ldr r3, [r3, #4] - 8004e6c: 8899 ldrh r1, [r3, #4] - 8004e6e: 1cfa adds r2, r7, #3 - 8004e70: 2301 movs r3, #1 - 8004e72: 20a0 movs r0, #160 ; 0xa0 - 8004e74: f000 f866 bl 8004f44 + 80058e4: 4b09 ldr r3, [pc, #36] ; (800590c ) + 80058e6: 685b ldr r3, [r3, #4] + 80058e8: 8899 ldrh r1, [r3, #4] + 80058ea: 1cfa adds r2, r7, #3 + 80058ec: 2301 movs r3, #1 + 80058ee: 20a0 movs r0, #160 ; 0xa0 + 80058f0: f000 f866 bl 80059c0 free(eeprom_write_buffer.head); - 8004e78: 4b05 ldr r3, [pc, #20] ; (8004e90 ) - 8004e7a: 685b ldr r3, [r3, #4] - 8004e7c: 4618 mov r0, r3 - 8004e7e: f002 f9af bl 80071e0 + 80058f4: 4b05 ldr r3, [pc, #20] ; (800590c ) + 80058f6: 685b ldr r3, [r3, #4] + 80058f8: 4618 mov r0, r3 + 80058fa: f001 fb67 bl 8006fcc eeprom_write_buffer.head=buff; - 8004e82: 4a03 ldr r2, [pc, #12] ; (8004e90 ) - 8004e84: 687b ldr r3, [r7, #4] - 8004e86: 6053 str r3, [r2, #4] + 80058fe: 4a03 ldr r2, [pc, #12] ; (800590c ) + 8005900: 687b ldr r3, [r7, #4] + 8005902: 6053 str r3, [r2, #4] } - 8004e88: bf00 nop - 8004e8a: 3708 adds r7, #8 - 8004e8c: 46bd mov sp, r7 - 8004e8e: bd80 pop {r7, pc} - 8004e90: 2000030c .word 0x2000030c + 8005904: bf00 nop + 8005906: 3708 adds r7, #8 + 8005908: 46bd mov sp, r7 + 800590a: bd80 pop {r7, pc} + 800590c: 20000358 .word 0x20000358 -08004e94 : +08005910 : //从eeprom读取数据 void EEPROM_READ_BATY(uint16_t IN_DEVICE_ADD,char *DATAS,uint16_t LONG) { - 8004e94: b580 push {r7, lr} - 8004e96: b082 sub sp, #8 - 8004e98: af00 add r7, sp, #0 - 8004e9a: 4603 mov r3, r0 - 8004e9c: 6039 str r1, [r7, #0] - 8004e9e: 80fb strh r3, [r7, #6] - 8004ea0: 4613 mov r3, r2 - 8004ea2: 80bb strh r3, [r7, #4] + 8005910: b580 push {r7, lr} + 8005912: b082 sub sp, #8 + 8005914: af00 add r7, sp, #0 + 8005916: 4603 mov r3, r0 + 8005918: 6039 str r1, [r7, #0] + 800591a: 80fb strh r3, [r7, #6] + 800591c: 4613 mov r3, r2 + 800591e: 80bb strh r3, [r7, #4] IIC_READ_DATE(EEPROM_ADDRESS,IN_DEVICE_ADD,DATAS,LONG); - 8004ea4: 88bb ldrh r3, [r7, #4] - 8004ea6: 88f9 ldrh r1, [r7, #6] - 8004ea8: 683a ldr r2, [r7, #0] - 8004eaa: 20a0 movs r0, #160 ; 0xa0 - 8004eac: f000 f868 bl 8004f80 + 8005920: 88bb ldrh r3, [r7, #4] + 8005922: 88f9 ldrh r1, [r7, #6] + 8005924: 683a ldr r2, [r7, #0] + 8005926: 20a0 movs r0, #160 ; 0xa0 + 8005928: f000 f868 bl 80059fc } - 8004eb0: bf00 nop - 8004eb2: 3708 adds r7, #8 - 8004eb4: 46bd mov sp, r7 - 8004eb6: bd80 pop {r7, pc} + 800592c: bf00 nop + 800592e: 3708 adds r7, #8 + 8005930: 46bd mov sp, r7 + 8005932: bd80 pop {r7, pc} -08004eb8 : +08005934 : //向eeprom写入数据 void EEPROM_WRITE_BATY(uint16_t IN_DEVICE_ADD,char *DATAS,uint16_t LONG) { - 8004eb8: b580 push {r7, lr} - 8004eba: b086 sub sp, #24 - 8004ebc: af00 add r7, sp, #0 - 8004ebe: 4603 mov r3, r0 - 8004ec0: 6039 str r1, [r7, #0] - 8004ec2: 80fb strh r3, [r7, #6] - 8004ec4: 4613 mov r3, r2 - 8004ec6: 80bb strh r3, [r7, #4] + 8005934: b580 push {r7, lr} + 8005936: b086 sub sp, #24 + 8005938: af00 add r7, sp, #0 + 800593a: 4603 mov r3, r0 + 800593c: 6039 str r1, [r7, #0] + 800593e: 80fb strh r3, [r7, #6] + 8005940: 4613 mov r3, r2 + 8005942: 80bb strh r3, [r7, #4] //IIC_SAND_DATE(EEPROM_ADDRESS,IN_DEVICE_ADD,DATAS,LONG); uint16_t addoffset=0; - 8004ec8: 2300 movs r3, #0 - 8004eca: 82fb strh r3, [r7, #22] + 8005944: 2300 movs r3, #0 + 8005946: 82fb strh r3, [r7, #22] eeprom_write_buff *buff; eeprom_write_buff *buff2; while(LONG--) - 8004ecc: e02d b.n 8004f2a + 8005948: e02d b.n 80059a6 { buff =(eeprom_write_buff*)malloc(sizeof(eeprom_write_buff)); - 8004ece: 2008 movs r0, #8 - 8004ed0: f002 f97e bl 80071d0 - 8004ed4: 4603 mov r3, r0 - 8004ed6: 613b str r3, [r7, #16] + 800594a: 2008 movs r0, #8 + 800594c: f001 fb36 bl 8006fbc + 8005950: 4603 mov r3, r0 + 8005952: 613b str r3, [r7, #16] if(buff!=NULL) - 8004ed8: 693b ldr r3, [r7, #16] - 8004eda: 2b00 cmp r3, #0 - 8004edc: d02b beq.n 8004f36 + 8005954: 693b ldr r3, [r7, #16] + 8005956: 2b00 cmp r3, #0 + 8005958: d02b beq.n 80059b2 { buff->add=IN_DEVICE_ADD+addoffset; - 8004ede: 88fa ldrh r2, [r7, #6] - 8004ee0: 8afb ldrh r3, [r7, #22] - 8004ee2: 4413 add r3, r2 - 8004ee4: b29a uxth r2, r3 - 8004ee6: 693b ldr r3, [r7, #16] - 8004ee8: 809a strh r2, [r3, #4] + 800595a: 88fa ldrh r2, [r7, #6] + 800595c: 8afb ldrh r3, [r7, #22] + 800595e: 4413 add r3, r2 + 8005960: b29a uxth r2, r3 + 8005962: 693b ldr r3, [r7, #16] + 8005964: 809a strh r2, [r3, #4] buff->date=DATAS[addoffset]; - 8004eea: 8afb ldrh r3, [r7, #22] - 8004eec: 683a ldr r2, [r7, #0] - 8004eee: 4413 add r3, r2 - 8004ef0: 781a ldrb r2, [r3, #0] - 8004ef2: 693b ldr r3, [r7, #16] - 8004ef4: 719a strb r2, [r3, #6] + 8005966: 8afb ldrh r3, [r7, #22] + 8005968: 683a ldr r2, [r7, #0] + 800596a: 4413 add r3, r2 + 800596c: 781a ldrb r2, [r3, #0] + 800596e: 693b ldr r3, [r7, #16] + 8005970: 719a strb r2, [r3, #6] buff->next=NULL; - 8004ef6: 693b ldr r3, [r7, #16] - 8004ef8: 2200 movs r2, #0 - 8004efa: 601a str r2, [r3, #0] + 8005972: 693b ldr r3, [r7, #16] + 8005974: 2200 movs r2, #0 + 8005976: 601a str r2, [r3, #0] }else{return ;} if(eeprom_write_buffer.head==NULL) - 8004efc: 4b10 ldr r3, [pc, #64] ; (8004f40 ) - 8004efe: 685b ldr r3, [r3, #4] - 8004f00: 2b00 cmp r3, #0 - 8004f02: d106 bne.n 8004f12 + 8005978: 4b10 ldr r3, [pc, #64] ; (80059bc ) + 800597a: 685b ldr r3, [r3, #4] + 800597c: 2b00 cmp r3, #0 + 800597e: d106 bne.n 800598e { eeprom_write_buffer.head=buff; - 8004f04: 4a0e ldr r2, [pc, #56] ; (8004f40 ) - 8004f06: 693b ldr r3, [r7, #16] - 8004f08: 6053 str r3, [r2, #4] + 8005980: 4a0e ldr r2, [pc, #56] ; (80059bc ) + 8005982: 693b ldr r3, [r7, #16] + 8005984: 6053 str r3, [r2, #4] eeprom_write_buffer.end=buff; - 8004f0a: 4a0d ldr r2, [pc, #52] ; (8004f40 ) - 8004f0c: 693b ldr r3, [r7, #16] - 8004f0e: 6093 str r3, [r2, #8] - 8004f10: e008 b.n 8004f24 + 8005986: 4a0d ldr r2, [pc, #52] ; (80059bc ) + 8005988: 693b ldr r3, [r7, #16] + 800598a: 6093 str r3, [r2, #8] + 800598c: e008 b.n 80059a0 }else { buff2=eeprom_write_buffer.end; - 8004f12: 4b0b ldr r3, [pc, #44] ; (8004f40 ) - 8004f14: 689b ldr r3, [r3, #8] - 8004f16: 60fb str r3, [r7, #12] + 800598e: 4b0b ldr r3, [pc, #44] ; (80059bc ) + 8005990: 689b ldr r3, [r3, #8] + 8005992: 60fb str r3, [r7, #12] buff2->next=buff; - 8004f18: 68fb ldr r3, [r7, #12] - 8004f1a: 693a ldr r2, [r7, #16] - 8004f1c: 601a str r2, [r3, #0] + 8005994: 68fb ldr r3, [r7, #12] + 8005996: 693a ldr r2, [r7, #16] + 8005998: 601a str r2, [r3, #0] eeprom_write_buffer.end=buff; - 8004f1e: 4a08 ldr r2, [pc, #32] ; (8004f40 ) - 8004f20: 693b ldr r3, [r7, #16] - 8004f22: 6093 str r3, [r2, #8] + 800599a: 4a08 ldr r2, [pc, #32] ; (80059bc ) + 800599c: 693b ldr r3, [r7, #16] + 800599e: 6093 str r3, [r2, #8] } addoffset++; - 8004f24: 8afb ldrh r3, [r7, #22] - 8004f26: 3301 adds r3, #1 - 8004f28: 82fb strh r3, [r7, #22] + 80059a0: 8afb ldrh r3, [r7, #22] + 80059a2: 3301 adds r3, #1 + 80059a4: 82fb strh r3, [r7, #22] while(LONG--) - 8004f2a: 88bb ldrh r3, [r7, #4] - 8004f2c: 1e5a subs r2, r3, #1 - 8004f2e: 80ba strh r2, [r7, #4] - 8004f30: 2b00 cmp r3, #0 - 8004f32: d1cc bne.n 8004ece - 8004f34: e000 b.n 8004f38 + 80059a6: 88bb ldrh r3, [r7, #4] + 80059a8: 1e5a subs r2, r3, #1 + 80059aa: 80ba strh r2, [r7, #4] + 80059ac: 2b00 cmp r3, #0 + 80059ae: d1cc bne.n 800594a + 80059b0: e000 b.n 80059b4 }else{return ;} - 8004f36: bf00 nop + 80059b2: bf00 nop } } - 8004f38: 3718 adds r7, #24 - 8004f3a: 46bd mov sp, r7 - 8004f3c: bd80 pop {r7, pc} - 8004f3e: bf00 nop - 8004f40: 2000030c .word 0x2000030c + 80059b4: 3718 adds r7, #24 + 80059b6: 46bd mov sp, r7 + 80059b8: bd80 pop {r7, pc} + 80059ba: bf00 nop + 80059bc: 20000358 .word 0x20000358 -08004f44 : +080059c0 : //iic硬件接口 extern I2C_HandleTypeDef hi2c2; void IIC_SAND_DATE(uint16_t DEVICE_ADD,uint16_t IN_DEVICE_ADD,char *DATAS,uint16_t LONG) { - 8004f44: b580 push {r7, lr} - 8004f46: b088 sub sp, #32 - 8004f48: af04 add r7, sp, #16 - 8004f4a: 60ba str r2, [r7, #8] - 8004f4c: 461a mov r2, r3 - 8004f4e: 4603 mov r3, r0 - 8004f50: 81fb strh r3, [r7, #14] - 8004f52: 460b mov r3, r1 - 8004f54: 81bb strh r3, [r7, #12] - 8004f56: 4613 mov r3, r2 - 8004f58: 80fb strh r3, [r7, #6] + 80059c0: b580 push {r7, lr} + 80059c2: b088 sub sp, #32 + 80059c4: af04 add r7, sp, #16 + 80059c6: 60ba str r2, [r7, #8] + 80059c8: 461a mov r2, r3 + 80059ca: 4603 mov r3, r0 + 80059cc: 81fb strh r3, [r7, #14] + 80059ce: 460b mov r3, r1 + 80059d0: 81bb strh r3, [r7, #12] + 80059d2: 4613 mov r3, r2 + 80059d4: 80fb strh r3, [r7, #6] HAL_I2C_Mem_Write(&hi2c2,DEVICE_ADD,IN_DEVICE_ADD,I2C_MEMADD_SIZE_8BIT,DATAS,LONG,100); - 8004f5a: 89ba ldrh r2, [r7, #12] - 8004f5c: 89f9 ldrh r1, [r7, #14] - 8004f5e: 2364 movs r3, #100 ; 0x64 - 8004f60: 9302 str r3, [sp, #8] - 8004f62: 88fb ldrh r3, [r7, #6] - 8004f64: 9301 str r3, [sp, #4] - 8004f66: 68bb ldr r3, [r7, #8] - 8004f68: 9300 str r3, [sp, #0] - 8004f6a: 2301 movs r3, #1 - 8004f6c: 4803 ldr r0, [pc, #12] ; (8004f7c ) - 8004f6e: f7fd f9ed bl 800234c + 80059d6: 89ba ldrh r2, [r7, #12] + 80059d8: 89f9 ldrh r1, [r7, #14] + 80059da: 2364 movs r3, #100 ; 0x64 + 80059dc: 9302 str r3, [sp, #8] + 80059de: 88fb ldrh r3, [r7, #6] + 80059e0: 9301 str r3, [sp, #4] + 80059e2: 68bb ldr r3, [r7, #8] + 80059e4: 9300 str r3, [sp, #0] + 80059e6: 2301 movs r3, #1 + 80059e8: 4803 ldr r0, [pc, #12] ; (80059f8 ) + 80059ea: f7fc fce1 bl 80023b0 } - 8004f72: bf00 nop - 8004f74: 3710 adds r7, #16 - 8004f76: 46bd mov sp, r7 - 8004f78: bd80 pop {r7, pc} - 8004f7a: bf00 nop - 8004f7c: 20000218 .word 0x20000218 + 80059ee: bf00 nop + 80059f0: 3710 adds r7, #16 + 80059f2: 46bd mov sp, r7 + 80059f4: bd80 pop {r7, pc} + 80059f6: bf00 nop + 80059f8: 2000020c .word 0x2000020c -08004f80 : +080059fc : void IIC_READ_DATE(uint16_t DEVICE_ADD,uint16_t IN_DEVICE_ADD,char *DATAS,uint16_t LONG) { - 8004f80: b580 push {r7, lr} - 8004f82: b088 sub sp, #32 - 8004f84: af04 add r7, sp, #16 - 8004f86: 60ba str r2, [r7, #8] - 8004f88: 461a mov r2, r3 - 8004f8a: 4603 mov r3, r0 - 8004f8c: 81fb strh r3, [r7, #14] - 8004f8e: 460b mov r3, r1 - 8004f90: 81bb strh r3, [r7, #12] - 8004f92: 4613 mov r3, r2 - 8004f94: 80fb strh r3, [r7, #6] + 80059fc: b580 push {r7, lr} + 80059fe: b088 sub sp, #32 + 8005a00: af04 add r7, sp, #16 + 8005a02: 60ba str r2, [r7, #8] + 8005a04: 461a mov r2, r3 + 8005a06: 4603 mov r3, r0 + 8005a08: 81fb strh r3, [r7, #14] + 8005a0a: 460b mov r3, r1 + 8005a0c: 81bb strh r3, [r7, #12] + 8005a0e: 4613 mov r3, r2 + 8005a10: 80fb strh r3, [r7, #6] HAL_I2C_Mem_Read(&hi2c2,DEVICE_ADD,IN_DEVICE_ADD,I2C_MEMADD_SIZE_8BIT,DATAS,LONG,100); - 8004f96: 89ba ldrh r2, [r7, #12] - 8004f98: 89f9 ldrh r1, [r7, #14] - 8004f9a: 2364 movs r3, #100 ; 0x64 - 8004f9c: 9302 str r3, [sp, #8] - 8004f9e: 88fb ldrh r3, [r7, #6] - 8004fa0: 9301 str r3, [sp, #4] - 8004fa2: 68bb ldr r3, [r7, #8] - 8004fa4: 9300 str r3, [sp, #0] - 8004fa6: 2301 movs r3, #1 - 8004fa8: 4803 ldr r0, [pc, #12] ; (8004fb8 ) - 8004faa: f7fd fac9 bl 8002540 + 8005a12: 89ba ldrh r2, [r7, #12] + 8005a14: 89f9 ldrh r1, [r7, #14] + 8005a16: 2364 movs r3, #100 ; 0x64 + 8005a18: 9302 str r3, [sp, #8] + 8005a1a: 88fb ldrh r3, [r7, #6] + 8005a1c: 9301 str r3, [sp, #4] + 8005a1e: 68bb ldr r3, [r7, #8] + 8005a20: 9300 str r3, [sp, #0] + 8005a22: 2301 movs r3, #1 + 8005a24: 4803 ldr r0, [pc, #12] ; (8005a34 ) + 8005a26: f7fc fdbd bl 80025a4 } - 8004fae: bf00 nop - 8004fb0: 3710 adds r7, #16 - 8004fb2: 46bd mov sp, r7 - 8004fb4: bd80 pop {r7, pc} - 8004fb6: bf00 nop - 8004fb8: 20000218 .word 0x20000218 + 8005a2a: bf00 nop + 8005a2c: 3710 adds r7, #16 + 8005a2e: 46bd mov sp, r7 + 8005a30: bd80 pop {r7, pc} + 8005a32: bf00 nop + 8005a34: 2000020c .word 0x2000020c -08004fbc : +08005a38 : + * 输入 :ucAddress,寄存器地址 + * 返回 : 寄存器的当前值 + * 调用 :内部调用 + */ +uint8_t ReadRawRC ( uint8_t ucAddress ) +{ + 8005a38: b580 push {r7, lr} + 8005a3a: b084 sub sp, #16 + 8005a3c: af00 add r7, sp, #0 + 8005a3e: 4603 mov r3, r0 + 8005a40: 71fb strb r3, [r7, #7] + uint8_t ucAddr, ucReturn; + ucAddr = ( ( ucAddress << 1 ) & 0x7E ) | 0x80; + 8005a42: 79fb ldrb r3, [r7, #7] + 8005a44: 005b lsls r3, r3, #1 + 8005a46: b25b sxtb r3, r3 + 8005a48: f003 037e and.w r3, r3, #126 ; 0x7e + 8005a4c: b25b sxtb r3, r3 + 8005a4e: f063 037f orn r3, r3, #127 ; 0x7f + 8005a52: b25b sxtb r3, r3 + 8005a54: b2db uxtb r3, r3 + 8005a56: 73fb strb r3, [r7, #15] + HAL_GPIO_WritePin(RC522_CS_GPIO_Port, RC522_CS_Pin, 0); + 8005a58: 2200 movs r2, #0 + 8005a5a: 2110 movs r1, #16 + 8005a5c: 480d ldr r0, [pc, #52] ; (8005a94 ) + 8005a5e: f7fc fb4a bl 80020f6 + HAL_SPI_Transmit(&hspi1,&ucAddr,1,100); + 8005a62: f107 010f add.w r1, r7, #15 + 8005a66: 2364 movs r3, #100 ; 0x64 + 8005a68: 2201 movs r2, #1 + 8005a6a: 480b ldr r0, [pc, #44] ; (8005a98 ) + 8005a6c: f7fd ffe6 bl 8003a3c + HAL_SPI_Receive(&hspi1,&ucReturn,1,100); + 8005a70: f107 010e add.w r1, r7, #14 + 8005a74: 2364 movs r3, #100 ; 0x64 + 8005a76: 2201 movs r2, #1 + 8005a78: 4807 ldr r0, [pc, #28] ; (8005a98 ) + 8005a7a: f7fe f91b bl 8003cb4 + HAL_GPIO_WritePin(RC522_CS_GPIO_Port, RC522_CS_Pin, 1); + 8005a7e: 2201 movs r2, #1 + 8005a80: 2110 movs r1, #16 + 8005a82: 4804 ldr r0, [pc, #16] ; (8005a94 ) + 8005a84: f7fc fb37 bl 80020f6 + return ucReturn; + 8005a88: 7bbb ldrb r3, [r7, #14] +} + 8005a8a: 4618 mov r0, r3 + 8005a8c: 3710 adds r7, #16 + 8005a8e: 46bd mov sp, r7 + 8005a90: bd80 pop {r7, pc} + 8005a92: bf00 nop + 8005a94: 40010800 .word 0x40010800 + 8005a98: 200002f0 .word 0x200002f0 + +08005a9c : + * ucValue,写入寄存器的值 + * 返回 : 无 + * 调用 :内部调用 + */ +void WriteRawRC ( uint8_t ucAddress, uint8_t ucValue ) +{ + 8005a9c: b580 push {r7, lr} + 8005a9e: b084 sub sp, #16 + 8005aa0: af00 add r7, sp, #0 + 8005aa2: 4603 mov r3, r0 + 8005aa4: 460a mov r2, r1 + 8005aa6: 71fb strb r3, [r7, #7] + 8005aa8: 4613 mov r3, r2 + 8005aaa: 71bb strb r3, [r7, #6] + uint8_t ucAddr; + ucAddr = ( ucAddress << 1 ) & 0x7E; + 8005aac: 79fb ldrb r3, [r7, #7] + 8005aae: 005b lsls r3, r3, #1 + 8005ab0: b2db uxtb r3, r3 + 8005ab2: f003 037e and.w r3, r3, #126 ; 0x7e + 8005ab6: b2db uxtb r3, r3 + 8005ab8: 73fb strb r3, [r7, #15] + HAL_GPIO_WritePin(RC522_CS_GPIO_Port, RC522_CS_Pin, 0); + 8005aba: 2200 movs r2, #0 + 8005abc: 2110 movs r1, #16 + 8005abe: 480c ldr r0, [pc, #48] ; (8005af0 ) + 8005ac0: f7fc fb19 bl 80020f6 + HAL_SPI_Transmit(&hspi1,&ucAddr,1,100); + 8005ac4: f107 010f add.w r1, r7, #15 + 8005ac8: 2364 movs r3, #100 ; 0x64 + 8005aca: 2201 movs r2, #1 + 8005acc: 4809 ldr r0, [pc, #36] ; (8005af4 ) + 8005ace: f7fd ffb5 bl 8003a3c + HAL_SPI_Transmit(&hspi1,&ucValue,1,100); + 8005ad2: 1db9 adds r1, r7, #6 + 8005ad4: 2364 movs r3, #100 ; 0x64 + 8005ad6: 2201 movs r2, #1 + 8005ad8: 4806 ldr r0, [pc, #24] ; (8005af4 ) + 8005ada: f7fd ffaf bl 8003a3c + HAL_GPIO_WritePin(RC522_CS_GPIO_Port, RC522_CS_Pin, 1); + 8005ade: 2201 movs r2, #1 + 8005ae0: 2110 movs r1, #16 + 8005ae2: 4803 ldr r0, [pc, #12] ; (8005af0 ) + 8005ae4: f7fc fb07 bl 80020f6 +} + 8005ae8: bf00 nop + 8005aea: 3710 adds r7, #16 + 8005aec: 46bd mov sp, r7 + 8005aee: bd80 pop {r7, pc} + 8005af0: 40010800 .word 0x40010800 + 8005af4: 200002f0 .word 0x200002f0 + +08005af8 : + * ucMask,置位值 + * 返回 : 无 + * 调用 :内部调用 + */ +void SetBitMask ( uint8_t ucReg, uint8_t ucMask ) +{ + 8005af8: b580 push {r7, lr} + 8005afa: b084 sub sp, #16 + 8005afc: af00 add r7, sp, #0 + 8005afe: 4603 mov r3, r0 + 8005b00: 460a mov r2, r1 + 8005b02: 71fb strb r3, [r7, #7] + 8005b04: 4613 mov r3, r2 + 8005b06: 71bb strb r3, [r7, #6] + uint8_t ucTemp; + ucTemp = ReadRawRC ( ucReg ); + 8005b08: 79fb ldrb r3, [r7, #7] + 8005b0a: 4618 mov r0, r3 + 8005b0c: f7ff ff94 bl 8005a38 + 8005b10: 4603 mov r3, r0 + 8005b12: 73fb strb r3, [r7, #15] + WriteRawRC ( ucReg, ucTemp | ucMask ); // set bit mask + 8005b14: 7bfa ldrb r2, [r7, #15] + 8005b16: 79bb ldrb r3, [r7, #6] + 8005b18: 4313 orrs r3, r2 + 8005b1a: b2da uxtb r2, r3 + 8005b1c: 79fb ldrb r3, [r7, #7] + 8005b1e: 4611 mov r1, r2 + 8005b20: 4618 mov r0, r3 + 8005b22: f7ff ffbb bl 8005a9c +} + 8005b26: bf00 nop + 8005b28: 3710 adds r7, #16 + 8005b2a: 46bd mov sp, r7 + 8005b2c: bd80 pop {r7, pc} + +08005b2e : + * ucMask,清位值 + * 返回 : 无 + * 调用 :内部调用 + */ +void ClearBitMask ( uint8_t ucReg, uint8_t ucMask ) +{ + 8005b2e: b580 push {r7, lr} + 8005b30: b084 sub sp, #16 + 8005b32: af00 add r7, sp, #0 + 8005b34: 4603 mov r3, r0 + 8005b36: 460a mov r2, r1 + 8005b38: 71fb strb r3, [r7, #7] + 8005b3a: 4613 mov r3, r2 + 8005b3c: 71bb strb r3, [r7, #6] + uint8_t ucTemp; + ucTemp = ReadRawRC ( ucReg ); + 8005b3e: 79fb ldrb r3, [r7, #7] + 8005b40: 4618 mov r0, r3 + 8005b42: f7ff ff79 bl 8005a38 + 8005b46: 4603 mov r3, r0 + 8005b48: 73fb strb r3, [r7, #15] + WriteRawRC ( ucReg, ucTemp & ( ~ ucMask) ); // clear bit mask + 8005b4a: f997 3006 ldrsb.w r3, [r7, #6] + 8005b4e: 43db mvns r3, r3 + 8005b50: b25a sxtb r2, r3 + 8005b52: f997 300f ldrsb.w r3, [r7, #15] + 8005b56: 4013 ands r3, r2 + 8005b58: b25b sxtb r3, r3 + 8005b5a: b2da uxtb r2, r3 + 8005b5c: 79fb ldrb r3, [r7, #7] + 8005b5e: 4611 mov r1, r2 + 8005b60: 4618 mov r0, r3 + 8005b62: f7ff ff9b bl 8005a9c +} + 8005b66: bf00 nop + 8005b68: 3710 adds r7, #16 + 8005b6a: 46bd mov sp, r7 + 8005b6c: bd80 pop {r7, pc} + +08005b6e : + * 输入 :无 + * 返回 : 无 + * 调用 :内部调用 + */ +void PcdAntennaOn ( void ) +{ + 8005b6e: b580 push {r7, lr} + 8005b70: b082 sub sp, #8 + 8005b72: af00 add r7, sp, #0 + uint8_t uc; + uc = ReadRawRC ( TxControlReg ); + 8005b74: 2014 movs r0, #20 + 8005b76: f7ff ff5f bl 8005a38 + 8005b7a: 4603 mov r3, r0 + 8005b7c: 71fb strb r3, [r7, #7] + if ( ! ( uc & 0x03 ) ) + 8005b7e: 79fb ldrb r3, [r7, #7] + 8005b80: f003 0303 and.w r3, r3, #3 + 8005b84: 2b00 cmp r3, #0 + 8005b86: d103 bne.n 8005b90 + { + SetBitMask(TxControlReg, 0x03); + 8005b88: 2103 movs r1, #3 + 8005b8a: 2014 movs r0, #20 + 8005b8c: f7ff ffb4 bl 8005af8 + } +} + 8005b90: bf00 nop + 8005b92: 3708 adds r7, #8 + 8005b94: 46bd mov sp, r7 + 8005b96: bd80 pop {r7, pc} + +08005b98 : + * 输入 :无 + * 返回 : 无 + * 调用 :外部调用 + */ +void PcdReset ( void ) +{ + 8005b98: b580 push {r7, lr} + 8005b9a: af00 add r7, sp, #0 + HAL_Delay(1); + 8005b9c: 2001 movs r0, #1 + 8005b9e: f7fb ffcd bl 8001b3c + WriteRawRC ( CommandReg, 0x0f ); + 8005ba2: 210f movs r1, #15 + 8005ba4: 2001 movs r0, #1 + 8005ba6: f7ff ff79 bl 8005a9c + while ( ReadRawRC ( CommandReg ) & 0x10 ); + 8005baa: bf00 nop + 8005bac: 2001 movs r0, #1 + 8005bae: f7ff ff43 bl 8005a38 + 8005bb2: 4603 mov r3, r0 + 8005bb4: f003 0310 and.w r3, r3, #16 + 8005bb8: 2b00 cmp r3, #0 + 8005bba: d1f7 bne.n 8005bac + HAL_Delay(1); + 8005bbc: 2001 movs r0, #1 + 8005bbe: f7fb ffbd bl 8001b3c + WriteRawRC ( ModeReg, 0x3D ); //定义发送和接收常用模式 和Mifare卡通讯,CRC初始值0x6363 + 8005bc2: 213d movs r1, #61 ; 0x3d + 8005bc4: 2011 movs r0, #17 + 8005bc6: f7ff ff69 bl 8005a9c + WriteRawRC ( TReloadRegL, 30 ); //16位定时器低位 + 8005bca: 211e movs r1, #30 + 8005bcc: 202d movs r0, #45 ; 0x2d + 8005bce: f7ff ff65 bl 8005a9c + WriteRawRC ( TReloadRegH, 0 ); //16位定时器高位 + 8005bd2: 2100 movs r1, #0 + 8005bd4: 202c movs r0, #44 ; 0x2c + 8005bd6: f7ff ff61 bl 8005a9c + WriteRawRC ( TModeReg, 0x8D ); //定义内部定时器的设置 + 8005bda: 218d movs r1, #141 ; 0x8d + 8005bdc: 202a movs r0, #42 ; 0x2a + 8005bde: f7ff ff5d bl 8005a9c + WriteRawRC ( TPrescalerReg, 0x3E ); //设置定时器分频系数 + 8005be2: 213e movs r1, #62 ; 0x3e + 8005be4: 202b movs r0, #43 ; 0x2b + 8005be6: f7ff ff59 bl 8005a9c + WriteRawRC ( TxAutoReg, 0x40 ); //调制发送信号为100%ASK + 8005bea: 2140 movs r1, #64 ; 0x40 + 8005bec: 2015 movs r0, #21 + 8005bee: f7ff ff55 bl 8005a9c + +} + 8005bf2: bf00 nop + 8005bf4: bd80 pop {r7, pc} + +08005bf6 : + * 输入 :ucType,工作方式 + * 返回 : 无 + * 调用 :外部调用 + */ +void M500PcdConfigISOType ( uint8_t ucType ) +{ + 8005bf6: b580 push {r7, lr} + 8005bf8: b082 sub sp, #8 + 8005bfa: af00 add r7, sp, #0 + 8005bfc: 4603 mov r3, r0 + 8005bfe: 71fb strb r3, [r7, #7] + if ( ucType == 'A') //ISO14443_A + 8005c00: 79fb ldrb r3, [r7, #7] + 8005c02: 2b41 cmp r3, #65 ; 0x41 + 8005c04: d124 bne.n 8005c50 + { + ClearBitMask ( Status2Reg, 0x08 ); + 8005c06: 2108 movs r1, #8 + 8005c08: 2008 movs r0, #8 + 8005c0a: f7ff ff90 bl 8005b2e + WriteRawRC ( ModeReg, 0x3D );//3F + 8005c0e: 213d movs r1, #61 ; 0x3d + 8005c10: 2011 movs r0, #17 + 8005c12: f7ff ff43 bl 8005a9c + WriteRawRC ( RxSelReg, 0x86 );//84 + 8005c16: 2186 movs r1, #134 ; 0x86 + 8005c18: 2017 movs r0, #23 + 8005c1a: f7ff ff3f bl 8005a9c + WriteRawRC( RFCfgReg, 0x7F ); //4F + 8005c1e: 217f movs r1, #127 ; 0x7f + 8005c20: 2026 movs r0, #38 ; 0x26 + 8005c22: f7ff ff3b bl 8005a9c + WriteRawRC( TReloadRegL, 30 );//tmoLength);// TReloadVal = 'h6a =tmoLength(dec) + 8005c26: 211e movs r1, #30 + 8005c28: 202d movs r0, #45 ; 0x2d + 8005c2a: f7ff ff37 bl 8005a9c + WriteRawRC ( TReloadRegH, 0 ); + 8005c2e: 2100 movs r1, #0 + 8005c30: 202c movs r0, #44 ; 0x2c + 8005c32: f7ff ff33 bl 8005a9c + WriteRawRC ( TModeReg, 0x8D ); + 8005c36: 218d movs r1, #141 ; 0x8d + 8005c38: 202a movs r0, #42 ; 0x2a + 8005c3a: f7ff ff2f bl 8005a9c + WriteRawRC ( TPrescalerReg, 0x3E ); + 8005c3e: 213e movs r1, #62 ; 0x3e + 8005c40: 202b movs r0, #43 ; 0x2b + 8005c42: f7ff ff2b bl 8005a9c + HAL_Delay(1); + 8005c46: 2001 movs r0, #1 + 8005c48: f7fb ff78 bl 8001b3c + PcdAntennaOn ();//开天线 + 8005c4c: f7ff ff8f bl 8005b6e + + } + +} + 8005c50: bf00 nop + 8005c52: 3708 adds r7, #8 + 8005c54: 46bd mov sp, r7 + 8005c56: bd80 pop {r7, pc} + +08005c58 : + PcdHalt (); + +} + +void RC522_Init ( void ) +{ + 8005c58: b580 push {r7, lr} + 8005c5a: af00 add r7, sp, #0 + PcdReset (); + 8005c5c: f7ff ff9c bl 8005b98 + M500PcdConfigISOType ( 'A' );//设置工作方式 + 8005c60: 2041 movs r0, #65 ; 0x41 + 8005c62: f7ff ffc8 bl 8005bf6 +} + 8005c66: bf00 nop + 8005c68: bd80 pop {r7, pc} + ... + +08005c6c : //SPI写数据 //向触摸屏IC写入1byte数据 //num:要写入的数据 void TP_Write_Byte(char num) { - 8004fbc: b580 push {r7, lr} - 8004fbe: b084 sub sp, #16 - 8004fc0: af00 add r7, sp, #0 - 8004fc2: 4603 mov r3, r0 - 8004fc4: 71fb strb r3, [r7, #7] + 8005c6c: b580 push {r7, lr} + 8005c6e: b084 sub sp, #16 + 8005c70: af00 add r7, sp, #0 + 8005c72: 4603 mov r3, r0 + 8005c74: 71fb strb r3, [r7, #7] for(uint8_t count=0;count<8;count++) - 8004fc6: 2300 movs r3, #0 - 8004fc8: 73fb strb r3, [r7, #15] - 8004fca: e020 b.n 800500e + 8005c76: 2300 movs r3, #0 + 8005c78: 73fb strb r3, [r7, #15] + 8005c7a: e020 b.n 8005cbe { if(num&0x80){TDIN(1);} - 8004fcc: f997 3007 ldrsb.w r3, [r7, #7] - 8004fd0: 2b00 cmp r3, #0 - 8004fd2: da06 bge.n 8004fe2 - 8004fd4: 2201 movs r2, #1 - 8004fd6: f44f 7100 mov.w r1, #512 ; 0x200 - 8004fda: 4811 ldr r0, [pc, #68] ; (8005020 ) - 8004fdc: f7fd f859 bl 8002092 - 8004fe0: e005 b.n 8004fee + 8005c7c: f997 3007 ldrsb.w r3, [r7, #7] + 8005c80: 2b00 cmp r3, #0 + 8005c82: da06 bge.n 8005c92 + 8005c84: 2201 movs r2, #1 + 8005c86: f44f 7100 mov.w r1, #512 ; 0x200 + 8005c8a: 4811 ldr r0, [pc, #68] ; (8005cd0 ) + 8005c8c: f7fc fa33 bl 80020f6 + 8005c90: e005 b.n 8005c9e else {TDIN(0);} - 8004fe2: 2200 movs r2, #0 - 8004fe4: f44f 7100 mov.w r1, #512 ; 0x200 - 8004fe8: 480d ldr r0, [pc, #52] ; (8005020 ) - 8004fea: f7fd f852 bl 8002092 + 8005c92: 2200 movs r2, #0 + 8005c94: f44f 7100 mov.w r1, #512 ; 0x200 + 8005c98: 480d ldr r0, [pc, #52] ; (8005cd0 ) + 8005c9a: f7fc fa2c bl 80020f6 num<<=1; - 8004fee: 79fb ldrb r3, [r7, #7] - 8004ff0: 005b lsls r3, r3, #1 - 8004ff2: 71fb strb r3, [r7, #7] + 8005c9e: 79fb ldrb r3, [r7, #7] + 8005ca0: 005b lsls r3, r3, #1 + 8005ca2: 71fb strb r3, [r7, #7] TCLK(0); - 8004ff4: 2200 movs r2, #0 - 8004ff6: 2102 movs r1, #2 - 8004ff8: 480a ldr r0, [pc, #40] ; (8005024 ) - 8004ffa: f7fd f84a bl 8002092 + 8005ca4: 2200 movs r2, #0 + 8005ca6: 2102 movs r1, #2 + 8005ca8: 480a ldr r0, [pc, #40] ; (8005cd4 ) + 8005caa: f7fc fa24 bl 80020f6 TCLK(1); //上升沿有效 - 8004ffe: 2201 movs r2, #1 - 8005000: 2102 movs r1, #2 - 8005002: 4808 ldr r0, [pc, #32] ; (8005024 ) - 8005004: f7fd f845 bl 8002092 + 8005cae: 2201 movs r2, #1 + 8005cb0: 2102 movs r1, #2 + 8005cb2: 4808 ldr r0, [pc, #32] ; (8005cd4 ) + 8005cb4: f7fc fa1f bl 80020f6 for(uint8_t count=0;count<8;count++) - 8005008: 7bfb ldrb r3, [r7, #15] - 800500a: 3301 adds r3, #1 - 800500c: 73fb strb r3, [r7, #15] - 800500e: 7bfb ldrb r3, [r7, #15] - 8005010: 2b07 cmp r3, #7 - 8005012: d9db bls.n 8004fcc + 8005cb8: 7bfb ldrb r3, [r7, #15] + 8005cba: 3301 adds r3, #1 + 8005cbc: 73fb strb r3, [r7, #15] + 8005cbe: 7bfb ldrb r3, [r7, #15] + 8005cc0: 2b07 cmp r3, #7 + 8005cc2: d9db bls.n 8005c7c } } - 8005014: bf00 nop - 8005016: bf00 nop - 8005018: 3710 adds r7, #16 - 800501a: 46bd mov sp, r7 - 800501c: bd80 pop {r7, pc} - 800501e: bf00 nop - 8005020: 40011c00 .word 0x40011c00 - 8005024: 40010c00 .word 0x40010c00 + 8005cc4: bf00 nop + 8005cc6: bf00 nop + 8005cc8: 3710 adds r7, #16 + 8005cca: 46bd mov sp, r7 + 8005ccc: bd80 pop {r7, pc} + 8005cce: bf00 nop + 8005cd0: 40011c00 .word 0x40011c00 + 8005cd4: 40010c00 .word 0x40010c00 -08005028 : +08005cd8 : //SPI读数据 //从触摸屏IC读取adc值 //CMD:指令 //返回值:读到的数据 uint16_t TP_Read_AD(char CMD) { - 8005028: b580 push {r7, lr} - 800502a: b084 sub sp, #16 - 800502c: af00 add r7, sp, #0 - 800502e: 4603 mov r3, r0 - 8005030: 71fb strb r3, [r7, #7] + 8005cd8: b580 push {r7, lr} + 8005cda: b084 sub sp, #16 + 8005cdc: af00 add r7, sp, #0 + 8005cde: 4603 mov r3, r0 + 8005ce0: 71fb strb r3, [r7, #7] uint16_t Num=0; - 8005032: 2300 movs r3, #0 - 8005034: 81fb strh r3, [r7, #14] + 8005ce2: 2300 movs r3, #0 + 8005ce4: 81fb strh r3, [r7, #14] TCLK(0); //先拉低时钟 - 8005036: 2200 movs r2, #0 - 8005038: 2102 movs r1, #2 - 800503a: 482b ldr r0, [pc, #172] ; (80050e8 ) - 800503c: f7fd f829 bl 8002092 + 8005ce6: 2200 movs r2, #0 + 8005ce8: 2102 movs r1, #2 + 8005cea: 482b ldr r0, [pc, #172] ; (8005d98 ) + 8005cec: f7fc fa03 bl 80020f6 TDIN(0); //拉低数据线 - 8005040: 2200 movs r2, #0 - 8005042: f44f 7100 mov.w r1, #512 ; 0x200 - 8005046: 4829 ldr r0, [pc, #164] ; (80050ec ) - 8005048: f7fd f823 bl 8002092 + 8005cf0: 2200 movs r2, #0 + 8005cf2: f44f 7100 mov.w r1, #512 ; 0x200 + 8005cf6: 4829 ldr r0, [pc, #164] ; (8005d9c ) + 8005cf8: f7fc f9fd bl 80020f6 TCS(0); //选中触摸屏IC - 800504c: 2200 movs r2, #0 - 800504e: 2104 movs r1, #4 - 8005050: 4825 ldr r0, [pc, #148] ; (80050e8 ) - 8005052: f7fd f81e bl 8002092 + 8005cfc: 2200 movs r2, #0 + 8005cfe: 2104 movs r1, #4 + 8005d00: 4825 ldr r0, [pc, #148] ; (8005d98 ) + 8005d02: f7fc f9f8 bl 80020f6 TP_Write_Byte(CMD);//发送命令字 - 8005056: 79fb ldrb r3, [r7, #7] - 8005058: 4618 mov r0, r3 - 800505a: f7ff ffaf bl 8004fbc + 8005d06: 79fb ldrb r3, [r7, #7] + 8005d08: 4618 mov r0, r3 + 8005d0a: f7ff ffaf bl 8005c6c HAL_GetTick(); //稍微延时,ad转换需要时间 - 800505e: f7fc fd31 bl 8001ac4 + 8005d0e: f7fb ff0b bl 8001b28 HAL_GetTick(); - 8005062: f7fc fd2f bl 8001ac4 + 8005d12: f7fb ff09 bl 8001b28 HAL_GetTick(); - 8005066: f7fc fd2d bl 8001ac4 + 8005d16: f7fb ff07 bl 8001b28 HAL_GetTick(); - 800506a: f7fc fd2b bl 8001ac4 + 8005d1a: f7fb ff05 bl 8001b28 HAL_GetTick(); - 800506e: f7fc fd29 bl 8001ac4 + 8005d1e: f7fb ff03 bl 8001b28 HAL_GetTick(); - 8005072: f7fc fd27 bl 8001ac4 + 8005d22: f7fb ff01 bl 8001b28 TCLK(1); //给1个时钟,清除BUSY - 8005076: 2201 movs r2, #1 - 8005078: 2102 movs r1, #2 - 800507a: 481b ldr r0, [pc, #108] ; (80050e8 ) - 800507c: f7fd f809 bl 8002092 + 8005d26: 2201 movs r2, #1 + 8005d28: 2102 movs r1, #2 + 8005d2a: 481b ldr r0, [pc, #108] ; (8005d98 ) + 8005d2c: f7fc f9e3 bl 80020f6 TCLK(0); - 8005080: 2200 movs r2, #0 - 8005082: 2102 movs r1, #2 - 8005084: 4818 ldr r0, [pc, #96] ; (80050e8 ) - 8005086: f7fd f804 bl 8002092 + 8005d30: 2200 movs r2, #0 + 8005d32: 2102 movs r1, #2 + 8005d34: 4818 ldr r0, [pc, #96] ; (8005d98 ) + 8005d36: f7fc f9de bl 80020f6 for(uint8_t count=0;count<16;count++)//读出16位数据,只有高12位有效 - 800508a: 2300 movs r3, #0 - 800508c: 737b strb r3, [r7, #13] - 800508e: e01a b.n 80050c6 + 8005d3a: 2300 movs r3, #0 + 8005d3c: 737b strb r3, [r7, #13] + 8005d3e: e01a b.n 8005d76 { Num<<=1; - 8005090: 89fb ldrh r3, [r7, #14] - 8005092: 005b lsls r3, r3, #1 - 8005094: 81fb strh r3, [r7, #14] + 8005d40: 89fb ldrh r3, [r7, #14] + 8005d42: 005b lsls r3, r3, #1 + 8005d44: 81fb strh r3, [r7, #14] TCLK(0); //下降沿有效 - 8005096: 2200 movs r2, #0 - 8005098: 2102 movs r1, #2 - 800509a: 4813 ldr r0, [pc, #76] ; (80050e8 ) - 800509c: f7fc fff9 bl 8002092 + 8005d46: 2200 movs r2, #0 + 8005d48: 2102 movs r1, #2 + 8005d4a: 4813 ldr r0, [pc, #76] ; (8005d98 ) + 8005d4c: f7fc f9d3 bl 80020f6 TCLK(1);; - 80050a0: 2201 movs r2, #1 - 80050a2: 2102 movs r1, #2 - 80050a4: 4810 ldr r0, [pc, #64] ; (80050e8 ) - 80050a6: f7fc fff4 bl 8002092 + 8005d50: 2201 movs r2, #1 + 8005d52: 2102 movs r1, #2 + 8005d54: 4810 ldr r0, [pc, #64] ; (8005d98 ) + 8005d56: f7fc f9ce bl 80020f6 if(TDOUT){Num++;} - 80050aa: f44f 7180 mov.w r1, #256 ; 0x100 - 80050ae: 480f ldr r0, [pc, #60] ; (80050ec ) - 80050b0: f7fc ffd8 bl 8002064 - 80050b4: 4603 mov r3, r0 - 80050b6: 2b00 cmp r3, #0 - 80050b8: d002 beq.n 80050c0 - 80050ba: 89fb ldrh r3, [r7, #14] - 80050bc: 3301 adds r3, #1 - 80050be: 81fb strh r3, [r7, #14] + 8005d5a: f44f 7180 mov.w r1, #256 ; 0x100 + 8005d5e: 480f ldr r0, [pc, #60] ; (8005d9c ) + 8005d60: f7fc f9b2 bl 80020c8 + 8005d64: 4603 mov r3, r0 + 8005d66: 2b00 cmp r3, #0 + 8005d68: d002 beq.n 8005d70 + 8005d6a: 89fb ldrh r3, [r7, #14] + 8005d6c: 3301 adds r3, #1 + 8005d6e: 81fb strh r3, [r7, #14] for(uint8_t count=0;count<16;count++)//读出16位数据,只有高12位有效 - 80050c0: 7b7b ldrb r3, [r7, #13] - 80050c2: 3301 adds r3, #1 - 80050c4: 737b strb r3, [r7, #13] - 80050c6: 7b7b ldrb r3, [r7, #13] - 80050c8: 2b0f cmp r3, #15 - 80050ca: d9e1 bls.n 8005090 + 8005d70: 7b7b ldrb r3, [r7, #13] + 8005d72: 3301 adds r3, #1 + 8005d74: 737b strb r3, [r7, #13] + 8005d76: 7b7b ldrb r3, [r7, #13] + 8005d78: 2b0f cmp r3, #15 + 8005d7a: d9e1 bls.n 8005d40 } Num>>=4; //只有高12位有效. - 80050cc: 89fb ldrh r3, [r7, #14] - 80050ce: 091b lsrs r3, r3, #4 - 80050d0: 81fb strh r3, [r7, #14] + 8005d7c: 89fb ldrh r3, [r7, #14] + 8005d7e: 091b lsrs r3, r3, #4 + 8005d80: 81fb strh r3, [r7, #14] TCS(1); //释放片选 - 80050d2: 2201 movs r2, #1 - 80050d4: 2104 movs r1, #4 - 80050d6: 4804 ldr r0, [pc, #16] ; (80050e8 ) - 80050d8: f7fc ffdb bl 8002092 + 8005d82: 2201 movs r2, #1 + 8005d84: 2104 movs r1, #4 + 8005d86: 4804 ldr r0, [pc, #16] ; (8005d98 ) + 8005d88: f7fc f9b5 bl 80020f6 return(Num); - 80050dc: 89fb ldrh r3, [r7, #14] + 8005d8c: 89fb ldrh r3, [r7, #14] } - 80050de: 4618 mov r0, r3 - 80050e0: 3710 adds r7, #16 - 80050e2: 46bd mov sp, r7 - 80050e4: bd80 pop {r7, pc} - 80050e6: bf00 nop - 80050e8: 40010c00 .word 0x40010c00 - 80050ec: 40011c00 .word 0x40011c00 + 8005d8e: 4618 mov r0, r3 + 8005d90: 3710 adds r7, #16 + 8005d92: 46bd mov sp, r7 + 8005d94: bd80 pop {r7, pc} + 8005d96: bf00 nop + 8005d98: 40010c00 .word 0x40010c00 + 8005d9c: 40011c00 .word 0x40011c00 -080050f0 : +08005da0 : //xy:指令(CMD_RDX/CMD_RDY) //返回值:读到的数据 #define READ_TIMES 5 //读取次数 #define LOST_VAL 1 //丢弃值 uint16_t TP_Read_XOY(uint8_t xy) { - 80050f0: b590 push {r4, r7, lr} - 80050f2: b089 sub sp, #36 ; 0x24 - 80050f4: af00 add r7, sp, #0 - 80050f6: 4603 mov r3, r0 - 80050f8: 71fb strb r3, [r7, #7] + 8005da0: b590 push {r4, r7, lr} + 8005da2: b089 sub sp, #36 ; 0x24 + 8005da4: af00 add r7, sp, #0 + 8005da6: 4603 mov r3, r0 + 8005da8: 71fb strb r3, [r7, #7] uint16_t i, j; uint16_t buf[READ_TIMES]; uint16_t sum=0; - 80050fa: 2300 movs r3, #0 - 80050fc: 837b strh r3, [r7, #26] + 8005daa: 2300 movs r3, #0 + 8005dac: 837b strh r3, [r7, #26] uint16_t temp; for(i=0;i - 8005104: 8bfc ldrh r4, [r7, #30] - 8005106: 79fb ldrb r3, [r7, #7] - 8005108: 4618 mov r0, r3 - 800510a: f7ff ff8d bl 8005028 - 800510e: 4603 mov r3, r0 - 8005110: 461a mov r2, r3 - 8005112: 0063 lsls r3, r4, #1 - 8005114: f107 0120 add.w r1, r7, #32 - 8005118: 440b add r3, r1 - 800511a: f823 2c14 strh.w r2, [r3, #-20] - 800511e: 8bfb ldrh r3, [r7, #30] - 8005120: 3301 adds r3, #1 - 8005122: 83fb strh r3, [r7, #30] - 8005124: 8bfb ldrh r3, [r7, #30] - 8005126: 2b04 cmp r3, #4 - 8005128: d9ec bls.n 8005104 + 8005dae: 2300 movs r3, #0 + 8005db0: 83fb strh r3, [r7, #30] + 8005db2: e00f b.n 8005dd4 + 8005db4: 8bfc ldrh r4, [r7, #30] + 8005db6: 79fb ldrb r3, [r7, #7] + 8005db8: 4618 mov r0, r3 + 8005dba: f7ff ff8d bl 8005cd8 + 8005dbe: 4603 mov r3, r0 + 8005dc0: 461a mov r2, r3 + 8005dc2: 0063 lsls r3, r4, #1 + 8005dc4: f107 0120 add.w r1, r7, #32 + 8005dc8: 440b add r3, r1 + 8005dca: f823 2c14 strh.w r2, [r3, #-20] + 8005dce: 8bfb ldrh r3, [r7, #30] + 8005dd0: 3301 adds r3, #1 + 8005dd2: 83fb strh r3, [r7, #30] + 8005dd4: 8bfb ldrh r3, [r7, #30] + 8005dd6: 2b04 cmp r3, #4 + 8005dd8: d9ec bls.n 8005db4 for(i=0;i + 8005dda: 2300 movs r3, #0 + 8005ddc: 83fb strh r3, [r7, #30] + 8005dde: e03b b.n 8005e58 { for(j=i+1;j + 8005de0: 8bfb ldrh r3, [r7, #30] + 8005de2: 3301 adds r3, #1 + 8005de4: 83bb strh r3, [r7, #28] + 8005de6: e031 b.n 8005e4c { if(buf[i]>buf[j])//升序排列 - 8005138: 8bfb ldrh r3, [r7, #30] - 800513a: 005b lsls r3, r3, #1 - 800513c: f107 0220 add.w r2, r7, #32 - 8005140: 4413 add r3, r2 - 8005142: f833 2c14 ldrh.w r2, [r3, #-20] - 8005146: 8bbb ldrh r3, [r7, #28] - 8005148: 005b lsls r3, r3, #1 - 800514a: f107 0120 add.w r1, r7, #32 - 800514e: 440b add r3, r1 - 8005150: f833 3c14 ldrh.w r3, [r3, #-20] - 8005154: 429a cmp r2, r3 - 8005156: d91e bls.n 8005196 + 8005de8: 8bfb ldrh r3, [r7, #30] + 8005dea: 005b lsls r3, r3, #1 + 8005dec: f107 0220 add.w r2, r7, #32 + 8005df0: 4413 add r3, r2 + 8005df2: f833 2c14 ldrh.w r2, [r3, #-20] + 8005df6: 8bbb ldrh r3, [r7, #28] + 8005df8: 005b lsls r3, r3, #1 + 8005dfa: f107 0120 add.w r1, r7, #32 + 8005dfe: 440b add r3, r1 + 8005e00: f833 3c14 ldrh.w r3, [r3, #-20] + 8005e04: 429a cmp r2, r3 + 8005e06: d91e bls.n 8005e46 { temp=buf[i]; - 8005158: 8bfb ldrh r3, [r7, #30] - 800515a: 005b lsls r3, r3, #1 - 800515c: f107 0220 add.w r2, r7, #32 - 8005160: 4413 add r3, r2 - 8005162: f833 3c14 ldrh.w r3, [r3, #-20] - 8005166: 833b strh r3, [r7, #24] + 8005e08: 8bfb ldrh r3, [r7, #30] + 8005e0a: 005b lsls r3, r3, #1 + 8005e0c: f107 0220 add.w r2, r7, #32 + 8005e10: 4413 add r3, r2 + 8005e12: f833 3c14 ldrh.w r3, [r3, #-20] + 8005e16: 833b strh r3, [r7, #24] buf[i]=buf[j]; - 8005168: 8bbb ldrh r3, [r7, #28] - 800516a: 8bfa ldrh r2, [r7, #30] - 800516c: 005b lsls r3, r3, #1 - 800516e: f107 0120 add.w r1, r7, #32 - 8005172: 440b add r3, r1 - 8005174: f833 1c14 ldrh.w r1, [r3, #-20] - 8005178: 0053 lsls r3, r2, #1 - 800517a: f107 0220 add.w r2, r7, #32 - 800517e: 4413 add r3, r2 - 8005180: 460a mov r2, r1 - 8005182: f823 2c14 strh.w r2, [r3, #-20] + 8005e18: 8bbb ldrh r3, [r7, #28] + 8005e1a: 8bfa ldrh r2, [r7, #30] + 8005e1c: 005b lsls r3, r3, #1 + 8005e1e: f107 0120 add.w r1, r7, #32 + 8005e22: 440b add r3, r1 + 8005e24: f833 1c14 ldrh.w r1, [r3, #-20] + 8005e28: 0053 lsls r3, r2, #1 + 8005e2a: f107 0220 add.w r2, r7, #32 + 8005e2e: 4413 add r3, r2 + 8005e30: 460a mov r2, r1 + 8005e32: f823 2c14 strh.w r2, [r3, #-20] buf[j]=temp; - 8005186: 8bbb ldrh r3, [r7, #28] - 8005188: 005b lsls r3, r3, #1 - 800518a: f107 0220 add.w r2, r7, #32 - 800518e: 4413 add r3, r2 - 8005190: 8b3a ldrh r2, [r7, #24] - 8005192: f823 2c14 strh.w r2, [r3, #-20] + 8005e36: 8bbb ldrh r3, [r7, #28] + 8005e38: 005b lsls r3, r3, #1 + 8005e3a: f107 0220 add.w r2, r7, #32 + 8005e3e: 4413 add r3, r2 + 8005e40: 8b3a ldrh r2, [r7, #24] + 8005e42: f823 2c14 strh.w r2, [r3, #-20] for(j=i+1;j + 8005e46: 8bbb ldrh r3, [r7, #28] + 8005e48: 3301 adds r3, #1 + 8005e4a: 83bb strh r3, [r7, #28] + 8005e4c: 8bbb ldrh r3, [r7, #28] + 8005e4e: 2b04 cmp r3, #4 + 8005e50: d9ca bls.n 8005de8 for(i=0;i + 8005e52: 8bfb ldrh r3, [r7, #30] + 8005e54: 3301 adds r3, #1 + 8005e56: 83fb strh r3, [r7, #30] + 8005e58: 8bfb ldrh r3, [r7, #30] + 8005e5a: 2b03 cmp r3, #3 + 8005e5c: d9c0 bls.n 8005de0 } } } sum=0; - 80051ae: 2300 movs r3, #0 - 80051b0: 837b strh r3, [r7, #26] + 8005e5e: 2300 movs r3, #0 + 8005e60: 837b strh r3, [r7, #26] for(i=LOST_VAL;i - 80051b8: 8bfb ldrh r3, [r7, #30] - 80051ba: 005b lsls r3, r3, #1 - 80051bc: f107 0220 add.w r2, r7, #32 - 80051c0: 4413 add r3, r2 - 80051c2: f833 2c14 ldrh.w r2, [r3, #-20] - 80051c6: 8b7b ldrh r3, [r7, #26] - 80051c8: 4413 add r3, r2 - 80051ca: 837b strh r3, [r7, #26] - 80051cc: 8bfb ldrh r3, [r7, #30] - 80051ce: 3301 adds r3, #1 - 80051d0: 83fb strh r3, [r7, #30] - 80051d2: 8bfb ldrh r3, [r7, #30] - 80051d4: 2b03 cmp r3, #3 - 80051d6: d9ef bls.n 80051b8 + 8005e62: 2301 movs r3, #1 + 8005e64: 83fb strh r3, [r7, #30] + 8005e66: e00c b.n 8005e82 + 8005e68: 8bfb ldrh r3, [r7, #30] + 8005e6a: 005b lsls r3, r3, #1 + 8005e6c: f107 0220 add.w r2, r7, #32 + 8005e70: 4413 add r3, r2 + 8005e72: f833 2c14 ldrh.w r2, [r3, #-20] + 8005e76: 8b7b ldrh r3, [r7, #26] + 8005e78: 4413 add r3, r2 + 8005e7a: 837b strh r3, [r7, #26] + 8005e7c: 8bfb ldrh r3, [r7, #30] + 8005e7e: 3301 adds r3, #1 + 8005e80: 83fb strh r3, [r7, #30] + 8005e82: 8bfb ldrh r3, [r7, #30] + 8005e84: 2b03 cmp r3, #3 + 8005e86: d9ef bls.n 8005e68 temp=sum/(READ_TIMES-2*LOST_VAL); - 80051d8: 8b7b ldrh r3, [r7, #26] - 80051da: 4a05 ldr r2, [pc, #20] ; (80051f0 ) - 80051dc: fba2 2303 umull r2, r3, r2, r3 - 80051e0: 085b lsrs r3, r3, #1 - 80051e2: 833b strh r3, [r7, #24] + 8005e88: 8b7b ldrh r3, [r7, #26] + 8005e8a: 4a05 ldr r2, [pc, #20] ; (8005ea0 ) + 8005e8c: fba2 2303 umull r2, r3, r2, r3 + 8005e90: 085b lsrs r3, r3, #1 + 8005e92: 833b strh r3, [r7, #24] return temp; - 80051e4: 8b3b ldrh r3, [r7, #24] + 8005e94: 8b3b ldrh r3, [r7, #24] } - 80051e6: 4618 mov r0, r3 - 80051e8: 3724 adds r7, #36 ; 0x24 - 80051ea: 46bd mov sp, r7 - 80051ec: bd90 pop {r4, r7, pc} - 80051ee: bf00 nop - 80051f0: aaaaaaab .word 0xaaaaaaab + 8005e96: 4618 mov r0, r3 + 8005e98: 3724 adds r7, #36 ; 0x24 + 8005e9a: 46bd mov sp, r7 + 8005e9c: bd90 pop {r4, r7, pc} + 8005e9e: bf00 nop + 8005ea0: aaaaaaab .word 0xaaaaaaab -080051f4 : +08005ea4 : //读取x,y坐标 //x,y:读取到的坐标ADC值 void TP_Read_XY_ADC(int16_t *x,int16_t *y) { - 80051f4: b580 push {r7, lr} - 80051f6: b084 sub sp, #16 - 80051f8: af00 add r7, sp, #0 - 80051fa: 6078 str r0, [r7, #4] - 80051fc: 6039 str r1, [r7, #0] + 8005ea4: b580 push {r7, lr} + 8005ea6: b084 sub sp, #16 + 8005ea8: af00 add r7, sp, #0 + 8005eaa: 6078 str r0, [r7, #4] + 8005eac: 6039 str r1, [r7, #0] int16_t xtemp,ytemp; xtemp=TP_Read_XOY(CMD_RDX); - 80051fe: 2090 movs r0, #144 ; 0x90 - 8005200: f7ff ff76 bl 80050f0 - 8005204: 4603 mov r3, r0 - 8005206: 81fb strh r3, [r7, #14] + 8005eae: 2090 movs r0, #144 ; 0x90 + 8005eb0: f7ff ff76 bl 8005da0 + 8005eb4: 4603 mov r3, r0 + 8005eb6: 81fb strh r3, [r7, #14] ytemp=TP_Read_XOY(CMD_RDY); - 8005208: 20d0 movs r0, #208 ; 0xd0 - 800520a: f7ff ff71 bl 80050f0 - 800520e: 4603 mov r3, r0 - 8005210: 81bb strh r3, [r7, #12] + 8005eb8: 20d0 movs r0, #208 ; 0xd0 + 8005eba: f7ff ff71 bl 8005da0 + 8005ebe: 4603 mov r3, r0 + 8005ec0: 81bb strh r3, [r7, #12] *x=xtemp; - 8005212: 687b ldr r3, [r7, #4] - 8005214: 89fa ldrh r2, [r7, #14] - 8005216: 801a strh r2, [r3, #0] + 8005ec2: 687b ldr r3, [r7, #4] + 8005ec4: 89fa ldrh r2, [r7, #14] + 8005ec6: 801a strh r2, [r3, #0] *y=ytemp; - 8005218: 683b ldr r3, [r7, #0] - 800521a: 89ba ldrh r2, [r7, #12] - 800521c: 801a strh r2, [r3, #0] + 8005ec8: 683b ldr r3, [r7, #0] + 8005eca: 89ba ldrh r2, [r7, #12] + 8005ecc: 801a strh r2, [r3, #0] } - 800521e: bf00 nop - 8005220: 3710 adds r7, #16 - 8005222: 46bd mov sp, r7 - 8005224: bd80 pop {r7, pc} + 8005ece: bf00 nop + 8005ed0: 3710 adds r7, #16 + 8005ed2: 46bd mov sp, r7 + 8005ed4: bd80 pop {r7, pc} -08005226 : +08005ed6 : //该函数能大大提高准确度 //x,y:读取到的坐标值 //返回值:0,失败;1,成功。 #define ERR_RANGE 10 //误差范围 uint8_t TP_Read_XY2(int16_t *x,int16_t *y) { - 8005226: b580 push {r7, lr} - 8005228: b084 sub sp, #16 - 800522a: af00 add r7, sp, #0 - 800522c: 6078 str r0, [r7, #4] - 800522e: 6039 str r1, [r7, #0] + 8005ed6: b580 push {r7, lr} + 8005ed8: b084 sub sp, #16 + 8005eda: af00 add r7, sp, #0 + 8005edc: 6078 str r0, [r7, #4] + 8005ede: 6039 str r1, [r7, #0] int16_t x1,y1; int16_t x2,y2; TP_Read_XY_ADC(&x1,&y1); - 8005230: f107 020c add.w r2, r7, #12 - 8005234: f107 030e add.w r3, r7, #14 - 8005238: 4611 mov r1, r2 - 800523a: 4618 mov r0, r3 - 800523c: f7ff ffda bl 80051f4 + 8005ee0: f107 020c add.w r2, r7, #12 + 8005ee4: f107 030e add.w r3, r7, #14 + 8005ee8: 4611 mov r1, r2 + 8005eea: 4618 mov r0, r3 + 8005eec: f7ff ffda bl 8005ea4 TP_Read_XY_ADC(&x2,&y2); - 8005240: f107 0208 add.w r2, r7, #8 - 8005244: f107 030a add.w r3, r7, #10 - 8005248: 4611 mov r1, r2 - 800524a: 4618 mov r0, r3 - 800524c: f7ff ffd2 bl 80051f4 + 8005ef0: f107 0208 add.w r2, r7, #8 + 8005ef4: f107 030a add.w r3, r7, #10 + 8005ef8: 4611 mov r1, r2 + 8005efa: 4618 mov r0, r3 + 8005efc: f7ff ffd2 bl 8005ea4 if(((x2<=x1&&x1 - 800525c: f9b7 300a ldrsh.w r3, [r7, #10] - 8005260: 3309 adds r3, #9 - 8005262: f9b7 200e ldrsh.w r2, [r7, #14] - 8005266: 4293 cmp r3, r2 - 8005268: da0c bge.n 8005284 - 800526a: f9b7 200e ldrsh.w r2, [r7, #14] - 800526e: f9b7 300a ldrsh.w r3, [r7, #10] - 8005272: 429a cmp r2, r3 - 8005274: dc3a bgt.n 80052ec - 8005276: f9b7 300e ldrsh.w r3, [r7, #14] - 800527a: 3309 adds r3, #9 - 800527c: f9b7 200a ldrsh.w r2, [r7, #10] - 8005280: 4293 cmp r3, r2 - 8005282: db33 blt.n 80052ec + 8005f00: f9b7 200a ldrsh.w r2, [r7, #10] + 8005f04: f9b7 300e ldrsh.w r3, [r7, #14] + 8005f08: 429a cmp r2, r3 + 8005f0a: dc06 bgt.n 8005f1a + 8005f0c: f9b7 300a ldrsh.w r3, [r7, #10] + 8005f10: 3309 adds r3, #9 + 8005f12: f9b7 200e ldrsh.w r2, [r7, #14] + 8005f16: 4293 cmp r3, r2 + 8005f18: da0c bge.n 8005f34 + 8005f1a: f9b7 200e ldrsh.w r2, [r7, #14] + 8005f1e: f9b7 300a ldrsh.w r3, [r7, #10] + 8005f22: 429a cmp r2, r3 + 8005f24: dc3a bgt.n 8005f9c + 8005f26: f9b7 300e ldrsh.w r3, [r7, #14] + 8005f2a: 3309 adds r3, #9 + 8005f2c: f9b7 200a ldrsh.w r2, [r7, #10] + 8005f30: 4293 cmp r3, r2 + 8005f32: db33 blt.n 8005f9c &&((y2<=y1&&y1 - 8005290: f9b7 3008 ldrsh.w r3, [r7, #8] - 8005294: 3309 adds r3, #9 - 8005296: f9b7 200c ldrsh.w r2, [r7, #12] - 800529a: 4293 cmp r3, r2 - 800529c: da0c bge.n 80052b8 - 800529e: f9b7 200c ldrsh.w r2, [r7, #12] - 80052a2: f9b7 3008 ldrsh.w r3, [r7, #8] - 80052a6: 429a cmp r2, r3 - 80052a8: dc20 bgt.n 80052ec - 80052aa: f9b7 300c ldrsh.w r3, [r7, #12] - 80052ae: 3309 adds r3, #9 - 80052b0: f9b7 2008 ldrsh.w r2, [r7, #8] - 80052b4: 4293 cmp r3, r2 - 80052b6: db19 blt.n 80052ec + 8005f34: f9b7 2008 ldrsh.w r2, [r7, #8] + 8005f38: f9b7 300c ldrsh.w r3, [r7, #12] + 8005f3c: 429a cmp r2, r3 + 8005f3e: dc06 bgt.n 8005f4e + 8005f40: f9b7 3008 ldrsh.w r3, [r7, #8] + 8005f44: 3309 adds r3, #9 + 8005f46: f9b7 200c ldrsh.w r2, [r7, #12] + 8005f4a: 4293 cmp r3, r2 + 8005f4c: da0c bge.n 8005f68 + 8005f4e: f9b7 200c ldrsh.w r2, [r7, #12] + 8005f52: f9b7 3008 ldrsh.w r3, [r7, #8] + 8005f56: 429a cmp r2, r3 + 8005f58: dc20 bgt.n 8005f9c + 8005f5a: f9b7 300c ldrsh.w r3, [r7, #12] + 8005f5e: 3309 adds r3, #9 + 8005f60: f9b7 2008 ldrsh.w r2, [r7, #8] + 8005f64: 4293 cmp r3, r2 + 8005f66: db19 blt.n 8005f9c { *x=(x1+x2)/2; - 80052b8: f9b7 300e ldrsh.w r3, [r7, #14] - 80052bc: 461a mov r2, r3 - 80052be: f9b7 300a ldrsh.w r3, [r7, #10] - 80052c2: 4413 add r3, r2 - 80052c4: 0fda lsrs r2, r3, #31 - 80052c6: 4413 add r3, r2 - 80052c8: 105b asrs r3, r3, #1 - 80052ca: b21a sxth r2, r3 - 80052cc: 687b ldr r3, [r7, #4] - 80052ce: 801a strh r2, [r3, #0] + 8005f68: f9b7 300e ldrsh.w r3, [r7, #14] + 8005f6c: 461a mov r2, r3 + 8005f6e: f9b7 300a ldrsh.w r3, [r7, #10] + 8005f72: 4413 add r3, r2 + 8005f74: 0fda lsrs r2, r3, #31 + 8005f76: 4413 add r3, r2 + 8005f78: 105b asrs r3, r3, #1 + 8005f7a: b21a sxth r2, r3 + 8005f7c: 687b ldr r3, [r7, #4] + 8005f7e: 801a strh r2, [r3, #0] *y=(y1+y2)/2; - 80052d0: f9b7 300c ldrsh.w r3, [r7, #12] - 80052d4: 461a mov r2, r3 - 80052d6: f9b7 3008 ldrsh.w r3, [r7, #8] - 80052da: 4413 add r3, r2 - 80052dc: 0fda lsrs r2, r3, #31 - 80052de: 4413 add r3, r2 - 80052e0: 105b asrs r3, r3, #1 - 80052e2: b21a sxth r2, r3 - 80052e4: 683b ldr r3, [r7, #0] - 80052e6: 801a strh r2, [r3, #0] + 8005f80: f9b7 300c ldrsh.w r3, [r7, #12] + 8005f84: 461a mov r2, r3 + 8005f86: f9b7 3008 ldrsh.w r3, [r7, #8] + 8005f8a: 4413 add r3, r2 + 8005f8c: 0fda lsrs r2, r3, #31 + 8005f8e: 4413 add r3, r2 + 8005f90: 105b asrs r3, r3, #1 + 8005f92: b21a sxth r2, r3 + 8005f94: 683b ldr r3, [r7, #0] + 8005f96: 801a strh r2, [r3, #0] return 1; - 80052e8: 2301 movs r3, #1 - 80052ea: e000 b.n 80052ee + 8005f98: 2301 movs r3, #1 + 8005f9a: e000 b.n 8005f9e }else return 0; - 80052ec: 2300 movs r3, #0 + 8005f9c: 2300 movs r3, #0 } - 80052ee: 4618 mov r0, r3 - 80052f0: 3710 adds r7, #16 - 80052f2: 46bd mov sp, r7 - 80052f4: bd80 pop {r7, pc} + 8005f9e: 4618 mov r0, r3 + 8005fa0: 3710 adds r7, #16 + 8005fa2: 46bd mov sp, r7 + 8005fa4: bd80 pop {r7, pc} ... -080052f8 : +08005fa8 : touch_device t0;// t0 yyds~ touch_config tconfig; //触摸更新服务,状态机写法,循环获取坐标 void TP_Server() { - 80052f8: b598 push {r3, r4, r7, lr} - 80052fa: af00 add r7, sp, #0 + 8005fa8: b598 push {r3, r4, r7, lr} + 8005faa: af00 add r7, sp, #0 if(TPEN==0) //如果有触摸 - 80052fc: f44f 6180 mov.w r1, #1024 ; 0x400 - 8005300: 4835 ldr r0, [pc, #212] ; (80053d8 ) - 8005302: f7fc feaf bl 8002064 - 8005306: 4603 mov r3, r0 - 8005308: 2b00 cmp r3, #0 - 800530a: d155 bne.n 80053b8 + 8005fac: f44f 6180 mov.w r1, #1024 ; 0x400 + 8005fb0: 4835 ldr r0, [pc, #212] ; (8006088 ) + 8005fb2: f7fc f889 bl 80020c8 + 8005fb6: 4603 mov r3, r0 + 8005fb8: 2b00 cmp r3, #0 + 8005fba: d155 bne.n 8006068 { if(TP_Read_XY2(&t0.adc_x,&t0.adc_y)) - 800530c: 4933 ldr r1, [pc, #204] ; (80053dc ) - 800530e: 4834 ldr r0, [pc, #208] ; (80053e0 ) - 8005310: f7ff ff89 bl 8005226 - 8005314: 4603 mov r3, r0 - 8005316: 2b00 cmp r3, #0 - 8005318: d043 beq.n 80053a2 + 8005fbc: 4933 ldr r1, [pc, #204] ; (800608c ) + 8005fbe: 4834 ldr r0, [pc, #208] ; (8006090 ) + 8005fc0: f7ff ff89 bl 8005ed6 + 8005fc4: 4603 mov r3, r0 + 8005fc6: 2b00 cmp r3, #0 + 8005fc8: d043 beq.n 8006052 {//先读取ad值 t0.pix_x=(t0.adc_x/tconfig.x_acc)-tconfig.x_offset;//转换为像素坐标 - 800531a: 4b31 ldr r3, [pc, #196] ; (80053e0 ) - 800531c: 881b ldrh r3, [r3, #0] - 800531e: 4618 mov r0, r3 - 8005320: f7fb fd28 bl 8000d74 <__aeabi_i2f> - 8005324: 4602 mov r2, r0 - 8005326: 4b2f ldr r3, [pc, #188] ; (80053e4 ) - 8005328: 685b ldr r3, [r3, #4] - 800532a: 4619 mov r1, r3 - 800532c: 4610 mov r0, r2 - 800532e: f7fb fe29 bl 8000f84 <__aeabi_fdiv> - 8005332: 4603 mov r3, r0 - 8005334: 461c mov r4, r3 - 8005336: 4b2b ldr r3, [pc, #172] ; (80053e4 ) - 8005338: 68db ldr r3, [r3, #12] - 800533a: 4618 mov r0, r3 - 800533c: f7fb fd1a bl 8000d74 <__aeabi_i2f> - 8005340: 4603 mov r3, r0 - 8005342: 4619 mov r1, r3 - 8005344: 4620 mov r0, r4 - 8005346: f7fb fc5f bl 8000c08 <__aeabi_fsub> - 800534a: 4603 mov r3, r0 - 800534c: 4618 mov r0, r3 - 800534e: f7fb ff41 bl 80011d4 <__aeabi_f2iz> - 8005352: 4603 mov r3, r0 - 8005354: 4a22 ldr r2, [pc, #136] ; (80053e0 ) - 8005356: 6053 str r3, [r2, #4] + 8005fca: 4b31 ldr r3, [pc, #196] ; (8006090 ) + 8005fcc: 881b ldrh r3, [r3, #0] + 8005fce: 4618 mov r0, r3 + 8005fd0: f7fa fed0 bl 8000d74 <__aeabi_i2f> + 8005fd4: 4602 mov r2, r0 + 8005fd6: 4b2f ldr r3, [pc, #188] ; (8006094 ) + 8005fd8: 685b ldr r3, [r3, #4] + 8005fda: 4619 mov r1, r3 + 8005fdc: 4610 mov r0, r2 + 8005fde: f7fa ffd1 bl 8000f84 <__aeabi_fdiv> + 8005fe2: 4603 mov r3, r0 + 8005fe4: 461c mov r4, r3 + 8005fe6: 4b2b ldr r3, [pc, #172] ; (8006094 ) + 8005fe8: 68db ldr r3, [r3, #12] + 8005fea: 4618 mov r0, r3 + 8005fec: f7fa fec2 bl 8000d74 <__aeabi_i2f> + 8005ff0: 4603 mov r3, r0 + 8005ff2: 4619 mov r1, r3 + 8005ff4: 4620 mov r0, r4 + 8005ff6: f7fa fe07 bl 8000c08 <__aeabi_fsub> + 8005ffa: 4603 mov r3, r0 + 8005ffc: 4618 mov r0, r3 + 8005ffe: f7fb f85d bl 80010bc <__aeabi_f2iz> + 8006002: 4603 mov r3, r0 + 8006004: 4a22 ldr r2, [pc, #136] ; (8006090 ) + 8006006: 6053 str r3, [r2, #4] t0.pix_y=(t0.adc_y/tconfig.y_acc)-tconfig.y_offset; - 8005358: 4b21 ldr r3, [pc, #132] ; (80053e0 ) - 800535a: 885b ldrh r3, [r3, #2] - 800535c: 4618 mov r0, r3 - 800535e: f7fb fd09 bl 8000d74 <__aeabi_i2f> - 8005362: 4602 mov r2, r0 - 8005364: 4b1f ldr r3, [pc, #124] ; (80053e4 ) - 8005366: 689b ldr r3, [r3, #8] - 8005368: 4619 mov r1, r3 - 800536a: 4610 mov r0, r2 - 800536c: f7fb fe0a bl 8000f84 <__aeabi_fdiv> - 8005370: 4603 mov r3, r0 - 8005372: 461c mov r4, r3 - 8005374: 4b1b ldr r3, [pc, #108] ; (80053e4 ) - 8005376: 691b ldr r3, [r3, #16] - 8005378: 4618 mov r0, r3 - 800537a: f7fb fcfb bl 8000d74 <__aeabi_i2f> - 800537e: 4603 mov r3, r0 - 8005380: 4619 mov r1, r3 - 8005382: 4620 mov r0, r4 - 8005384: f7fb fc40 bl 8000c08 <__aeabi_fsub> - 8005388: 4603 mov r3, r0 - 800538a: 4618 mov r0, r3 - 800538c: f7fb ff22 bl 80011d4 <__aeabi_f2iz> - 8005390: 4603 mov r3, r0 - 8005392: 4a13 ldr r2, [pc, #76] ; (80053e0 ) - 8005394: 6093 str r3, [r2, #8] + 8006008: 4b21 ldr r3, [pc, #132] ; (8006090 ) + 800600a: 885b ldrh r3, [r3, #2] + 800600c: 4618 mov r0, r3 + 800600e: f7fa feb1 bl 8000d74 <__aeabi_i2f> + 8006012: 4602 mov r2, r0 + 8006014: 4b1f ldr r3, [pc, #124] ; (8006094 ) + 8006016: 689b ldr r3, [r3, #8] + 8006018: 4619 mov r1, r3 + 800601a: 4610 mov r0, r2 + 800601c: f7fa ffb2 bl 8000f84 <__aeabi_fdiv> + 8006020: 4603 mov r3, r0 + 8006022: 461c mov r4, r3 + 8006024: 4b1b ldr r3, [pc, #108] ; (8006094 ) + 8006026: 691b ldr r3, [r3, #16] + 8006028: 4618 mov r0, r3 + 800602a: f7fa fea3 bl 8000d74 <__aeabi_i2f> + 800602e: 4603 mov r3, r0 + 8006030: 4619 mov r1, r3 + 8006032: 4620 mov r0, r4 + 8006034: f7fa fde8 bl 8000c08 <__aeabi_fsub> + 8006038: 4603 mov r3, r0 + 800603a: 4618 mov r0, r3 + 800603c: f7fb f83e bl 80010bc <__aeabi_f2iz> + 8006040: 4603 mov r3, r0 + 8006042: 4a13 ldr r2, [pc, #76] ; (8006090 ) + 8006044: 6093 str r3, [r2, #8] t0.d=1; - 8005396: 4a12 ldr r2, [pc, #72] ; (80053e0 ) - 8005398: 7b13 ldrb r3, [r2, #12] - 800539a: f043 0304 orr.w r3, r3, #4 - 800539e: 7313 strb r3, [r2, #12] - 80053a0: e004 b.n 80053ac + 8006046: 4a12 ldr r2, [pc, #72] ; (8006090 ) + 8006048: 7b13 ldrb r3, [r2, #12] + 800604a: f043 0304 orr.w r3, r3, #4 + 800604e: 7313 strb r3, [r2, #12] + 8006050: e004 b.n 800605c }else { t0.d=0; - 80053a2: 4a0f ldr r2, [pc, #60] ; (80053e0 ) - 80053a4: 7b13 ldrb r3, [r2, #12] - 80053a6: f36f 0382 bfc r3, #2, #1 - 80053aa: 7313 strb r3, [r2, #12] + 8006052: 4a0f ldr r2, [pc, #60] ; (8006090 ) + 8006054: 7b13 ldrb r3, [r2, #12] + 8006056: f36f 0382 bfc r3, #2, #1 + 800605a: 7313 strb r3, [r2, #12] } t0.c=1; - 80053ac: 4a0c ldr r2, [pc, #48] ; (80053e0 ) - 80053ae: 7b13 ldrb r3, [r2, #12] - 80053b0: f043 0302 orr.w r3, r3, #2 - 80053b4: 7313 strb r3, [r2, #12] + 800605c: 4a0c ldr r2, [pc, #48] ; (8006090 ) + 800605e: 7b13 ldrb r3, [r2, #12] + 8006060: f043 0302 orr.w r3, r3, #2 + 8006064: 7313 strb r3, [r2, #12] { t0.c=0; t0.pix_x=-1; t0.pix_y=-1; } } - 80053b6: e00c b.n 80053d2 + 8006066: e00c b.n 8006082 t0.c=0; - 80053b8: 4a09 ldr r2, [pc, #36] ; (80053e0 ) - 80053ba: 7b13 ldrb r3, [r2, #12] - 80053bc: f36f 0341 bfc r3, #1, #1 - 80053c0: 7313 strb r3, [r2, #12] + 8006068: 4a09 ldr r2, [pc, #36] ; (8006090 ) + 800606a: 7b13 ldrb r3, [r2, #12] + 800606c: f36f 0341 bfc r3, #1, #1 + 8006070: 7313 strb r3, [r2, #12] t0.pix_x=-1; - 80053c2: 4b07 ldr r3, [pc, #28] ; (80053e0 ) - 80053c4: f04f 32ff mov.w r2, #4294967295 ; 0xffffffff - 80053c8: 605a str r2, [r3, #4] + 8006072: 4b07 ldr r3, [pc, #28] ; (8006090 ) + 8006074: f04f 32ff mov.w r2, #4294967295 ; 0xffffffff + 8006078: 605a str r2, [r3, #4] t0.pix_y=-1; - 80053ca: 4b05 ldr r3, [pc, #20] ; (80053e0 ) - 80053cc: f04f 32ff mov.w r2, #4294967295 ; 0xffffffff - 80053d0: 609a str r2, [r3, #8] + 800607a: 4b05 ldr r3, [pc, #20] ; (8006090 ) + 800607c: f04f 32ff mov.w r2, #4294967295 ; 0xffffffff + 8006080: 609a str r2, [r3, #8] } - 80053d2: bf00 nop - 80053d4: bd98 pop {r3, r4, r7, pc} - 80053d6: bf00 nop - 80053d8: 40011c00 .word 0x40011c00 - 80053dc: 2000033a .word 0x2000033a - 80053e0: 20000338 .word 0x20000338 - 80053e4: 20000320 .word 0x20000320 + 8006082: bf00 nop + 8006084: bd98 pop {r3, r4, r7, pc} + 8006086: bf00 nop + 8006088: 40011c00 .word 0x40011c00 + 800608c: 20000386 .word 0x20000386 + 8006090: 20000384 .word 0x20000384 + 8006094: 2000036c .word 0x2000036c -080053e8 : +08006098 : return 0; } //校准用,画一个目标坐标 //r=坐标半径,显示特效用 void TP_DrwaTrage(int x,int y,int r) { - 80053e8: b590 push {r4, r7, lr} - 80053ea: b087 sub sp, #28 - 80053ec: af02 add r7, sp, #8 - 80053ee: 60f8 str r0, [r7, #12] - 80053f0: 60b9 str r1, [r7, #8] - 80053f2: 607a str r2, [r7, #4] + 8006098: b590 push {r4, r7, lr} + 800609a: b087 sub sp, #28 + 800609c: af02 add r7, sp, #8 + 800609e: 60f8 str r0, [r7, #12] + 80060a0: 60b9 str r1, [r7, #8] + 80060a2: 607a str r2, [r7, #4] Draw_Circle(x,y,r+1,GRAY); - 80053f4: 68fb ldr r3, [r7, #12] - 80053f6: b298 uxth r0, r3 - 80053f8: 68bb ldr r3, [r7, #8] - 80053fa: b299 uxth r1, r3 - 80053fc: 687b ldr r3, [r7, #4] - 80053fe: b29b uxth r3, r3 - 8005400: 3301 adds r3, #1 - 8005402: b29a uxth r2, r3 - 8005404: f248 4330 movw r3, #33840 ; 0x8430 - 8005408: f7ff fb7f bl 8004b0a + 80060a4: 68fb ldr r3, [r7, #12] + 80060a6: b298 uxth r0, r3 + 80060a8: 68bb ldr r3, [r7, #8] + 80060aa: b299 uxth r1, r3 + 80060ac: 687b ldr r3, [r7, #4] + 80060ae: b29b uxth r3, r3 + 80060b0: 3301 adds r3, #1 + 80060b2: b29a uxth r2, r3 + 80060b4: f248 4330 movw r3, #33840 ; 0x8430 + 80060b8: f7ff fa65 bl 8005586 Draw_Circle(x,y,r,RED); - 800540c: 68fb ldr r3, [r7, #12] - 800540e: b298 uxth r0, r3 - 8005410: 68bb ldr r3, [r7, #8] - 8005412: b299 uxth r1, r3 - 8005414: 687b ldr r3, [r7, #4] - 8005416: b29a uxth r2, r3 - 8005418: f44f 4378 mov.w r3, #63488 ; 0xf800 - 800541c: f7ff fb75 bl 8004b0a + 80060bc: 68fb ldr r3, [r7, #12] + 80060be: b298 uxth r0, r3 + 80060c0: 68bb ldr r3, [r7, #8] + 80060c2: b299 uxth r1, r3 + 80060c4: 687b ldr r3, [r7, #4] + 80060c6: b29a uxth r2, r3 + 80060c8: f44f 4378 mov.w r3, #63488 ; 0xf800 + 80060cc: f7ff fa5b bl 8005586 LCD_DrawLine(x,y,x+10,y,RED); - 8005420: 68fb ldr r3, [r7, #12] - 8005422: b298 uxth r0, r3 - 8005424: 68bb ldr r3, [r7, #8] - 8005426: b299 uxth r1, r3 - 8005428: 68fb ldr r3, [r7, #12] - 800542a: b29b uxth r3, r3 - 800542c: 330a adds r3, #10 - 800542e: b29a uxth r2, r3 - 8005430: 68bb ldr r3, [r7, #8] - 8005432: b29b uxth r3, r3 - 8005434: f44f 4478 mov.w r4, #63488 ; 0xf800 - 8005438: 9400 str r4, [sp, #0] - 800543a: f7ff fae1 bl 8004a00 + 80060d0: 68fb ldr r3, [r7, #12] + 80060d2: b298 uxth r0, r3 + 80060d4: 68bb ldr r3, [r7, #8] + 80060d6: b299 uxth r1, r3 + 80060d8: 68fb ldr r3, [r7, #12] + 80060da: b29b uxth r3, r3 + 80060dc: 330a adds r3, #10 + 80060de: b29a uxth r2, r3 + 80060e0: 68bb ldr r3, [r7, #8] + 80060e2: b29b uxth r3, r3 + 80060e4: f44f 4478 mov.w r4, #63488 ; 0xf800 + 80060e8: 9400 str r4, [sp, #0] + 80060ea: f7ff f9c7 bl 800547c LCD_DrawLine(x,y,x,y+10,RED); - 800543e: 68fb ldr r3, [r7, #12] - 8005440: b298 uxth r0, r3 - 8005442: 68bb ldr r3, [r7, #8] - 8005444: b299 uxth r1, r3 - 8005446: 68fb ldr r3, [r7, #12] - 8005448: b29a uxth r2, r3 - 800544a: 68bb ldr r3, [r7, #8] - 800544c: b29b uxth r3, r3 - 800544e: 330a adds r3, #10 - 8005450: b29b uxth r3, r3 - 8005452: f44f 4478 mov.w r4, #63488 ; 0xf800 - 8005456: 9400 str r4, [sp, #0] - 8005458: f7ff fad2 bl 8004a00 + 80060ee: 68fb ldr r3, [r7, #12] + 80060f0: b298 uxth r0, r3 + 80060f2: 68bb ldr r3, [r7, #8] + 80060f4: b299 uxth r1, r3 + 80060f6: 68fb ldr r3, [r7, #12] + 80060f8: b29a uxth r2, r3 + 80060fa: 68bb ldr r3, [r7, #8] + 80060fc: b29b uxth r3, r3 + 80060fe: 330a adds r3, #10 + 8006100: b29b uxth r3, r3 + 8006102: f44f 4478 mov.w r4, #63488 ; 0xf800 + 8006106: 9400 str r4, [sp, #0] + 8006108: f7ff f9b8 bl 800547c LCD_DrawLine(x,y,x-10,y,RED); - 800545c: 68fb ldr r3, [r7, #12] - 800545e: b298 uxth r0, r3 - 8005460: 68bb ldr r3, [r7, #8] - 8005462: b299 uxth r1, r3 - 8005464: 68fb ldr r3, [r7, #12] - 8005466: b29b uxth r3, r3 - 8005468: 3b0a subs r3, #10 - 800546a: b29a uxth r2, r3 - 800546c: 68bb ldr r3, [r7, #8] - 800546e: b29b uxth r3, r3 - 8005470: f44f 4478 mov.w r4, #63488 ; 0xf800 - 8005474: 9400 str r4, [sp, #0] - 8005476: f7ff fac3 bl 8004a00 + 800610c: 68fb ldr r3, [r7, #12] + 800610e: b298 uxth r0, r3 + 8006110: 68bb ldr r3, [r7, #8] + 8006112: b299 uxth r1, r3 + 8006114: 68fb ldr r3, [r7, #12] + 8006116: b29b uxth r3, r3 + 8006118: 3b0a subs r3, #10 + 800611a: b29a uxth r2, r3 + 800611c: 68bb ldr r3, [r7, #8] + 800611e: b29b uxth r3, r3 + 8006120: f44f 4478 mov.w r4, #63488 ; 0xf800 + 8006124: 9400 str r4, [sp, #0] + 8006126: f7ff f9a9 bl 800547c LCD_DrawLine(x,y,x,y-10,RED); - 800547a: 68fb ldr r3, [r7, #12] - 800547c: b298 uxth r0, r3 - 800547e: 68bb ldr r3, [r7, #8] - 8005480: b299 uxth r1, r3 - 8005482: 68fb ldr r3, [r7, #12] - 8005484: b29a uxth r2, r3 - 8005486: 68bb ldr r3, [r7, #8] - 8005488: b29b uxth r3, r3 - 800548a: 3b0a subs r3, #10 - 800548c: b29b uxth r3, r3 - 800548e: f44f 4478 mov.w r4, #63488 ; 0xf800 - 8005492: 9400 str r4, [sp, #0] - 8005494: f7ff fab4 bl 8004a00 + 800612a: 68fb ldr r3, [r7, #12] + 800612c: b298 uxth r0, r3 + 800612e: 68bb ldr r3, [r7, #8] + 8006130: b299 uxth r1, r3 + 8006132: 68fb ldr r3, [r7, #12] + 8006134: b29a uxth r2, r3 + 8006136: 68bb ldr r3, [r7, #8] + 8006138: b29b uxth r3, r3 + 800613a: 3b0a subs r3, #10 + 800613c: b29b uxth r3, r3 + 800613e: f44f 4478 mov.w r4, #63488 ; 0xf800 + 8006142: 9400 str r4, [sp, #0] + 8006144: f7ff f99a bl 800547c } - 8005498: bf00 nop - 800549a: 3714 adds r7, #20 - 800549c: 46bd mov sp, r7 - 800549e: bd90 pop {r4, r7, pc} + 8006148: bf00 nop + 800614a: 3714 adds r7, #20 + 800614c: 46bd mov sp, r7 + 800614e: bd90 pop {r4, r7, pc} -080054a0 : +08006150 : //触摸屏校准 -void TP_adjustment() +//mode 校准模式,0 被动校准 ,1 主动校准 +void TP_adjustment(char mode) { - 80054a0: b5b0 push {r4, r5, r7, lr} - 80054a2: b0a4 sub sp, #144 ; 0x90 - 80054a4: af02 add r7, sp, #8 + 8006150: b5b0 push {r4, r5, r7, lr} + 8006152: b0a6 sub sp, #152 ; 0x98 + 8006154: af02 add r7, sp, #8 + 8006156: 4603 mov r3, r0 + 8006158: 71fb strb r3, [r7, #7] //判断是否需要校准,从eeprom获取数据 EEPROM_READ_BATY(16,(char *)&tconfig,sizeof(touch_config)); - 80054a6: 2218 movs r2, #24 - 80054a8: 4916 ldr r1, [pc, #88] ; (8005504 ) - 80054aa: 2010 movs r0, #16 - 80054ac: f7ff fcf2 bl 8004e94 - if(tconfig.begin==0xab&&tconfig.end==0xcd) //判断校准标记 - 80054b0: 4b14 ldr r3, [pc, #80] ; (8005504 ) - 80054b2: 781b ldrb r3, [r3, #0] - 80054b4: 2bab cmp r3, #171 ; 0xab - 80054b6: d104 bne.n 80054c2 - 80054b8: 4b12 ldr r3, [pc, #72] ; (8005504 ) - 80054ba: 7d1b ldrb r3, [r3, #20] - 80054bc: 2bcd cmp r3, #205 ; 0xcd - 80054be: f000 82a5 beq.w 8005a0c + 800615a: 2218 movs r2, #24 + 800615c: 4917 ldr r1, [pc, #92] ; (80061bc ) + 800615e: 2010 movs r0, #16 + 8006160: f7ff fbd6 bl 8005910 + if(tconfig.begin==0xab&&tconfig.end==0xcd&&mode==0) //判断校准标记 + 8006164: 4b15 ldr r3, [pc, #84] ; (80061bc ) + 8006166: 781b ldrb r3, [r3, #0] + 8006168: 2bab cmp r3, #171 ; 0xab + 800616a: d107 bne.n 800617c + 800616c: 4b13 ldr r3, [pc, #76] ; (80061bc ) + 800616e: 7d1b ldrb r3, [r3, #20] + 8006170: 2bcd cmp r3, #205 ; 0xcd + 8006172: d103 bne.n 800617c + 8006174: 79fb ldrb r3, [r7, #7] + 8006176: 2b00 cmp r3, #0 + 8006178: f000 82b8 beq.w 80066ec { return; //已经校准过了 } //校准方法比较简单,读取4个坐标计算ad值与像素的关系 char str[64]; //用于字符串提示 uint16_t y_adc,x_adc,step=0,r=10; //adc缓存,校准步骤,坐标的半径 - 80054c2: 2300 movs r3, #0 - 80054c4: f8a7 3086 strh.w r3, [r7, #134] ; 0x86 - 80054c8: 230a movs r3, #10 - 80054ca: f8a7 3084 strh.w r3, [r7, #132] ; 0x84 + 800617c: 2300 movs r3, #0 + 800617e: f8a7 308e strh.w r3, [r7, #142] ; 0x8e + 8006182: 230a movs r3, #10 + 8006184: f8a7 308c strh.w r3, [r7, #140] ; 0x8c uint16_t y1,y2,y3,y4,x1,x2,x3,x4; //4个点缓存 int y5,x5,xd,xl,yd,yl; //通过4个点算出xy的长边和短边 float acc_x,acc_y; //算出的关系倍率 int offset_x,offset_y; //算出的偏差 uint32_t wait=HAL_GetTick()+50000,ms100=0; //校准时间,50秒没操作就自动退出 - 80054ce: f7fc faf9 bl 8001ac4 - 80054d2: 4603 mov r3, r0 - 80054d4: f503 4343 add.w r3, r3, #49920 ; 0xc300 - 80054d8: 3350 adds r3, #80 ; 0x50 - 80054da: 673b str r3, [r7, #112] ; 0x70 - 80054dc: 2300 movs r3, #0 - 80054de: 66fb str r3, [r7, #108] ; 0x6c + 8006188: f7fb fcce bl 8001b28 + 800618c: 4603 mov r3, r0 + 800618e: f503 4343 add.w r3, r3, #49920 ; 0xc300 + 8006192: 3350 adds r3, #80 ; 0x50 + 8006194: 67bb str r3, [r7, #120] ; 0x78 + 8006196: 2300 movs r3, #0 + 8006198: 677b str r3, [r7, #116] ; 0x74 //显示字符串提示 LCD_Clear(GRAY); - 80054e0: f248 4030 movw r0, #33840 ; 0x8430 - 80054e4: f7ff fa3a bl 800495c + 800619a: f248 4030 movw r0, #33840 ; 0x8430 + 800619e: f7ff f91b bl 80053d8 LCD_ShowString(0,50,"Calibrate the touch screen",16,RED,RED); - 80054e8: f44f 4378 mov.w r3, #63488 ; 0xf800 - 80054ec: 9301 str r3, [sp, #4] - 80054ee: f44f 4378 mov.w r3, #63488 ; 0xf800 - 80054f2: 9300 str r3, [sp, #0] - 80054f4: 2310 movs r3, #16 - 80054f6: 4a04 ldr r2, [pc, #16] ; (8005508 ) - 80054f8: 2132 movs r1, #50 ; 0x32 - 80054fa: 2000 movs r0, #0 - 80054fc: f7ff fc2c bl 8004d58 + 80061a2: f44f 4378 mov.w r3, #63488 ; 0xf800 + 80061a6: 9301 str r3, [sp, #4] + 80061a8: f44f 4378 mov.w r3, #63488 ; 0xf800 + 80061ac: 9300 str r3, [sp, #0] + 80061ae: 2310 movs r3, #16 + 80061b0: 4a03 ldr r2, [pc, #12] ; (80061c0 ) + 80061b2: 2132 movs r1, #50 ; 0x32 + 80061b4: 2000 movs r0, #0 + 80061b6: f7ff fb0d bl 80057d4 //TP_DrwaTrage(30,30,10); //开始校准 while(HAL_GetTick() - 8005502: bf00 nop - 8005504: 20000320 .word 0x20000320 - 8005508: 0800a030 .word 0x0800a030 + 80061ba: e28f b.n 80066dc + 80061bc: 2000036c .word 0x2000036c + 80061c0: 08009d38 .word 0x08009d38 { if(TPEN==0) //如果屏幕被按下 - 800550c: f44f 6180 mov.w r1, #1024 ; 0x400 - 8005510: 48cf ldr r0, [pc, #828] ; (8005850 ) - 8005512: f7fc fda7 bl 8002064 - 8005516: 4603 mov r3, r0 - 8005518: 2b00 cmp r3, #0 - 800551a: d146 bne.n 80055aa + 80061c4: f44f 6180 mov.w r1, #1024 ; 0x400 + 80061c8: 48d7 ldr r0, [pc, #860] ; (8006528 ) + 80061ca: f7fb ff7d bl 80020c8 + 80061ce: 4603 mov r3, r0 + 80061d0: 2b00 cmp r3, #0 + 80061d2: d14c bne.n 800626e { wait=HAL_GetTick()+50000; //重置50秒 - 800551c: f7fc fad2 bl 8001ac4 - 8005520: 4603 mov r3, r0 - 8005522: f503 4343 add.w r3, r3, #49920 ; 0xc300 - 8005526: 3350 adds r3, #80 ; 0x50 - 8005528: 673b str r3, [r7, #112] ; 0x70 + 80061d4: f7fb fca8 bl 8001b28 + 80061d8: 4603 mov r3, r0 + 80061da: f503 4343 add.w r3, r3, #49920 ; 0xc300 + 80061de: 3350 adds r3, #80 ; 0x50 + 80061e0: 67bb str r3, [r7, #120] ; 0x78 TP_Read_XY2(&x_adc,&y_adc); //读取xy ad值 - 800552a: 1cba adds r2, r7, #2 - 800552c: 463b mov r3, r7 - 800552e: 4611 mov r1, r2 - 8005530: 4618 mov r0, r3 - 8005532: f7ff fe78 bl 8005226 + 80061e2: f107 020a add.w r2, r7, #10 + 80061e6: f107 0308 add.w r3, r7, #8 + 80061ea: 4611 mov r1, r2 + 80061ec: 4618 mov r0, r3 + 80061ee: f7ff fe72 bl 8005ed6 //将读到的值显示出来 sprintf(str,"ADC_X:%04d",x_adc); - 8005536: 883b ldrh r3, [r7, #0] - 8005538: 461a mov r2, r3 - 800553a: 1d3b adds r3, r7, #4 - 800553c: 49c5 ldr r1, [pc, #788] ; (8005854 ) - 800553e: 4618 mov r0, r3 - 8005540: f002 fb74 bl 8007c2c + 80061f2: 893b ldrh r3, [r7, #8] + 80061f4: 461a mov r2, r3 + 80061f6: f107 030c add.w r3, r7, #12 + 80061fa: 49cc ldr r1, [pc, #816] ; (800652c ) + 80061fc: 4618 mov r0, r3 + 80061fe: f001 fc0b bl 8007a18 LCD_ShowString(100, 0, str, 16, RED, GRAY); - 8005544: 1d3a adds r2, r7, #4 - 8005546: f248 4330 movw r3, #33840 ; 0x8430 - 800554a: 9301 str r3, [sp, #4] - 800554c: f44f 4378 mov.w r3, #63488 ; 0xf800 - 8005550: 9300 str r3, [sp, #0] - 8005552: 2310 movs r3, #16 - 8005554: 2100 movs r1, #0 - 8005556: 2064 movs r0, #100 ; 0x64 - 8005558: f7ff fbfe bl 8004d58 + 8006202: f107 020c add.w r2, r7, #12 + 8006206: f248 4330 movw r3, #33840 ; 0x8430 + 800620a: 9301 str r3, [sp, #4] + 800620c: f44f 4378 mov.w r3, #63488 ; 0xf800 + 8006210: 9300 str r3, [sp, #0] + 8006212: 2310 movs r3, #16 + 8006214: 2100 movs r1, #0 + 8006216: 2064 movs r0, #100 ; 0x64 + 8006218: f7ff fadc bl 80057d4 sprintf(str,"ADC_Y:%04d",y_adc); - 800555c: 887b ldrh r3, [r7, #2] - 800555e: 461a mov r2, r3 - 8005560: 1d3b adds r3, r7, #4 - 8005562: 49bd ldr r1, [pc, #756] ; (8005858 ) - 8005564: 4618 mov r0, r3 - 8005566: f002 fb61 bl 8007c2c + 800621c: 897b ldrh r3, [r7, #10] + 800621e: 461a mov r2, r3 + 8006220: f107 030c add.w r3, r7, #12 + 8006224: 49c2 ldr r1, [pc, #776] ; (8006530 ) + 8006226: 4618 mov r0, r3 + 8006228: f001 fbf6 bl 8007a18 LCD_ShowString(100, 16, str, 16, RED, GRAY); - 800556a: 1d3a adds r2, r7, #4 - 800556c: f248 4330 movw r3, #33840 ; 0x8430 - 8005570: 9301 str r3, [sp, #4] - 8005572: f44f 4378 mov.w r3, #63488 ; 0xf800 - 8005576: 9300 str r3, [sp, #0] - 8005578: 2310 movs r3, #16 - 800557a: 2110 movs r1, #16 - 800557c: 2064 movs r0, #100 ; 0x64 - 800557e: f7ff fbeb bl 8004d58 + 800622c: f107 020c add.w r2, r7, #12 + 8006230: f248 4330 movw r3, #33840 ; 0x8430 + 8006234: 9301 str r3, [sp, #4] + 8006236: f44f 4378 mov.w r3, #63488 ; 0xf800 + 800623a: 9300 str r3, [sp, #0] + 800623c: 2310 movs r3, #16 + 800623e: 2110 movs r1, #16 + 8006240: 2064 movs r0, #100 ; 0x64 + 8006242: f7ff fac7 bl 80057d4 //特效,半径开始收缩 if(HAL_GetTick()>ms100) - 8005582: f7fc fa9f bl 8001ac4 - 8005586: 4602 mov r2, r0 - 8005588: 6efb ldr r3, [r7, #108] ; 0x6c - 800558a: 4293 cmp r3, r2 - 800558c: d20d bcs.n 80055aa + 8006246: f7fb fc6f bl 8001b28 + 800624a: 4602 mov r2, r0 + 800624c: 6f7b ldr r3, [r7, #116] ; 0x74 + 800624e: 4293 cmp r3, r2 + 8006250: d20d bcs.n 800626e { ms100=HAL_GetTick()+100; - 800558e: f7fc fa99 bl 8001ac4 - 8005592: 4603 mov r3, r0 - 8005594: 3364 adds r3, #100 ; 0x64 - 8005596: 66fb str r3, [r7, #108] ; 0x6c + 8006252: f7fb fc69 bl 8001b28 + 8006256: 4603 mov r3, r0 + 8006258: 3364 adds r3, #100 ; 0x64 + 800625a: 677b str r3, [r7, #116] ; 0x74 if(r>0){r--;} - 8005598: f8b7 3084 ldrh.w r3, [r7, #132] ; 0x84 - 800559c: 2b00 cmp r3, #0 - 800559e: d004 beq.n 80055aa - 80055a0: f8b7 3084 ldrh.w r3, [r7, #132] ; 0x84 - 80055a4: 3b01 subs r3, #1 - 80055a6: f8a7 3084 strh.w r3, [r7, #132] ; 0x84 + 800625c: f8b7 308c ldrh.w r3, [r7, #140] ; 0x8c + 8006260: 2b00 cmp r3, #0 + 8006262: d004 beq.n 800626e + 8006264: f8b7 308c ldrh.w r3, [r7, #140] ; 0x8c + 8006268: 3b01 subs r3, #1 + 800626a: f8a7 308c strh.w r3, [r7, #140] ; 0x8c } } //步骤0,将点画在(30,30)此时半径为10 if(step==0) - 80055aa: f8b7 3086 ldrh.w r3, [r7, #134] ; 0x86 - 80055ae: 2b00 cmp r3, #0 - 80055b0: d129 bne.n 8005606 + 800626e: f8b7 308e ldrh.w r3, [r7, #142] ; 0x8e + 8006272: 2b00 cmp r3, #0 + 8006274: d12b bne.n 80062ce { TP_DrwaTrage(30,30,r); - 80055b2: f8b7 3084 ldrh.w r3, [r7, #132] ; 0x84 - 80055b6: 461a mov r2, r3 - 80055b8: 211e movs r1, #30 - 80055ba: 201e movs r0, #30 - 80055bc: f7ff ff14 bl 80053e8 + 8006276: f8b7 308c ldrh.w r3, [r7, #140] ; 0x8c + 800627a: 461a mov r2, r3 + 800627c: 211e movs r1, #30 + 800627e: 201e movs r0, #30 + 8006280: f7ff ff0a bl 8006098 if(r==0)//当半径收缩为0的时候 - 80055c0: f8b7 3084 ldrh.w r3, [r7, #132] ; 0x84 - 80055c4: 2b00 cmp r3, #0 - 80055c6: d11e bne.n 8005606 + 8006284: f8b7 308c ldrh.w r3, [r7, #140] ; 0x8c + 8006288: 2b00 cmp r3, #0 + 800628a: d120 bne.n 80062ce { //进入下一个步骤,缓存这个点的值,显示出来 step+=1; - 80055c8: f8b7 3086 ldrh.w r3, [r7, #134] ; 0x86 - 80055cc: 3301 adds r3, #1 - 80055ce: f8a7 3086 strh.w r3, [r7, #134] ; 0x86 + 800628c: f8b7 308e ldrh.w r3, [r7, #142] ; 0x8e + 8006290: 3301 adds r3, #1 + 8006292: f8a7 308e strh.w r3, [r7, #142] ; 0x8e y1=y_adc; - 80055d2: 887b ldrh r3, [r7, #2] - 80055d4: f8a7 3082 strh.w r3, [r7, #130] ; 0x82 + 8006296: 897b ldrh r3, [r7, #10] + 8006298: f8a7 308a strh.w r3, [r7, #138] ; 0x8a x1=x_adc; - 80055d8: 883b ldrh r3, [r7, #0] - 80055da: f8a7 307a strh.w r3, [r7, #122] ; 0x7a + 800629c: 893b ldrh r3, [r7, #8] + 800629e: f8a7 3082 strh.w r3, [r7, #130] ; 0x82 sprintf(str,"point_1 x:%d y:%d",x1,y1); - 80055de: f8b7 207a ldrh.w r2, [r7, #122] ; 0x7a - 80055e2: f8b7 3082 ldrh.w r3, [r7, #130] ; 0x82 - 80055e6: 1d38 adds r0, r7, #4 - 80055e8: 499c ldr r1, [pc, #624] ; (800585c ) - 80055ea: f002 fb1f bl 8007c2c + 80062a2: f8b7 2082 ldrh.w r2, [r7, #130] ; 0x82 + 80062a6: f8b7 308a ldrh.w r3, [r7, #138] ; 0x8a + 80062aa: f107 000c add.w r0, r7, #12 + 80062ae: 49a1 ldr r1, [pc, #644] ; (8006534 ) + 80062b0: f001 fbb2 bl 8007a18 LCD_ShowString(0,66,str,16,RED,RED); - 80055ee: 1d3a adds r2, r7, #4 - 80055f0: f44f 4378 mov.w r3, #63488 ; 0xf800 - 80055f4: 9301 str r3, [sp, #4] - 80055f6: f44f 4378 mov.w r3, #63488 ; 0xf800 - 80055fa: 9300 str r3, [sp, #0] - 80055fc: 2310 movs r3, #16 - 80055fe: 2142 movs r1, #66 ; 0x42 - 8005600: 2000 movs r0, #0 - 8005602: f7ff fba9 bl 8004d58 + 80062b4: f107 020c add.w r2, r7, #12 + 80062b8: f44f 4378 mov.w r3, #63488 ; 0xf800 + 80062bc: 9301 str r3, [sp, #4] + 80062be: f44f 4378 mov.w r3, #63488 ; 0xf800 + 80062c2: 9300 str r3, [sp, #0] + 80062c4: 2310 movs r3, #16 + 80062c6: 2142 movs r1, #66 ; 0x42 + 80062c8: 2000 movs r0, #0 + 80062ca: f7ff fa83 bl 80057d4 } } //步骤1,等待屏幕被松开,进入下一个步骤,重置半径 if(step==1) - 8005606: f8b7 3086 ldrh.w r3, [r7, #134] ; 0x86 - 800560a: 2b01 cmp r3, #1 - 800560c: d10f bne.n 800562e + 80062ce: f8b7 308e ldrh.w r3, [r7, #142] ; 0x8e + 80062d2: 2b01 cmp r3, #1 + 80062d4: d10f bne.n 80062f6 { if(TPEN==1) - 800560e: f44f 6180 mov.w r1, #1024 ; 0x400 - 8005612: 488f ldr r0, [pc, #572] ; (8005850 ) - 8005614: f7fc fd26 bl 8002064 - 8005618: 4603 mov r3, r0 - 800561a: 2b01 cmp r3, #1 - 800561c: d107 bne.n 800562e + 80062d6: f44f 6180 mov.w r1, #1024 ; 0x400 + 80062da: 4893 ldr r0, [pc, #588] ; (8006528 ) + 80062dc: f7fb fef4 bl 80020c8 + 80062e0: 4603 mov r3, r0 + 80062e2: 2b01 cmp r3, #1 + 80062e4: d107 bne.n 80062f6 { step+=1; - 800561e: f8b7 3086 ldrh.w r3, [r7, #134] ; 0x86 - 8005622: 3301 adds r3, #1 - 8005624: f8a7 3086 strh.w r3, [r7, #134] ; 0x86 + 80062e6: f8b7 308e ldrh.w r3, [r7, #142] ; 0x8e + 80062ea: 3301 adds r3, #1 + 80062ec: f8a7 308e strh.w r3, [r7, #142] ; 0x8e r=10; - 8005628: 230a movs r3, #10 - 800562a: f8a7 3084 strh.w r3, [r7, #132] ; 0x84 + 80062f0: 230a movs r3, #10 + 80062f2: f8a7 308c strh.w r3, [r7, #140] ; 0x8c } } //下面几个步骤和上面一样 if(step==2) - 800562e: f8b7 3086 ldrh.w r3, [r7, #134] ; 0x86 - 8005632: 2b02 cmp r3, #2 - 8005634: d12a bne.n 800568c + 80062f6: f8b7 308e ldrh.w r3, [r7, #142] ; 0x8e + 80062fa: 2b02 cmp r3, #2 + 80062fc: d12c bne.n 8006358 { TP_DrwaTrage(290,30,r); - 8005636: f8b7 3084 ldrh.w r3, [r7, #132] ; 0x84 - 800563a: 461a mov r2, r3 - 800563c: 211e movs r1, #30 - 800563e: f44f 7091 mov.w r0, #290 ; 0x122 - 8005642: f7ff fed1 bl 80053e8 + 80062fe: f8b7 308c ldrh.w r3, [r7, #140] ; 0x8c + 8006302: 461a mov r2, r3 + 8006304: 211e movs r1, #30 + 8006306: f44f 7091 mov.w r0, #290 ; 0x122 + 800630a: f7ff fec5 bl 8006098 if(r==0) - 8005646: f8b7 3084 ldrh.w r3, [r7, #132] ; 0x84 - 800564a: 2b00 cmp r3, #0 - 800564c: d11e bne.n 800568c + 800630e: f8b7 308c ldrh.w r3, [r7, #140] ; 0x8c + 8006312: 2b00 cmp r3, #0 + 8006314: d120 bne.n 8006358 { step+=1; - 800564e: f8b7 3086 ldrh.w r3, [r7, #134] ; 0x86 - 8005652: 3301 adds r3, #1 - 8005654: f8a7 3086 strh.w r3, [r7, #134] ; 0x86 + 8006316: f8b7 308e ldrh.w r3, [r7, #142] ; 0x8e + 800631a: 3301 adds r3, #1 + 800631c: f8a7 308e strh.w r3, [r7, #142] ; 0x8e y2=y_adc; - 8005658: 887b ldrh r3, [r7, #2] - 800565a: f8a7 3080 strh.w r3, [r7, #128] ; 0x80 + 8006320: 897b ldrh r3, [r7, #10] + 8006322: f8a7 3088 strh.w r3, [r7, #136] ; 0x88 x2=x_adc; - 800565e: 883b ldrh r3, [r7, #0] - 8005660: f8a7 3078 strh.w r3, [r7, #120] ; 0x78 + 8006326: 893b ldrh r3, [r7, #8] + 8006328: f8a7 3080 strh.w r3, [r7, #128] ; 0x80 sprintf(str,"point_2 x:%d y:%d",x2,y2); - 8005664: f8b7 2078 ldrh.w r2, [r7, #120] ; 0x78 - 8005668: f8b7 3080 ldrh.w r3, [r7, #128] ; 0x80 - 800566c: 1d38 adds r0, r7, #4 - 800566e: 497c ldr r1, [pc, #496] ; (8005860 ) - 8005670: f002 fadc bl 8007c2c + 800632c: f8b7 2080 ldrh.w r2, [r7, #128] ; 0x80 + 8006330: f8b7 3088 ldrh.w r3, [r7, #136] ; 0x88 + 8006334: f107 000c add.w r0, r7, #12 + 8006338: 497f ldr r1, [pc, #508] ; (8006538 ) + 800633a: f001 fb6d bl 8007a18 LCD_ShowString(0,66+16,str,16,RED,RED); - 8005674: 1d3a adds r2, r7, #4 - 8005676: f44f 4378 mov.w r3, #63488 ; 0xf800 - 800567a: 9301 str r3, [sp, #4] - 800567c: f44f 4378 mov.w r3, #63488 ; 0xf800 - 8005680: 9300 str r3, [sp, #0] - 8005682: 2310 movs r3, #16 - 8005684: 2152 movs r1, #82 ; 0x52 - 8005686: 2000 movs r0, #0 - 8005688: f7ff fb66 bl 8004d58 + 800633e: f107 020c add.w r2, r7, #12 + 8006342: f44f 4378 mov.w r3, #63488 ; 0xf800 + 8006346: 9301 str r3, [sp, #4] + 8006348: f44f 4378 mov.w r3, #63488 ; 0xf800 + 800634c: 9300 str r3, [sp, #0] + 800634e: 2310 movs r3, #16 + 8006350: 2152 movs r1, #82 ; 0x52 + 8006352: 2000 movs r0, #0 + 8006354: f7ff fa3e bl 80057d4 } } if(step==3) - 800568c: f8b7 3086 ldrh.w r3, [r7, #134] ; 0x86 - 8005690: 2b03 cmp r3, #3 - 8005692: d10f bne.n 80056b4 + 8006358: f8b7 308e ldrh.w r3, [r7, #142] ; 0x8e + 800635c: 2b03 cmp r3, #3 + 800635e: d10f bne.n 8006380 { if(TPEN==1) - 8005694: f44f 6180 mov.w r1, #1024 ; 0x400 - 8005698: 486d ldr r0, [pc, #436] ; (8005850 ) - 800569a: f7fc fce3 bl 8002064 - 800569e: 4603 mov r3, r0 - 80056a0: 2b01 cmp r3, #1 - 80056a2: d107 bne.n 80056b4 + 8006360: f44f 6180 mov.w r1, #1024 ; 0x400 + 8006364: 4870 ldr r0, [pc, #448] ; (8006528 ) + 8006366: f7fb feaf bl 80020c8 + 800636a: 4603 mov r3, r0 + 800636c: 2b01 cmp r3, #1 + 800636e: d107 bne.n 8006380 { step+=1; - 80056a4: f8b7 3086 ldrh.w r3, [r7, #134] ; 0x86 - 80056a8: 3301 adds r3, #1 - 80056aa: f8a7 3086 strh.w r3, [r7, #134] ; 0x86 + 8006370: f8b7 308e ldrh.w r3, [r7, #142] ; 0x8e + 8006374: 3301 adds r3, #1 + 8006376: f8a7 308e strh.w r3, [r7, #142] ; 0x8e r=10; - 80056ae: 230a movs r3, #10 - 80056b0: f8a7 3084 strh.w r3, [r7, #132] ; 0x84 + 800637a: 230a movs r3, #10 + 800637c: f8a7 308c strh.w r3, [r7, #140] ; 0x8c } } if(step==4) - 80056b4: f8b7 3086 ldrh.w r3, [r7, #134] ; 0x86 - 80056b8: 2b04 cmp r3, #4 - 80056ba: d129 bne.n 8005710 + 8006380: f8b7 308e ldrh.w r3, [r7, #142] ; 0x8e + 8006384: 2b04 cmp r3, #4 + 8006386: d12b bne.n 80063e0 { TP_DrwaTrage(30,210,r); - 80056bc: f8b7 3084 ldrh.w r3, [r7, #132] ; 0x84 - 80056c0: 461a mov r2, r3 - 80056c2: 21d2 movs r1, #210 ; 0xd2 - 80056c4: 201e movs r0, #30 - 80056c6: f7ff fe8f bl 80053e8 + 8006388: f8b7 308c ldrh.w r3, [r7, #140] ; 0x8c + 800638c: 461a mov r2, r3 + 800638e: 21d2 movs r1, #210 ; 0xd2 + 8006390: 201e movs r0, #30 + 8006392: f7ff fe81 bl 8006098 if(r==0) - 80056ca: f8b7 3084 ldrh.w r3, [r7, #132] ; 0x84 - 80056ce: 2b00 cmp r3, #0 - 80056d0: d11e bne.n 8005710 + 8006396: f8b7 308c ldrh.w r3, [r7, #140] ; 0x8c + 800639a: 2b00 cmp r3, #0 + 800639c: d120 bne.n 80063e0 { step+=1; - 80056d2: f8b7 3086 ldrh.w r3, [r7, #134] ; 0x86 - 80056d6: 3301 adds r3, #1 - 80056d8: f8a7 3086 strh.w r3, [r7, #134] ; 0x86 + 800639e: f8b7 308e ldrh.w r3, [r7, #142] ; 0x8e + 80063a2: 3301 adds r3, #1 + 80063a4: f8a7 308e strh.w r3, [r7, #142] ; 0x8e y3=y_adc; - 80056dc: 887b ldrh r3, [r7, #2] - 80056de: f8a7 307e strh.w r3, [r7, #126] ; 0x7e + 80063a8: 897b ldrh r3, [r7, #10] + 80063aa: f8a7 3086 strh.w r3, [r7, #134] ; 0x86 x3=x_adc; - 80056e2: 883b ldrh r3, [r7, #0] - 80056e4: f8a7 3076 strh.w r3, [r7, #118] ; 0x76 + 80063ae: 893b ldrh r3, [r7, #8] + 80063b0: f8a7 307e strh.w r3, [r7, #126] ; 0x7e sprintf(str,"point_3 x:%d y:%d",x3,y3); - 80056e8: f8b7 2076 ldrh.w r2, [r7, #118] ; 0x76 - 80056ec: f8b7 307e ldrh.w r3, [r7, #126] ; 0x7e - 80056f0: 1d38 adds r0, r7, #4 - 80056f2: 495c ldr r1, [pc, #368] ; (8005864 ) - 80056f4: f002 fa9a bl 8007c2c + 80063b4: f8b7 207e ldrh.w r2, [r7, #126] ; 0x7e + 80063b8: f8b7 3086 ldrh.w r3, [r7, #134] ; 0x86 + 80063bc: f107 000c add.w r0, r7, #12 + 80063c0: 495e ldr r1, [pc, #376] ; (800653c ) + 80063c2: f001 fb29 bl 8007a18 LCD_ShowString(0,66+16+16,str,16,RED,RED); - 80056f8: 1d3a adds r2, r7, #4 - 80056fa: f44f 4378 mov.w r3, #63488 ; 0xf800 - 80056fe: 9301 str r3, [sp, #4] - 8005700: f44f 4378 mov.w r3, #63488 ; 0xf800 - 8005704: 9300 str r3, [sp, #0] - 8005706: 2310 movs r3, #16 - 8005708: 2162 movs r1, #98 ; 0x62 - 800570a: 2000 movs r0, #0 - 800570c: f7ff fb24 bl 8004d58 + 80063c6: f107 020c add.w r2, r7, #12 + 80063ca: f44f 4378 mov.w r3, #63488 ; 0xf800 + 80063ce: 9301 str r3, [sp, #4] + 80063d0: f44f 4378 mov.w r3, #63488 ; 0xf800 + 80063d4: 9300 str r3, [sp, #0] + 80063d6: 2310 movs r3, #16 + 80063d8: 2162 movs r1, #98 ; 0x62 + 80063da: 2000 movs r0, #0 + 80063dc: f7ff f9fa bl 80057d4 } } if(step==5) - 8005710: f8b7 3086 ldrh.w r3, [r7, #134] ; 0x86 - 8005714: 2b05 cmp r3, #5 - 8005716: d10f bne.n 8005738 + 80063e0: f8b7 308e ldrh.w r3, [r7, #142] ; 0x8e + 80063e4: 2b05 cmp r3, #5 + 80063e6: d10f bne.n 8006408 { if(TPEN==1) - 8005718: f44f 6180 mov.w r1, #1024 ; 0x400 - 800571c: 484c ldr r0, [pc, #304] ; (8005850 ) - 800571e: f7fc fca1 bl 8002064 - 8005722: 4603 mov r3, r0 - 8005724: 2b01 cmp r3, #1 - 8005726: d107 bne.n 8005738 + 80063e8: f44f 6180 mov.w r1, #1024 ; 0x400 + 80063ec: 484e ldr r0, [pc, #312] ; (8006528 ) + 80063ee: f7fb fe6b bl 80020c8 + 80063f2: 4603 mov r3, r0 + 80063f4: 2b01 cmp r3, #1 + 80063f6: d107 bne.n 8006408 { step+=1; - 8005728: f8b7 3086 ldrh.w r3, [r7, #134] ; 0x86 - 800572c: 3301 adds r3, #1 - 800572e: f8a7 3086 strh.w r3, [r7, #134] ; 0x86 + 80063f8: f8b7 308e ldrh.w r3, [r7, #142] ; 0x8e + 80063fc: 3301 adds r3, #1 + 80063fe: f8a7 308e strh.w r3, [r7, #142] ; 0x8e r=10; - 8005732: 230a movs r3, #10 - 8005734: f8a7 3084 strh.w r3, [r7, #132] ; 0x84 + 8006402: 230a movs r3, #10 + 8006404: f8a7 308c strh.w r3, [r7, #140] ; 0x8c } } if(step==6) - 8005738: f8b7 3086 ldrh.w r3, [r7, #134] ; 0x86 - 800573c: 2b06 cmp r3, #6 - 800573e: d12a bne.n 8005796 + 8006408: f8b7 308e ldrh.w r3, [r7, #142] ; 0x8e + 800640c: 2b06 cmp r3, #6 + 800640e: d12c bne.n 800646a { TP_DrwaTrage(290,210,r); - 8005740: f8b7 3084 ldrh.w r3, [r7, #132] ; 0x84 - 8005744: 461a mov r2, r3 - 8005746: 21d2 movs r1, #210 ; 0xd2 - 8005748: f44f 7091 mov.w r0, #290 ; 0x122 - 800574c: f7ff fe4c bl 80053e8 + 8006410: f8b7 308c ldrh.w r3, [r7, #140] ; 0x8c + 8006414: 461a mov r2, r3 + 8006416: 21d2 movs r1, #210 ; 0xd2 + 8006418: f44f 7091 mov.w r0, #290 ; 0x122 + 800641c: f7ff fe3c bl 8006098 if(r==0) - 8005750: f8b7 3084 ldrh.w r3, [r7, #132] ; 0x84 - 8005754: 2b00 cmp r3, #0 - 8005756: d11e bne.n 8005796 + 8006420: f8b7 308c ldrh.w r3, [r7, #140] ; 0x8c + 8006424: 2b00 cmp r3, #0 + 8006426: d120 bne.n 800646a { step+=1; - 8005758: f8b7 3086 ldrh.w r3, [r7, #134] ; 0x86 - 800575c: 3301 adds r3, #1 - 800575e: f8a7 3086 strh.w r3, [r7, #134] ; 0x86 + 8006428: f8b7 308e ldrh.w r3, [r7, #142] ; 0x8e + 800642c: 3301 adds r3, #1 + 800642e: f8a7 308e strh.w r3, [r7, #142] ; 0x8e y4=y_adc; - 8005762: 887b ldrh r3, [r7, #2] - 8005764: f8a7 307c strh.w r3, [r7, #124] ; 0x7c + 8006432: 897b ldrh r3, [r7, #10] + 8006434: f8a7 3084 strh.w r3, [r7, #132] ; 0x84 x4=x_adc; - 8005768: 883b ldrh r3, [r7, #0] - 800576a: f8a7 3074 strh.w r3, [r7, #116] ; 0x74 + 8006438: 893b ldrh r3, [r7, #8] + 800643a: f8a7 307c strh.w r3, [r7, #124] ; 0x7c sprintf(str,"point_4 x:%d y:%d",x4,y4); - 800576e: f8b7 2074 ldrh.w r2, [r7, #116] ; 0x74 - 8005772: f8b7 307c ldrh.w r3, [r7, #124] ; 0x7c - 8005776: 1d38 adds r0, r7, #4 - 8005778: 493b ldr r1, [pc, #236] ; (8005868 ) - 800577a: f002 fa57 bl 8007c2c + 800643e: f8b7 207c ldrh.w r2, [r7, #124] ; 0x7c + 8006442: f8b7 3084 ldrh.w r3, [r7, #132] ; 0x84 + 8006446: f107 000c add.w r0, r7, #12 + 800644a: 493d ldr r1, [pc, #244] ; (8006540 ) + 800644c: f001 fae4 bl 8007a18 LCD_ShowString(0,66+16+16+16,str,16,RED,RED); - 800577e: 1d3a adds r2, r7, #4 - 8005780: f44f 4378 mov.w r3, #63488 ; 0xf800 - 8005784: 9301 str r3, [sp, #4] - 8005786: f44f 4378 mov.w r3, #63488 ; 0xf800 - 800578a: 9300 str r3, [sp, #0] - 800578c: 2310 movs r3, #16 - 800578e: 2172 movs r1, #114 ; 0x72 - 8005790: 2000 movs r0, #0 - 8005792: f7ff fae1 bl 8004d58 + 8006450: f107 020c add.w r2, r7, #12 + 8006454: f44f 4378 mov.w r3, #63488 ; 0xf800 + 8006458: 9301 str r3, [sp, #4] + 800645a: f44f 4378 mov.w r3, #63488 ; 0xf800 + 800645e: 9300 str r3, [sp, #0] + 8006460: 2310 movs r3, #16 + 8006462: 2172 movs r1, #114 ; 0x72 + 8006464: 2000 movs r0, #0 + 8006466: f7ff f9b5 bl 80057d4 } } if(step==7) - 8005796: f8b7 3086 ldrh.w r3, [r7, #134] ; 0x86 - 800579a: 2b07 cmp r3, #7 - 800579c: d10f bne.n 80057be + 800646a: f8b7 308e ldrh.w r3, [r7, #142] ; 0x8e + 800646e: 2b07 cmp r3, #7 + 8006470: d10f bne.n 8006492 { if(TPEN==1) - 800579e: f44f 6180 mov.w r1, #1024 ; 0x400 - 80057a2: 482b ldr r0, [pc, #172] ; (8005850 ) - 80057a4: f7fc fc5e bl 8002064 - 80057a8: 4603 mov r3, r0 - 80057aa: 2b01 cmp r3, #1 - 80057ac: d107 bne.n 80057be + 8006472: f44f 6180 mov.w r1, #1024 ; 0x400 + 8006476: 482c ldr r0, [pc, #176] ; (8006528 ) + 8006478: f7fb fe26 bl 80020c8 + 800647c: 4603 mov r3, r0 + 800647e: 2b01 cmp r3, #1 + 8006480: d107 bne.n 8006492 { step+=1; - 80057ae: f8b7 3086 ldrh.w r3, [r7, #134] ; 0x86 - 80057b2: 3301 adds r3, #1 - 80057b4: f8a7 3086 strh.w r3, [r7, #134] ; 0x86 + 8006482: f8b7 308e ldrh.w r3, [r7, #142] ; 0x8e + 8006486: 3301 adds r3, #1 + 8006488: f8a7 308e strh.w r3, [r7, #142] ; 0x8e r=10; - 80057b8: 230a movs r3, #10 - 80057ba: f8a7 3084 strh.w r3, [r7, #132] ; 0x84 + 800648c: 230a movs r3, #10 + 800648e: f8a7 308c strh.w r3, [r7, #140] ; 0x8c } } //当4个点读取完,开始计算关系 if(step==8) - 80057be: f8b7 3086 ldrh.w r3, [r7, #134] ; 0x86 - 80057c2: 2b08 cmp r3, #8 - 80057c4: f040 811a bne.w 80059fc + 8006492: f8b7 308e ldrh.w r3, [r7, #142] ; 0x8e + 8006496: 2b08 cmp r3, #8 + 8006498: f040 8120 bne.w 80066dc { //其实只需要两个点就能校准,通过取平均值获得xy的长边和短边 xd=((x1+x3)/2); - 80057c8: f8b7 207a ldrh.w r2, [r7, #122] ; 0x7a - 80057cc: f8b7 3076 ldrh.w r3, [r7, #118] ; 0x76 - 80057d0: 4413 add r3, r2 - 80057d2: 0fda lsrs r2, r3, #31 - 80057d4: 4413 add r3, r2 - 80057d6: 105b asrs r3, r3, #1 - 80057d8: 66bb str r3, [r7, #104] ; 0x68 + 800649c: f8b7 2082 ldrh.w r2, [r7, #130] ; 0x82 + 80064a0: f8b7 307e ldrh.w r3, [r7, #126] ; 0x7e + 80064a4: 4413 add r3, r2 + 80064a6: 0fda lsrs r2, r3, #31 + 80064a8: 4413 add r3, r2 + 80064aa: 105b asrs r3, r3, #1 + 80064ac: 673b str r3, [r7, #112] ; 0x70 xl=((x2+x4)/2); - 80057da: f8b7 2078 ldrh.w r2, [r7, #120] ; 0x78 - 80057de: f8b7 3074 ldrh.w r3, [r7, #116] ; 0x74 - 80057e2: 4413 add r3, r2 - 80057e4: 0fda lsrs r2, r3, #31 - 80057e6: 4413 add r3, r2 - 80057e8: 105b asrs r3, r3, #1 - 80057ea: 667b str r3, [r7, #100] ; 0x64 + 80064ae: f8b7 2080 ldrh.w r2, [r7, #128] ; 0x80 + 80064b2: f8b7 307c ldrh.w r3, [r7, #124] ; 0x7c + 80064b6: 4413 add r3, r2 + 80064b8: 0fda lsrs r2, r3, #31 + 80064ba: 4413 add r3, r2 + 80064bc: 105b asrs r3, r3, #1 + 80064be: 66fb str r3, [r7, #108] ; 0x6c yd=((y1+y2)/2); - 80057ec: f8b7 2082 ldrh.w r2, [r7, #130] ; 0x82 - 80057f0: f8b7 3080 ldrh.w r3, [r7, #128] ; 0x80 - 80057f4: 4413 add r3, r2 - 80057f6: 0fda lsrs r2, r3, #31 - 80057f8: 4413 add r3, r2 - 80057fa: 105b asrs r3, r3, #1 - 80057fc: 663b str r3, [r7, #96] ; 0x60 + 80064c0: f8b7 208a ldrh.w r2, [r7, #138] ; 0x8a + 80064c4: f8b7 3088 ldrh.w r3, [r7, #136] ; 0x88 + 80064c8: 4413 add r3, r2 + 80064ca: 0fda lsrs r2, r3, #31 + 80064cc: 4413 add r3, r2 + 80064ce: 105b asrs r3, r3, #1 + 80064d0: 66bb str r3, [r7, #104] ; 0x68 yl=((y3+y4)/2); - 80057fe: f8b7 207e ldrh.w r2, [r7, #126] ; 0x7e - 8005802: f8b7 307c ldrh.w r3, [r7, #124] ; 0x7c - 8005806: 4413 add r3, r2 - 8005808: 0fda lsrs r2, r3, #31 - 800580a: 4413 add r3, r2 - 800580c: 105b asrs r3, r3, #1 - 800580e: 65fb str r3, [r7, #92] ; 0x5c + 80064d2: f8b7 2086 ldrh.w r2, [r7, #134] ; 0x86 + 80064d6: f8b7 3084 ldrh.w r3, [r7, #132] ; 0x84 + 80064da: 4413 add r3, r2 + 80064dc: 0fda lsrs r2, r3, #31 + 80064de: 4413 add r3, r2 + 80064e0: 105b asrs r3, r3, #1 + 80064e2: 667b str r3, [r7, #100] ; 0x64 //长边减去短边可以再获得一个点 x5=xl-xd; - 8005810: 6e7a ldr r2, [r7, #100] ; 0x64 - 8005812: 6ebb ldr r3, [r7, #104] ; 0x68 - 8005814: 1ad3 subs r3, r2, r3 - 8005816: 65bb str r3, [r7, #88] ; 0x58 + 80064e4: 6efa ldr r2, [r7, #108] ; 0x6c + 80064e6: 6f3b ldr r3, [r7, #112] ; 0x70 + 80064e8: 1ad3 subs r3, r2, r3 + 80064ea: 663b str r3, [r7, #96] ; 0x60 y5=yl-yd; - 8005818: 6dfa ldr r2, [r7, #92] ; 0x5c - 800581a: 6e3b ldr r3, [r7, #96] ; 0x60 - 800581c: 1ad3 subs r3, r2, r3 - 800581e: 657b str r3, [r7, #84] ; 0x54 + 80064ec: 6e7a ldr r2, [r7, #100] ; 0x64 + 80064ee: 6ebb ldr r3, [r7, #104] ; 0x68 + 80064f0: 1ad3 subs r3, r2, r3 + 80064f2: 65fb str r3, [r7, #92] ; 0x5c //这个点如果是负数,肯定有错,可能是xy搞反了 if(x5<0||y5<0) - 8005820: 6dbb ldr r3, [r7, #88] ; 0x58 - 8005822: 2b00 cmp r3, #0 - 8005824: db02 blt.n 800582c - 8005826: 6d7b ldr r3, [r7, #84] ; 0x54 - 8005828: 2b00 cmp r3, #0 - 800582a: da21 bge.n 8005870 + 80064f4: 6e3b ldr r3, [r7, #96] ; 0x60 + 80064f6: 2b00 cmp r3, #0 + 80064f8: db02 blt.n 8006500 + 80064fa: 6dfb ldr r3, [r7, #92] ; 0x5c + 80064fc: 2b00 cmp r3, #0 + 80064fe: da23 bge.n 8006548 { //显示error sprintf(str,"ERROR"); - 800582c: 1d3b adds r3, r7, #4 - 800582e: 490f ldr r1, [pc, #60] ; (800586c ) - 8005830: 4618 mov r0, r3 - 8005832: f002 f9fb bl 8007c2c + 8006500: f107 030c add.w r3, r7, #12 + 8006504: 490f ldr r1, [pc, #60] ; (8006544 ) + 8006506: 4618 mov r0, r3 + 8006508: f001 fa86 bl 8007a18 LCD_ShowString(0,66+16+16+16+16,str,16,RED, GRAY); - 8005836: 1d3a adds r2, r7, #4 - 8005838: f248 4330 movw r3, #33840 ; 0x8430 - 800583c: 9301 str r3, [sp, #4] - 800583e: f44f 4378 mov.w r3, #63488 ; 0xf800 - 8005842: 9300 str r3, [sp, #0] - 8005844: 2310 movs r3, #16 - 8005846: 2182 movs r1, #130 ; 0x82 - 8005848: 2000 movs r0, #0 - 800584a: f7ff fa85 bl 8004d58 + 800650c: f107 020c add.w r2, r7, #12 + 8006510: f248 4330 movw r3, #33840 ; 0x8430 + 8006514: 9301 str r3, [sp, #4] + 8006516: f44f 4378 mov.w r3, #63488 ; 0xf800 + 800651a: 9300 str r3, [sp, #0] + 800651c: 2310 movs r3, #16 + 800651e: 2182 movs r1, #130 ; 0x82 + 8006520: 2000 movs r0, #0 + 8006522: f7ff f957 bl 80057d4 { - 800584e: e0cb b.n 80059e8 - 8005850: 40011c00 .word 0x40011c00 - 8005854: 0800a04c .word 0x0800a04c - 8005858: 0800a058 .word 0x0800a058 - 800585c: 0800a064 .word 0x0800a064 - 8005860: 0800a078 .word 0x0800a078 - 8005864: 0800a08c .word 0x0800a08c - 8005868: 0800a0a0 .word 0x0800a0a0 - 800586c: 0800a0b4 .word 0x0800a0b4 + 8006526: e0cf b.n 80066c8 + 8006528: 40011c00 .word 0x40011c00 + 800652c: 08009d54 .word 0x08009d54 + 8006530: 08009d60 .word 0x08009d60 + 8006534: 08009d6c .word 0x08009d6c + 8006538: 08009d80 .word 0x08009d80 + 800653c: 08009d94 .word 0x08009d94 + 8006540: 08009da8 .word 0x08009da8 + 8006544: 08009dbc .word 0x08009dbc }else { //计算关系倍率 //ad的长边减去短边再除去实际屏幕像素的长边减短边(260=320-30-30,180=240-30-30) acc_x=x5/260.0; - 8005870: 6db8 ldr r0, [r7, #88] ; 0x58 - 8005872: f7fa fe33 bl 80004dc <__aeabi_i2d> - 8005876: f04f 0200 mov.w r2, #0 - 800587a: 4b66 ldr r3, [pc, #408] ; (8005a14 ) - 800587c: f7fa ffc2 bl 8000804 <__aeabi_ddiv> - 8005880: 4602 mov r2, r0 - 8005882: 460b mov r3, r1 - 8005884: 4610 mov r0, r2 - 8005886: 4619 mov r1, r3 - 8005888: f7fb f96a bl 8000b60 <__aeabi_d2f> - 800588c: 4603 mov r3, r0 - 800588e: 653b str r3, [r7, #80] ; 0x50 + 8006548: 6e38 ldr r0, [r7, #96] ; 0x60 + 800654a: f7f9 ffc7 bl 80004dc <__aeabi_i2d> + 800654e: f04f 0200 mov.w r2, #0 + 8006552: 4b68 ldr r3, [pc, #416] ; (80066f4 ) + 8006554: f7fa f956 bl 8000804 <__aeabi_ddiv> + 8006558: 4602 mov r2, r0 + 800655a: 460b mov r3, r1 + 800655c: 4610 mov r0, r2 + 800655e: 4619 mov r1, r3 + 8006560: f7fa fafe bl 8000b60 <__aeabi_d2f> + 8006564: 4603 mov r3, r0 + 8006566: 65bb str r3, [r7, #88] ; 0x58 acc_y=y5/180.0; - 8005890: 6d78 ldr r0, [r7, #84] ; 0x54 - 8005892: f7fa fe23 bl 80004dc <__aeabi_i2d> - 8005896: f04f 0200 mov.w r2, #0 - 800589a: 4b5f ldr r3, [pc, #380] ; (8005a18 ) - 800589c: f7fa ffb2 bl 8000804 <__aeabi_ddiv> - 80058a0: 4602 mov r2, r0 - 80058a2: 460b mov r3, r1 - 80058a4: 4610 mov r0, r2 - 80058a6: 4619 mov r1, r3 - 80058a8: f7fb f95a bl 8000b60 <__aeabi_d2f> - 80058ac: 4603 mov r3, r0 - 80058ae: 64fb str r3, [r7, #76] ; 0x4c + 8006568: 6df8 ldr r0, [r7, #92] ; 0x5c + 800656a: f7f9 ffb7 bl 80004dc <__aeabi_i2d> + 800656e: f04f 0200 mov.w r2, #0 + 8006572: 4b61 ldr r3, [pc, #388] ; (80066f8 ) + 8006574: f7fa f946 bl 8000804 <__aeabi_ddiv> + 8006578: 4602 mov r2, r0 + 800657a: 460b mov r3, r1 + 800657c: 4610 mov r0, r2 + 800657e: 4619 mov r1, r3 + 8006580: f7fa faee bl 8000b60 <__aeabi_d2f> + 8006584: 4603 mov r3, r0 + 8006586: 657b str r3, [r7, #84] ; 0x54 //验证倍率,将实际值减去验证值就等于误差值,因为有两个点,所以计算了两个误差后求了平均值 offset_x=(((xd/acc_x)-30)+((xl/acc_x)-290))/2; - 80058b0: 6eb8 ldr r0, [r7, #104] ; 0x68 - 80058b2: f7fb fa5f bl 8000d74 <__aeabi_i2f> - 80058b6: 4603 mov r3, r0 - 80058b8: 6d39 ldr r1, [r7, #80] ; 0x50 - 80058ba: 4618 mov r0, r3 - 80058bc: f7fb fb62 bl 8000f84 <__aeabi_fdiv> - 80058c0: 4603 mov r3, r0 - 80058c2: 4956 ldr r1, [pc, #344] ; (8005a1c ) - 80058c4: 4618 mov r0, r3 - 80058c6: f7fb f99f bl 8000c08 <__aeabi_fsub> - 80058ca: 4603 mov r3, r0 - 80058cc: 461c mov r4, r3 - 80058ce: 6e78 ldr r0, [r7, #100] ; 0x64 - 80058d0: f7fb fa50 bl 8000d74 <__aeabi_i2f> - 80058d4: 4603 mov r3, r0 - 80058d6: 6d39 ldr r1, [r7, #80] ; 0x50 - 80058d8: 4618 mov r0, r3 - 80058da: f7fb fb53 bl 8000f84 <__aeabi_fdiv> - 80058de: 4603 mov r3, r0 - 80058e0: 494f ldr r1, [pc, #316] ; (8005a20 ) - 80058e2: 4618 mov r0, r3 - 80058e4: f7fb f990 bl 8000c08 <__aeabi_fsub> - 80058e8: 4603 mov r3, r0 - 80058ea: 4619 mov r1, r3 - 80058ec: 4620 mov r0, r4 - 80058ee: f7fb f98d bl 8000c0c <__addsf3> - 80058f2: 4603 mov r3, r0 - 80058f4: f04f 4180 mov.w r1, #1073741824 ; 0x40000000 - 80058f8: 4618 mov r0, r3 - 80058fa: f7fb fb43 bl 8000f84 <__aeabi_fdiv> - 80058fe: 4603 mov r3, r0 - 8005900: 4618 mov r0, r3 - 8005902: f7fb fc67 bl 80011d4 <__aeabi_f2iz> - 8005906: 4603 mov r3, r0 - 8005908: 64bb str r3, [r7, #72] ; 0x48 + 8006588: 6f38 ldr r0, [r7, #112] ; 0x70 + 800658a: f7fa fbf3 bl 8000d74 <__aeabi_i2f> + 800658e: 4603 mov r3, r0 + 8006590: 6db9 ldr r1, [r7, #88] ; 0x58 + 8006592: 4618 mov r0, r3 + 8006594: f7fa fcf6 bl 8000f84 <__aeabi_fdiv> + 8006598: 4603 mov r3, r0 + 800659a: 4958 ldr r1, [pc, #352] ; (80066fc ) + 800659c: 4618 mov r0, r3 + 800659e: f7fa fb33 bl 8000c08 <__aeabi_fsub> + 80065a2: 4603 mov r3, r0 + 80065a4: 461c mov r4, r3 + 80065a6: 6ef8 ldr r0, [r7, #108] ; 0x6c + 80065a8: f7fa fbe4 bl 8000d74 <__aeabi_i2f> + 80065ac: 4603 mov r3, r0 + 80065ae: 6db9 ldr r1, [r7, #88] ; 0x58 + 80065b0: 4618 mov r0, r3 + 80065b2: f7fa fce7 bl 8000f84 <__aeabi_fdiv> + 80065b6: 4603 mov r3, r0 + 80065b8: 4951 ldr r1, [pc, #324] ; (8006700 ) + 80065ba: 4618 mov r0, r3 + 80065bc: f7fa fb24 bl 8000c08 <__aeabi_fsub> + 80065c0: 4603 mov r3, r0 + 80065c2: 4619 mov r1, r3 + 80065c4: 4620 mov r0, r4 + 80065c6: f7fa fb21 bl 8000c0c <__addsf3> + 80065ca: 4603 mov r3, r0 + 80065cc: f04f 4180 mov.w r1, #1073741824 ; 0x40000000 + 80065d0: 4618 mov r0, r3 + 80065d2: f7fa fcd7 bl 8000f84 <__aeabi_fdiv> + 80065d6: 4603 mov r3, r0 + 80065d8: 4618 mov r0, r3 + 80065da: f7fa fd6f bl 80010bc <__aeabi_f2iz> + 80065de: 4603 mov r3, r0 + 80065e0: 653b str r3, [r7, #80] ; 0x50 offset_y=(((yd/acc_y)-30)+((yl/acc_y)-210))/2; - 800590a: 6e38 ldr r0, [r7, #96] ; 0x60 - 800590c: f7fb fa32 bl 8000d74 <__aeabi_i2f> - 8005910: 4603 mov r3, r0 - 8005912: 6cf9 ldr r1, [r7, #76] ; 0x4c - 8005914: 4618 mov r0, r3 - 8005916: f7fb fb35 bl 8000f84 <__aeabi_fdiv> - 800591a: 4603 mov r3, r0 - 800591c: 493f ldr r1, [pc, #252] ; (8005a1c ) - 800591e: 4618 mov r0, r3 - 8005920: f7fb f972 bl 8000c08 <__aeabi_fsub> - 8005924: 4603 mov r3, r0 - 8005926: 461c mov r4, r3 - 8005928: 6df8 ldr r0, [r7, #92] ; 0x5c - 800592a: f7fb fa23 bl 8000d74 <__aeabi_i2f> - 800592e: 4603 mov r3, r0 - 8005930: 6cf9 ldr r1, [r7, #76] ; 0x4c - 8005932: 4618 mov r0, r3 - 8005934: f7fb fb26 bl 8000f84 <__aeabi_fdiv> - 8005938: 4603 mov r3, r0 - 800593a: 493a ldr r1, [pc, #232] ; (8005a24 ) - 800593c: 4618 mov r0, r3 - 800593e: f7fb f963 bl 8000c08 <__aeabi_fsub> - 8005942: 4603 mov r3, r0 - 8005944: 4619 mov r1, r3 - 8005946: 4620 mov r0, r4 - 8005948: f7fb f960 bl 8000c0c <__addsf3> - 800594c: 4603 mov r3, r0 - 800594e: f04f 4180 mov.w r1, #1073741824 ; 0x40000000 - 8005952: 4618 mov r0, r3 - 8005954: f7fb fb16 bl 8000f84 <__aeabi_fdiv> - 8005958: 4603 mov r3, r0 - 800595a: 4618 mov r0, r3 - 800595c: f7fb fc3a bl 80011d4 <__aeabi_f2iz> - 8005960: 4603 mov r3, r0 - 8005962: 647b str r3, [r7, #68] ; 0x44 + 80065e2: 6eb8 ldr r0, [r7, #104] ; 0x68 + 80065e4: f7fa fbc6 bl 8000d74 <__aeabi_i2f> + 80065e8: 4603 mov r3, r0 + 80065ea: 6d79 ldr r1, [r7, #84] ; 0x54 + 80065ec: 4618 mov r0, r3 + 80065ee: f7fa fcc9 bl 8000f84 <__aeabi_fdiv> + 80065f2: 4603 mov r3, r0 + 80065f4: 4941 ldr r1, [pc, #260] ; (80066fc ) + 80065f6: 4618 mov r0, r3 + 80065f8: f7fa fb06 bl 8000c08 <__aeabi_fsub> + 80065fc: 4603 mov r3, r0 + 80065fe: 461c mov r4, r3 + 8006600: 6e78 ldr r0, [r7, #100] ; 0x64 + 8006602: f7fa fbb7 bl 8000d74 <__aeabi_i2f> + 8006606: 4603 mov r3, r0 + 8006608: 6d79 ldr r1, [r7, #84] ; 0x54 + 800660a: 4618 mov r0, r3 + 800660c: f7fa fcba bl 8000f84 <__aeabi_fdiv> + 8006610: 4603 mov r3, r0 + 8006612: 493c ldr r1, [pc, #240] ; (8006704 ) + 8006614: 4618 mov r0, r3 + 8006616: f7fa faf7 bl 8000c08 <__aeabi_fsub> + 800661a: 4603 mov r3, r0 + 800661c: 4619 mov r1, r3 + 800661e: 4620 mov r0, r4 + 8006620: f7fa faf4 bl 8000c0c <__addsf3> + 8006624: 4603 mov r3, r0 + 8006626: f04f 4180 mov.w r1, #1073741824 ; 0x40000000 + 800662a: 4618 mov r0, r3 + 800662c: f7fa fcaa bl 8000f84 <__aeabi_fdiv> + 8006630: 4603 mov r3, r0 + 8006632: 4618 mov r0, r3 + 8006634: f7fa fd42 bl 80010bc <__aeabi_f2iz> + 8006638: 4603 mov r3, r0 + 800663a: 64fb str r3, [r7, #76] ; 0x4c //保存计算结果 tconfig.x_acc=acc_x; - 8005964: 4a30 ldr r2, [pc, #192] ; (8005a28 ) - 8005966: 6d3b ldr r3, [r7, #80] ; 0x50 - 8005968: 6053 str r3, [r2, #4] + 800663c: 4a32 ldr r2, [pc, #200] ; (8006708 ) + 800663e: 6dbb ldr r3, [r7, #88] ; 0x58 + 8006640: 6053 str r3, [r2, #4] tconfig.x_offset=offset_x; - 800596a: 4a2f ldr r2, [pc, #188] ; (8005a28 ) - 800596c: 6cbb ldr r3, [r7, #72] ; 0x48 - 800596e: 60d3 str r3, [r2, #12] + 8006642: 4a31 ldr r2, [pc, #196] ; (8006708 ) + 8006644: 6d3b ldr r3, [r7, #80] ; 0x50 + 8006646: 60d3 str r3, [r2, #12] tconfig.y_acc=acc_y; - 8005970: 4a2d ldr r2, [pc, #180] ; (8005a28 ) - 8005972: 6cfb ldr r3, [r7, #76] ; 0x4c - 8005974: 6093 str r3, [r2, #8] + 8006648: 4a2f ldr r2, [pc, #188] ; (8006708 ) + 800664a: 6d7b ldr r3, [r7, #84] ; 0x54 + 800664c: 6093 str r3, [r2, #8] tconfig.y_offset=offset_y; - 8005976: 4a2c ldr r2, [pc, #176] ; (8005a28 ) - 8005978: 6c7b ldr r3, [r7, #68] ; 0x44 - 800597a: 6113 str r3, [r2, #16] + 800664e: 4a2e ldr r2, [pc, #184] ; (8006708 ) + 8006650: 6cfb ldr r3, [r7, #76] ; 0x4c + 8006652: 6113 str r3, [r2, #16] //eeprom块标记 tconfig.begin=0xab; - 800597c: 4b2a ldr r3, [pc, #168] ; (8005a28 ) - 800597e: 22ab movs r2, #171 ; 0xab - 8005980: 701a strb r2, [r3, #0] + 8006654: 4b2c ldr r3, [pc, #176] ; (8006708 ) + 8006656: 22ab movs r2, #171 ; 0xab + 8006658: 701a strb r2, [r3, #0] tconfig.end=0xcd; - 8005982: 4b29 ldr r3, [pc, #164] ; (8005a28 ) - 8005984: 22cd movs r2, #205 ; 0xcd - 8005986: 751a strb r2, [r3, #20] + 800665a: 4b2b ldr r3, [pc, #172] ; (8006708 ) + 800665c: 22cd movs r2, #205 ; 0xcd + 800665e: 751a strb r2, [r3, #20] //显示计算结果 sprintf(str,"x_acc=%f y_acc=%f",acc_x,acc_y); - 8005988: 6d38 ldr r0, [r7, #80] ; 0x50 - 800598a: f7fa fdb9 bl 8000500 <__aeabi_f2d> - 800598e: 4604 mov r4, r0 - 8005990: 460d mov r5, r1 - 8005992: 6cf8 ldr r0, [r7, #76] ; 0x4c - 8005994: f7fa fdb4 bl 8000500 <__aeabi_f2d> - 8005998: 4602 mov r2, r0 - 800599a: 460b mov r3, r1 - 800599c: 1d38 adds r0, r7, #4 - 800599e: e9cd 2300 strd r2, r3, [sp] - 80059a2: 4622 mov r2, r4 - 80059a4: 462b mov r3, r5 - 80059a6: 4921 ldr r1, [pc, #132] ; (8005a2c ) - 80059a8: f002 f940 bl 8007c2c + 8006660: 6db8 ldr r0, [r7, #88] ; 0x58 + 8006662: f7f9 ff4d bl 8000500 <__aeabi_f2d> + 8006666: 4604 mov r4, r0 + 8006668: 460d mov r5, r1 + 800666a: 6d78 ldr r0, [r7, #84] ; 0x54 + 800666c: f7f9 ff48 bl 8000500 <__aeabi_f2d> + 8006670: 4602 mov r2, r0 + 8006672: 460b mov r3, r1 + 8006674: f107 000c add.w r0, r7, #12 + 8006678: e9cd 2300 strd r2, r3, [sp] + 800667c: 4622 mov r2, r4 + 800667e: 462b mov r3, r5 + 8006680: 4922 ldr r1, [pc, #136] ; (800670c ) + 8006682: f001 f9c9 bl 8007a18 LCD_ShowString(0,66+16+16+16+16,str,16,RED,RED); - 80059ac: 1d3a adds r2, r7, #4 - 80059ae: f44f 4378 mov.w r3, #63488 ; 0xf800 - 80059b2: 9301 str r3, [sp, #4] - 80059b4: f44f 4378 mov.w r3, #63488 ; 0xf800 - 80059b8: 9300 str r3, [sp, #0] - 80059ba: 2310 movs r3, #16 - 80059bc: 2182 movs r1, #130 ; 0x82 - 80059be: 2000 movs r0, #0 - 80059c0: f7ff f9ca bl 8004d58 + 8006686: f107 020c add.w r2, r7, #12 + 800668a: f44f 4378 mov.w r3, #63488 ; 0xf800 + 800668e: 9301 str r3, [sp, #4] + 8006690: f44f 4378 mov.w r3, #63488 ; 0xf800 + 8006694: 9300 str r3, [sp, #0] + 8006696: 2310 movs r3, #16 + 8006698: 2182 movs r1, #130 ; 0x82 + 800669a: 2000 movs r0, #0 + 800669c: f7ff f89a bl 80057d4 sprintf(str,"x_offset=%d y_offset=%d",offset_x,offset_y); - 80059c4: 1d38 adds r0, r7, #4 - 80059c6: 6c7b ldr r3, [r7, #68] ; 0x44 - 80059c8: 6cba ldr r2, [r7, #72] ; 0x48 - 80059ca: 4919 ldr r1, [pc, #100] ; (8005a30 ) - 80059cc: f002 f92e bl 8007c2c + 80066a0: f107 000c add.w r0, r7, #12 + 80066a4: 6cfb ldr r3, [r7, #76] ; 0x4c + 80066a6: 6d3a ldr r2, [r7, #80] ; 0x50 + 80066a8: 4919 ldr r1, [pc, #100] ; (8006710 ) + 80066aa: f001 f9b5 bl 8007a18 LCD_ShowString(0,66+16+16+16+16+16,str,16,RED,RED); - 80059d0: 1d3a adds r2, r7, #4 - 80059d2: f44f 4378 mov.w r3, #63488 ; 0xf800 - 80059d6: 9301 str r3, [sp, #4] - 80059d8: f44f 4378 mov.w r3, #63488 ; 0xf800 - 80059dc: 9300 str r3, [sp, #0] - 80059de: 2310 movs r3, #16 - 80059e0: 2192 movs r1, #146 ; 0x92 - 80059e2: 2000 movs r0, #0 - 80059e4: f7ff f9b8 bl 8004d58 + 80066ae: f107 020c add.w r2, r7, #12 + 80066b2: f44f 4378 mov.w r3, #63488 ; 0xf800 + 80066b6: 9301 str r3, [sp, #4] + 80066b8: f44f 4378 mov.w r3, #63488 ; 0xf800 + 80066bc: 9300 str r3, [sp, #0] + 80066be: 2310 movs r3, #16 + 80066c0: 2192 movs r1, #146 ; 0x92 + 80066c2: 2000 movs r0, #0 + 80066c4: f7ff f886 bl 80057d4 } //将结果保存起来 EEPROM_WRITE_BATY(16,(char *)&tconfig,sizeof(touch_config)); - 80059e8: 2218 movs r2, #24 - 80059ea: 490f ldr r1, [pc, #60] ; (8005a28 ) - 80059ec: 2010 movs r0, #16 - 80059ee: f7ff fa63 bl 8004eb8 + 80066c8: 2218 movs r2, #24 + 80066ca: 490f ldr r1, [pc, #60] ; (8006708 ) + 80066cc: 2010 movs r0, #16 + 80066ce: f7ff f931 bl 8005934 HAL_Delay(1000); - 80059f2: f44f 707a mov.w r0, #1000 ; 0x3e8 - 80059f6: f7fc f86f bl 8001ad8 + 80066d2: f44f 707a mov.w r0, #1000 ; 0x3e8 + 80066d6: f7fb fa31 bl 8001b3c return; - 80059fa: e008 b.n 8005a0e + 80066da: e008 b.n 80066ee while(HAL_GetTick() - 8005a00: 4602 mov r2, r0 - 8005a02: 6f3b ldr r3, [r7, #112] ; 0x70 - 8005a04: 4293 cmp r3, r2 - 8005a06: f63f ad81 bhi.w 800550c - 8005a0a: e000 b.n 8005a0e + 80066dc: f7fb fa24 bl 8001b28 + 80066e0: 4602 mov r2, r0 + 80066e2: 6fbb ldr r3, [r7, #120] ; 0x78 + 80066e4: 4293 cmp r3, r2 + 80066e6: f63f ad6d bhi.w 80061c4 + 80066ea: e000 b.n 80066ee return; //已经校准过了 - 8005a0c: bf00 nop + 80066ec: bf00 nop } } } - 8005a0e: 3788 adds r7, #136 ; 0x88 - 8005a10: 46bd mov sp, r7 - 8005a12: bdb0 pop {r4, r5, r7, pc} - 8005a14: 40704000 .word 0x40704000 - 8005a18: 40668000 .word 0x40668000 - 8005a1c: 41f00000 .word 0x41f00000 - 8005a20: 43910000 .word 0x43910000 - 8005a24: 43520000 .word 0x43520000 - 8005a28: 20000320 .word 0x20000320 - 8005a2c: 0800a0bc .word 0x0800a0bc - 8005a30: 0800a0d0 .word 0x0800a0d0 + 80066ee: 3790 adds r7, #144 ; 0x90 + 80066f0: 46bd mov sp, r7 + 80066f2: bdb0 pop {r4, r5, r7, pc} + 80066f4: 40704000 .word 0x40704000 + 80066f8: 40668000 .word 0x40668000 + 80066fc: 41f00000 .word 0x41f00000 + 8006700: 43910000 .word 0x43910000 + 8006704: 43520000 .word 0x43520000 + 8006708: 2000036c .word 0x2000036c + 800670c: 08009dc4 .word 0x08009dc4 + 8006710: 08009dd8 .word 0x08009dd8 -08005a34 : -uint16_t fifo_ir; -char blood_str[64]; +08006714 : +#include "APP_IDcard.h" +window *idcard_window; -uint8_t Max30102_reset(void) +void APP_IDcard_init(window *a_window) { - 8005a34: b580 push {r7, lr} - 8005a36: b082 sub sp, #8 - 8005a38: af00 add r7, sp, #0 - char a=0x40; - 8005a3a: 2340 movs r3, #64 ; 0x40 - 8005a3c: 71fb strb r3, [r7, #7] - IIC_SAND_DATE(MAX30102_Device_address,REG_MODE_CONFIG, &a,1); - 8005a3e: 1dfa adds r2, r7, #7 - 8005a40: 2301 movs r3, #1 - 8005a42: 2109 movs r1, #9 - 8005a44: 20ae movs r0, #174 ; 0xae - 8005a46: f7ff fa7d bl 8004f44 + 8006714: b580 push {r7, lr} + 8006716: b082 sub sp, #8 + 8006718: af00 add r7, sp, #0 + 800671a: 6078 str r0, [r7, #4] + idcard_window=a_window; + 800671c: 4a04 ldr r2, [pc, #16] ; (8006730 ) + 800671e: 687b ldr r3, [r7, #4] + 8006720: 6013 str r3, [r2, #0] + RC522_Init(); + 8006722: f7ff fa99 bl 8005c58 +} + 8006726: bf00 nop + 8006728: 3708 adds r7, #8 + 800672a: 46bd mov sp, r7 + 800672c: bd80 pop {r7, pc} + 800672e: bf00 nop + 8006730: 20000394 .word 0x20000394 + +08006734 : + +void APP_IDcard_loop() +{ + 8006734: b480 push {r7} + 8006736: af00 add r7, sp, #0 } - 8005a4a: bf00 nop - 8005a4c: 4618 mov r0, r3 - 8005a4e: 3708 adds r7, #8 - 8005a50: 46bd mov sp, r7 - 8005a52: bd80 pop {r7, pc} + 8006738: bf00 nop + 800673a: 46bd mov sp, r7 + 800673c: bc80 pop {r7} + 800673e: 4770 bx lr -08005a54 : -void MAX30102_Config(void) -{ - 8005a54: b580 push {r7, lr} - 8005a56: b082 sub sp, #8 - 8005a58: af00 add r7, sp, #0 - char a; - a=0xc0; - 8005a5a: 23c0 movs r3, #192 ; 0xc0 - 8005a5c: 71fb strb r3, [r7, #7] - IIC_SAND_DATE(MAX30102_Device_address,REG_INTR_ENABLE_1,&a,1);//// INTR setting - 8005a5e: 1dfa adds r2, r7, #7 - 8005a60: 2301 movs r3, #1 - 8005a62: 2102 movs r1, #2 - 8005a64: 20ae movs r0, #174 ; 0xae - 8005a66: f7ff fa6d bl 8004f44 - a=0; - 8005a6a: 2300 movs r3, #0 - 8005a6c: 71fb strb r3, [r7, #7] - IIC_SAND_DATE(MAX30102_Device_address,REG_INTR_ENABLE_2,&a,1);// - 8005a6e: 1dfa adds r2, r7, #7 - 8005a70: 2301 movs r3, #1 - 8005a72: 2103 movs r1, #3 - 8005a74: 20ae movs r0, #174 ; 0xae - 8005a76: f7ff fa65 bl 8004f44 - IIC_SAND_DATE(MAX30102_Device_address,REG_FIFO_WR_PTR,&a,1);//FIFO_WR_PTR[4:0] - 8005a7a: 1dfa adds r2, r7, #7 - 8005a7c: 2301 movs r3, #1 - 8005a7e: 2104 movs r1, #4 - 8005a80: 20ae movs r0, #174 ; 0xae - 8005a82: f7ff fa5f bl 8004f44 - IIC_SAND_DATE(MAX30102_Device_address,REG_OVF_COUNTER,&a,1);//OVF_COUNTER[4:0] - 8005a86: 1dfa adds r2, r7, #7 - 8005a88: 2301 movs r3, #1 - 8005a8a: 2105 movs r1, #5 - 8005a8c: 20ae movs r0, #174 ; 0xae - 8005a8e: f7ff fa59 bl 8004f44 - IIC_SAND_DATE(MAX30102_Device_address,REG_FIFO_RD_PTR,&a,1);//FIFO_RD_PTR[4:0] - 8005a92: 1dfa adds r2, r7, #7 - 8005a94: 2301 movs r3, #1 - 8005a96: 2106 movs r1, #6 - 8005a98: 20ae movs r0, #174 ; 0xae - 8005a9a: f7ff fa53 bl 8004f44 - - a=0x0f; - 8005a9e: 230f movs r3, #15 - 8005aa0: 71fb strb r3, [r7, #7] - IIC_SAND_DATE(MAX30102_Device_address,REG_FIFO_CONFIG,&a,1);//sample avg = 1, fifo rollover=false, fifo almost full = 17 - 8005aa2: 1dfa adds r2, r7, #7 - 8005aa4: 2301 movs r3, #1 - 8005aa6: 2108 movs r1, #8 - 8005aa8: 20ae movs r0, #174 ; 0xae - 8005aaa: f7ff fa4b bl 8004f44 - a=0x03; - 8005aae: 2303 movs r3, #3 - 8005ab0: 71fb strb r3, [r7, #7] - IIC_SAND_DATE(MAX30102_Device_address,REG_MODE_CONFIG,&a,1);//0x02 for Red only, 0x03 for SpO2 mode 0x07 multimode LED - 8005ab2: 1dfa adds r2, r7, #7 - 8005ab4: 2301 movs r3, #1 - 8005ab6: 2109 movs r1, #9 - 8005ab8: 20ae movs r0, #174 ; 0xae - 8005aba: f7ff fa43 bl 8004f44 - a=0x27; - 8005abe: 2327 movs r3, #39 ; 0x27 - 8005ac0: 71fb strb r3, [r7, #7] - IIC_SAND_DATE(MAX30102_Device_address,REG_SPO2_CONFIG,&a,1); // SPO2_ADC range = 4096nA, SPO2 sample rate (50 Hz), LED pulseWidth (400uS) - 8005ac2: 1dfa adds r2, r7, #7 - 8005ac4: 2301 movs r3, #1 - 8005ac6: 210a movs r1, #10 - 8005ac8: 20ae movs r0, #174 ; 0xae - 8005aca: f7ff fa3b bl 8004f44 - a=0x32; - 8005ace: 2332 movs r3, #50 ; 0x32 - 8005ad0: 71fb strb r3, [r7, #7] - IIC_SAND_DATE(MAX30102_Device_address,REG_LED1_PA,&a,1);//Choose value for ~ 10mA for LED1 - 8005ad2: 1dfa adds r2, r7, #7 - 8005ad4: 2301 movs r3, #1 - 8005ad6: 210c movs r1, #12 - 8005ad8: 20ae movs r0, #174 ; 0xae - 8005ada: f7ff fa33 bl 8004f44 +08006740 : IIC_SAND_DATE(MAX30102_Device_address,REG_LED2_PA,&a,1);// Choose value for ~ 10mA for LED2 - 8005ade: 1dfa adds r2, r7, #7 - 8005ae0: 2301 movs r3, #1 - 8005ae2: 210d movs r1, #13 - 8005ae4: 20ae movs r0, #174 ; 0xae - 8005ae6: f7ff fa2d bl 8004f44 a=0x7f; - 8005aea: 237f movs r3, #127 ; 0x7f - 8005aec: 71fb strb r3, [r7, #7] IIC_SAND_DATE(MAX30102_Device_address,REG_PILOT_PA,&a,1);// Choose value for ~ 25mA for Pilot LED - 8005aee: 1dfa adds r2, r7, #7 - 8005af0: 2301 movs r3, #1 - 8005af2: 2110 movs r1, #16 - 8005af4: 20ae movs r0, #174 ; 0xae - 8005af6: f7ff fa25 bl 8004f44 } - 8005afa: bf00 nop - 8005afc: 3708 adds r7, #8 - 8005afe: 46bd mov sp, r7 - 8005b00: bd80 pop {r7, pc} - ... - -08005b04 : void max30102_read_fifo(void) { - 8005b04: b580 push {r7, lr} - 8005b06: b082 sub sp, #8 - 8005b08: af00 add r7, sp, #0 + 8006740: b580 push {r7, lr} + 8006742: b082 sub sp, #8 + 8006744: af00 add r7, sp, #0 uint16_t un_temp; fifo_red=0; - 8005b0a: 4b3c ldr r3, [pc, #240] ; (8005bfc ) - 8005b0c: 2200 movs r2, #0 - 8005b0e: 801a strh r2, [r3, #0] + 8006746: 4b3c ldr r3, [pc, #240] ; (8006838 ) + 8006748: 2200 movs r2, #0 + 800674a: 801a strh r2, [r3, #0] fifo_ir=0; - 8005b10: 4b3b ldr r3, [pc, #236] ; (8005c00 ) - 8005b12: 2200 movs r2, #0 - 8005b14: 801a strh r2, [r3, #0] + 800674c: 4b3b ldr r3, [pc, #236] ; (800683c ) + 800674e: 2200 movs r2, #0 + 8006750: 801a strh r2, [r3, #0] uint8_t ach_i2c_data[6]; //read and clear status register IIC_READ_DATE(MAX30102_Device_address,REG_INTR_STATUS_1,&ach_i2c_data,1); - 8005b16: 463a mov r2, r7 - 8005b18: 2301 movs r3, #1 - 8005b1a: 2100 movs r1, #0 - 8005b1c: 20ae movs r0, #174 ; 0xae - 8005b1e: f7ff fa2f bl 8004f80 + 8006752: 463a mov r2, r7 + 8006754: 2301 movs r3, #1 + 8006756: 2100 movs r1, #0 + 8006758: 20ae movs r0, #174 ; 0xae + 800675a: f7ff f94f bl 80059fc IIC_READ_DATE(MAX30102_Device_address,REG_INTR_STATUS_2,&ach_i2c_data,1); - 8005b22: 463a mov r2, r7 - 8005b24: 2301 movs r3, #1 - 8005b26: 2101 movs r1, #1 - 8005b28: 20ae movs r0, #174 ; 0xae - 8005b2a: f7ff fa29 bl 8004f80 + 800675e: 463a mov r2, r7 + 8006760: 2301 movs r3, #1 + 8006762: 2101 movs r1, #1 + 8006764: 20ae movs r0, #174 ; 0xae + 8006766: f7ff f949 bl 80059fc ach_i2c_data[0]=REG_FIFO_DATA; - 8005b2e: 2307 movs r3, #7 - 8005b30: 703b strb r3, [r7, #0] + 800676a: 2307 movs r3, #7 + 800676c: 703b strb r3, [r7, #0] IIC_READ_DATE(MAX30102_Device_address,REG_FIFO_DATA,&ach_i2c_data,6); - 8005b32: 463a mov r2, r7 - 8005b34: 2306 movs r3, #6 - 8005b36: 2107 movs r1, #7 - 8005b38: 20ae movs r0, #174 ; 0xae - 8005b3a: f7ff fa21 bl 8004f80 + 800676e: 463a mov r2, r7 + 8006770: 2306 movs r3, #6 + 8006772: 2107 movs r1, #7 + 8006774: 20ae movs r0, #174 ; 0xae + 8006776: f7ff f941 bl 80059fc un_temp=ach_i2c_data[0]; - 8005b3e: 783b ldrb r3, [r7, #0] - 8005b40: 80fb strh r3, [r7, #6] + 800677a: 783b ldrb r3, [r7, #0] + 800677c: 80fb strh r3, [r7, #6] un_temp<<=14; - 8005b42: 88fb ldrh r3, [r7, #6] - 8005b44: 039b lsls r3, r3, #14 - 8005b46: 80fb strh r3, [r7, #6] + 800677e: 88fb ldrh r3, [r7, #6] + 8006780: 039b lsls r3, r3, #14 + 8006782: 80fb strh r3, [r7, #6] fifo_red+=un_temp; - 8005b48: 4b2c ldr r3, [pc, #176] ; (8005bfc ) - 8005b4a: 881a ldrh r2, [r3, #0] - 8005b4c: 88fb ldrh r3, [r7, #6] - 8005b4e: 4413 add r3, r2 - 8005b50: b29a uxth r2, r3 - 8005b52: 4b2a ldr r3, [pc, #168] ; (8005bfc ) - 8005b54: 801a strh r2, [r3, #0] + 8006784: 4b2c ldr r3, [pc, #176] ; (8006838 ) + 8006786: 881a ldrh r2, [r3, #0] + 8006788: 88fb ldrh r3, [r7, #6] + 800678a: 4413 add r3, r2 + 800678c: b29a uxth r2, r3 + 800678e: 4b2a ldr r3, [pc, #168] ; (8006838 ) + 8006790: 801a strh r2, [r3, #0] un_temp=ach_i2c_data[1]; - 8005b56: 787b ldrb r3, [r7, #1] - 8005b58: 80fb strh r3, [r7, #6] + 8006792: 787b ldrb r3, [r7, #1] + 8006794: 80fb strh r3, [r7, #6] un_temp<<=6; - 8005b5a: 88fb ldrh r3, [r7, #6] - 8005b5c: 019b lsls r3, r3, #6 - 8005b5e: 80fb strh r3, [r7, #6] + 8006796: 88fb ldrh r3, [r7, #6] + 8006798: 019b lsls r3, r3, #6 + 800679a: 80fb strh r3, [r7, #6] fifo_red+=un_temp; - 8005b60: 4b26 ldr r3, [pc, #152] ; (8005bfc ) - 8005b62: 881a ldrh r2, [r3, #0] - 8005b64: 88fb ldrh r3, [r7, #6] - 8005b66: 4413 add r3, r2 - 8005b68: b29a uxth r2, r3 - 8005b6a: 4b24 ldr r3, [pc, #144] ; (8005bfc ) - 8005b6c: 801a strh r2, [r3, #0] + 800679c: 4b26 ldr r3, [pc, #152] ; (8006838 ) + 800679e: 881a ldrh r2, [r3, #0] + 80067a0: 88fb ldrh r3, [r7, #6] + 80067a2: 4413 add r3, r2 + 80067a4: b29a uxth r2, r3 + 80067a6: 4b24 ldr r3, [pc, #144] ; (8006838 ) + 80067a8: 801a strh r2, [r3, #0] un_temp=ach_i2c_data[2]; - 8005b6e: 78bb ldrb r3, [r7, #2] - 8005b70: 80fb strh r3, [r7, #6] + 80067aa: 78bb ldrb r3, [r7, #2] + 80067ac: 80fb strh r3, [r7, #6] un_temp>>=2; - 8005b72: 88fb ldrh r3, [r7, #6] - 8005b74: 089b lsrs r3, r3, #2 - 8005b76: 80fb strh r3, [r7, #6] + 80067ae: 88fb ldrh r3, [r7, #6] + 80067b0: 089b lsrs r3, r3, #2 + 80067b2: 80fb strh r3, [r7, #6] fifo_red+=un_temp; - 8005b78: 4b20 ldr r3, [pc, #128] ; (8005bfc ) - 8005b7a: 881a ldrh r2, [r3, #0] - 8005b7c: 88fb ldrh r3, [r7, #6] - 8005b7e: 4413 add r3, r2 - 8005b80: b29a uxth r2, r3 - 8005b82: 4b1e ldr r3, [pc, #120] ; (8005bfc ) - 8005b84: 801a strh r2, [r3, #0] + 80067b4: 4b20 ldr r3, [pc, #128] ; (8006838 ) + 80067b6: 881a ldrh r2, [r3, #0] + 80067b8: 88fb ldrh r3, [r7, #6] + 80067ba: 4413 add r3, r2 + 80067bc: b29a uxth r2, r3 + 80067be: 4b1e ldr r3, [pc, #120] ; (8006838 ) + 80067c0: 801a strh r2, [r3, #0] un_temp=ach_i2c_data[3]; - 8005b86: 78fb ldrb r3, [r7, #3] - 8005b88: 80fb strh r3, [r7, #6] + 80067c2: 78fb ldrb r3, [r7, #3] + 80067c4: 80fb strh r3, [r7, #6] un_temp<<=14; - 8005b8a: 88fb ldrh r3, [r7, #6] - 8005b8c: 039b lsls r3, r3, #14 - 8005b8e: 80fb strh r3, [r7, #6] + 80067c6: 88fb ldrh r3, [r7, #6] + 80067c8: 039b lsls r3, r3, #14 + 80067ca: 80fb strh r3, [r7, #6] fifo_ir+=un_temp; - 8005b90: 4b1b ldr r3, [pc, #108] ; (8005c00 ) - 8005b92: 881a ldrh r2, [r3, #0] - 8005b94: 88fb ldrh r3, [r7, #6] - 8005b96: 4413 add r3, r2 - 8005b98: b29a uxth r2, r3 - 8005b9a: 4b19 ldr r3, [pc, #100] ; (8005c00 ) - 8005b9c: 801a strh r2, [r3, #0] + 80067cc: 4b1b ldr r3, [pc, #108] ; (800683c ) + 80067ce: 881a ldrh r2, [r3, #0] + 80067d0: 88fb ldrh r3, [r7, #6] + 80067d2: 4413 add r3, r2 + 80067d4: b29a uxth r2, r3 + 80067d6: 4b19 ldr r3, [pc, #100] ; (800683c ) + 80067d8: 801a strh r2, [r3, #0] un_temp=ach_i2c_data[4]; - 8005b9e: 793b ldrb r3, [r7, #4] - 8005ba0: 80fb strh r3, [r7, #6] + 80067da: 793b ldrb r3, [r7, #4] + 80067dc: 80fb strh r3, [r7, #6] un_temp<<=6; - 8005ba2: 88fb ldrh r3, [r7, #6] - 8005ba4: 019b lsls r3, r3, #6 - 8005ba6: 80fb strh r3, [r7, #6] + 80067de: 88fb ldrh r3, [r7, #6] + 80067e0: 019b lsls r3, r3, #6 + 80067e2: 80fb strh r3, [r7, #6] fifo_ir+=un_temp; - 8005ba8: 4b15 ldr r3, [pc, #84] ; (8005c00 ) - 8005baa: 881a ldrh r2, [r3, #0] - 8005bac: 88fb ldrh r3, [r7, #6] - 8005bae: 4413 add r3, r2 - 8005bb0: b29a uxth r2, r3 - 8005bb2: 4b13 ldr r3, [pc, #76] ; (8005c00 ) - 8005bb4: 801a strh r2, [r3, #0] + 80067e4: 4b15 ldr r3, [pc, #84] ; (800683c ) + 80067e6: 881a ldrh r2, [r3, #0] + 80067e8: 88fb ldrh r3, [r7, #6] + 80067ea: 4413 add r3, r2 + 80067ec: b29a uxth r2, r3 + 80067ee: 4b13 ldr r3, [pc, #76] ; (800683c ) + 80067f0: 801a strh r2, [r3, #0] un_temp=ach_i2c_data[5]; - 8005bb6: 797b ldrb r3, [r7, #5] - 8005bb8: 80fb strh r3, [r7, #6] + 80067f2: 797b ldrb r3, [r7, #5] + 80067f4: 80fb strh r3, [r7, #6] un_temp>>=2; - 8005bba: 88fb ldrh r3, [r7, #6] - 8005bbc: 089b lsrs r3, r3, #2 - 8005bbe: 80fb strh r3, [r7, #6] + 80067f6: 88fb ldrh r3, [r7, #6] + 80067f8: 089b lsrs r3, r3, #2 + 80067fa: 80fb strh r3, [r7, #6] fifo_ir+=un_temp; - 8005bc0: 4b0f ldr r3, [pc, #60] ; (8005c00 ) - 8005bc2: 881a ldrh r2, [r3, #0] - 8005bc4: 88fb ldrh r3, [r7, #6] - 8005bc6: 4413 add r3, r2 - 8005bc8: b29a uxth r2, r3 - 8005bca: 4b0d ldr r3, [pc, #52] ; (8005c00 ) - 8005bcc: 801a strh r2, [r3, #0] + 80067fc: 4b0f ldr r3, [pc, #60] ; (800683c ) + 80067fe: 881a ldrh r2, [r3, #0] + 8006800: 88fb ldrh r3, [r7, #6] + 8006802: 4413 add r3, r2 + 8006804: b29a uxth r2, r3 + 8006806: 4b0d ldr r3, [pc, #52] ; (800683c ) + 8006808: 801a strh r2, [r3, #0] if(fifo_ir<=10000) - 8005bce: 4b0c ldr r3, [pc, #48] ; (8005c00 ) - 8005bd0: 881b ldrh r3, [r3, #0] - 8005bd2: f242 7210 movw r2, #10000 ; 0x2710 - 8005bd6: 4293 cmp r3, r2 - 8005bd8: d802 bhi.n 8005be0 + 800680a: 4b0c ldr r3, [pc, #48] ; (800683c ) + 800680c: 881b ldrh r3, [r3, #0] + 800680e: f242 7210 movw r2, #10000 ; 0x2710 + 8006812: 4293 cmp r3, r2 + 8006814: d802 bhi.n 800681c { fifo_ir=0; - 8005bda: 4b09 ldr r3, [pc, #36] ; (8005c00 ) - 8005bdc: 2200 movs r2, #0 - 8005bde: 801a strh r2, [r3, #0] + 8006816: 4b09 ldr r3, [pc, #36] ; (800683c ) + 8006818: 2200 movs r2, #0 + 800681a: 801a strh r2, [r3, #0] } if(fifo_red<=10000) - 8005be0: 4b06 ldr r3, [pc, #24] ; (8005bfc ) - 8005be2: 881b ldrh r3, [r3, #0] - 8005be4: f242 7210 movw r2, #10000 ; 0x2710 - 8005be8: 4293 cmp r3, r2 - 8005bea: d802 bhi.n 8005bf2 + 800681c: 4b06 ldr r3, [pc, #24] ; (8006838 ) + 800681e: 881b ldrh r3, [r3, #0] + 8006820: f242 7210 movw r2, #10000 ; 0x2710 + 8006824: 4293 cmp r3, r2 + 8006826: d802 bhi.n 800682e { fifo_red=0; - 8005bec: 4b03 ldr r3, [pc, #12] ; (8005bfc ) - 8005bee: 2200 movs r2, #0 - 8005bf0: 801a strh r2, [r3, #0] + 8006828: 4b03 ldr r3, [pc, #12] ; (8006838 ) + 800682a: 2200 movs r2, #0 + 800682c: 801a strh r2, [r3, #0] } } - 8005bf2: bf00 nop - 8005bf4: 3708 adds r7, #8 - 8005bf6: 46bd mov sp, r7 - 8005bf8: bd80 pop {r7, pc} - 8005bfa: bf00 nop - 8005bfc: 20002498 .word 0x20002498 - 8005c00: 20000388 .word 0x20000388 + 800682e: bf00 nop + 8006830: 3708 adds r7, #8 + 8006832: 46bd mov sp, r7 + 8006834: bd80 pop {r7, pc} + 8006836: bf00 nop + 8006838: 200024e8 .word 0x200024e8 + 800683c: 200003d8 .word 0x200003d8 -08005c04 : - -void APP_blood_init(window *a_window) -{ - 8005c04: b580 push {r7, lr} - 8005c06: b082 sub sp, #8 - 8005c08: af00 add r7, sp, #0 - 8005c0a: 6078 str r0, [r7, #4] - blood_win=a_window; - 8005c0c: 4a0b ldr r2, [pc, #44] ; (8005c3c ) - 8005c0e: 687b ldr r3, [r7, #4] - 8005c10: 6013 str r3, [r2, #0] - HAL_GPIO_WritePin(MAX_RD_GPIO_Port, MAX_RD_Pin, 0); - 8005c12: 2200 movs r2, #0 - 8005c14: f44f 4180 mov.w r1, #16384 ; 0x4000 - 8005c18: 4809 ldr r0, [pc, #36] ; (8005c40 ) - 8005c1a: f7fc fa3a bl 8002092 - HAL_GPIO_WritePin(MAX_IRD_GPIO_Port, MAX_IRD_Pin, 0); - 8005c1e: 2200 movs r2, #0 - 8005c20: f44f 5180 mov.w r1, #4096 ; 0x1000 - 8005c24: 4806 ldr r0, [pc, #24] ; (8005c40 ) - 8005c26: f7fc fa34 bl 8002092 - //HAL_TIM_Base_Start_IT(&htim6); - Max30102_reset(); - 8005c2a: f7ff ff03 bl 8005a34 - MAX30102_Config(); - 8005c2e: f7ff ff11 bl 8005a54 - //读取FIFO - max30102_read_fifo(); - } - } - */ -} - 8005c32: bf00 nop - 8005c34: 3708 adds r7, #8 - 8005c36: 46bd mov sp, r7 - 8005c38: bd80 pop {r7, pc} - 8005c3a: bf00 nop - 8005c3c: 2000038c .word 0x2000038c - 8005c40: 40010c00 .word 0x40010c00 - -08005c44 : -struct compx s1[FFT_N+16]; //FFT输入和输出:从S[1]开始存放,根据大小自己定义 -struct compx s2[FFT_N+16]; //FFT输入和输出:从S[1]开始存放,根据大小自己定义 - -//向下取整 -double my_floor(double x) -{ - 8005c44: b580 push {r7, lr} - 8005c46: b084 sub sp, #16 - 8005c48: af00 add r7, sp, #0 - 8005c4a: e9c7 0100 strd r0, r1, [r7] - double y=x; - 8005c4e: e9d7 2300 ldrd r2, r3, [r7] - 8005c52: e9c7 2302 strd r2, r3, [r7, #8] - if( (*( ( (int *) &y)+1) & 0x80000000) != 0) //或者if(x<0) - 8005c56: f107 0308 add.w r3, r7, #8 - 8005c5a: 3304 adds r3, #4 - 8005c5c: 681b ldr r3, [r3, #0] - 8005c5e: 2b00 cmp r3, #0 - 8005c60: da14 bge.n 8005c8c - return (float)((int)x)-1; - 8005c62: e9d7 0100 ldrd r0, r1, [r7] - 8005c66: f7fa ff53 bl 8000b10 <__aeabi_d2iz> - 8005c6a: 4603 mov r3, r0 - 8005c6c: 4618 mov r0, r3 - 8005c6e: f7fb f881 bl 8000d74 <__aeabi_i2f> - 8005c72: 4603 mov r3, r0 - 8005c74: f04f 517e mov.w r1, #1065353216 ; 0x3f800000 - 8005c78: 4618 mov r0, r3 - 8005c7a: f7fa ffc5 bl 8000c08 <__aeabi_fsub> - 8005c7e: 4603 mov r3, r0 - 8005c80: 4618 mov r0, r3 - 8005c82: f7fa fc3d bl 8000500 <__aeabi_f2d> - 8005c86: 4602 mov r2, r0 - 8005c88: 460b mov r3, r1 - 8005c8a: e00d b.n 8005ca8 - else - return (float)((int)x); - 8005c8c: e9d7 0100 ldrd r0, r1, [r7] - 8005c90: f7fa ff3e bl 8000b10 <__aeabi_d2iz> - 8005c94: 4603 mov r3, r0 - 8005c96: 4618 mov r0, r3 - 8005c98: f7fb f86c bl 8000d74 <__aeabi_i2f> - 8005c9c: 4603 mov r3, r0 - 8005c9e: 4618 mov r0, r3 - 8005ca0: f7fa fc2e bl 8000500 <__aeabi_f2d> - 8005ca4: 4602 mov r2, r0 - 8005ca6: 460b mov r3, r1 -} - 8005ca8: 4610 mov r0, r2 - 8005caa: 4619 mov r1, r3 - 8005cac: 3710 adds r7, #16 - 8005cae: 46bd mov sp, r7 - 8005cb0: bd80 pop {r7, pc} - -08005cb2 : - -//求余运算 -double my_fmod(double x, double y) -{ - 8005cb2: b5b0 push {r4, r5, r7, lr} - 8005cb4: b088 sub sp, #32 - 8005cb6: af00 add r7, sp, #0 - 8005cb8: e9c7 0102 strd r0, r1, [r7, #8] - 8005cbc: e9c7 2300 strd r2, r3, [r7] - double temp, ret; - - if (y == 0.0) - 8005cc0: f04f 0200 mov.w r2, #0 - 8005cc4: f04f 0300 mov.w r3, #0 - 8005cc8: e9d7 0100 ldrd r0, r1, [r7] - 8005ccc: f7fa fed8 bl 8000a80 <__aeabi_dcmpeq> - 8005cd0: 4603 mov r3, r0 - 8005cd2: 2b00 cmp r3, #0 - 8005cd4: d004 beq.n 8005ce0 - return 0.0; - 8005cd6: f04f 0200 mov.w r2, #0 - 8005cda: f04f 0300 mov.w r3, #0 - 8005cde: e04d b.n 8005d7c - temp = my_floor(x/y); - 8005ce0: e9d7 2300 ldrd r2, r3, [r7] - 8005ce4: e9d7 0102 ldrd r0, r1, [r7, #8] - 8005ce8: f7fa fd8c bl 8000804 <__aeabi_ddiv> - 8005cec: 4602 mov r2, r0 - 8005cee: 460b mov r3, r1 - 8005cf0: 4610 mov r0, r2 - 8005cf2: 4619 mov r1, r3 - 8005cf4: f7ff ffa6 bl 8005c44 - 8005cf8: e9c7 0104 strd r0, r1, [r7, #16] - ret = x - temp * y; - 8005cfc: e9d7 2300 ldrd r2, r3, [r7] - 8005d00: e9d7 0104 ldrd r0, r1, [r7, #16] - 8005d04: f7fa fc54 bl 80005b0 <__aeabi_dmul> - 8005d08: 4602 mov r2, r0 - 8005d0a: 460b mov r3, r1 - 8005d0c: e9d7 0102 ldrd r0, r1, [r7, #8] - 8005d10: f7fa fa96 bl 8000240 <__aeabi_dsub> - 8005d14: 4602 mov r2, r0 - 8005d16: 460b mov r3, r1 - 8005d18: e9c7 2306 strd r2, r3, [r7, #24] - if ((x < 0.0) != (y < 0.0)) - 8005d1c: 2301 movs r3, #1 - 8005d1e: 461c mov r4, r3 - 8005d20: f04f 0200 mov.w r2, #0 - 8005d24: f04f 0300 mov.w r3, #0 - 8005d28: e9d7 0102 ldrd r0, r1, [r7, #8] - 8005d2c: f7fa feb2 bl 8000a94 <__aeabi_dcmplt> - 8005d30: 4603 mov r3, r0 - 8005d32: 2b00 cmp r3, #0 - 8005d34: d101 bne.n 8005d3a - 8005d36: 2300 movs r3, #0 - 8005d38: 461c mov r4, r3 - 8005d3a: b2e4 uxtb r4, r4 - 8005d3c: 2301 movs r3, #1 - 8005d3e: 461d mov r5, r3 - 8005d40: f04f 0200 mov.w r2, #0 - 8005d44: f04f 0300 mov.w r3, #0 - 8005d48: e9d7 0100 ldrd r0, r1, [r7] - 8005d4c: f7fa fea2 bl 8000a94 <__aeabi_dcmplt> - 8005d50: 4603 mov r3, r0 - 8005d52: 2b00 cmp r3, #0 - 8005d54: d101 bne.n 8005d5a - 8005d56: 2300 movs r3, #0 - 8005d58: 461d mov r5, r3 - 8005d5a: b2eb uxtb r3, r5 - 8005d5c: 4063 eors r3, r4 - 8005d5e: b2db uxtb r3, r3 - 8005d60: 2b00 cmp r3, #0 - 8005d62: d009 beq.n 8005d78 - ret = ret - y; - 8005d64: e9d7 2300 ldrd r2, r3, [r7] - 8005d68: e9d7 0106 ldrd r0, r1, [r7, #24] - 8005d6c: f7fa fa68 bl 8000240 <__aeabi_dsub> - 8005d70: 4602 mov r2, r0 - 8005d72: 460b mov r3, r1 - 8005d74: e9c7 2306 strd r2, r3, [r7, #24] - return ret; - 8005d78: e9d7 2306 ldrd r2, r3, [r7, #24] -} - 8005d7c: 4610 mov r0, r2 - 8005d7e: 4619 mov r1, r3 - 8005d80: 3720 adds r7, #32 - 8005d82: 46bd mov sp, r7 - 8005d84: bdb0 pop {r4, r5, r7, pc} - ... - -08005d88 : - -//正弦函数 -double XSin( double x ) -{ - 8005d88: e92d 43b0 stmdb sp!, {r4, r5, r7, r8, r9, lr} - 8005d8c: b08a sub sp, #40 ; 0x28 - 8005d8e: af00 add r7, sp, #0 - 8005d90: e9c7 0100 strd r0, r1, [r7] - int s = 0 , n; - 8005d94: 2300 movs r3, #0 - 8005d96: 627b str r3, [r7, #36] ; 0x24 - double dx , sx , cx; - if( x < 0 ) - 8005d98: f04f 0200 mov.w r2, #0 - 8005d9c: f04f 0300 mov.w r3, #0 - 8005da0: e9d7 0100 ldrd r0, r1, [r7] - 8005da4: f7fa fe76 bl 8000a94 <__aeabi_dcmplt> - 8005da8: 4603 mov r3, r0 - 8005daa: 2b00 cmp r3, #0 - 8005dac: d007 beq.n 8005dbe - s = 1 , x = -x; - 8005dae: 2301 movs r3, #1 - 8005db0: 627b str r3, [r7, #36] ; 0x24 - 8005db2: 683b ldr r3, [r7, #0] - 8005db4: 603b str r3, [r7, #0] - 8005db6: 687b ldr r3, [r7, #4] - 8005db8: f083 4300 eor.w r3, r3, #2147483648 ; 0x80000000 - 8005dbc: 607b str r3, [r7, #4] - x = my_fmod( x , 2 * XPI ); - 8005dbe: a392 add r3, pc, #584 ; (adr r3, 8006008 ) - 8005dc0: e9d3 2300 ldrd r2, r3, [r3] - 8005dc4: e9d7 0100 ldrd r0, r1, [r7] - 8005dc8: f7ff ff73 bl 8005cb2 - 8005dcc: e9c7 0100 strd r0, r1, [r7] - if( x > XPI ) - 8005dd0: a38f add r3, pc, #572 ; (adr r3, 8006010 ) - 8005dd2: e9d3 2300 ldrd r2, r3, [r3] - 8005dd6: e9d7 0100 ldrd r0, r1, [r7] - 8005dda: f7fa fe79 bl 8000ad0 <__aeabi_dcmpgt> - 8005dde: 4603 mov r3, r0 - 8005de0: 2b00 cmp r3, #0 - 8005de2: d011 beq.n 8005e08 - s = !s , x -= XPI; - 8005de4: 6a7b ldr r3, [r7, #36] ; 0x24 - 8005de6: 2b00 cmp r3, #0 - 8005de8: bf0c ite eq - 8005dea: 2301 moveq r3, #1 - 8005dec: 2300 movne r3, #0 - 8005dee: b2db uxtb r3, r3 - 8005df0: 627b str r3, [r7, #36] ; 0x24 - 8005df2: a387 add r3, pc, #540 ; (adr r3, 8006010 ) - 8005df4: e9d3 2300 ldrd r2, r3, [r3] - 8005df8: e9d7 0100 ldrd r0, r1, [r7] - 8005dfc: f7fa fa20 bl 8000240 <__aeabi_dsub> - 8005e00: 4602 mov r2, r0 - 8005e02: 460b mov r3, r1 - 8005e04: e9c7 2300 strd r2, r3, [r7] - if( x > XPI / 2 ) - 8005e08: a383 add r3, pc, #524 ; (adr r3, 8006018 ) - 8005e0a: e9d3 2300 ldrd r2, r3, [r3] - 8005e0e: e9d7 0100 ldrd r0, r1, [r7] - 8005e12: f7fa fe5d bl 8000ad0 <__aeabi_dcmpgt> - 8005e16: 4603 mov r3, r0 - 8005e18: 2b00 cmp r3, #0 - 8005e1a: d00a beq.n 8005e32 - x = XPI - x; - 8005e1c: e9d7 2300 ldrd r2, r3, [r7] - 8005e20: a17b add r1, pc, #492 ; (adr r1, 8006010 ) - 8005e22: e9d1 0100 ldrd r0, r1, [r1] - 8005e26: f7fa fa0b bl 8000240 <__aeabi_dsub> - 8005e2a: 4602 mov r2, r0 - 8005e2c: 460b mov r3, r1 - 8005e2e: e9c7 2300 strd r2, r3, [r7] - n = (int)( x / XINCL ); - 8005e32: a37b add r3, pc, #492 ; (adr r3, 8006020 ) - 8005e34: e9d3 2300 ldrd r2, r3, [r3] - 8005e38: e9d7 0100 ldrd r0, r1, [r7] - 8005e3c: f7fa fce2 bl 8000804 <__aeabi_ddiv> - 8005e40: 4602 mov r2, r0 - 8005e42: 460b mov r3, r1 - 8005e44: 4610 mov r0, r2 - 8005e46: 4619 mov r1, r3 - 8005e48: f7fa fe62 bl 8000b10 <__aeabi_d2iz> - 8005e4c: 4603 mov r3, r0 - 8005e4e: 623b str r3, [r7, #32] - dx = x - n * XINCL; - 8005e50: 6a38 ldr r0, [r7, #32] - 8005e52: f7fa fb43 bl 80004dc <__aeabi_i2d> - 8005e56: a372 add r3, pc, #456 ; (adr r3, 8006020 ) - 8005e58: e9d3 2300 ldrd r2, r3, [r3] - 8005e5c: f7fa fba8 bl 80005b0 <__aeabi_dmul> - 8005e60: 4602 mov r2, r0 - 8005e62: 460b mov r3, r1 - 8005e64: e9d7 0100 ldrd r0, r1, [r7] - 8005e68: f7fa f9ea bl 8000240 <__aeabi_dsub> - 8005e6c: 4602 mov r2, r0 - 8005e6e: 460b mov r3, r1 - 8005e70: e9c7 2306 strd r2, r3, [r7, #24] - if( dx > XINCL / 2 ) - 8005e74: a36c add r3, pc, #432 ; (adr r3, 8006028 ) - 8005e76: e9d3 2300 ldrd r2, r3, [r3] - 8005e7a: e9d7 0106 ldrd r0, r1, [r7, #24] - 8005e7e: f7fa fe27 bl 8000ad0 <__aeabi_dcmpgt> - 8005e82: 4603 mov r3, r0 - 8005e84: 2b00 cmp r3, #0 - 8005e86: d00d beq.n 8005ea4 - ++n , dx -= XINCL; - 8005e88: 6a3b ldr r3, [r7, #32] - 8005e8a: 3301 adds r3, #1 - 8005e8c: 623b str r3, [r7, #32] - 8005e8e: a364 add r3, pc, #400 ; (adr r3, 8006020 ) - 8005e90: e9d3 2300 ldrd r2, r3, [r3] - 8005e94: e9d7 0106 ldrd r0, r1, [r7, #24] - 8005e98: f7fa f9d2 bl 8000240 <__aeabi_dsub> - 8005e9c: 4602 mov r2, r0 - 8005e9e: 460b mov r3, r1 - 8005ea0: e9c7 2306 strd r2, r3, [r7, #24] - sx = XSinTbl[n]; - 8005ea4: 4a62 ldr r2, [pc, #392] ; (8006030 ) - 8005ea6: 6a3b ldr r3, [r7, #32] - 8005ea8: 00db lsls r3, r3, #3 - 8005eaa: 4413 add r3, r2 - 8005eac: e9d3 2300 ldrd r2, r3, [r3] - 8005eb0: e9c7 2304 strd r2, r3, [r7, #16] - cx = XSinTbl[XENTRY-n]; - 8005eb4: 6a3b ldr r3, [r7, #32] - 8005eb6: f1c3 0364 rsb r3, r3, #100 ; 0x64 - 8005eba: 4a5d ldr r2, [pc, #372] ; (8006030 ) - 8005ebc: 00db lsls r3, r3, #3 - 8005ebe: 4413 add r3, r2 - 8005ec0: e9d3 2300 ldrd r2, r3, [r3] - 8005ec4: e9c7 2302 strd r2, r3, [r7, #8] - x = sx + dx*cx - (dx*dx)*sx/2 - 8005ec8: e9d7 2302 ldrd r2, r3, [r7, #8] - 8005ecc: e9d7 0106 ldrd r0, r1, [r7, #24] - 8005ed0: f7fa fb6e bl 80005b0 <__aeabi_dmul> - 8005ed4: 4602 mov r2, r0 - 8005ed6: 460b mov r3, r1 - 8005ed8: 4610 mov r0, r2 - 8005eda: 4619 mov r1, r3 - 8005edc: e9d7 2304 ldrd r2, r3, [r7, #16] - 8005ee0: f7fa f9b0 bl 8000244 <__adddf3> - 8005ee4: 4602 mov r2, r0 - 8005ee6: 460b mov r3, r1 - 8005ee8: 4690 mov r8, r2 - 8005eea: 4699 mov r9, r3 - 8005eec: e9d7 2306 ldrd r2, r3, [r7, #24] - 8005ef0: e9d7 0106 ldrd r0, r1, [r7, #24] - 8005ef4: f7fa fb5c bl 80005b0 <__aeabi_dmul> - 8005ef8: 4602 mov r2, r0 - 8005efa: 460b mov r3, r1 - 8005efc: 4610 mov r0, r2 - 8005efe: 4619 mov r1, r3 - 8005f00: e9d7 2304 ldrd r2, r3, [r7, #16] - 8005f04: f7fa fb54 bl 80005b0 <__aeabi_dmul> - 8005f08: 4602 mov r2, r0 - 8005f0a: 460b mov r3, r1 - 8005f0c: 4610 mov r0, r2 - 8005f0e: 4619 mov r1, r3 - 8005f10: f04f 0200 mov.w r2, #0 - 8005f14: f04f 4380 mov.w r3, #1073741824 ; 0x40000000 - 8005f18: f7fa fc74 bl 8000804 <__aeabi_ddiv> - 8005f1c: 4602 mov r2, r0 - 8005f1e: 460b mov r3, r1 - 8005f20: 4640 mov r0, r8 - 8005f22: 4649 mov r1, r9 - 8005f24: f7fa f98c bl 8000240 <__aeabi_dsub> - 8005f28: 4602 mov r2, r0 - 8005f2a: 460b mov r3, r1 - 8005f2c: 4690 mov r8, r2 - 8005f2e: 4699 mov r9, r3 - - (dx*dx*dx)*cx/6 - 8005f30: e9d7 2306 ldrd r2, r3, [r7, #24] - 8005f34: e9d7 0106 ldrd r0, r1, [r7, #24] - 8005f38: f7fa fb3a bl 80005b0 <__aeabi_dmul> - 8005f3c: 4602 mov r2, r0 - 8005f3e: 460b mov r3, r1 - 8005f40: 4610 mov r0, r2 - 8005f42: 4619 mov r1, r3 - 8005f44: e9d7 2306 ldrd r2, r3, [r7, #24] - 8005f48: f7fa fb32 bl 80005b0 <__aeabi_dmul> - 8005f4c: 4602 mov r2, r0 - 8005f4e: 460b mov r3, r1 - 8005f50: 4610 mov r0, r2 - 8005f52: 4619 mov r1, r3 - 8005f54: e9d7 2302 ldrd r2, r3, [r7, #8] - 8005f58: f7fa fb2a bl 80005b0 <__aeabi_dmul> - 8005f5c: 4602 mov r2, r0 - 8005f5e: 460b mov r3, r1 - 8005f60: 4610 mov r0, r2 - 8005f62: 4619 mov r1, r3 - 8005f64: f04f 0200 mov.w r2, #0 - 8005f68: 4b32 ldr r3, [pc, #200] ; (8006034 ) - 8005f6a: f7fa fc4b bl 8000804 <__aeabi_ddiv> - 8005f6e: 4602 mov r2, r0 - 8005f70: 460b mov r3, r1 - 8005f72: 4640 mov r0, r8 - 8005f74: 4649 mov r1, r9 - 8005f76: f7fa f963 bl 8000240 <__aeabi_dsub> - 8005f7a: 4602 mov r2, r0 - 8005f7c: 460b mov r3, r1 - 8005f7e: 4690 mov r8, r2 - 8005f80: 4699 mov r9, r3 - + (dx*dx*dx*dx)*sx/24; - 8005f82: e9d7 2306 ldrd r2, r3, [r7, #24] - 8005f86: e9d7 0106 ldrd r0, r1, [r7, #24] - 8005f8a: f7fa fb11 bl 80005b0 <__aeabi_dmul> - 8005f8e: 4602 mov r2, r0 - 8005f90: 460b mov r3, r1 - 8005f92: 4610 mov r0, r2 - 8005f94: 4619 mov r1, r3 - 8005f96: e9d7 2306 ldrd r2, r3, [r7, #24] - 8005f9a: f7fa fb09 bl 80005b0 <__aeabi_dmul> - 8005f9e: 4602 mov r2, r0 - 8005fa0: 460b mov r3, r1 - 8005fa2: 4610 mov r0, r2 - 8005fa4: 4619 mov r1, r3 - 8005fa6: e9d7 2306 ldrd r2, r3, [r7, #24] - 8005faa: f7fa fb01 bl 80005b0 <__aeabi_dmul> - 8005fae: 4602 mov r2, r0 - 8005fb0: 460b mov r3, r1 - 8005fb2: 4610 mov r0, r2 - 8005fb4: 4619 mov r1, r3 - 8005fb6: e9d7 2304 ldrd r2, r3, [r7, #16] - 8005fba: f7fa faf9 bl 80005b0 <__aeabi_dmul> - 8005fbe: 4602 mov r2, r0 - 8005fc0: 460b mov r3, r1 - 8005fc2: 4610 mov r0, r2 - 8005fc4: 4619 mov r1, r3 - 8005fc6: f04f 0200 mov.w r2, #0 - 8005fca: 4b1b ldr r3, [pc, #108] ; (8006038 ) - 8005fcc: f7fa fc1a bl 8000804 <__aeabi_ddiv> - 8005fd0: 4602 mov r2, r0 - 8005fd2: 460b mov r3, r1 - x = sx + dx*cx - (dx*dx)*sx/2 - 8005fd4: 4640 mov r0, r8 - 8005fd6: 4649 mov r1, r9 - 8005fd8: f7fa f934 bl 8000244 <__adddf3> - 8005fdc: 4602 mov r2, r0 - 8005fde: 460b mov r3, r1 - 8005fe0: e9c7 2300 strd r2, r3, [r7] - - return s ? -x : x; - 8005fe4: 6a7b ldr r3, [r7, #36] ; 0x24 - 8005fe6: 2b00 cmp r3, #0 - 8005fe8: d004 beq.n 8005ff4 - 8005fea: 683c ldr r4, [r7, #0] - 8005fec: 687b ldr r3, [r7, #4] - 8005fee: f083 4500 eor.w r5, r3, #2147483648 ; 0x80000000 - 8005ff2: e001 b.n 8005ff8 - 8005ff4: e9d7 4500 ldrd r4, r5, [r7] - 8005ff8: 4622 mov r2, r4 - 8005ffa: 462b mov r3, r5 -} - 8005ffc: 4610 mov r0, r2 - 8005ffe: 4619 mov r1, r3 - 8006000: 3728 adds r7, #40 ; 0x28 - 8006002: 46bd mov sp, r7 - 8006004: e8bd 83b0 ldmia.w sp!, {r4, r5, r7, r8, r9, pc} - 8006008: 54442d18 .word 0x54442d18 - 800600c: 401921fb .word 0x401921fb - 8006010: 54442d18 .word 0x54442d18 - 8006014: 400921fb .word 0x400921fb - 8006018: 54442d18 .word 0x54442d18 - 800601c: 3ff921fb .word 0x3ff921fb - 8006020: 9217271a .word 0x9217271a - 8006024: 3f9015bf .word 0x3f9015bf - 8006028: 9217271a .word 0x9217271a - 800602c: 3f8015bf .word 0x3f8015bf - 8006030: 0800abb0 .word 0x0800abb0 - 8006034: 40180000 .word 0x40180000 - 8006038: 40380000 .word 0x40380000 - 800603c: 00000000 .word 0x00000000 - -08006040 : - -//余弦函数 -double XCos( double x ) -{ - 8006040: b580 push {r7, lr} - 8006042: b082 sub sp, #8 - 8006044: af00 add r7, sp, #0 - 8006046: e9c7 0100 strd r0, r1, [r7] - return XSin( x + XPI/2 ); - 800604a: a30b add r3, pc, #44 ; (adr r3, 8006078 ) - 800604c: e9d3 2300 ldrd r2, r3, [r3] - 8006050: e9d7 0100 ldrd r0, r1, [r7] - 8006054: f7fa f8f6 bl 8000244 <__adddf3> - 8006058: 4602 mov r2, r0 - 800605a: 460b mov r3, r1 - 800605c: 4610 mov r0, r2 - 800605e: 4619 mov r1, r3 - 8006060: f7ff fe92 bl 8005d88 - 8006064: 4602 mov r2, r0 - 8006066: 460b mov r3, r1 -} - 8006068: 4610 mov r0, r2 - 800606a: 4619 mov r1, r3 - 800606c: 3708 adds r7, #8 - 800606e: 46bd mov sp, r7 - 8006070: bd80 pop {r7, pc} - 8006072: bf00 nop - 8006074: f3af 8000 nop.w - 8006078: 54442d18 .word 0x54442d18 - 800607c: 3ff921fb .word 0x3ff921fb - -08006080 : -函数功能:对两个复数进行乘法运算 -输入参数:两个以联合体定义的复数a,b -输出参数:a和b的乘积,以联合体的形式输出 -*******************************************************************/ -struct compx EE(struct compx a,struct compx b) -{ - 8006080: b082 sub sp, #8 - 8006082: b590 push {r4, r7, lr} - 8006084: b087 sub sp, #28 - 8006086: af00 add r7, sp, #0 - 8006088: 60f8 str r0, [r7, #12] - 800608a: 1d38 adds r0, r7, #4 - 800608c: e880 0006 stmia.w r0, {r1, r2} - 8006090: 62fb str r3, [r7, #44] ; 0x2c - struct compx c; - c.real=a.real*b.real-a.imag*b.imag; - 8006092: 687b ldr r3, [r7, #4] - 8006094: 6afa ldr r2, [r7, #44] ; 0x2c - 8006096: 4611 mov r1, r2 - 8006098: 4618 mov r0, r3 - 800609a: f7fa febf bl 8000e1c <__aeabi_fmul> - 800609e: 4603 mov r3, r0 - 80060a0: 461c mov r4, r3 - 80060a2: 68bb ldr r3, [r7, #8] - 80060a4: 6b3a ldr r2, [r7, #48] ; 0x30 - 80060a6: 4611 mov r1, r2 - 80060a8: 4618 mov r0, r3 - 80060aa: f7fa feb7 bl 8000e1c <__aeabi_fmul> - 80060ae: 4603 mov r3, r0 - 80060b0: 4619 mov r1, r3 - 80060b2: 4620 mov r0, r4 - 80060b4: f7fa fda8 bl 8000c08 <__aeabi_fsub> - 80060b8: 4603 mov r3, r0 - 80060ba: 613b str r3, [r7, #16] - c.imag=a.real*b.imag+a.imag*b.real; - 80060bc: 687b ldr r3, [r7, #4] - 80060be: 6b3a ldr r2, [r7, #48] ; 0x30 - 80060c0: 4611 mov r1, r2 - 80060c2: 4618 mov r0, r3 - 80060c4: f7fa feaa bl 8000e1c <__aeabi_fmul> - 80060c8: 4603 mov r3, r0 - 80060ca: 461c mov r4, r3 - 80060cc: 68bb ldr r3, [r7, #8] - 80060ce: 6afa ldr r2, [r7, #44] ; 0x2c - 80060d0: 4611 mov r1, r2 - 80060d2: 4618 mov r0, r3 - 80060d4: f7fa fea2 bl 8000e1c <__aeabi_fmul> - 80060d8: 4603 mov r3, r0 - 80060da: 4619 mov r1, r3 - 80060dc: 4620 mov r0, r4 - 80060de: f7fa fd95 bl 8000c0c <__addsf3> - 80060e2: 4603 mov r3, r0 - 80060e4: 617b str r3, [r7, #20] - return(c); - 80060e6: 68fb ldr r3, [r7, #12] - 80060e8: 461a mov r2, r3 - 80060ea: f107 0310 add.w r3, r7, #16 - 80060ee: e893 0003 ldmia.w r3, {r0, r1} - 80060f2: e882 0003 stmia.w r2, {r0, r1} -} - 80060f6: 68f8 ldr r0, [r7, #12] - 80060f8: 371c adds r7, #28 - 80060fa: 46bd mov sp, r7 - 80060fc: e8bd 4090 ldmia.w sp!, {r4, r7, lr} - 8006100: b002 add sp, #8 - 8006102: 4770 bx lr - 8006104: 0000 movs r0, r0 - ... - -08006108 : -函数原型:void FFT(struct compx *xin,int N) -函数功能:对输入的复数组进行快速傅里叶变换(FFT) -输入参数:*xin复数结构体组的首地址指针,struct型 -*****************************************************************/ -void FFT(struct compx *xin) -{ - 8006108: b590 push {r4, r7, lr} - 800610a: b097 sub sp, #92 ; 0x5c - 800610c: af02 add r7, sp, #8 - 800610e: 6078 str r0, [r7, #4] - int f,m,nv2,nm1,i,k,l,j=0; - 8006110: 2300 movs r3, #0 - 8006112: 63bb str r3, [r7, #56] ; 0x38 - struct compx u,w,t; - - nv2=FFT_N/2; //变址运算,即把自然顺序变成倒位序,采用雷德算法 - 8006114: f44f 7380 mov.w r3, #256 ; 0x100 - 8006118: 637b str r3, [r7, #52] ; 0x34 - nm1=FFT_N-1; - 800611a: f240 13ff movw r3, #511 ; 0x1ff - 800611e: 633b str r3, [r7, #48] ; 0x30 - for(i=0;i - { - if(i - { - t=xin[j]; - 800612e: 6bbb ldr r3, [r7, #56] ; 0x38 - 8006130: 00db lsls r3, r3, #3 - 8006132: 687a ldr r2, [r7, #4] - 8006134: 441a add r2, r3 - 8006136: f107 030c add.w r3, r7, #12 - 800613a: e892 0003 ldmia.w r2, {r0, r1} - 800613e: e883 0003 stmia.w r3, {r0, r1} - xin[j]=xin[i]; - 8006142: 6c7b ldr r3, [r7, #68] ; 0x44 - 8006144: 00db lsls r3, r3, #3 - 8006146: 687a ldr r2, [r7, #4] - 8006148: 18d1 adds r1, r2, r3 - 800614a: 6bbb ldr r3, [r7, #56] ; 0x38 - 800614c: 00db lsls r3, r3, #3 - 800614e: 687a ldr r2, [r7, #4] - 8006150: 4413 add r3, r2 - 8006152: 460a mov r2, r1 - 8006154: e892 0003 ldmia.w r2, {r0, r1} - 8006158: e883 0003 stmia.w r3, {r0, r1} - xin[i]=t; - 800615c: 6c7b ldr r3, [r7, #68] ; 0x44 - 800615e: 00db lsls r3, r3, #3 - 8006160: 687a ldr r2, [r7, #4] - 8006162: 4413 add r3, r2 - 8006164: 461a mov r2, r3 - 8006166: f107 030c add.w r3, r7, #12 - 800616a: e893 0003 ldmia.w r3, {r0, r1} - 800616e: e882 0003 stmia.w r2, {r0, r1} - } - k=nv2; //求j的下一个倒位序 - 8006172: 6b7b ldr r3, [r7, #52] ; 0x34 - 8006174: 643b str r3, [r7, #64] ; 0x40 - - while(k<=j) //如果k<=j,表示j的最高位为1 - 8006176: e008 b.n 800618a - { - j=j-k; //把最高位变成0 - 8006178: 6bba ldr r2, [r7, #56] ; 0x38 - 800617a: 6c3b ldr r3, [r7, #64] ; 0x40 - 800617c: 1ad3 subs r3, r2, r3 - 800617e: 63bb str r3, [r7, #56] ; 0x38 - k=k/2; //k/2,比较次高位,依次类推,逐个比较,直到某个位为0 - 8006180: 6c3b ldr r3, [r7, #64] ; 0x40 - 8006182: 0fda lsrs r2, r3, #31 - 8006184: 4413 add r3, r2 - 8006186: 105b asrs r3, r3, #1 - 8006188: 643b str r3, [r7, #64] ; 0x40 - while(k<=j) //如果k<=j,表示j的最高位为1 - 800618a: 6c3a ldr r2, [r7, #64] ; 0x40 - 800618c: 6bbb ldr r3, [r7, #56] ; 0x38 - 800618e: 429a cmp r2, r3 - 8006190: ddf2 ble.n 8006178 - } - - j=j+k; //把0改为1 - 8006192: 6bba ldr r2, [r7, #56] ; 0x38 - 8006194: 6c3b ldr r3, [r7, #64] ; 0x40 - 8006196: 4413 add r3, r2 - 8006198: 63bb str r3, [r7, #56] ; 0x38 - for(i=0;i - } - - { //FFT运算核,使用蝶形运算完成FFT运算 - int le,lei,ip; - f=FFT_N; - 80061a8: f44f 7300 mov.w r3, #512 ; 0x200 - 80061ac: 64fb str r3, [r7, #76] ; 0x4c - for(l=1;(f=f/2)!=1;l++) //计算l的值,即计算蝶形级数 - 80061ae: 2301 movs r3, #1 - 80061b0: 63fb str r3, [r7, #60] ; 0x3c - 80061b2: e002 b.n 80061ba - 80061b4: 6bfb ldr r3, [r7, #60] ; 0x3c - 80061b6: 3301 adds r3, #1 - 80061b8: 63fb str r3, [r7, #60] ; 0x3c - 80061ba: 6cfb ldr r3, [r7, #76] ; 0x4c - 80061bc: 0fda lsrs r2, r3, #31 - 80061be: 4413 add r3, r2 - 80061c0: 105b asrs r3, r3, #1 - 80061c2: 64fb str r3, [r7, #76] ; 0x4c - 80061c4: 6cfb ldr r3, [r7, #76] ; 0x4c - 80061c6: 2b01 cmp r3, #1 - 80061c8: d1f4 bne.n 80061b4 - ; - for(m=1;m<=l;m++) // 控制蝶形结级数 - 80061ca: 2301 movs r3, #1 - 80061cc: 64bb str r3, [r7, #72] ; 0x48 - 80061ce: e0ac b.n 800632a - { //m表示第m级蝶形,l为蝶形级总数l=log(2)N - le=2<<(m-1); //le蝶形结距离,即第m级蝶形的蝶形结相距le点 - 80061d0: 6cbb ldr r3, [r7, #72] ; 0x48 - 80061d2: 3b01 subs r3, #1 - 80061d4: 2202 movs r2, #2 - 80061d6: fa02 f303 lsl.w r3, r2, r3 - 80061da: 62fb str r3, [r7, #44] ; 0x2c - lei=le/2; //同一蝶形结中参加运算的两点的距离 - 80061dc: 6afb ldr r3, [r7, #44] ; 0x2c - 80061de: 0fda lsrs r2, r3, #31 - 80061e0: 4413 add r3, r2 - 80061e2: 105b asrs r3, r3, #1 - 80061e4: 62bb str r3, [r7, #40] ; 0x28 - u.real=1.0; //u为蝶形结运算系数,初始值为1 - 80061e6: f04f 537e mov.w r3, #1065353216 ; 0x3f800000 - 80061ea: 61fb str r3, [r7, #28] - u.imag=0.0; - 80061ec: f04f 0300 mov.w r3, #0 - 80061f0: 623b str r3, [r7, #32] - w.real=XCos(PI/lei); //w为系数商,即当前系数与前一个系数的商 - 80061f2: 6ab8 ldr r0, [r7, #40] ; 0x28 - 80061f4: f7fa f972 bl 80004dc <__aeabi_i2d> - 80061f8: 4602 mov r2, r0 - 80061fa: 460b mov r3, r1 - 80061fc: a150 add r1, pc, #320 ; (adr r1, 8006340 ) - 80061fe: e9d1 0100 ldrd r0, r1, [r1] - 8006202: f7fa faff bl 8000804 <__aeabi_ddiv> - 8006206: 4602 mov r2, r0 - 8006208: 460b mov r3, r1 - 800620a: 4610 mov r0, r2 - 800620c: 4619 mov r1, r3 - 800620e: f7ff ff17 bl 8006040 - 8006212: 4602 mov r2, r0 - 8006214: 460b mov r3, r1 - 8006216: 4610 mov r0, r2 - 8006218: 4619 mov r1, r3 - 800621a: f7fa fca1 bl 8000b60 <__aeabi_d2f> - 800621e: 4603 mov r3, r0 - 8006220: 617b str r3, [r7, #20] - w.imag=-XSin(PI/lei); - 8006222: 6ab8 ldr r0, [r7, #40] ; 0x28 - 8006224: f7fa f95a bl 80004dc <__aeabi_i2d> - 8006228: 4602 mov r2, r0 - 800622a: 460b mov r3, r1 - 800622c: a144 add r1, pc, #272 ; (adr r1, 8006340 ) - 800622e: e9d1 0100 ldrd r0, r1, [r1] - 8006232: f7fa fae7 bl 8000804 <__aeabi_ddiv> - 8006236: 4602 mov r2, r0 - 8006238: 460b mov r3, r1 - 800623a: 4610 mov r0, r2 - 800623c: 4619 mov r1, r3 - 800623e: f7ff fda3 bl 8005d88 - 8006242: 4602 mov r2, r0 - 8006244: 460b mov r3, r1 - 8006246: 4610 mov r0, r2 - 8006248: 4619 mov r1, r3 - 800624a: f7fa fc89 bl 8000b60 <__aeabi_d2f> - 800624e: 4603 mov r3, r0 - 8006250: f083 4300 eor.w r3, r3, #2147483648 ; 0x80000000 - 8006254: 61bb str r3, [r7, #24] - for(j=0;j<=lei-1;j++) //控制计算不同种蝶形结,即计算系数不同的蝶形结 - 8006256: 2300 movs r3, #0 - 8006258: 63bb str r3, [r7, #56] ; 0x38 - 800625a: e05f b.n 800631c - { - for(i=j;i<=FFT_N-1;i=i+le) //控制同一蝶形结运算,即计算系数相同蝶形结 - 800625c: 6bbb ldr r3, [r7, #56] ; 0x38 - 800625e: 647b str r3, [r7, #68] ; 0x44 - 8006260: e04b b.n 80062fa - { - ip=i+lei; //i,ip分别表示参加蝶形运算的两个节点 - 8006262: 6c7a ldr r2, [r7, #68] ; 0x44 - 8006264: 6abb ldr r3, [r7, #40] ; 0x28 - 8006266: 4413 add r3, r2 - 8006268: 627b str r3, [r7, #36] ; 0x24 - t=EE(xin[ip],u); //蝶形运算,详见公式 - 800626a: 6a7b ldr r3, [r7, #36] ; 0x24 - 800626c: 00db lsls r3, r3, #3 - 800626e: 687a ldr r2, [r7, #4] - 8006270: 441a add r2, r3 - 8006272: f107 000c add.w r0, r7, #12 - 8006276: 6a3b ldr r3, [r7, #32] - 8006278: 9300 str r3, [sp, #0] - 800627a: 69fb ldr r3, [r7, #28] - 800627c: ca06 ldmia r2, {r1, r2} - 800627e: f7ff feff bl 8006080 - xin[ip].real=xin[i].real-t.real; - 8006282: 6c7b ldr r3, [r7, #68] ; 0x44 - 8006284: 00db lsls r3, r3, #3 - 8006286: 687a ldr r2, [r7, #4] - 8006288: 4413 add r3, r2 - 800628a: 6818 ldr r0, [r3, #0] - 800628c: 68f9 ldr r1, [r7, #12] - 800628e: 6a7b ldr r3, [r7, #36] ; 0x24 - 8006290: 00db lsls r3, r3, #3 - 8006292: 687a ldr r2, [r7, #4] - 8006294: 18d4 adds r4, r2, r3 - 8006296: f7fa fcb7 bl 8000c08 <__aeabi_fsub> - 800629a: 4603 mov r3, r0 - 800629c: 6023 str r3, [r4, #0] - xin[ip].imag=xin[i].imag-t.imag; - 800629e: 6c7b ldr r3, [r7, #68] ; 0x44 - 80062a0: 00db lsls r3, r3, #3 - 80062a2: 687a ldr r2, [r7, #4] - 80062a4: 4413 add r3, r2 - 80062a6: 6858 ldr r0, [r3, #4] - 80062a8: 6939 ldr r1, [r7, #16] - 80062aa: 6a7b ldr r3, [r7, #36] ; 0x24 - 80062ac: 00db lsls r3, r3, #3 - 80062ae: 687a ldr r2, [r7, #4] - 80062b0: 18d4 adds r4, r2, r3 - 80062b2: f7fa fca9 bl 8000c08 <__aeabi_fsub> - 80062b6: 4603 mov r3, r0 - 80062b8: 6063 str r3, [r4, #4] - xin[i].real=xin[i].real+t.real; - 80062ba: 6c7b ldr r3, [r7, #68] ; 0x44 - 80062bc: 00db lsls r3, r3, #3 - 80062be: 687a ldr r2, [r7, #4] - 80062c0: 4413 add r3, r2 - 80062c2: 6818 ldr r0, [r3, #0] - 80062c4: 68f9 ldr r1, [r7, #12] - 80062c6: 6c7b ldr r3, [r7, #68] ; 0x44 - 80062c8: 00db lsls r3, r3, #3 - 80062ca: 687a ldr r2, [r7, #4] - 80062cc: 18d4 adds r4, r2, r3 - 80062ce: f7fa fc9d bl 8000c0c <__addsf3> - 80062d2: 4603 mov r3, r0 - 80062d4: 6023 str r3, [r4, #0] - xin[i].imag=xin[i].imag+t.imag; - 80062d6: 6c7b ldr r3, [r7, #68] ; 0x44 - 80062d8: 00db lsls r3, r3, #3 - 80062da: 687a ldr r2, [r7, #4] - 80062dc: 4413 add r3, r2 - 80062de: 6858 ldr r0, [r3, #4] - 80062e0: 6939 ldr r1, [r7, #16] - 80062e2: 6c7b ldr r3, [r7, #68] ; 0x44 - 80062e4: 00db lsls r3, r3, #3 - 80062e6: 687a ldr r2, [r7, #4] - 80062e8: 18d4 adds r4, r2, r3 - 80062ea: f7fa fc8f bl 8000c0c <__addsf3> - 80062ee: 4603 mov r3, r0 - 80062f0: 6063 str r3, [r4, #4] - for(i=j;i<=FFT_N-1;i=i+le) //控制同一蝶形结运算,即计算系数相同蝶形结 - 80062f2: 6c7a ldr r2, [r7, #68] ; 0x44 - 80062f4: 6afb ldr r3, [r7, #44] ; 0x2c - 80062f6: 4413 add r3, r2 - 80062f8: 647b str r3, [r7, #68] ; 0x44 - 80062fa: 6c7b ldr r3, [r7, #68] ; 0x44 - 80062fc: f5b3 7f00 cmp.w r3, #512 ; 0x200 - 8006300: dbaf blt.n 8006262 - } - u=EE(u,w); //改变系数,进行下一个蝶形运算 - 8006302: f107 001c add.w r0, r7, #28 - 8006306: 69bb ldr r3, [r7, #24] - 8006308: 9300 str r3, [sp, #0] - 800630a: 697b ldr r3, [r7, #20] - 800630c: f107 021c add.w r2, r7, #28 - 8006310: ca06 ldmia r2, {r1, r2} - 8006312: f7ff feb5 bl 8006080 - for(j=0;j<=lei-1;j++) //控制计算不同种蝶形结,即计算系数不同的蝶形结 - 8006316: 6bbb ldr r3, [r7, #56] ; 0x38 - 8006318: 3301 adds r3, #1 - 800631a: 63bb str r3, [r7, #56] ; 0x38 - 800631c: 6aba ldr r2, [r7, #40] ; 0x28 - 800631e: 6bbb ldr r3, [r7, #56] ; 0x38 - 8006320: 429a cmp r2, r3 - 8006322: dc9b bgt.n 800625c - for(m=1;m<=l;m++) // 控制蝶形结级数 - 8006324: 6cbb ldr r3, [r7, #72] ; 0x48 - 8006326: 3301 adds r3, #1 - 8006328: 64bb str r3, [r7, #72] ; 0x48 - 800632a: 6cba ldr r2, [r7, #72] ; 0x48 - 800632c: 6bfb ldr r3, [r7, #60] ; 0x3c - 800632e: 429a cmp r2, r3 - 8006330: f77f af4e ble.w 80061d0 - } - } - } -} - 8006334: bf00 nop - 8006336: bf00 nop - 8006338: 3754 adds r7, #84 ; 0x54 - 800633a: 46bd mov sp, r7 - 800633c: bd90 pop {r4, r7, pc} - 800633e: bf00 nop - 8006340: 54442d18 .word 0x54442d18 - 8006344: 400921fb .word 0x400921fb - -08006348 : - -//读取峰值 -int find_max_num_index(struct compx *data,int count) -{ - 8006348: b580 push {r7, lr} - 800634a: b086 sub sp, #24 - 800634c: af00 add r7, sp, #0 - 800634e: 6078 str r0, [r7, #4] - 8006350: 6039 str r1, [r7, #0] - int i=START_INDEX; - 8006352: 2304 movs r3, #4 - 8006354: 617b str r3, [r7, #20] - int max_num_index = i; - 8006356: 697b ldr r3, [r7, #20] - 8006358: 613b str r3, [r7, #16] - //struct compx temp=data[i]; - float temp = data[i].real; - 800635a: 697b ldr r3, [r7, #20] - 800635c: 00db lsls r3, r3, #3 - 800635e: 687a ldr r2, [r7, #4] - 8006360: 4413 add r3, r2 - 8006362: 681b ldr r3, [r3, #0] - 8006364: 60fb str r3, [r7, #12] - for(i=START_INDEX;i - { - if(temp < data[i].real) - 800636c: 697b ldr r3, [r7, #20] - 800636e: 00db lsls r3, r3, #3 - 8006370: 687a ldr r2, [r7, #4] - 8006372: 4413 add r3, r2 - 8006374: 681b ldr r3, [r3, #0] - 8006376: 4619 mov r1, r3 - 8006378: 68f8 ldr r0, [r7, #12] - 800637a: f7fa feed bl 8001158 <__aeabi_fcmplt> - 800637e: 4603 mov r3, r0 - 8006380: 2b00 cmp r3, #0 - 8006382: d007 beq.n 8006394 - { - temp = data[i].real; - 8006384: 697b ldr r3, [r7, #20] - 8006386: 00db lsls r3, r3, #3 - 8006388: 687a ldr r2, [r7, #4] - 800638a: 4413 add r3, r2 - 800638c: 681b ldr r3, [r3, #0] - 800638e: 60fb str r3, [r7, #12] - max_num_index = i; - 8006390: 697b ldr r3, [r7, #20] - 8006392: 613b str r3, [r7, #16] - for(i=START_INDEX;i - } - } - //printf("max_num_index=%d\r\n",max_num_index); - return max_num_index; - 80063a2: 693b ldr r3, [r7, #16] -} - 80063a4: 4618 mov r0, r3 - 80063a6: 3718 adds r7, #24 - 80063a8: 46bd mov sp, r7 - 80063aa: bd80 pop {r7, pc} - 80063ac: 0000 movs r0, r0 - ... - -080063b0 : - -//血液信息转换 -void blood_data_translate(void) -{ - 80063b0: b5b0 push {r4, r5, r7, lr} - 80063b2: b08c sub sp, #48 ; 0x30 - 80063b4: af00 add r7, sp, #0 - float n_denom; - uint16_t i; - //直流滤波 - float dc_red =0; - 80063b6: f04f 0300 mov.w r3, #0 - 80063ba: 62bb str r3, [r7, #40] ; 0x28 - float dc_ir =0; - 80063bc: f04f 0300 mov.w r3, #0 - 80063c0: 627b str r3, [r7, #36] ; 0x24 - float ac_red =0; - 80063c2: f04f 0300 mov.w r3, #0 - 80063c6: 623b str r3, [r7, #32] - float ac_ir =0; - 80063c8: f04f 0300 mov.w r3, #0 - 80063cc: 61fb str r3, [r7, #28] - for (i=0 ; i - { - dc_red += s1[i].real ; - 80063d4: 8dfb ldrh r3, [r7, #46] ; 0x2e - 80063d6: 4a56 ldr r2, [pc, #344] ; (8006530 ) - 80063d8: f852 3033 ldr.w r3, [r2, r3, lsl #3] - 80063dc: 4619 mov r1, r3 - 80063de: 6ab8 ldr r0, [r7, #40] ; 0x28 - 80063e0: f7fa fc14 bl 8000c0c <__addsf3> - 80063e4: 4603 mov r3, r0 - 80063e6: 62bb str r3, [r7, #40] ; 0x28 - dc_ir += s2[i].real ; - 80063e8: 8dfb ldrh r3, [r7, #46] ; 0x2e - 80063ea: 4a52 ldr r2, [pc, #328] ; (8006534 ) - 80063ec: f852 3033 ldr.w r3, [r2, r3, lsl #3] - 80063f0: 4619 mov r1, r3 - 80063f2: 6a78 ldr r0, [r7, #36] ; 0x24 - 80063f4: f7fa fc0a bl 8000c0c <__addsf3> - 80063f8: 4603 mov r3, r0 - 80063fa: 627b str r3, [r7, #36] ; 0x24 - for (i=0 ; i - } - dc_red =dc_red/FFT_N ; - 800640a: f04f 4188 mov.w r1, #1140850688 ; 0x44000000 - 800640e: 6ab8 ldr r0, [r7, #40] ; 0x28 - 8006410: f7fa fdb8 bl 8000f84 <__aeabi_fdiv> - 8006414: 4603 mov r3, r0 - 8006416: 62bb str r3, [r7, #40] ; 0x28 - dc_ir =dc_ir/FFT_N ; - 8006418: f04f 4188 mov.w r1, #1140850688 ; 0x44000000 - 800641c: 6a78 ldr r0, [r7, #36] ; 0x24 - 800641e: f7fa fdb1 bl 8000f84 <__aeabi_fdiv> - 8006422: 4603 mov r3, r0 - 8006424: 627b str r3, [r7, #36] ; 0x24 - for (i=0 ; i - { - s1[i].real = s1[i].real - dc_red ; - 800642c: 8dfb ldrh r3, [r7, #46] ; 0x2e - 800642e: 4a40 ldr r2, [pc, #256] ; (8006530 ) - 8006430: f852 3033 ldr.w r3, [r2, r3, lsl #3] - 8006434: 8dfc ldrh r4, [r7, #46] ; 0x2e - 8006436: 6ab9 ldr r1, [r7, #40] ; 0x28 - 8006438: 4618 mov r0, r3 - 800643a: f7fa fbe5 bl 8000c08 <__aeabi_fsub> - 800643e: 4603 mov r3, r0 - 8006440: 461a mov r2, r3 - 8006442: 4b3b ldr r3, [pc, #236] ; (8006530 ) - 8006444: f843 2034 str.w r2, [r3, r4, lsl #3] - s2[i].real = s2[i].real - dc_ir ; - 8006448: 8dfb ldrh r3, [r7, #46] ; 0x2e - 800644a: 4a3a ldr r2, [pc, #232] ; (8006534 ) - 800644c: f852 3033 ldr.w r3, [r2, r3, lsl #3] - 8006450: 8dfc ldrh r4, [r7, #46] ; 0x2e - 8006452: 6a79 ldr r1, [r7, #36] ; 0x24 - 8006454: 4618 mov r0, r3 - 8006456: f7fa fbd7 bl 8000c08 <__aeabi_fsub> - 800645a: 4603 mov r3, r0 - 800645c: 461a mov r2, r3 - 800645e: 4b35 ldr r3, [pc, #212] ; (8006534 ) - 8006460: f843 2034 str.w r2, [r3, r4, lsl #3] - for (i=0 ; i - } - //移动平均滤波 - for(i = 1;i < FFT_N-1;i++) - 8006472: 2301 movs r3, #1 - 8006474: 85fb strh r3, [r7, #46] ; 0x2e - 8006476: e054 b.n 8006522 - { - n_denom= ( s1[i-1].real + 2*s1[i].real + s1[i+1].real); - 8006478: 8dfb ldrh r3, [r7, #46] ; 0x2e - 800647a: 3b01 subs r3, #1 - 800647c: 4a2c ldr r2, [pc, #176] ; (8006530 ) - 800647e: f852 4033 ldr.w r4, [r2, r3, lsl #3] - 8006482: 8dfb ldrh r3, [r7, #46] ; 0x2e - 8006484: 4a2a ldr r2, [pc, #168] ; (8006530 ) - 8006486: f852 3033 ldr.w r3, [r2, r3, lsl #3] - 800648a: 4619 mov r1, r3 - 800648c: 4618 mov r0, r3 - 800648e: f7fa fbbd bl 8000c0c <__addsf3> - 8006492: 4603 mov r3, r0 - 8006494: 4619 mov r1, r3 - 8006496: 4620 mov r0, r4 - 8006498: f7fa fbb8 bl 8000c0c <__addsf3> - 800649c: 4603 mov r3, r0 - 800649e: 4618 mov r0, r3 - 80064a0: 8dfb ldrh r3, [r7, #46] ; 0x2e - 80064a2: 3301 adds r3, #1 - 80064a4: 4a22 ldr r2, [pc, #136] ; (8006530 ) - 80064a6: f852 3033 ldr.w r3, [r2, r3, lsl #3] - 80064aa: 4619 mov r1, r3 - 80064ac: f7fa fbae bl 8000c0c <__addsf3> - 80064b0: 4603 mov r3, r0 - 80064b2: 607b str r3, [r7, #4] - s1[i].real= n_denom/4.00; - 80064b4: 8dfc ldrh r4, [r7, #46] ; 0x2e - 80064b6: f04f 4181 mov.w r1, #1082130432 ; 0x40800000 - 80064ba: 6878 ldr r0, [r7, #4] - 80064bc: f7fa fd62 bl 8000f84 <__aeabi_fdiv> - 80064c0: 4603 mov r3, r0 - 80064c2: 461a mov r2, r3 - 80064c4: 4b1a ldr r3, [pc, #104] ; (8006530 ) - 80064c6: f843 2034 str.w r2, [r3, r4, lsl #3] - - n_denom= ( s2[i-1].real + 2*s2[i].real + s2[i+1].real); - 80064ca: 8dfb ldrh r3, [r7, #46] ; 0x2e - 80064cc: 3b01 subs r3, #1 - 80064ce: 4a19 ldr r2, [pc, #100] ; (8006534 ) - 80064d0: f852 4033 ldr.w r4, [r2, r3, lsl #3] - 80064d4: 8dfb ldrh r3, [r7, #46] ; 0x2e - 80064d6: 4a17 ldr r2, [pc, #92] ; (8006534 ) - 80064d8: f852 3033 ldr.w r3, [r2, r3, lsl #3] - 80064dc: 4619 mov r1, r3 - 80064de: 4618 mov r0, r3 - 80064e0: f7fa fb94 bl 8000c0c <__addsf3> - 80064e4: 4603 mov r3, r0 - 80064e6: 4619 mov r1, r3 - 80064e8: 4620 mov r0, r4 - 80064ea: f7fa fb8f bl 8000c0c <__addsf3> - 80064ee: 4603 mov r3, r0 - 80064f0: 4618 mov r0, r3 - 80064f2: 8dfb ldrh r3, [r7, #46] ; 0x2e - 80064f4: 3301 adds r3, #1 - 80064f6: 4a0f ldr r2, [pc, #60] ; (8006534 ) - 80064f8: f852 3033 ldr.w r3, [r2, r3, lsl #3] - 80064fc: 4619 mov r1, r3 - 80064fe: f7fa fb85 bl 8000c0c <__addsf3> - 8006502: 4603 mov r3, r0 - 8006504: 607b str r3, [r7, #4] - s2[i].real= n_denom/4.00; - 8006506: 8dfc ldrh r4, [r7, #46] ; 0x2e - 8006508: f04f 4181 mov.w r1, #1082130432 ; 0x40800000 - 800650c: 6878 ldr r0, [r7, #4] - 800650e: f7fa fd39 bl 8000f84 <__aeabi_fdiv> - 8006512: 4603 mov r3, r0 - 8006514: 461a mov r2, r3 - 8006516: 4b07 ldr r3, [pc, #28] ; (8006534 ) - 8006518: f843 2034 str.w r2, [r3, r4, lsl #3] - for(i = 1;i < FFT_N-1;i++) - 800651c: 8dfb ldrh r3, [r7, #46] ; 0x2e - 800651e: 3301 adds r3, #1 - 8006520: 85fb strh r3, [r7, #46] ; 0x2e - 8006522: 8dfb ldrh r3, [r7, #46] ; 0x2e - 8006524: f5b3 7fff cmp.w r3, #510 ; 0x1fe - 8006528: d9a6 bls.n 8006478 - } - //八点平均滤波 - for(i = 0;i < FFT_N-8;i++) - 800652a: 2300 movs r3, #0 - 800652c: 85fb strh r3, [r7, #46] ; 0x2e - 800652e: e0b2 b.n 8006696 - 8006530: 20000390 .word 0x20000390 - 8006534: 20001410 .word 0x20001410 - { - n_denom= ( s1[i].real+s1[i+1].real+ s1[i+2].real+ s1[i+3].real+ s1[i+4].real+ s1[i+5].real+ s1[i+6].real+ s1[i+7].real); - 8006538: 8dfb ldrh r3, [r7, #46] ; 0x2e - 800653a: 4a8d ldr r2, [pc, #564] ; (8006770 ) - 800653c: f852 2033 ldr.w r2, [r2, r3, lsl #3] - 8006540: 8dfb ldrh r3, [r7, #46] ; 0x2e - 8006542: 3301 adds r3, #1 - 8006544: 498a ldr r1, [pc, #552] ; (8006770 ) - 8006546: f851 3033 ldr.w r3, [r1, r3, lsl #3] - 800654a: 4619 mov r1, r3 - 800654c: 4610 mov r0, r2 - 800654e: f7fa fb5d bl 8000c0c <__addsf3> - 8006552: 4603 mov r3, r0 - 8006554: 4618 mov r0, r3 - 8006556: 8dfb ldrh r3, [r7, #46] ; 0x2e - 8006558: 3302 adds r3, #2 - 800655a: 4a85 ldr r2, [pc, #532] ; (8006770 ) - 800655c: f852 3033 ldr.w r3, [r2, r3, lsl #3] - 8006560: 4619 mov r1, r3 - 8006562: f7fa fb53 bl 8000c0c <__addsf3> - 8006566: 4603 mov r3, r0 - 8006568: 4618 mov r0, r3 - 800656a: 8dfb ldrh r3, [r7, #46] ; 0x2e - 800656c: 3303 adds r3, #3 - 800656e: 4a80 ldr r2, [pc, #512] ; (8006770 ) - 8006570: f852 3033 ldr.w r3, [r2, r3, lsl #3] - 8006574: 4619 mov r1, r3 - 8006576: f7fa fb49 bl 8000c0c <__addsf3> - 800657a: 4603 mov r3, r0 - 800657c: 4618 mov r0, r3 - 800657e: 8dfb ldrh r3, [r7, #46] ; 0x2e - 8006580: 3304 adds r3, #4 - 8006582: 4a7b ldr r2, [pc, #492] ; (8006770 ) - 8006584: f852 3033 ldr.w r3, [r2, r3, lsl #3] - 8006588: 4619 mov r1, r3 - 800658a: f7fa fb3f bl 8000c0c <__addsf3> - 800658e: 4603 mov r3, r0 - 8006590: 4618 mov r0, r3 - 8006592: 8dfb ldrh r3, [r7, #46] ; 0x2e - 8006594: 3305 adds r3, #5 - 8006596: 4a76 ldr r2, [pc, #472] ; (8006770 ) - 8006598: f852 3033 ldr.w r3, [r2, r3, lsl #3] - 800659c: 4619 mov r1, r3 - 800659e: f7fa fb35 bl 8000c0c <__addsf3> - 80065a2: 4603 mov r3, r0 - 80065a4: 4618 mov r0, r3 - 80065a6: 8dfb ldrh r3, [r7, #46] ; 0x2e - 80065a8: 3306 adds r3, #6 - 80065aa: 4a71 ldr r2, [pc, #452] ; (8006770 ) - 80065ac: f852 3033 ldr.w r3, [r2, r3, lsl #3] - 80065b0: 4619 mov r1, r3 - 80065b2: f7fa fb2b bl 8000c0c <__addsf3> - 80065b6: 4603 mov r3, r0 - 80065b8: 4618 mov r0, r3 - 80065ba: 8dfb ldrh r3, [r7, #46] ; 0x2e - 80065bc: 3307 adds r3, #7 - 80065be: 4a6c ldr r2, [pc, #432] ; (8006770 ) - 80065c0: f852 3033 ldr.w r3, [r2, r3, lsl #3] - 80065c4: 4619 mov r1, r3 - 80065c6: f7fa fb21 bl 8000c0c <__addsf3> - 80065ca: 4603 mov r3, r0 - 80065cc: 607b str r3, [r7, #4] - s1[i].real= n_denom/8.00; - 80065ce: 8dfc ldrh r4, [r7, #46] ; 0x2e - 80065d0: f04f 4182 mov.w r1, #1090519040 ; 0x41000000 - 80065d4: 6878 ldr r0, [r7, #4] - 80065d6: f7fa fcd5 bl 8000f84 <__aeabi_fdiv> - 80065da: 4603 mov r3, r0 - 80065dc: 461a mov r2, r3 - 80065de: 4b64 ldr r3, [pc, #400] ; (8006770 ) - 80065e0: f843 2034 str.w r2, [r3, r4, lsl #3] - - n_denom= ( s2[i].real+s2[i+1].real+ s2[i+2].real+ s2[i+3].real+ s2[i+4].real+ s2[i+5].real+ s2[i+6].real+ s2[i+7].real); - 80065e4: 8dfb ldrh r3, [r7, #46] ; 0x2e - 80065e6: 4a63 ldr r2, [pc, #396] ; (8006774 ) - 80065e8: f852 2033 ldr.w r2, [r2, r3, lsl #3] - 80065ec: 8dfb ldrh r3, [r7, #46] ; 0x2e - 80065ee: 3301 adds r3, #1 - 80065f0: 4960 ldr r1, [pc, #384] ; (8006774 ) - 80065f2: f851 3033 ldr.w r3, [r1, r3, lsl #3] - 80065f6: 4619 mov r1, r3 - 80065f8: 4610 mov r0, r2 - 80065fa: f7fa fb07 bl 8000c0c <__addsf3> - 80065fe: 4603 mov r3, r0 - 8006600: 4618 mov r0, r3 - 8006602: 8dfb ldrh r3, [r7, #46] ; 0x2e - 8006604: 3302 adds r3, #2 - 8006606: 4a5b ldr r2, [pc, #364] ; (8006774 ) - 8006608: f852 3033 ldr.w r3, [r2, r3, lsl #3] - 800660c: 4619 mov r1, r3 - 800660e: f7fa fafd bl 8000c0c <__addsf3> - 8006612: 4603 mov r3, r0 - 8006614: 4618 mov r0, r3 - 8006616: 8dfb ldrh r3, [r7, #46] ; 0x2e - 8006618: 3303 adds r3, #3 - 800661a: 4a56 ldr r2, [pc, #344] ; (8006774 ) - 800661c: f852 3033 ldr.w r3, [r2, r3, lsl #3] - 8006620: 4619 mov r1, r3 - 8006622: f7fa faf3 bl 8000c0c <__addsf3> - 8006626: 4603 mov r3, r0 - 8006628: 4618 mov r0, r3 - 800662a: 8dfb ldrh r3, [r7, #46] ; 0x2e - 800662c: 3304 adds r3, #4 - 800662e: 4a51 ldr r2, [pc, #324] ; (8006774 ) - 8006630: f852 3033 ldr.w r3, [r2, r3, lsl #3] - 8006634: 4619 mov r1, r3 - 8006636: f7fa fae9 bl 8000c0c <__addsf3> - 800663a: 4603 mov r3, r0 - 800663c: 4618 mov r0, r3 - 800663e: 8dfb ldrh r3, [r7, #46] ; 0x2e - 8006640: 3305 adds r3, #5 - 8006642: 4a4c ldr r2, [pc, #304] ; (8006774 ) - 8006644: f852 3033 ldr.w r3, [r2, r3, lsl #3] - 8006648: 4619 mov r1, r3 - 800664a: f7fa fadf bl 8000c0c <__addsf3> - 800664e: 4603 mov r3, r0 - 8006650: 4618 mov r0, r3 - 8006652: 8dfb ldrh r3, [r7, #46] ; 0x2e - 8006654: 3306 adds r3, #6 - 8006656: 4a47 ldr r2, [pc, #284] ; (8006774 ) - 8006658: f852 3033 ldr.w r3, [r2, r3, lsl #3] - 800665c: 4619 mov r1, r3 - 800665e: f7fa fad5 bl 8000c0c <__addsf3> - 8006662: 4603 mov r3, r0 - 8006664: 4618 mov r0, r3 - 8006666: 8dfb ldrh r3, [r7, #46] ; 0x2e - 8006668: 3307 adds r3, #7 - 800666a: 4a42 ldr r2, [pc, #264] ; (8006774 ) - 800666c: f852 3033 ldr.w r3, [r2, r3, lsl #3] - 8006670: 4619 mov r1, r3 - 8006672: f7fa facb bl 8000c0c <__addsf3> - 8006676: 4603 mov r3, r0 - 8006678: 607b str r3, [r7, #4] - s2[i].real= n_denom/8.00; - 800667a: 8dfc ldrh r4, [r7, #46] ; 0x2e - 800667c: f04f 4182 mov.w r1, #1090519040 ; 0x41000000 - 8006680: 6878 ldr r0, [r7, #4] - 8006682: f7fa fc7f bl 8000f84 <__aeabi_fdiv> - 8006686: 4603 mov r3, r0 - 8006688: 461a mov r2, r3 - 800668a: 4b3a ldr r3, [pc, #232] ; (8006774 ) - 800668c: f843 2034 str.w r2, [r3, r4, lsl #3] - for(i = 0;i < FFT_N-8;i++) - 8006690: 8dfb ldrh r3, [r7, #46] ; 0x2e - 8006692: 3301 adds r3, #1 - 8006694: 85fb strh r3, [r7, #46] ; 0x2e - 8006696: 8dfb ldrh r3, [r7, #46] ; 0x2e - 8006698: f5b3 7ffc cmp.w r3, #504 ; 0x1f8 - 800669c: f4ff af4c bcc.w 8006538 - } - //开始变换显示 - - //快速傅里叶变换 - FFT(s1); - 80066a0: 4833 ldr r0, [pc, #204] ; (8006770 ) - 80066a2: f7ff fd31 bl 8006108 - FFT(s2); - 80066a6: 4833 ldr r0, [pc, #204] ; (8006774 ) - 80066a8: f7ff fd2e bl 8006108 - //解平方 - for(i = 0;i < FFT_N;i++) - 80066ac: 2300 movs r3, #0 - 80066ae: 85fb strh r3, [r7, #46] ; 0x2e - 80066b0: e056 b.n 8006760 - { - s1[i].real=sqrtf(s1[i].real*s1[i].real+s1[i].imag*s1[i].imag); - 80066b2: 8dfb ldrh r3, [r7, #46] ; 0x2e - 80066b4: 4a2e ldr r2, [pc, #184] ; (8006770 ) - 80066b6: f852 2033 ldr.w r2, [r2, r3, lsl #3] - 80066ba: 8dfb ldrh r3, [r7, #46] ; 0x2e - 80066bc: 492c ldr r1, [pc, #176] ; (8006770 ) - 80066be: f851 3033 ldr.w r3, [r1, r3, lsl #3] - 80066c2: 4619 mov r1, r3 - 80066c4: 4610 mov r0, r2 - 80066c6: f7fa fba9 bl 8000e1c <__aeabi_fmul> - 80066ca: 4603 mov r3, r0 - 80066cc: 461c mov r4, r3 - 80066ce: 8dfb ldrh r3, [r7, #46] ; 0x2e - 80066d0: 4a27 ldr r2, [pc, #156] ; (8006770 ) - 80066d2: 00db lsls r3, r3, #3 - 80066d4: 4413 add r3, r2 - 80066d6: 685a ldr r2, [r3, #4] - 80066d8: 8dfb ldrh r3, [r7, #46] ; 0x2e - 80066da: 4925 ldr r1, [pc, #148] ; (8006770 ) - 80066dc: 00db lsls r3, r3, #3 - 80066de: 440b add r3, r1 - 80066e0: 685b ldr r3, [r3, #4] - 80066e2: 4619 mov r1, r3 - 80066e4: 4610 mov r0, r2 - 80066e6: f7fa fb99 bl 8000e1c <__aeabi_fmul> - 80066ea: 4603 mov r3, r0 - 80066ec: 4619 mov r1, r3 - 80066ee: 4620 mov r0, r4 - 80066f0: f7fa fa8c bl 8000c0c <__addsf3> - 80066f4: 4603 mov r3, r0 - 80066f6: 8dfc ldrh r4, [r7, #46] ; 0x2e - 80066f8: 4618 mov r0, r3 - 80066fa: f003 fc11 bl 8009f20 - 80066fe: 4603 mov r3, r0 - 8006700: 4a1b ldr r2, [pc, #108] ; (8006770 ) - 8006702: f842 3034 str.w r3, [r2, r4, lsl #3] - s1[i].real=sqrtf(s2[i].real*s2[i].real+s2[i].imag*s2[i].imag); - 8006706: 8dfb ldrh r3, [r7, #46] ; 0x2e - 8006708: 4a1a ldr r2, [pc, #104] ; (8006774 ) - 800670a: f852 2033 ldr.w r2, [r2, r3, lsl #3] - 800670e: 8dfb ldrh r3, [r7, #46] ; 0x2e - 8006710: 4918 ldr r1, [pc, #96] ; (8006774 ) - 8006712: f851 3033 ldr.w r3, [r1, r3, lsl #3] - 8006716: 4619 mov r1, r3 - 8006718: 4610 mov r0, r2 - 800671a: f7fa fb7f bl 8000e1c <__aeabi_fmul> - 800671e: 4603 mov r3, r0 - 8006720: 461c mov r4, r3 - 8006722: 8dfb ldrh r3, [r7, #46] ; 0x2e - 8006724: 4a13 ldr r2, [pc, #76] ; (8006774 ) - 8006726: 00db lsls r3, r3, #3 - 8006728: 4413 add r3, r2 - 800672a: 685a ldr r2, [r3, #4] - 800672c: 8dfb ldrh r3, [r7, #46] ; 0x2e - 800672e: 4911 ldr r1, [pc, #68] ; (8006774 ) - 8006730: 00db lsls r3, r3, #3 - 8006732: 440b add r3, r1 - 8006734: 685b ldr r3, [r3, #4] - 8006736: 4619 mov r1, r3 - 8006738: 4610 mov r0, r2 - 800673a: f7fa fb6f bl 8000e1c <__aeabi_fmul> - 800673e: 4603 mov r3, r0 - 8006740: 4619 mov r1, r3 - 8006742: 4620 mov r0, r4 - 8006744: f7fa fa62 bl 8000c0c <__addsf3> - 8006748: 4603 mov r3, r0 - 800674a: 8dfc ldrh r4, [r7, #46] ; 0x2e - 800674c: 4618 mov r0, r3 - 800674e: f003 fbe7 bl 8009f20 - 8006752: 4603 mov r3, r0 - 8006754: 4a06 ldr r2, [pc, #24] ; (8006770 ) - 8006756: f842 3034 str.w r3, [r2, r4, lsl #3] - for(i = 0;i < FFT_N;i++) - 800675a: 8dfb ldrh r3, [r7, #46] ; 0x2e - 800675c: 3301 adds r3, #1 - 800675e: 85fb strh r3, [r7, #46] ; 0x2e - 8006760: 8dfb ldrh r3, [r7, #46] ; 0x2e - 8006762: f5b3 7f00 cmp.w r3, #512 ; 0x200 - 8006766: d3a4 bcc.n 80066b2 - } - //计算交流分量 - for (i=1 ; i - 800676e: bf00 nop - 8006770: 20000390 .word 0x20000390 - 8006774: 20001410 .word 0x20001410 - { - ac_red += s1[i].real ; - 8006778: 8dfb ldrh r3, [r7, #46] ; 0x2e - 800677a: 4a57 ldr r2, [pc, #348] ; (80068d8 ) - 800677c: f852 3033 ldr.w r3, [r2, r3, lsl #3] - 8006780: 4619 mov r1, r3 - 8006782: 6a38 ldr r0, [r7, #32] - 8006784: f7fa fa42 bl 8000c0c <__addsf3> - 8006788: 4603 mov r3, r0 - 800678a: 623b str r3, [r7, #32] - ac_ir += s2[i].real ; - 800678c: 8dfb ldrh r3, [r7, #46] ; 0x2e - 800678e: 4a53 ldr r2, [pc, #332] ; (80068dc ) - 8006790: f852 3033 ldr.w r3, [r2, r3, lsl #3] - 8006794: 4619 mov r1, r3 - 8006796: 69f8 ldr r0, [r7, #28] - 8006798: f7fa fa38 bl 8000c0c <__addsf3> - 800679c: 4603 mov r3, r0 - 800679e: 61fb str r3, [r7, #28] - for (i=1 ; i - } - - //读取峰值点的横坐标 结果的物理意义为 - int s1_max_index = find_max_num_index(s1, 100); - 80067ae: 2164 movs r1, #100 ; 0x64 - 80067b0: 4849 ldr r0, [pc, #292] ; (80068d8 ) - 80067b2: f7ff fdc9 bl 8006348 - 80067b6: 61b8 str r0, [r7, #24] - int s2_max_index = find_max_num_index(s2, 100); - 80067b8: 2164 movs r1, #100 ; 0x64 - 80067ba: 4848 ldr r0, [pc, #288] ; (80068dc ) - 80067bc: f7ff fdc4 bl 8006348 - 80067c0: 6178 str r0, [r7, #20] - - - float Heart_Rate = 60.00 * ((100.0 * ((s1_max_index+s2_max_index)/2) )/ 512.00); - 80067c2: 69ba ldr r2, [r7, #24] - 80067c4: 697b ldr r3, [r7, #20] - 80067c6: 4413 add r3, r2 - 80067c8: 0fda lsrs r2, r3, #31 - 80067ca: 4413 add r3, r2 - 80067cc: 105b asrs r3, r3, #1 - 80067ce: 4618 mov r0, r3 - 80067d0: f7f9 fe84 bl 80004dc <__aeabi_i2d> - 80067d4: f04f 0200 mov.w r2, #0 - 80067d8: 4b41 ldr r3, [pc, #260] ; (80068e0 ) - 80067da: f7f9 fee9 bl 80005b0 <__aeabi_dmul> - 80067de: 4602 mov r2, r0 - 80067e0: 460b mov r3, r1 - 80067e2: 4610 mov r0, r2 - 80067e4: 4619 mov r1, r3 - 80067e6: f04f 0200 mov.w r2, #0 - 80067ea: f04f 4381 mov.w r3, #1082130432 ; 0x40800000 - 80067ee: f7fa f809 bl 8000804 <__aeabi_ddiv> - 80067f2: 4602 mov r2, r0 - 80067f4: 460b mov r3, r1 - 80067f6: 4610 mov r0, r2 - 80067f8: 4619 mov r1, r3 - 80067fa: f04f 0200 mov.w r2, #0 - 80067fe: 4b39 ldr r3, [pc, #228] ; (80068e4 ) - 8006800: f7f9 fed6 bl 80005b0 <__aeabi_dmul> - 8006804: 4602 mov r2, r0 - 8006806: 460b mov r3, r1 - 8006808: 4610 mov r0, r2 - 800680a: 4619 mov r1, r3 - 800680c: f7fa f9a8 bl 8000b60 <__aeabi_d2f> - 8006810: 4603 mov r3, r0 - 8006812: 613b str r3, [r7, #16] - - g_blooddata.heart = Heart_Rate; - 8006814: 6938 ldr r0, [r7, #16] - 8006816: f7fa fcdd bl 80011d4 <__aeabi_f2iz> - 800681a: 4603 mov r3, r0 - 800681c: 4a32 ldr r2, [pc, #200] ; (80068e8 ) - 800681e: 6013 str r3, [r2, #0] - - float R = (ac_ir*dc_red)/(ac_red*dc_ir); - 8006820: 6ab9 ldr r1, [r7, #40] ; 0x28 - 8006822: 69f8 ldr r0, [r7, #28] - 8006824: f7fa fafa bl 8000e1c <__aeabi_fmul> - 8006828: 4603 mov r3, r0 - 800682a: 461c mov r4, r3 - 800682c: 6a79 ldr r1, [r7, #36] ; 0x24 - 800682e: 6a38 ldr r0, [r7, #32] - 8006830: f7fa faf4 bl 8000e1c <__aeabi_fmul> - 8006834: 4603 mov r3, r0 - 8006836: 4619 mov r1, r3 - 8006838: 4620 mov r0, r4 - 800683a: f7fa fba3 bl 8000f84 <__aeabi_fdiv> - 800683e: 4603 mov r3, r0 - 8006840: 60fb str r3, [r7, #12] - float sp02_num =-45.060*R*R+ 30.354 *R + 94.845; - 8006842: 68f8 ldr r0, [r7, #12] - 8006844: f7f9 fe5c bl 8000500 <__aeabi_f2d> - 8006848: a31d add r3, pc, #116 ; (adr r3, 80068c0 ) - 800684a: e9d3 2300 ldrd r2, r3, [r3] - 800684e: f7f9 feaf bl 80005b0 <__aeabi_dmul> - 8006852: 4602 mov r2, r0 - 8006854: 460b mov r3, r1 - 8006856: 4614 mov r4, r2 - 8006858: 461d mov r5, r3 - 800685a: 68f8 ldr r0, [r7, #12] - 800685c: f7f9 fe50 bl 8000500 <__aeabi_f2d> - 8006860: 4602 mov r2, r0 - 8006862: 460b mov r3, r1 - 8006864: 4620 mov r0, r4 - 8006866: 4629 mov r1, r5 - 8006868: f7f9 fea2 bl 80005b0 <__aeabi_dmul> - 800686c: 4602 mov r2, r0 - 800686e: 460b mov r3, r1 - 8006870: 4614 mov r4, r2 - 8006872: 461d mov r5, r3 - 8006874: 68f8 ldr r0, [r7, #12] - 8006876: f7f9 fe43 bl 8000500 <__aeabi_f2d> - 800687a: a313 add r3, pc, #76 ; (adr r3, 80068c8 ) - 800687c: e9d3 2300 ldrd r2, r3, [r3] - 8006880: f7f9 fe96 bl 80005b0 <__aeabi_dmul> - 8006884: 4602 mov r2, r0 - 8006886: 460b mov r3, r1 - 8006888: 4620 mov r0, r4 - 800688a: 4629 mov r1, r5 - 800688c: f7f9 fcda bl 8000244 <__adddf3> - 8006890: 4602 mov r2, r0 - 8006892: 460b mov r3, r1 - 8006894: 4610 mov r0, r2 - 8006896: 4619 mov r1, r3 - 8006898: a30d add r3, pc, #52 ; (adr r3, 80068d0 ) - 800689a: e9d3 2300 ldrd r2, r3, [r3] - 800689e: f7f9 fcd1 bl 8000244 <__adddf3> - 80068a2: 4602 mov r2, r0 - 80068a4: 460b mov r3, r1 - 80068a6: 4610 mov r0, r2 - 80068a8: 4619 mov r1, r3 - 80068aa: f7fa f959 bl 8000b60 <__aeabi_d2f> - 80068ae: 4603 mov r3, r0 - 80068b0: 60bb str r3, [r7, #8] - g_blooddata.SpO2 = sp02_num; - 80068b2: 4a0d ldr r2, [pc, #52] ; (80068e8 ) - 80068b4: 68bb ldr r3, [r7, #8] - 80068b6: 6053 str r3, [r2, #4] +08006840 : } - 80068b8: bf00 nop - 80068ba: 3730 adds r7, #48 ; 0x30 - 80068bc: 46bd mov sp, r7 - 80068be: bdb0 pop {r4, r5, r7, pc} - 80068c0: 147ae148 .word 0x147ae148 - 80068c4: c04687ae .word 0xc04687ae - 80068c8: be76c8b4 .word 0xbe76c8b4 - 80068cc: 403e5a9f .word 0x403e5a9f - 80068d0: 7ae147ae .word 0x7ae147ae - 80068d4: 4057b614 .word 0x4057b614 - 80068d8: 20000390 .word 0x20000390 - 80068dc: 20001410 .word 0x20001410 - 80068e0: 40590000 .word 0x40590000 - 80068e4: 404e0000 .word 0x404e0000 - 80068e8: 20000204 .word 0x20000204 - -080068ec : - -char get_data_lock=0;; -char get_data_flag=0; -uint16_t g_fft_index = 0; //fft输入输出下标 -void APP_blood_loop() -{ - 80068ec: b580 push {r7, lr} - 80068ee: b082 sub sp, #8 - 80068f0: af02 add r7, sp, #8 - - if(get_data_lock==0) - 80068f2: 4b50 ldr r3, [pc, #320] ; (8006a34 ) - 80068f4: 781b ldrb r3, [r3, #0] - 80068f6: 2b00 cmp r3, #0 - 80068f8: d10b bne.n 8006912 - { - get_data_lock=1; - 80068fa: 4b4e ldr r3, [pc, #312] ; (8006a34 ) - 80068fc: 2201 movs r2, #1 - 80068fe: 701a strb r2, [r3, #0] - get_data_flag=0; - 8006900: 4b4d ldr r3, [pc, #308] ; (8006a38 ) - 8006902: 2200 movs r2, #0 - 8006904: 701a strb r2, [r3, #0] - g_fft_index = 0; - 8006906: 4b4d ldr r3, [pc, #308] ; (8006a3c ) - 8006908: 2200 movs r2, #0 - 800690a: 801a strh r2, [r3, #0] - HAL_TIM_Base_Start_IT(&htim6); - 800690c: 484c ldr r0, [pc, #304] ; (8006a40 ) - 800690e: f7fd f87b bl 8003a08 - } - if(get_data_flag==1) - 8006912: 4b49 ldr r3, [pc, #292] ; (8006a38 ) - 8006914: 781b ldrb r3, [r3, #0] - 8006916: 2b01 cmp r3, #1 - 8006918: d104 bne.n 8006924 - { - blood_data_translate(); - 800691a: f7ff fd49 bl 80063b0 - get_data_lock=0; - 800691e: 4b45 ldr r3, [pc, #276] ; (8006a34 ) - 8006920: 2200 movs r2, #0 - 8006922: 701a strb r2, [r3, #0] - } -*/ - //max30102_read_fifo(); - //blood_data_translate(); - - sprintf(blood_str,"fifo_red:%d",fifo_red); - 8006924: 4b47 ldr r3, [pc, #284] ; (8006a44 ) - 8006926: 881b ldrh r3, [r3, #0] - 8006928: 461a mov r2, r3 - 800692a: 4947 ldr r1, [pc, #284] ; (8006a48 ) - 800692c: 4847 ldr r0, [pc, #284] ; (8006a4c ) - 800692e: f001 f97d bl 8007c2c - LCD_ShowString(blood_win->x, blood_win->y+16, &blood_str, 16, WHITE, RED); - 8006932: 4b47 ldr r3, [pc, #284] ; (8006a50 ) - 8006934: 681b ldr r3, [r3, #0] - 8006936: 8818 ldrh r0, [r3, #0] - 8006938: 4b45 ldr r3, [pc, #276] ; (8006a50 ) - 800693a: 681b ldr r3, [r3, #0] - 800693c: 885b ldrh r3, [r3, #2] - 800693e: 3310 adds r3, #16 - 8006940: b299 uxth r1, r3 - 8006942: f44f 4378 mov.w r3, #63488 ; 0xf800 - 8006946: 9301 str r3, [sp, #4] - 8006948: f64f 73ff movw r3, #65535 ; 0xffff - 800694c: 9300 str r3, [sp, #0] - 800694e: 2310 movs r3, #16 - 8006950: 4a3e ldr r2, [pc, #248] ; (8006a4c ) - 8006952: f7fe fa01 bl 8004d58 - sprintf(blood_str,"fifo_ir:%d",fifo_ir); - 8006956: 4b3f ldr r3, [pc, #252] ; (8006a54 ) - 8006958: 881b ldrh r3, [r3, #0] - 800695a: 461a mov r2, r3 - 800695c: 493e ldr r1, [pc, #248] ; (8006a58 ) - 800695e: 483b ldr r0, [pc, #236] ; (8006a4c ) - 8006960: f001 f964 bl 8007c2c - LCD_ShowString(blood_win->x, blood_win->y+32, &blood_str, 16, WHITE, RED); - 8006964: 4b3a ldr r3, [pc, #232] ; (8006a50 ) - 8006966: 681b ldr r3, [r3, #0] - 8006968: 8818 ldrh r0, [r3, #0] - 800696a: 4b39 ldr r3, [pc, #228] ; (8006a50 ) - 800696c: 681b ldr r3, [r3, #0] - 800696e: 885b ldrh r3, [r3, #2] - 8006970: 3320 adds r3, #32 - 8006972: b299 uxth r1, r3 - 8006974: f44f 4378 mov.w r3, #63488 ; 0xf800 - 8006978: 9301 str r3, [sp, #4] - 800697a: f64f 73ff movw r3, #65535 ; 0xffff - 800697e: 9300 str r3, [sp, #0] - 8006980: 2310 movs r3, #16 - 8006982: 4a32 ldr r2, [pc, #200] ; (8006a4c ) - 8006984: f7fe f9e8 bl 8004d58 - - sprintf(blood_str,"heart:%04d",g_blooddata.heart); - 8006988: 4b34 ldr r3, [pc, #208] ; (8006a5c ) - 800698a: 681b ldr r3, [r3, #0] - 800698c: 461a mov r2, r3 - 800698e: 4934 ldr r1, [pc, #208] ; (8006a60 ) - 8006990: 482e ldr r0, [pc, #184] ; (8006a4c ) - 8006992: f001 f94b bl 8007c2c - LCD_ShowString(blood_win->x, blood_win->y+48, &blood_str, 16, WHITE, RED); - 8006996: 4b2e ldr r3, [pc, #184] ; (8006a50 ) - 8006998: 681b ldr r3, [r3, #0] - 800699a: 8818 ldrh r0, [r3, #0] - 800699c: 4b2c ldr r3, [pc, #176] ; (8006a50 ) - 800699e: 681b ldr r3, [r3, #0] - 80069a0: 885b ldrh r3, [r3, #2] - 80069a2: 3330 adds r3, #48 ; 0x30 - 80069a4: b299 uxth r1, r3 - 80069a6: f44f 4378 mov.w r3, #63488 ; 0xf800 - 80069aa: 9301 str r3, [sp, #4] - 80069ac: f64f 73ff movw r3, #65535 ; 0xffff - 80069b0: 9300 str r3, [sp, #0] - 80069b2: 2310 movs r3, #16 - 80069b4: 4a25 ldr r2, [pc, #148] ; (8006a4c ) - 80069b6: f7fe f9cf bl 8004d58 - sprintf(blood_str,"SpO2:%2.2f ",g_blooddata.SpO2); - 80069ba: 4b28 ldr r3, [pc, #160] ; (8006a5c ) - 80069bc: 685b ldr r3, [r3, #4] - 80069be: 4618 mov r0, r3 - 80069c0: f7f9 fd9e bl 8000500 <__aeabi_f2d> - 80069c4: 4602 mov r2, r0 - 80069c6: 460b mov r3, r1 - 80069c8: 4926 ldr r1, [pc, #152] ; (8006a64 ) - 80069ca: 4820 ldr r0, [pc, #128] ; (8006a4c ) - 80069cc: f001 f92e bl 8007c2c - LCD_ShowString(blood_win->x, blood_win->y+64, &blood_str, 16, WHITE, RED); - 80069d0: 4b1f ldr r3, [pc, #124] ; (8006a50 ) - 80069d2: 681b ldr r3, [r3, #0] - 80069d4: 8818 ldrh r0, [r3, #0] - 80069d6: 4b1e ldr r3, [pc, #120] ; (8006a50 ) - 80069d8: 681b ldr r3, [r3, #0] - 80069da: 885b ldrh r3, [r3, #2] - 80069dc: 3340 adds r3, #64 ; 0x40 - 80069de: b299 uxth r1, r3 - 80069e0: f44f 4378 mov.w r3, #63488 ; 0xf800 - 80069e4: 9301 str r3, [sp, #4] - 80069e6: f64f 73ff movw r3, #65535 ; 0xffff - 80069ea: 9300 str r3, [sp, #0] - 80069ec: 2310 movs r3, #16 - 80069ee: 4a17 ldr r2, [pc, #92] ; (8006a4c ) - 80069f0: f7fe f9b2 bl 8004d58 - sprintf(blood_str,"INT:%d",MAX30102_INTPin_Read()); - 80069f4: f44f 5100 mov.w r1, #8192 ; 0x2000 - 80069f8: 481b ldr r0, [pc, #108] ; (8006a68 ) - 80069fa: f7fb fb33 bl 8002064 - 80069fe: 4603 mov r3, r0 - 8006a00: 461a mov r2, r3 - 8006a02: 491a ldr r1, [pc, #104] ; (8006a6c ) - 8006a04: 4811 ldr r0, [pc, #68] ; (8006a4c ) - 8006a06: f001 f911 bl 8007c2c - LCD_ShowString(blood_win->x, blood_win->y+80, &blood_str, 16, WHITE, RED); - 8006a0a: 4b11 ldr r3, [pc, #68] ; (8006a50 ) - 8006a0c: 681b ldr r3, [r3, #0] - 8006a0e: 8818 ldrh r0, [r3, #0] - 8006a10: 4b0f ldr r3, [pc, #60] ; (8006a50 ) - 8006a12: 681b ldr r3, [r3, #0] - 8006a14: 885b ldrh r3, [r3, #2] - 8006a16: 3350 adds r3, #80 ; 0x50 - 8006a18: b299 uxth r1, r3 - 8006a1a: f44f 4378 mov.w r3, #63488 ; 0xf800 - 8006a1e: 9301 str r3, [sp, #4] - 8006a20: f64f 73ff movw r3, #65535 ; 0xffff - 8006a24: 9300 str r3, [sp, #0] - 8006a26: 2310 movs r3, #16 - 8006a28: 4a08 ldr r2, [pc, #32] ; (8006a4c ) - 8006a2a: f7fe f995 bl 8004d58 - - -} - 8006a2e: bf00 nop - 8006a30: 46bd mov sp, r7 - 8006a32: bd80 pop {r7, pc} - 8006a34: 2000020c .word 0x2000020c - 8006a38: 2000020d .word 0x2000020d - 8006a3c: 2000020e .word 0x2000020e - 8006a40: 200002b4 .word 0x200002b4 - 8006a44: 20002498 .word 0x20002498 - 8006a48: 0800a0e8 .word 0x0800a0e8 - 8006a4c: 20000348 .word 0x20000348 - 8006a50: 2000038c .word 0x2000038c - 8006a54: 20000388 .word 0x20000388 - 8006a58: 0800a0f4 .word 0x0800a0f4 - 8006a5c: 20000204 .word 0x20000204 - 8006a60: 0800a100 .word 0x0800a100 - 8006a64: 0800a10c .word 0x0800a10c - 8006a68: 40010c00 .word 0x40010c00 - 8006a6c: 0800a11c .word 0x0800a11c - -08006a70 : void HAL_TIM_PeriodElapsedCallback(TIM_HandleTypeDef *htim)//10us { - 8006a70: b590 push {r4, r7, lr} - 8006a72: b083 sub sp, #12 - 8006a74: af00 add r7, sp, #0 - 8006a76: 6078 str r0, [r7, #4] + 8006840: b590 push {r4, r7, lr} + 8006842: b083 sub sp, #12 + 8006844: af00 add r7, sp, #0 + 8006846: 6078 str r0, [r7, #4] if (htim == (&htim6)) - 8006a78: 687b ldr r3, [r7, #4] - 8006a7a: 4a21 ldr r2, [pc, #132] ; (8006b00 ) - 8006a7c: 4293 cmp r3, r2 - 8006a7e: d13a bne.n 8006af6 + 8006848: 687b ldr r3, [r7, #4] + 800684a: 4a21 ldr r2, [pc, #132] ; (80068d0 ) + 800684c: 4293 cmp r3, r2 + 800684e: d13a bne.n 80068c6 { max30102_read_fifo(); //read from MAX30102 FIFO2 - 8006a80: f7ff f840 bl 8005b04 + 8006850: f7ff ff76 bl 8006740 //将数据写入fft输入并清除输出 s1[g_fft_index].real = fifo_red; - 8006a84: 4b1f ldr r3, [pc, #124] ; (8006b04 ) - 8006a86: 881b ldrh r3, [r3, #0] - 8006a88: 4a1f ldr r2, [pc, #124] ; (8006b08 ) - 8006a8a: 8812 ldrh r2, [r2, #0] - 8006a8c: 4614 mov r4, r2 - 8006a8e: 4618 mov r0, r3 - 8006a90: f7fa f96c bl 8000d6c <__aeabi_ui2f> - 8006a94: 4603 mov r3, r0 - 8006a96: 4a1d ldr r2, [pc, #116] ; (8006b0c ) - 8006a98: f842 3034 str.w r3, [r2, r4, lsl #3] + 8006854: 4b1f ldr r3, [pc, #124] ; (80068d4 ) + 8006856: 881b ldrh r3, [r3, #0] + 8006858: 4a1f ldr r2, [pc, #124] ; (80068d8 ) + 800685a: 8812 ldrh r2, [r2, #0] + 800685c: 4614 mov r4, r2 + 800685e: 4618 mov r0, r3 + 8006860: f7fa fa84 bl 8000d6c <__aeabi_ui2f> + 8006864: 4603 mov r3, r0 + 8006866: 4a1d ldr r2, [pc, #116] ; (80068dc ) + 8006868: f842 3034 str.w r3, [r2, r4, lsl #3] s1[g_fft_index].imag= 0; - 8006a9c: 4b1a ldr r3, [pc, #104] ; (8006b08 ) - 8006a9e: 881b ldrh r3, [r3, #0] - 8006aa0: 4a1a ldr r2, [pc, #104] ; (8006b0c ) - 8006aa2: 00db lsls r3, r3, #3 - 8006aa4: 4413 add r3, r2 - 8006aa6: f04f 0200 mov.w r2, #0 - 8006aaa: 605a str r2, [r3, #4] + 800686c: 4b1a ldr r3, [pc, #104] ; (80068d8 ) + 800686e: 881b ldrh r3, [r3, #0] + 8006870: 4a1a ldr r2, [pc, #104] ; (80068dc ) + 8006872: 00db lsls r3, r3, #3 + 8006874: 4413 add r3, r2 + 8006876: f04f 0200 mov.w r2, #0 + 800687a: 605a str r2, [r3, #4] s2[g_fft_index].real = fifo_ir; - 8006aac: 4b18 ldr r3, [pc, #96] ; (8006b10 ) - 8006aae: 881b ldrh r3, [r3, #0] - 8006ab0: 4a15 ldr r2, [pc, #84] ; (8006b08 ) - 8006ab2: 8812 ldrh r2, [r2, #0] - 8006ab4: 4614 mov r4, r2 - 8006ab6: 4618 mov r0, r3 - 8006ab8: f7fa f958 bl 8000d6c <__aeabi_ui2f> - 8006abc: 4603 mov r3, r0 - 8006abe: 4a15 ldr r2, [pc, #84] ; (8006b14 ) - 8006ac0: f842 3034 str.w r3, [r2, r4, lsl #3] + 800687c: 4b18 ldr r3, [pc, #96] ; (80068e0 ) + 800687e: 881b ldrh r3, [r3, #0] + 8006880: 4a15 ldr r2, [pc, #84] ; (80068d8 ) + 8006882: 8812 ldrh r2, [r2, #0] + 8006884: 4614 mov r4, r2 + 8006886: 4618 mov r0, r3 + 8006888: f7fa fa70 bl 8000d6c <__aeabi_ui2f> + 800688c: 4603 mov r3, r0 + 800688e: 4a15 ldr r2, [pc, #84] ; (80068e4 ) + 8006890: f842 3034 str.w r3, [r2, r4, lsl #3] s2[g_fft_index].imag= 0; - 8006ac4: 4b10 ldr r3, [pc, #64] ; (8006b08 ) - 8006ac6: 881b ldrh r3, [r3, #0] - 8006ac8: 4a12 ldr r2, [pc, #72] ; (8006b14 ) - 8006aca: 00db lsls r3, r3, #3 - 8006acc: 4413 add r3, r2 - 8006ace: f04f 0200 mov.w r2, #0 - 8006ad2: 605a str r2, [r3, #4] + 8006894: 4b10 ldr r3, [pc, #64] ; (80068d8 ) + 8006896: 881b ldrh r3, [r3, #0] + 8006898: 4a12 ldr r2, [pc, #72] ; (80068e4 ) + 800689a: 00db lsls r3, r3, #3 + 800689c: 4413 add r3, r2 + 800689e: f04f 0200 mov.w r2, #0 + 80068a2: 605a str r2, [r3, #4] g_fft_index++; - 8006ad4: 4b0c ldr r3, [pc, #48] ; (8006b08 ) - 8006ad6: 881b ldrh r3, [r3, #0] - 8006ad8: 3301 adds r3, #1 - 8006ada: b29a uxth r2, r3 - 8006adc: 4b0a ldr r3, [pc, #40] ; (8006b08 ) - 8006ade: 801a strh r2, [r3, #0] + 80068a4: 4b0c ldr r3, [pc, #48] ; (80068d8 ) + 80068a6: 881b ldrh r3, [r3, #0] + 80068a8: 3301 adds r3, #1 + 80068aa: b29a uxth r2, r3 + 80068ac: 4b0a ldr r3, [pc, #40] ; (80068d8 ) + 80068ae: 801a strh r2, [r3, #0] if(g_fft_index>FFT_N) - 8006ae0: 4b09 ldr r3, [pc, #36] ; (8006b08 ) - 8006ae2: 881b ldrh r3, [r3, #0] - 8006ae4: f5b3 7f00 cmp.w r3, #512 ; 0x200 - 8006ae8: d905 bls.n 8006af6 + 80068b0: 4b09 ldr r3, [pc, #36] ; (80068d8 ) + 80068b2: 881b ldrh r3, [r3, #0] + 80068b4: f5b3 7f00 cmp.w r3, #512 ; 0x200 + 80068b8: d905 bls.n 80068c6 { get_data_flag=1; - 8006aea: 4b0b ldr r3, [pc, #44] ; (8006b18 ) - 8006aec: 2201 movs r2, #1 - 8006aee: 701a strb r2, [r3, #0] + 80068ba: 4b0b ldr r3, [pc, #44] ; (80068e8 ) + 80068bc: 2201 movs r2, #1 + 80068be: 701a strb r2, [r3, #0] HAL_TIM_Base_Stop_IT(&htim6); - 8006af0: 4803 ldr r0, [pc, #12] ; (8006b00 ) - 8006af2: f7fc ffe9 bl 8003ac8 + 80068c0: 4803 ldr r0, [pc, #12] ; (80068d0 ) + 80068c2: f7fd fe3f bl 8004544 } } } - 8006af6: bf00 nop - 8006af8: 370c adds r7, #12 - 8006afa: 46bd mov sp, r7 - 8006afc: bd90 pop {r4, r7, pc} - 8006afe: bf00 nop - 8006b00: 200002b4 .word 0x200002b4 - 8006b04: 20002498 .word 0x20002498 - 8006b08: 2000020e .word 0x2000020e - 8006b0c: 20000390 .word 0x20000390 - 8006b10: 20000388 .word 0x20000388 - 8006b14: 20001410 .word 0x20001410 - 8006b18: 2000020d .word 0x2000020d + 80068c6: bf00 nop + 80068c8: 370c adds r7, #12 + 80068ca: 46bd mov sp, r7 + 80068cc: bd90 pop {r4, r7, pc} + 80068ce: bf00 nop + 80068d0: 200002a8 .word 0x200002a8 + 80068d4: 200024e8 .word 0x200024e8 + 80068d8: 20000202 .word 0x20000202 + 80068dc: 200003e0 .word 0x200003e0 + 80068e0: 200003d8 .word 0x200003d8 + 80068e4: 20001460 .word 0x20001460 + 80068e8: 20000200 .word 0x20000200 -08006b1c : +080068ec : extern touch_device t0; task run_loop;//主循环状态机 void main_app() { - 8006b1c: b580 push {r7, lr} - 8006b1e: b096 sub sp, #88 ; 0x58 - 8006b20: af04 add r7, sp, #16 + 80068ec: b580 push {r7, lr} + 80068ee: b096 sub sp, #88 ; 0x58 + 80068f0: af04 add r7, sp, #16 char str[64]; LCDx_Init(); - 8006b22: f7fd fd75 bl 8004610 + 80068f2: f7fe fbcb bl 800508c EPPROM_SLOWWRITE_INIT(); - 8006b26: f7fe f955 bl 8004dd4 + 80068f6: f7fe ffab bl 8005850 + + if(HAL_GPIO_ReadPin(KEY3_GPIO_Port, KEY3_Pin)==0) + 80068fa: 2104 movs r1, #4 + 80068fc: 4819 ldr r0, [pc, #100] ; (8006964 ) + 80068fe: f7fb fbe3 bl 80020c8 + 8006902: 4603 mov r3, r0 + 8006904: 2b00 cmp r3, #0 + 8006906: d103 bne.n 8006910 + { + TP_adjustment(1); + 8006908: 2001 movs r0, #1 + 800690a: f7ff fc21 bl 8006150 + 800690e: e002 b.n 8006916 + }else + { + TP_adjustment(0); + 8006910: 2000 movs r0, #0 + 8006912: f7ff fc1d bl 8006150 + } - TP_adjustment(); - 8006b2a: f7fe fcb9 bl 80054a0 UI *ui=UI_Init(BLACK); - 8006b2e: 2000 movs r0, #0 - 8006b30: f000 f850 bl 8006bd4 - 8006b34: 6478 str r0, [r7, #68] ; 0x44 + 8006916: 2000 movs r0, #0 + 8006918: f000 f852 bl 80069c0 + 800691c: 6478 str r0, [r7, #68] ; 0x44 - APP_blood_init(New_Window(ui,10,10,128,128,WHITE,"MAX30102")); - 8006b36: 4b11 ldr r3, [pc, #68] ; (8006b7c ) - 8006b38: 9302 str r3, [sp, #8] - 8006b3a: f64f 73ff movw r3, #65535 ; 0xffff - 8006b3e: 9301 str r3, [sp, #4] - 8006b40: 2380 movs r3, #128 ; 0x80 - 8006b42: 9300 str r3, [sp, #0] - 8006b44: 2380 movs r3, #128 ; 0x80 - 8006b46: 220a movs r2, #10 - 8006b48: 210a movs r1, #10 - 8006b4a: 6c78 ldr r0, [r7, #68] ; 0x44 - 8006b4c: f000 f875 bl 8006c3a - 8006b50: 4603 mov r3, r0 - 8006b52: 4618 mov r0, r3 - 8006b54: f7ff f856 bl 8005c04 + //APP_blood_init(New_Window(ui,10,10,128,128,WHITE,"MAX30102")); - //New_Window(ui,25,30,150,100,GREEN,"GREEN"); + APP_IDcard_init(New_Window(ui,25,30,150,100,GREEN,"IDcard")); + 800691e: 4b12 ldr r3, [pc, #72] ; (8006968 ) + 8006920: 9302 str r3, [sp, #8] + 8006922: f44f 63fc mov.w r3, #2016 ; 0x7e0 + 8006926: 9301 str r3, [sp, #4] + 8006928: 2364 movs r3, #100 ; 0x64 + 800692a: 9300 str r3, [sp, #0] + 800692c: 2396 movs r3, #150 ; 0x96 + 800692e: 221e movs r2, #30 + 8006930: 2119 movs r1, #25 + 8006932: 6c78 ldr r0, [r7, #68] ; 0x44 + 8006934: f000 f877 bl 8006a26 + 8006938: 4603 mov r3, r0 + 800693a: 4618 mov r0, r3 + 800693c: f7ff feea bl 8006714 //New_Window(ui,80,80,60,90,YELLOW,"YELLOW"); //New_Window(ui,120,90,70,60,MAGENTA,"MAGENTA"); ui->refresh_ui_flag=1; - 8006b58: 6c7a ldr r2, [r7, #68] ; 0x44 - 8006b5a: f892 3020 ldrb.w r3, [r2, #32] - 8006b5e: f043 0304 orr.w r3, r3, #4 - 8006b62: f882 3020 strb.w r3, [r2, #32] - } + 8006940: 6c7a ldr r2, [r7, #68] ; 0x44 + 8006942: f892 3020 ldrb.w r3, [r2, #32] + 8006946: f043 0304 orr.w r3, r3, #4 + 800694a: f882 3020 strb.w r3, [r2, #32] */ // 交叉编译测试 - APP_blood_loop(); - 8006b66: f7ff fec1 bl 80068ec + //APP_blood_loop(); + APP_IDcard_loop(); + 800694e: f7ff fef1 bl 8006734 UI_Server(ui); - 8006b6a: 6c78 ldr r0, [r7, #68] ; 0x44 - 8006b6c: f000 fa0c bl 8006f88 + 8006952: 6c78 ldr r0, [r7, #68] ; 0x44 + 8006954: f000 fa0e bl 8006d74 TP_Server(); - 8006b70: f7fe fbc2 bl 80052f8 + 8006958: f7ff fb26 bl 8005fa8 EEPROM_SLOWWRITE_SERVER(); - 8006b74: f7fe f948 bl 8004e08 + 800695c: f7fe ff92 bl 8005884 { - 8006b78: e7f5 b.n 8006b66 - 8006b7a: bf00 nop - 8006b7c: 0800a124 .word 0x0800a124 + 8006960: e7f5 b.n 800694e + 8006962: bf00 nop + 8006964: 40011800 .word 0x40011800 + 8006968: 08009df0 .word 0x08009df0 -08006b80 : +0800696c : #include "touch.h" extern touch_device t0; //接口 //设置屏幕像素坐标 void Inteface_SetCursor(uint16_t Xpos, uint16_t Ypos) { - 8006b80: b580 push {r7, lr} - 8006b82: b082 sub sp, #8 - 8006b84: af00 add r7, sp, #0 - 8006b86: 4603 mov r3, r0 - 8006b88: 460a mov r2, r1 - 8006b8a: 80fb strh r3, [r7, #6] - 8006b8c: 4613 mov r3, r2 - 8006b8e: 80bb strh r3, [r7, #4] + 800696c: b580 push {r7, lr} + 800696e: b082 sub sp, #8 + 8006970: af00 add r7, sp, #0 + 8006972: 4603 mov r3, r0 + 8006974: 460a mov r2, r1 + 8006976: 80fb strh r3, [r7, #6] + 8006978: 4613 mov r3, r2 + 800697a: 80bb strh r3, [r7, #4] LCD_SetCursor(Xpos,Ypos); //设置光标位置 - 8006b90: 88ba ldrh r2, [r7, #4] - 8006b92: 88fb ldrh r3, [r7, #6] - 8006b94: 4611 mov r1, r2 - 8006b96: 4618 mov r0, r3 - 8006b98: f7fd fe30 bl 80047fc + 800697c: 88ba ldrh r2, [r7, #4] + 800697e: 88fb ldrh r3, [r7, #6] + 8006980: 4611 mov r1, r2 + 8006982: 4618 mov r0, r3 + 8006984: f7fe fc78 bl 8005278 LCD_REG_ADDRESS=lcddev.wramcmd; //开始写入GRAM - 8006b9c: 4b04 ldr r3, [pc, #16] ; (8006bb0 ) - 8006b9e: 79da ldrb r2, [r3, #7] - 8006ba0: f04f 43d8 mov.w r3, #1811939328 ; 0x6c000000 - 8006ba4: b292 uxth r2, r2 - 8006ba6: 801a strh r2, [r3, #0] + 8006988: 4b04 ldr r3, [pc, #16] ; (800699c ) + 800698a: 79da ldrb r2, [r3, #7] + 800698c: f04f 43d8 mov.w r3, #1811939328 ; 0x6c000000 + 8006990: b292 uxth r2, r2 + 8006992: 801a strh r2, [r3, #0] } - 8006ba8: bf00 nop - 8006baa: 3708 adds r7, #8 - 8006bac: 46bd mov sp, r7 - 8006bae: bd80 pop {r7, pc} - 8006bb0: 20000300 .word 0x20000300 + 8006994: bf00 nop + 8006996: 3708 adds r7, #8 + 8006998: 46bd mov sp, r7 + 800699a: bd80 pop {r7, pc} + 800699c: 2000034c .word 0x2000034c -08006bb4 : +080069a0 : //往像素坐标写入一个颜色 void Inteface_SetColor(uint16_t color) { - 8006bb4: b480 push {r7} - 8006bb6: b083 sub sp, #12 - 8006bb8: af00 add r7, sp, #0 - 8006bba: 4603 mov r3, r0 - 8006bbc: 80fb strh r3, [r7, #6] + 80069a0: b480 push {r7} + 80069a2: b083 sub sp, #12 + 80069a4: af00 add r7, sp, #0 + 80069a6: 4603 mov r3, r0 + 80069a8: 80fb strh r3, [r7, #6] LCD_DATA_ADDRESS=color; - 8006bbe: 4a04 ldr r2, [pc, #16] ; (8006bd0 ) - 8006bc0: 88fb ldrh r3, [r7, #6] - 8006bc2: 8013 strh r3, [r2, #0] + 80069aa: 4a04 ldr r2, [pc, #16] ; (80069bc ) + 80069ac: 88fb ldrh r3, [r7, #6] + 80069ae: 8013 strh r3, [r2, #0] } - 8006bc4: bf00 nop - 8006bc6: 370c adds r7, #12 - 8006bc8: 46bd mov sp, r7 - 8006bca: bc80 pop {r7} - 8006bcc: 4770 bx lr - 8006bce: bf00 nop - 8006bd0: 6c000800 .word 0x6c000800 + 80069b0: bf00 nop + 80069b2: 370c adds r7, #12 + 80069b4: 46bd mov sp, r7 + 80069b6: bc80 pop {r7} + 80069b8: 4770 bx lr + 80069ba: bf00 nop + 80069bc: 6c000800 .word 0x6c000800 -08006bd4 : +080069c0 : //新建一个UI对象 //当时都想法是类似windows的多桌面,每个桌面都能有n个窗口 UI *UI_Init(COLOR_16 background) { - 8006bd4: b580 push {r7, lr} - 8006bd6: b084 sub sp, #16 - 8006bd8: af00 add r7, sp, #0 - 8006bda: 6078 str r0, [r7, #4] + 80069c0: b580 push {r7, lr} + 80069c2: b084 sub sp, #16 + 80069c4: af00 add r7, sp, #0 + 80069c6: 6078 str r0, [r7, #4] UI *ui; ui = (UI*)malloc(sizeof(UI)); - 8006bdc: 2024 movs r0, #36 ; 0x24 - 8006bde: f000 faf7 bl 80071d0 - 8006be2: 4603 mov r3, r0 - 8006be4: 60fb str r3, [r7, #12] + 80069c8: 2024 movs r0, #36 ; 0x24 + 80069ca: f000 faf7 bl 8006fbc + 80069ce: 4603 mov r3, r0 + 80069d0: 60fb str r3, [r7, #12] if(ui!=NULL) - 8006be6: 68fb ldr r3, [r7, #12] - 8006be8: 2b00 cmp r3, #0 - 8006bea: d021 beq.n 8006c30 + 80069d2: 68fb ldr r3, [r7, #12] + 80069d4: 2b00 cmp r3, #0 + 80069d6: d021 beq.n 8006a1c { ui->x=0; - 8006bec: 68fb ldr r3, [r7, #12] - 8006bee: 2200 movs r2, #0 - 8006bf0: 809a strh r2, [r3, #4] + 80069d8: 68fb ldr r3, [r7, #12] + 80069da: 2200 movs r2, #0 + 80069dc: 809a strh r2, [r3, #4] ui->y=0; - 8006bf2: 68fb ldr r3, [r7, #12] - 8006bf4: 2200 movs r2, #0 - 8006bf6: 80da strh r2, [r3, #6] + 80069de: 68fb ldr r3, [r7, #12] + 80069e0: 2200 movs r2, #0 + 80069e2: 80da strh r2, [r3, #6] ui->high=240; - 8006bf8: 68fb ldr r3, [r7, #12] - 8006bfa: 22f0 movs r2, #240 ; 0xf0 - 8006bfc: 815a strh r2, [r3, #10] + 80069e4: 68fb ldr r3, [r7, #12] + 80069e6: 22f0 movs r2, #240 ; 0xf0 + 80069e8: 815a strh r2, [r3, #10] ui->width=320; - 8006bfe: 68fb ldr r3, [r7, #12] - 8006c00: f44f 72a0 mov.w r2, #320 ; 0x140 - 8006c04: 811a strh r2, [r3, #8] + 80069ea: 68fb ldr r3, [r7, #12] + 80069ec: f44f 72a0 mov.w r2, #320 ; 0x140 + 80069f0: 811a strh r2, [r3, #8] ui->background=background; - 8006c06: 68fb ldr r3, [r7, #12] - 8006c08: 687a ldr r2, [r7, #4] - 8006c0a: 601a str r2, [r3, #0] + 80069f2: 68fb ldr r3, [r7, #12] + 80069f4: 687a ldr r2, [r7, #4] + 80069f6: 601a str r2, [r3, #0] ui->windows=NULL; - 8006c0c: 68fb ldr r3, [r7, #12] - 8006c0e: 2200 movs r2, #0 - 8006c10: 60da str r2, [r3, #12] + 80069f8: 68fb ldr r3, [r7, #12] + 80069fa: 2200 movs r2, #0 + 80069fc: 60da str r2, [r3, #12] ui->last_windows=NULL; - 8006c12: 68fb ldr r3, [r7, #12] - 8006c14: 2200 movs r2, #0 - 8006c16: 611a str r2, [r3, #16] + 80069fe: 68fb ldr r3, [r7, #12] + 8006a00: 2200 movs r2, #0 + 8006a02: 611a str r2, [r3, #16] ui->refresh_ui_flag=1; - 8006c18: 68fa ldr r2, [r7, #12] - 8006c1a: f892 3020 ldrb.w r3, [r2, #32] - 8006c1e: f043 0304 orr.w r3, r3, #4 - 8006c22: f882 3020 strb.w r3, [r2, #32] + 8006a04: 68fa ldr r2, [r7, #12] + 8006a06: f892 3020 ldrb.w r3, [r2, #32] + 8006a0a: f043 0304 orr.w r3, r3, #4 + 8006a0e: f882 3020 strb.w r3, [r2, #32] ui->moveed_windwos=NULL; - 8006c26: 68fb ldr r3, [r7, #12] - 8006c28: 2200 movs r2, #0 - 8006c2a: 615a str r2, [r3, #20] + 8006a12: 68fb ldr r3, [r7, #12] + 8006a14: 2200 movs r2, #0 + 8006a16: 615a str r2, [r3, #20] ui->touch->acc_y=0; } */ return ui; - 8006c2c: 68fb ldr r3, [r7, #12] - 8006c2e: e000 b.n 8006c32 + 8006a18: 68fb ldr r3, [r7, #12] + 8006a1a: e000 b.n 8006a1e } return NULL; - 8006c30: 2300 movs r3, #0 + 8006a1c: 2300 movs r3, #0 } - 8006c32: 4618 mov r0, r3 - 8006c34: 3710 adds r7, #16 - 8006c36: 46bd mov sp, r7 - 8006c38: bd80 pop {r7, pc} + 8006a1e: 4618 mov r0, r3 + 8006a20: 3710 adds r7, #16 + 8006a22: 46bd mov sp, r7 + 8006a24: bd80 pop {r7, pc} -08006c3a : +08006a26 : //新建一个窗口 //返回窗口的指针 //将窗口挂载到某个ui window *New_Window(UI *ui,uint16_t x,uint16_t y,uint16_t width,uint16_t high,COLOR_16 background,const char *title) { - 8006c3a: b580 push {r7, lr} - 8006c3c: b088 sub sp, #32 - 8006c3e: af00 add r7, sp, #0 - 8006c40: 60f8 str r0, [r7, #12] - 8006c42: 4608 mov r0, r1 - 8006c44: 4611 mov r1, r2 - 8006c46: 461a mov r2, r3 - 8006c48: 4603 mov r3, r0 - 8006c4a: 817b strh r3, [r7, #10] - 8006c4c: 460b mov r3, r1 - 8006c4e: 813b strh r3, [r7, #8] - 8006c50: 4613 mov r3, r2 - 8006c52: 80fb strh r3, [r7, #6] + 8006a26: b580 push {r7, lr} + 8006a28: b088 sub sp, #32 + 8006a2a: af00 add r7, sp, #0 + 8006a2c: 60f8 str r0, [r7, #12] + 8006a2e: 4608 mov r0, r1 + 8006a30: 4611 mov r1, r2 + 8006a32: 461a mov r2, r3 + 8006a34: 4603 mov r3, r0 + 8006a36: 817b strh r3, [r7, #10] + 8006a38: 460b mov r3, r1 + 8006a3a: 813b strh r3, [r7, #8] + 8006a3c: 4613 mov r3, r2 + 8006a3e: 80fb strh r3, [r7, #6] window *temp_window; temp_window = (window*)malloc(sizeof(window)); - 8006c54: 201c movs r0, #28 - 8006c56: f000 fabb bl 80071d0 - 8006c5a: 4603 mov r3, r0 - 8006c5c: 617b str r3, [r7, #20] + 8006a40: 201c movs r0, #28 + 8006a42: f000 fabb bl 8006fbc + 8006a46: 4603 mov r3, r0 + 8006a48: 617b str r3, [r7, #20] if(temp_window!=NULL) - 8006c5e: 697b ldr r3, [r7, #20] - 8006c60: 2b00 cmp r3, #0 - 8006c62: d022 beq.n 8006caa + 8006a4a: 697b ldr r3, [r7, #20] + 8006a4c: 2b00 cmp r3, #0 + 8006a4e: d022 beq.n 8006a96 { temp_window->background=background; - 8006c64: 697b ldr r3, [r7, #20] - 8006c66: 6afa ldr r2, [r7, #44] ; 0x2c - 8006c68: 609a str r2, [r3, #8] + 8006a50: 697b ldr r3, [r7, #20] + 8006a52: 6afa ldr r2, [r7, #44] ; 0x2c + 8006a54: 609a str r2, [r3, #8] temp_window->high=high; - 8006c6a: 697b ldr r3, [r7, #20] - 8006c6c: 8d3a ldrh r2, [r7, #40] ; 0x28 - 8006c6e: 80da strh r2, [r3, #6] + 8006a56: 697b ldr r3, [r7, #20] + 8006a58: 8d3a ldrh r2, [r7, #40] ; 0x28 + 8006a5a: 80da strh r2, [r3, #6] temp_window->width=width; - 8006c70: 697b ldr r3, [r7, #20] - 8006c72: 88fa ldrh r2, [r7, #6] - 8006c74: 809a strh r2, [r3, #4] + 8006a5c: 697b ldr r3, [r7, #20] + 8006a5e: 88fa ldrh r2, [r7, #6] + 8006a60: 809a strh r2, [r3, #4] temp_window->x=x; - 8006c76: 697b ldr r3, [r7, #20] - 8006c78: 897a ldrh r2, [r7, #10] - 8006c7a: 801a strh r2, [r3, #0] + 8006a62: 697b ldr r3, [r7, #20] + 8006a64: 897a ldrh r2, [r7, #10] + 8006a66: 801a strh r2, [r3, #0] temp_window->y=y; - 8006c7c: 697b ldr r3, [r7, #20] - 8006c7e: 893a ldrh r2, [r7, #8] - 8006c80: 805a strh r2, [r3, #2] + 8006a68: 697b ldr r3, [r7, #20] + 8006a6a: 893a ldrh r2, [r7, #8] + 8006a6c: 805a strh r2, [r3, #2] for(int a=0;a<16;a++) - 8006c82: 2300 movs r3, #0 - 8006c84: 61fb str r3, [r7, #28] - 8006c86: e00c b.n 8006ca2 + 8006a6e: 2300 movs r3, #0 + 8006a70: 61fb str r3, [r7, #28] + 8006a72: e00c b.n 8006a8e { temp_window->title[a]=title[a]; - 8006c88: 69fb ldr r3, [r7, #28] - 8006c8a: 6b3a ldr r2, [r7, #48] ; 0x30 - 8006c8c: 4413 add r3, r2 - 8006c8e: 7819 ldrb r1, [r3, #0] - 8006c90: 697a ldr r2, [r7, #20] - 8006c92: 69fb ldr r3, [r7, #28] - 8006c94: 4413 add r3, r2 - 8006c96: 330c adds r3, #12 - 8006c98: 460a mov r2, r1 - 8006c9a: 701a strb r2, [r3, #0] + 8006a74: 69fb ldr r3, [r7, #28] + 8006a76: 6b3a ldr r2, [r7, #48] ; 0x30 + 8006a78: 4413 add r3, r2 + 8006a7a: 7819 ldrb r1, [r3, #0] + 8006a7c: 697a ldr r2, [r7, #20] + 8006a7e: 69fb ldr r3, [r7, #28] + 8006a80: 4413 add r3, r2 + 8006a82: 330c adds r3, #12 + 8006a84: 460a mov r2, r1 + 8006a86: 701a strb r2, [r3, #0] for(int a=0;a<16;a++) - 8006c9c: 69fb ldr r3, [r7, #28] - 8006c9e: 3301 adds r3, #1 - 8006ca0: 61fb str r3, [r7, #28] - 8006ca2: 69fb ldr r3, [r7, #28] - 8006ca4: 2b0f cmp r3, #15 - 8006ca6: ddef ble.n 8006c88 - 8006ca8: e001 b.n 8006cae + 8006a88: 69fb ldr r3, [r7, #28] + 8006a8a: 3301 adds r3, #1 + 8006a8c: 61fb str r3, [r7, #28] + 8006a8e: 69fb ldr r3, [r7, #28] + 8006a90: 2b0f cmp r3, #15 + 8006a92: ddef ble.n 8006a74 + 8006a94: e001 b.n 8006a9a } }else{return NULL;} - 8006caa: 2300 movs r3, #0 - 8006cac: e02a b.n 8006d04 + 8006a96: 2300 movs r3, #0 + 8006a98: e02a b.n 8006af0 windows_stack *temp_windows_stack; temp_windows_stack=ui->last_windows; - 8006cae: 68fb ldr r3, [r7, #12] - 8006cb0: 691b ldr r3, [r3, #16] - 8006cb2: 61bb str r3, [r7, #24] + 8006a9a: 68fb ldr r3, [r7, #12] + 8006a9c: 691b ldr r3, [r3, #16] + 8006a9e: 61bb str r3, [r7, #24] if(temp_windows_stack==NULL) - 8006cb4: 69bb ldr r3, [r7, #24] - 8006cb6: 2b00 cmp r3, #0 - 8006cb8: d10b bne.n 8006cd2 + 8006aa0: 69bb ldr r3, [r7, #24] + 8006aa2: 2b00 cmp r3, #0 + 8006aa4: d10b bne.n 8006abe { temp_windows_stack=(windows_stack*)malloc(sizeof(windows_stack)); - 8006cba: 200c movs r0, #12 - 8006cbc: f000 fa88 bl 80071d0 - 8006cc0: 4603 mov r3, r0 - 8006cc2: 61bb str r3, [r7, #24] + 8006aa6: 200c movs r0, #12 + 8006aa8: f000 fa88 bl 8006fbc + 8006aac: 4603 mov r3, r0 + 8006aae: 61bb str r3, [r7, #24] temp_windows_stack->up=NULL; - 8006cc4: 69bb ldr r3, [r7, #24] - 8006cc6: 2200 movs r2, #0 - 8006cc8: 601a str r2, [r3, #0] + 8006ab0: 69bb ldr r3, [r7, #24] + 8006ab2: 2200 movs r2, #0 + 8006ab4: 601a str r2, [r3, #0] ui->windows=temp_windows_stack; - 8006cca: 68fb ldr r3, [r7, #12] - 8006ccc: 69ba ldr r2, [r7, #24] - 8006cce: 60da str r2, [r3, #12] - 8006cd0: e00e b.n 8006cf0 + 8006ab6: 68fb ldr r3, [r7, #12] + 8006ab8: 69ba ldr r2, [r7, #24] + 8006aba: 60da str r2, [r3, #12] + 8006abc: e00e b.n 8006adc while(temp_windows_stack->next!=NULL) { temp_windows_stack=temp_windows_stack->next; } */ windows_stack *up=temp_windows_stack;//备份当前对象指针 - 8006cd2: 69bb ldr r3, [r7, #24] - 8006cd4: 613b str r3, [r7, #16] + 8006abe: 69bb ldr r3, [r7, #24] + 8006ac0: 613b str r3, [r7, #16] temp_windows_stack->next=(windows_stack*)malloc(sizeof(windows_stack)); - 8006cd6: 200c movs r0, #12 - 8006cd8: f000 fa7a bl 80071d0 - 8006cdc: 4603 mov r3, r0 - 8006cde: 461a mov r2, r3 - 8006ce0: 69bb ldr r3, [r7, #24] - 8006ce2: 609a str r2, [r3, #8] + 8006ac2: 200c movs r0, #12 + 8006ac4: f000 fa7a bl 8006fbc + 8006ac8: 4603 mov r3, r0 + 8006aca: 461a mov r2, r3 + 8006acc: 69bb ldr r3, [r7, #24] + 8006ace: 609a str r2, [r3, #8] temp_windows_stack=temp_windows_stack->next; - 8006ce4: 69bb ldr r3, [r7, #24] - 8006ce6: 689b ldr r3, [r3, #8] - 8006ce8: 61bb str r3, [r7, #24] + 8006ad0: 69bb ldr r3, [r7, #24] + 8006ad2: 689b ldr r3, [r3, #8] + 8006ad4: 61bb str r3, [r7, #24] temp_windows_stack->up=up; - 8006cea: 69bb ldr r3, [r7, #24] - 8006cec: 693a ldr r2, [r7, #16] - 8006cee: 601a str r2, [r3, #0] + 8006ad6: 69bb ldr r3, [r7, #24] + 8006ad8: 693a ldr r2, [r7, #16] + 8006ada: 601a str r2, [r3, #0] } temp_windows_stack->next=NULL; - 8006cf0: 69bb ldr r3, [r7, #24] - 8006cf2: 2200 movs r2, #0 - 8006cf4: 609a str r2, [r3, #8] + 8006adc: 69bb ldr r3, [r7, #24] + 8006ade: 2200 movs r2, #0 + 8006ae0: 609a str r2, [r3, #8] temp_windows_stack->window=temp_window; - 8006cf6: 69bb ldr r3, [r7, #24] - 8006cf8: 697a ldr r2, [r7, #20] - 8006cfa: 605a str r2, [r3, #4] + 8006ae2: 69bb ldr r3, [r7, #24] + 8006ae4: 697a ldr r2, [r7, #20] + 8006ae6: 605a str r2, [r3, #4] ui->last_windows=temp_windows_stack; - 8006cfc: 68fb ldr r3, [r7, #12] - 8006cfe: 69ba ldr r2, [r7, #24] - 8006d00: 611a str r2, [r3, #16] + 8006ae8: 68fb ldr r3, [r7, #12] + 8006aea: 69ba ldr r2, [r7, #24] + 8006aec: 611a str r2, [r3, #16] return temp_window; - 8006d02: 697b ldr r3, [r7, #20] + 8006aee: 697b ldr r3, [r7, #20] } - 8006d04: 4618 mov r0, r3 - 8006d06: 3720 adds r7, #32 - 8006d08: 46bd mov sp, r7 - 8006d0a: bd80 pop {r7, pc} + 8006af0: 4618 mov r0, r3 + 8006af2: 3720 adds r7, #32 + 8006af4: 46bd mov sp, r7 + 8006af6: bd80 pop {r7, pc} -08006d0c : +08006af8 : temp_window->y=temp_window->y+acc_y; } //显示一个窗口 void Refresh_Window(UI *ui,window *temp_window) { - 8006d0c: b580 push {r7, lr} - 8006d0e: b088 sub sp, #32 - 8006d10: af02 add r7, sp, #8 - 8006d12: 6078 str r0, [r7, #4] - 8006d14: 6039 str r1, [r7, #0] + 8006af8: b580 push {r7, lr} + 8006afa: b088 sub sp, #32 + 8006afc: af02 add r7, sp, #8 + 8006afe: 6078 str r0, [r7, #4] + 8006b00: 6039 str r1, [r7, #0] //开始绘制窗口//填充窗口背景 int x,y; char z; for(uint16_t temp_y=0;temp_yhigh;temp_y++) - 8006d16: 2300 movs r3, #0 - 8006d18: 82bb strh r3, [r7, #20] - 8006d1a: e063 b.n 8006de4 + 8006b02: 2300 movs r3, #0 + 8006b04: 82bb strh r3, [r7, #20] + 8006b06: e063 b.n 8006bd0 { z=1; - 8006d1c: 2301 movs r3, #1 - 8006d1e: 75fb strb r3, [r7, #23] + 8006b08: 2301 movs r3, #1 + 8006b0a: 75fb strb r3, [r7, #23] for(uint16_t temp_i=0;temp_iwidth;temp_i++) - 8006d20: 2300 movs r3, #0 - 8006d22: 827b strh r3, [r7, #18] - 8006d24: e056 b.n 8006dd4 + 8006b0c: 2300 movs r3, #0 + 8006b0e: 827b strh r3, [r7, #18] + 8006b10: e056 b.n 8006bc0 { x=temp_window->x+temp_i; - 8006d26: 683b ldr r3, [r7, #0] - 8006d28: 881b ldrh r3, [r3, #0] - 8006d2a: 461a mov r2, r3 - 8006d2c: 8a7b ldrh r3, [r7, #18] - 8006d2e: 4413 add r3, r2 - 8006d30: 60fb str r3, [r7, #12] + 8006b12: 683b ldr r3, [r7, #0] + 8006b14: 881b ldrh r3, [r3, #0] + 8006b16: 461a mov r2, r3 + 8006b18: 8a7b ldrh r3, [r7, #18] + 8006b1a: 4413 add r3, r2 + 8006b1c: 60fb str r3, [r7, #12] y=temp_window->y+temp_y; - 8006d32: 683b ldr r3, [r7, #0] - 8006d34: 885b ldrh r3, [r3, #2] - 8006d36: 461a mov r2, r3 - 8006d38: 8abb ldrh r3, [r7, #20] - 8006d3a: 4413 add r3, r2 - 8006d3c: 60bb str r3, [r7, #8] + 8006b1e: 683b ldr r3, [r7, #0] + 8006b20: 885b ldrh r3, [r3, #2] + 8006b22: 461a mov r2, r3 + 8006b24: 8abb ldrh r3, [r7, #20] + 8006b26: 4413 add r3, r2 + 8006b28: 60bb str r3, [r7, #8] if(y>=ui->y&&z==1) - 8006d3e: 687b ldr r3, [r7, #4] - 8006d40: 88db ldrh r3, [r3, #6] - 8006d42: 461a mov r2, r3 - 8006d44: 68bb ldr r3, [r7, #8] - 8006d46: 4293 cmp r3, r2 - 8006d48: db0c blt.n 8006d64 - 8006d4a: 7dfb ldrb r3, [r7, #23] - 8006d4c: 2b01 cmp r3, #1 - 8006d4e: d109 bne.n 8006d64 + 8006b2a: 687b ldr r3, [r7, #4] + 8006b2c: 88db ldrh r3, [r3, #6] + 8006b2e: 461a mov r2, r3 + 8006b30: 68bb ldr r3, [r7, #8] + 8006b32: 4293 cmp r3, r2 + 8006b34: db0c blt.n 8006b50 + 8006b36: 7dfb ldrb r3, [r7, #23] + 8006b38: 2b01 cmp r3, #1 + 8006b3a: d109 bne.n 8006b50 { Inteface_SetCursor(x,y); - 8006d50: 68fb ldr r3, [r7, #12] - 8006d52: b29b uxth r3, r3 - 8006d54: 68ba ldr r2, [r7, #8] - 8006d56: b292 uxth r2, r2 - 8006d58: 4611 mov r1, r2 - 8006d5a: 4618 mov r0, r3 - 8006d5c: f7ff ff10 bl 8006b80 + 8006b3c: 68fb ldr r3, [r7, #12] + 8006b3e: b29b uxth r3, r3 + 8006b40: 68ba ldr r2, [r7, #8] + 8006b42: b292 uxth r2, r2 + 8006b44: 4611 mov r1, r2 + 8006b46: 4618 mov r0, r3 + 8006b48: f7ff ff10 bl 800696c z=0; - 8006d60: 2300 movs r3, #0 - 8006d62: 75fb strb r3, [r7, #23] + 8006b4c: 2300 movs r3, #0 + 8006b4e: 75fb strb r3, [r7, #23] } if(x>=ui->x) - 8006d64: 687b ldr r3, [r7, #4] - 8006d66: 889b ldrh r3, [r3, #4] - 8006d68: 461a mov r2, r3 - 8006d6a: 68fb ldr r3, [r7, #12] - 8006d6c: 4293 cmp r3, r2 - 8006d6e: db2e blt.n 8006dce + 8006b50: 687b ldr r3, [r7, #4] + 8006b52: 889b ldrh r3, [r3, #4] + 8006b54: 461a mov r2, r3 + 8006b56: 68fb ldr r3, [r7, #12] + 8006b58: 4293 cmp r3, r2 + 8006b5a: db2e blt.n 8006bba { if(temp_y<16) - 8006d70: 8abb ldrh r3, [r7, #20] - 8006d72: 2b0f cmp r3, #15 - 8006d74: d80f bhi.n 8006d96 + 8006b5c: 8abb ldrh r3, [r7, #20] + 8006b5e: 2b0f cmp r3, #15 + 8006b60: d80f bhi.n 8006b82 { if(temp_i>temp_window->width-16) - 8006d76: 683b ldr r3, [r7, #0] - 8006d78: 889b ldrh r3, [r3, #4] - 8006d7a: f1a3 020f sub.w r2, r3, #15 - 8006d7e: 8a7b ldrh r3, [r7, #18] - 8006d80: 429a cmp r2, r3 - 8006d82: dc04 bgt.n 8006d8e + 8006b62: 683b ldr r3, [r7, #0] + 8006b64: 889b ldrh r3, [r3, #4] + 8006b66: f1a3 020f sub.w r2, r3, #15 + 8006b6a: 8a7b ldrh r3, [r7, #18] + 8006b6c: 429a cmp r2, r3 + 8006b6e: dc04 bgt.n 8006b7a { Inteface_SetColor(RED); - 8006d84: f44f 4078 mov.w r0, #63488 ; 0xf800 - 8006d88: f7ff ff14 bl 8006bb4 - 8006d8c: e01f b.n 8006dce + 8006b70: f44f 4078 mov.w r0, #63488 ; 0xf800 + 8006b74: f7ff ff14 bl 80069a0 + 8006b78: e01f b.n 8006bba }else { Inteface_SetColor(BLUE); - 8006d8e: 201f movs r0, #31 - 8006d90: f7ff ff10 bl 8006bb4 - 8006d94: e01b b.n 8006dce + 8006b7a: 201f movs r0, #31 + 8006b7c: f7ff ff10 bl 80069a0 + 8006b80: e01b b.n 8006bba } }else { if(temp_i==0||temp_y==0||temp_i==temp_window->width-1||temp_y==temp_window->high-1) - 8006d96: 8a7b ldrh r3, [r7, #18] - 8006d98: 2b00 cmp r3, #0 - 8006d9a: d00e beq.n 8006dba - 8006d9c: 8abb ldrh r3, [r7, #20] - 8006d9e: 2b00 cmp r3, #0 - 8006da0: d00b beq.n 8006dba - 8006da2: 8a7a ldrh r2, [r7, #18] - 8006da4: 683b ldr r3, [r7, #0] - 8006da6: 889b ldrh r3, [r3, #4] - 8006da8: 3b01 subs r3, #1 - 8006daa: 429a cmp r2, r3 - 8006dac: d005 beq.n 8006dba - 8006dae: 8aba ldrh r2, [r7, #20] - 8006db0: 683b ldr r3, [r7, #0] - 8006db2: 88db ldrh r3, [r3, #6] - 8006db4: 3b01 subs r3, #1 - 8006db6: 429a cmp r2, r3 - 8006db8: d103 bne.n 8006dc2 + 8006b82: 8a7b ldrh r3, [r7, #18] + 8006b84: 2b00 cmp r3, #0 + 8006b86: d00e beq.n 8006ba6 + 8006b88: 8abb ldrh r3, [r7, #20] + 8006b8a: 2b00 cmp r3, #0 + 8006b8c: d00b beq.n 8006ba6 + 8006b8e: 8a7a ldrh r2, [r7, #18] + 8006b90: 683b ldr r3, [r7, #0] + 8006b92: 889b ldrh r3, [r3, #4] + 8006b94: 3b01 subs r3, #1 + 8006b96: 429a cmp r2, r3 + 8006b98: d005 beq.n 8006ba6 + 8006b9a: 8aba ldrh r2, [r7, #20] + 8006b9c: 683b ldr r3, [r7, #0] + 8006b9e: 88db ldrh r3, [r3, #6] + 8006ba0: 3b01 subs r3, #1 + 8006ba2: 429a cmp r2, r3 + 8006ba4: d103 bne.n 8006bae { Inteface_SetColor(BLUE); - 8006dba: 201f movs r0, #31 - 8006dbc: f7ff fefa bl 8006bb4 - 8006dc0: e005 b.n 8006dce + 8006ba6: 201f movs r0, #31 + 8006ba8: f7ff fefa bl 80069a0 + 8006bac: e005 b.n 8006bba }else { Inteface_SetColor(temp_window->background); - 8006dc2: 683b ldr r3, [r7, #0] - 8006dc4: 689b ldr r3, [r3, #8] - 8006dc6: b29b uxth r3, r3 - 8006dc8: 4618 mov r0, r3 - 8006dca: f7ff fef3 bl 8006bb4 + 8006bae: 683b ldr r3, [r7, #0] + 8006bb0: 689b ldr r3, [r3, #8] + 8006bb2: b29b uxth r3, r3 + 8006bb4: 4618 mov r0, r3 + 8006bb6: f7ff fef3 bl 80069a0 for(uint16_t temp_i=0;temp_iwidth;temp_i++) - 8006dce: 8a7b ldrh r3, [r7, #18] - 8006dd0: 3301 adds r3, #1 - 8006dd2: 827b strh r3, [r7, #18] - 8006dd4: 683b ldr r3, [r7, #0] - 8006dd6: 889b ldrh r3, [r3, #4] - 8006dd8: 8a7a ldrh r2, [r7, #18] - 8006dda: 429a cmp r2, r3 - 8006ddc: d3a3 bcc.n 8006d26 + 8006bba: 8a7b ldrh r3, [r7, #18] + 8006bbc: 3301 adds r3, #1 + 8006bbe: 827b strh r3, [r7, #18] + 8006bc0: 683b ldr r3, [r7, #0] + 8006bc2: 889b ldrh r3, [r3, #4] + 8006bc4: 8a7a ldrh r2, [r7, #18] + 8006bc6: 429a cmp r2, r3 + 8006bc8: d3a3 bcc.n 8006b12 for(uint16_t temp_y=0;temp_yhigh;temp_y++) - 8006dde: 8abb ldrh r3, [r7, #20] - 8006de0: 3301 adds r3, #1 - 8006de2: 82bb strh r3, [r7, #20] - 8006de4: 683b ldr r3, [r7, #0] - 8006de6: 88db ldrh r3, [r3, #6] - 8006de8: 8aba ldrh r2, [r7, #20] - 8006dea: 429a cmp r2, r3 - 8006dec: d396 bcc.n 8006d1c + 8006bca: 8abb ldrh r3, [r7, #20] + 8006bcc: 3301 adds r3, #1 + 8006bce: 82bb strh r3, [r7, #20] + 8006bd0: 683b ldr r3, [r7, #0] + 8006bd2: 88db ldrh r3, [r3, #6] + 8006bd4: 8aba ldrh r2, [r7, #20] + 8006bd6: 429a cmp r2, r3 + 8006bd8: d396 bcc.n 8006b08 } } */ //显示title LCD_ShowString(temp_window->x,temp_window->y,&temp_window->title,16,WHITE,WHITE); - 8006dee: 683b ldr r3, [r7, #0] - 8006df0: 8818 ldrh r0, [r3, #0] - 8006df2: 683b ldr r3, [r7, #0] - 8006df4: 8859 ldrh r1, [r3, #2] - 8006df6: 683b ldr r3, [r7, #0] - 8006df8: f103 020c add.w r2, r3, #12 - 8006dfc: f64f 73ff movw r3, #65535 ; 0xffff - 8006e00: 9301 str r3, [sp, #4] - 8006e02: f64f 73ff movw r3, #65535 ; 0xffff - 8006e06: 9300 str r3, [sp, #0] - 8006e08: 2310 movs r3, #16 - 8006e0a: f7fd ffa5 bl 8004d58 + 8006bda: 683b ldr r3, [r7, #0] + 8006bdc: 8818 ldrh r0, [r3, #0] + 8006bde: 683b ldr r3, [r7, #0] + 8006be0: 8859 ldrh r1, [r3, #2] + 8006be2: 683b ldr r3, [r7, #0] + 8006be4: f103 020c add.w r2, r3, #12 + 8006be8: f64f 73ff movw r3, #65535 ; 0xffff + 8006bec: 9301 str r3, [sp, #4] + 8006bee: f64f 73ff movw r3, #65535 ; 0xffff + 8006bf2: 9300 str r3, [sp, #0] + 8006bf4: 2310 movs r3, #16 + 8006bf6: f7fe fded bl 80057d4 } - 8006e0e: bf00 nop - 8006e10: 3718 adds r7, #24 - 8006e12: 46bd mov sp, r7 - 8006e14: bd80 pop {r7, pc} + 8006bfa: bf00 nop + 8006bfc: 3718 adds r7, #24 + 8006bfe: 46bd mov sp, r7 + 8006c00: bd80 pop {r7, pc} -08006e16 : +08006c02 : * 很可惜 辛辛苦苦写的代码要被放弃 * 用算法实现遮挡关系计算真挺蠢 * * */ void Refresh_UI(UI *ui) { - 8006e16: b580 push {r7, lr} - 8006e18: b086 sub sp, #24 - 8006e1a: af00 add r7, sp, #0 - 8006e1c: 6078 str r0, [r7, #4] + 8006c02: b580 push {r7, lr} + 8006c04: b086 sub sp, #24 + 8006c06: af00 add r7, sp, #0 + 8006c08: 6078 str r0, [r7, #4] int flag=0; - 8006e1e: 2300 movs r3, #0 - 8006e20: 617b str r3, [r7, #20] + 8006c0a: 2300 movs r3, #0 + 8006c0c: 617b str r3, [r7, #20] uint16_t dot_y=0,dot_x=0; - 8006e22: 2300 movs r3, #0 - 8006e24: 827b strh r3, [r7, #18] - 8006e26: 2300 movs r3, #0 - 8006e28: 823b strh r3, [r7, #16] + 8006c0e: 2300 movs r3, #0 + 8006c10: 827b strh r3, [r7, #18] + 8006c12: 2300 movs r3, #0 + 8006c14: 823b strh r3, [r7, #16] //画背景 for(dot_y=ui->y;dot_yhigh;dot_y++) - 8006e2a: 687b ldr r3, [r7, #4] - 8006e2c: 88db ldrh r3, [r3, #6] - 8006e2e: 827b strh r3, [r7, #18] - 8006e30: e01a b.n 8006e68 + 8006c16: 687b ldr r3, [r7, #4] + 8006c18: 88db ldrh r3, [r3, #6] + 8006c1a: 827b strh r3, [r7, #18] + 8006c1c: e01a b.n 8006c54 { Inteface_SetCursor(dot_x,dot_y); - 8006e32: 8a7a ldrh r2, [r7, #18] - 8006e34: 8a3b ldrh r3, [r7, #16] - 8006e36: 4611 mov r1, r2 - 8006e38: 4618 mov r0, r3 - 8006e3a: f7ff fea1 bl 8006b80 + 8006c1e: 8a7a ldrh r2, [r7, #18] + 8006c20: 8a3b ldrh r3, [r7, #16] + 8006c22: 4611 mov r1, r2 + 8006c24: 4618 mov r0, r3 + 8006c26: f7ff fea1 bl 800696c for(dot_x=ui->x;dot_xwidth;dot_x++) - 8006e3e: 687b ldr r3, [r7, #4] - 8006e40: 889b ldrh r3, [r3, #4] - 8006e42: 823b strh r3, [r7, #16] - 8006e44: e008 b.n 8006e58 + 8006c2a: 687b ldr r3, [r7, #4] + 8006c2c: 889b ldrh r3, [r3, #4] + 8006c2e: 823b strh r3, [r7, #16] + 8006c30: e008 b.n 8006c44 { Inteface_SetColor(ui->background); - 8006e46: 687b ldr r3, [r7, #4] - 8006e48: 681b ldr r3, [r3, #0] - 8006e4a: b29b uxth r3, r3 - 8006e4c: 4618 mov r0, r3 - 8006e4e: f7ff feb1 bl 8006bb4 + 8006c32: 687b ldr r3, [r7, #4] + 8006c34: 681b ldr r3, [r3, #0] + 8006c36: b29b uxth r3, r3 + 8006c38: 4618 mov r0, r3 + 8006c3a: f7ff feb1 bl 80069a0 for(dot_x=ui->x;dot_xwidth;dot_x++) - 8006e52: 8a3b ldrh r3, [r7, #16] - 8006e54: 3301 adds r3, #1 - 8006e56: 823b strh r3, [r7, #16] - 8006e58: 687b ldr r3, [r7, #4] - 8006e5a: 891b ldrh r3, [r3, #8] - 8006e5c: 8a3a ldrh r2, [r7, #16] - 8006e5e: 429a cmp r2, r3 - 8006e60: d3f1 bcc.n 8006e46 + 8006c3e: 8a3b ldrh r3, [r7, #16] + 8006c40: 3301 adds r3, #1 + 8006c42: 823b strh r3, [r7, #16] + 8006c44: 687b ldr r3, [r7, #4] + 8006c46: 891b ldrh r3, [r3, #8] + 8006c48: 8a3a ldrh r2, [r7, #16] + 8006c4a: 429a cmp r2, r3 + 8006c4c: d3f1 bcc.n 8006c32 for(dot_y=ui->y;dot_yhigh;dot_y++) - 8006e62: 8a7b ldrh r3, [r7, #18] - 8006e64: 3301 adds r3, #1 - 8006e66: 827b strh r3, [r7, #18] - 8006e68: 687b ldr r3, [r7, #4] - 8006e6a: 895b ldrh r3, [r3, #10] - 8006e6c: 8a7a ldrh r2, [r7, #18] - 8006e6e: 429a cmp r2, r3 - 8006e70: d3df bcc.n 8006e32 + 8006c4e: 8a7b ldrh r3, [r7, #18] + 8006c50: 3301 adds r3, #1 + 8006c52: 827b strh r3, [r7, #18] + 8006c54: 687b ldr r3, [r7, #4] + 8006c56: 895b ldrh r3, [r3, #10] + 8006c58: 8a7a ldrh r2, [r7, #18] + 8006c5a: 429a cmp r2, r3 + 8006c5c: d3df bcc.n 8006c1e } } windows_stack *temp_windows_stack,*temp_windows_stack2; temp_windows_stack=ui->windows; - 8006e72: 687b ldr r3, [r7, #4] - 8006e74: 68db ldr r3, [r3, #12] - 8006e76: 60fb str r3, [r7, #12] + 8006c5e: 687b ldr r3, [r7, #4] + 8006c60: 68db ldr r3, [r3, #12] + 8006c62: 60fb str r3, [r7, #12] do { if(temp_windows_stack!=NULL) - 8006e78: 68fb ldr r3, [r7, #12] - 8006e7a: 2b00 cmp r3, #0 - 8006e7c: d00b beq.n 8006e96 + 8006c64: 68fb ldr r3, [r7, #12] + 8006c66: 2b00 cmp r3, #0 + 8006c68: d00b beq.n 8006c82 { flag=1; - 8006e7e: 2301 movs r3, #1 - 8006e80: 617b str r3, [r7, #20] + 8006c6a: 2301 movs r3, #1 + 8006c6c: 617b str r3, [r7, #20] Refresh_Window(ui,temp_windows_stack->window); - 8006e82: 68fb ldr r3, [r7, #12] - 8006e84: 685b ldr r3, [r3, #4] - 8006e86: 4619 mov r1, r3 - 8006e88: 6878 ldr r0, [r7, #4] - 8006e8a: f7ff ff3f bl 8006d0c + 8006c6e: 68fb ldr r3, [r7, #12] + 8006c70: 685b ldr r3, [r3, #4] + 8006c72: 4619 mov r1, r3 + 8006c74: 6878 ldr r0, [r7, #4] + 8006c76: f7ff ff3f bl 8006af8 //绘制下一个窗口 temp_windows_stack=temp_windows_stack->next; - 8006e8e: 68fb ldr r3, [r7, #12] - 8006e90: 689b ldr r3, [r3, #8] - 8006e92: 60fb str r3, [r7, #12] - 8006e94: e001 b.n 8006e9a + 8006c7a: 68fb ldr r3, [r7, #12] + 8006c7c: 689b ldr r3, [r3, #8] + 8006c7e: 60fb str r3, [r7, #12] + 8006c80: e001 b.n 8006c86 }else { flag=0; - 8006e96: 2300 movs r3, #0 - 8006e98: 617b str r3, [r7, #20] + 8006c82: 2300 movs r3, #0 + 8006c84: 617b str r3, [r7, #20] } }while(flag); - 8006e9a: 697b ldr r3, [r7, #20] - 8006e9c: 2b00 cmp r3, #0 - 8006e9e: d1eb bne.n 8006e78 + 8006c86: 697b ldr r3, [r7, #20] + 8006c88: 2b00 cmp r3, #0 + 8006c8a: d1eb bne.n 8006c64 } } */ } - 8006ea0: bf00 nop - 8006ea2: bf00 nop - 8006ea4: 3718 adds r7, #24 - 8006ea6: 46bd mov sp, r7 - 8006ea8: bd80 pop {r7, pc} + 8006c8c: bf00 nop + 8006c8e: bf00 nop + 8006c90: 3718 adds r7, #24 + 8006c92: 46bd mov sp, r7 + 8006c94: bd80 pop {r7, pc} -08006eaa : +08006c96 : #define BODY 1 #define BAR 2 #define CLOSE 3 uint8_t Chack(window *this_window,int x,int y) { - 8006eaa: b480 push {r7} - 8006eac: b087 sub sp, #28 - 8006eae: af00 add r7, sp, #0 - 8006eb0: 60f8 str r0, [r7, #12] - 8006eb2: 60b9 str r1, [r7, #8] - 8006eb4: 607a str r2, [r7, #4] + 8006c96: b480 push {r7} + 8006c98: b087 sub sp, #28 + 8006c9a: af00 add r7, sp, #0 + 8006c9c: 60f8 str r0, [r7, #12] + 8006c9e: 60b9 str r1, [r7, #8] + 8006ca0: 607a str r2, [r7, #4] int a=0; - 8006eb6: 2300 movs r3, #0 - 8006eb8: 617b str r3, [r7, #20] + 8006ca2: 2300 movs r3, #0 + 8006ca4: 617b str r3, [r7, #20] if(((x>=this_window->x)&&(x<(this_window->x+this_window->width)))&&((y>=this_window->y+16)&&(y<(this_window->y+this_window->high)))) - 8006eba: 68fb ldr r3, [r7, #12] - 8006ebc: 881b ldrh r3, [r3, #0] - 8006ebe: 461a mov r2, r3 - 8006ec0: 68bb ldr r3, [r7, #8] - 8006ec2: 4293 cmp r3, r2 - 8006ec4: db19 blt.n 8006efa - 8006ec6: 68fb ldr r3, [r7, #12] - 8006ec8: 881b ldrh r3, [r3, #0] - 8006eca: 461a mov r2, r3 - 8006ecc: 68fb ldr r3, [r7, #12] - 8006ece: 889b ldrh r3, [r3, #4] - 8006ed0: 4413 add r3, r2 - 8006ed2: 68ba ldr r2, [r7, #8] - 8006ed4: 429a cmp r2, r3 - 8006ed6: da10 bge.n 8006efa - 8006ed8: 68fb ldr r3, [r7, #12] - 8006eda: 885b ldrh r3, [r3, #2] - 8006edc: 330f adds r3, #15 - 8006ede: 687a ldr r2, [r7, #4] - 8006ee0: 429a cmp r2, r3 - 8006ee2: dd0a ble.n 8006efa - 8006ee4: 68fb ldr r3, [r7, #12] - 8006ee6: 885b ldrh r3, [r3, #2] - 8006ee8: 461a mov r2, r3 - 8006eea: 68fb ldr r3, [r7, #12] - 8006eec: 88db ldrh r3, [r3, #6] - 8006eee: 4413 add r3, r2 - 8006ef0: 687a ldr r2, [r7, #4] - 8006ef2: 429a cmp r2, r3 - 8006ef4: da01 bge.n 8006efa + 8006ca6: 68fb ldr r3, [r7, #12] + 8006ca8: 881b ldrh r3, [r3, #0] + 8006caa: 461a mov r2, r3 + 8006cac: 68bb ldr r3, [r7, #8] + 8006cae: 4293 cmp r3, r2 + 8006cb0: db19 blt.n 8006ce6 + 8006cb2: 68fb ldr r3, [r7, #12] + 8006cb4: 881b ldrh r3, [r3, #0] + 8006cb6: 461a mov r2, r3 + 8006cb8: 68fb ldr r3, [r7, #12] + 8006cba: 889b ldrh r3, [r3, #4] + 8006cbc: 4413 add r3, r2 + 8006cbe: 68ba ldr r2, [r7, #8] + 8006cc0: 429a cmp r2, r3 + 8006cc2: da10 bge.n 8006ce6 + 8006cc4: 68fb ldr r3, [r7, #12] + 8006cc6: 885b ldrh r3, [r3, #2] + 8006cc8: 330f adds r3, #15 + 8006cca: 687a ldr r2, [r7, #4] + 8006ccc: 429a cmp r2, r3 + 8006cce: dd0a ble.n 8006ce6 + 8006cd0: 68fb ldr r3, [r7, #12] + 8006cd2: 885b ldrh r3, [r3, #2] + 8006cd4: 461a mov r2, r3 + 8006cd6: 68fb ldr r3, [r7, #12] + 8006cd8: 88db ldrh r3, [r3, #6] + 8006cda: 4413 add r3, r2 + 8006cdc: 687a ldr r2, [r7, #4] + 8006cde: 429a cmp r2, r3 + 8006ce0: da01 bge.n 8006ce6 { a=1; - 8006ef6: 2301 movs r3, #1 - 8006ef8: 617b str r3, [r7, #20] + 8006ce2: 2301 movs r3, #1 + 8006ce4: 617b str r3, [r7, #20] } if(((x>=this_window->x)&&(x<(this_window->x+this_window->width-16)))&&((y>=this_window->y)&&(y<(this_window->y+16)))) - 8006efa: 68fb ldr r3, [r7, #12] - 8006efc: 881b ldrh r3, [r3, #0] - 8006efe: 461a mov r2, r3 - 8006f00: 68bb ldr r3, [r7, #8] - 8006f02: 4293 cmp r3, r2 - 8006f04: db17 blt.n 8006f36 - 8006f06: 68fb ldr r3, [r7, #12] - 8006f08: 881b ldrh r3, [r3, #0] - 8006f0a: 461a mov r2, r3 - 8006f0c: 68fb ldr r3, [r7, #12] - 8006f0e: 889b ldrh r3, [r3, #4] - 8006f10: 4413 add r3, r2 - 8006f12: 3b10 subs r3, #16 - 8006f14: 68ba ldr r2, [r7, #8] - 8006f16: 429a cmp r2, r3 - 8006f18: da0d bge.n 8006f36 - 8006f1a: 68fb ldr r3, [r7, #12] - 8006f1c: 885b ldrh r3, [r3, #2] - 8006f1e: 461a mov r2, r3 - 8006f20: 687b ldr r3, [r7, #4] - 8006f22: 4293 cmp r3, r2 - 8006f24: db07 blt.n 8006f36 - 8006f26: 68fb ldr r3, [r7, #12] - 8006f28: 885b ldrh r3, [r3, #2] - 8006f2a: 330f adds r3, #15 - 8006f2c: 687a ldr r2, [r7, #4] - 8006f2e: 429a cmp r2, r3 - 8006f30: dc01 bgt.n 8006f36 + 8006ce6: 68fb ldr r3, [r7, #12] + 8006ce8: 881b ldrh r3, [r3, #0] + 8006cea: 461a mov r2, r3 + 8006cec: 68bb ldr r3, [r7, #8] + 8006cee: 4293 cmp r3, r2 + 8006cf0: db17 blt.n 8006d22 + 8006cf2: 68fb ldr r3, [r7, #12] + 8006cf4: 881b ldrh r3, [r3, #0] + 8006cf6: 461a mov r2, r3 + 8006cf8: 68fb ldr r3, [r7, #12] + 8006cfa: 889b ldrh r3, [r3, #4] + 8006cfc: 4413 add r3, r2 + 8006cfe: 3b10 subs r3, #16 + 8006d00: 68ba ldr r2, [r7, #8] + 8006d02: 429a cmp r2, r3 + 8006d04: da0d bge.n 8006d22 + 8006d06: 68fb ldr r3, [r7, #12] + 8006d08: 885b ldrh r3, [r3, #2] + 8006d0a: 461a mov r2, r3 + 8006d0c: 687b ldr r3, [r7, #4] + 8006d0e: 4293 cmp r3, r2 + 8006d10: db07 blt.n 8006d22 + 8006d12: 68fb ldr r3, [r7, #12] + 8006d14: 885b ldrh r3, [r3, #2] + 8006d16: 330f adds r3, #15 + 8006d18: 687a ldr r2, [r7, #4] + 8006d1a: 429a cmp r2, r3 + 8006d1c: dc01 bgt.n 8006d22 { a=2; - 8006f32: 2302 movs r3, #2 - 8006f34: 617b str r3, [r7, #20] + 8006d1e: 2302 movs r3, #2 + 8006d20: 617b str r3, [r7, #20] } if((x>=(this_window->x+this_window->width-16))&&(x<(this_window->x+this_window->width))&&((y>=this_window->y)&&(y<(this_window->y+16)))) - 8006f36: 68fb ldr r3, [r7, #12] - 8006f38: 881b ldrh r3, [r3, #0] - 8006f3a: 461a mov r2, r3 - 8006f3c: 68fb ldr r3, [r7, #12] - 8006f3e: 889b ldrh r3, [r3, #4] - 8006f40: 4413 add r3, r2 - 8006f42: 3b10 subs r3, #16 - 8006f44: 68ba ldr r2, [r7, #8] - 8006f46: 429a cmp r2, r3 - 8006f48: db16 blt.n 8006f78 - 8006f4a: 68fb ldr r3, [r7, #12] - 8006f4c: 881b ldrh r3, [r3, #0] - 8006f4e: 461a mov r2, r3 - 8006f50: 68fb ldr r3, [r7, #12] - 8006f52: 889b ldrh r3, [r3, #4] - 8006f54: 4413 add r3, r2 - 8006f56: 68ba ldr r2, [r7, #8] - 8006f58: 429a cmp r2, r3 - 8006f5a: da0d bge.n 8006f78 - 8006f5c: 68fb ldr r3, [r7, #12] - 8006f5e: 885b ldrh r3, [r3, #2] - 8006f60: 461a mov r2, r3 - 8006f62: 687b ldr r3, [r7, #4] - 8006f64: 4293 cmp r3, r2 - 8006f66: db07 blt.n 8006f78 - 8006f68: 68fb ldr r3, [r7, #12] - 8006f6a: 885b ldrh r3, [r3, #2] - 8006f6c: 330f adds r3, #15 - 8006f6e: 687a ldr r2, [r7, #4] - 8006f70: 429a cmp r2, r3 - 8006f72: dc01 bgt.n 8006f78 + 8006d22: 68fb ldr r3, [r7, #12] + 8006d24: 881b ldrh r3, [r3, #0] + 8006d26: 461a mov r2, r3 + 8006d28: 68fb ldr r3, [r7, #12] + 8006d2a: 889b ldrh r3, [r3, #4] + 8006d2c: 4413 add r3, r2 + 8006d2e: 3b10 subs r3, #16 + 8006d30: 68ba ldr r2, [r7, #8] + 8006d32: 429a cmp r2, r3 + 8006d34: db16 blt.n 8006d64 + 8006d36: 68fb ldr r3, [r7, #12] + 8006d38: 881b ldrh r3, [r3, #0] + 8006d3a: 461a mov r2, r3 + 8006d3c: 68fb ldr r3, [r7, #12] + 8006d3e: 889b ldrh r3, [r3, #4] + 8006d40: 4413 add r3, r2 + 8006d42: 68ba ldr r2, [r7, #8] + 8006d44: 429a cmp r2, r3 + 8006d46: da0d bge.n 8006d64 + 8006d48: 68fb ldr r3, [r7, #12] + 8006d4a: 885b ldrh r3, [r3, #2] + 8006d4c: 461a mov r2, r3 + 8006d4e: 687b ldr r3, [r7, #4] + 8006d50: 4293 cmp r3, r2 + 8006d52: db07 blt.n 8006d64 + 8006d54: 68fb ldr r3, [r7, #12] + 8006d56: 885b ldrh r3, [r3, #2] + 8006d58: 330f adds r3, #15 + 8006d5a: 687a ldr r2, [r7, #4] + 8006d5c: 429a cmp r2, r3 + 8006d5e: dc01 bgt.n 8006d64 { a=3; - 8006f74: 2303 movs r3, #3 - 8006f76: 617b str r3, [r7, #20] + 8006d60: 2303 movs r3, #3 + 8006d62: 617b str r3, [r7, #20] } return a; - 8006f78: 697b ldr r3, [r7, #20] - 8006f7a: b2db uxtb r3, r3 + 8006d64: 697b ldr r3, [r7, #20] + 8006d66: b2db uxtb r3, r3 } - 8006f7c: 4618 mov r0, r3 - 8006f7e: 371c adds r7, #28 - 8006f80: 46bd mov sp, r7 - 8006f82: bc80 pop {r7} - 8006f84: 4770 bx lr + 8006d68: 4618 mov r0, r3 + 8006d6a: 371c adds r7, #28 + 8006d6c: 46bd mov sp, r7 + 8006d6e: bc80 pop {r7} + 8006d70: 4770 bx lr ... -08006f88 : +08006d74 : void UI_Server(UI *ui) { - 8006f88: b580 push {r7, lr} - 8006f8a: b088 sub sp, #32 - 8006f8c: af00 add r7, sp, #0 - 8006f8e: 6078 str r0, [r7, #4] + 8006d74: b580 push {r7, lr} + 8006d76: b088 sub sp, #32 + 8006d78: af00 add r7, sp, #0 + 8006d7a: 6078 str r0, [r7, #4] windows_stack *temp_windows_stack=NULL; - 8006f90: 2300 movs r3, #0 - 8006f92: 61fb str r3, [r7, #28] + 8006d7c: 2300 movs r3, #0 + 8006d7e: 61fb str r3, [r7, #28] window *temp_window; //touch_device *temp_touch=NULL; int flag=0; - 8006f94: 2300 movs r3, #0 - 8006f96: 61bb str r3, [r7, #24] + 8006d80: 2300 movs r3, #0 + 8006d82: 61bb str r3, [r7, #24] uint8_t hit_flag=0; - 8006f98: 2300 movs r3, #0 - 8006f9a: 75fb strb r3, [r7, #23] + 8006d84: 2300 movs r3, #0 + 8006d86: 75fb strb r3, [r7, #23] int t_x,t_y; //touch //temp_touch=ui->touch; if(t0.c)//TP_XY(&t_x, &t_y)) - 8006f9c: 4b76 ldr r3, [pc, #472] ; (8007178 ) - 8006f9e: 7b1b ldrb r3, [r3, #12] - 8006fa0: f003 0302 and.w r3, r3, #2 - 8006fa4: b2db uxtb r3, r3 - 8006fa6: 2b00 cmp r3, #0 - 8006fa8: f000 80ba beq.w 8007120 + 8006d88: 4b76 ldr r3, [pc, #472] ; (8006f64 ) + 8006d8a: 7b1b ldrb r3, [r3, #12] + 8006d8c: f003 0302 and.w r3, r3, #2 + 8006d90: b2db uxtb r3, r3 + 8006d92: 2b00 cmp r3, #0 + 8006d94: f000 80ba beq.w 8006f0c { if(t0.d) - 8006fac: 4b72 ldr r3, [pc, #456] ; (8007178 ) - 8006fae: 7b1b ldrb r3, [r3, #12] - 8006fb0: f003 0304 and.w r3, r3, #4 - 8006fb4: b2db uxtb r3, r3 - 8006fb6: 2b00 cmp r3, #0 - 8006fb8: f000 80c8 beq.w 800714c + 8006d98: 4b72 ldr r3, [pc, #456] ; (8006f64 ) + 8006d9a: 7b1b ldrb r3, [r3, #12] + 8006d9c: f003 0304 and.w r3, r3, #4 + 8006da0: b2db uxtb r3, r3 + 8006da2: 2b00 cmp r3, #0 + 8006da4: f000 80c8 beq.w 8006f38 { t_x=t0.pix_x; - 8006fbc: 4b6e ldr r3, [pc, #440] ; (8007178 ) - 8006fbe: 685b ldr r3, [r3, #4] - 8006fc0: 613b str r3, [r7, #16] + 8006da8: 4b6e ldr r3, [pc, #440] ; (8006f64 ) + 8006daa: 685b ldr r3, [r3, #4] + 8006dac: 613b str r3, [r7, #16] t_y=t0.pix_y; - 8006fc2: 4b6d ldr r3, [pc, #436] ; (8007178 ) - 8006fc4: 689b ldr r3, [r3, #8] - 8006fc6: 60fb str r3, [r7, #12] + 8006dae: 4b6d ldr r3, [pc, #436] ; (8006f64 ) + 8006db0: 689b ldr r3, [r3, #8] + 8006db2: 60fb str r3, [r7, #12] temp_window=NULL; - 8006fc8: 2300 movs r3, #0 - 8006fca: 60bb str r3, [r7, #8] + 8006db4: 2300 movs r3, #0 + 8006db6: 60bb str r3, [r7, #8] if(ui->moveed_windwos==NULL) - 8006fcc: 687b ldr r3, [r7, #4] - 8006fce: 695b ldr r3, [r3, #20] - 8006fd0: 2b00 cmp r3, #0 - 8006fd2: f040 8088 bne.w 80070e6 + 8006db8: 687b ldr r3, [r7, #4] + 8006dba: 695b ldr r3, [r3, #20] + 8006dbc: 2b00 cmp r3, #0 + 8006dbe: f040 8088 bne.w 8006ed2 { if(ui->First_click_flag==0) - 8006fd6: 687b ldr r3, [r7, #4] - 8006fd8: f893 3020 ldrb.w r3, [r3, #32] - 8006fdc: f003 0302 and.w r3, r3, #2 - 8006fe0: b2db uxtb r3, r3 - 8006fe2: 2b00 cmp r3, #0 - 8006fe4: f040 80b2 bne.w 800714c + 8006dc2: 687b ldr r3, [r7, #4] + 8006dc4: f893 3020 ldrb.w r3, [r3, #32] + 8006dc8: f003 0302 and.w r3, r3, #2 + 8006dcc: b2db uxtb r3, r3 + 8006dce: 2b00 cmp r3, #0 + 8006dd0: f040 80b2 bne.w 8006f38 { ui->First_click_flag=1; - 8006fe8: 687a ldr r2, [r7, #4] - 8006fea: f892 3020 ldrb.w r3, [r2, #32] - 8006fee: f043 0302 orr.w r3, r3, #2 - 8006ff2: f882 3020 strb.w r3, [r2, #32] + 8006dd4: 687a ldr r2, [r7, #4] + 8006dd6: f892 3020 ldrb.w r3, [r2, #32] + 8006dda: f043 0302 orr.w r3, r3, #2 + 8006dde: f882 3020 strb.w r3, [r2, #32] temp_windows_stack=ui->last_windows; //获取ui中最前端的窗口 从前往后扫描 - 8006ff6: 687b ldr r3, [r7, #4] - 8006ff8: 691b ldr r3, [r3, #16] - 8006ffa: 61fb str r3, [r7, #28] + 8006de2: 687b ldr r3, [r7, #4] + 8006de4: 691b ldr r3, [r3, #16] + 8006de6: 61fb str r3, [r7, #28] do { if(temp_windows_stack!=NULL) //如果有窗口就开始扫描 - 8006ffc: 69fb ldr r3, [r7, #28] - 8006ffe: 2b00 cmp r3, #0 - 8007000: d06b beq.n 80070da + 8006de8: 69fb ldr r3, [r7, #28] + 8006dea: 2b00 cmp r3, #0 + 8006dec: d06b beq.n 8006ec6 { flag=1; //检查到有窗口 需要循环一次以检查是否有下一个窗口 - 8007002: 2301 movs r3, #1 - 8007004: 61bb str r3, [r7, #24] + 8006dee: 2301 movs r3, #1 + 8006df0: 61bb str r3, [r7, #24] // temp_window=temp_windows_stack->window; //取出这个窗口 - 8007006: 69fb ldr r3, [r7, #28] - 8007008: 685b ldr r3, [r3, #4] - 800700a: 60bb str r3, [r7, #8] + 8006df2: 69fb ldr r3, [r7, #28] + 8006df4: 685b ldr r3, [r3, #4] + 8006df6: 60bb str r3, [r7, #8] hit_flag=Chack(temp_window,t_x,t_y); //检查触摸是否命中 直接返回命中窗口的位置 - 800700c: 68fa ldr r2, [r7, #12] - 800700e: 6939 ldr r1, [r7, #16] - 8007010: 68b8 ldr r0, [r7, #8] - 8007012: f7ff ff4a bl 8006eaa - 8007016: 4603 mov r3, r0 - 8007018: 75fb strb r3, [r7, #23] + 8006df8: 68fa ldr r2, [r7, #12] + 8006dfa: 6939 ldr r1, [r7, #16] + 8006dfc: 68b8 ldr r0, [r7, #8] + 8006dfe: f7ff ff4a bl 8006c96 + 8006e02: 4603 mov r3, r0 + 8006e04: 75fb strb r3, [r7, #23] if(hit_flag) // 命中继续 - 800701a: 7dfb ldrb r3, [r7, #23] - 800701c: 2b00 cmp r3, #0 - 800701e: d058 beq.n 80070d2 + 8006e06: 7dfb ldrb r3, [r7, #23] + 8006e08: 2b00 cmp r3, #0 + 8006e0a: d058 beq.n 8006ebe { if(temp_windows_stack!=ui->last_windows) //检查是否最前端的窗口 如果不是就放最前面 - 8007020: 687b ldr r3, [r7, #4] - 8007022: 691b ldr r3, [r3, #16] - 8007024: 69fa ldr r2, [r7, #28] - 8007026: 429a cmp r2, r3 - 8007028: d02c beq.n 8007084 + 8006e0c: 687b ldr r3, [r7, #4] + 8006e0e: 691b ldr r3, [r3, #16] + 8006e10: 69fa ldr r2, [r7, #28] + 8006e12: 429a cmp r2, r3 + 8006e14: d02c beq.n 8006e70 { if(temp_windows_stack!=ui->windows) //检查是否最后端的窗口 因为显示是从最后端往前显示的 所以ui有最后端窗口的入口 - 800702a: 687b ldr r3, [r7, #4] - 800702c: 68db ldr r3, [r3, #12] - 800702e: 69fa ldr r2, [r7, #28] - 8007030: 429a cmp r2, r3 - 8007032: d00a beq.n 800704a + 8006e16: 687b ldr r3, [r7, #4] + 8006e18: 68db ldr r3, [r3, #12] + 8006e1a: 69fa ldr r2, [r7, #28] + 8006e1c: 429a cmp r2, r3 + 8006e1e: d00a beq.n 8006e36 { temp_windows_stack->up->next=temp_windows_stack->next; //取出这个节点 把节点的上下补上链接 - 8007034: 69fb ldr r3, [r7, #28] - 8007036: 681b ldr r3, [r3, #0] - 8007038: 69fa ldr r2, [r7, #28] - 800703a: 6892 ldr r2, [r2, #8] - 800703c: 609a str r2, [r3, #8] + 8006e20: 69fb ldr r3, [r7, #28] + 8006e22: 681b ldr r3, [r3, #0] + 8006e24: 69fa ldr r2, [r7, #28] + 8006e26: 6892 ldr r2, [r2, #8] + 8006e28: 609a str r2, [r3, #8] temp_windows_stack->next->up=temp_windows_stack->up; - 800703e: 69fb ldr r3, [r7, #28] - 8007040: 689b ldr r3, [r3, #8] - 8007042: 69fa ldr r2, [r7, #28] - 8007044: 6812 ldr r2, [r2, #0] - 8007046: 601a str r2, [r3, #0] - 8007048: e007 b.n 800705a + 8006e2a: 69fb ldr r3, [r7, #28] + 8006e2c: 689b ldr r3, [r3, #8] + 8006e2e: 69fa ldr r2, [r7, #28] + 8006e30: 6812 ldr r2, [r2, #0] + 8006e32: 601a str r2, [r3, #0] + 8006e34: e007 b.n 8006e46 }else { ui->windows=temp_windows_stack->next; //如果是最后端的窗口 则取出这个节点后入口就变下一个节点了 - 800704a: 69fb ldr r3, [r7, #28] - 800704c: 689a ldr r2, [r3, #8] - 800704e: 687b ldr r3, [r7, #4] - 8007050: 60da str r2, [r3, #12] + 8006e36: 69fb ldr r3, [r7, #28] + 8006e38: 689a ldr r2, [r3, #8] + 8006e3a: 687b ldr r3, [r7, #4] + 8006e3c: 60da str r2, [r3, #12] ui->windows->up=NULL; //倒数第二变最后端 在走就没了 所以要清空指针 - 8007052: 687b ldr r3, [r7, #4] - 8007054: 68db ldr r3, [r3, #12] - 8007056: 2200 movs r2, #0 - 8007058: 601a str r2, [r3, #0] + 8006e3e: 687b ldr r3, [r7, #4] + 8006e40: 68db ldr r3, [r3, #12] + 8006e42: 2200 movs r2, #0 + 8006e44: 601a str r2, [r3, #0] } temp_windows_stack->next=NULL; //取出的节点要放在最前端 所以 无法再往前 清空往前的指针 - 800705a: 69fb ldr r3, [r7, #28] - 800705c: 2200 movs r2, #0 - 800705e: 609a str r2, [r3, #8] + 8006e46: 69fb ldr r3, [r7, #28] + 8006e48: 2200 movs r2, #0 + 8006e4a: 609a str r2, [r3, #8] temp_windows_stack->up=ui->last_windows; //上一个指针就是原来的最后一个 - 8007060: 687b ldr r3, [r7, #4] - 8007062: 691a ldr r2, [r3, #16] - 8007064: 69fb ldr r3, [r7, #28] - 8007066: 601a str r2, [r3, #0] + 8006e4c: 687b ldr r3, [r7, #4] + 8006e4e: 691a ldr r2, [r3, #16] + 8006e50: 69fb ldr r3, [r7, #28] + 8006e52: 601a str r2, [r3, #0] ui->last_windows->next=temp_windows_stack; //原来的最后一个指向现在的最后一个 - 8007068: 687b ldr r3, [r7, #4] - 800706a: 691b ldr r3, [r3, #16] - 800706c: 69fa ldr r2, [r7, #28] - 800706e: 609a str r2, [r3, #8] + 8006e54: 687b ldr r3, [r7, #4] + 8006e56: 691b ldr r3, [r3, #16] + 8006e58: 69fa ldr r2, [r7, #28] + 8006e5a: 609a str r2, [r3, #8] ui->last_windows=temp_windows_stack; //更新ui中的最后一个的入口 - 8007070: 687b ldr r3, [r7, #4] - 8007072: 69fa ldr r2, [r7, #28] - 8007074: 611a str r2, [r3, #16] + 8006e5c: 687b ldr r3, [r7, #4] + 8006e5e: 69fa ldr r2, [r7, #28] + 8006e60: 611a str r2, [r3, #16] ui->refresh_ui_flag=1; //发生了变化 刷新ui的显示 - 8007076: 687a ldr r2, [r7, #4] - 8007078: f892 3020 ldrb.w r3, [r2, #32] - 800707c: f043 0304 orr.w r3, r3, #4 - 8007080: f882 3020 strb.w r3, [r2, #32] + 8006e62: 687a ldr r2, [r7, #4] + 8006e64: f892 3020 ldrb.w r3, [r2, #32] + 8006e68: f043 0304 orr.w r3, r3, #4 + 8006e6c: f882 3020 strb.w r3, [r2, #32] } //检查标中窗口的什么位置 switch(hit_flag) - 8007084: 7dfb ldrb r3, [r7, #23] - 8007086: 2b03 cmp r3, #3 - 8007088: d006 beq.n 8007098 - 800708a: 2b03 cmp r3, #3 - 800708c: dc1f bgt.n 80070ce - 800708e: 2b01 cmp r3, #1 - 8007090: d01c beq.n 80070cc - 8007092: 2b02 cmp r3, #2 - 8007094: d008 beq.n 80070a8 - 8007096: e01a b.n 80070ce + 8006e70: 7dfb ldrb r3, [r7, #23] + 8006e72: 2b03 cmp r3, #3 + 8006e74: d006 beq.n 8006e84 + 8006e76: 2b03 cmp r3, #3 + 8006e78: dc1f bgt.n 8006eba + 8006e7a: 2b01 cmp r3, #1 + 8006e7c: d01c beq.n 8006eb8 + 8006e7e: 2b02 cmp r3, #2 + 8006e80: d008 beq.n 8006e94 + 8006e82: e01a b.n 8006eba { case CLOSE: //Close_Windows_Stack(ui,temp_windows_stack); ui->refresh_ui_flag=1; //发生了变化 刷新ui的显示 - 8007098: 687a ldr r2, [r7, #4] - 800709a: f892 3020 ldrb.w r3, [r2, #32] - 800709e: f043 0304 orr.w r3, r3, #4 - 80070a2: f882 3020 strb.w r3, [r2, #32] + 8006e84: 687a ldr r2, [r7, #4] + 8006e86: f892 3020 ldrb.w r3, [r2, #32] + 8006e8a: f043 0304 orr.w r3, r3, #4 + 8006e8e: f882 3020 strb.w r3, [r2, #32] break; - 80070a6: e012 b.n 80070ce + 8006e92: e012 b.n 8006eba case BAR: ui->moveed_windwos=temp_window; - 80070a8: 687b ldr r3, [r7, #4] - 80070aa: 68ba ldr r2, [r7, #8] - 80070ac: 615a str r2, [r3, #20] + 8006e94: 687b ldr r3, [r7, #4] + 8006e96: 68ba ldr r2, [r7, #8] + 8006e98: 615a str r2, [r3, #20] ui->move_x=t_x-temp_window->x; - 80070ae: 68bb ldr r3, [r7, #8] - 80070b0: 881b ldrh r3, [r3, #0] - 80070b2: 461a mov r2, r3 - 80070b4: 693b ldr r3, [r7, #16] - 80070b6: 1a9a subs r2, r3, r2 - 80070b8: 687b ldr r3, [r7, #4] - 80070ba: 619a str r2, [r3, #24] + 8006e9a: 68bb ldr r3, [r7, #8] + 8006e9c: 881b ldrh r3, [r3, #0] + 8006e9e: 461a mov r2, r3 + 8006ea0: 693b ldr r3, [r7, #16] + 8006ea2: 1a9a subs r2, r3, r2 + 8006ea4: 687b ldr r3, [r7, #4] + 8006ea6: 619a str r2, [r3, #24] ui->move_y=t_y-temp_window->y; - 80070bc: 68bb ldr r3, [r7, #8] - 80070be: 885b ldrh r3, [r3, #2] - 80070c0: 461a mov r2, r3 - 80070c2: 68fb ldr r3, [r7, #12] - 80070c4: 1a9a subs r2, r3, r2 - 80070c6: 687b ldr r3, [r7, #4] - 80070c8: 61da str r2, [r3, #28] + 8006ea8: 68bb ldr r3, [r7, #8] + 8006eaa: 885b ldrh r3, [r3, #2] + 8006eac: 461a mov r2, r3 + 8006eae: 68fb ldr r3, [r7, #12] + 8006eb0: 1a9a subs r2, r3, r2 + 8006eb2: 687b ldr r3, [r7, #4] + 8006eb4: 61da str r2, [r3, #28] break; - 80070ca: e000 b.n 80070ce + 8006eb6: e000 b.n 8006eba case BODY: //ui->background=temp_windows_stack->window->background; //ui->refresh_ui_flag=1; break; - 80070cc: bf00 nop + 8006eb8: bf00 nop } flag=0; //结束扫描 防止穿透当前窗口 - 80070ce: 2300 movs r3, #0 - 80070d0: 61bb str r3, [r7, #24] + 8006eba: 2300 movs r3, #0 + 8006ebc: 61bb str r3, [r7, #24] } temp_windows_stack=temp_windows_stack->up; //往前扫描 - 80070d2: 69fb ldr r3, [r7, #28] - 80070d4: 681b ldr r3, [r3, #0] - 80070d6: 61fb str r3, [r7, #28] - 80070d8: e001 b.n 80070de + 8006ebe: 69fb ldr r3, [r7, #28] + 8006ec0: 681b ldr r3, [r3, #0] + 8006ec2: 61fb str r3, [r7, #28] + 8006ec4: e001 b.n 8006eca }else { flag=0; //一个窗口都没有 直接结束循环 - 80070da: 2300 movs r3, #0 - 80070dc: 61bb str r3, [r7, #24] + 8006ec6: 2300 movs r3, #0 + 8006ec8: 61bb str r3, [r7, #24] } }while(flag); - 80070de: 69bb ldr r3, [r7, #24] - 80070e0: 2b00 cmp r3, #0 - 80070e2: d18b bne.n 8006ffc - 80070e4: e032 b.n 800714c + 8006eca: 69bb ldr r3, [r7, #24] + 8006ecc: 2b00 cmp r3, #0 + 8006ece: d18b bne.n 8006de8 + 8006ed0: e032 b.n 8006f38 } }else { temp_window=ui->moveed_windwos; - 80070e6: 687b ldr r3, [r7, #4] - 80070e8: 695b ldr r3, [r3, #20] - 80070ea: 60bb str r3, [r7, #8] + 8006ed2: 687b ldr r3, [r7, #4] + 8006ed4: 695b ldr r3, [r3, #20] + 8006ed6: 60bb str r3, [r7, #8] temp_window->x=t_x-ui->move_x; - 80070ec: 693b ldr r3, [r7, #16] - 80070ee: b29a uxth r2, r3 - 80070f0: 687b ldr r3, [r7, #4] - 80070f2: 699b ldr r3, [r3, #24] - 80070f4: b29b uxth r3, r3 - 80070f6: 1ad3 subs r3, r2, r3 - 80070f8: b29a uxth r2, r3 - 80070fa: 68bb ldr r3, [r7, #8] - 80070fc: 801a strh r2, [r3, #0] + 8006ed8: 693b ldr r3, [r7, #16] + 8006eda: b29a uxth r2, r3 + 8006edc: 687b ldr r3, [r7, #4] + 8006ede: 699b ldr r3, [r3, #24] + 8006ee0: b29b uxth r3, r3 + 8006ee2: 1ad3 subs r3, r2, r3 + 8006ee4: b29a uxth r2, r3 + 8006ee6: 68bb ldr r3, [r7, #8] + 8006ee8: 801a strh r2, [r3, #0] temp_window->y=t_y-ui->move_y; - 80070fe: 68fb ldr r3, [r7, #12] - 8007100: b29a uxth r2, r3 - 8007102: 687b ldr r3, [r7, #4] - 8007104: 69db ldr r3, [r3, #28] - 8007106: b29b uxth r3, r3 - 8007108: 1ad3 subs r3, r2, r3 - 800710a: b29a uxth r2, r3 - 800710c: 68bb ldr r3, [r7, #8] - 800710e: 805a strh r2, [r3, #2] + 8006eea: 68fb ldr r3, [r7, #12] + 8006eec: b29a uxth r2, r3 + 8006eee: 687b ldr r3, [r7, #4] + 8006ef0: 69db ldr r3, [r3, #28] + 8006ef2: b29b uxth r3, r3 + 8006ef4: 1ad3 subs r3, r2, r3 + 8006ef6: b29a uxth r2, r3 + 8006ef8: 68bb ldr r3, [r7, #8] + 8006efa: 805a strh r2, [r3, #2] ui->refresh_ui_flag=1; - 8007110: 687a ldr r2, [r7, #4] - 8007112: f892 3020 ldrb.w r3, [r2, #32] - 8007116: f043 0304 orr.w r3, r3, #4 - 800711a: f882 3020 strb.w r3, [r2, #32] - 800711e: e015 b.n 800714c + 8006efc: 687a ldr r2, [r7, #4] + 8006efe: f892 3020 ldrb.w r3, [r2, #32] + 8006f02: f043 0304 orr.w r3, r3, #4 + 8006f06: f882 3020 strb.w r3, [r2, #32] + 8006f0a: e015 b.n 8006f38 }else { if(ui->First_click_flag==1) - 8007120: 687b ldr r3, [r7, #4] - 8007122: f893 3020 ldrb.w r3, [r3, #32] - 8007126: f003 0302 and.w r3, r3, #2 - 800712a: b2db uxtb r3, r3 - 800712c: 2b00 cmp r3, #0 - 800712e: d006 beq.n 800713e + 8006f0c: 687b ldr r3, [r7, #4] + 8006f0e: f893 3020 ldrb.w r3, [r3, #32] + 8006f12: f003 0302 and.w r3, r3, #2 + 8006f16: b2db uxtb r3, r3 + 8006f18: 2b00 cmp r3, #0 + 8006f1a: d006 beq.n 8006f2a { ui->First_click_flag=0; - 8007130: 687a ldr r2, [r7, #4] - 8007132: f892 3020 ldrb.w r3, [r2, #32] - 8007136: f36f 0341 bfc r3, #1, #1 - 800713a: f882 3020 strb.w r3, [r2, #32] + 8006f1c: 687a ldr r2, [r7, #4] + 8006f1e: f892 3020 ldrb.w r3, [r2, #32] + 8006f22: f36f 0341 bfc r3, #1, #1 + 8006f26: f882 3020 strb.w r3, [r2, #32] } if(ui->moveed_windwos!=NULL) - 800713e: 687b ldr r3, [r7, #4] - 8007140: 695b ldr r3, [r3, #20] - 8007142: 2b00 cmp r3, #0 - 8007144: d002 beq.n 800714c + 8006f2a: 687b ldr r3, [r7, #4] + 8006f2c: 695b ldr r3, [r3, #20] + 8006f2e: 2b00 cmp r3, #0 + 8006f30: d002 beq.n 8006f38 { ui->moveed_windwos=NULL; - 8007146: 687b ldr r3, [r7, #4] - 8007148: 2200 movs r2, #0 - 800714a: 615a str r2, [r3, #20] + 8006f32: 687b ldr r3, [r7, #4] + 8006f34: 2200 movs r2, #0 + 8006f36: 615a str r2, [r3, #20] } } //display if(ui->refresh_ui_flag==1) - 800714c: 687b ldr r3, [r7, #4] - 800714e: f893 3020 ldrb.w r3, [r3, #32] - 8007152: f003 0304 and.w r3, r3, #4 - 8007156: b2db uxtb r3, r3 - 8007158: 2b00 cmp r3, #0 - 800715a: d009 beq.n 8007170 + 8006f38: 687b ldr r3, [r7, #4] + 8006f3a: f893 3020 ldrb.w r3, [r3, #32] + 8006f3e: f003 0304 and.w r3, r3, #4 + 8006f42: b2db uxtb r3, r3 + 8006f44: 2b00 cmp r3, #0 + 8006f46: d009 beq.n 8006f5c { ui->refresh_ui_flag=0; - 800715c: 687a ldr r2, [r7, #4] - 800715e: f892 3020 ldrb.w r3, [r2, #32] - 8007162: f36f 0382 bfc r3, #2, #1 - 8007166: f882 3020 strb.w r3, [r2, #32] + 8006f48: 687a ldr r2, [r7, #4] + 8006f4a: f892 3020 ldrb.w r3, [r2, #32] + 8006f4e: f36f 0382 bfc r3, #2, #1 + 8006f52: f882 3020 strb.w r3, [r2, #32] Refresh_UI(ui); - 800716a: 6878 ldr r0, [r7, #4] - 800716c: f7ff fe53 bl 8006e16 + 8006f56: 6878 ldr r0, [r7, #4] + 8006f58: f7ff fe53 bl 8006c02 } } - 8007170: bf00 nop - 8007172: 3720 adds r7, #32 - 8007174: 46bd mov sp, r7 - 8007176: bd80 pop {r7, pc} - 8007178: 20000338 .word 0x20000338 + 8006f5c: bf00 nop + 8006f5e: 3720 adds r7, #32 + 8006f60: 46bd mov sp, r7 + 8006f62: bd80 pop {r7, pc} + 8006f64: 20000384 .word 0x20000384 -0800717c <__errno>: - 800717c: 4b01 ldr r3, [pc, #4] ; (8007184 <__errno+0x8>) - 800717e: 6818 ldr r0, [r3, #0] - 8007180: 4770 bx lr - 8007182: bf00 nop - 8007184: 2000000c .word 0x2000000c +08006f68 <__errno>: + 8006f68: 4b01 ldr r3, [pc, #4] ; (8006f70 <__errno+0x8>) + 8006f6a: 6818 ldr r0, [r3, #0] + 8006f6c: 4770 bx lr + 8006f6e: bf00 nop + 8006f70: 2000000c .word 0x2000000c -08007188 <__libc_init_array>: - 8007188: b570 push {r4, r5, r6, lr} - 800718a: 2600 movs r6, #0 - 800718c: 4d0c ldr r5, [pc, #48] ; (80071c0 <__libc_init_array+0x38>) - 800718e: 4c0d ldr r4, [pc, #52] ; (80071c4 <__libc_init_array+0x3c>) - 8007190: 1b64 subs r4, r4, r5 - 8007192: 10a4 asrs r4, r4, #2 - 8007194: 42a6 cmp r6, r4 - 8007196: d109 bne.n 80071ac <__libc_init_array+0x24> - 8007198: f002 ff36 bl 800a008 <_init> - 800719c: 2600 movs r6, #0 - 800719e: 4d0a ldr r5, [pc, #40] ; (80071c8 <__libc_init_array+0x40>) - 80071a0: 4c0a ldr r4, [pc, #40] ; (80071cc <__libc_init_array+0x44>) - 80071a2: 1b64 subs r4, r4, r5 - 80071a4: 10a4 asrs r4, r4, #2 - 80071a6: 42a6 cmp r6, r4 - 80071a8: d105 bne.n 80071b6 <__libc_init_array+0x2e> - 80071aa: bd70 pop {r4, r5, r6, pc} - 80071ac: f855 3b04 ldr.w r3, [r5], #4 - 80071b0: 4798 blx r3 - 80071b2: 3601 adds r6, #1 - 80071b4: e7ee b.n 8007194 <__libc_init_array+0xc> - 80071b6: f855 3b04 ldr.w r3, [r5], #4 - 80071ba: 4798 blx r3 - 80071bc: 3601 adds r6, #1 - 80071be: e7f2 b.n 80071a6 <__libc_init_array+0x1e> - 80071c0: 0800b2bc .word 0x0800b2bc - 80071c4: 0800b2bc .word 0x0800b2bc - 80071c8: 0800b2bc .word 0x0800b2bc - 80071cc: 0800b2c0 .word 0x0800b2c0 +08006f74 <__libc_init_array>: + 8006f74: b570 push {r4, r5, r6, lr} + 8006f76: 2600 movs r6, #0 + 8006f78: 4d0c ldr r5, [pc, #48] ; (8006fac <__libc_init_array+0x38>) + 8006f7a: 4c0d ldr r4, [pc, #52] ; (8006fb0 <__libc_init_array+0x3c>) + 8006f7c: 1b64 subs r4, r4, r5 + 8006f7e: 10a4 asrs r4, r4, #2 + 8006f80: 42a6 cmp r6, r4 + 8006f82: d109 bne.n 8006f98 <__libc_init_array+0x24> + 8006f84: f002 fec4 bl 8009d10 <_init> + 8006f88: 2600 movs r6, #0 + 8006f8a: 4d0a ldr r5, [pc, #40] ; (8006fb4 <__libc_init_array+0x40>) + 8006f8c: 4c0a ldr r4, [pc, #40] ; (8006fb8 <__libc_init_array+0x44>) + 8006f8e: 1b64 subs r4, r4, r5 + 8006f90: 10a4 asrs r4, r4, #2 + 8006f92: 42a6 cmp r6, r4 + 8006f94: d105 bne.n 8006fa2 <__libc_init_array+0x2e> + 8006f96: bd70 pop {r4, r5, r6, pc} + 8006f98: f855 3b04 ldr.w r3, [r5], #4 + 8006f9c: 4798 blx r3 + 8006f9e: 3601 adds r6, #1 + 8006fa0: e7ee b.n 8006f80 <__libc_init_array+0xc> + 8006fa2: f855 3b04 ldr.w r3, [r5], #4 + 8006fa6: 4798 blx r3 + 8006fa8: 3601 adds r6, #1 + 8006faa: e7f2 b.n 8006f92 <__libc_init_array+0x1e> + 8006fac: 0800ac54 .word 0x0800ac54 + 8006fb0: 0800ac54 .word 0x0800ac54 + 8006fb4: 0800ac54 .word 0x0800ac54 + 8006fb8: 0800ac58 .word 0x0800ac58 -080071d0 : - 80071d0: 4b02 ldr r3, [pc, #8] ; (80071dc ) - 80071d2: 4601 mov r1, r0 - 80071d4: 6818 ldr r0, [r3, #0] - 80071d6: f000 b85f b.w 8007298 <_malloc_r> - 80071da: bf00 nop - 80071dc: 2000000c .word 0x2000000c +08006fbc : + 8006fbc: 4b02 ldr r3, [pc, #8] ; (8006fc8 ) + 8006fbe: 4601 mov r1, r0 + 8006fc0: 6818 ldr r0, [r3, #0] + 8006fc2: f000 b85f b.w 8007084 <_malloc_r> + 8006fc6: bf00 nop + 8006fc8: 2000000c .word 0x2000000c -080071e0 : - 80071e0: 4b02 ldr r3, [pc, #8] ; (80071ec ) - 80071e2: 4601 mov r1, r0 - 80071e4: 6818 ldr r0, [r3, #0] - 80071e6: f000 b80b b.w 8007200 <_free_r> - 80071ea: bf00 nop - 80071ec: 2000000c .word 0x2000000c +08006fcc : + 8006fcc: 4b02 ldr r3, [pc, #8] ; (8006fd8 ) + 8006fce: 4601 mov r1, r0 + 8006fd0: 6818 ldr r0, [r3, #0] + 8006fd2: f000 b80b b.w 8006fec <_free_r> + 8006fd6: bf00 nop + 8006fd8: 2000000c .word 0x2000000c -080071f0 : - 80071f0: 4603 mov r3, r0 - 80071f2: 4402 add r2, r0 - 80071f4: 4293 cmp r3, r2 - 80071f6: d100 bne.n 80071fa - 80071f8: 4770 bx lr - 80071fa: f803 1b01 strb.w r1, [r3], #1 - 80071fe: e7f9 b.n 80071f4 +08006fdc : + 8006fdc: 4603 mov r3, r0 + 8006fde: 4402 add r2, r0 + 8006fe0: 4293 cmp r3, r2 + 8006fe2: d100 bne.n 8006fe6 + 8006fe4: 4770 bx lr + 8006fe6: f803 1b01 strb.w r1, [r3], #1 + 8006fea: e7f9 b.n 8006fe0 -08007200 <_free_r>: - 8007200: b538 push {r3, r4, r5, lr} - 8007202: 4605 mov r5, r0 - 8007204: 2900 cmp r1, #0 - 8007206: d043 beq.n 8007290 <_free_r+0x90> - 8007208: f851 3c04 ldr.w r3, [r1, #-4] - 800720c: 1f0c subs r4, r1, #4 - 800720e: 2b00 cmp r3, #0 - 8007210: bfb8 it lt - 8007212: 18e4 addlt r4, r4, r3 - 8007214: f001 fbc6 bl 80089a4 <__malloc_lock> - 8007218: 4a1e ldr r2, [pc, #120] ; (8007294 <_free_r+0x94>) - 800721a: 6813 ldr r3, [r2, #0] - 800721c: 4610 mov r0, r2 - 800721e: b933 cbnz r3, 800722e <_free_r+0x2e> - 8007220: 6063 str r3, [r4, #4] - 8007222: 6014 str r4, [r2, #0] - 8007224: 4628 mov r0, r5 - 8007226: e8bd 4038 ldmia.w sp!, {r3, r4, r5, lr} - 800722a: f001 bbc1 b.w 80089b0 <__malloc_unlock> - 800722e: 42a3 cmp r3, r4 - 8007230: d90a bls.n 8007248 <_free_r+0x48> - 8007232: 6821 ldr r1, [r4, #0] - 8007234: 1862 adds r2, r4, r1 - 8007236: 4293 cmp r3, r2 - 8007238: bf01 itttt eq - 800723a: 681a ldreq r2, [r3, #0] - 800723c: 685b ldreq r3, [r3, #4] - 800723e: 1852 addeq r2, r2, r1 - 8007240: 6022 streq r2, [r4, #0] - 8007242: 6063 str r3, [r4, #4] - 8007244: 6004 str r4, [r0, #0] - 8007246: e7ed b.n 8007224 <_free_r+0x24> - 8007248: 461a mov r2, r3 - 800724a: 685b ldr r3, [r3, #4] - 800724c: b10b cbz r3, 8007252 <_free_r+0x52> - 800724e: 42a3 cmp r3, r4 - 8007250: d9fa bls.n 8007248 <_free_r+0x48> - 8007252: 6811 ldr r1, [r2, #0] - 8007254: 1850 adds r0, r2, r1 - 8007256: 42a0 cmp r0, r4 - 8007258: d10b bne.n 8007272 <_free_r+0x72> - 800725a: 6820 ldr r0, [r4, #0] - 800725c: 4401 add r1, r0 - 800725e: 1850 adds r0, r2, r1 - 8007260: 4283 cmp r3, r0 - 8007262: 6011 str r1, [r2, #0] - 8007264: d1de bne.n 8007224 <_free_r+0x24> - 8007266: 6818 ldr r0, [r3, #0] - 8007268: 685b ldr r3, [r3, #4] - 800726a: 4401 add r1, r0 - 800726c: 6011 str r1, [r2, #0] - 800726e: 6053 str r3, [r2, #4] - 8007270: e7d8 b.n 8007224 <_free_r+0x24> - 8007272: d902 bls.n 800727a <_free_r+0x7a> - 8007274: 230c movs r3, #12 - 8007276: 602b str r3, [r5, #0] - 8007278: e7d4 b.n 8007224 <_free_r+0x24> - 800727a: 6820 ldr r0, [r4, #0] - 800727c: 1821 adds r1, r4, r0 - 800727e: 428b cmp r3, r1 - 8007280: bf01 itttt eq - 8007282: 6819 ldreq r1, [r3, #0] - 8007284: 685b ldreq r3, [r3, #4] - 8007286: 1809 addeq r1, r1, r0 - 8007288: 6021 streq r1, [r4, #0] - 800728a: 6063 str r3, [r4, #4] - 800728c: 6054 str r4, [r2, #4] - 800728e: e7c9 b.n 8007224 <_free_r+0x24> - 8007290: bd38 pop {r3, r4, r5, pc} - 8007292: bf00 nop - 8007294: 20000210 .word 0x20000210 +08006fec <_free_r>: + 8006fec: b538 push {r3, r4, r5, lr} + 8006fee: 4605 mov r5, r0 + 8006ff0: 2900 cmp r1, #0 + 8006ff2: d043 beq.n 800707c <_free_r+0x90> + 8006ff4: f851 3c04 ldr.w r3, [r1, #-4] + 8006ff8: 1f0c subs r4, r1, #4 + 8006ffa: 2b00 cmp r3, #0 + 8006ffc: bfb8 it lt + 8006ffe: 18e4 addlt r4, r4, r3 + 8007000: f001 fbc8 bl 8008794 <__malloc_lock> + 8007004: 4a1e ldr r2, [pc, #120] ; (8007080 <_free_r+0x94>) + 8007006: 6813 ldr r3, [r2, #0] + 8007008: 4610 mov r0, r2 + 800700a: b933 cbnz r3, 800701a <_free_r+0x2e> + 800700c: 6063 str r3, [r4, #4] + 800700e: 6014 str r4, [r2, #0] + 8007010: 4628 mov r0, r5 + 8007012: e8bd 4038 ldmia.w sp!, {r3, r4, r5, lr} + 8007016: f001 bbc3 b.w 80087a0 <__malloc_unlock> + 800701a: 42a3 cmp r3, r4 + 800701c: d90a bls.n 8007034 <_free_r+0x48> + 800701e: 6821 ldr r1, [r4, #0] + 8007020: 1862 adds r2, r4, r1 + 8007022: 4293 cmp r3, r2 + 8007024: bf01 itttt eq + 8007026: 681a ldreq r2, [r3, #0] + 8007028: 685b ldreq r3, [r3, #4] + 800702a: 1852 addeq r2, r2, r1 + 800702c: 6022 streq r2, [r4, #0] + 800702e: 6063 str r3, [r4, #4] + 8007030: 6004 str r4, [r0, #0] + 8007032: e7ed b.n 8007010 <_free_r+0x24> + 8007034: 461a mov r2, r3 + 8007036: 685b ldr r3, [r3, #4] + 8007038: b10b cbz r3, 800703e <_free_r+0x52> + 800703a: 42a3 cmp r3, r4 + 800703c: d9fa bls.n 8007034 <_free_r+0x48> + 800703e: 6811 ldr r1, [r2, #0] + 8007040: 1850 adds r0, r2, r1 + 8007042: 42a0 cmp r0, r4 + 8007044: d10b bne.n 800705e <_free_r+0x72> + 8007046: 6820 ldr r0, [r4, #0] + 8007048: 4401 add r1, r0 + 800704a: 1850 adds r0, r2, r1 + 800704c: 4283 cmp r3, r0 + 800704e: 6011 str r1, [r2, #0] + 8007050: d1de bne.n 8007010 <_free_r+0x24> + 8007052: 6818 ldr r0, [r3, #0] + 8007054: 685b ldr r3, [r3, #4] + 8007056: 4401 add r1, r0 + 8007058: 6011 str r1, [r2, #0] + 800705a: 6053 str r3, [r2, #4] + 800705c: e7d8 b.n 8007010 <_free_r+0x24> + 800705e: d902 bls.n 8007066 <_free_r+0x7a> + 8007060: 230c movs r3, #12 + 8007062: 602b str r3, [r5, #0] + 8007064: e7d4 b.n 8007010 <_free_r+0x24> + 8007066: 6820 ldr r0, [r4, #0] + 8007068: 1821 adds r1, r4, r0 + 800706a: 428b cmp r3, r1 + 800706c: bf01 itttt eq + 800706e: 6819 ldreq r1, [r3, #0] + 8007070: 685b ldreq r3, [r3, #4] + 8007072: 1809 addeq r1, r1, r0 + 8007074: 6021 streq r1, [r4, #0] + 8007076: 6063 str r3, [r4, #4] + 8007078: 6054 str r4, [r2, #4] + 800707a: e7c9 b.n 8007010 <_free_r+0x24> + 800707c: bd38 pop {r3, r4, r5, pc} + 800707e: bf00 nop + 8007080: 20000204 .word 0x20000204 -08007298 <_malloc_r>: - 8007298: b5f8 push {r3, r4, r5, r6, r7, lr} - 800729a: 1ccd adds r5, r1, #3 - 800729c: f025 0503 bic.w r5, r5, #3 - 80072a0: 3508 adds r5, #8 - 80072a2: 2d0c cmp r5, #12 - 80072a4: bf38 it cc - 80072a6: 250c movcc r5, #12 - 80072a8: 2d00 cmp r5, #0 - 80072aa: 4606 mov r6, r0 - 80072ac: db01 blt.n 80072b2 <_malloc_r+0x1a> - 80072ae: 42a9 cmp r1, r5 - 80072b0: d903 bls.n 80072ba <_malloc_r+0x22> - 80072b2: 230c movs r3, #12 - 80072b4: 6033 str r3, [r6, #0] - 80072b6: 2000 movs r0, #0 - 80072b8: bdf8 pop {r3, r4, r5, r6, r7, pc} - 80072ba: f001 fb73 bl 80089a4 <__malloc_lock> - 80072be: 4921 ldr r1, [pc, #132] ; (8007344 <_malloc_r+0xac>) - 80072c0: 680a ldr r2, [r1, #0] - 80072c2: 4614 mov r4, r2 - 80072c4: b99c cbnz r4, 80072ee <_malloc_r+0x56> - 80072c6: 4f20 ldr r7, [pc, #128] ; (8007348 <_malloc_r+0xb0>) - 80072c8: 683b ldr r3, [r7, #0] - 80072ca: b923 cbnz r3, 80072d6 <_malloc_r+0x3e> - 80072cc: 4621 mov r1, r4 - 80072ce: 4630 mov r0, r6 - 80072d0: f000 fc9c bl 8007c0c <_sbrk_r> - 80072d4: 6038 str r0, [r7, #0] - 80072d6: 4629 mov r1, r5 - 80072d8: 4630 mov r0, r6 - 80072da: f000 fc97 bl 8007c0c <_sbrk_r> - 80072de: 1c43 adds r3, r0, #1 - 80072e0: d123 bne.n 800732a <_malloc_r+0x92> - 80072e2: 230c movs r3, #12 - 80072e4: 4630 mov r0, r6 - 80072e6: 6033 str r3, [r6, #0] - 80072e8: f001 fb62 bl 80089b0 <__malloc_unlock> - 80072ec: e7e3 b.n 80072b6 <_malloc_r+0x1e> - 80072ee: 6823 ldr r3, [r4, #0] - 80072f0: 1b5b subs r3, r3, r5 - 80072f2: d417 bmi.n 8007324 <_malloc_r+0x8c> - 80072f4: 2b0b cmp r3, #11 - 80072f6: d903 bls.n 8007300 <_malloc_r+0x68> - 80072f8: 6023 str r3, [r4, #0] - 80072fa: 441c add r4, r3 - 80072fc: 6025 str r5, [r4, #0] - 80072fe: e004 b.n 800730a <_malloc_r+0x72> - 8007300: 6863 ldr r3, [r4, #4] - 8007302: 42a2 cmp r2, r4 - 8007304: bf0c ite eq - 8007306: 600b streq r3, [r1, #0] - 8007308: 6053 strne r3, [r2, #4] - 800730a: 4630 mov r0, r6 - 800730c: f001 fb50 bl 80089b0 <__malloc_unlock> - 8007310: f104 000b add.w r0, r4, #11 - 8007314: 1d23 adds r3, r4, #4 - 8007316: f020 0007 bic.w r0, r0, #7 - 800731a: 1ac2 subs r2, r0, r3 - 800731c: d0cc beq.n 80072b8 <_malloc_r+0x20> - 800731e: 1a1b subs r3, r3, r0 - 8007320: 50a3 str r3, [r4, r2] - 8007322: e7c9 b.n 80072b8 <_malloc_r+0x20> - 8007324: 4622 mov r2, r4 - 8007326: 6864 ldr r4, [r4, #4] - 8007328: e7cc b.n 80072c4 <_malloc_r+0x2c> - 800732a: 1cc4 adds r4, r0, #3 - 800732c: f024 0403 bic.w r4, r4, #3 - 8007330: 42a0 cmp r0, r4 - 8007332: d0e3 beq.n 80072fc <_malloc_r+0x64> - 8007334: 1a21 subs r1, r4, r0 - 8007336: 4630 mov r0, r6 - 8007338: f000 fc68 bl 8007c0c <_sbrk_r> - 800733c: 3001 adds r0, #1 - 800733e: d1dd bne.n 80072fc <_malloc_r+0x64> - 8007340: e7cf b.n 80072e2 <_malloc_r+0x4a> - 8007342: bf00 nop - 8007344: 20000210 .word 0x20000210 - 8007348: 20000214 .word 0x20000214 +08007084 <_malloc_r>: + 8007084: b5f8 push {r3, r4, r5, r6, r7, lr} + 8007086: 1ccd adds r5, r1, #3 + 8007088: f025 0503 bic.w r5, r5, #3 + 800708c: 3508 adds r5, #8 + 800708e: 2d0c cmp r5, #12 + 8007090: bf38 it cc + 8007092: 250c movcc r5, #12 + 8007094: 2d00 cmp r5, #0 + 8007096: 4606 mov r6, r0 + 8007098: db01 blt.n 800709e <_malloc_r+0x1a> + 800709a: 42a9 cmp r1, r5 + 800709c: d903 bls.n 80070a6 <_malloc_r+0x22> + 800709e: 230c movs r3, #12 + 80070a0: 6033 str r3, [r6, #0] + 80070a2: 2000 movs r0, #0 + 80070a4: bdf8 pop {r3, r4, r5, r6, r7, pc} + 80070a6: f001 fb75 bl 8008794 <__malloc_lock> + 80070aa: 4921 ldr r1, [pc, #132] ; (8007130 <_malloc_r+0xac>) + 80070ac: 680a ldr r2, [r1, #0] + 80070ae: 4614 mov r4, r2 + 80070b0: b99c cbnz r4, 80070da <_malloc_r+0x56> + 80070b2: 4f20 ldr r7, [pc, #128] ; (8007134 <_malloc_r+0xb0>) + 80070b4: 683b ldr r3, [r7, #0] + 80070b6: b923 cbnz r3, 80070c2 <_malloc_r+0x3e> + 80070b8: 4621 mov r1, r4 + 80070ba: 4630 mov r0, r6 + 80070bc: f000 fc9c bl 80079f8 <_sbrk_r> + 80070c0: 6038 str r0, [r7, #0] + 80070c2: 4629 mov r1, r5 + 80070c4: 4630 mov r0, r6 + 80070c6: f000 fc97 bl 80079f8 <_sbrk_r> + 80070ca: 1c43 adds r3, r0, #1 + 80070cc: d123 bne.n 8007116 <_malloc_r+0x92> + 80070ce: 230c movs r3, #12 + 80070d0: 4630 mov r0, r6 + 80070d2: 6033 str r3, [r6, #0] + 80070d4: f001 fb64 bl 80087a0 <__malloc_unlock> + 80070d8: e7e3 b.n 80070a2 <_malloc_r+0x1e> + 80070da: 6823 ldr r3, [r4, #0] + 80070dc: 1b5b subs r3, r3, r5 + 80070de: d417 bmi.n 8007110 <_malloc_r+0x8c> + 80070e0: 2b0b cmp r3, #11 + 80070e2: d903 bls.n 80070ec <_malloc_r+0x68> + 80070e4: 6023 str r3, [r4, #0] + 80070e6: 441c add r4, r3 + 80070e8: 6025 str r5, [r4, #0] + 80070ea: e004 b.n 80070f6 <_malloc_r+0x72> + 80070ec: 6863 ldr r3, [r4, #4] + 80070ee: 42a2 cmp r2, r4 + 80070f0: bf0c ite eq + 80070f2: 600b streq r3, [r1, #0] + 80070f4: 6053 strne r3, [r2, #4] + 80070f6: 4630 mov r0, r6 + 80070f8: f001 fb52 bl 80087a0 <__malloc_unlock> + 80070fc: f104 000b add.w r0, r4, #11 + 8007100: 1d23 adds r3, r4, #4 + 8007102: f020 0007 bic.w r0, r0, #7 + 8007106: 1ac2 subs r2, r0, r3 + 8007108: d0cc beq.n 80070a4 <_malloc_r+0x20> + 800710a: 1a1b subs r3, r3, r0 + 800710c: 50a3 str r3, [r4, r2] + 800710e: e7c9 b.n 80070a4 <_malloc_r+0x20> + 8007110: 4622 mov r2, r4 + 8007112: 6864 ldr r4, [r4, #4] + 8007114: e7cc b.n 80070b0 <_malloc_r+0x2c> + 8007116: 1cc4 adds r4, r0, #3 + 8007118: f024 0403 bic.w r4, r4, #3 + 800711c: 42a0 cmp r0, r4 + 800711e: d0e3 beq.n 80070e8 <_malloc_r+0x64> + 8007120: 1a21 subs r1, r4, r0 + 8007122: 4630 mov r0, r6 + 8007124: f000 fc68 bl 80079f8 <_sbrk_r> + 8007128: 3001 adds r0, #1 + 800712a: d1dd bne.n 80070e8 <_malloc_r+0x64> + 800712c: e7cf b.n 80070ce <_malloc_r+0x4a> + 800712e: bf00 nop + 8007130: 20000204 .word 0x20000204 + 8007134: 20000208 .word 0x20000208 -0800734c <__cvt>: - 800734c: 2b00 cmp r3, #0 - 800734e: e92d 47f0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, lr} - 8007352: 461f mov r7, r3 - 8007354: bfbb ittet lt - 8007356: f103 4300 addlt.w r3, r3, #2147483648 ; 0x80000000 - 800735a: 461f movlt r7, r3 - 800735c: 2300 movge r3, #0 - 800735e: 232d movlt r3, #45 ; 0x2d - 8007360: b088 sub sp, #32 - 8007362: 4614 mov r4, r2 - 8007364: 9a12 ldr r2, [sp, #72] ; 0x48 - 8007366: 9d10 ldr r5, [sp, #64] ; 0x40 - 8007368: 7013 strb r3, [r2, #0] - 800736a: 9b14 ldr r3, [sp, #80] ; 0x50 - 800736c: f8dd a04c ldr.w sl, [sp, #76] ; 0x4c - 8007370: f023 0820 bic.w r8, r3, #32 - 8007374: f1b8 0f46 cmp.w r8, #70 ; 0x46 - 8007378: d005 beq.n 8007386 <__cvt+0x3a> - 800737a: f1b8 0f45 cmp.w r8, #69 ; 0x45 - 800737e: d100 bne.n 8007382 <__cvt+0x36> - 8007380: 3501 adds r5, #1 - 8007382: 2302 movs r3, #2 - 8007384: e000 b.n 8007388 <__cvt+0x3c> - 8007386: 2303 movs r3, #3 - 8007388: aa07 add r2, sp, #28 - 800738a: 9204 str r2, [sp, #16] - 800738c: aa06 add r2, sp, #24 - 800738e: e9cd a202 strd sl, r2, [sp, #8] - 8007392: e9cd 3500 strd r3, r5, [sp] - 8007396: 4622 mov r2, r4 - 8007398: 463b mov r3, r7 - 800739a: f000 fcf5 bl 8007d88 <_dtoa_r> - 800739e: f1b8 0f47 cmp.w r8, #71 ; 0x47 - 80073a2: 4606 mov r6, r0 - 80073a4: d102 bne.n 80073ac <__cvt+0x60> - 80073a6: 9b11 ldr r3, [sp, #68] ; 0x44 - 80073a8: 07db lsls r3, r3, #31 - 80073aa: d522 bpl.n 80073f2 <__cvt+0xa6> - 80073ac: f1b8 0f46 cmp.w r8, #70 ; 0x46 - 80073b0: eb06 0905 add.w r9, r6, r5 - 80073b4: d110 bne.n 80073d8 <__cvt+0x8c> - 80073b6: 7833 ldrb r3, [r6, #0] - 80073b8: 2b30 cmp r3, #48 ; 0x30 - 80073ba: d10a bne.n 80073d2 <__cvt+0x86> - 80073bc: 2200 movs r2, #0 - 80073be: 2300 movs r3, #0 - 80073c0: 4620 mov r0, r4 - 80073c2: 4639 mov r1, r7 - 80073c4: f7f9 fb5c bl 8000a80 <__aeabi_dcmpeq> - 80073c8: b918 cbnz r0, 80073d2 <__cvt+0x86> - 80073ca: f1c5 0501 rsb r5, r5, #1 - 80073ce: f8ca 5000 str.w r5, [sl] - 80073d2: f8da 3000 ldr.w r3, [sl] - 80073d6: 4499 add r9, r3 - 80073d8: 2200 movs r2, #0 - 80073da: 2300 movs r3, #0 - 80073dc: 4620 mov r0, r4 - 80073de: 4639 mov r1, r7 - 80073e0: f7f9 fb4e bl 8000a80 <__aeabi_dcmpeq> - 80073e4: b108 cbz r0, 80073ea <__cvt+0x9e> - 80073e6: f8cd 901c str.w r9, [sp, #28] - 80073ea: 2230 movs r2, #48 ; 0x30 - 80073ec: 9b07 ldr r3, [sp, #28] - 80073ee: 454b cmp r3, r9 - 80073f0: d307 bcc.n 8007402 <__cvt+0xb6> - 80073f2: 4630 mov r0, r6 - 80073f4: 9b07 ldr r3, [sp, #28] - 80073f6: 9a15 ldr r2, [sp, #84] ; 0x54 - 80073f8: 1b9b subs r3, r3, r6 - 80073fa: 6013 str r3, [r2, #0] - 80073fc: b008 add sp, #32 - 80073fe: e8bd 87f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, pc} - 8007402: 1c59 adds r1, r3, #1 - 8007404: 9107 str r1, [sp, #28] - 8007406: 701a strb r2, [r3, #0] - 8007408: e7f0 b.n 80073ec <__cvt+0xa0> +08007138 <__cvt>: + 8007138: 2b00 cmp r3, #0 + 800713a: e92d 47f0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, lr} + 800713e: 461f mov r7, r3 + 8007140: bfbb ittet lt + 8007142: f103 4300 addlt.w r3, r3, #2147483648 ; 0x80000000 + 8007146: 461f movlt r7, r3 + 8007148: 2300 movge r3, #0 + 800714a: 232d movlt r3, #45 ; 0x2d + 800714c: b088 sub sp, #32 + 800714e: 4614 mov r4, r2 + 8007150: 9a12 ldr r2, [sp, #72] ; 0x48 + 8007152: 9d10 ldr r5, [sp, #64] ; 0x40 + 8007154: 7013 strb r3, [r2, #0] + 8007156: 9b14 ldr r3, [sp, #80] ; 0x50 + 8007158: f8dd a04c ldr.w sl, [sp, #76] ; 0x4c + 800715c: f023 0820 bic.w r8, r3, #32 + 8007160: f1b8 0f46 cmp.w r8, #70 ; 0x46 + 8007164: d005 beq.n 8007172 <__cvt+0x3a> + 8007166: f1b8 0f45 cmp.w r8, #69 ; 0x45 + 800716a: d100 bne.n 800716e <__cvt+0x36> + 800716c: 3501 adds r5, #1 + 800716e: 2302 movs r3, #2 + 8007170: e000 b.n 8007174 <__cvt+0x3c> + 8007172: 2303 movs r3, #3 + 8007174: aa07 add r2, sp, #28 + 8007176: 9204 str r2, [sp, #16] + 8007178: aa06 add r2, sp, #24 + 800717a: e9cd a202 strd sl, r2, [sp, #8] + 800717e: e9cd 3500 strd r3, r5, [sp] + 8007182: 4622 mov r2, r4 + 8007184: 463b mov r3, r7 + 8007186: f000 fcf7 bl 8007b78 <_dtoa_r> + 800718a: f1b8 0f47 cmp.w r8, #71 ; 0x47 + 800718e: 4606 mov r6, r0 + 8007190: d102 bne.n 8007198 <__cvt+0x60> + 8007192: 9b11 ldr r3, [sp, #68] ; 0x44 + 8007194: 07db lsls r3, r3, #31 + 8007196: d522 bpl.n 80071de <__cvt+0xa6> + 8007198: f1b8 0f46 cmp.w r8, #70 ; 0x46 + 800719c: eb06 0905 add.w r9, r6, r5 + 80071a0: d110 bne.n 80071c4 <__cvt+0x8c> + 80071a2: 7833 ldrb r3, [r6, #0] + 80071a4: 2b30 cmp r3, #48 ; 0x30 + 80071a6: d10a bne.n 80071be <__cvt+0x86> + 80071a8: 2200 movs r2, #0 + 80071aa: 2300 movs r3, #0 + 80071ac: 4620 mov r0, r4 + 80071ae: 4639 mov r1, r7 + 80071b0: f7f9 fc66 bl 8000a80 <__aeabi_dcmpeq> + 80071b4: b918 cbnz r0, 80071be <__cvt+0x86> + 80071b6: f1c5 0501 rsb r5, r5, #1 + 80071ba: f8ca 5000 str.w r5, [sl] + 80071be: f8da 3000 ldr.w r3, [sl] + 80071c2: 4499 add r9, r3 + 80071c4: 2200 movs r2, #0 + 80071c6: 2300 movs r3, #0 + 80071c8: 4620 mov r0, r4 + 80071ca: 4639 mov r1, r7 + 80071cc: f7f9 fc58 bl 8000a80 <__aeabi_dcmpeq> + 80071d0: b108 cbz r0, 80071d6 <__cvt+0x9e> + 80071d2: f8cd 901c str.w r9, [sp, #28] + 80071d6: 2230 movs r2, #48 ; 0x30 + 80071d8: 9b07 ldr r3, [sp, #28] + 80071da: 454b cmp r3, r9 + 80071dc: d307 bcc.n 80071ee <__cvt+0xb6> + 80071de: 4630 mov r0, r6 + 80071e0: 9b07 ldr r3, [sp, #28] + 80071e2: 9a15 ldr r2, [sp, #84] ; 0x54 + 80071e4: 1b9b subs r3, r3, r6 + 80071e6: 6013 str r3, [r2, #0] + 80071e8: b008 add sp, #32 + 80071ea: e8bd 87f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, pc} + 80071ee: 1c59 adds r1, r3, #1 + 80071f0: 9107 str r1, [sp, #28] + 80071f2: 701a strb r2, [r3, #0] + 80071f4: e7f0 b.n 80071d8 <__cvt+0xa0> -0800740a <__exponent>: - 800740a: 4603 mov r3, r0 - 800740c: b5f7 push {r0, r1, r2, r4, r5, r6, r7, lr} - 800740e: 2900 cmp r1, #0 - 8007410: f803 2b02 strb.w r2, [r3], #2 - 8007414: bfb6 itet lt - 8007416: 222d movlt r2, #45 ; 0x2d - 8007418: 222b movge r2, #43 ; 0x2b - 800741a: 4249 neglt r1, r1 - 800741c: 2909 cmp r1, #9 - 800741e: 7042 strb r2, [r0, #1] - 8007420: dd2b ble.n 800747a <__exponent+0x70> - 8007422: f10d 0407 add.w r4, sp, #7 - 8007426: 46a4 mov ip, r4 - 8007428: 270a movs r7, #10 - 800742a: fb91 f6f7 sdiv r6, r1, r7 - 800742e: 460a mov r2, r1 - 8007430: 46a6 mov lr, r4 - 8007432: fb07 1516 mls r5, r7, r6, r1 - 8007436: 2a63 cmp r2, #99 ; 0x63 - 8007438: f105 0530 add.w r5, r5, #48 ; 0x30 - 800743c: 4631 mov r1, r6 - 800743e: f104 34ff add.w r4, r4, #4294967295 ; 0xffffffff - 8007442: f80e 5c01 strb.w r5, [lr, #-1] - 8007446: dcf0 bgt.n 800742a <__exponent+0x20> - 8007448: 3130 adds r1, #48 ; 0x30 - 800744a: f1ae 0502 sub.w r5, lr, #2 - 800744e: f804 1c01 strb.w r1, [r4, #-1] - 8007452: 4629 mov r1, r5 - 8007454: 1c44 adds r4, r0, #1 - 8007456: 4561 cmp r1, ip - 8007458: d30a bcc.n 8007470 <__exponent+0x66> - 800745a: f10d 0209 add.w r2, sp, #9 - 800745e: eba2 020e sub.w r2, r2, lr - 8007462: 4565 cmp r5, ip - 8007464: bf88 it hi - 8007466: 2200 movhi r2, #0 - 8007468: 4413 add r3, r2 - 800746a: 1a18 subs r0, r3, r0 - 800746c: b003 add sp, #12 - 800746e: bdf0 pop {r4, r5, r6, r7, pc} - 8007470: f811 2b01 ldrb.w r2, [r1], #1 - 8007474: f804 2f01 strb.w r2, [r4, #1]! - 8007478: e7ed b.n 8007456 <__exponent+0x4c> - 800747a: 2330 movs r3, #48 ; 0x30 - 800747c: 3130 adds r1, #48 ; 0x30 - 800747e: 7083 strb r3, [r0, #2] - 8007480: 70c1 strb r1, [r0, #3] - 8007482: 1d03 adds r3, r0, #4 - 8007484: e7f1 b.n 800746a <__exponent+0x60> +080071f6 <__exponent>: + 80071f6: 4603 mov r3, r0 + 80071f8: b5f7 push {r0, r1, r2, r4, r5, r6, r7, lr} + 80071fa: 2900 cmp r1, #0 + 80071fc: f803 2b02 strb.w r2, [r3], #2 + 8007200: bfb6 itet lt + 8007202: 222d movlt r2, #45 ; 0x2d + 8007204: 222b movge r2, #43 ; 0x2b + 8007206: 4249 neglt r1, r1 + 8007208: 2909 cmp r1, #9 + 800720a: 7042 strb r2, [r0, #1] + 800720c: dd2b ble.n 8007266 <__exponent+0x70> + 800720e: f10d 0407 add.w r4, sp, #7 + 8007212: 46a4 mov ip, r4 + 8007214: 270a movs r7, #10 + 8007216: fb91 f6f7 sdiv r6, r1, r7 + 800721a: 460a mov r2, r1 + 800721c: 46a6 mov lr, r4 + 800721e: fb07 1516 mls r5, r7, r6, r1 + 8007222: 2a63 cmp r2, #99 ; 0x63 + 8007224: f105 0530 add.w r5, r5, #48 ; 0x30 + 8007228: 4631 mov r1, r6 + 800722a: f104 34ff add.w r4, r4, #4294967295 ; 0xffffffff + 800722e: f80e 5c01 strb.w r5, [lr, #-1] + 8007232: dcf0 bgt.n 8007216 <__exponent+0x20> + 8007234: 3130 adds r1, #48 ; 0x30 + 8007236: f1ae 0502 sub.w r5, lr, #2 + 800723a: f804 1c01 strb.w r1, [r4, #-1] + 800723e: 4629 mov r1, r5 + 8007240: 1c44 adds r4, r0, #1 + 8007242: 4561 cmp r1, ip + 8007244: d30a bcc.n 800725c <__exponent+0x66> + 8007246: f10d 0209 add.w r2, sp, #9 + 800724a: eba2 020e sub.w r2, r2, lr + 800724e: 4565 cmp r5, ip + 8007250: bf88 it hi + 8007252: 2200 movhi r2, #0 + 8007254: 4413 add r3, r2 + 8007256: 1a18 subs r0, r3, r0 + 8007258: b003 add sp, #12 + 800725a: bdf0 pop {r4, r5, r6, r7, pc} + 800725c: f811 2b01 ldrb.w r2, [r1], #1 + 8007260: f804 2f01 strb.w r2, [r4, #1]! + 8007264: e7ed b.n 8007242 <__exponent+0x4c> + 8007266: 2330 movs r3, #48 ; 0x30 + 8007268: 3130 adds r1, #48 ; 0x30 + 800726a: 7083 strb r3, [r0, #2] + 800726c: 70c1 strb r1, [r0, #3] + 800726e: 1d03 adds r3, r0, #4 + 8007270: e7f1 b.n 8007256 <__exponent+0x60> ... -08007488 <_printf_float>: - 8007488: e92d 4ff0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, fp, lr} - 800748c: b091 sub sp, #68 ; 0x44 - 800748e: 460c mov r4, r1 - 8007490: f8dd 8068 ldr.w r8, [sp, #104] ; 0x68 - 8007494: 4616 mov r6, r2 - 8007496: 461f mov r7, r3 - 8007498: 4605 mov r5, r0 - 800749a: f001 fa63 bl 8008964 <_localeconv_r> - 800749e: 6803 ldr r3, [r0, #0] - 80074a0: 4618 mov r0, r3 - 80074a2: 9309 str r3, [sp, #36] ; 0x24 - 80074a4: f7f8 fec0 bl 8000228 - 80074a8: 2300 movs r3, #0 - 80074aa: 930e str r3, [sp, #56] ; 0x38 - 80074ac: f8d8 3000 ldr.w r3, [r8] - 80074b0: 900a str r0, [sp, #40] ; 0x28 - 80074b2: 3307 adds r3, #7 - 80074b4: f023 0307 bic.w r3, r3, #7 - 80074b8: f103 0208 add.w r2, r3, #8 - 80074bc: f894 9018 ldrb.w r9, [r4, #24] - 80074c0: f8d4 b000 ldr.w fp, [r4] - 80074c4: f8c8 2000 str.w r2, [r8] - 80074c8: e9d3 2300 ldrd r2, r3, [r3] - 80074cc: e9c4 2312 strd r2, r3, [r4, #72] ; 0x48 - 80074d0: e9d4 8a12 ldrd r8, sl, [r4, #72] ; 0x48 - 80074d4: f02a 4300 bic.w r3, sl, #2147483648 ; 0x80000000 - 80074d8: 930b str r3, [sp, #44] ; 0x2c - 80074da: f04f 32ff mov.w r2, #4294967295 ; 0xffffffff - 80074de: 4640 mov r0, r8 - 80074e0: 4b9c ldr r3, [pc, #624] ; (8007754 <_printf_float+0x2cc>) - 80074e2: 990b ldr r1, [sp, #44] ; 0x2c - 80074e4: f7f9 fafe bl 8000ae4 <__aeabi_dcmpun> - 80074e8: bb70 cbnz r0, 8007548 <_printf_float+0xc0> - 80074ea: f04f 32ff mov.w r2, #4294967295 ; 0xffffffff - 80074ee: 4640 mov r0, r8 - 80074f0: 4b98 ldr r3, [pc, #608] ; (8007754 <_printf_float+0x2cc>) - 80074f2: 990b ldr r1, [sp, #44] ; 0x2c - 80074f4: f7f9 fad8 bl 8000aa8 <__aeabi_dcmple> - 80074f8: bb30 cbnz r0, 8007548 <_printf_float+0xc0> - 80074fa: 2200 movs r2, #0 - 80074fc: 2300 movs r3, #0 - 80074fe: 4640 mov r0, r8 - 8007500: 4651 mov r1, sl - 8007502: f7f9 fac7 bl 8000a94 <__aeabi_dcmplt> - 8007506: b110 cbz r0, 800750e <_printf_float+0x86> - 8007508: 232d movs r3, #45 ; 0x2d - 800750a: f884 3043 strb.w r3, [r4, #67] ; 0x43 - 800750e: 4b92 ldr r3, [pc, #584] ; (8007758 <_printf_float+0x2d0>) - 8007510: 4892 ldr r0, [pc, #584] ; (800775c <_printf_float+0x2d4>) - 8007512: f1b9 0f47 cmp.w r9, #71 ; 0x47 - 8007516: bf94 ite ls - 8007518: 4698 movls r8, r3 - 800751a: 4680 movhi r8, r0 - 800751c: 2303 movs r3, #3 - 800751e: f04f 0a00 mov.w sl, #0 - 8007522: 6123 str r3, [r4, #16] - 8007524: f02b 0304 bic.w r3, fp, #4 - 8007528: 6023 str r3, [r4, #0] - 800752a: 4633 mov r3, r6 - 800752c: 4621 mov r1, r4 +08007274 <_printf_float>: + 8007274: e92d 4ff0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, fp, lr} + 8007278: b091 sub sp, #68 ; 0x44 + 800727a: 460c mov r4, r1 + 800727c: f8dd 8068 ldr.w r8, [sp, #104] ; 0x68 + 8007280: 4616 mov r6, r2 + 8007282: 461f mov r7, r3 + 8007284: 4605 mov r5, r0 + 8007286: f001 fa65 bl 8008754 <_localeconv_r> + 800728a: 6803 ldr r3, [r0, #0] + 800728c: 4618 mov r0, r3 + 800728e: 9309 str r3, [sp, #36] ; 0x24 + 8007290: f7f8 ffca bl 8000228 + 8007294: 2300 movs r3, #0 + 8007296: 930e str r3, [sp, #56] ; 0x38 + 8007298: f8d8 3000 ldr.w r3, [r8] + 800729c: 900a str r0, [sp, #40] ; 0x28 + 800729e: 3307 adds r3, #7 + 80072a0: f023 0307 bic.w r3, r3, #7 + 80072a4: f103 0208 add.w r2, r3, #8 + 80072a8: f894 9018 ldrb.w r9, [r4, #24] + 80072ac: f8d4 b000 ldr.w fp, [r4] + 80072b0: f8c8 2000 str.w r2, [r8] + 80072b4: e9d3 2300 ldrd r2, r3, [r3] + 80072b8: e9c4 2312 strd r2, r3, [r4, #72] ; 0x48 + 80072bc: e9d4 8a12 ldrd r8, sl, [r4, #72] ; 0x48 + 80072c0: f02a 4300 bic.w r3, sl, #2147483648 ; 0x80000000 + 80072c4: 930b str r3, [sp, #44] ; 0x2c + 80072c6: f04f 32ff mov.w r2, #4294967295 ; 0xffffffff + 80072ca: 4640 mov r0, r8 + 80072cc: 4b9c ldr r3, [pc, #624] ; (8007540 <_printf_float+0x2cc>) + 80072ce: 990b ldr r1, [sp, #44] ; 0x2c + 80072d0: f7f9 fc08 bl 8000ae4 <__aeabi_dcmpun> + 80072d4: bb70 cbnz r0, 8007334 <_printf_float+0xc0> + 80072d6: f04f 32ff mov.w r2, #4294967295 ; 0xffffffff + 80072da: 4640 mov r0, r8 + 80072dc: 4b98 ldr r3, [pc, #608] ; (8007540 <_printf_float+0x2cc>) + 80072de: 990b ldr r1, [sp, #44] ; 0x2c + 80072e0: f7f9 fbe2 bl 8000aa8 <__aeabi_dcmple> + 80072e4: bb30 cbnz r0, 8007334 <_printf_float+0xc0> + 80072e6: 2200 movs r2, #0 + 80072e8: 2300 movs r3, #0 + 80072ea: 4640 mov r0, r8 + 80072ec: 4651 mov r1, sl + 80072ee: f7f9 fbd1 bl 8000a94 <__aeabi_dcmplt> + 80072f2: b110 cbz r0, 80072fa <_printf_float+0x86> + 80072f4: 232d movs r3, #45 ; 0x2d + 80072f6: f884 3043 strb.w r3, [r4, #67] ; 0x43 + 80072fa: 4b92 ldr r3, [pc, #584] ; (8007544 <_printf_float+0x2d0>) + 80072fc: 4892 ldr r0, [pc, #584] ; (8007548 <_printf_float+0x2d4>) + 80072fe: f1b9 0f47 cmp.w r9, #71 ; 0x47 + 8007302: bf94 ite ls + 8007304: 4698 movls r8, r3 + 8007306: 4680 movhi r8, r0 + 8007308: 2303 movs r3, #3 + 800730a: f04f 0a00 mov.w sl, #0 + 800730e: 6123 str r3, [r4, #16] + 8007310: f02b 0304 bic.w r3, fp, #4 + 8007314: 6023 str r3, [r4, #0] + 8007316: 4633 mov r3, r6 + 8007318: 4621 mov r1, r4 + 800731a: 4628 mov r0, r5 + 800731c: 9700 str r7, [sp, #0] + 800731e: aa0f add r2, sp, #60 ; 0x3c + 8007320: f000 f9d4 bl 80076cc <_printf_common> + 8007324: 3001 adds r0, #1 + 8007326: f040 8090 bne.w 800744a <_printf_float+0x1d6> + 800732a: f04f 30ff mov.w r0, #4294967295 ; 0xffffffff + 800732e: b011 add sp, #68 ; 0x44 + 8007330: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc} + 8007334: 4642 mov r2, r8 + 8007336: 4653 mov r3, sl + 8007338: 4640 mov r0, r8 + 800733a: 4651 mov r1, sl + 800733c: f7f9 fbd2 bl 8000ae4 <__aeabi_dcmpun> + 8007340: b148 cbz r0, 8007356 <_printf_float+0xe2> + 8007342: f1ba 0f00 cmp.w sl, #0 + 8007346: bfb8 it lt + 8007348: 232d movlt r3, #45 ; 0x2d + 800734a: 4880 ldr r0, [pc, #512] ; (800754c <_printf_float+0x2d8>) + 800734c: bfb8 it lt + 800734e: f884 3043 strblt.w r3, [r4, #67] ; 0x43 + 8007352: 4b7f ldr r3, [pc, #508] ; (8007550 <_printf_float+0x2dc>) + 8007354: e7d3 b.n 80072fe <_printf_float+0x8a> + 8007356: 6863 ldr r3, [r4, #4] + 8007358: f009 01df and.w r1, r9, #223 ; 0xdf + 800735c: 1c5a adds r2, r3, #1 + 800735e: d142 bne.n 80073e6 <_printf_float+0x172> + 8007360: 2306 movs r3, #6 + 8007362: 6063 str r3, [r4, #4] + 8007364: 2200 movs r2, #0 + 8007366: 9206 str r2, [sp, #24] + 8007368: aa0e add r2, sp, #56 ; 0x38 + 800736a: e9cd 9204 strd r9, r2, [sp, #16] + 800736e: aa0d add r2, sp, #52 ; 0x34 + 8007370: f44b 6380 orr.w r3, fp, #1024 ; 0x400 + 8007374: 9203 str r2, [sp, #12] + 8007376: f10d 0233 add.w r2, sp, #51 ; 0x33 + 800737a: e9cd 3201 strd r3, r2, [sp, #4] + 800737e: 6023 str r3, [r4, #0] + 8007380: 6863 ldr r3, [r4, #4] + 8007382: 4642 mov r2, r8 + 8007384: 9300 str r3, [sp, #0] + 8007386: 4628 mov r0, r5 + 8007388: 4653 mov r3, sl + 800738a: 910b str r1, [sp, #44] ; 0x2c + 800738c: f7ff fed4 bl 8007138 <__cvt> + 8007390: 990b ldr r1, [sp, #44] ; 0x2c + 8007392: 4680 mov r8, r0 + 8007394: 2947 cmp r1, #71 ; 0x47 + 8007396: 990d ldr r1, [sp, #52] ; 0x34 + 8007398: d108 bne.n 80073ac <_printf_float+0x138> + 800739a: 1cc8 adds r0, r1, #3 + 800739c: db02 blt.n 80073a4 <_printf_float+0x130> + 800739e: 6863 ldr r3, [r4, #4] + 80073a0: 4299 cmp r1, r3 + 80073a2: dd40 ble.n 8007426 <_printf_float+0x1b2> + 80073a4: f1a9 0902 sub.w r9, r9, #2 + 80073a8: fa5f f989 uxtb.w r9, r9 + 80073ac: f1b9 0f65 cmp.w r9, #101 ; 0x65 + 80073b0: d81f bhi.n 80073f2 <_printf_float+0x17e> + 80073b2: 464a mov r2, r9 + 80073b4: 3901 subs r1, #1 + 80073b6: f104 0050 add.w r0, r4, #80 ; 0x50 + 80073ba: 910d str r1, [sp, #52] ; 0x34 + 80073bc: f7ff ff1b bl 80071f6 <__exponent> + 80073c0: 9a0e ldr r2, [sp, #56] ; 0x38 + 80073c2: 4682 mov sl, r0 + 80073c4: 1813 adds r3, r2, r0 + 80073c6: 2a01 cmp r2, #1 + 80073c8: 6123 str r3, [r4, #16] + 80073ca: dc02 bgt.n 80073d2 <_printf_float+0x15e> + 80073cc: 6822 ldr r2, [r4, #0] + 80073ce: 07d2 lsls r2, r2, #31 + 80073d0: d501 bpl.n 80073d6 <_printf_float+0x162> + 80073d2: 3301 adds r3, #1 + 80073d4: 6123 str r3, [r4, #16] + 80073d6: f89d 3033 ldrb.w r3, [sp, #51] ; 0x33 + 80073da: 2b00 cmp r3, #0 + 80073dc: d09b beq.n 8007316 <_printf_float+0xa2> + 80073de: 232d movs r3, #45 ; 0x2d + 80073e0: f884 3043 strb.w r3, [r4, #67] ; 0x43 + 80073e4: e797 b.n 8007316 <_printf_float+0xa2> + 80073e6: 2947 cmp r1, #71 ; 0x47 + 80073e8: d1bc bne.n 8007364 <_printf_float+0xf0> + 80073ea: 2b00 cmp r3, #0 + 80073ec: d1ba bne.n 8007364 <_printf_float+0xf0> + 80073ee: 2301 movs r3, #1 + 80073f0: e7b7 b.n 8007362 <_printf_float+0xee> + 80073f2: f1b9 0f66 cmp.w r9, #102 ; 0x66 + 80073f6: d118 bne.n 800742a <_printf_float+0x1b6> + 80073f8: 2900 cmp r1, #0 + 80073fa: 6863 ldr r3, [r4, #4] + 80073fc: dd0b ble.n 8007416 <_printf_float+0x1a2> + 80073fe: 6121 str r1, [r4, #16] + 8007400: b913 cbnz r3, 8007408 <_printf_float+0x194> + 8007402: 6822 ldr r2, [r4, #0] + 8007404: 07d0 lsls r0, r2, #31 + 8007406: d502 bpl.n 800740e <_printf_float+0x19a> + 8007408: 3301 adds r3, #1 + 800740a: 440b add r3, r1 + 800740c: 6123 str r3, [r4, #16] + 800740e: f04f 0a00 mov.w sl, #0 + 8007412: 65a1 str r1, [r4, #88] ; 0x58 + 8007414: e7df b.n 80073d6 <_printf_float+0x162> + 8007416: b913 cbnz r3, 800741e <_printf_float+0x1aa> + 8007418: 6822 ldr r2, [r4, #0] + 800741a: 07d2 lsls r2, r2, #31 + 800741c: d501 bpl.n 8007422 <_printf_float+0x1ae> + 800741e: 3302 adds r3, #2 + 8007420: e7f4 b.n 800740c <_printf_float+0x198> + 8007422: 2301 movs r3, #1 + 8007424: e7f2 b.n 800740c <_printf_float+0x198> + 8007426: f04f 0967 mov.w r9, #103 ; 0x67 + 800742a: 9b0e ldr r3, [sp, #56] ; 0x38 + 800742c: 4299 cmp r1, r3 + 800742e: db05 blt.n 800743c <_printf_float+0x1c8> + 8007430: 6823 ldr r3, [r4, #0] + 8007432: 6121 str r1, [r4, #16] + 8007434: 07d8 lsls r0, r3, #31 + 8007436: d5ea bpl.n 800740e <_printf_float+0x19a> + 8007438: 1c4b adds r3, r1, #1 + 800743a: e7e7 b.n 800740c <_printf_float+0x198> + 800743c: 2900 cmp r1, #0 + 800743e: bfcc ite gt + 8007440: 2201 movgt r2, #1 + 8007442: f1c1 0202 rsble r2, r1, #2 + 8007446: 4413 add r3, r2 + 8007448: e7e0 b.n 800740c <_printf_float+0x198> + 800744a: 6823 ldr r3, [r4, #0] + 800744c: 055a lsls r2, r3, #21 + 800744e: d407 bmi.n 8007460 <_printf_float+0x1ec> + 8007450: 6923 ldr r3, [r4, #16] + 8007452: 4642 mov r2, r8 + 8007454: 4631 mov r1, r6 + 8007456: 4628 mov r0, r5 + 8007458: 47b8 blx r7 + 800745a: 3001 adds r0, #1 + 800745c: d12b bne.n 80074b6 <_printf_float+0x242> + 800745e: e764 b.n 800732a <_printf_float+0xb6> + 8007460: f1b9 0f65 cmp.w r9, #101 ; 0x65 + 8007464: f240 80dd bls.w 8007622 <_printf_float+0x3ae> + 8007468: e9d4 0112 ldrd r0, r1, [r4, #72] ; 0x48 + 800746c: 2200 movs r2, #0 + 800746e: 2300 movs r3, #0 + 8007470: f7f9 fb06 bl 8000a80 <__aeabi_dcmpeq> + 8007474: 2800 cmp r0, #0 + 8007476: d033 beq.n 80074e0 <_printf_float+0x26c> + 8007478: 2301 movs r3, #1 + 800747a: 4631 mov r1, r6 + 800747c: 4628 mov r0, r5 + 800747e: 4a35 ldr r2, [pc, #212] ; (8007554 <_printf_float+0x2e0>) + 8007480: 47b8 blx r7 + 8007482: 3001 adds r0, #1 + 8007484: f43f af51 beq.w 800732a <_printf_float+0xb6> + 8007488: e9dd 230d ldrd r2, r3, [sp, #52] ; 0x34 + 800748c: 429a cmp r2, r3 + 800748e: db02 blt.n 8007496 <_printf_float+0x222> + 8007490: 6823 ldr r3, [r4, #0] + 8007492: 07d8 lsls r0, r3, #31 + 8007494: d50f bpl.n 80074b6 <_printf_float+0x242> + 8007496: e9dd 2309 ldrd r2, r3, [sp, #36] ; 0x24 + 800749a: 4631 mov r1, r6 + 800749c: 4628 mov r0, r5 + 800749e: 47b8 blx r7 + 80074a0: 3001 adds r0, #1 + 80074a2: f43f af42 beq.w 800732a <_printf_float+0xb6> + 80074a6: f04f 0800 mov.w r8, #0 + 80074aa: f104 091a add.w r9, r4, #26 + 80074ae: 9b0e ldr r3, [sp, #56] ; 0x38 + 80074b0: 3b01 subs r3, #1 + 80074b2: 4543 cmp r3, r8 + 80074b4: dc09 bgt.n 80074ca <_printf_float+0x256> + 80074b6: 6823 ldr r3, [r4, #0] + 80074b8: 079b lsls r3, r3, #30 + 80074ba: f100 8102 bmi.w 80076c2 <_printf_float+0x44e> + 80074be: 68e0 ldr r0, [r4, #12] + 80074c0: 9b0f ldr r3, [sp, #60] ; 0x3c + 80074c2: 4298 cmp r0, r3 + 80074c4: bfb8 it lt + 80074c6: 4618 movlt r0, r3 + 80074c8: e731 b.n 800732e <_printf_float+0xba> + 80074ca: 2301 movs r3, #1 + 80074cc: 464a mov r2, r9 + 80074ce: 4631 mov r1, r6 + 80074d0: 4628 mov r0, r5 + 80074d2: 47b8 blx r7 + 80074d4: 3001 adds r0, #1 + 80074d6: f43f af28 beq.w 800732a <_printf_float+0xb6> + 80074da: f108 0801 add.w r8, r8, #1 + 80074de: e7e6 b.n 80074ae <_printf_float+0x23a> + 80074e0: 9b0d ldr r3, [sp, #52] ; 0x34 + 80074e2: 2b00 cmp r3, #0 + 80074e4: dc38 bgt.n 8007558 <_printf_float+0x2e4> + 80074e6: 2301 movs r3, #1 + 80074e8: 4631 mov r1, r6 + 80074ea: 4628 mov r0, r5 + 80074ec: 4a19 ldr r2, [pc, #100] ; (8007554 <_printf_float+0x2e0>) + 80074ee: 47b8 blx r7 + 80074f0: 3001 adds r0, #1 + 80074f2: f43f af1a beq.w 800732a <_printf_float+0xb6> + 80074f6: e9dd 230d ldrd r2, r3, [sp, #52] ; 0x34 + 80074fa: 4313 orrs r3, r2 + 80074fc: d102 bne.n 8007504 <_printf_float+0x290> + 80074fe: 6823 ldr r3, [r4, #0] + 8007500: 07d9 lsls r1, r3, #31 + 8007502: d5d8 bpl.n 80074b6 <_printf_float+0x242> + 8007504: e9dd 2309 ldrd r2, r3, [sp, #36] ; 0x24 + 8007508: 4631 mov r1, r6 + 800750a: 4628 mov r0, r5 + 800750c: 47b8 blx r7 + 800750e: 3001 adds r0, #1 + 8007510: f43f af0b beq.w 800732a <_printf_float+0xb6> + 8007514: f04f 0900 mov.w r9, #0 + 8007518: f104 0a1a add.w sl, r4, #26 + 800751c: 9b0d ldr r3, [sp, #52] ; 0x34 + 800751e: 425b negs r3, r3 + 8007520: 454b cmp r3, r9 + 8007522: dc01 bgt.n 8007528 <_printf_float+0x2b4> + 8007524: 9b0e ldr r3, [sp, #56] ; 0x38 + 8007526: e794 b.n 8007452 <_printf_float+0x1de> + 8007528: 2301 movs r3, #1 + 800752a: 4652 mov r2, sl + 800752c: 4631 mov r1, r6 800752e: 4628 mov r0, r5 - 8007530: 9700 str r7, [sp, #0] - 8007532: aa0f add r2, sp, #60 ; 0x3c - 8007534: f000 f9d4 bl 80078e0 <_printf_common> - 8007538: 3001 adds r0, #1 - 800753a: f040 8090 bne.w 800765e <_printf_float+0x1d6> - 800753e: f04f 30ff mov.w r0, #4294967295 ; 0xffffffff - 8007542: b011 add sp, #68 ; 0x44 - 8007544: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc} - 8007548: 4642 mov r2, r8 - 800754a: 4653 mov r3, sl - 800754c: 4640 mov r0, r8 - 800754e: 4651 mov r1, sl - 8007550: f7f9 fac8 bl 8000ae4 <__aeabi_dcmpun> - 8007554: b148 cbz r0, 800756a <_printf_float+0xe2> - 8007556: f1ba 0f00 cmp.w sl, #0 - 800755a: bfb8 it lt - 800755c: 232d movlt r3, #45 ; 0x2d - 800755e: 4880 ldr r0, [pc, #512] ; (8007760 <_printf_float+0x2d8>) - 8007560: bfb8 it lt - 8007562: f884 3043 strblt.w r3, [r4, #67] ; 0x43 - 8007566: 4b7f ldr r3, [pc, #508] ; (8007764 <_printf_float+0x2dc>) - 8007568: e7d3 b.n 8007512 <_printf_float+0x8a> - 800756a: 6863 ldr r3, [r4, #4] - 800756c: f009 01df and.w r1, r9, #223 ; 0xdf - 8007570: 1c5a adds r2, r3, #1 - 8007572: d142 bne.n 80075fa <_printf_float+0x172> - 8007574: 2306 movs r3, #6 - 8007576: 6063 str r3, [r4, #4] - 8007578: 2200 movs r2, #0 - 800757a: 9206 str r2, [sp, #24] - 800757c: aa0e add r2, sp, #56 ; 0x38 - 800757e: e9cd 9204 strd r9, r2, [sp, #16] - 8007582: aa0d add r2, sp, #52 ; 0x34 - 8007584: f44b 6380 orr.w r3, fp, #1024 ; 0x400 - 8007588: 9203 str r2, [sp, #12] - 800758a: f10d 0233 add.w r2, sp, #51 ; 0x33 - 800758e: e9cd 3201 strd r3, r2, [sp, #4] - 8007592: 6023 str r3, [r4, #0] - 8007594: 6863 ldr r3, [r4, #4] - 8007596: 4642 mov r2, r8 - 8007598: 9300 str r3, [sp, #0] - 800759a: 4628 mov r0, r5 - 800759c: 4653 mov r3, sl - 800759e: 910b str r1, [sp, #44] ; 0x2c - 80075a0: f7ff fed4 bl 800734c <__cvt> - 80075a4: 990b ldr r1, [sp, #44] ; 0x2c - 80075a6: 4680 mov r8, r0 - 80075a8: 2947 cmp r1, #71 ; 0x47 - 80075aa: 990d ldr r1, [sp, #52] ; 0x34 - 80075ac: d108 bne.n 80075c0 <_printf_float+0x138> - 80075ae: 1cc8 adds r0, r1, #3 - 80075b0: db02 blt.n 80075b8 <_printf_float+0x130> - 80075b2: 6863 ldr r3, [r4, #4] - 80075b4: 4299 cmp r1, r3 - 80075b6: dd40 ble.n 800763a <_printf_float+0x1b2> - 80075b8: f1a9 0902 sub.w r9, r9, #2 - 80075bc: fa5f f989 uxtb.w r9, r9 - 80075c0: f1b9 0f65 cmp.w r9, #101 ; 0x65 - 80075c4: d81f bhi.n 8007606 <_printf_float+0x17e> - 80075c6: 464a mov r2, r9 - 80075c8: 3901 subs r1, #1 - 80075ca: f104 0050 add.w r0, r4, #80 ; 0x50 - 80075ce: 910d str r1, [sp, #52] ; 0x34 - 80075d0: f7ff ff1b bl 800740a <__exponent> - 80075d4: 9a0e ldr r2, [sp, #56] ; 0x38 - 80075d6: 4682 mov sl, r0 - 80075d8: 1813 adds r3, r2, r0 - 80075da: 2a01 cmp r2, #1 - 80075dc: 6123 str r3, [r4, #16] - 80075de: dc02 bgt.n 80075e6 <_printf_float+0x15e> - 80075e0: 6822 ldr r2, [r4, #0] - 80075e2: 07d2 lsls r2, r2, #31 - 80075e4: d501 bpl.n 80075ea <_printf_float+0x162> - 80075e6: 3301 adds r3, #1 - 80075e8: 6123 str r3, [r4, #16] - 80075ea: f89d 3033 ldrb.w r3, [sp, #51] ; 0x33 - 80075ee: 2b00 cmp r3, #0 - 80075f0: d09b beq.n 800752a <_printf_float+0xa2> - 80075f2: 232d movs r3, #45 ; 0x2d - 80075f4: f884 3043 strb.w r3, [r4, #67] ; 0x43 - 80075f8: e797 b.n 800752a <_printf_float+0xa2> - 80075fa: 2947 cmp r1, #71 ; 0x47 - 80075fc: d1bc bne.n 8007578 <_printf_float+0xf0> - 80075fe: 2b00 cmp r3, #0 - 8007600: d1ba bne.n 8007578 <_printf_float+0xf0> - 8007602: 2301 movs r3, #1 - 8007604: e7b7 b.n 8007576 <_printf_float+0xee> - 8007606: f1b9 0f66 cmp.w r9, #102 ; 0x66 - 800760a: d118 bne.n 800763e <_printf_float+0x1b6> - 800760c: 2900 cmp r1, #0 - 800760e: 6863 ldr r3, [r4, #4] - 8007610: dd0b ble.n 800762a <_printf_float+0x1a2> - 8007612: 6121 str r1, [r4, #16] - 8007614: b913 cbnz r3, 800761c <_printf_float+0x194> - 8007616: 6822 ldr r2, [r4, #0] - 8007618: 07d0 lsls r0, r2, #31 - 800761a: d502 bpl.n 8007622 <_printf_float+0x19a> - 800761c: 3301 adds r3, #1 - 800761e: 440b add r3, r1 - 8007620: 6123 str r3, [r4, #16] - 8007622: f04f 0a00 mov.w sl, #0 - 8007626: 65a1 str r1, [r4, #88] ; 0x58 - 8007628: e7df b.n 80075ea <_printf_float+0x162> - 800762a: b913 cbnz r3, 8007632 <_printf_float+0x1aa> - 800762c: 6822 ldr r2, [r4, #0] - 800762e: 07d2 lsls r2, r2, #31 - 8007630: d501 bpl.n 8007636 <_printf_float+0x1ae> - 8007632: 3302 adds r3, #2 - 8007634: e7f4 b.n 8007620 <_printf_float+0x198> - 8007636: 2301 movs r3, #1 - 8007638: e7f2 b.n 8007620 <_printf_float+0x198> - 800763a: f04f 0967 mov.w r9, #103 ; 0x67 - 800763e: 9b0e ldr r3, [sp, #56] ; 0x38 - 8007640: 4299 cmp r1, r3 - 8007642: db05 blt.n 8007650 <_printf_float+0x1c8> - 8007644: 6823 ldr r3, [r4, #0] - 8007646: 6121 str r1, [r4, #16] - 8007648: 07d8 lsls r0, r3, #31 - 800764a: d5ea bpl.n 8007622 <_printf_float+0x19a> - 800764c: 1c4b adds r3, r1, #1 - 800764e: e7e7 b.n 8007620 <_printf_float+0x198> - 8007650: 2900 cmp r1, #0 - 8007652: bfcc ite gt - 8007654: 2201 movgt r2, #1 - 8007656: f1c1 0202 rsble r2, r1, #2 - 800765a: 4413 add r3, r2 - 800765c: e7e0 b.n 8007620 <_printf_float+0x198> - 800765e: 6823 ldr r3, [r4, #0] - 8007660: 055a lsls r2, r3, #21 - 8007662: d407 bmi.n 8007674 <_printf_float+0x1ec> - 8007664: 6923 ldr r3, [r4, #16] - 8007666: 4642 mov r2, r8 - 8007668: 4631 mov r1, r6 - 800766a: 4628 mov r0, r5 - 800766c: 47b8 blx r7 - 800766e: 3001 adds r0, #1 - 8007670: d12b bne.n 80076ca <_printf_float+0x242> - 8007672: e764 b.n 800753e <_printf_float+0xb6> - 8007674: f1b9 0f65 cmp.w r9, #101 ; 0x65 - 8007678: f240 80dd bls.w 8007836 <_printf_float+0x3ae> - 800767c: e9d4 0112 ldrd r0, r1, [r4, #72] ; 0x48 - 8007680: 2200 movs r2, #0 - 8007682: 2300 movs r3, #0 - 8007684: f7f9 f9fc bl 8000a80 <__aeabi_dcmpeq> - 8007688: 2800 cmp r0, #0 - 800768a: d033 beq.n 80076f4 <_printf_float+0x26c> - 800768c: 2301 movs r3, #1 - 800768e: 4631 mov r1, r6 - 8007690: 4628 mov r0, r5 - 8007692: 4a35 ldr r2, [pc, #212] ; (8007768 <_printf_float+0x2e0>) - 8007694: 47b8 blx r7 - 8007696: 3001 adds r0, #1 - 8007698: f43f af51 beq.w 800753e <_printf_float+0xb6> - 800769c: e9dd 230d ldrd r2, r3, [sp, #52] ; 0x34 - 80076a0: 429a cmp r2, r3 - 80076a2: db02 blt.n 80076aa <_printf_float+0x222> - 80076a4: 6823 ldr r3, [r4, #0] - 80076a6: 07d8 lsls r0, r3, #31 - 80076a8: d50f bpl.n 80076ca <_printf_float+0x242> - 80076aa: e9dd 2309 ldrd r2, r3, [sp, #36] ; 0x24 - 80076ae: 4631 mov r1, r6 - 80076b0: 4628 mov r0, r5 - 80076b2: 47b8 blx r7 - 80076b4: 3001 adds r0, #1 - 80076b6: f43f af42 beq.w 800753e <_printf_float+0xb6> - 80076ba: f04f 0800 mov.w r8, #0 - 80076be: f104 091a add.w r9, r4, #26 - 80076c2: 9b0e ldr r3, [sp, #56] ; 0x38 - 80076c4: 3b01 subs r3, #1 - 80076c6: 4543 cmp r3, r8 - 80076c8: dc09 bgt.n 80076de <_printf_float+0x256> - 80076ca: 6823 ldr r3, [r4, #0] - 80076cc: 079b lsls r3, r3, #30 - 80076ce: f100 8102 bmi.w 80078d6 <_printf_float+0x44e> - 80076d2: 68e0 ldr r0, [r4, #12] - 80076d4: 9b0f ldr r3, [sp, #60] ; 0x3c - 80076d6: 4298 cmp r0, r3 - 80076d8: bfb8 it lt - 80076da: 4618 movlt r0, r3 - 80076dc: e731 b.n 8007542 <_printf_float+0xba> - 80076de: 2301 movs r3, #1 - 80076e0: 464a mov r2, r9 - 80076e2: 4631 mov r1, r6 - 80076e4: 4628 mov r0, r5 - 80076e6: 47b8 blx r7 - 80076e8: 3001 adds r0, #1 - 80076ea: f43f af28 beq.w 800753e <_printf_float+0xb6> - 80076ee: f108 0801 add.w r8, r8, #1 - 80076f2: e7e6 b.n 80076c2 <_printf_float+0x23a> - 80076f4: 9b0d ldr r3, [sp, #52] ; 0x34 - 80076f6: 2b00 cmp r3, #0 - 80076f8: dc38 bgt.n 800776c <_printf_float+0x2e4> - 80076fa: 2301 movs r3, #1 - 80076fc: 4631 mov r1, r6 - 80076fe: 4628 mov r0, r5 - 8007700: 4a19 ldr r2, [pc, #100] ; (8007768 <_printf_float+0x2e0>) - 8007702: 47b8 blx r7 - 8007704: 3001 adds r0, #1 - 8007706: f43f af1a beq.w 800753e <_printf_float+0xb6> - 800770a: e9dd 230d ldrd r2, r3, [sp, #52] ; 0x34 - 800770e: 4313 orrs r3, r2 - 8007710: d102 bne.n 8007718 <_printf_float+0x290> - 8007712: 6823 ldr r3, [r4, #0] - 8007714: 07d9 lsls r1, r3, #31 - 8007716: d5d8 bpl.n 80076ca <_printf_float+0x242> - 8007718: e9dd 2309 ldrd r2, r3, [sp, #36] ; 0x24 - 800771c: 4631 mov r1, r6 - 800771e: 4628 mov r0, r5 - 8007720: 47b8 blx r7 - 8007722: 3001 adds r0, #1 - 8007724: f43f af0b beq.w 800753e <_printf_float+0xb6> - 8007728: f04f 0900 mov.w r9, #0 - 800772c: f104 0a1a add.w sl, r4, #26 - 8007730: 9b0d ldr r3, [sp, #52] ; 0x34 - 8007732: 425b negs r3, r3 - 8007734: 454b cmp r3, r9 - 8007736: dc01 bgt.n 800773c <_printf_float+0x2b4> - 8007738: 9b0e ldr r3, [sp, #56] ; 0x38 - 800773a: e794 b.n 8007666 <_printf_float+0x1de> - 800773c: 2301 movs r3, #1 - 800773e: 4652 mov r2, sl - 8007740: 4631 mov r1, r6 - 8007742: 4628 mov r0, r5 - 8007744: 47b8 blx r7 - 8007746: 3001 adds r0, #1 - 8007748: f43f aef9 beq.w 800753e <_printf_float+0xb6> - 800774c: f109 0901 add.w r9, r9, #1 - 8007750: e7ee b.n 8007730 <_printf_float+0x2a8> - 8007752: bf00 nop - 8007754: 7fefffff .word 0x7fefffff - 8007758: 0800aedc .word 0x0800aedc - 800775c: 0800aee0 .word 0x0800aee0 - 8007760: 0800aee8 .word 0x0800aee8 - 8007764: 0800aee4 .word 0x0800aee4 - 8007768: 0800aeec .word 0x0800aeec - 800776c: 9a0e ldr r2, [sp, #56] ; 0x38 - 800776e: 6da3 ldr r3, [r4, #88] ; 0x58 - 8007770: 429a cmp r2, r3 - 8007772: bfa8 it ge - 8007774: 461a movge r2, r3 - 8007776: 2a00 cmp r2, #0 - 8007778: 4691 mov r9, r2 - 800777a: dc37 bgt.n 80077ec <_printf_float+0x364> - 800777c: f04f 0b00 mov.w fp, #0 - 8007780: ea29 79e9 bic.w r9, r9, r9, asr #31 - 8007784: f104 021a add.w r2, r4, #26 - 8007788: f8d4 a058 ldr.w sl, [r4, #88] ; 0x58 - 800778c: ebaa 0309 sub.w r3, sl, r9 - 8007790: 455b cmp r3, fp - 8007792: dc33 bgt.n 80077fc <_printf_float+0x374> - 8007794: e9dd 230d ldrd r2, r3, [sp, #52] ; 0x34 - 8007798: 429a cmp r2, r3 - 800779a: db3b blt.n 8007814 <_printf_float+0x38c> - 800779c: 6823 ldr r3, [r4, #0] - 800779e: 07da lsls r2, r3, #31 - 80077a0: d438 bmi.n 8007814 <_printf_float+0x38c> - 80077a2: 9a0e ldr r2, [sp, #56] ; 0x38 - 80077a4: 990d ldr r1, [sp, #52] ; 0x34 - 80077a6: eba2 030a sub.w r3, r2, sl - 80077aa: eba2 0901 sub.w r9, r2, r1 - 80077ae: 4599 cmp r9, r3 - 80077b0: bfa8 it ge - 80077b2: 4699 movge r9, r3 - 80077b4: f1b9 0f00 cmp.w r9, #0 - 80077b8: dc34 bgt.n 8007824 <_printf_float+0x39c> - 80077ba: f04f 0800 mov.w r8, #0 - 80077be: ea29 79e9 bic.w r9, r9, r9, asr #31 - 80077c2: f104 0a1a add.w sl, r4, #26 - 80077c6: e9dd 230d ldrd r2, r3, [sp, #52] ; 0x34 - 80077ca: 1a9b subs r3, r3, r2 - 80077cc: eba3 0309 sub.w r3, r3, r9 - 80077d0: 4543 cmp r3, r8 - 80077d2: f77f af7a ble.w 80076ca <_printf_float+0x242> - 80077d6: 2301 movs r3, #1 - 80077d8: 4652 mov r2, sl - 80077da: 4631 mov r1, r6 - 80077dc: 4628 mov r0, r5 - 80077de: 47b8 blx r7 - 80077e0: 3001 adds r0, #1 - 80077e2: f43f aeac beq.w 800753e <_printf_float+0xb6> - 80077e6: f108 0801 add.w r8, r8, #1 - 80077ea: e7ec b.n 80077c6 <_printf_float+0x33e> - 80077ec: 4613 mov r3, r2 - 80077ee: 4631 mov r1, r6 - 80077f0: 4642 mov r2, r8 - 80077f2: 4628 mov r0, r5 - 80077f4: 47b8 blx r7 - 80077f6: 3001 adds r0, #1 - 80077f8: d1c0 bne.n 800777c <_printf_float+0x2f4> - 80077fa: e6a0 b.n 800753e <_printf_float+0xb6> - 80077fc: 2301 movs r3, #1 - 80077fe: 4631 mov r1, r6 - 8007800: 4628 mov r0, r5 - 8007802: 920b str r2, [sp, #44] ; 0x2c - 8007804: 47b8 blx r7 - 8007806: 3001 adds r0, #1 - 8007808: f43f ae99 beq.w 800753e <_printf_float+0xb6> - 800780c: 9a0b ldr r2, [sp, #44] ; 0x2c - 800780e: f10b 0b01 add.w fp, fp, #1 - 8007812: e7b9 b.n 8007788 <_printf_float+0x300> - 8007814: 4631 mov r1, r6 - 8007816: e9dd 2309 ldrd r2, r3, [sp, #36] ; 0x24 - 800781a: 4628 mov r0, r5 - 800781c: 47b8 blx r7 - 800781e: 3001 adds r0, #1 - 8007820: d1bf bne.n 80077a2 <_printf_float+0x31a> - 8007822: e68c b.n 800753e <_printf_float+0xb6> - 8007824: 464b mov r3, r9 - 8007826: 4631 mov r1, r6 - 8007828: 4628 mov r0, r5 - 800782a: eb08 020a add.w r2, r8, sl - 800782e: 47b8 blx r7 - 8007830: 3001 adds r0, #1 - 8007832: d1c2 bne.n 80077ba <_printf_float+0x332> - 8007834: e683 b.n 800753e <_printf_float+0xb6> - 8007836: 9a0e ldr r2, [sp, #56] ; 0x38 - 8007838: 2a01 cmp r2, #1 - 800783a: dc01 bgt.n 8007840 <_printf_float+0x3b8> - 800783c: 07db lsls r3, r3, #31 - 800783e: d537 bpl.n 80078b0 <_printf_float+0x428> - 8007840: 2301 movs r3, #1 - 8007842: 4642 mov r2, r8 - 8007844: 4631 mov r1, r6 - 8007846: 4628 mov r0, r5 - 8007848: 47b8 blx r7 - 800784a: 3001 adds r0, #1 - 800784c: f43f ae77 beq.w 800753e <_printf_float+0xb6> - 8007850: e9dd 2309 ldrd r2, r3, [sp, #36] ; 0x24 - 8007854: 4631 mov r1, r6 - 8007856: 4628 mov r0, r5 - 8007858: 47b8 blx r7 - 800785a: 3001 adds r0, #1 - 800785c: f43f ae6f beq.w 800753e <_printf_float+0xb6> - 8007860: e9d4 0112 ldrd r0, r1, [r4, #72] ; 0x48 - 8007864: 2200 movs r2, #0 - 8007866: 2300 movs r3, #0 - 8007868: f7f9 f90a bl 8000a80 <__aeabi_dcmpeq> - 800786c: b9d8 cbnz r0, 80078a6 <_printf_float+0x41e> - 800786e: 9b0e ldr r3, [sp, #56] ; 0x38 - 8007870: f108 0201 add.w r2, r8, #1 - 8007874: 3b01 subs r3, #1 - 8007876: 4631 mov r1, r6 - 8007878: 4628 mov r0, r5 - 800787a: 47b8 blx r7 - 800787c: 3001 adds r0, #1 - 800787e: d10e bne.n 800789e <_printf_float+0x416> - 8007880: e65d b.n 800753e <_printf_float+0xb6> - 8007882: 2301 movs r3, #1 - 8007884: 464a mov r2, r9 - 8007886: 4631 mov r1, r6 - 8007888: 4628 mov r0, r5 - 800788a: 47b8 blx r7 - 800788c: 3001 adds r0, #1 - 800788e: f43f ae56 beq.w 800753e <_printf_float+0xb6> - 8007892: f108 0801 add.w r8, r8, #1 - 8007896: 9b0e ldr r3, [sp, #56] ; 0x38 - 8007898: 3b01 subs r3, #1 - 800789a: 4543 cmp r3, r8 - 800789c: dcf1 bgt.n 8007882 <_printf_float+0x3fa> - 800789e: 4653 mov r3, sl - 80078a0: f104 0250 add.w r2, r4, #80 ; 0x50 - 80078a4: e6e0 b.n 8007668 <_printf_float+0x1e0> - 80078a6: f04f 0800 mov.w r8, #0 - 80078aa: f104 091a add.w r9, r4, #26 - 80078ae: e7f2 b.n 8007896 <_printf_float+0x40e> - 80078b0: 2301 movs r3, #1 - 80078b2: 4642 mov r2, r8 - 80078b4: e7df b.n 8007876 <_printf_float+0x3ee> - 80078b6: 2301 movs r3, #1 - 80078b8: 464a mov r2, r9 - 80078ba: 4631 mov r1, r6 - 80078bc: 4628 mov r0, r5 - 80078be: 47b8 blx r7 - 80078c0: 3001 adds r0, #1 - 80078c2: f43f ae3c beq.w 800753e <_printf_float+0xb6> - 80078c6: f108 0801 add.w r8, r8, #1 - 80078ca: 68e3 ldr r3, [r4, #12] - 80078cc: 990f ldr r1, [sp, #60] ; 0x3c - 80078ce: 1a5b subs r3, r3, r1 - 80078d0: 4543 cmp r3, r8 - 80078d2: dcf0 bgt.n 80078b6 <_printf_float+0x42e> - 80078d4: e6fd b.n 80076d2 <_printf_float+0x24a> - 80078d6: f04f 0800 mov.w r8, #0 - 80078da: f104 0919 add.w r9, r4, #25 - 80078de: e7f4 b.n 80078ca <_printf_float+0x442> + 8007530: 47b8 blx r7 + 8007532: 3001 adds r0, #1 + 8007534: f43f aef9 beq.w 800732a <_printf_float+0xb6> + 8007538: f109 0901 add.w r9, r9, #1 + 800753c: e7ee b.n 800751c <_printf_float+0x2a8> + 800753e: bf00 nop + 8007540: 7fefffff .word 0x7fefffff + 8007544: 0800a878 .word 0x0800a878 + 8007548: 0800a87c .word 0x0800a87c + 800754c: 0800a884 .word 0x0800a884 + 8007550: 0800a880 .word 0x0800a880 + 8007554: 0800a888 .word 0x0800a888 + 8007558: 9a0e ldr r2, [sp, #56] ; 0x38 + 800755a: 6da3 ldr r3, [r4, #88] ; 0x58 + 800755c: 429a cmp r2, r3 + 800755e: bfa8 it ge + 8007560: 461a movge r2, r3 + 8007562: 2a00 cmp r2, #0 + 8007564: 4691 mov r9, r2 + 8007566: dc37 bgt.n 80075d8 <_printf_float+0x364> + 8007568: f04f 0b00 mov.w fp, #0 + 800756c: ea29 79e9 bic.w r9, r9, r9, asr #31 + 8007570: f104 021a add.w r2, r4, #26 + 8007574: f8d4 a058 ldr.w sl, [r4, #88] ; 0x58 + 8007578: ebaa 0309 sub.w r3, sl, r9 + 800757c: 455b cmp r3, fp + 800757e: dc33 bgt.n 80075e8 <_printf_float+0x374> + 8007580: e9dd 230d ldrd r2, r3, [sp, #52] ; 0x34 + 8007584: 429a cmp r2, r3 + 8007586: db3b blt.n 8007600 <_printf_float+0x38c> + 8007588: 6823 ldr r3, [r4, #0] + 800758a: 07da lsls r2, r3, #31 + 800758c: d438 bmi.n 8007600 <_printf_float+0x38c> + 800758e: 9a0e ldr r2, [sp, #56] ; 0x38 + 8007590: 990d ldr r1, [sp, #52] ; 0x34 + 8007592: eba2 030a sub.w r3, r2, sl + 8007596: eba2 0901 sub.w r9, r2, r1 + 800759a: 4599 cmp r9, r3 + 800759c: bfa8 it ge + 800759e: 4699 movge r9, r3 + 80075a0: f1b9 0f00 cmp.w r9, #0 + 80075a4: dc34 bgt.n 8007610 <_printf_float+0x39c> + 80075a6: f04f 0800 mov.w r8, #0 + 80075aa: ea29 79e9 bic.w r9, r9, r9, asr #31 + 80075ae: f104 0a1a add.w sl, r4, #26 + 80075b2: e9dd 230d ldrd r2, r3, [sp, #52] ; 0x34 + 80075b6: 1a9b subs r3, r3, r2 + 80075b8: eba3 0309 sub.w r3, r3, r9 + 80075bc: 4543 cmp r3, r8 + 80075be: f77f af7a ble.w 80074b6 <_printf_float+0x242> + 80075c2: 2301 movs r3, #1 + 80075c4: 4652 mov r2, sl + 80075c6: 4631 mov r1, r6 + 80075c8: 4628 mov r0, r5 + 80075ca: 47b8 blx r7 + 80075cc: 3001 adds r0, #1 + 80075ce: f43f aeac beq.w 800732a <_printf_float+0xb6> + 80075d2: f108 0801 add.w r8, r8, #1 + 80075d6: e7ec b.n 80075b2 <_printf_float+0x33e> + 80075d8: 4613 mov r3, r2 + 80075da: 4631 mov r1, r6 + 80075dc: 4642 mov r2, r8 + 80075de: 4628 mov r0, r5 + 80075e0: 47b8 blx r7 + 80075e2: 3001 adds r0, #1 + 80075e4: d1c0 bne.n 8007568 <_printf_float+0x2f4> + 80075e6: e6a0 b.n 800732a <_printf_float+0xb6> + 80075e8: 2301 movs r3, #1 + 80075ea: 4631 mov r1, r6 + 80075ec: 4628 mov r0, r5 + 80075ee: 920b str r2, [sp, #44] ; 0x2c + 80075f0: 47b8 blx r7 + 80075f2: 3001 adds r0, #1 + 80075f4: f43f ae99 beq.w 800732a <_printf_float+0xb6> + 80075f8: 9a0b ldr r2, [sp, #44] ; 0x2c + 80075fa: f10b 0b01 add.w fp, fp, #1 + 80075fe: e7b9 b.n 8007574 <_printf_float+0x300> + 8007600: 4631 mov r1, r6 + 8007602: e9dd 2309 ldrd r2, r3, [sp, #36] ; 0x24 + 8007606: 4628 mov r0, r5 + 8007608: 47b8 blx r7 + 800760a: 3001 adds r0, #1 + 800760c: d1bf bne.n 800758e <_printf_float+0x31a> + 800760e: e68c b.n 800732a <_printf_float+0xb6> + 8007610: 464b mov r3, r9 + 8007612: 4631 mov r1, r6 + 8007614: 4628 mov r0, r5 + 8007616: eb08 020a add.w r2, r8, sl + 800761a: 47b8 blx r7 + 800761c: 3001 adds r0, #1 + 800761e: d1c2 bne.n 80075a6 <_printf_float+0x332> + 8007620: e683 b.n 800732a <_printf_float+0xb6> + 8007622: 9a0e ldr r2, [sp, #56] ; 0x38 + 8007624: 2a01 cmp r2, #1 + 8007626: dc01 bgt.n 800762c <_printf_float+0x3b8> + 8007628: 07db lsls r3, r3, #31 + 800762a: d537 bpl.n 800769c <_printf_float+0x428> + 800762c: 2301 movs r3, #1 + 800762e: 4642 mov r2, r8 + 8007630: 4631 mov r1, r6 + 8007632: 4628 mov r0, r5 + 8007634: 47b8 blx r7 + 8007636: 3001 adds r0, #1 + 8007638: f43f ae77 beq.w 800732a <_printf_float+0xb6> + 800763c: e9dd 2309 ldrd r2, r3, [sp, #36] ; 0x24 + 8007640: 4631 mov r1, r6 + 8007642: 4628 mov r0, r5 + 8007644: 47b8 blx r7 + 8007646: 3001 adds r0, #1 + 8007648: f43f ae6f beq.w 800732a <_printf_float+0xb6> + 800764c: e9d4 0112 ldrd r0, r1, [r4, #72] ; 0x48 + 8007650: 2200 movs r2, #0 + 8007652: 2300 movs r3, #0 + 8007654: f7f9 fa14 bl 8000a80 <__aeabi_dcmpeq> + 8007658: b9d8 cbnz r0, 8007692 <_printf_float+0x41e> + 800765a: 9b0e ldr r3, [sp, #56] ; 0x38 + 800765c: f108 0201 add.w r2, r8, #1 + 8007660: 3b01 subs r3, #1 + 8007662: 4631 mov r1, r6 + 8007664: 4628 mov r0, r5 + 8007666: 47b8 blx r7 + 8007668: 3001 adds r0, #1 + 800766a: d10e bne.n 800768a <_printf_float+0x416> + 800766c: e65d b.n 800732a <_printf_float+0xb6> + 800766e: 2301 movs r3, #1 + 8007670: 464a mov r2, r9 + 8007672: 4631 mov r1, r6 + 8007674: 4628 mov r0, r5 + 8007676: 47b8 blx r7 + 8007678: 3001 adds r0, #1 + 800767a: f43f ae56 beq.w 800732a <_printf_float+0xb6> + 800767e: f108 0801 add.w r8, r8, #1 + 8007682: 9b0e ldr r3, [sp, #56] ; 0x38 + 8007684: 3b01 subs r3, #1 + 8007686: 4543 cmp r3, r8 + 8007688: dcf1 bgt.n 800766e <_printf_float+0x3fa> + 800768a: 4653 mov r3, sl + 800768c: f104 0250 add.w r2, r4, #80 ; 0x50 + 8007690: e6e0 b.n 8007454 <_printf_float+0x1e0> + 8007692: f04f 0800 mov.w r8, #0 + 8007696: f104 091a add.w r9, r4, #26 + 800769a: e7f2 b.n 8007682 <_printf_float+0x40e> + 800769c: 2301 movs r3, #1 + 800769e: 4642 mov r2, r8 + 80076a0: e7df b.n 8007662 <_printf_float+0x3ee> + 80076a2: 2301 movs r3, #1 + 80076a4: 464a mov r2, r9 + 80076a6: 4631 mov r1, r6 + 80076a8: 4628 mov r0, r5 + 80076aa: 47b8 blx r7 + 80076ac: 3001 adds r0, #1 + 80076ae: f43f ae3c beq.w 800732a <_printf_float+0xb6> + 80076b2: f108 0801 add.w r8, r8, #1 + 80076b6: 68e3 ldr r3, [r4, #12] + 80076b8: 990f ldr r1, [sp, #60] ; 0x3c + 80076ba: 1a5b subs r3, r3, r1 + 80076bc: 4543 cmp r3, r8 + 80076be: dcf0 bgt.n 80076a2 <_printf_float+0x42e> + 80076c0: e6fd b.n 80074be <_printf_float+0x24a> + 80076c2: f04f 0800 mov.w r8, #0 + 80076c6: f104 0919 add.w r9, r4, #25 + 80076ca: e7f4 b.n 80076b6 <_printf_float+0x442> -080078e0 <_printf_common>: - 80078e0: e92d 47f0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, lr} - 80078e4: 4616 mov r6, r2 - 80078e6: 4699 mov r9, r3 - 80078e8: 688a ldr r2, [r1, #8] - 80078ea: 690b ldr r3, [r1, #16] - 80078ec: 4607 mov r7, r0 - 80078ee: 4293 cmp r3, r2 - 80078f0: bfb8 it lt - 80078f2: 4613 movlt r3, r2 - 80078f4: 6033 str r3, [r6, #0] - 80078f6: f891 2043 ldrb.w r2, [r1, #67] ; 0x43 - 80078fa: 460c mov r4, r1 - 80078fc: f8dd 8020 ldr.w r8, [sp, #32] - 8007900: b10a cbz r2, 8007906 <_printf_common+0x26> - 8007902: 3301 adds r3, #1 - 8007904: 6033 str r3, [r6, #0] - 8007906: 6823 ldr r3, [r4, #0] - 8007908: 0699 lsls r1, r3, #26 - 800790a: bf42 ittt mi - 800790c: 6833 ldrmi r3, [r6, #0] - 800790e: 3302 addmi r3, #2 - 8007910: 6033 strmi r3, [r6, #0] - 8007912: 6825 ldr r5, [r4, #0] - 8007914: f015 0506 ands.w r5, r5, #6 - 8007918: d106 bne.n 8007928 <_printf_common+0x48> - 800791a: f104 0a19 add.w sl, r4, #25 - 800791e: 68e3 ldr r3, [r4, #12] - 8007920: 6832 ldr r2, [r6, #0] - 8007922: 1a9b subs r3, r3, r2 - 8007924: 42ab cmp r3, r5 - 8007926: dc28 bgt.n 800797a <_printf_common+0x9a> - 8007928: f894 2043 ldrb.w r2, [r4, #67] ; 0x43 - 800792c: 1e13 subs r3, r2, #0 - 800792e: 6822 ldr r2, [r4, #0] - 8007930: bf18 it ne - 8007932: 2301 movne r3, #1 - 8007934: 0692 lsls r2, r2, #26 - 8007936: d42d bmi.n 8007994 <_printf_common+0xb4> - 8007938: 4649 mov r1, r9 - 800793a: 4638 mov r0, r7 - 800793c: f104 0243 add.w r2, r4, #67 ; 0x43 - 8007940: 47c0 blx r8 - 8007942: 3001 adds r0, #1 - 8007944: d020 beq.n 8007988 <_printf_common+0xa8> - 8007946: 6823 ldr r3, [r4, #0] - 8007948: 68e5 ldr r5, [r4, #12] - 800794a: f003 0306 and.w r3, r3, #6 - 800794e: 2b04 cmp r3, #4 - 8007950: bf18 it ne - 8007952: 2500 movne r5, #0 - 8007954: 6832 ldr r2, [r6, #0] - 8007956: f04f 0600 mov.w r6, #0 - 800795a: 68a3 ldr r3, [r4, #8] - 800795c: bf08 it eq - 800795e: 1aad subeq r5, r5, r2 - 8007960: 6922 ldr r2, [r4, #16] - 8007962: bf08 it eq - 8007964: ea25 75e5 biceq.w r5, r5, r5, asr #31 - 8007968: 4293 cmp r3, r2 - 800796a: bfc4 itt gt - 800796c: 1a9b subgt r3, r3, r2 - 800796e: 18ed addgt r5, r5, r3 - 8007970: 341a adds r4, #26 - 8007972: 42b5 cmp r5, r6 - 8007974: d11a bne.n 80079ac <_printf_common+0xcc> - 8007976: 2000 movs r0, #0 - 8007978: e008 b.n 800798c <_printf_common+0xac> - 800797a: 2301 movs r3, #1 - 800797c: 4652 mov r2, sl - 800797e: 4649 mov r1, r9 - 8007980: 4638 mov r0, r7 - 8007982: 47c0 blx r8 - 8007984: 3001 adds r0, #1 - 8007986: d103 bne.n 8007990 <_printf_common+0xb0> - 8007988: f04f 30ff mov.w r0, #4294967295 ; 0xffffffff - 800798c: e8bd 87f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, pc} - 8007990: 3501 adds r5, #1 - 8007992: e7c4 b.n 800791e <_printf_common+0x3e> - 8007994: 2030 movs r0, #48 ; 0x30 - 8007996: 18e1 adds r1, r4, r3 - 8007998: f881 0043 strb.w r0, [r1, #67] ; 0x43 - 800799c: 1c5a adds r2, r3, #1 - 800799e: f894 1045 ldrb.w r1, [r4, #69] ; 0x45 - 80079a2: 4422 add r2, r4 - 80079a4: 3302 adds r3, #2 - 80079a6: f882 1043 strb.w r1, [r2, #67] ; 0x43 - 80079aa: e7c5 b.n 8007938 <_printf_common+0x58> - 80079ac: 2301 movs r3, #1 - 80079ae: 4622 mov r2, r4 - 80079b0: 4649 mov r1, r9 - 80079b2: 4638 mov r0, r7 - 80079b4: 47c0 blx r8 +080076cc <_printf_common>: + 80076cc: e92d 47f0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, lr} + 80076d0: 4616 mov r6, r2 + 80076d2: 4699 mov r9, r3 + 80076d4: 688a ldr r2, [r1, #8] + 80076d6: 690b ldr r3, [r1, #16] + 80076d8: 4607 mov r7, r0 + 80076da: 4293 cmp r3, r2 + 80076dc: bfb8 it lt + 80076de: 4613 movlt r3, r2 + 80076e0: 6033 str r3, [r6, #0] + 80076e2: f891 2043 ldrb.w r2, [r1, #67] ; 0x43 + 80076e6: 460c mov r4, r1 + 80076e8: f8dd 8020 ldr.w r8, [sp, #32] + 80076ec: b10a cbz r2, 80076f2 <_printf_common+0x26> + 80076ee: 3301 adds r3, #1 + 80076f0: 6033 str r3, [r6, #0] + 80076f2: 6823 ldr r3, [r4, #0] + 80076f4: 0699 lsls r1, r3, #26 + 80076f6: bf42 ittt mi + 80076f8: 6833 ldrmi r3, [r6, #0] + 80076fa: 3302 addmi r3, #2 + 80076fc: 6033 strmi r3, [r6, #0] + 80076fe: 6825 ldr r5, [r4, #0] + 8007700: f015 0506 ands.w r5, r5, #6 + 8007704: d106 bne.n 8007714 <_printf_common+0x48> + 8007706: f104 0a19 add.w sl, r4, #25 + 800770a: 68e3 ldr r3, [r4, #12] + 800770c: 6832 ldr r2, [r6, #0] + 800770e: 1a9b subs r3, r3, r2 + 8007710: 42ab cmp r3, r5 + 8007712: dc28 bgt.n 8007766 <_printf_common+0x9a> + 8007714: f894 2043 ldrb.w r2, [r4, #67] ; 0x43 + 8007718: 1e13 subs r3, r2, #0 + 800771a: 6822 ldr r2, [r4, #0] + 800771c: bf18 it ne + 800771e: 2301 movne r3, #1 + 8007720: 0692 lsls r2, r2, #26 + 8007722: d42d bmi.n 8007780 <_printf_common+0xb4> + 8007724: 4649 mov r1, r9 + 8007726: 4638 mov r0, r7 + 8007728: f104 0243 add.w r2, r4, #67 ; 0x43 + 800772c: 47c0 blx r8 + 800772e: 3001 adds r0, #1 + 8007730: d020 beq.n 8007774 <_printf_common+0xa8> + 8007732: 6823 ldr r3, [r4, #0] + 8007734: 68e5 ldr r5, [r4, #12] + 8007736: f003 0306 and.w r3, r3, #6 + 800773a: 2b04 cmp r3, #4 + 800773c: bf18 it ne + 800773e: 2500 movne r5, #0 + 8007740: 6832 ldr r2, [r6, #0] + 8007742: f04f 0600 mov.w r6, #0 + 8007746: 68a3 ldr r3, [r4, #8] + 8007748: bf08 it eq + 800774a: 1aad subeq r5, r5, r2 + 800774c: 6922 ldr r2, [r4, #16] + 800774e: bf08 it eq + 8007750: ea25 75e5 biceq.w r5, r5, r5, asr #31 + 8007754: 4293 cmp r3, r2 + 8007756: bfc4 itt gt + 8007758: 1a9b subgt r3, r3, r2 + 800775a: 18ed addgt r5, r5, r3 + 800775c: 341a adds r4, #26 + 800775e: 42b5 cmp r5, r6 + 8007760: d11a bne.n 8007798 <_printf_common+0xcc> + 8007762: 2000 movs r0, #0 + 8007764: e008 b.n 8007778 <_printf_common+0xac> + 8007766: 2301 movs r3, #1 + 8007768: 4652 mov r2, sl + 800776a: 4649 mov r1, r9 + 800776c: 4638 mov r0, r7 + 800776e: 47c0 blx r8 + 8007770: 3001 adds r0, #1 + 8007772: d103 bne.n 800777c <_printf_common+0xb0> + 8007774: f04f 30ff mov.w r0, #4294967295 ; 0xffffffff + 8007778: e8bd 87f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, pc} + 800777c: 3501 adds r5, #1 + 800777e: e7c4 b.n 800770a <_printf_common+0x3e> + 8007780: 2030 movs r0, #48 ; 0x30 + 8007782: 18e1 adds r1, r4, r3 + 8007784: f881 0043 strb.w r0, [r1, #67] ; 0x43 + 8007788: 1c5a adds r2, r3, #1 + 800778a: f894 1045 ldrb.w r1, [r4, #69] ; 0x45 + 800778e: 4422 add r2, r4 + 8007790: 3302 adds r3, #2 + 8007792: f882 1043 strb.w r1, [r2, #67] ; 0x43 + 8007796: e7c5 b.n 8007724 <_printf_common+0x58> + 8007798: 2301 movs r3, #1 + 800779a: 4622 mov r2, r4 + 800779c: 4649 mov r1, r9 + 800779e: 4638 mov r0, r7 + 80077a0: 47c0 blx r8 + 80077a2: 3001 adds r0, #1 + 80077a4: d0e6 beq.n 8007774 <_printf_common+0xa8> + 80077a6: 3601 adds r6, #1 + 80077a8: e7d9 b.n 800775e <_printf_common+0x92> + ... + +080077ac <_printf_i>: + 80077ac: e92d 47ff stmdb sp!, {r0, r1, r2, r3, r4, r5, r6, r7, r8, r9, sl, lr} + 80077b0: 460c mov r4, r1 + 80077b2: 7e27 ldrb r7, [r4, #24] + 80077b4: 4691 mov r9, r2 + 80077b6: 2f78 cmp r7, #120 ; 0x78 + 80077b8: 4680 mov r8, r0 + 80077ba: 469a mov sl, r3 + 80077bc: 990c ldr r1, [sp, #48] ; 0x30 + 80077be: f104 0243 add.w r2, r4, #67 ; 0x43 + 80077c2: d807 bhi.n 80077d4 <_printf_i+0x28> + 80077c4: 2f62 cmp r7, #98 ; 0x62 + 80077c6: d80a bhi.n 80077de <_printf_i+0x32> + 80077c8: 2f00 cmp r7, #0 + 80077ca: f000 80d9 beq.w 8007980 <_printf_i+0x1d4> + 80077ce: 2f58 cmp r7, #88 ; 0x58 + 80077d0: f000 80a4 beq.w 800791c <_printf_i+0x170> + 80077d4: f104 0642 add.w r6, r4, #66 ; 0x42 + 80077d8: f884 7042 strb.w r7, [r4, #66] ; 0x42 + 80077dc: e03a b.n 8007854 <_printf_i+0xa8> + 80077de: f1a7 0363 sub.w r3, r7, #99 ; 0x63 + 80077e2: 2b15 cmp r3, #21 + 80077e4: d8f6 bhi.n 80077d4 <_printf_i+0x28> + 80077e6: a001 add r0, pc, #4 ; (adr r0, 80077ec <_printf_i+0x40>) + 80077e8: f850 f023 ldr.w pc, [r0, r3, lsl #2] + 80077ec: 08007845 .word 0x08007845 + 80077f0: 08007859 .word 0x08007859 + 80077f4: 080077d5 .word 0x080077d5 + 80077f8: 080077d5 .word 0x080077d5 + 80077fc: 080077d5 .word 0x080077d5 + 8007800: 080077d5 .word 0x080077d5 + 8007804: 08007859 .word 0x08007859 + 8007808: 080077d5 .word 0x080077d5 + 800780c: 080077d5 .word 0x080077d5 + 8007810: 080077d5 .word 0x080077d5 + 8007814: 080077d5 .word 0x080077d5 + 8007818: 08007967 .word 0x08007967 + 800781c: 08007889 .word 0x08007889 + 8007820: 08007949 .word 0x08007949 + 8007824: 080077d5 .word 0x080077d5 + 8007828: 080077d5 .word 0x080077d5 + 800782c: 08007989 .word 0x08007989 + 8007830: 080077d5 .word 0x080077d5 + 8007834: 08007889 .word 0x08007889 + 8007838: 080077d5 .word 0x080077d5 + 800783c: 080077d5 .word 0x080077d5 + 8007840: 08007951 .word 0x08007951 + 8007844: 680b ldr r3, [r1, #0] + 8007846: f104 0642 add.w r6, r4, #66 ; 0x42 + 800784a: 1d1a adds r2, r3, #4 + 800784c: 681b ldr r3, [r3, #0] + 800784e: 600a str r2, [r1, #0] + 8007850: f884 3042 strb.w r3, [r4, #66] ; 0x42 + 8007854: 2301 movs r3, #1 + 8007856: e0a4 b.n 80079a2 <_printf_i+0x1f6> + 8007858: 6825 ldr r5, [r4, #0] + 800785a: 6808 ldr r0, [r1, #0] + 800785c: 062e lsls r6, r5, #24 + 800785e: f100 0304 add.w r3, r0, #4 + 8007862: d50a bpl.n 800787a <_printf_i+0xce> + 8007864: 6805 ldr r5, [r0, #0] + 8007866: 600b str r3, [r1, #0] + 8007868: 2d00 cmp r5, #0 + 800786a: da03 bge.n 8007874 <_printf_i+0xc8> + 800786c: 232d movs r3, #45 ; 0x2d + 800786e: 426d negs r5, r5 + 8007870: f884 3043 strb.w r3, [r4, #67] ; 0x43 + 8007874: 230a movs r3, #10 + 8007876: 485e ldr r0, [pc, #376] ; (80079f0 <_printf_i+0x244>) + 8007878: e019 b.n 80078ae <_printf_i+0x102> + 800787a: f015 0f40 tst.w r5, #64 ; 0x40 + 800787e: 6805 ldr r5, [r0, #0] + 8007880: 600b str r3, [r1, #0] + 8007882: bf18 it ne + 8007884: b22d sxthne r5, r5 + 8007886: e7ef b.n 8007868 <_printf_i+0xbc> + 8007888: 680b ldr r3, [r1, #0] + 800788a: 6825 ldr r5, [r4, #0] + 800788c: 1d18 adds r0, r3, #4 + 800788e: 6008 str r0, [r1, #0] + 8007890: 0628 lsls r0, r5, #24 + 8007892: d501 bpl.n 8007898 <_printf_i+0xec> + 8007894: 681d ldr r5, [r3, #0] + 8007896: e002 b.n 800789e <_printf_i+0xf2> + 8007898: 0669 lsls r1, r5, #25 + 800789a: d5fb bpl.n 8007894 <_printf_i+0xe8> + 800789c: 881d ldrh r5, [r3, #0] + 800789e: 2f6f cmp r7, #111 ; 0x6f + 80078a0: bf0c ite eq + 80078a2: 2308 moveq r3, #8 + 80078a4: 230a movne r3, #10 + 80078a6: 4852 ldr r0, [pc, #328] ; (80079f0 <_printf_i+0x244>) + 80078a8: 2100 movs r1, #0 + 80078aa: f884 1043 strb.w r1, [r4, #67] ; 0x43 + 80078ae: 6866 ldr r6, [r4, #4] + 80078b0: 2e00 cmp r6, #0 + 80078b2: bfa8 it ge + 80078b4: 6821 ldrge r1, [r4, #0] + 80078b6: 60a6 str r6, [r4, #8] + 80078b8: bfa4 itt ge + 80078ba: f021 0104 bicge.w r1, r1, #4 + 80078be: 6021 strge r1, [r4, #0] + 80078c0: b90d cbnz r5, 80078c6 <_printf_i+0x11a> + 80078c2: 2e00 cmp r6, #0 + 80078c4: d04d beq.n 8007962 <_printf_i+0x1b6> + 80078c6: 4616 mov r6, r2 + 80078c8: fbb5 f1f3 udiv r1, r5, r3 + 80078cc: fb03 5711 mls r7, r3, r1, r5 + 80078d0: 5dc7 ldrb r7, [r0, r7] + 80078d2: f806 7d01 strb.w r7, [r6, #-1]! + 80078d6: 462f mov r7, r5 + 80078d8: 42bb cmp r3, r7 + 80078da: 460d mov r5, r1 + 80078dc: d9f4 bls.n 80078c8 <_printf_i+0x11c> + 80078de: 2b08 cmp r3, #8 + 80078e0: d10b bne.n 80078fa <_printf_i+0x14e> + 80078e2: 6823 ldr r3, [r4, #0] + 80078e4: 07df lsls r7, r3, #31 + 80078e6: d508 bpl.n 80078fa <_printf_i+0x14e> + 80078e8: 6923 ldr r3, [r4, #16] + 80078ea: 6861 ldr r1, [r4, #4] + 80078ec: 4299 cmp r1, r3 + 80078ee: bfde ittt le + 80078f0: 2330 movle r3, #48 ; 0x30 + 80078f2: f806 3c01 strble.w r3, [r6, #-1] + 80078f6: f106 36ff addle.w r6, r6, #4294967295 ; 0xffffffff + 80078fa: 1b92 subs r2, r2, r6 + 80078fc: 6122 str r2, [r4, #16] + 80078fe: 464b mov r3, r9 + 8007900: 4621 mov r1, r4 + 8007902: 4640 mov r0, r8 + 8007904: f8cd a000 str.w sl, [sp] + 8007908: aa03 add r2, sp, #12 + 800790a: f7ff fedf bl 80076cc <_printf_common> + 800790e: 3001 adds r0, #1 + 8007910: d14c bne.n 80079ac <_printf_i+0x200> + 8007912: f04f 30ff mov.w r0, #4294967295 ; 0xffffffff + 8007916: b004 add sp, #16 + 8007918: e8bd 87f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, pc} + 800791c: 4834 ldr r0, [pc, #208] ; (80079f0 <_printf_i+0x244>) + 800791e: f884 7045 strb.w r7, [r4, #69] ; 0x45 + 8007922: 680e ldr r6, [r1, #0] + 8007924: 6823 ldr r3, [r4, #0] + 8007926: f856 5b04 ldr.w r5, [r6], #4 + 800792a: 061f lsls r7, r3, #24 + 800792c: 600e str r6, [r1, #0] + 800792e: d514 bpl.n 800795a <_printf_i+0x1ae> + 8007930: 07d9 lsls r1, r3, #31 + 8007932: bf44 itt mi + 8007934: f043 0320 orrmi.w r3, r3, #32 + 8007938: 6023 strmi r3, [r4, #0] + 800793a: b91d cbnz r5, 8007944 <_printf_i+0x198> + 800793c: 6823 ldr r3, [r4, #0] + 800793e: f023 0320 bic.w r3, r3, #32 + 8007942: 6023 str r3, [r4, #0] + 8007944: 2310 movs r3, #16 + 8007946: e7af b.n 80078a8 <_printf_i+0xfc> + 8007948: 6823 ldr r3, [r4, #0] + 800794a: f043 0320 orr.w r3, r3, #32 + 800794e: 6023 str r3, [r4, #0] + 8007950: 2378 movs r3, #120 ; 0x78 + 8007952: 4828 ldr r0, [pc, #160] ; (80079f4 <_printf_i+0x248>) + 8007954: f884 3045 strb.w r3, [r4, #69] ; 0x45 + 8007958: e7e3 b.n 8007922 <_printf_i+0x176> + 800795a: 065e lsls r6, r3, #25 + 800795c: bf48 it mi + 800795e: b2ad uxthmi r5, r5 + 8007960: e7e6 b.n 8007930 <_printf_i+0x184> + 8007962: 4616 mov r6, r2 + 8007964: e7bb b.n 80078de <_printf_i+0x132> + 8007966: 680b ldr r3, [r1, #0] + 8007968: 6826 ldr r6, [r4, #0] + 800796a: 1d1d adds r5, r3, #4 + 800796c: 6960 ldr r0, [r4, #20] + 800796e: 600d str r5, [r1, #0] + 8007970: 0635 lsls r5, r6, #24 + 8007972: 681b ldr r3, [r3, #0] + 8007974: d501 bpl.n 800797a <_printf_i+0x1ce> + 8007976: 6018 str r0, [r3, #0] + 8007978: e002 b.n 8007980 <_printf_i+0x1d4> + 800797a: 0671 lsls r1, r6, #25 + 800797c: d5fb bpl.n 8007976 <_printf_i+0x1ca> + 800797e: 8018 strh r0, [r3, #0] + 8007980: 2300 movs r3, #0 + 8007982: 4616 mov r6, r2 + 8007984: 6123 str r3, [r4, #16] + 8007986: e7ba b.n 80078fe <_printf_i+0x152> + 8007988: 680b ldr r3, [r1, #0] + 800798a: 1d1a adds r2, r3, #4 + 800798c: 600a str r2, [r1, #0] + 800798e: 681e ldr r6, [r3, #0] + 8007990: 2100 movs r1, #0 + 8007992: 4630 mov r0, r6 + 8007994: 6862 ldr r2, [r4, #4] + 8007996: f000 fee1 bl 800875c + 800799a: b108 cbz r0, 80079a0 <_printf_i+0x1f4> + 800799c: 1b80 subs r0, r0, r6 + 800799e: 6060 str r0, [r4, #4] + 80079a0: 6863 ldr r3, [r4, #4] + 80079a2: 6123 str r3, [r4, #16] + 80079a4: 2300 movs r3, #0 + 80079a6: f884 3043 strb.w r3, [r4, #67] ; 0x43 + 80079aa: e7a8 b.n 80078fe <_printf_i+0x152> + 80079ac: 4632 mov r2, r6 + 80079ae: 4649 mov r1, r9 + 80079b0: 4640 mov r0, r8 + 80079b2: 6923 ldr r3, [r4, #16] + 80079b4: 47d0 blx sl 80079b6: 3001 adds r0, #1 - 80079b8: d0e6 beq.n 8007988 <_printf_common+0xa8> - 80079ba: 3601 adds r6, #1 - 80079bc: e7d9 b.n 8007972 <_printf_common+0x92> + 80079b8: d0ab beq.n 8007912 <_printf_i+0x166> + 80079ba: 6823 ldr r3, [r4, #0] + 80079bc: 079b lsls r3, r3, #30 + 80079be: d413 bmi.n 80079e8 <_printf_i+0x23c> + 80079c0: 68e0 ldr r0, [r4, #12] + 80079c2: 9b03 ldr r3, [sp, #12] + 80079c4: 4298 cmp r0, r3 + 80079c6: bfb8 it lt + 80079c8: 4618 movlt r0, r3 + 80079ca: e7a4 b.n 8007916 <_printf_i+0x16a> + 80079cc: 2301 movs r3, #1 + 80079ce: 4632 mov r2, r6 + 80079d0: 4649 mov r1, r9 + 80079d2: 4640 mov r0, r8 + 80079d4: 47d0 blx sl + 80079d6: 3001 adds r0, #1 + 80079d8: d09b beq.n 8007912 <_printf_i+0x166> + 80079da: 3501 adds r5, #1 + 80079dc: 68e3 ldr r3, [r4, #12] + 80079de: 9903 ldr r1, [sp, #12] + 80079e0: 1a5b subs r3, r3, r1 + 80079e2: 42ab cmp r3, r5 + 80079e4: dcf2 bgt.n 80079cc <_printf_i+0x220> + 80079e6: e7eb b.n 80079c0 <_printf_i+0x214> + 80079e8: 2500 movs r5, #0 + 80079ea: f104 0619 add.w r6, r4, #25 + 80079ee: e7f5 b.n 80079dc <_printf_i+0x230> + 80079f0: 0800a88a .word 0x0800a88a + 80079f4: 0800a89b .word 0x0800a89b + +080079f8 <_sbrk_r>: + 80079f8: b538 push {r3, r4, r5, lr} + 80079fa: 2300 movs r3, #0 + 80079fc: 4d05 ldr r5, [pc, #20] ; (8007a14 <_sbrk_r+0x1c>) + 80079fe: 4604 mov r4, r0 + 8007a00: 4608 mov r0, r1 + 8007a02: 602b str r3, [r5, #0] + 8007a04: f7f9 ffd6 bl 80019b4 <_sbrk> + 8007a08: 1c43 adds r3, r0, #1 + 8007a0a: d102 bne.n 8007a12 <_sbrk_r+0x1a> + 8007a0c: 682b ldr r3, [r5, #0] + 8007a0e: b103 cbz r3, 8007a12 <_sbrk_r+0x1a> + 8007a10: 6023 str r3, [r4, #0] + 8007a12: bd38 pop {r3, r4, r5, pc} + 8007a14: 200024ec .word 0x200024ec + +08007a18 : + 8007a18: b40e push {r1, r2, r3} + 8007a1a: f06f 4100 mvn.w r1, #2147483648 ; 0x80000000 + 8007a1e: b500 push {lr} + 8007a20: b09c sub sp, #112 ; 0x70 + 8007a22: ab1d add r3, sp, #116 ; 0x74 + 8007a24: 9002 str r0, [sp, #8] + 8007a26: 9006 str r0, [sp, #24] + 8007a28: 9107 str r1, [sp, #28] + 8007a2a: 9104 str r1, [sp, #16] + 8007a2c: 4808 ldr r0, [pc, #32] ; (8007a50 ) + 8007a2e: 4909 ldr r1, [pc, #36] ; (8007a54 ) + 8007a30: f853 2b04 ldr.w r2, [r3], #4 + 8007a34: 9105 str r1, [sp, #20] + 8007a36: 6800 ldr r0, [r0, #0] + 8007a38: a902 add r1, sp, #8 + 8007a3a: 9301 str r3, [sp, #4] + 8007a3c: f001 faa2 bl 8008f84 <_svfiprintf_r> + 8007a40: 2200 movs r2, #0 + 8007a42: 9b02 ldr r3, [sp, #8] + 8007a44: 701a strb r2, [r3, #0] + 8007a46: b01c add sp, #112 ; 0x70 + 8007a48: f85d eb04 ldr.w lr, [sp], #4 + 8007a4c: b003 add sp, #12 + 8007a4e: 4770 bx lr + 8007a50: 2000000c .word 0x2000000c + 8007a54: ffff0208 .word 0xffff0208 + +08007a58 : + 8007a58: e92d 4ff7 stmdb sp!, {r0, r1, r2, r4, r5, r6, r7, r8, r9, sl, fp, lr} + 8007a5c: 6903 ldr r3, [r0, #16] + 8007a5e: 690c ldr r4, [r1, #16] + 8007a60: 4607 mov r7, r0 + 8007a62: 42a3 cmp r3, r4 + 8007a64: f2c0 8083 blt.w 8007b6e + 8007a68: 3c01 subs r4, #1 + 8007a6a: f100 0514 add.w r5, r0, #20 + 8007a6e: f101 0814 add.w r8, r1, #20 + 8007a72: eb05 0384 add.w r3, r5, r4, lsl #2 + 8007a76: 9301 str r3, [sp, #4] + 8007a78: f858 3024 ldr.w r3, [r8, r4, lsl #2] + 8007a7c: f855 2024 ldr.w r2, [r5, r4, lsl #2] + 8007a80: 3301 adds r3, #1 + 8007a82: 429a cmp r2, r3 + 8007a84: fbb2 f6f3 udiv r6, r2, r3 + 8007a88: ea4f 0b84 mov.w fp, r4, lsl #2 + 8007a8c: eb08 0984 add.w r9, r8, r4, lsl #2 + 8007a90: d332 bcc.n 8007af8 + 8007a92: f04f 0e00 mov.w lr, #0 + 8007a96: 4640 mov r0, r8 + 8007a98: 46ac mov ip, r5 + 8007a9a: 46f2 mov sl, lr + 8007a9c: f850 2b04 ldr.w r2, [r0], #4 + 8007aa0: b293 uxth r3, r2 + 8007aa2: fb06 e303 mla r3, r6, r3, lr + 8007aa6: 0c12 lsrs r2, r2, #16 + 8007aa8: ea4f 4e13 mov.w lr, r3, lsr #16 + 8007aac: fb06 e202 mla r2, r6, r2, lr + 8007ab0: b29b uxth r3, r3 + 8007ab2: ebaa 0303 sub.w r3, sl, r3 + 8007ab6: f8dc a000 ldr.w sl, [ip] + 8007aba: ea4f 4e12 mov.w lr, r2, lsr #16 + 8007abe: fa1f fa8a uxth.w sl, sl + 8007ac2: 4453 add r3, sl + 8007ac4: fa1f fa82 uxth.w sl, r2 + 8007ac8: f8dc 2000 ldr.w r2, [ip] + 8007acc: 4581 cmp r9, r0 + 8007ace: ebca 4212 rsb r2, sl, r2, lsr #16 + 8007ad2: eb02 4223 add.w r2, r2, r3, asr #16 + 8007ad6: b29b uxth r3, r3 + 8007ad8: ea43 4302 orr.w r3, r3, r2, lsl #16 + 8007adc: ea4f 4a22 mov.w sl, r2, asr #16 + 8007ae0: f84c 3b04 str.w r3, [ip], #4 + 8007ae4: d2da bcs.n 8007a9c + 8007ae6: f855 300b ldr.w r3, [r5, fp] + 8007aea: b92b cbnz r3, 8007af8 + 8007aec: 9b01 ldr r3, [sp, #4] + 8007aee: 3b04 subs r3, #4 + 8007af0: 429d cmp r5, r3 + 8007af2: 461a mov r2, r3 + 8007af4: d32f bcc.n 8007b56 + 8007af6: 613c str r4, [r7, #16] + 8007af8: 4638 mov r0, r7 + 8007afa: f001 f8d1 bl 8008ca0 <__mcmp> + 8007afe: 2800 cmp r0, #0 + 8007b00: db25 blt.n 8007b4e + 8007b02: 4628 mov r0, r5 + 8007b04: f04f 0c00 mov.w ip, #0 + 8007b08: 3601 adds r6, #1 + 8007b0a: f858 1b04 ldr.w r1, [r8], #4 + 8007b0e: f8d0 e000 ldr.w lr, [r0] + 8007b12: b28b uxth r3, r1 + 8007b14: ebac 0303 sub.w r3, ip, r3 + 8007b18: fa1f f28e uxth.w r2, lr + 8007b1c: 4413 add r3, r2 + 8007b1e: 0c0a lsrs r2, r1, #16 + 8007b20: ebc2 421e rsb r2, r2, lr, lsr #16 + 8007b24: eb02 4223 add.w r2, r2, r3, asr #16 + 8007b28: b29b uxth r3, r3 + 8007b2a: ea43 4302 orr.w r3, r3, r2, lsl #16 + 8007b2e: 45c1 cmp r9, r8 + 8007b30: ea4f 4c22 mov.w ip, r2, asr #16 + 8007b34: f840 3b04 str.w r3, [r0], #4 + 8007b38: d2e7 bcs.n 8007b0a + 8007b3a: f855 2024 ldr.w r2, [r5, r4, lsl #2] + 8007b3e: eb05 0384 add.w r3, r5, r4, lsl #2 + 8007b42: b922 cbnz r2, 8007b4e + 8007b44: 3b04 subs r3, #4 + 8007b46: 429d cmp r5, r3 + 8007b48: 461a mov r2, r3 + 8007b4a: d30a bcc.n 8007b62 + 8007b4c: 613c str r4, [r7, #16] + 8007b4e: 4630 mov r0, r6 + 8007b50: b003 add sp, #12 + 8007b52: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc} + 8007b56: 6812 ldr r2, [r2, #0] + 8007b58: 3b04 subs r3, #4 + 8007b5a: 2a00 cmp r2, #0 + 8007b5c: d1cb bne.n 8007af6 + 8007b5e: 3c01 subs r4, #1 + 8007b60: e7c6 b.n 8007af0 + 8007b62: 6812 ldr r2, [r2, #0] + 8007b64: 3b04 subs r3, #4 + 8007b66: 2a00 cmp r2, #0 + 8007b68: d1f0 bne.n 8007b4c + 8007b6a: 3c01 subs r4, #1 + 8007b6c: e7eb b.n 8007b46 + 8007b6e: 2000 movs r0, #0 + 8007b70: e7ee b.n 8007b50 + 8007b72: 0000 movs r0, r0 + 8007b74: 0000 movs r0, r0 ... -080079c0 <_printf_i>: - 80079c0: e92d 47ff stmdb sp!, {r0, r1, r2, r3, r4, r5, r6, r7, r8, r9, sl, lr} - 80079c4: 460c mov r4, r1 - 80079c6: 7e27 ldrb r7, [r4, #24] - 80079c8: 4691 mov r9, r2 - 80079ca: 2f78 cmp r7, #120 ; 0x78 - 80079cc: 4680 mov r8, r0 - 80079ce: 469a mov sl, r3 - 80079d0: 990c ldr r1, [sp, #48] ; 0x30 - 80079d2: f104 0243 add.w r2, r4, #67 ; 0x43 - 80079d6: d807 bhi.n 80079e8 <_printf_i+0x28> - 80079d8: 2f62 cmp r7, #98 ; 0x62 - 80079da: d80a bhi.n 80079f2 <_printf_i+0x32> - 80079dc: 2f00 cmp r7, #0 - 80079de: f000 80d9 beq.w 8007b94 <_printf_i+0x1d4> - 80079e2: 2f58 cmp r7, #88 ; 0x58 - 80079e4: f000 80a4 beq.w 8007b30 <_printf_i+0x170> - 80079e8: f104 0642 add.w r6, r4, #66 ; 0x42 - 80079ec: f884 7042 strb.w r7, [r4, #66] ; 0x42 - 80079f0: e03a b.n 8007a68 <_printf_i+0xa8> - 80079f2: f1a7 0363 sub.w r3, r7, #99 ; 0x63 - 80079f6: 2b15 cmp r3, #21 - 80079f8: d8f6 bhi.n 80079e8 <_printf_i+0x28> - 80079fa: a001 add r0, pc, #4 ; (adr r0, 8007a00 <_printf_i+0x40>) - 80079fc: f850 f023 ldr.w pc, [r0, r3, lsl #2] - 8007a00: 08007a59 .word 0x08007a59 - 8007a04: 08007a6d .word 0x08007a6d - 8007a08: 080079e9 .word 0x080079e9 - 8007a0c: 080079e9 .word 0x080079e9 - 8007a10: 080079e9 .word 0x080079e9 - 8007a14: 080079e9 .word 0x080079e9 - 8007a18: 08007a6d .word 0x08007a6d - 8007a1c: 080079e9 .word 0x080079e9 - 8007a20: 080079e9 .word 0x080079e9 - 8007a24: 080079e9 .word 0x080079e9 - 8007a28: 080079e9 .word 0x080079e9 - 8007a2c: 08007b7b .word 0x08007b7b - 8007a30: 08007a9d .word 0x08007a9d - 8007a34: 08007b5d .word 0x08007b5d - 8007a38: 080079e9 .word 0x080079e9 - 8007a3c: 080079e9 .word 0x080079e9 - 8007a40: 08007b9d .word 0x08007b9d - 8007a44: 080079e9 .word 0x080079e9 - 8007a48: 08007a9d .word 0x08007a9d - 8007a4c: 080079e9 .word 0x080079e9 - 8007a50: 080079e9 .word 0x080079e9 - 8007a54: 08007b65 .word 0x08007b65 - 8007a58: 680b ldr r3, [r1, #0] - 8007a5a: f104 0642 add.w r6, r4, #66 ; 0x42 - 8007a5e: 1d1a adds r2, r3, #4 - 8007a60: 681b ldr r3, [r3, #0] - 8007a62: 600a str r2, [r1, #0] - 8007a64: f884 3042 strb.w r3, [r4, #66] ; 0x42 - 8007a68: 2301 movs r3, #1 - 8007a6a: e0a4 b.n 8007bb6 <_printf_i+0x1f6> - 8007a6c: 6825 ldr r5, [r4, #0] - 8007a6e: 6808 ldr r0, [r1, #0] - 8007a70: 062e lsls r6, r5, #24 - 8007a72: f100 0304 add.w r3, r0, #4 - 8007a76: d50a bpl.n 8007a8e <_printf_i+0xce> - 8007a78: 6805 ldr r5, [r0, #0] - 8007a7a: 600b str r3, [r1, #0] - 8007a7c: 2d00 cmp r5, #0 - 8007a7e: da03 bge.n 8007a88 <_printf_i+0xc8> - 8007a80: 232d movs r3, #45 ; 0x2d - 8007a82: 426d negs r5, r5 - 8007a84: f884 3043 strb.w r3, [r4, #67] ; 0x43 - 8007a88: 230a movs r3, #10 - 8007a8a: 485e ldr r0, [pc, #376] ; (8007c04 <_printf_i+0x244>) - 8007a8c: e019 b.n 8007ac2 <_printf_i+0x102> - 8007a8e: f015 0f40 tst.w r5, #64 ; 0x40 - 8007a92: 6805 ldr r5, [r0, #0] - 8007a94: 600b str r3, [r1, #0] - 8007a96: bf18 it ne - 8007a98: b22d sxthne r5, r5 - 8007a9a: e7ef b.n 8007a7c <_printf_i+0xbc> - 8007a9c: 680b ldr r3, [r1, #0] - 8007a9e: 6825 ldr r5, [r4, #0] - 8007aa0: 1d18 adds r0, r3, #4 - 8007aa2: 6008 str r0, [r1, #0] - 8007aa4: 0628 lsls r0, r5, #24 - 8007aa6: d501 bpl.n 8007aac <_printf_i+0xec> - 8007aa8: 681d ldr r5, [r3, #0] - 8007aaa: e002 b.n 8007ab2 <_printf_i+0xf2> - 8007aac: 0669 lsls r1, r5, #25 - 8007aae: d5fb bpl.n 8007aa8 <_printf_i+0xe8> - 8007ab0: 881d ldrh r5, [r3, #0] - 8007ab2: 2f6f cmp r7, #111 ; 0x6f - 8007ab4: bf0c ite eq - 8007ab6: 2308 moveq r3, #8 - 8007ab8: 230a movne r3, #10 - 8007aba: 4852 ldr r0, [pc, #328] ; (8007c04 <_printf_i+0x244>) - 8007abc: 2100 movs r1, #0 - 8007abe: f884 1043 strb.w r1, [r4, #67] ; 0x43 - 8007ac2: 6866 ldr r6, [r4, #4] - 8007ac4: 2e00 cmp r6, #0 - 8007ac6: bfa8 it ge - 8007ac8: 6821 ldrge r1, [r4, #0] - 8007aca: 60a6 str r6, [r4, #8] - 8007acc: bfa4 itt ge - 8007ace: f021 0104 bicge.w r1, r1, #4 - 8007ad2: 6021 strge r1, [r4, #0] - 8007ad4: b90d cbnz r5, 8007ada <_printf_i+0x11a> - 8007ad6: 2e00 cmp r6, #0 - 8007ad8: d04d beq.n 8007b76 <_printf_i+0x1b6> - 8007ada: 4616 mov r6, r2 - 8007adc: fbb5 f1f3 udiv r1, r5, r3 - 8007ae0: fb03 5711 mls r7, r3, r1, r5 - 8007ae4: 5dc7 ldrb r7, [r0, r7] - 8007ae6: f806 7d01 strb.w r7, [r6, #-1]! - 8007aea: 462f mov r7, r5 - 8007aec: 42bb cmp r3, r7 - 8007aee: 460d mov r5, r1 - 8007af0: d9f4 bls.n 8007adc <_printf_i+0x11c> - 8007af2: 2b08 cmp r3, #8 - 8007af4: d10b bne.n 8007b0e <_printf_i+0x14e> - 8007af6: 6823 ldr r3, [r4, #0] - 8007af8: 07df lsls r7, r3, #31 - 8007afa: d508 bpl.n 8007b0e <_printf_i+0x14e> - 8007afc: 6923 ldr r3, [r4, #16] - 8007afe: 6861 ldr r1, [r4, #4] - 8007b00: 4299 cmp r1, r3 - 8007b02: bfde ittt le - 8007b04: 2330 movle r3, #48 ; 0x30 - 8007b06: f806 3c01 strble.w r3, [r6, #-1] - 8007b0a: f106 36ff addle.w r6, r6, #4294967295 ; 0xffffffff - 8007b0e: 1b92 subs r2, r2, r6 - 8007b10: 6122 str r2, [r4, #16] - 8007b12: 464b mov r3, r9 - 8007b14: 4621 mov r1, r4 - 8007b16: 4640 mov r0, r8 - 8007b18: f8cd a000 str.w sl, [sp] - 8007b1c: aa03 add r2, sp, #12 - 8007b1e: f7ff fedf bl 80078e0 <_printf_common> - 8007b22: 3001 adds r0, #1 - 8007b24: d14c bne.n 8007bc0 <_printf_i+0x200> - 8007b26: f04f 30ff mov.w r0, #4294967295 ; 0xffffffff - 8007b2a: b004 add sp, #16 - 8007b2c: e8bd 87f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, pc} - 8007b30: 4834 ldr r0, [pc, #208] ; (8007c04 <_printf_i+0x244>) - 8007b32: f884 7045 strb.w r7, [r4, #69] ; 0x45 - 8007b36: 680e ldr r6, [r1, #0] - 8007b38: 6823 ldr r3, [r4, #0] - 8007b3a: f856 5b04 ldr.w r5, [r6], #4 - 8007b3e: 061f lsls r7, r3, #24 - 8007b40: 600e str r6, [r1, #0] - 8007b42: d514 bpl.n 8007b6e <_printf_i+0x1ae> - 8007b44: 07d9 lsls r1, r3, #31 - 8007b46: bf44 itt mi - 8007b48: f043 0320 orrmi.w r3, r3, #32 - 8007b4c: 6023 strmi r3, [r4, #0] - 8007b4e: b91d cbnz r5, 8007b58 <_printf_i+0x198> - 8007b50: 6823 ldr r3, [r4, #0] - 8007b52: f023 0320 bic.w r3, r3, #32 - 8007b56: 6023 str r3, [r4, #0] - 8007b58: 2310 movs r3, #16 - 8007b5a: e7af b.n 8007abc <_printf_i+0xfc> - 8007b5c: 6823 ldr r3, [r4, #0] - 8007b5e: f043 0320 orr.w r3, r3, #32 - 8007b62: 6023 str r3, [r4, #0] - 8007b64: 2378 movs r3, #120 ; 0x78 - 8007b66: 4828 ldr r0, [pc, #160] ; (8007c08 <_printf_i+0x248>) - 8007b68: f884 3045 strb.w r3, [r4, #69] ; 0x45 - 8007b6c: e7e3 b.n 8007b36 <_printf_i+0x176> - 8007b6e: 065e lsls r6, r3, #25 - 8007b70: bf48 it mi - 8007b72: b2ad uxthmi r5, r5 - 8007b74: e7e6 b.n 8007b44 <_printf_i+0x184> - 8007b76: 4616 mov r6, r2 - 8007b78: e7bb b.n 8007af2 <_printf_i+0x132> - 8007b7a: 680b ldr r3, [r1, #0] - 8007b7c: 6826 ldr r6, [r4, #0] - 8007b7e: 1d1d adds r5, r3, #4 - 8007b80: 6960 ldr r0, [r4, #20] - 8007b82: 600d str r5, [r1, #0] - 8007b84: 0635 lsls r5, r6, #24 - 8007b86: 681b ldr r3, [r3, #0] - 8007b88: d501 bpl.n 8007b8e <_printf_i+0x1ce> - 8007b8a: 6018 str r0, [r3, #0] - 8007b8c: e002 b.n 8007b94 <_printf_i+0x1d4> - 8007b8e: 0671 lsls r1, r6, #25 - 8007b90: d5fb bpl.n 8007b8a <_printf_i+0x1ca> - 8007b92: 8018 strh r0, [r3, #0] - 8007b94: 2300 movs r3, #0 - 8007b96: 4616 mov r6, r2 - 8007b98: 6123 str r3, [r4, #16] - 8007b9a: e7ba b.n 8007b12 <_printf_i+0x152> - 8007b9c: 680b ldr r3, [r1, #0] - 8007b9e: 1d1a adds r2, r3, #4 - 8007ba0: 600a str r2, [r1, #0] - 8007ba2: 681e ldr r6, [r3, #0] - 8007ba4: 2100 movs r1, #0 - 8007ba6: 4630 mov r0, r6 - 8007ba8: 6862 ldr r2, [r4, #4] - 8007baa: f000 fedf bl 800896c - 8007bae: b108 cbz r0, 8007bb4 <_printf_i+0x1f4> - 8007bb0: 1b80 subs r0, r0, r6 - 8007bb2: 6060 str r0, [r4, #4] - 8007bb4: 6863 ldr r3, [r4, #4] - 8007bb6: 6123 str r3, [r4, #16] - 8007bb8: 2300 movs r3, #0 - 8007bba: f884 3043 strb.w r3, [r4, #67] ; 0x43 - 8007bbe: e7a8 b.n 8007b12 <_printf_i+0x152> - 8007bc0: 4632 mov r2, r6 - 8007bc2: 4649 mov r1, r9 - 8007bc4: 4640 mov r0, r8 - 8007bc6: 6923 ldr r3, [r4, #16] - 8007bc8: 47d0 blx sl - 8007bca: 3001 adds r0, #1 - 8007bcc: d0ab beq.n 8007b26 <_printf_i+0x166> - 8007bce: 6823 ldr r3, [r4, #0] - 8007bd0: 079b lsls r3, r3, #30 - 8007bd2: d413 bmi.n 8007bfc <_printf_i+0x23c> - 8007bd4: 68e0 ldr r0, [r4, #12] - 8007bd6: 9b03 ldr r3, [sp, #12] - 8007bd8: 4298 cmp r0, r3 - 8007bda: bfb8 it lt - 8007bdc: 4618 movlt r0, r3 - 8007bde: e7a4 b.n 8007b2a <_printf_i+0x16a> - 8007be0: 2301 movs r3, #1 - 8007be2: 4632 mov r2, r6 - 8007be4: 4649 mov r1, r9 - 8007be6: 4640 mov r0, r8 - 8007be8: 47d0 blx sl - 8007bea: 3001 adds r0, #1 - 8007bec: d09b beq.n 8007b26 <_printf_i+0x166> - 8007bee: 3501 adds r5, #1 - 8007bf0: 68e3 ldr r3, [r4, #12] - 8007bf2: 9903 ldr r1, [sp, #12] - 8007bf4: 1a5b subs r3, r3, r1 - 8007bf6: 42ab cmp r3, r5 - 8007bf8: dcf2 bgt.n 8007be0 <_printf_i+0x220> - 8007bfa: e7eb b.n 8007bd4 <_printf_i+0x214> - 8007bfc: 2500 movs r5, #0 - 8007bfe: f104 0619 add.w r6, r4, #25 - 8007c02: e7f5 b.n 8007bf0 <_printf_i+0x230> - 8007c04: 0800aeee .word 0x0800aeee - 8007c08: 0800aeff .word 0x0800aeff - -08007c0c <_sbrk_r>: - 8007c0c: b538 push {r3, r4, r5, lr} - 8007c0e: 2300 movs r3, #0 - 8007c10: 4d05 ldr r5, [pc, #20] ; (8007c28 <_sbrk_r+0x1c>) - 8007c12: 4604 mov r4, r0 - 8007c14: 4608 mov r0, r1 - 8007c16: 602b str r3, [r5, #0] - 8007c18: f7f9 fe9a bl 8001950 <_sbrk> - 8007c1c: 1c43 adds r3, r0, #1 - 8007c1e: d102 bne.n 8007c26 <_sbrk_r+0x1a> - 8007c20: 682b ldr r3, [r5, #0] - 8007c22: b103 cbz r3, 8007c26 <_sbrk_r+0x1a> - 8007c24: 6023 str r3, [r4, #0] - 8007c26: bd38 pop {r3, r4, r5, pc} - 8007c28: 2000249c .word 0x2000249c - -08007c2c : - 8007c2c: b40e push {r1, r2, r3} - 8007c2e: f06f 4100 mvn.w r1, #2147483648 ; 0x80000000 - 8007c32: b500 push {lr} - 8007c34: b09c sub sp, #112 ; 0x70 - 8007c36: ab1d add r3, sp, #116 ; 0x74 - 8007c38: 9002 str r0, [sp, #8] - 8007c3a: 9006 str r0, [sp, #24] - 8007c3c: 9107 str r1, [sp, #28] - 8007c3e: 9104 str r1, [sp, #16] - 8007c40: 4808 ldr r0, [pc, #32] ; (8007c64 ) - 8007c42: 4909 ldr r1, [pc, #36] ; (8007c68 ) - 8007c44: f853 2b04 ldr.w r2, [r3], #4 - 8007c48: 9105 str r1, [sp, #20] - 8007c4a: 6800 ldr r0, [r0, #0] - 8007c4c: a902 add r1, sp, #8 - 8007c4e: 9301 str r3, [sp, #4] - 8007c50: f001 faa0 bl 8009194 <_svfiprintf_r> - 8007c54: 2200 movs r2, #0 - 8007c56: 9b02 ldr r3, [sp, #8] - 8007c58: 701a strb r2, [r3, #0] - 8007c5a: b01c add sp, #112 ; 0x70 - 8007c5c: f85d eb04 ldr.w lr, [sp], #4 - 8007c60: b003 add sp, #12 - 8007c62: 4770 bx lr - 8007c64: 2000000c .word 0x2000000c - 8007c68: ffff0208 .word 0xffff0208 - -08007c6c : - 8007c6c: e92d 4ff7 stmdb sp!, {r0, r1, r2, r4, r5, r6, r7, r8, r9, sl, fp, lr} - 8007c70: 6903 ldr r3, [r0, #16] - 8007c72: 690c ldr r4, [r1, #16] - 8007c74: 4607 mov r7, r0 - 8007c76: 42a3 cmp r3, r4 - 8007c78: f2c0 8083 blt.w 8007d82 - 8007c7c: 3c01 subs r4, #1 - 8007c7e: f100 0514 add.w r5, r0, #20 - 8007c82: f101 0814 add.w r8, r1, #20 - 8007c86: eb05 0384 add.w r3, r5, r4, lsl #2 - 8007c8a: 9301 str r3, [sp, #4] - 8007c8c: f858 3024 ldr.w r3, [r8, r4, lsl #2] - 8007c90: f855 2024 ldr.w r2, [r5, r4, lsl #2] - 8007c94: 3301 adds r3, #1 - 8007c96: 429a cmp r2, r3 - 8007c98: fbb2 f6f3 udiv r6, r2, r3 - 8007c9c: ea4f 0b84 mov.w fp, r4, lsl #2 - 8007ca0: eb08 0984 add.w r9, r8, r4, lsl #2 - 8007ca4: d332 bcc.n 8007d0c - 8007ca6: f04f 0e00 mov.w lr, #0 - 8007caa: 4640 mov r0, r8 - 8007cac: 46ac mov ip, r5 - 8007cae: 46f2 mov sl, lr - 8007cb0: f850 2b04 ldr.w r2, [r0], #4 - 8007cb4: b293 uxth r3, r2 - 8007cb6: fb06 e303 mla r3, r6, r3, lr - 8007cba: 0c12 lsrs r2, r2, #16 - 8007cbc: ea4f 4e13 mov.w lr, r3, lsr #16 - 8007cc0: fb06 e202 mla r2, r6, r2, lr - 8007cc4: b29b uxth r3, r3 - 8007cc6: ebaa 0303 sub.w r3, sl, r3 - 8007cca: f8dc a000 ldr.w sl, [ip] - 8007cce: ea4f 4e12 mov.w lr, r2, lsr #16 - 8007cd2: fa1f fa8a uxth.w sl, sl - 8007cd6: 4453 add r3, sl - 8007cd8: fa1f fa82 uxth.w sl, r2 - 8007cdc: f8dc 2000 ldr.w r2, [ip] - 8007ce0: 4581 cmp r9, r0 - 8007ce2: ebca 4212 rsb r2, sl, r2, lsr #16 - 8007ce6: eb02 4223 add.w r2, r2, r3, asr #16 - 8007cea: b29b uxth r3, r3 - 8007cec: ea43 4302 orr.w r3, r3, r2, lsl #16 - 8007cf0: ea4f 4a22 mov.w sl, r2, asr #16 - 8007cf4: f84c 3b04 str.w r3, [ip], #4 - 8007cf8: d2da bcs.n 8007cb0 - 8007cfa: f855 300b ldr.w r3, [r5, fp] - 8007cfe: b92b cbnz r3, 8007d0c - 8007d00: 9b01 ldr r3, [sp, #4] - 8007d02: 3b04 subs r3, #4 - 8007d04: 429d cmp r5, r3 - 8007d06: 461a mov r2, r3 - 8007d08: d32f bcc.n 8007d6a - 8007d0a: 613c str r4, [r7, #16] - 8007d0c: 4638 mov r0, r7 - 8007d0e: f001 f8cf bl 8008eb0 <__mcmp> - 8007d12: 2800 cmp r0, #0 - 8007d14: db25 blt.n 8007d62 - 8007d16: 4628 mov r0, r5 - 8007d18: f04f 0c00 mov.w ip, #0 - 8007d1c: 3601 adds r6, #1 - 8007d1e: f858 1b04 ldr.w r1, [r8], #4 - 8007d22: f8d0 e000 ldr.w lr, [r0] - 8007d26: b28b uxth r3, r1 - 8007d28: ebac 0303 sub.w r3, ip, r3 - 8007d2c: fa1f f28e uxth.w r2, lr - 8007d30: 4413 add r3, r2 - 8007d32: 0c0a lsrs r2, r1, #16 - 8007d34: ebc2 421e rsb r2, r2, lr, lsr #16 - 8007d38: eb02 4223 add.w r2, r2, r3, asr #16 - 8007d3c: b29b uxth r3, r3 - 8007d3e: ea43 4302 orr.w r3, r3, r2, lsl #16 - 8007d42: 45c1 cmp r9, r8 - 8007d44: ea4f 4c22 mov.w ip, r2, asr #16 - 8007d48: f840 3b04 str.w r3, [r0], #4 - 8007d4c: d2e7 bcs.n 8007d1e - 8007d4e: f855 2024 ldr.w r2, [r5, r4, lsl #2] - 8007d52: eb05 0384 add.w r3, r5, r4, lsl #2 - 8007d56: b922 cbnz r2, 8007d62 - 8007d58: 3b04 subs r3, #4 - 8007d5a: 429d cmp r5, r3 - 8007d5c: 461a mov r2, r3 - 8007d5e: d30a bcc.n 8007d76 - 8007d60: 613c str r4, [r7, #16] - 8007d62: 4630 mov r0, r6 - 8007d64: b003 add sp, #12 - 8007d66: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc} - 8007d6a: 6812 ldr r2, [r2, #0] - 8007d6c: 3b04 subs r3, #4 - 8007d6e: 2a00 cmp r2, #0 - 8007d70: d1cb bne.n 8007d0a - 8007d72: 3c01 subs r4, #1 - 8007d74: e7c6 b.n 8007d04 - 8007d76: 6812 ldr r2, [r2, #0] - 8007d78: 3b04 subs r3, #4 - 8007d7a: 2a00 cmp r2, #0 - 8007d7c: d1f0 bne.n 8007d60 - 8007d7e: 3c01 subs r4, #1 - 8007d80: e7eb b.n 8007d5a - 8007d82: 2000 movs r0, #0 - 8007d84: e7ee b.n 8007d64 - ... - -08007d88 <_dtoa_r>: - 8007d88: e92d 4ff0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, fp, lr} - 8007d8c: 4616 mov r6, r2 - 8007d8e: 461f mov r7, r3 - 8007d90: 6a44 ldr r4, [r0, #36] ; 0x24 - 8007d92: b099 sub sp, #100 ; 0x64 - 8007d94: 4605 mov r5, r0 - 8007d96: e9cd 6704 strd r6, r7, [sp, #16] - 8007d9a: f8dd 8094 ldr.w r8, [sp, #148] ; 0x94 - 8007d9e: b974 cbnz r4, 8007dbe <_dtoa_r+0x36> - 8007da0: 2010 movs r0, #16 - 8007da2: f7ff fa15 bl 80071d0 - 8007da6: 4602 mov r2, r0 - 8007da8: 6268 str r0, [r5, #36] ; 0x24 - 8007daa: b920 cbnz r0, 8007db6 <_dtoa_r+0x2e> - 8007dac: 21ea movs r1, #234 ; 0xea - 8007dae: 4bae ldr r3, [pc, #696] ; (8008068 <_dtoa_r+0x2e0>) - 8007db0: 48ae ldr r0, [pc, #696] ; (800806c <_dtoa_r+0x2e4>) - 8007db2: f001 faef bl 8009394 <__assert_func> - 8007db6: e9c0 4401 strd r4, r4, [r0, #4] - 8007dba: 6004 str r4, [r0, #0] - 8007dbc: 60c4 str r4, [r0, #12] - 8007dbe: 6a6b ldr r3, [r5, #36] ; 0x24 - 8007dc0: 6819 ldr r1, [r3, #0] - 8007dc2: b151 cbz r1, 8007dda <_dtoa_r+0x52> - 8007dc4: 685a ldr r2, [r3, #4] - 8007dc6: 2301 movs r3, #1 - 8007dc8: 4093 lsls r3, r2 - 8007dca: 604a str r2, [r1, #4] - 8007dcc: 608b str r3, [r1, #8] - 8007dce: 4628 mov r0, r5 - 8007dd0: f000 fe34 bl 8008a3c <_Bfree> - 8007dd4: 2200 movs r2, #0 - 8007dd6: 6a6b ldr r3, [r5, #36] ; 0x24 - 8007dd8: 601a str r2, [r3, #0] - 8007dda: 1e3b subs r3, r7, #0 - 8007ddc: bfaf iteee ge - 8007dde: 2300 movge r3, #0 - 8007de0: 2201 movlt r2, #1 - 8007de2: f023 4300 biclt.w r3, r3, #2147483648 ; 0x80000000 - 8007de6: 9305 strlt r3, [sp, #20] - 8007de8: bfa8 it ge - 8007dea: f8c8 3000 strge.w r3, [r8] - 8007dee: f8dd 9014 ldr.w r9, [sp, #20] - 8007df2: 4b9f ldr r3, [pc, #636] ; (8008070 <_dtoa_r+0x2e8>) - 8007df4: bfb8 it lt - 8007df6: f8c8 2000 strlt.w r2, [r8] - 8007dfa: ea33 0309 bics.w r3, r3, r9 - 8007dfe: d119 bne.n 8007e34 <_dtoa_r+0xac> - 8007e00: f242 730f movw r3, #9999 ; 0x270f - 8007e04: 9a24 ldr r2, [sp, #144] ; 0x90 - 8007e06: 6013 str r3, [r2, #0] - 8007e08: f3c9 0313 ubfx r3, r9, #0, #20 - 8007e0c: 4333 orrs r3, r6 - 8007e0e: f000 8580 beq.w 8008912 <_dtoa_r+0xb8a> - 8007e12: 9b26 ldr r3, [sp, #152] ; 0x98 - 8007e14: b953 cbnz r3, 8007e2c <_dtoa_r+0xa4> - 8007e16: 4b97 ldr r3, [pc, #604] ; (8008074 <_dtoa_r+0x2ec>) - 8007e18: e022 b.n 8007e60 <_dtoa_r+0xd8> - 8007e1a: 4b97 ldr r3, [pc, #604] ; (8008078 <_dtoa_r+0x2f0>) - 8007e1c: 9308 str r3, [sp, #32] - 8007e1e: 3308 adds r3, #8 - 8007e20: 9a26 ldr r2, [sp, #152] ; 0x98 - 8007e22: 6013 str r3, [r2, #0] - 8007e24: 9808 ldr r0, [sp, #32] - 8007e26: b019 add sp, #100 ; 0x64 - 8007e28: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc} - 8007e2c: 4b91 ldr r3, [pc, #580] ; (8008074 <_dtoa_r+0x2ec>) - 8007e2e: 9308 str r3, [sp, #32] - 8007e30: 3303 adds r3, #3 - 8007e32: e7f5 b.n 8007e20 <_dtoa_r+0x98> - 8007e34: e9dd 3404 ldrd r3, r4, [sp, #16] - 8007e38: e9cd 340c strd r3, r4, [sp, #48] ; 0x30 - 8007e3c: e9dd 010c ldrd r0, r1, [sp, #48] ; 0x30 - 8007e40: 2200 movs r2, #0 - 8007e42: 2300 movs r3, #0 - 8007e44: f7f8 fe1c bl 8000a80 <__aeabi_dcmpeq> - 8007e48: 4680 mov r8, r0 - 8007e4a: b158 cbz r0, 8007e64 <_dtoa_r+0xdc> - 8007e4c: 2301 movs r3, #1 - 8007e4e: 9a24 ldr r2, [sp, #144] ; 0x90 - 8007e50: 6013 str r3, [r2, #0] - 8007e52: 9b26 ldr r3, [sp, #152] ; 0x98 - 8007e54: 2b00 cmp r3, #0 - 8007e56: f000 8559 beq.w 800890c <_dtoa_r+0xb84> - 8007e5a: 4888 ldr r0, [pc, #544] ; (800807c <_dtoa_r+0x2f4>) - 8007e5c: 6018 str r0, [r3, #0] - 8007e5e: 1e43 subs r3, r0, #1 - 8007e60: 9308 str r3, [sp, #32] - 8007e62: e7df b.n 8007e24 <_dtoa_r+0x9c> - 8007e64: ab16 add r3, sp, #88 ; 0x58 - 8007e66: 9301 str r3, [sp, #4] - 8007e68: ab17 add r3, sp, #92 ; 0x5c - 8007e6a: 9300 str r3, [sp, #0] - 8007e6c: 4628 mov r0, r5 - 8007e6e: e9dd 230c ldrd r2, r3, [sp, #48] ; 0x30 - 8007e72: f001 f8c9 bl 8009008 <__d2b> - 8007e76: f3c9 540a ubfx r4, r9, #20, #11 - 8007e7a: 4682 mov sl, r0 - 8007e7c: 2c00 cmp r4, #0 - 8007e7e: d07e beq.n 8007f7e <_dtoa_r+0x1f6> - 8007e80: e9dd 010c ldrd r0, r1, [sp, #48] ; 0x30 - 8007e84: 9b0d ldr r3, [sp, #52] ; 0x34 - 8007e86: f2a4 34ff subw r4, r4, #1023 ; 0x3ff - 8007e8a: f3c3 0313 ubfx r3, r3, #0, #20 - 8007e8e: f043 517f orr.w r1, r3, #1069547520 ; 0x3fc00000 - 8007e92: f441 1140 orr.w r1, r1, #3145728 ; 0x300000 - 8007e96: f8cd 804c str.w r8, [sp, #76] ; 0x4c - 8007e9a: 2200 movs r2, #0 - 8007e9c: 4b78 ldr r3, [pc, #480] ; (8008080 <_dtoa_r+0x2f8>) - 8007e9e: f7f8 f9cf bl 8000240 <__aeabi_dsub> - 8007ea2: a36b add r3, pc, #428 ; (adr r3, 8008050 <_dtoa_r+0x2c8>) - 8007ea4: e9d3 2300 ldrd r2, r3, [r3] - 8007ea8: f7f8 fb82 bl 80005b0 <__aeabi_dmul> - 8007eac: a36a add r3, pc, #424 ; (adr r3, 8008058 <_dtoa_r+0x2d0>) - 8007eae: e9d3 2300 ldrd r2, r3, [r3] - 8007eb2: f7f8 f9c7 bl 8000244 <__adddf3> - 8007eb6: 4606 mov r6, r0 - 8007eb8: 4620 mov r0, r4 - 8007eba: 460f mov r7, r1 - 8007ebc: f7f8 fb0e bl 80004dc <__aeabi_i2d> - 8007ec0: a367 add r3, pc, #412 ; (adr r3, 8008060 <_dtoa_r+0x2d8>) - 8007ec2: e9d3 2300 ldrd r2, r3, [r3] - 8007ec6: f7f8 fb73 bl 80005b0 <__aeabi_dmul> - 8007eca: 4602 mov r2, r0 - 8007ecc: 460b mov r3, r1 - 8007ece: 4630 mov r0, r6 - 8007ed0: 4639 mov r1, r7 - 8007ed2: f7f8 f9b7 bl 8000244 <__adddf3> - 8007ed6: 4606 mov r6, r0 - 8007ed8: 460f mov r7, r1 - 8007eda: f7f8 fe19 bl 8000b10 <__aeabi_d2iz> - 8007ede: 2200 movs r2, #0 - 8007ee0: 4681 mov r9, r0 - 8007ee2: 2300 movs r3, #0 - 8007ee4: 4630 mov r0, r6 - 8007ee6: 4639 mov r1, r7 - 8007ee8: f7f8 fdd4 bl 8000a94 <__aeabi_dcmplt> - 8007eec: b148 cbz r0, 8007f02 <_dtoa_r+0x17a> - 8007eee: 4648 mov r0, r9 - 8007ef0: f7f8 faf4 bl 80004dc <__aeabi_i2d> - 8007ef4: 4632 mov r2, r6 - 8007ef6: 463b mov r3, r7 - 8007ef8: f7f8 fdc2 bl 8000a80 <__aeabi_dcmpeq> - 8007efc: b908 cbnz r0, 8007f02 <_dtoa_r+0x17a> - 8007efe: f109 39ff add.w r9, r9, #4294967295 ; 0xffffffff - 8007f02: f1b9 0f16 cmp.w r9, #22 - 8007f06: d857 bhi.n 8007fb8 <_dtoa_r+0x230> - 8007f08: e9dd 010c ldrd r0, r1, [sp, #48] ; 0x30 - 8007f0c: 4b5d ldr r3, [pc, #372] ; (8008084 <_dtoa_r+0x2fc>) - 8007f0e: eb03 03c9 add.w r3, r3, r9, lsl #3 - 8007f12: e9d3 2300 ldrd r2, r3, [r3] - 8007f16: f7f8 fdbd bl 8000a94 <__aeabi_dcmplt> - 8007f1a: 2800 cmp r0, #0 - 8007f1c: d04e beq.n 8007fbc <_dtoa_r+0x234> - 8007f1e: 2300 movs r3, #0 - 8007f20: f109 39ff add.w r9, r9, #4294967295 ; 0xffffffff - 8007f24: 930f str r3, [sp, #60] ; 0x3c - 8007f26: 9b16 ldr r3, [sp, #88] ; 0x58 - 8007f28: 1b1c subs r4, r3, r4 - 8007f2a: 1e63 subs r3, r4, #1 - 8007f2c: 9309 str r3, [sp, #36] ; 0x24 - 8007f2e: bf49 itett mi - 8007f30: f1c4 0301 rsbmi r3, r4, #1 - 8007f34: 2300 movpl r3, #0 - 8007f36: 9306 strmi r3, [sp, #24] - 8007f38: 2300 movmi r3, #0 - 8007f3a: bf54 ite pl - 8007f3c: 9306 strpl r3, [sp, #24] - 8007f3e: 9309 strmi r3, [sp, #36] ; 0x24 - 8007f40: f1b9 0f00 cmp.w r9, #0 - 8007f44: db3c blt.n 8007fc0 <_dtoa_r+0x238> - 8007f46: 9b09 ldr r3, [sp, #36] ; 0x24 - 8007f48: f8cd 9038 str.w r9, [sp, #56] ; 0x38 - 8007f4c: 444b add r3, r9 - 8007f4e: 9309 str r3, [sp, #36] ; 0x24 - 8007f50: 2300 movs r3, #0 - 8007f52: 930a str r3, [sp, #40] ; 0x28 - 8007f54: 9b22 ldr r3, [sp, #136] ; 0x88 - 8007f56: 2b09 cmp r3, #9 - 8007f58: d86c bhi.n 8008034 <_dtoa_r+0x2ac> - 8007f5a: 2b05 cmp r3, #5 - 8007f5c: bfc4 itt gt - 8007f5e: 3b04 subgt r3, #4 - 8007f60: 9322 strgt r3, [sp, #136] ; 0x88 - 8007f62: 9b22 ldr r3, [sp, #136] ; 0x88 - 8007f64: bfc8 it gt - 8007f66: 2400 movgt r4, #0 - 8007f68: f1a3 0302 sub.w r3, r3, #2 - 8007f6c: bfd8 it le - 8007f6e: 2401 movle r4, #1 - 8007f70: 2b03 cmp r3, #3 - 8007f72: f200 808b bhi.w 800808c <_dtoa_r+0x304> - 8007f76: e8df f003 tbb [pc, r3] - 8007f7a: 4f2d .short 0x4f2d - 8007f7c: 5b4d .short 0x5b4d - 8007f7e: e9dd 4316 ldrd r4, r3, [sp, #88] ; 0x58 - 8007f82: 441c add r4, r3 - 8007f84: f204 4332 addw r3, r4, #1074 ; 0x432 - 8007f88: 2b20 cmp r3, #32 - 8007f8a: bfc3 ittte gt - 8007f8c: f1c3 0340 rsbgt r3, r3, #64 ; 0x40 - 8007f90: f204 4012 addwgt r0, r4, #1042 ; 0x412 - 8007f94: fa09 f303 lslgt.w r3, r9, r3 - 8007f98: f1c3 0320 rsble r3, r3, #32 - 8007f9c: bfc6 itte gt - 8007f9e: fa26 f000 lsrgt.w r0, r6, r0 - 8007fa2: 4318 orrgt r0, r3 - 8007fa4: fa06 f003 lslle.w r0, r6, r3 - 8007fa8: f7f8 fa88 bl 80004bc <__aeabi_ui2d> - 8007fac: 2301 movs r3, #1 - 8007fae: f1a1 71f8 sub.w r1, r1, #32505856 ; 0x1f00000 - 8007fb2: 3c01 subs r4, #1 - 8007fb4: 9313 str r3, [sp, #76] ; 0x4c - 8007fb6: e770 b.n 8007e9a <_dtoa_r+0x112> - 8007fb8: 2301 movs r3, #1 - 8007fba: e7b3 b.n 8007f24 <_dtoa_r+0x19c> - 8007fbc: 900f str r0, [sp, #60] ; 0x3c - 8007fbe: e7b2 b.n 8007f26 <_dtoa_r+0x19e> - 8007fc0: 9b06 ldr r3, [sp, #24] - 8007fc2: eba3 0309 sub.w r3, r3, r9 - 8007fc6: 9306 str r3, [sp, #24] - 8007fc8: f1c9 0300 rsb r3, r9, #0 - 8007fcc: 930a str r3, [sp, #40] ; 0x28 - 8007fce: 2300 movs r3, #0 - 8007fd0: 930e str r3, [sp, #56] ; 0x38 - 8007fd2: e7bf b.n 8007f54 <_dtoa_r+0x1cc> - 8007fd4: 2300 movs r3, #0 - 8007fd6: 930b str r3, [sp, #44] ; 0x2c - 8007fd8: 9b23 ldr r3, [sp, #140] ; 0x8c - 8007fda: 2b00 cmp r3, #0 - 8007fdc: dc59 bgt.n 8008092 <_dtoa_r+0x30a> - 8007fde: f04f 0b01 mov.w fp, #1 - 8007fe2: 465b mov r3, fp - 8007fe4: f8cd b008 str.w fp, [sp, #8] - 8007fe8: f8cd b08c str.w fp, [sp, #140] ; 0x8c - 8007fec: 2200 movs r2, #0 - 8007fee: 6a68 ldr r0, [r5, #36] ; 0x24 - 8007ff0: 6042 str r2, [r0, #4] - 8007ff2: 2204 movs r2, #4 - 8007ff4: f102 0614 add.w r6, r2, #20 - 8007ff8: 429e cmp r6, r3 - 8007ffa: 6841 ldr r1, [r0, #4] - 8007ffc: d94f bls.n 800809e <_dtoa_r+0x316> - 8007ffe: 4628 mov r0, r5 - 8008000: f000 fcdc bl 80089bc <_Balloc> - 8008004: 9008 str r0, [sp, #32] - 8008006: 2800 cmp r0, #0 - 8008008: d14d bne.n 80080a6 <_dtoa_r+0x31e> - 800800a: 4602 mov r2, r0 - 800800c: f44f 71d5 mov.w r1, #426 ; 0x1aa - 8008010: 4b1d ldr r3, [pc, #116] ; (8008088 <_dtoa_r+0x300>) - 8008012: e6cd b.n 8007db0 <_dtoa_r+0x28> - 8008014: 2301 movs r3, #1 - 8008016: e7de b.n 8007fd6 <_dtoa_r+0x24e> - 8008018: 2300 movs r3, #0 - 800801a: 930b str r3, [sp, #44] ; 0x2c - 800801c: 9b23 ldr r3, [sp, #140] ; 0x8c - 800801e: eb09 0b03 add.w fp, r9, r3 - 8008022: f10b 0301 add.w r3, fp, #1 - 8008026: 2b01 cmp r3, #1 - 8008028: 9302 str r3, [sp, #8] - 800802a: bfb8 it lt - 800802c: 2301 movlt r3, #1 - 800802e: e7dd b.n 8007fec <_dtoa_r+0x264> - 8008030: 2301 movs r3, #1 - 8008032: e7f2 b.n 800801a <_dtoa_r+0x292> - 8008034: 2401 movs r4, #1 - 8008036: 2300 movs r3, #0 - 8008038: 940b str r4, [sp, #44] ; 0x2c - 800803a: 9322 str r3, [sp, #136] ; 0x88 - 800803c: f04f 3bff mov.w fp, #4294967295 ; 0xffffffff - 8008040: 2200 movs r2, #0 - 8008042: 2312 movs r3, #18 - 8008044: f8cd b008 str.w fp, [sp, #8] - 8008048: 9223 str r2, [sp, #140] ; 0x8c - 800804a: e7cf b.n 8007fec <_dtoa_r+0x264> - 800804c: f3af 8000 nop.w - 8008050: 636f4361 .word 0x636f4361 - 8008054: 3fd287a7 .word 0x3fd287a7 - 8008058: 8b60c8b3 .word 0x8b60c8b3 - 800805c: 3fc68a28 .word 0x3fc68a28 - 8008060: 509f79fb .word 0x509f79fb - 8008064: 3fd34413 .word 0x3fd34413 - 8008068: 0800af1d .word 0x0800af1d - 800806c: 0800af34 .word 0x0800af34 - 8008070: 7ff00000 .word 0x7ff00000 - 8008074: 0800af19 .word 0x0800af19 - 8008078: 0800af10 .word 0x0800af10 - 800807c: 0800aeed .word 0x0800aeed - 8008080: 3ff80000 .word 0x3ff80000 - 8008084: 0800b030 .word 0x0800b030 - 8008088: 0800af93 .word 0x0800af93 - 800808c: 2301 movs r3, #1 - 800808e: 930b str r3, [sp, #44] ; 0x2c - 8008090: e7d4 b.n 800803c <_dtoa_r+0x2b4> - 8008092: f8dd b08c ldr.w fp, [sp, #140] ; 0x8c - 8008096: 465b mov r3, fp - 8008098: f8cd b008 str.w fp, [sp, #8] - 800809c: e7a6 b.n 8007fec <_dtoa_r+0x264> - 800809e: 3101 adds r1, #1 - 80080a0: 6041 str r1, [r0, #4] - 80080a2: 0052 lsls r2, r2, #1 - 80080a4: e7a6 b.n 8007ff4 <_dtoa_r+0x26c> - 80080a6: 6a6b ldr r3, [r5, #36] ; 0x24 - 80080a8: 9a08 ldr r2, [sp, #32] - 80080aa: 601a str r2, [r3, #0] - 80080ac: 9b02 ldr r3, [sp, #8] - 80080ae: 2b0e cmp r3, #14 - 80080b0: f200 80a8 bhi.w 8008204 <_dtoa_r+0x47c> - 80080b4: 2c00 cmp r4, #0 - 80080b6: f000 80a5 beq.w 8008204 <_dtoa_r+0x47c> - 80080ba: f1b9 0f00 cmp.w r9, #0 - 80080be: dd34 ble.n 800812a <_dtoa_r+0x3a2> - 80080c0: 4a9a ldr r2, [pc, #616] ; (800832c <_dtoa_r+0x5a4>) - 80080c2: f009 030f and.w r3, r9, #15 - 80080c6: eb02 03c3 add.w r3, r2, r3, lsl #3 - 80080ca: f419 7f80 tst.w r9, #256 ; 0x100 - 80080ce: e9d3 3400 ldrd r3, r4, [r3] - 80080d2: e9cd 3410 strd r3, r4, [sp, #64] ; 0x40 - 80080d6: ea4f 1429 mov.w r4, r9, asr #4 - 80080da: d016 beq.n 800810a <_dtoa_r+0x382> - 80080dc: e9dd 010c ldrd r0, r1, [sp, #48] ; 0x30 - 80080e0: 4b93 ldr r3, [pc, #588] ; (8008330 <_dtoa_r+0x5a8>) - 80080e2: 2703 movs r7, #3 - 80080e4: e9d3 2308 ldrd r2, r3, [r3, #32] - 80080e8: f7f8 fb8c bl 8000804 <__aeabi_ddiv> - 80080ec: e9cd 0104 strd r0, r1, [sp, #16] - 80080f0: f004 040f and.w r4, r4, #15 - 80080f4: 4e8e ldr r6, [pc, #568] ; (8008330 <_dtoa_r+0x5a8>) - 80080f6: b954 cbnz r4, 800810e <_dtoa_r+0x386> - 80080f8: e9dd 2310 ldrd r2, r3, [sp, #64] ; 0x40 - 80080fc: e9dd 0104 ldrd r0, r1, [sp, #16] - 8008100: f7f8 fb80 bl 8000804 <__aeabi_ddiv> - 8008104: e9cd 0104 strd r0, r1, [sp, #16] - 8008108: e029 b.n 800815e <_dtoa_r+0x3d6> - 800810a: 2702 movs r7, #2 - 800810c: e7f2 b.n 80080f4 <_dtoa_r+0x36c> - 800810e: 07e1 lsls r1, r4, #31 - 8008110: d508 bpl.n 8008124 <_dtoa_r+0x39c> - 8008112: e9dd 0110 ldrd r0, r1, [sp, #64] ; 0x40 - 8008116: e9d6 2300 ldrd r2, r3, [r6] - 800811a: f7f8 fa49 bl 80005b0 <__aeabi_dmul> - 800811e: e9cd 0110 strd r0, r1, [sp, #64] ; 0x40 - 8008122: 3701 adds r7, #1 - 8008124: 1064 asrs r4, r4, #1 - 8008126: 3608 adds r6, #8 - 8008128: e7e5 b.n 80080f6 <_dtoa_r+0x36e> - 800812a: f000 80a5 beq.w 8008278 <_dtoa_r+0x4f0> - 800812e: e9dd 010c ldrd r0, r1, [sp, #48] ; 0x30 - 8008132: f1c9 0400 rsb r4, r9, #0 - 8008136: 4b7d ldr r3, [pc, #500] ; (800832c <_dtoa_r+0x5a4>) - 8008138: f004 020f and.w r2, r4, #15 - 800813c: eb03 03c2 add.w r3, r3, r2, lsl #3 - 8008140: e9d3 2300 ldrd r2, r3, [r3] - 8008144: f7f8 fa34 bl 80005b0 <__aeabi_dmul> - 8008148: 2702 movs r7, #2 - 800814a: 2300 movs r3, #0 - 800814c: e9cd 0104 strd r0, r1, [sp, #16] - 8008150: 4e77 ldr r6, [pc, #476] ; (8008330 <_dtoa_r+0x5a8>) - 8008152: 1124 asrs r4, r4, #4 - 8008154: 2c00 cmp r4, #0 - 8008156: f040 8084 bne.w 8008262 <_dtoa_r+0x4da> - 800815a: 2b00 cmp r3, #0 - 800815c: d1d2 bne.n 8008104 <_dtoa_r+0x37c> - 800815e: 9b0f ldr r3, [sp, #60] ; 0x3c - 8008160: 2b00 cmp r3, #0 - 8008162: f000 808b beq.w 800827c <_dtoa_r+0x4f4> - 8008166: e9dd 3404 ldrd r3, r4, [sp, #16] - 800816a: e9cd 3410 strd r3, r4, [sp, #64] ; 0x40 - 800816e: e9dd 0110 ldrd r0, r1, [sp, #64] ; 0x40 - 8008172: 2200 movs r2, #0 - 8008174: 4b6f ldr r3, [pc, #444] ; (8008334 <_dtoa_r+0x5ac>) - 8008176: f7f8 fc8d bl 8000a94 <__aeabi_dcmplt> - 800817a: 2800 cmp r0, #0 - 800817c: d07e beq.n 800827c <_dtoa_r+0x4f4> - 800817e: 9b02 ldr r3, [sp, #8] - 8008180: 2b00 cmp r3, #0 - 8008182: d07b beq.n 800827c <_dtoa_r+0x4f4> - 8008184: f1bb 0f00 cmp.w fp, #0 - 8008188: dd38 ble.n 80081fc <_dtoa_r+0x474> - 800818a: e9dd 0110 ldrd r0, r1, [sp, #64] ; 0x40 - 800818e: 2200 movs r2, #0 - 8008190: 4b69 ldr r3, [pc, #420] ; (8008338 <_dtoa_r+0x5b0>) - 8008192: f7f8 fa0d bl 80005b0 <__aeabi_dmul> - 8008196: 465c mov r4, fp - 8008198: e9cd 0104 strd r0, r1, [sp, #16] - 800819c: f109 38ff add.w r8, r9, #4294967295 ; 0xffffffff - 80081a0: 3701 adds r7, #1 - 80081a2: 4638 mov r0, r7 - 80081a4: f7f8 f99a bl 80004dc <__aeabi_i2d> - 80081a8: e9dd 2304 ldrd r2, r3, [sp, #16] - 80081ac: f7f8 fa00 bl 80005b0 <__aeabi_dmul> - 80081b0: 2200 movs r2, #0 - 80081b2: 4b62 ldr r3, [pc, #392] ; (800833c <_dtoa_r+0x5b4>) - 80081b4: f7f8 f846 bl 8000244 <__adddf3> - 80081b8: f1a1 7650 sub.w r6, r1, #54525952 ; 0x3400000 - 80081bc: e9cd 0110 strd r0, r1, [sp, #64] ; 0x40 - 80081c0: 9611 str r6, [sp, #68] ; 0x44 - 80081c2: 2c00 cmp r4, #0 - 80081c4: d15d bne.n 8008282 <_dtoa_r+0x4fa> - 80081c6: e9dd 0104 ldrd r0, r1, [sp, #16] - 80081ca: 2200 movs r2, #0 - 80081cc: 4b5c ldr r3, [pc, #368] ; (8008340 <_dtoa_r+0x5b8>) - 80081ce: f7f8 f837 bl 8000240 <__aeabi_dsub> - 80081d2: 4602 mov r2, r0 - 80081d4: 460b mov r3, r1 - 80081d6: e9cd 2304 strd r2, r3, [sp, #16] - 80081da: 4633 mov r3, r6 - 80081dc: 9a10 ldr r2, [sp, #64] ; 0x40 - 80081de: f7f8 fc77 bl 8000ad0 <__aeabi_dcmpgt> - 80081e2: 2800 cmp r0, #0 - 80081e4: f040 829e bne.w 8008724 <_dtoa_r+0x99c> - 80081e8: e9dd 0104 ldrd r0, r1, [sp, #16] - 80081ec: 9a10 ldr r2, [sp, #64] ; 0x40 - 80081ee: f106 4300 add.w r3, r6, #2147483648 ; 0x80000000 - 80081f2: f7f8 fc4f bl 8000a94 <__aeabi_dcmplt> - 80081f6: 2800 cmp r0, #0 - 80081f8: f040 8292 bne.w 8008720 <_dtoa_r+0x998> - 80081fc: e9dd 340c ldrd r3, r4, [sp, #48] ; 0x30 - 8008200: e9cd 3404 strd r3, r4, [sp, #16] - 8008204: 9b17 ldr r3, [sp, #92] ; 0x5c - 8008206: 2b00 cmp r3, #0 - 8008208: f2c0 8153 blt.w 80084b2 <_dtoa_r+0x72a> - 800820c: f1b9 0f0e cmp.w r9, #14 - 8008210: f300 814f bgt.w 80084b2 <_dtoa_r+0x72a> - 8008214: 4b45 ldr r3, [pc, #276] ; (800832c <_dtoa_r+0x5a4>) - 8008216: eb03 03c9 add.w r3, r3, r9, lsl #3 - 800821a: e9d3 3400 ldrd r3, r4, [r3] - 800821e: e9cd 3406 strd r3, r4, [sp, #24] - 8008222: 9b23 ldr r3, [sp, #140] ; 0x8c - 8008224: 2b00 cmp r3, #0 - 8008226: f280 80db bge.w 80083e0 <_dtoa_r+0x658> - 800822a: 9b02 ldr r3, [sp, #8] - 800822c: 2b00 cmp r3, #0 - 800822e: f300 80d7 bgt.w 80083e0 <_dtoa_r+0x658> - 8008232: f040 8274 bne.w 800871e <_dtoa_r+0x996> - 8008236: e9dd 0106 ldrd r0, r1, [sp, #24] - 800823a: 2200 movs r2, #0 - 800823c: 4b40 ldr r3, [pc, #256] ; (8008340 <_dtoa_r+0x5b8>) - 800823e: f7f8 f9b7 bl 80005b0 <__aeabi_dmul> - 8008242: e9dd 2304 ldrd r2, r3, [sp, #16] - 8008246: f7f8 fc39 bl 8000abc <__aeabi_dcmpge> - 800824a: 9c02 ldr r4, [sp, #8] - 800824c: 4626 mov r6, r4 - 800824e: 2800 cmp r0, #0 - 8008250: f040 824a bne.w 80086e8 <_dtoa_r+0x960> - 8008254: 2331 movs r3, #49 ; 0x31 - 8008256: 9f08 ldr r7, [sp, #32] - 8008258: f109 0901 add.w r9, r9, #1 - 800825c: f807 3b01 strb.w r3, [r7], #1 - 8008260: e246 b.n 80086f0 <_dtoa_r+0x968> - 8008262: 07e2 lsls r2, r4, #31 - 8008264: d505 bpl.n 8008272 <_dtoa_r+0x4ea> - 8008266: e9d6 2300 ldrd r2, r3, [r6] - 800826a: f7f8 f9a1 bl 80005b0 <__aeabi_dmul> - 800826e: 2301 movs r3, #1 - 8008270: 3701 adds r7, #1 - 8008272: 1064 asrs r4, r4, #1 - 8008274: 3608 adds r6, #8 - 8008276: e76d b.n 8008154 <_dtoa_r+0x3cc> - 8008278: 2702 movs r7, #2 - 800827a: e770 b.n 800815e <_dtoa_r+0x3d6> - 800827c: 46c8 mov r8, r9 - 800827e: 9c02 ldr r4, [sp, #8] - 8008280: e78f b.n 80081a2 <_dtoa_r+0x41a> - 8008282: 9908 ldr r1, [sp, #32] - 8008284: 4b29 ldr r3, [pc, #164] ; (800832c <_dtoa_r+0x5a4>) - 8008286: 4421 add r1, r4 - 8008288: 9112 str r1, [sp, #72] ; 0x48 - 800828a: 990b ldr r1, [sp, #44] ; 0x2c - 800828c: eb03 03c4 add.w r3, r3, r4, lsl #3 - 8008290: e9dd 6710 ldrd r6, r7, [sp, #64] ; 0x40 - 8008294: e953 2302 ldrd r2, r3, [r3, #-8] - 8008298: 2900 cmp r1, #0 - 800829a: d055 beq.n 8008348 <_dtoa_r+0x5c0> - 800829c: 2000 movs r0, #0 - 800829e: 4929 ldr r1, [pc, #164] ; (8008344 <_dtoa_r+0x5bc>) - 80082a0: f7f8 fab0 bl 8000804 <__aeabi_ddiv> - 80082a4: 463b mov r3, r7 - 80082a6: 4632 mov r2, r6 - 80082a8: f7f7 ffca bl 8000240 <__aeabi_dsub> - 80082ac: e9cd 0110 strd r0, r1, [sp, #64] ; 0x40 - 80082b0: 9f08 ldr r7, [sp, #32] - 80082b2: e9dd 0104 ldrd r0, r1, [sp, #16] - 80082b6: f7f8 fc2b bl 8000b10 <__aeabi_d2iz> - 80082ba: 4604 mov r4, r0 - 80082bc: f7f8 f90e bl 80004dc <__aeabi_i2d> - 80082c0: 4602 mov r2, r0 - 80082c2: 460b mov r3, r1 - 80082c4: e9dd 0104 ldrd r0, r1, [sp, #16] - 80082c8: f7f7 ffba bl 8000240 <__aeabi_dsub> - 80082cc: 4602 mov r2, r0 - 80082ce: 460b mov r3, r1 - 80082d0: 3430 adds r4, #48 ; 0x30 - 80082d2: e9cd 2304 strd r2, r3, [sp, #16] - 80082d6: e9dd 2310 ldrd r2, r3, [sp, #64] ; 0x40 - 80082da: f807 4b01 strb.w r4, [r7], #1 - 80082de: f7f8 fbd9 bl 8000a94 <__aeabi_dcmplt> - 80082e2: 2800 cmp r0, #0 - 80082e4: d174 bne.n 80083d0 <_dtoa_r+0x648> - 80082e6: e9dd 2304 ldrd r2, r3, [sp, #16] - 80082ea: 2000 movs r0, #0 - 80082ec: 4911 ldr r1, [pc, #68] ; (8008334 <_dtoa_r+0x5ac>) - 80082ee: f7f7 ffa7 bl 8000240 <__aeabi_dsub> - 80082f2: e9dd 2310 ldrd r2, r3, [sp, #64] ; 0x40 - 80082f6: f7f8 fbcd bl 8000a94 <__aeabi_dcmplt> - 80082fa: 2800 cmp r0, #0 - 80082fc: f040 80b6 bne.w 800846c <_dtoa_r+0x6e4> - 8008300: 9b12 ldr r3, [sp, #72] ; 0x48 - 8008302: 429f cmp r7, r3 - 8008304: f43f af7a beq.w 80081fc <_dtoa_r+0x474> - 8008308: e9dd 0110 ldrd r0, r1, [sp, #64] ; 0x40 - 800830c: 2200 movs r2, #0 - 800830e: 4b0a ldr r3, [pc, #40] ; (8008338 <_dtoa_r+0x5b0>) - 8008310: f7f8 f94e bl 80005b0 <__aeabi_dmul> - 8008314: 2200 movs r2, #0 - 8008316: e9cd 0110 strd r0, r1, [sp, #64] ; 0x40 - 800831a: e9dd 0104 ldrd r0, r1, [sp, #16] - 800831e: 4b06 ldr r3, [pc, #24] ; (8008338 <_dtoa_r+0x5b0>) - 8008320: f7f8 f946 bl 80005b0 <__aeabi_dmul> - 8008324: e9cd 0104 strd r0, r1, [sp, #16] - 8008328: e7c3 b.n 80082b2 <_dtoa_r+0x52a> - 800832a: bf00 nop - 800832c: 0800b030 .word 0x0800b030 - 8008330: 0800b008 .word 0x0800b008 - 8008334: 3ff00000 .word 0x3ff00000 - 8008338: 40240000 .word 0x40240000 - 800833c: 401c0000 .word 0x401c0000 - 8008340: 40140000 .word 0x40140000 - 8008344: 3fe00000 .word 0x3fe00000 - 8008348: 4630 mov r0, r6 - 800834a: 4639 mov r1, r7 - 800834c: f7f8 f930 bl 80005b0 <__aeabi_dmul> - 8008350: 9b12 ldr r3, [sp, #72] ; 0x48 - 8008352: e9cd 0110 strd r0, r1, [sp, #64] ; 0x40 - 8008356: 9c08 ldr r4, [sp, #32] - 8008358: 9314 str r3, [sp, #80] ; 0x50 - 800835a: e9dd 0104 ldrd r0, r1, [sp, #16] - 800835e: f7f8 fbd7 bl 8000b10 <__aeabi_d2iz> - 8008362: 9015 str r0, [sp, #84] ; 0x54 - 8008364: f7f8 f8ba bl 80004dc <__aeabi_i2d> - 8008368: 4602 mov r2, r0 - 800836a: 460b mov r3, r1 - 800836c: e9dd 0104 ldrd r0, r1, [sp, #16] - 8008370: f7f7 ff66 bl 8000240 <__aeabi_dsub> - 8008374: 9b15 ldr r3, [sp, #84] ; 0x54 - 8008376: 4606 mov r6, r0 - 8008378: 3330 adds r3, #48 ; 0x30 - 800837a: f804 3b01 strb.w r3, [r4], #1 - 800837e: 9b12 ldr r3, [sp, #72] ; 0x48 - 8008380: 460f mov r7, r1 - 8008382: 429c cmp r4, r3 - 8008384: f04f 0200 mov.w r2, #0 - 8008388: d124 bne.n 80083d4 <_dtoa_r+0x64c> - 800838a: e9dd 0110 ldrd r0, r1, [sp, #64] ; 0x40 - 800838e: 4bb3 ldr r3, [pc, #716] ; (800865c <_dtoa_r+0x8d4>) - 8008390: f7f7 ff58 bl 8000244 <__adddf3> - 8008394: 4602 mov r2, r0 - 8008396: 460b mov r3, r1 - 8008398: 4630 mov r0, r6 - 800839a: 4639 mov r1, r7 - 800839c: f7f8 fb98 bl 8000ad0 <__aeabi_dcmpgt> - 80083a0: 2800 cmp r0, #0 - 80083a2: d162 bne.n 800846a <_dtoa_r+0x6e2> - 80083a4: e9dd 2310 ldrd r2, r3, [sp, #64] ; 0x40 - 80083a8: 2000 movs r0, #0 - 80083aa: 49ac ldr r1, [pc, #688] ; (800865c <_dtoa_r+0x8d4>) - 80083ac: f7f7 ff48 bl 8000240 <__aeabi_dsub> - 80083b0: 4602 mov r2, r0 - 80083b2: 460b mov r3, r1 - 80083b4: 4630 mov r0, r6 - 80083b6: 4639 mov r1, r7 - 80083b8: f7f8 fb6c bl 8000a94 <__aeabi_dcmplt> - 80083bc: 2800 cmp r0, #0 - 80083be: f43f af1d beq.w 80081fc <_dtoa_r+0x474> - 80083c2: 9f14 ldr r7, [sp, #80] ; 0x50 - 80083c4: 1e7b subs r3, r7, #1 - 80083c6: 9314 str r3, [sp, #80] ; 0x50 - 80083c8: f817 3c01 ldrb.w r3, [r7, #-1] - 80083cc: 2b30 cmp r3, #48 ; 0x30 - 80083ce: d0f8 beq.n 80083c2 <_dtoa_r+0x63a> - 80083d0: 46c1 mov r9, r8 - 80083d2: e03a b.n 800844a <_dtoa_r+0x6c2> - 80083d4: 4ba2 ldr r3, [pc, #648] ; (8008660 <_dtoa_r+0x8d8>) - 80083d6: f7f8 f8eb bl 80005b0 <__aeabi_dmul> - 80083da: e9cd 0104 strd r0, r1, [sp, #16] - 80083de: e7bc b.n 800835a <_dtoa_r+0x5d2> - 80083e0: 9f08 ldr r7, [sp, #32] - 80083e2: e9dd 2306 ldrd r2, r3, [sp, #24] - 80083e6: e9dd 0104 ldrd r0, r1, [sp, #16] - 80083ea: f7f8 fa0b bl 8000804 <__aeabi_ddiv> - 80083ee: f7f8 fb8f bl 8000b10 <__aeabi_d2iz> - 80083f2: 4604 mov r4, r0 - 80083f4: f7f8 f872 bl 80004dc <__aeabi_i2d> - 80083f8: e9dd 2306 ldrd r2, r3, [sp, #24] - 80083fc: f7f8 f8d8 bl 80005b0 <__aeabi_dmul> - 8008400: f104 0630 add.w r6, r4, #48 ; 0x30 - 8008404: 460b mov r3, r1 - 8008406: 4602 mov r2, r0 - 8008408: e9dd 0104 ldrd r0, r1, [sp, #16] - 800840c: f7f7 ff18 bl 8000240 <__aeabi_dsub> - 8008410: f807 6b01 strb.w r6, [r7], #1 - 8008414: 9e08 ldr r6, [sp, #32] - 8008416: 9b02 ldr r3, [sp, #8] - 8008418: 1bbe subs r6, r7, r6 - 800841a: 42b3 cmp r3, r6 - 800841c: d13a bne.n 8008494 <_dtoa_r+0x70c> - 800841e: 4602 mov r2, r0 - 8008420: 460b mov r3, r1 - 8008422: f7f7 ff0f bl 8000244 <__adddf3> - 8008426: 4602 mov r2, r0 - 8008428: 460b mov r3, r1 - 800842a: e9cd 2302 strd r2, r3, [sp, #8] - 800842e: e9dd 2306 ldrd r2, r3, [sp, #24] - 8008432: f7f8 fb4d bl 8000ad0 <__aeabi_dcmpgt> - 8008436: bb58 cbnz r0, 8008490 <_dtoa_r+0x708> - 8008438: e9dd 2306 ldrd r2, r3, [sp, #24] - 800843c: e9dd 0102 ldrd r0, r1, [sp, #8] - 8008440: f7f8 fb1e bl 8000a80 <__aeabi_dcmpeq> - 8008444: b108 cbz r0, 800844a <_dtoa_r+0x6c2> - 8008446: 07e1 lsls r1, r4, #31 - 8008448: d422 bmi.n 8008490 <_dtoa_r+0x708> - 800844a: 4628 mov r0, r5 - 800844c: 4651 mov r1, sl - 800844e: f000 faf5 bl 8008a3c <_Bfree> - 8008452: 2300 movs r3, #0 - 8008454: 703b strb r3, [r7, #0] - 8008456: 9b24 ldr r3, [sp, #144] ; 0x90 - 8008458: f109 0001 add.w r0, r9, #1 - 800845c: 6018 str r0, [r3, #0] - 800845e: 9b26 ldr r3, [sp, #152] ; 0x98 - 8008460: 2b00 cmp r3, #0 - 8008462: f43f acdf beq.w 8007e24 <_dtoa_r+0x9c> - 8008466: 601f str r7, [r3, #0] - 8008468: e4dc b.n 8007e24 <_dtoa_r+0x9c> - 800846a: 4627 mov r7, r4 - 800846c: 463b mov r3, r7 - 800846e: 461f mov r7, r3 - 8008470: f813 2d01 ldrb.w r2, [r3, #-1]! - 8008474: 2a39 cmp r2, #57 ; 0x39 - 8008476: d107 bne.n 8008488 <_dtoa_r+0x700> - 8008478: 9a08 ldr r2, [sp, #32] - 800847a: 429a cmp r2, r3 - 800847c: d1f7 bne.n 800846e <_dtoa_r+0x6e6> - 800847e: 2230 movs r2, #48 ; 0x30 - 8008480: 9908 ldr r1, [sp, #32] - 8008482: f108 0801 add.w r8, r8, #1 - 8008486: 700a strb r2, [r1, #0] - 8008488: 781a ldrb r2, [r3, #0] - 800848a: 3201 adds r2, #1 - 800848c: 701a strb r2, [r3, #0] - 800848e: e79f b.n 80083d0 <_dtoa_r+0x648> - 8008490: 46c8 mov r8, r9 - 8008492: e7eb b.n 800846c <_dtoa_r+0x6e4> - 8008494: 2200 movs r2, #0 - 8008496: 4b72 ldr r3, [pc, #456] ; (8008660 <_dtoa_r+0x8d8>) - 8008498: f7f8 f88a bl 80005b0 <__aeabi_dmul> - 800849c: 4602 mov r2, r0 - 800849e: 460b mov r3, r1 - 80084a0: e9cd 2304 strd r2, r3, [sp, #16] - 80084a4: 2200 movs r2, #0 - 80084a6: 2300 movs r3, #0 - 80084a8: f7f8 faea bl 8000a80 <__aeabi_dcmpeq> - 80084ac: 2800 cmp r0, #0 - 80084ae: d098 beq.n 80083e2 <_dtoa_r+0x65a> - 80084b0: e7cb b.n 800844a <_dtoa_r+0x6c2> - 80084b2: 9a0b ldr r2, [sp, #44] ; 0x2c - 80084b4: 2a00 cmp r2, #0 - 80084b6: f000 80cd beq.w 8008654 <_dtoa_r+0x8cc> - 80084ba: 9a22 ldr r2, [sp, #136] ; 0x88 - 80084bc: 2a01 cmp r2, #1 - 80084be: f300 80af bgt.w 8008620 <_dtoa_r+0x898> - 80084c2: 9a13 ldr r2, [sp, #76] ; 0x4c - 80084c4: 2a00 cmp r2, #0 - 80084c6: f000 80a7 beq.w 8008618 <_dtoa_r+0x890> - 80084ca: f203 4333 addw r3, r3, #1075 ; 0x433 - 80084ce: 9c0a ldr r4, [sp, #40] ; 0x28 - 80084d0: 9f06 ldr r7, [sp, #24] - 80084d2: 9a06 ldr r2, [sp, #24] - 80084d4: 2101 movs r1, #1 - 80084d6: 441a add r2, r3 - 80084d8: 9206 str r2, [sp, #24] - 80084da: 9a09 ldr r2, [sp, #36] ; 0x24 - 80084dc: 4628 mov r0, r5 - 80084de: 441a add r2, r3 - 80084e0: 9209 str r2, [sp, #36] ; 0x24 - 80084e2: f000 fb65 bl 8008bb0 <__i2b> - 80084e6: 4606 mov r6, r0 - 80084e8: 2f00 cmp r7, #0 - 80084ea: dd0c ble.n 8008506 <_dtoa_r+0x77e> - 80084ec: 9b09 ldr r3, [sp, #36] ; 0x24 - 80084ee: 2b00 cmp r3, #0 - 80084f0: dd09 ble.n 8008506 <_dtoa_r+0x77e> - 80084f2: 42bb cmp r3, r7 - 80084f4: bfa8 it ge - 80084f6: 463b movge r3, r7 - 80084f8: 9a06 ldr r2, [sp, #24] - 80084fa: 1aff subs r7, r7, r3 - 80084fc: 1ad2 subs r2, r2, r3 - 80084fe: 9206 str r2, [sp, #24] - 8008500: 9a09 ldr r2, [sp, #36] ; 0x24 - 8008502: 1ad3 subs r3, r2, r3 - 8008504: 9309 str r3, [sp, #36] ; 0x24 - 8008506: 9b0a ldr r3, [sp, #40] ; 0x28 - 8008508: b1f3 cbz r3, 8008548 <_dtoa_r+0x7c0> - 800850a: 9b0b ldr r3, [sp, #44] ; 0x2c - 800850c: 2b00 cmp r3, #0 - 800850e: f000 80a9 beq.w 8008664 <_dtoa_r+0x8dc> - 8008512: 2c00 cmp r4, #0 - 8008514: dd10 ble.n 8008538 <_dtoa_r+0x7b0> - 8008516: 4631 mov r1, r6 - 8008518: 4622 mov r2, r4 - 800851a: 4628 mov r0, r5 - 800851c: f000 fc02 bl 8008d24 <__pow5mult> - 8008520: 4652 mov r2, sl - 8008522: 4601 mov r1, r0 - 8008524: 4606 mov r6, r0 - 8008526: 4628 mov r0, r5 - 8008528: f000 fb58 bl 8008bdc <__multiply> - 800852c: 4680 mov r8, r0 - 800852e: 4651 mov r1, sl - 8008530: 4628 mov r0, r5 - 8008532: f000 fa83 bl 8008a3c <_Bfree> - 8008536: 46c2 mov sl, r8 - 8008538: 9b0a ldr r3, [sp, #40] ; 0x28 - 800853a: 1b1a subs r2, r3, r4 - 800853c: d004 beq.n 8008548 <_dtoa_r+0x7c0> - 800853e: 4651 mov r1, sl - 8008540: 4628 mov r0, r5 - 8008542: f000 fbef bl 8008d24 <__pow5mult> - 8008546: 4682 mov sl, r0 - 8008548: 2101 movs r1, #1 - 800854a: 4628 mov r0, r5 - 800854c: f000 fb30 bl 8008bb0 <__i2b> - 8008550: 9b0e ldr r3, [sp, #56] ; 0x38 - 8008552: 4604 mov r4, r0 - 8008554: 2b00 cmp r3, #0 - 8008556: f340 8087 ble.w 8008668 <_dtoa_r+0x8e0> - 800855a: 461a mov r2, r3 - 800855c: 4601 mov r1, r0 - 800855e: 4628 mov r0, r5 - 8008560: f000 fbe0 bl 8008d24 <__pow5mult> - 8008564: 9b22 ldr r3, [sp, #136] ; 0x88 - 8008566: 4604 mov r4, r0 - 8008568: 2b01 cmp r3, #1 - 800856a: f340 8080 ble.w 800866e <_dtoa_r+0x8e6> - 800856e: f04f 0800 mov.w r8, #0 - 8008572: 6923 ldr r3, [r4, #16] - 8008574: eb04 0383 add.w r3, r4, r3, lsl #2 - 8008578: 6918 ldr r0, [r3, #16] - 800857a: f000 facb bl 8008b14 <__hi0bits> - 800857e: f1c0 0020 rsb r0, r0, #32 - 8008582: 9b09 ldr r3, [sp, #36] ; 0x24 - 8008584: 4418 add r0, r3 - 8008586: f010 001f ands.w r0, r0, #31 - 800858a: f000 8092 beq.w 80086b2 <_dtoa_r+0x92a> - 800858e: f1c0 0320 rsb r3, r0, #32 - 8008592: 2b04 cmp r3, #4 - 8008594: f340 808a ble.w 80086ac <_dtoa_r+0x924> - 8008598: f1c0 001c rsb r0, r0, #28 - 800859c: 9b06 ldr r3, [sp, #24] - 800859e: 4407 add r7, r0 - 80085a0: 4403 add r3, r0 - 80085a2: 9306 str r3, [sp, #24] - 80085a4: 9b09 ldr r3, [sp, #36] ; 0x24 - 80085a6: 4403 add r3, r0 - 80085a8: 9309 str r3, [sp, #36] ; 0x24 - 80085aa: 9b06 ldr r3, [sp, #24] - 80085ac: 2b00 cmp r3, #0 - 80085ae: dd05 ble.n 80085bc <_dtoa_r+0x834> - 80085b0: 4651 mov r1, sl - 80085b2: 461a mov r2, r3 - 80085b4: 4628 mov r0, r5 - 80085b6: f000 fc0f bl 8008dd8 <__lshift> - 80085ba: 4682 mov sl, r0 - 80085bc: 9b09 ldr r3, [sp, #36] ; 0x24 - 80085be: 2b00 cmp r3, #0 - 80085c0: dd05 ble.n 80085ce <_dtoa_r+0x846> - 80085c2: 4621 mov r1, r4 - 80085c4: 461a mov r2, r3 +08007b78 <_dtoa_r>: + 8007b78: e92d 4ff0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, fp, lr} + 8007b7c: 4616 mov r6, r2 + 8007b7e: 461f mov r7, r3 + 8007b80: 6a44 ldr r4, [r0, #36] ; 0x24 + 8007b82: b099 sub sp, #100 ; 0x64 + 8007b84: 4605 mov r5, r0 + 8007b86: e9cd 6704 strd r6, r7, [sp, #16] + 8007b8a: f8dd 8094 ldr.w r8, [sp, #148] ; 0x94 + 8007b8e: b974 cbnz r4, 8007bae <_dtoa_r+0x36> + 8007b90: 2010 movs r0, #16 + 8007b92: f7ff fa13 bl 8006fbc + 8007b96: 4602 mov r2, r0 + 8007b98: 6268 str r0, [r5, #36] ; 0x24 + 8007b9a: b920 cbnz r0, 8007ba6 <_dtoa_r+0x2e> + 8007b9c: 21ea movs r1, #234 ; 0xea + 8007b9e: 4bae ldr r3, [pc, #696] ; (8007e58 <_dtoa_r+0x2e0>) + 8007ba0: 48ae ldr r0, [pc, #696] ; (8007e5c <_dtoa_r+0x2e4>) + 8007ba2: f001 faef bl 8009184 <__assert_func> + 8007ba6: e9c0 4401 strd r4, r4, [r0, #4] + 8007baa: 6004 str r4, [r0, #0] + 8007bac: 60c4 str r4, [r0, #12] + 8007bae: 6a6b ldr r3, [r5, #36] ; 0x24 + 8007bb0: 6819 ldr r1, [r3, #0] + 8007bb2: b151 cbz r1, 8007bca <_dtoa_r+0x52> + 8007bb4: 685a ldr r2, [r3, #4] + 8007bb6: 2301 movs r3, #1 + 8007bb8: 4093 lsls r3, r2 + 8007bba: 604a str r2, [r1, #4] + 8007bbc: 608b str r3, [r1, #8] + 8007bbe: 4628 mov r0, r5 + 8007bc0: f000 fe34 bl 800882c <_Bfree> + 8007bc4: 2200 movs r2, #0 + 8007bc6: 6a6b ldr r3, [r5, #36] ; 0x24 + 8007bc8: 601a str r2, [r3, #0] + 8007bca: 1e3b subs r3, r7, #0 + 8007bcc: bfaf iteee ge + 8007bce: 2300 movge r3, #0 + 8007bd0: 2201 movlt r2, #1 + 8007bd2: f023 4300 biclt.w r3, r3, #2147483648 ; 0x80000000 + 8007bd6: 9305 strlt r3, [sp, #20] + 8007bd8: bfa8 it ge + 8007bda: f8c8 3000 strge.w r3, [r8] + 8007bde: f8dd 9014 ldr.w r9, [sp, #20] + 8007be2: 4b9f ldr r3, [pc, #636] ; (8007e60 <_dtoa_r+0x2e8>) + 8007be4: bfb8 it lt + 8007be6: f8c8 2000 strlt.w r2, [r8] + 8007bea: ea33 0309 bics.w r3, r3, r9 + 8007bee: d119 bne.n 8007c24 <_dtoa_r+0xac> + 8007bf0: f242 730f movw r3, #9999 ; 0x270f + 8007bf4: 9a24 ldr r2, [sp, #144] ; 0x90 + 8007bf6: 6013 str r3, [r2, #0] + 8007bf8: f3c9 0313 ubfx r3, r9, #0, #20 + 8007bfc: 4333 orrs r3, r6 + 8007bfe: f000 8580 beq.w 8008702 <_dtoa_r+0xb8a> + 8007c02: 9b26 ldr r3, [sp, #152] ; 0x98 + 8007c04: b953 cbnz r3, 8007c1c <_dtoa_r+0xa4> + 8007c06: 4b97 ldr r3, [pc, #604] ; (8007e64 <_dtoa_r+0x2ec>) + 8007c08: e022 b.n 8007c50 <_dtoa_r+0xd8> + 8007c0a: 4b97 ldr r3, [pc, #604] ; (8007e68 <_dtoa_r+0x2f0>) + 8007c0c: 9308 str r3, [sp, #32] + 8007c0e: 3308 adds r3, #8 + 8007c10: 9a26 ldr r2, [sp, #152] ; 0x98 + 8007c12: 6013 str r3, [r2, #0] + 8007c14: 9808 ldr r0, [sp, #32] + 8007c16: b019 add sp, #100 ; 0x64 + 8007c18: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc} + 8007c1c: 4b91 ldr r3, [pc, #580] ; (8007e64 <_dtoa_r+0x2ec>) + 8007c1e: 9308 str r3, [sp, #32] + 8007c20: 3303 adds r3, #3 + 8007c22: e7f5 b.n 8007c10 <_dtoa_r+0x98> + 8007c24: e9dd 3404 ldrd r3, r4, [sp, #16] + 8007c28: e9cd 340c strd r3, r4, [sp, #48] ; 0x30 + 8007c2c: e9dd 010c ldrd r0, r1, [sp, #48] ; 0x30 + 8007c30: 2200 movs r2, #0 + 8007c32: 2300 movs r3, #0 + 8007c34: f7f8 ff24 bl 8000a80 <__aeabi_dcmpeq> + 8007c38: 4680 mov r8, r0 + 8007c3a: b158 cbz r0, 8007c54 <_dtoa_r+0xdc> + 8007c3c: 2301 movs r3, #1 + 8007c3e: 9a24 ldr r2, [sp, #144] ; 0x90 + 8007c40: 6013 str r3, [r2, #0] + 8007c42: 9b26 ldr r3, [sp, #152] ; 0x98 + 8007c44: 2b00 cmp r3, #0 + 8007c46: f000 8559 beq.w 80086fc <_dtoa_r+0xb84> + 8007c4a: 4888 ldr r0, [pc, #544] ; (8007e6c <_dtoa_r+0x2f4>) + 8007c4c: 6018 str r0, [r3, #0] + 8007c4e: 1e43 subs r3, r0, #1 + 8007c50: 9308 str r3, [sp, #32] + 8007c52: e7df b.n 8007c14 <_dtoa_r+0x9c> + 8007c54: ab16 add r3, sp, #88 ; 0x58 + 8007c56: 9301 str r3, [sp, #4] + 8007c58: ab17 add r3, sp, #92 ; 0x5c + 8007c5a: 9300 str r3, [sp, #0] + 8007c5c: 4628 mov r0, r5 + 8007c5e: e9dd 230c ldrd r2, r3, [sp, #48] ; 0x30 + 8007c62: f001 f8c9 bl 8008df8 <__d2b> + 8007c66: f3c9 540a ubfx r4, r9, #20, #11 + 8007c6a: 4682 mov sl, r0 + 8007c6c: 2c00 cmp r4, #0 + 8007c6e: d07e beq.n 8007d6e <_dtoa_r+0x1f6> + 8007c70: e9dd 010c ldrd r0, r1, [sp, #48] ; 0x30 + 8007c74: 9b0d ldr r3, [sp, #52] ; 0x34 + 8007c76: f2a4 34ff subw r4, r4, #1023 ; 0x3ff + 8007c7a: f3c3 0313 ubfx r3, r3, #0, #20 + 8007c7e: f043 517f orr.w r1, r3, #1069547520 ; 0x3fc00000 + 8007c82: f441 1140 orr.w r1, r1, #3145728 ; 0x300000 + 8007c86: f8cd 804c str.w r8, [sp, #76] ; 0x4c + 8007c8a: 2200 movs r2, #0 + 8007c8c: 4b78 ldr r3, [pc, #480] ; (8007e70 <_dtoa_r+0x2f8>) + 8007c8e: f7f8 fad7 bl 8000240 <__aeabi_dsub> + 8007c92: a36b add r3, pc, #428 ; (adr r3, 8007e40 <_dtoa_r+0x2c8>) + 8007c94: e9d3 2300 ldrd r2, r3, [r3] + 8007c98: f7f8 fc8a bl 80005b0 <__aeabi_dmul> + 8007c9c: a36a add r3, pc, #424 ; (adr r3, 8007e48 <_dtoa_r+0x2d0>) + 8007c9e: e9d3 2300 ldrd r2, r3, [r3] + 8007ca2: f7f8 facf bl 8000244 <__adddf3> + 8007ca6: 4606 mov r6, r0 + 8007ca8: 4620 mov r0, r4 + 8007caa: 460f mov r7, r1 + 8007cac: f7f8 fc16 bl 80004dc <__aeabi_i2d> + 8007cb0: a367 add r3, pc, #412 ; (adr r3, 8007e50 <_dtoa_r+0x2d8>) + 8007cb2: e9d3 2300 ldrd r2, r3, [r3] + 8007cb6: f7f8 fc7b bl 80005b0 <__aeabi_dmul> + 8007cba: 4602 mov r2, r0 + 8007cbc: 460b mov r3, r1 + 8007cbe: 4630 mov r0, r6 + 8007cc0: 4639 mov r1, r7 + 8007cc2: f7f8 fabf bl 8000244 <__adddf3> + 8007cc6: 4606 mov r6, r0 + 8007cc8: 460f mov r7, r1 + 8007cca: f7f8 ff21 bl 8000b10 <__aeabi_d2iz> + 8007cce: 2200 movs r2, #0 + 8007cd0: 4681 mov r9, r0 + 8007cd2: 2300 movs r3, #0 + 8007cd4: 4630 mov r0, r6 + 8007cd6: 4639 mov r1, r7 + 8007cd8: f7f8 fedc bl 8000a94 <__aeabi_dcmplt> + 8007cdc: b148 cbz r0, 8007cf2 <_dtoa_r+0x17a> + 8007cde: 4648 mov r0, r9 + 8007ce0: f7f8 fbfc bl 80004dc <__aeabi_i2d> + 8007ce4: 4632 mov r2, r6 + 8007ce6: 463b mov r3, r7 + 8007ce8: f7f8 feca bl 8000a80 <__aeabi_dcmpeq> + 8007cec: b908 cbnz r0, 8007cf2 <_dtoa_r+0x17a> + 8007cee: f109 39ff add.w r9, r9, #4294967295 ; 0xffffffff + 8007cf2: f1b9 0f16 cmp.w r9, #22 + 8007cf6: d857 bhi.n 8007da8 <_dtoa_r+0x230> + 8007cf8: e9dd 010c ldrd r0, r1, [sp, #48] ; 0x30 + 8007cfc: 4b5d ldr r3, [pc, #372] ; (8007e74 <_dtoa_r+0x2fc>) + 8007cfe: eb03 03c9 add.w r3, r3, r9, lsl #3 + 8007d02: e9d3 2300 ldrd r2, r3, [r3] + 8007d06: f7f8 fec5 bl 8000a94 <__aeabi_dcmplt> + 8007d0a: 2800 cmp r0, #0 + 8007d0c: d04e beq.n 8007dac <_dtoa_r+0x234> + 8007d0e: 2300 movs r3, #0 + 8007d10: f109 39ff add.w r9, r9, #4294967295 ; 0xffffffff + 8007d14: 930f str r3, [sp, #60] ; 0x3c + 8007d16: 9b16 ldr r3, [sp, #88] ; 0x58 + 8007d18: 1b1c subs r4, r3, r4 + 8007d1a: 1e63 subs r3, r4, #1 + 8007d1c: 9309 str r3, [sp, #36] ; 0x24 + 8007d1e: bf49 itett mi + 8007d20: f1c4 0301 rsbmi r3, r4, #1 + 8007d24: 2300 movpl r3, #0 + 8007d26: 9306 strmi r3, [sp, #24] + 8007d28: 2300 movmi r3, #0 + 8007d2a: bf54 ite pl + 8007d2c: 9306 strpl r3, [sp, #24] + 8007d2e: 9309 strmi r3, [sp, #36] ; 0x24 + 8007d30: f1b9 0f00 cmp.w r9, #0 + 8007d34: db3c blt.n 8007db0 <_dtoa_r+0x238> + 8007d36: 9b09 ldr r3, [sp, #36] ; 0x24 + 8007d38: f8cd 9038 str.w r9, [sp, #56] ; 0x38 + 8007d3c: 444b add r3, r9 + 8007d3e: 9309 str r3, [sp, #36] ; 0x24 + 8007d40: 2300 movs r3, #0 + 8007d42: 930a str r3, [sp, #40] ; 0x28 + 8007d44: 9b22 ldr r3, [sp, #136] ; 0x88 + 8007d46: 2b09 cmp r3, #9 + 8007d48: d86c bhi.n 8007e24 <_dtoa_r+0x2ac> + 8007d4a: 2b05 cmp r3, #5 + 8007d4c: bfc4 itt gt + 8007d4e: 3b04 subgt r3, #4 + 8007d50: 9322 strgt r3, [sp, #136] ; 0x88 + 8007d52: 9b22 ldr r3, [sp, #136] ; 0x88 + 8007d54: bfc8 it gt + 8007d56: 2400 movgt r4, #0 + 8007d58: f1a3 0302 sub.w r3, r3, #2 + 8007d5c: bfd8 it le + 8007d5e: 2401 movle r4, #1 + 8007d60: 2b03 cmp r3, #3 + 8007d62: f200 808b bhi.w 8007e7c <_dtoa_r+0x304> + 8007d66: e8df f003 tbb [pc, r3] + 8007d6a: 4f2d .short 0x4f2d + 8007d6c: 5b4d .short 0x5b4d + 8007d6e: e9dd 4316 ldrd r4, r3, [sp, #88] ; 0x58 + 8007d72: 441c add r4, r3 + 8007d74: f204 4332 addw r3, r4, #1074 ; 0x432 + 8007d78: 2b20 cmp r3, #32 + 8007d7a: bfc3 ittte gt + 8007d7c: f1c3 0340 rsbgt r3, r3, #64 ; 0x40 + 8007d80: f204 4012 addwgt r0, r4, #1042 ; 0x412 + 8007d84: fa09 f303 lslgt.w r3, r9, r3 + 8007d88: f1c3 0320 rsble r3, r3, #32 + 8007d8c: bfc6 itte gt + 8007d8e: fa26 f000 lsrgt.w r0, r6, r0 + 8007d92: 4318 orrgt r0, r3 + 8007d94: fa06 f003 lslle.w r0, r6, r3 + 8007d98: f7f8 fb90 bl 80004bc <__aeabi_ui2d> + 8007d9c: 2301 movs r3, #1 + 8007d9e: f1a1 71f8 sub.w r1, r1, #32505856 ; 0x1f00000 + 8007da2: 3c01 subs r4, #1 + 8007da4: 9313 str r3, [sp, #76] ; 0x4c + 8007da6: e770 b.n 8007c8a <_dtoa_r+0x112> + 8007da8: 2301 movs r3, #1 + 8007daa: e7b3 b.n 8007d14 <_dtoa_r+0x19c> + 8007dac: 900f str r0, [sp, #60] ; 0x3c + 8007dae: e7b2 b.n 8007d16 <_dtoa_r+0x19e> + 8007db0: 9b06 ldr r3, [sp, #24] + 8007db2: eba3 0309 sub.w r3, r3, r9 + 8007db6: 9306 str r3, [sp, #24] + 8007db8: f1c9 0300 rsb r3, r9, #0 + 8007dbc: 930a str r3, [sp, #40] ; 0x28 + 8007dbe: 2300 movs r3, #0 + 8007dc0: 930e str r3, [sp, #56] ; 0x38 + 8007dc2: e7bf b.n 8007d44 <_dtoa_r+0x1cc> + 8007dc4: 2300 movs r3, #0 + 8007dc6: 930b str r3, [sp, #44] ; 0x2c + 8007dc8: 9b23 ldr r3, [sp, #140] ; 0x8c + 8007dca: 2b00 cmp r3, #0 + 8007dcc: dc59 bgt.n 8007e82 <_dtoa_r+0x30a> + 8007dce: f04f 0b01 mov.w fp, #1 + 8007dd2: 465b mov r3, fp + 8007dd4: f8cd b008 str.w fp, [sp, #8] + 8007dd8: f8cd b08c str.w fp, [sp, #140] ; 0x8c + 8007ddc: 2200 movs r2, #0 + 8007dde: 6a68 ldr r0, [r5, #36] ; 0x24 + 8007de0: 6042 str r2, [r0, #4] + 8007de2: 2204 movs r2, #4 + 8007de4: f102 0614 add.w r6, r2, #20 + 8007de8: 429e cmp r6, r3 + 8007dea: 6841 ldr r1, [r0, #4] + 8007dec: d94f bls.n 8007e8e <_dtoa_r+0x316> + 8007dee: 4628 mov r0, r5 + 8007df0: f000 fcdc bl 80087ac <_Balloc> + 8007df4: 9008 str r0, [sp, #32] + 8007df6: 2800 cmp r0, #0 + 8007df8: d14d bne.n 8007e96 <_dtoa_r+0x31e> + 8007dfa: 4602 mov r2, r0 + 8007dfc: f44f 71d5 mov.w r1, #426 ; 0x1aa + 8007e00: 4b1d ldr r3, [pc, #116] ; (8007e78 <_dtoa_r+0x300>) + 8007e02: e6cd b.n 8007ba0 <_dtoa_r+0x28> + 8007e04: 2301 movs r3, #1 + 8007e06: e7de b.n 8007dc6 <_dtoa_r+0x24e> + 8007e08: 2300 movs r3, #0 + 8007e0a: 930b str r3, [sp, #44] ; 0x2c + 8007e0c: 9b23 ldr r3, [sp, #140] ; 0x8c + 8007e0e: eb09 0b03 add.w fp, r9, r3 + 8007e12: f10b 0301 add.w r3, fp, #1 + 8007e16: 2b01 cmp r3, #1 + 8007e18: 9302 str r3, [sp, #8] + 8007e1a: bfb8 it lt + 8007e1c: 2301 movlt r3, #1 + 8007e1e: e7dd b.n 8007ddc <_dtoa_r+0x264> + 8007e20: 2301 movs r3, #1 + 8007e22: e7f2 b.n 8007e0a <_dtoa_r+0x292> + 8007e24: 2401 movs r4, #1 + 8007e26: 2300 movs r3, #0 + 8007e28: 940b str r4, [sp, #44] ; 0x2c + 8007e2a: 9322 str r3, [sp, #136] ; 0x88 + 8007e2c: f04f 3bff mov.w fp, #4294967295 ; 0xffffffff + 8007e30: 2200 movs r2, #0 + 8007e32: 2312 movs r3, #18 + 8007e34: f8cd b008 str.w fp, [sp, #8] + 8007e38: 9223 str r2, [sp, #140] ; 0x8c + 8007e3a: e7cf b.n 8007ddc <_dtoa_r+0x264> + 8007e3c: f3af 8000 nop.w + 8007e40: 636f4361 .word 0x636f4361 + 8007e44: 3fd287a7 .word 0x3fd287a7 + 8007e48: 8b60c8b3 .word 0x8b60c8b3 + 8007e4c: 3fc68a28 .word 0x3fc68a28 + 8007e50: 509f79fb .word 0x509f79fb + 8007e54: 3fd34413 .word 0x3fd34413 + 8007e58: 0800a8b9 .word 0x0800a8b9 + 8007e5c: 0800a8d0 .word 0x0800a8d0 + 8007e60: 7ff00000 .word 0x7ff00000 + 8007e64: 0800a8b5 .word 0x0800a8b5 + 8007e68: 0800a8ac .word 0x0800a8ac + 8007e6c: 0800a889 .word 0x0800a889 + 8007e70: 3ff80000 .word 0x3ff80000 + 8007e74: 0800a9c8 .word 0x0800a9c8 + 8007e78: 0800a92f .word 0x0800a92f + 8007e7c: 2301 movs r3, #1 + 8007e7e: 930b str r3, [sp, #44] ; 0x2c + 8007e80: e7d4 b.n 8007e2c <_dtoa_r+0x2b4> + 8007e82: f8dd b08c ldr.w fp, [sp, #140] ; 0x8c + 8007e86: 465b mov r3, fp + 8007e88: f8cd b008 str.w fp, [sp, #8] + 8007e8c: e7a6 b.n 8007ddc <_dtoa_r+0x264> + 8007e8e: 3101 adds r1, #1 + 8007e90: 6041 str r1, [r0, #4] + 8007e92: 0052 lsls r2, r2, #1 + 8007e94: e7a6 b.n 8007de4 <_dtoa_r+0x26c> + 8007e96: 6a6b ldr r3, [r5, #36] ; 0x24 + 8007e98: 9a08 ldr r2, [sp, #32] + 8007e9a: 601a str r2, [r3, #0] + 8007e9c: 9b02 ldr r3, [sp, #8] + 8007e9e: 2b0e cmp r3, #14 + 8007ea0: f200 80a8 bhi.w 8007ff4 <_dtoa_r+0x47c> + 8007ea4: 2c00 cmp r4, #0 + 8007ea6: f000 80a5 beq.w 8007ff4 <_dtoa_r+0x47c> + 8007eaa: f1b9 0f00 cmp.w r9, #0 + 8007eae: dd34 ble.n 8007f1a <_dtoa_r+0x3a2> + 8007eb0: 4a9a ldr r2, [pc, #616] ; (800811c <_dtoa_r+0x5a4>) + 8007eb2: f009 030f and.w r3, r9, #15 + 8007eb6: eb02 03c3 add.w r3, r2, r3, lsl #3 + 8007eba: f419 7f80 tst.w r9, #256 ; 0x100 + 8007ebe: e9d3 3400 ldrd r3, r4, [r3] + 8007ec2: e9cd 3410 strd r3, r4, [sp, #64] ; 0x40 + 8007ec6: ea4f 1429 mov.w r4, r9, asr #4 + 8007eca: d016 beq.n 8007efa <_dtoa_r+0x382> + 8007ecc: e9dd 010c ldrd r0, r1, [sp, #48] ; 0x30 + 8007ed0: 4b93 ldr r3, [pc, #588] ; (8008120 <_dtoa_r+0x5a8>) + 8007ed2: 2703 movs r7, #3 + 8007ed4: e9d3 2308 ldrd r2, r3, [r3, #32] + 8007ed8: f7f8 fc94 bl 8000804 <__aeabi_ddiv> + 8007edc: e9cd 0104 strd r0, r1, [sp, #16] + 8007ee0: f004 040f and.w r4, r4, #15 + 8007ee4: 4e8e ldr r6, [pc, #568] ; (8008120 <_dtoa_r+0x5a8>) + 8007ee6: b954 cbnz r4, 8007efe <_dtoa_r+0x386> + 8007ee8: e9dd 2310 ldrd r2, r3, [sp, #64] ; 0x40 + 8007eec: e9dd 0104 ldrd r0, r1, [sp, #16] + 8007ef0: f7f8 fc88 bl 8000804 <__aeabi_ddiv> + 8007ef4: e9cd 0104 strd r0, r1, [sp, #16] + 8007ef8: e029 b.n 8007f4e <_dtoa_r+0x3d6> + 8007efa: 2702 movs r7, #2 + 8007efc: e7f2 b.n 8007ee4 <_dtoa_r+0x36c> + 8007efe: 07e1 lsls r1, r4, #31 + 8007f00: d508 bpl.n 8007f14 <_dtoa_r+0x39c> + 8007f02: e9dd 0110 ldrd r0, r1, [sp, #64] ; 0x40 + 8007f06: e9d6 2300 ldrd r2, r3, [r6] + 8007f0a: f7f8 fb51 bl 80005b0 <__aeabi_dmul> + 8007f0e: e9cd 0110 strd r0, r1, [sp, #64] ; 0x40 + 8007f12: 3701 adds r7, #1 + 8007f14: 1064 asrs r4, r4, #1 + 8007f16: 3608 adds r6, #8 + 8007f18: e7e5 b.n 8007ee6 <_dtoa_r+0x36e> + 8007f1a: f000 80a5 beq.w 8008068 <_dtoa_r+0x4f0> + 8007f1e: e9dd 010c ldrd r0, r1, [sp, #48] ; 0x30 + 8007f22: f1c9 0400 rsb r4, r9, #0 + 8007f26: 4b7d ldr r3, [pc, #500] ; (800811c <_dtoa_r+0x5a4>) + 8007f28: f004 020f and.w r2, r4, #15 + 8007f2c: eb03 03c2 add.w r3, r3, r2, lsl #3 + 8007f30: e9d3 2300 ldrd r2, r3, [r3] + 8007f34: f7f8 fb3c bl 80005b0 <__aeabi_dmul> + 8007f38: 2702 movs r7, #2 + 8007f3a: 2300 movs r3, #0 + 8007f3c: e9cd 0104 strd r0, r1, [sp, #16] + 8007f40: 4e77 ldr r6, [pc, #476] ; (8008120 <_dtoa_r+0x5a8>) + 8007f42: 1124 asrs r4, r4, #4 + 8007f44: 2c00 cmp r4, #0 + 8007f46: f040 8084 bne.w 8008052 <_dtoa_r+0x4da> + 8007f4a: 2b00 cmp r3, #0 + 8007f4c: d1d2 bne.n 8007ef4 <_dtoa_r+0x37c> + 8007f4e: 9b0f ldr r3, [sp, #60] ; 0x3c + 8007f50: 2b00 cmp r3, #0 + 8007f52: f000 808b beq.w 800806c <_dtoa_r+0x4f4> + 8007f56: e9dd 3404 ldrd r3, r4, [sp, #16] + 8007f5a: e9cd 3410 strd r3, r4, [sp, #64] ; 0x40 + 8007f5e: e9dd 0110 ldrd r0, r1, [sp, #64] ; 0x40 + 8007f62: 2200 movs r2, #0 + 8007f64: 4b6f ldr r3, [pc, #444] ; (8008124 <_dtoa_r+0x5ac>) + 8007f66: f7f8 fd95 bl 8000a94 <__aeabi_dcmplt> + 8007f6a: 2800 cmp r0, #0 + 8007f6c: d07e beq.n 800806c <_dtoa_r+0x4f4> + 8007f6e: 9b02 ldr r3, [sp, #8] + 8007f70: 2b00 cmp r3, #0 + 8007f72: d07b beq.n 800806c <_dtoa_r+0x4f4> + 8007f74: f1bb 0f00 cmp.w fp, #0 + 8007f78: dd38 ble.n 8007fec <_dtoa_r+0x474> + 8007f7a: e9dd 0110 ldrd r0, r1, [sp, #64] ; 0x40 + 8007f7e: 2200 movs r2, #0 + 8007f80: 4b69 ldr r3, [pc, #420] ; (8008128 <_dtoa_r+0x5b0>) + 8007f82: f7f8 fb15 bl 80005b0 <__aeabi_dmul> + 8007f86: 465c mov r4, fp + 8007f88: e9cd 0104 strd r0, r1, [sp, #16] + 8007f8c: f109 38ff add.w r8, r9, #4294967295 ; 0xffffffff + 8007f90: 3701 adds r7, #1 + 8007f92: 4638 mov r0, r7 + 8007f94: f7f8 faa2 bl 80004dc <__aeabi_i2d> + 8007f98: e9dd 2304 ldrd r2, r3, [sp, #16] + 8007f9c: f7f8 fb08 bl 80005b0 <__aeabi_dmul> + 8007fa0: 2200 movs r2, #0 + 8007fa2: 4b62 ldr r3, [pc, #392] ; (800812c <_dtoa_r+0x5b4>) + 8007fa4: f7f8 f94e bl 8000244 <__adddf3> + 8007fa8: f1a1 7650 sub.w r6, r1, #54525952 ; 0x3400000 + 8007fac: e9cd 0110 strd r0, r1, [sp, #64] ; 0x40 + 8007fb0: 9611 str r6, [sp, #68] ; 0x44 + 8007fb2: 2c00 cmp r4, #0 + 8007fb4: d15d bne.n 8008072 <_dtoa_r+0x4fa> + 8007fb6: e9dd 0104 ldrd r0, r1, [sp, #16] + 8007fba: 2200 movs r2, #0 + 8007fbc: 4b5c ldr r3, [pc, #368] ; (8008130 <_dtoa_r+0x5b8>) + 8007fbe: f7f8 f93f bl 8000240 <__aeabi_dsub> + 8007fc2: 4602 mov r2, r0 + 8007fc4: 460b mov r3, r1 + 8007fc6: e9cd 2304 strd r2, r3, [sp, #16] + 8007fca: 4633 mov r3, r6 + 8007fcc: 9a10 ldr r2, [sp, #64] ; 0x40 + 8007fce: f7f8 fd7f bl 8000ad0 <__aeabi_dcmpgt> + 8007fd2: 2800 cmp r0, #0 + 8007fd4: f040 829e bne.w 8008514 <_dtoa_r+0x99c> + 8007fd8: e9dd 0104 ldrd r0, r1, [sp, #16] + 8007fdc: 9a10 ldr r2, [sp, #64] ; 0x40 + 8007fde: f106 4300 add.w r3, r6, #2147483648 ; 0x80000000 + 8007fe2: f7f8 fd57 bl 8000a94 <__aeabi_dcmplt> + 8007fe6: 2800 cmp r0, #0 + 8007fe8: f040 8292 bne.w 8008510 <_dtoa_r+0x998> + 8007fec: e9dd 340c ldrd r3, r4, [sp, #48] ; 0x30 + 8007ff0: e9cd 3404 strd r3, r4, [sp, #16] + 8007ff4: 9b17 ldr r3, [sp, #92] ; 0x5c + 8007ff6: 2b00 cmp r3, #0 + 8007ff8: f2c0 8153 blt.w 80082a2 <_dtoa_r+0x72a> + 8007ffc: f1b9 0f0e cmp.w r9, #14 + 8008000: f300 814f bgt.w 80082a2 <_dtoa_r+0x72a> + 8008004: 4b45 ldr r3, [pc, #276] ; (800811c <_dtoa_r+0x5a4>) + 8008006: eb03 03c9 add.w r3, r3, r9, lsl #3 + 800800a: e9d3 3400 ldrd r3, r4, [r3] + 800800e: e9cd 3406 strd r3, r4, [sp, #24] + 8008012: 9b23 ldr r3, [sp, #140] ; 0x8c + 8008014: 2b00 cmp r3, #0 + 8008016: f280 80db bge.w 80081d0 <_dtoa_r+0x658> + 800801a: 9b02 ldr r3, [sp, #8] + 800801c: 2b00 cmp r3, #0 + 800801e: f300 80d7 bgt.w 80081d0 <_dtoa_r+0x658> + 8008022: f040 8274 bne.w 800850e <_dtoa_r+0x996> + 8008026: e9dd 0106 ldrd r0, r1, [sp, #24] + 800802a: 2200 movs r2, #0 + 800802c: 4b40 ldr r3, [pc, #256] ; (8008130 <_dtoa_r+0x5b8>) + 800802e: f7f8 fabf bl 80005b0 <__aeabi_dmul> + 8008032: e9dd 2304 ldrd r2, r3, [sp, #16] + 8008036: f7f8 fd41 bl 8000abc <__aeabi_dcmpge> + 800803a: 9c02 ldr r4, [sp, #8] + 800803c: 4626 mov r6, r4 + 800803e: 2800 cmp r0, #0 + 8008040: f040 824a bne.w 80084d8 <_dtoa_r+0x960> + 8008044: 2331 movs r3, #49 ; 0x31 + 8008046: 9f08 ldr r7, [sp, #32] + 8008048: f109 0901 add.w r9, r9, #1 + 800804c: f807 3b01 strb.w r3, [r7], #1 + 8008050: e246 b.n 80084e0 <_dtoa_r+0x968> + 8008052: 07e2 lsls r2, r4, #31 + 8008054: d505 bpl.n 8008062 <_dtoa_r+0x4ea> + 8008056: e9d6 2300 ldrd r2, r3, [r6] + 800805a: f7f8 faa9 bl 80005b0 <__aeabi_dmul> + 800805e: 2301 movs r3, #1 + 8008060: 3701 adds r7, #1 + 8008062: 1064 asrs r4, r4, #1 + 8008064: 3608 adds r6, #8 + 8008066: e76d b.n 8007f44 <_dtoa_r+0x3cc> + 8008068: 2702 movs r7, #2 + 800806a: e770 b.n 8007f4e <_dtoa_r+0x3d6> + 800806c: 46c8 mov r8, r9 + 800806e: 9c02 ldr r4, [sp, #8] + 8008070: e78f b.n 8007f92 <_dtoa_r+0x41a> + 8008072: 9908 ldr r1, [sp, #32] + 8008074: 4b29 ldr r3, [pc, #164] ; (800811c <_dtoa_r+0x5a4>) + 8008076: 4421 add r1, r4 + 8008078: 9112 str r1, [sp, #72] ; 0x48 + 800807a: 990b ldr r1, [sp, #44] ; 0x2c + 800807c: eb03 03c4 add.w r3, r3, r4, lsl #3 + 8008080: e9dd 6710 ldrd r6, r7, [sp, #64] ; 0x40 + 8008084: e953 2302 ldrd r2, r3, [r3, #-8] + 8008088: 2900 cmp r1, #0 + 800808a: d055 beq.n 8008138 <_dtoa_r+0x5c0> + 800808c: 2000 movs r0, #0 + 800808e: 4929 ldr r1, [pc, #164] ; (8008134 <_dtoa_r+0x5bc>) + 8008090: f7f8 fbb8 bl 8000804 <__aeabi_ddiv> + 8008094: 463b mov r3, r7 + 8008096: 4632 mov r2, r6 + 8008098: f7f8 f8d2 bl 8000240 <__aeabi_dsub> + 800809c: e9cd 0110 strd r0, r1, [sp, #64] ; 0x40 + 80080a0: 9f08 ldr r7, [sp, #32] + 80080a2: e9dd 0104 ldrd r0, r1, [sp, #16] + 80080a6: f7f8 fd33 bl 8000b10 <__aeabi_d2iz> + 80080aa: 4604 mov r4, r0 + 80080ac: f7f8 fa16 bl 80004dc <__aeabi_i2d> + 80080b0: 4602 mov r2, r0 + 80080b2: 460b mov r3, r1 + 80080b4: e9dd 0104 ldrd r0, r1, [sp, #16] + 80080b8: f7f8 f8c2 bl 8000240 <__aeabi_dsub> + 80080bc: 4602 mov r2, r0 + 80080be: 460b mov r3, r1 + 80080c0: 3430 adds r4, #48 ; 0x30 + 80080c2: e9cd 2304 strd r2, r3, [sp, #16] + 80080c6: e9dd 2310 ldrd r2, r3, [sp, #64] ; 0x40 + 80080ca: f807 4b01 strb.w r4, [r7], #1 + 80080ce: f7f8 fce1 bl 8000a94 <__aeabi_dcmplt> + 80080d2: 2800 cmp r0, #0 + 80080d4: d174 bne.n 80081c0 <_dtoa_r+0x648> + 80080d6: e9dd 2304 ldrd r2, r3, [sp, #16] + 80080da: 2000 movs r0, #0 + 80080dc: 4911 ldr r1, [pc, #68] ; (8008124 <_dtoa_r+0x5ac>) + 80080de: f7f8 f8af bl 8000240 <__aeabi_dsub> + 80080e2: e9dd 2310 ldrd r2, r3, [sp, #64] ; 0x40 + 80080e6: f7f8 fcd5 bl 8000a94 <__aeabi_dcmplt> + 80080ea: 2800 cmp r0, #0 + 80080ec: f040 80b6 bne.w 800825c <_dtoa_r+0x6e4> + 80080f0: 9b12 ldr r3, [sp, #72] ; 0x48 + 80080f2: 429f cmp r7, r3 + 80080f4: f43f af7a beq.w 8007fec <_dtoa_r+0x474> + 80080f8: e9dd 0110 ldrd r0, r1, [sp, #64] ; 0x40 + 80080fc: 2200 movs r2, #0 + 80080fe: 4b0a ldr r3, [pc, #40] ; (8008128 <_dtoa_r+0x5b0>) + 8008100: f7f8 fa56 bl 80005b0 <__aeabi_dmul> + 8008104: 2200 movs r2, #0 + 8008106: e9cd 0110 strd r0, r1, [sp, #64] ; 0x40 + 800810a: e9dd 0104 ldrd r0, r1, [sp, #16] + 800810e: 4b06 ldr r3, [pc, #24] ; (8008128 <_dtoa_r+0x5b0>) + 8008110: f7f8 fa4e bl 80005b0 <__aeabi_dmul> + 8008114: e9cd 0104 strd r0, r1, [sp, #16] + 8008118: e7c3 b.n 80080a2 <_dtoa_r+0x52a> + 800811a: bf00 nop + 800811c: 0800a9c8 .word 0x0800a9c8 + 8008120: 0800a9a0 .word 0x0800a9a0 + 8008124: 3ff00000 .word 0x3ff00000 + 8008128: 40240000 .word 0x40240000 + 800812c: 401c0000 .word 0x401c0000 + 8008130: 40140000 .word 0x40140000 + 8008134: 3fe00000 .word 0x3fe00000 + 8008138: 4630 mov r0, r6 + 800813a: 4639 mov r1, r7 + 800813c: f7f8 fa38 bl 80005b0 <__aeabi_dmul> + 8008140: 9b12 ldr r3, [sp, #72] ; 0x48 + 8008142: e9cd 0110 strd r0, r1, [sp, #64] ; 0x40 + 8008146: 9c08 ldr r4, [sp, #32] + 8008148: 9314 str r3, [sp, #80] ; 0x50 + 800814a: e9dd 0104 ldrd r0, r1, [sp, #16] + 800814e: f7f8 fcdf bl 8000b10 <__aeabi_d2iz> + 8008152: 9015 str r0, [sp, #84] ; 0x54 + 8008154: f7f8 f9c2 bl 80004dc <__aeabi_i2d> + 8008158: 4602 mov r2, r0 + 800815a: 460b mov r3, r1 + 800815c: e9dd 0104 ldrd r0, r1, [sp, #16] + 8008160: f7f8 f86e bl 8000240 <__aeabi_dsub> + 8008164: 9b15 ldr r3, [sp, #84] ; 0x54 + 8008166: 4606 mov r6, r0 + 8008168: 3330 adds r3, #48 ; 0x30 + 800816a: f804 3b01 strb.w r3, [r4], #1 + 800816e: 9b12 ldr r3, [sp, #72] ; 0x48 + 8008170: 460f mov r7, r1 + 8008172: 429c cmp r4, r3 + 8008174: f04f 0200 mov.w r2, #0 + 8008178: d124 bne.n 80081c4 <_dtoa_r+0x64c> + 800817a: e9dd 0110 ldrd r0, r1, [sp, #64] ; 0x40 + 800817e: 4bb3 ldr r3, [pc, #716] ; (800844c <_dtoa_r+0x8d4>) + 8008180: f7f8 f860 bl 8000244 <__adddf3> + 8008184: 4602 mov r2, r0 + 8008186: 460b mov r3, r1 + 8008188: 4630 mov r0, r6 + 800818a: 4639 mov r1, r7 + 800818c: f7f8 fca0 bl 8000ad0 <__aeabi_dcmpgt> + 8008190: 2800 cmp r0, #0 + 8008192: d162 bne.n 800825a <_dtoa_r+0x6e2> + 8008194: e9dd 2310 ldrd r2, r3, [sp, #64] ; 0x40 + 8008198: 2000 movs r0, #0 + 800819a: 49ac ldr r1, [pc, #688] ; (800844c <_dtoa_r+0x8d4>) + 800819c: f7f8 f850 bl 8000240 <__aeabi_dsub> + 80081a0: 4602 mov r2, r0 + 80081a2: 460b mov r3, r1 + 80081a4: 4630 mov r0, r6 + 80081a6: 4639 mov r1, r7 + 80081a8: f7f8 fc74 bl 8000a94 <__aeabi_dcmplt> + 80081ac: 2800 cmp r0, #0 + 80081ae: f43f af1d beq.w 8007fec <_dtoa_r+0x474> + 80081b2: 9f14 ldr r7, [sp, #80] ; 0x50 + 80081b4: 1e7b subs r3, r7, #1 + 80081b6: 9314 str r3, [sp, #80] ; 0x50 + 80081b8: f817 3c01 ldrb.w r3, [r7, #-1] + 80081bc: 2b30 cmp r3, #48 ; 0x30 + 80081be: d0f8 beq.n 80081b2 <_dtoa_r+0x63a> + 80081c0: 46c1 mov r9, r8 + 80081c2: e03a b.n 800823a <_dtoa_r+0x6c2> + 80081c4: 4ba2 ldr r3, [pc, #648] ; (8008450 <_dtoa_r+0x8d8>) + 80081c6: f7f8 f9f3 bl 80005b0 <__aeabi_dmul> + 80081ca: e9cd 0104 strd r0, r1, [sp, #16] + 80081ce: e7bc b.n 800814a <_dtoa_r+0x5d2> + 80081d0: 9f08 ldr r7, [sp, #32] + 80081d2: e9dd 2306 ldrd r2, r3, [sp, #24] + 80081d6: e9dd 0104 ldrd r0, r1, [sp, #16] + 80081da: f7f8 fb13 bl 8000804 <__aeabi_ddiv> + 80081de: f7f8 fc97 bl 8000b10 <__aeabi_d2iz> + 80081e2: 4604 mov r4, r0 + 80081e4: f7f8 f97a bl 80004dc <__aeabi_i2d> + 80081e8: e9dd 2306 ldrd r2, r3, [sp, #24] + 80081ec: f7f8 f9e0 bl 80005b0 <__aeabi_dmul> + 80081f0: f104 0630 add.w r6, r4, #48 ; 0x30 + 80081f4: 460b mov r3, r1 + 80081f6: 4602 mov r2, r0 + 80081f8: e9dd 0104 ldrd r0, r1, [sp, #16] + 80081fc: f7f8 f820 bl 8000240 <__aeabi_dsub> + 8008200: f807 6b01 strb.w r6, [r7], #1 + 8008204: 9e08 ldr r6, [sp, #32] + 8008206: 9b02 ldr r3, [sp, #8] + 8008208: 1bbe subs r6, r7, r6 + 800820a: 42b3 cmp r3, r6 + 800820c: d13a bne.n 8008284 <_dtoa_r+0x70c> + 800820e: 4602 mov r2, r0 + 8008210: 460b mov r3, r1 + 8008212: f7f8 f817 bl 8000244 <__adddf3> + 8008216: 4602 mov r2, r0 + 8008218: 460b mov r3, r1 + 800821a: e9cd 2302 strd r2, r3, [sp, #8] + 800821e: e9dd 2306 ldrd r2, r3, [sp, #24] + 8008222: f7f8 fc55 bl 8000ad0 <__aeabi_dcmpgt> + 8008226: bb58 cbnz r0, 8008280 <_dtoa_r+0x708> + 8008228: e9dd 2306 ldrd r2, r3, [sp, #24] + 800822c: e9dd 0102 ldrd r0, r1, [sp, #8] + 8008230: f7f8 fc26 bl 8000a80 <__aeabi_dcmpeq> + 8008234: b108 cbz r0, 800823a <_dtoa_r+0x6c2> + 8008236: 07e1 lsls r1, r4, #31 + 8008238: d422 bmi.n 8008280 <_dtoa_r+0x708> + 800823a: 4628 mov r0, r5 + 800823c: 4651 mov r1, sl + 800823e: f000 faf5 bl 800882c <_Bfree> + 8008242: 2300 movs r3, #0 + 8008244: 703b strb r3, [r7, #0] + 8008246: 9b24 ldr r3, [sp, #144] ; 0x90 + 8008248: f109 0001 add.w r0, r9, #1 + 800824c: 6018 str r0, [r3, #0] + 800824e: 9b26 ldr r3, [sp, #152] ; 0x98 + 8008250: 2b00 cmp r3, #0 + 8008252: f43f acdf beq.w 8007c14 <_dtoa_r+0x9c> + 8008256: 601f str r7, [r3, #0] + 8008258: e4dc b.n 8007c14 <_dtoa_r+0x9c> + 800825a: 4627 mov r7, r4 + 800825c: 463b mov r3, r7 + 800825e: 461f mov r7, r3 + 8008260: f813 2d01 ldrb.w r2, [r3, #-1]! + 8008264: 2a39 cmp r2, #57 ; 0x39 + 8008266: d107 bne.n 8008278 <_dtoa_r+0x700> + 8008268: 9a08 ldr r2, [sp, #32] + 800826a: 429a cmp r2, r3 + 800826c: d1f7 bne.n 800825e <_dtoa_r+0x6e6> + 800826e: 2230 movs r2, #48 ; 0x30 + 8008270: 9908 ldr r1, [sp, #32] + 8008272: f108 0801 add.w r8, r8, #1 + 8008276: 700a strb r2, [r1, #0] + 8008278: 781a ldrb r2, [r3, #0] + 800827a: 3201 adds r2, #1 + 800827c: 701a strb r2, [r3, #0] + 800827e: e79f b.n 80081c0 <_dtoa_r+0x648> + 8008280: 46c8 mov r8, r9 + 8008282: e7eb b.n 800825c <_dtoa_r+0x6e4> + 8008284: 2200 movs r2, #0 + 8008286: 4b72 ldr r3, [pc, #456] ; (8008450 <_dtoa_r+0x8d8>) + 8008288: f7f8 f992 bl 80005b0 <__aeabi_dmul> + 800828c: 4602 mov r2, r0 + 800828e: 460b mov r3, r1 + 8008290: e9cd 2304 strd r2, r3, [sp, #16] + 8008294: 2200 movs r2, #0 + 8008296: 2300 movs r3, #0 + 8008298: f7f8 fbf2 bl 8000a80 <__aeabi_dcmpeq> + 800829c: 2800 cmp r0, #0 + 800829e: d098 beq.n 80081d2 <_dtoa_r+0x65a> + 80082a0: e7cb b.n 800823a <_dtoa_r+0x6c2> + 80082a2: 9a0b ldr r2, [sp, #44] ; 0x2c + 80082a4: 2a00 cmp r2, #0 + 80082a6: f000 80cd beq.w 8008444 <_dtoa_r+0x8cc> + 80082aa: 9a22 ldr r2, [sp, #136] ; 0x88 + 80082ac: 2a01 cmp r2, #1 + 80082ae: f300 80af bgt.w 8008410 <_dtoa_r+0x898> + 80082b2: 9a13 ldr r2, [sp, #76] ; 0x4c + 80082b4: 2a00 cmp r2, #0 + 80082b6: f000 80a7 beq.w 8008408 <_dtoa_r+0x890> + 80082ba: f203 4333 addw r3, r3, #1075 ; 0x433 + 80082be: 9c0a ldr r4, [sp, #40] ; 0x28 + 80082c0: 9f06 ldr r7, [sp, #24] + 80082c2: 9a06 ldr r2, [sp, #24] + 80082c4: 2101 movs r1, #1 + 80082c6: 441a add r2, r3 + 80082c8: 9206 str r2, [sp, #24] + 80082ca: 9a09 ldr r2, [sp, #36] ; 0x24 + 80082cc: 4628 mov r0, r5 + 80082ce: 441a add r2, r3 + 80082d0: 9209 str r2, [sp, #36] ; 0x24 + 80082d2: f000 fb65 bl 80089a0 <__i2b> + 80082d6: 4606 mov r6, r0 + 80082d8: 2f00 cmp r7, #0 + 80082da: dd0c ble.n 80082f6 <_dtoa_r+0x77e> + 80082dc: 9b09 ldr r3, [sp, #36] ; 0x24 + 80082de: 2b00 cmp r3, #0 + 80082e0: dd09 ble.n 80082f6 <_dtoa_r+0x77e> + 80082e2: 42bb cmp r3, r7 + 80082e4: bfa8 it ge + 80082e6: 463b movge r3, r7 + 80082e8: 9a06 ldr r2, [sp, #24] + 80082ea: 1aff subs r7, r7, r3 + 80082ec: 1ad2 subs r2, r2, r3 + 80082ee: 9206 str r2, [sp, #24] + 80082f0: 9a09 ldr r2, [sp, #36] ; 0x24 + 80082f2: 1ad3 subs r3, r2, r3 + 80082f4: 9309 str r3, [sp, #36] ; 0x24 + 80082f6: 9b0a ldr r3, [sp, #40] ; 0x28 + 80082f8: b1f3 cbz r3, 8008338 <_dtoa_r+0x7c0> + 80082fa: 9b0b ldr r3, [sp, #44] ; 0x2c + 80082fc: 2b00 cmp r3, #0 + 80082fe: f000 80a9 beq.w 8008454 <_dtoa_r+0x8dc> + 8008302: 2c00 cmp r4, #0 + 8008304: dd10 ble.n 8008328 <_dtoa_r+0x7b0> + 8008306: 4631 mov r1, r6 + 8008308: 4622 mov r2, r4 + 800830a: 4628 mov r0, r5 + 800830c: f000 fc02 bl 8008b14 <__pow5mult> + 8008310: 4652 mov r2, sl + 8008312: 4601 mov r1, r0 + 8008314: 4606 mov r6, r0 + 8008316: 4628 mov r0, r5 + 8008318: f000 fb58 bl 80089cc <__multiply> + 800831c: 4680 mov r8, r0 + 800831e: 4651 mov r1, sl + 8008320: 4628 mov r0, r5 + 8008322: f000 fa83 bl 800882c <_Bfree> + 8008326: 46c2 mov sl, r8 + 8008328: 9b0a ldr r3, [sp, #40] ; 0x28 + 800832a: 1b1a subs r2, r3, r4 + 800832c: d004 beq.n 8008338 <_dtoa_r+0x7c0> + 800832e: 4651 mov r1, sl + 8008330: 4628 mov r0, r5 + 8008332: f000 fbef bl 8008b14 <__pow5mult> + 8008336: 4682 mov sl, r0 + 8008338: 2101 movs r1, #1 + 800833a: 4628 mov r0, r5 + 800833c: f000 fb30 bl 80089a0 <__i2b> + 8008340: 9b0e ldr r3, [sp, #56] ; 0x38 + 8008342: 4604 mov r4, r0 + 8008344: 2b00 cmp r3, #0 + 8008346: f340 8087 ble.w 8008458 <_dtoa_r+0x8e0> + 800834a: 461a mov r2, r3 + 800834c: 4601 mov r1, r0 + 800834e: 4628 mov r0, r5 + 8008350: f000 fbe0 bl 8008b14 <__pow5mult> + 8008354: 9b22 ldr r3, [sp, #136] ; 0x88 + 8008356: 4604 mov r4, r0 + 8008358: 2b01 cmp r3, #1 + 800835a: f340 8080 ble.w 800845e <_dtoa_r+0x8e6> + 800835e: f04f 0800 mov.w r8, #0 + 8008362: 6923 ldr r3, [r4, #16] + 8008364: eb04 0383 add.w r3, r4, r3, lsl #2 + 8008368: 6918 ldr r0, [r3, #16] + 800836a: f000 facb bl 8008904 <__hi0bits> + 800836e: f1c0 0020 rsb r0, r0, #32 + 8008372: 9b09 ldr r3, [sp, #36] ; 0x24 + 8008374: 4418 add r0, r3 + 8008376: f010 001f ands.w r0, r0, #31 + 800837a: f000 8092 beq.w 80084a2 <_dtoa_r+0x92a> + 800837e: f1c0 0320 rsb r3, r0, #32 + 8008382: 2b04 cmp r3, #4 + 8008384: f340 808a ble.w 800849c <_dtoa_r+0x924> + 8008388: f1c0 001c rsb r0, r0, #28 + 800838c: 9b06 ldr r3, [sp, #24] + 800838e: 4407 add r7, r0 + 8008390: 4403 add r3, r0 + 8008392: 9306 str r3, [sp, #24] + 8008394: 9b09 ldr r3, [sp, #36] ; 0x24 + 8008396: 4403 add r3, r0 + 8008398: 9309 str r3, [sp, #36] ; 0x24 + 800839a: 9b06 ldr r3, [sp, #24] + 800839c: 2b00 cmp r3, #0 + 800839e: dd05 ble.n 80083ac <_dtoa_r+0x834> + 80083a0: 4651 mov r1, sl + 80083a2: 461a mov r2, r3 + 80083a4: 4628 mov r0, r5 + 80083a6: f000 fc0f bl 8008bc8 <__lshift> + 80083aa: 4682 mov sl, r0 + 80083ac: 9b09 ldr r3, [sp, #36] ; 0x24 + 80083ae: 2b00 cmp r3, #0 + 80083b0: dd05 ble.n 80083be <_dtoa_r+0x846> + 80083b2: 4621 mov r1, r4 + 80083b4: 461a mov r2, r3 + 80083b6: 4628 mov r0, r5 + 80083b8: f000 fc06 bl 8008bc8 <__lshift> + 80083bc: 4604 mov r4, r0 + 80083be: 9b0f ldr r3, [sp, #60] ; 0x3c + 80083c0: 2b00 cmp r3, #0 + 80083c2: d070 beq.n 80084a6 <_dtoa_r+0x92e> + 80083c4: 4621 mov r1, r4 + 80083c6: 4650 mov r0, sl + 80083c8: f000 fc6a bl 8008ca0 <__mcmp> + 80083cc: 2800 cmp r0, #0 + 80083ce: da6a bge.n 80084a6 <_dtoa_r+0x92e> + 80083d0: 2300 movs r3, #0 + 80083d2: 4651 mov r1, sl + 80083d4: 220a movs r2, #10 + 80083d6: 4628 mov r0, r5 + 80083d8: f000 fa4a bl 8008870 <__multadd> + 80083dc: 9b0b ldr r3, [sp, #44] ; 0x2c + 80083de: 4682 mov sl, r0 + 80083e0: f109 39ff add.w r9, r9, #4294967295 ; 0xffffffff + 80083e4: 2b00 cmp r3, #0 + 80083e6: f000 8193 beq.w 8008710 <_dtoa_r+0xb98> + 80083ea: 4631 mov r1, r6 + 80083ec: 2300 movs r3, #0 + 80083ee: 220a movs r2, #10 + 80083f0: 4628 mov r0, r5 + 80083f2: f000 fa3d bl 8008870 <__multadd> + 80083f6: f1bb 0f00 cmp.w fp, #0 + 80083fa: 4606 mov r6, r0 + 80083fc: f300 8093 bgt.w 8008526 <_dtoa_r+0x9ae> + 8008400: 9b22 ldr r3, [sp, #136] ; 0x88 + 8008402: 2b02 cmp r3, #2 + 8008404: dc57 bgt.n 80084b6 <_dtoa_r+0x93e> + 8008406: e08e b.n 8008526 <_dtoa_r+0x9ae> + 8008408: 9b16 ldr r3, [sp, #88] ; 0x58 + 800840a: f1c3 0336 rsb r3, r3, #54 ; 0x36 + 800840e: e756 b.n 80082be <_dtoa_r+0x746> + 8008410: 9b02 ldr r3, [sp, #8] + 8008412: 1e5c subs r4, r3, #1 + 8008414: 9b0a ldr r3, [sp, #40] ; 0x28 + 8008416: 42a3 cmp r3, r4 + 8008418: bfb7 itett lt + 800841a: 9b0a ldrlt r3, [sp, #40] ; 0x28 + 800841c: 1b1c subge r4, r3, r4 + 800841e: 1ae2 sublt r2, r4, r3 + 8008420: 9b0e ldrlt r3, [sp, #56] ; 0x38 + 8008422: bfbe ittt lt + 8008424: 940a strlt r4, [sp, #40] ; 0x28 + 8008426: 189b addlt r3, r3, r2 + 8008428: 930e strlt r3, [sp, #56] ; 0x38 + 800842a: 9b02 ldr r3, [sp, #8] + 800842c: bfb8 it lt + 800842e: 2400 movlt r4, #0 + 8008430: 2b00 cmp r3, #0 + 8008432: bfbb ittet lt + 8008434: 9b06 ldrlt r3, [sp, #24] + 8008436: 9a02 ldrlt r2, [sp, #8] + 8008438: 9f06 ldrge r7, [sp, #24] + 800843a: 1a9f sublt r7, r3, r2 + 800843c: bfac ite ge + 800843e: 9b02 ldrge r3, [sp, #8] + 8008440: 2300 movlt r3, #0 + 8008442: e73e b.n 80082c2 <_dtoa_r+0x74a> + 8008444: 9c0a ldr r4, [sp, #40] ; 0x28 + 8008446: 9f06 ldr r7, [sp, #24] + 8008448: 9e0b ldr r6, [sp, #44] ; 0x2c + 800844a: e745 b.n 80082d8 <_dtoa_r+0x760> + 800844c: 3fe00000 .word 0x3fe00000 + 8008450: 40240000 .word 0x40240000 + 8008454: 9a0a ldr r2, [sp, #40] ; 0x28 + 8008456: e76a b.n 800832e <_dtoa_r+0x7b6> + 8008458: 9b22 ldr r3, [sp, #136] ; 0x88 + 800845a: 2b01 cmp r3, #1 + 800845c: dc19 bgt.n 8008492 <_dtoa_r+0x91a> + 800845e: 9b04 ldr r3, [sp, #16] + 8008460: b9bb cbnz r3, 8008492 <_dtoa_r+0x91a> + 8008462: 9b05 ldr r3, [sp, #20] + 8008464: f3c3 0313 ubfx r3, r3, #0, #20 + 8008468: b99b cbnz r3, 8008492 <_dtoa_r+0x91a> + 800846a: 9b05 ldr r3, [sp, #20] + 800846c: f023 4300 bic.w r3, r3, #2147483648 ; 0x80000000 + 8008470: 0d1b lsrs r3, r3, #20 + 8008472: 051b lsls r3, r3, #20 + 8008474: b183 cbz r3, 8008498 <_dtoa_r+0x920> + 8008476: f04f 0801 mov.w r8, #1 + 800847a: 9b06 ldr r3, [sp, #24] + 800847c: 3301 adds r3, #1 + 800847e: 9306 str r3, [sp, #24] + 8008480: 9b09 ldr r3, [sp, #36] ; 0x24 + 8008482: 3301 adds r3, #1 + 8008484: 9309 str r3, [sp, #36] ; 0x24 + 8008486: 9b0e ldr r3, [sp, #56] ; 0x38 + 8008488: 2b00 cmp r3, #0 + 800848a: f47f af6a bne.w 8008362 <_dtoa_r+0x7ea> + 800848e: 2001 movs r0, #1 + 8008490: e76f b.n 8008372 <_dtoa_r+0x7fa> + 8008492: f04f 0800 mov.w r8, #0 + 8008496: e7f6 b.n 8008486 <_dtoa_r+0x90e> + 8008498: 4698 mov r8, r3 + 800849a: e7f4 b.n 8008486 <_dtoa_r+0x90e> + 800849c: f43f af7d beq.w 800839a <_dtoa_r+0x822> + 80084a0: 4618 mov r0, r3 + 80084a2: 301c adds r0, #28 + 80084a4: e772 b.n 800838c <_dtoa_r+0x814> + 80084a6: 9b02 ldr r3, [sp, #8] + 80084a8: 2b00 cmp r3, #0 + 80084aa: dc36 bgt.n 800851a <_dtoa_r+0x9a2> + 80084ac: 9b22 ldr r3, [sp, #136] ; 0x88 + 80084ae: 2b02 cmp r3, #2 + 80084b0: dd33 ble.n 800851a <_dtoa_r+0x9a2> + 80084b2: f8dd b008 ldr.w fp, [sp, #8] + 80084b6: f1bb 0f00 cmp.w fp, #0 + 80084ba: d10d bne.n 80084d8 <_dtoa_r+0x960> + 80084bc: 4621 mov r1, r4 + 80084be: 465b mov r3, fp + 80084c0: 2205 movs r2, #5 + 80084c2: 4628 mov r0, r5 + 80084c4: f000 f9d4 bl 8008870 <__multadd> + 80084c8: 4601 mov r1, r0 + 80084ca: 4604 mov r4, r0 + 80084cc: 4650 mov r0, sl + 80084ce: f000 fbe7 bl 8008ca0 <__mcmp> + 80084d2: 2800 cmp r0, #0 + 80084d4: f73f adb6 bgt.w 8008044 <_dtoa_r+0x4cc> + 80084d8: 9b23 ldr r3, [sp, #140] ; 0x8c + 80084da: 9f08 ldr r7, [sp, #32] + 80084dc: ea6f 0903 mvn.w r9, r3 + 80084e0: f04f 0800 mov.w r8, #0 + 80084e4: 4621 mov r1, r4 + 80084e6: 4628 mov r0, r5 + 80084e8: f000 f9a0 bl 800882c <_Bfree> + 80084ec: 2e00 cmp r6, #0 + 80084ee: f43f aea4 beq.w 800823a <_dtoa_r+0x6c2> + 80084f2: f1b8 0f00 cmp.w r8, #0 + 80084f6: d005 beq.n 8008504 <_dtoa_r+0x98c> + 80084f8: 45b0 cmp r8, r6 + 80084fa: d003 beq.n 8008504 <_dtoa_r+0x98c> + 80084fc: 4641 mov r1, r8 + 80084fe: 4628 mov r0, r5 + 8008500: f000 f994 bl 800882c <_Bfree> + 8008504: 4631 mov r1, r6 + 8008506: 4628 mov r0, r5 + 8008508: f000 f990 bl 800882c <_Bfree> + 800850c: e695 b.n 800823a <_dtoa_r+0x6c2> + 800850e: 2400 movs r4, #0 + 8008510: 4626 mov r6, r4 + 8008512: e7e1 b.n 80084d8 <_dtoa_r+0x960> + 8008514: 46c1 mov r9, r8 + 8008516: 4626 mov r6, r4 + 8008518: e594 b.n 8008044 <_dtoa_r+0x4cc> + 800851a: 9b0b ldr r3, [sp, #44] ; 0x2c + 800851c: f8dd b008 ldr.w fp, [sp, #8] + 8008520: 2b00 cmp r3, #0 + 8008522: f000 80fc beq.w 800871e <_dtoa_r+0xba6> + 8008526: 2f00 cmp r7, #0 + 8008528: dd05 ble.n 8008536 <_dtoa_r+0x9be> + 800852a: 4631 mov r1, r6 + 800852c: 463a mov r2, r7 + 800852e: 4628 mov r0, r5 + 8008530: f000 fb4a bl 8008bc8 <__lshift> + 8008534: 4606 mov r6, r0 + 8008536: f1b8 0f00 cmp.w r8, #0 + 800853a: d05c beq.n 80085f6 <_dtoa_r+0xa7e> + 800853c: 4628 mov r0, r5 + 800853e: 6871 ldr r1, [r6, #4] + 8008540: f000 f934 bl 80087ac <_Balloc> + 8008544: 4607 mov r7, r0 + 8008546: b928 cbnz r0, 8008554 <_dtoa_r+0x9dc> + 8008548: 4602 mov r2, r0 + 800854a: f240 21ea movw r1, #746 ; 0x2ea + 800854e: 4b7e ldr r3, [pc, #504] ; (8008748 <_dtoa_r+0xbd0>) + 8008550: f7ff bb26 b.w 8007ba0 <_dtoa_r+0x28> + 8008554: 6932 ldr r2, [r6, #16] + 8008556: f106 010c add.w r1, r6, #12 + 800855a: 3202 adds r2, #2 + 800855c: 0092 lsls r2, r2, #2 + 800855e: 300c adds r0, #12 + 8008560: f000 f90a bl 8008778 + 8008564: 2201 movs r2, #1 + 8008566: 4639 mov r1, r7 + 8008568: 4628 mov r0, r5 + 800856a: f000 fb2d bl 8008bc8 <__lshift> + 800856e: 46b0 mov r8, r6 + 8008570: 4606 mov r6, r0 + 8008572: 9b08 ldr r3, [sp, #32] + 8008574: 3301 adds r3, #1 + 8008576: 9302 str r3, [sp, #8] + 8008578: 9b08 ldr r3, [sp, #32] + 800857a: 445b add r3, fp + 800857c: 930a str r3, [sp, #40] ; 0x28 + 800857e: 9b04 ldr r3, [sp, #16] + 8008580: f003 0301 and.w r3, r3, #1 + 8008584: 9309 str r3, [sp, #36] ; 0x24 + 8008586: 9b02 ldr r3, [sp, #8] + 8008588: 4621 mov r1, r4 + 800858a: 4650 mov r0, sl + 800858c: f103 3bff add.w fp, r3, #4294967295 ; 0xffffffff + 8008590: f7ff fa62 bl 8007a58 + 8008594: 4603 mov r3, r0 + 8008596: 4641 mov r1, r8 + 8008598: 3330 adds r3, #48 ; 0x30 + 800859a: 9004 str r0, [sp, #16] + 800859c: 4650 mov r0, sl + 800859e: 930b str r3, [sp, #44] ; 0x2c + 80085a0: f000 fb7e bl 8008ca0 <__mcmp> + 80085a4: 4632 mov r2, r6 + 80085a6: 9006 str r0, [sp, #24] + 80085a8: 4621 mov r1, r4 + 80085aa: 4628 mov r0, r5 + 80085ac: f000 fb94 bl 8008cd8 <__mdiff> + 80085b0: 68c2 ldr r2, [r0, #12] + 80085b2: 4607 mov r7, r0 + 80085b4: 9b0b ldr r3, [sp, #44] ; 0x2c + 80085b6: bb02 cbnz r2, 80085fa <_dtoa_r+0xa82> + 80085b8: 4601 mov r1, r0 + 80085ba: 4650 mov r0, sl + 80085bc: f000 fb70 bl 8008ca0 <__mcmp> + 80085c0: 4602 mov r2, r0 + 80085c2: 9b0b ldr r3, [sp, #44] ; 0x2c + 80085c4: 4639 mov r1, r7 80085c6: 4628 mov r0, r5 - 80085c8: f000 fc06 bl 8008dd8 <__lshift> - 80085cc: 4604 mov r4, r0 - 80085ce: 9b0f ldr r3, [sp, #60] ; 0x3c - 80085d0: 2b00 cmp r3, #0 - 80085d2: d070 beq.n 80086b6 <_dtoa_r+0x92e> - 80085d4: 4621 mov r1, r4 - 80085d6: 4650 mov r0, sl - 80085d8: f000 fc6a bl 8008eb0 <__mcmp> - 80085dc: 2800 cmp r0, #0 - 80085de: da6a bge.n 80086b6 <_dtoa_r+0x92e> - 80085e0: 2300 movs r3, #0 - 80085e2: 4651 mov r1, sl - 80085e4: 220a movs r2, #10 - 80085e6: 4628 mov r0, r5 - 80085e8: f000 fa4a bl 8008a80 <__multadd> - 80085ec: 9b0b ldr r3, [sp, #44] ; 0x2c - 80085ee: 4682 mov sl, r0 - 80085f0: f109 39ff add.w r9, r9, #4294967295 ; 0xffffffff - 80085f4: 2b00 cmp r3, #0 - 80085f6: f000 8193 beq.w 8008920 <_dtoa_r+0xb98> - 80085fa: 4631 mov r1, r6 - 80085fc: 2300 movs r3, #0 - 80085fe: 220a movs r2, #10 - 8008600: 4628 mov r0, r5 - 8008602: f000 fa3d bl 8008a80 <__multadd> - 8008606: f1bb 0f00 cmp.w fp, #0 - 800860a: 4606 mov r6, r0 - 800860c: f300 8093 bgt.w 8008736 <_dtoa_r+0x9ae> - 8008610: 9b22 ldr r3, [sp, #136] ; 0x88 - 8008612: 2b02 cmp r3, #2 - 8008614: dc57 bgt.n 80086c6 <_dtoa_r+0x93e> - 8008616: e08e b.n 8008736 <_dtoa_r+0x9ae> - 8008618: 9b16 ldr r3, [sp, #88] ; 0x58 - 800861a: f1c3 0336 rsb r3, r3, #54 ; 0x36 - 800861e: e756 b.n 80084ce <_dtoa_r+0x746> - 8008620: 9b02 ldr r3, [sp, #8] - 8008622: 1e5c subs r4, r3, #1 - 8008624: 9b0a ldr r3, [sp, #40] ; 0x28 - 8008626: 42a3 cmp r3, r4 - 8008628: bfb7 itett lt - 800862a: 9b0a ldrlt r3, [sp, #40] ; 0x28 - 800862c: 1b1c subge r4, r3, r4 - 800862e: 1ae2 sublt r2, r4, r3 - 8008630: 9b0e ldrlt r3, [sp, #56] ; 0x38 - 8008632: bfbe ittt lt - 8008634: 940a strlt r4, [sp, #40] ; 0x28 - 8008636: 189b addlt r3, r3, r2 - 8008638: 930e strlt r3, [sp, #56] ; 0x38 - 800863a: 9b02 ldr r3, [sp, #8] - 800863c: bfb8 it lt - 800863e: 2400 movlt r4, #0 - 8008640: 2b00 cmp r3, #0 - 8008642: bfbb ittet lt - 8008644: 9b06 ldrlt r3, [sp, #24] - 8008646: 9a02 ldrlt r2, [sp, #8] - 8008648: 9f06 ldrge r7, [sp, #24] - 800864a: 1a9f sublt r7, r3, r2 - 800864c: bfac ite ge - 800864e: 9b02 ldrge r3, [sp, #8] - 8008650: 2300 movlt r3, #0 - 8008652: e73e b.n 80084d2 <_dtoa_r+0x74a> - 8008654: 9c0a ldr r4, [sp, #40] ; 0x28 - 8008656: 9f06 ldr r7, [sp, #24] - 8008658: 9e0b ldr r6, [sp, #44] ; 0x2c - 800865a: e745 b.n 80084e8 <_dtoa_r+0x760> - 800865c: 3fe00000 .word 0x3fe00000 - 8008660: 40240000 .word 0x40240000 - 8008664: 9a0a ldr r2, [sp, #40] ; 0x28 - 8008666: e76a b.n 800853e <_dtoa_r+0x7b6> - 8008668: 9b22 ldr r3, [sp, #136] ; 0x88 - 800866a: 2b01 cmp r3, #1 - 800866c: dc19 bgt.n 80086a2 <_dtoa_r+0x91a> - 800866e: 9b04 ldr r3, [sp, #16] - 8008670: b9bb cbnz r3, 80086a2 <_dtoa_r+0x91a> - 8008672: 9b05 ldr r3, [sp, #20] - 8008674: f3c3 0313 ubfx r3, r3, #0, #20 - 8008678: b99b cbnz r3, 80086a2 <_dtoa_r+0x91a> - 800867a: 9b05 ldr r3, [sp, #20] - 800867c: f023 4300 bic.w r3, r3, #2147483648 ; 0x80000000 - 8008680: 0d1b lsrs r3, r3, #20 - 8008682: 051b lsls r3, r3, #20 - 8008684: b183 cbz r3, 80086a8 <_dtoa_r+0x920> - 8008686: f04f 0801 mov.w r8, #1 - 800868a: 9b06 ldr r3, [sp, #24] - 800868c: 3301 adds r3, #1 - 800868e: 9306 str r3, [sp, #24] - 8008690: 9b09 ldr r3, [sp, #36] ; 0x24 - 8008692: 3301 adds r3, #1 - 8008694: 9309 str r3, [sp, #36] ; 0x24 - 8008696: 9b0e ldr r3, [sp, #56] ; 0x38 - 8008698: 2b00 cmp r3, #0 - 800869a: f47f af6a bne.w 8008572 <_dtoa_r+0x7ea> - 800869e: 2001 movs r0, #1 - 80086a0: e76f b.n 8008582 <_dtoa_r+0x7fa> - 80086a2: f04f 0800 mov.w r8, #0 - 80086a6: e7f6 b.n 8008696 <_dtoa_r+0x90e> - 80086a8: 4698 mov r8, r3 - 80086aa: e7f4 b.n 8008696 <_dtoa_r+0x90e> - 80086ac: f43f af7d beq.w 80085aa <_dtoa_r+0x822> - 80086b0: 4618 mov r0, r3 - 80086b2: 301c adds r0, #28 - 80086b4: e772 b.n 800859c <_dtoa_r+0x814> - 80086b6: 9b02 ldr r3, [sp, #8] - 80086b8: 2b00 cmp r3, #0 - 80086ba: dc36 bgt.n 800872a <_dtoa_r+0x9a2> - 80086bc: 9b22 ldr r3, [sp, #136] ; 0x88 - 80086be: 2b02 cmp r3, #2 - 80086c0: dd33 ble.n 800872a <_dtoa_r+0x9a2> - 80086c2: f8dd b008 ldr.w fp, [sp, #8] - 80086c6: f1bb 0f00 cmp.w fp, #0 - 80086ca: d10d bne.n 80086e8 <_dtoa_r+0x960> - 80086cc: 4621 mov r1, r4 - 80086ce: 465b mov r3, fp - 80086d0: 2205 movs r2, #5 - 80086d2: 4628 mov r0, r5 - 80086d4: f000 f9d4 bl 8008a80 <__multadd> - 80086d8: 4601 mov r1, r0 - 80086da: 4604 mov r4, r0 - 80086dc: 4650 mov r0, sl - 80086de: f000 fbe7 bl 8008eb0 <__mcmp> - 80086e2: 2800 cmp r0, #0 - 80086e4: f73f adb6 bgt.w 8008254 <_dtoa_r+0x4cc> - 80086e8: 9b23 ldr r3, [sp, #140] ; 0x8c - 80086ea: 9f08 ldr r7, [sp, #32] - 80086ec: ea6f 0903 mvn.w r9, r3 - 80086f0: f04f 0800 mov.w r8, #0 - 80086f4: 4621 mov r1, r4 - 80086f6: 4628 mov r0, r5 - 80086f8: f000 f9a0 bl 8008a3c <_Bfree> - 80086fc: 2e00 cmp r6, #0 - 80086fe: f43f aea4 beq.w 800844a <_dtoa_r+0x6c2> - 8008702: f1b8 0f00 cmp.w r8, #0 - 8008706: d005 beq.n 8008714 <_dtoa_r+0x98c> - 8008708: 45b0 cmp r8, r6 - 800870a: d003 beq.n 8008714 <_dtoa_r+0x98c> - 800870c: 4641 mov r1, r8 - 800870e: 4628 mov r0, r5 - 8008710: f000 f994 bl 8008a3c <_Bfree> - 8008714: 4631 mov r1, r6 - 8008716: 4628 mov r0, r5 - 8008718: f000 f990 bl 8008a3c <_Bfree> - 800871c: e695 b.n 800844a <_dtoa_r+0x6c2> - 800871e: 2400 movs r4, #0 - 8008720: 4626 mov r6, r4 - 8008722: e7e1 b.n 80086e8 <_dtoa_r+0x960> - 8008724: 46c1 mov r9, r8 - 8008726: 4626 mov r6, r4 - 8008728: e594 b.n 8008254 <_dtoa_r+0x4cc> - 800872a: 9b0b ldr r3, [sp, #44] ; 0x2c - 800872c: f8dd b008 ldr.w fp, [sp, #8] - 8008730: 2b00 cmp r3, #0 - 8008732: f000 80fc beq.w 800892e <_dtoa_r+0xba6> - 8008736: 2f00 cmp r7, #0 - 8008738: dd05 ble.n 8008746 <_dtoa_r+0x9be> - 800873a: 4631 mov r1, r6 - 800873c: 463a mov r2, r7 + 80085c8: e9cd 320b strd r3, r2, [sp, #44] ; 0x2c + 80085cc: f000 f92e bl 800882c <_Bfree> + 80085d0: 9b22 ldr r3, [sp, #136] ; 0x88 + 80085d2: 9a0c ldr r2, [sp, #48] ; 0x30 + 80085d4: 9f02 ldr r7, [sp, #8] + 80085d6: ea43 0102 orr.w r1, r3, r2 + 80085da: 9b09 ldr r3, [sp, #36] ; 0x24 + 80085dc: 430b orrs r3, r1 + 80085de: 9b0b ldr r3, [sp, #44] ; 0x2c + 80085e0: d10d bne.n 80085fe <_dtoa_r+0xa86> + 80085e2: 2b39 cmp r3, #57 ; 0x39 + 80085e4: d027 beq.n 8008636 <_dtoa_r+0xabe> + 80085e6: 9a06 ldr r2, [sp, #24] + 80085e8: 2a00 cmp r2, #0 + 80085ea: dd01 ble.n 80085f0 <_dtoa_r+0xa78> + 80085ec: 9b04 ldr r3, [sp, #16] + 80085ee: 3331 adds r3, #49 ; 0x31 + 80085f0: f88b 3000 strb.w r3, [fp] + 80085f4: e776 b.n 80084e4 <_dtoa_r+0x96c> + 80085f6: 4630 mov r0, r6 + 80085f8: e7b9 b.n 800856e <_dtoa_r+0x9f6> + 80085fa: 2201 movs r2, #1 + 80085fc: e7e2 b.n 80085c4 <_dtoa_r+0xa4c> + 80085fe: 9906 ldr r1, [sp, #24] + 8008600: 2900 cmp r1, #0 + 8008602: db04 blt.n 800860e <_dtoa_r+0xa96> + 8008604: 9822 ldr r0, [sp, #136] ; 0x88 + 8008606: 4301 orrs r1, r0 + 8008608: 9809 ldr r0, [sp, #36] ; 0x24 + 800860a: 4301 orrs r1, r0 + 800860c: d120 bne.n 8008650 <_dtoa_r+0xad8> + 800860e: 2a00 cmp r2, #0 + 8008610: ddee ble.n 80085f0 <_dtoa_r+0xa78> + 8008612: 4651 mov r1, sl + 8008614: 2201 movs r2, #1 + 8008616: 4628 mov r0, r5 + 8008618: 9302 str r3, [sp, #8] + 800861a: f000 fad5 bl 8008bc8 <__lshift> + 800861e: 4621 mov r1, r4 + 8008620: 4682 mov sl, r0 + 8008622: f000 fb3d bl 8008ca0 <__mcmp> + 8008626: 2800 cmp r0, #0 + 8008628: 9b02 ldr r3, [sp, #8] + 800862a: dc02 bgt.n 8008632 <_dtoa_r+0xaba> + 800862c: d1e0 bne.n 80085f0 <_dtoa_r+0xa78> + 800862e: 07da lsls r2, r3, #31 + 8008630: d5de bpl.n 80085f0 <_dtoa_r+0xa78> + 8008632: 2b39 cmp r3, #57 ; 0x39 + 8008634: d1da bne.n 80085ec <_dtoa_r+0xa74> + 8008636: 2339 movs r3, #57 ; 0x39 + 8008638: f88b 3000 strb.w r3, [fp] + 800863c: 463b mov r3, r7 + 800863e: 461f mov r7, r3 + 8008640: f817 2c01 ldrb.w r2, [r7, #-1] + 8008644: 3b01 subs r3, #1 + 8008646: 2a39 cmp r2, #57 ; 0x39 + 8008648: d050 beq.n 80086ec <_dtoa_r+0xb74> + 800864a: 3201 adds r2, #1 + 800864c: 701a strb r2, [r3, #0] + 800864e: e749 b.n 80084e4 <_dtoa_r+0x96c> + 8008650: 2a00 cmp r2, #0 + 8008652: dd03 ble.n 800865c <_dtoa_r+0xae4> + 8008654: 2b39 cmp r3, #57 ; 0x39 + 8008656: d0ee beq.n 8008636 <_dtoa_r+0xabe> + 8008658: 3301 adds r3, #1 + 800865a: e7c9 b.n 80085f0 <_dtoa_r+0xa78> + 800865c: 9a02 ldr r2, [sp, #8] + 800865e: 990a ldr r1, [sp, #40] ; 0x28 + 8008660: f802 3c01 strb.w r3, [r2, #-1] + 8008664: 428a cmp r2, r1 + 8008666: d02a beq.n 80086be <_dtoa_r+0xb46> + 8008668: 4651 mov r1, sl + 800866a: 2300 movs r3, #0 + 800866c: 220a movs r2, #10 + 800866e: 4628 mov r0, r5 + 8008670: f000 f8fe bl 8008870 <__multadd> + 8008674: 45b0 cmp r8, r6 + 8008676: 4682 mov sl, r0 + 8008678: f04f 0300 mov.w r3, #0 + 800867c: f04f 020a mov.w r2, #10 + 8008680: 4641 mov r1, r8 + 8008682: 4628 mov r0, r5 + 8008684: d107 bne.n 8008696 <_dtoa_r+0xb1e> + 8008686: f000 f8f3 bl 8008870 <__multadd> + 800868a: 4680 mov r8, r0 + 800868c: 4606 mov r6, r0 + 800868e: 9b02 ldr r3, [sp, #8] + 8008690: 3301 adds r3, #1 + 8008692: 9302 str r3, [sp, #8] + 8008694: e777 b.n 8008586 <_dtoa_r+0xa0e> + 8008696: f000 f8eb bl 8008870 <__multadd> + 800869a: 4631 mov r1, r6 + 800869c: 4680 mov r8, r0 + 800869e: 2300 movs r3, #0 + 80086a0: 220a movs r2, #10 + 80086a2: 4628 mov r0, r5 + 80086a4: f000 f8e4 bl 8008870 <__multadd> + 80086a8: 4606 mov r6, r0 + 80086aa: e7f0 b.n 800868e <_dtoa_r+0xb16> + 80086ac: f1bb 0f00 cmp.w fp, #0 + 80086b0: bfcc ite gt + 80086b2: 465f movgt r7, fp + 80086b4: 2701 movle r7, #1 + 80086b6: f04f 0800 mov.w r8, #0 + 80086ba: 9a08 ldr r2, [sp, #32] + 80086bc: 4417 add r7, r2 + 80086be: 4651 mov r1, sl + 80086c0: 2201 movs r2, #1 + 80086c2: 4628 mov r0, r5 + 80086c4: 9302 str r3, [sp, #8] + 80086c6: f000 fa7f bl 8008bc8 <__lshift> + 80086ca: 4621 mov r1, r4 + 80086cc: 4682 mov sl, r0 + 80086ce: f000 fae7 bl 8008ca0 <__mcmp> + 80086d2: 2800 cmp r0, #0 + 80086d4: dcb2 bgt.n 800863c <_dtoa_r+0xac4> + 80086d6: d102 bne.n 80086de <_dtoa_r+0xb66> + 80086d8: 9b02 ldr r3, [sp, #8] + 80086da: 07db lsls r3, r3, #31 + 80086dc: d4ae bmi.n 800863c <_dtoa_r+0xac4> + 80086de: 463b mov r3, r7 + 80086e0: 461f mov r7, r3 + 80086e2: f813 2d01 ldrb.w r2, [r3, #-1]! + 80086e6: 2a30 cmp r2, #48 ; 0x30 + 80086e8: d0fa beq.n 80086e0 <_dtoa_r+0xb68> + 80086ea: e6fb b.n 80084e4 <_dtoa_r+0x96c> + 80086ec: 9a08 ldr r2, [sp, #32] + 80086ee: 429a cmp r2, r3 + 80086f0: d1a5 bne.n 800863e <_dtoa_r+0xac6> + 80086f2: 2331 movs r3, #49 ; 0x31 + 80086f4: f109 0901 add.w r9, r9, #1 + 80086f8: 7013 strb r3, [r2, #0] + 80086fa: e6f3 b.n 80084e4 <_dtoa_r+0x96c> + 80086fc: 4b13 ldr r3, [pc, #76] ; (800874c <_dtoa_r+0xbd4>) + 80086fe: f7ff baa7 b.w 8007c50 <_dtoa_r+0xd8> + 8008702: 9b26 ldr r3, [sp, #152] ; 0x98 + 8008704: 2b00 cmp r3, #0 + 8008706: f47f aa80 bne.w 8007c0a <_dtoa_r+0x92> + 800870a: 4b11 ldr r3, [pc, #68] ; (8008750 <_dtoa_r+0xbd8>) + 800870c: f7ff baa0 b.w 8007c50 <_dtoa_r+0xd8> + 8008710: f1bb 0f00 cmp.w fp, #0 + 8008714: dc03 bgt.n 800871e <_dtoa_r+0xba6> + 8008716: 9b22 ldr r3, [sp, #136] ; 0x88 + 8008718: 2b02 cmp r3, #2 + 800871a: f73f aecc bgt.w 80084b6 <_dtoa_r+0x93e> + 800871e: 9f08 ldr r7, [sp, #32] + 8008720: 4621 mov r1, r4 + 8008722: 4650 mov r0, sl + 8008724: f7ff f998 bl 8007a58 + 8008728: 9a08 ldr r2, [sp, #32] + 800872a: f100 0330 add.w r3, r0, #48 ; 0x30 + 800872e: f807 3b01 strb.w r3, [r7], #1 + 8008732: 1aba subs r2, r7, r2 + 8008734: 4593 cmp fp, r2 + 8008736: ddb9 ble.n 80086ac <_dtoa_r+0xb34> + 8008738: 4651 mov r1, sl + 800873a: 2300 movs r3, #0 + 800873c: 220a movs r2, #10 800873e: 4628 mov r0, r5 - 8008740: f000 fb4a bl 8008dd8 <__lshift> - 8008744: 4606 mov r6, r0 - 8008746: f1b8 0f00 cmp.w r8, #0 - 800874a: d05c beq.n 8008806 <_dtoa_r+0xa7e> - 800874c: 4628 mov r0, r5 - 800874e: 6871 ldr r1, [r6, #4] - 8008750: f000 f934 bl 80089bc <_Balloc> - 8008754: 4607 mov r7, r0 - 8008756: b928 cbnz r0, 8008764 <_dtoa_r+0x9dc> - 8008758: 4602 mov r2, r0 - 800875a: f240 21ea movw r1, #746 ; 0x2ea - 800875e: 4b7e ldr r3, [pc, #504] ; (8008958 <_dtoa_r+0xbd0>) - 8008760: f7ff bb26 b.w 8007db0 <_dtoa_r+0x28> - 8008764: 6932 ldr r2, [r6, #16] - 8008766: f106 010c add.w r1, r6, #12 - 800876a: 3202 adds r2, #2 - 800876c: 0092 lsls r2, r2, #2 - 800876e: 300c adds r0, #12 - 8008770: f000 f90a bl 8008988 - 8008774: 2201 movs r2, #1 - 8008776: 4639 mov r1, r7 - 8008778: 4628 mov r0, r5 - 800877a: f000 fb2d bl 8008dd8 <__lshift> - 800877e: 46b0 mov r8, r6 - 8008780: 4606 mov r6, r0 - 8008782: 9b08 ldr r3, [sp, #32] - 8008784: 3301 adds r3, #1 - 8008786: 9302 str r3, [sp, #8] - 8008788: 9b08 ldr r3, [sp, #32] - 800878a: 445b add r3, fp - 800878c: 930a str r3, [sp, #40] ; 0x28 - 800878e: 9b04 ldr r3, [sp, #16] - 8008790: f003 0301 and.w r3, r3, #1 - 8008794: 9309 str r3, [sp, #36] ; 0x24 - 8008796: 9b02 ldr r3, [sp, #8] - 8008798: 4621 mov r1, r4 - 800879a: 4650 mov r0, sl - 800879c: f103 3bff add.w fp, r3, #4294967295 ; 0xffffffff - 80087a0: f7ff fa64 bl 8007c6c - 80087a4: 4603 mov r3, r0 - 80087a6: 4641 mov r1, r8 - 80087a8: 3330 adds r3, #48 ; 0x30 - 80087aa: 9004 str r0, [sp, #16] - 80087ac: 4650 mov r0, sl - 80087ae: 930b str r3, [sp, #44] ; 0x2c - 80087b0: f000 fb7e bl 8008eb0 <__mcmp> - 80087b4: 4632 mov r2, r6 - 80087b6: 9006 str r0, [sp, #24] - 80087b8: 4621 mov r1, r4 - 80087ba: 4628 mov r0, r5 - 80087bc: f000 fb94 bl 8008ee8 <__mdiff> - 80087c0: 68c2 ldr r2, [r0, #12] - 80087c2: 4607 mov r7, r0 - 80087c4: 9b0b ldr r3, [sp, #44] ; 0x2c - 80087c6: bb02 cbnz r2, 800880a <_dtoa_r+0xa82> - 80087c8: 4601 mov r1, r0 - 80087ca: 4650 mov r0, sl - 80087cc: f000 fb70 bl 8008eb0 <__mcmp> - 80087d0: 4602 mov r2, r0 - 80087d2: 9b0b ldr r3, [sp, #44] ; 0x2c - 80087d4: 4639 mov r1, r7 - 80087d6: 4628 mov r0, r5 - 80087d8: e9cd 320b strd r3, r2, [sp, #44] ; 0x2c - 80087dc: f000 f92e bl 8008a3c <_Bfree> - 80087e0: 9b22 ldr r3, [sp, #136] ; 0x88 - 80087e2: 9a0c ldr r2, [sp, #48] ; 0x30 - 80087e4: 9f02 ldr r7, [sp, #8] - 80087e6: ea43 0102 orr.w r1, r3, r2 - 80087ea: 9b09 ldr r3, [sp, #36] ; 0x24 - 80087ec: 430b orrs r3, r1 - 80087ee: 9b0b ldr r3, [sp, #44] ; 0x2c - 80087f0: d10d bne.n 800880e <_dtoa_r+0xa86> - 80087f2: 2b39 cmp r3, #57 ; 0x39 - 80087f4: d027 beq.n 8008846 <_dtoa_r+0xabe> - 80087f6: 9a06 ldr r2, [sp, #24] - 80087f8: 2a00 cmp r2, #0 - 80087fa: dd01 ble.n 8008800 <_dtoa_r+0xa78> - 80087fc: 9b04 ldr r3, [sp, #16] - 80087fe: 3331 adds r3, #49 ; 0x31 - 8008800: f88b 3000 strb.w r3, [fp] - 8008804: e776 b.n 80086f4 <_dtoa_r+0x96c> - 8008806: 4630 mov r0, r6 - 8008808: e7b9 b.n 800877e <_dtoa_r+0x9f6> - 800880a: 2201 movs r2, #1 - 800880c: e7e2 b.n 80087d4 <_dtoa_r+0xa4c> - 800880e: 9906 ldr r1, [sp, #24] - 8008810: 2900 cmp r1, #0 - 8008812: db04 blt.n 800881e <_dtoa_r+0xa96> - 8008814: 9822 ldr r0, [sp, #136] ; 0x88 - 8008816: 4301 orrs r1, r0 - 8008818: 9809 ldr r0, [sp, #36] ; 0x24 - 800881a: 4301 orrs r1, r0 - 800881c: d120 bne.n 8008860 <_dtoa_r+0xad8> - 800881e: 2a00 cmp r2, #0 - 8008820: ddee ble.n 8008800 <_dtoa_r+0xa78> - 8008822: 4651 mov r1, sl - 8008824: 2201 movs r2, #1 - 8008826: 4628 mov r0, r5 - 8008828: 9302 str r3, [sp, #8] - 800882a: f000 fad5 bl 8008dd8 <__lshift> - 800882e: 4621 mov r1, r4 - 8008830: 4682 mov sl, r0 - 8008832: f000 fb3d bl 8008eb0 <__mcmp> - 8008836: 2800 cmp r0, #0 - 8008838: 9b02 ldr r3, [sp, #8] - 800883a: dc02 bgt.n 8008842 <_dtoa_r+0xaba> - 800883c: d1e0 bne.n 8008800 <_dtoa_r+0xa78> - 800883e: 07da lsls r2, r3, #31 - 8008840: d5de bpl.n 8008800 <_dtoa_r+0xa78> - 8008842: 2b39 cmp r3, #57 ; 0x39 - 8008844: d1da bne.n 80087fc <_dtoa_r+0xa74> - 8008846: 2339 movs r3, #57 ; 0x39 - 8008848: f88b 3000 strb.w r3, [fp] - 800884c: 463b mov r3, r7 - 800884e: 461f mov r7, r3 - 8008850: f817 2c01 ldrb.w r2, [r7, #-1] - 8008854: 3b01 subs r3, #1 - 8008856: 2a39 cmp r2, #57 ; 0x39 - 8008858: d050 beq.n 80088fc <_dtoa_r+0xb74> - 800885a: 3201 adds r2, #1 - 800885c: 701a strb r2, [r3, #0] - 800885e: e749 b.n 80086f4 <_dtoa_r+0x96c> - 8008860: 2a00 cmp r2, #0 - 8008862: dd03 ble.n 800886c <_dtoa_r+0xae4> - 8008864: 2b39 cmp r3, #57 ; 0x39 - 8008866: d0ee beq.n 8008846 <_dtoa_r+0xabe> - 8008868: 3301 adds r3, #1 - 800886a: e7c9 b.n 8008800 <_dtoa_r+0xa78> - 800886c: 9a02 ldr r2, [sp, #8] - 800886e: 990a ldr r1, [sp, #40] ; 0x28 - 8008870: f802 3c01 strb.w r3, [r2, #-1] - 8008874: 428a cmp r2, r1 - 8008876: d02a beq.n 80088ce <_dtoa_r+0xb46> - 8008878: 4651 mov r1, sl - 800887a: 2300 movs r3, #0 - 800887c: 220a movs r2, #10 - 800887e: 4628 mov r0, r5 - 8008880: f000 f8fe bl 8008a80 <__multadd> - 8008884: 45b0 cmp r8, r6 - 8008886: 4682 mov sl, r0 - 8008888: f04f 0300 mov.w r3, #0 - 800888c: f04f 020a mov.w r2, #10 - 8008890: 4641 mov r1, r8 - 8008892: 4628 mov r0, r5 - 8008894: d107 bne.n 80088a6 <_dtoa_r+0xb1e> - 8008896: f000 f8f3 bl 8008a80 <__multadd> - 800889a: 4680 mov r8, r0 - 800889c: 4606 mov r6, r0 - 800889e: 9b02 ldr r3, [sp, #8] - 80088a0: 3301 adds r3, #1 - 80088a2: 9302 str r3, [sp, #8] - 80088a4: e777 b.n 8008796 <_dtoa_r+0xa0e> - 80088a6: f000 f8eb bl 8008a80 <__multadd> - 80088aa: 4631 mov r1, r6 - 80088ac: 4680 mov r8, r0 - 80088ae: 2300 movs r3, #0 - 80088b0: 220a movs r2, #10 - 80088b2: 4628 mov r0, r5 - 80088b4: f000 f8e4 bl 8008a80 <__multadd> - 80088b8: 4606 mov r6, r0 - 80088ba: e7f0 b.n 800889e <_dtoa_r+0xb16> - 80088bc: f1bb 0f00 cmp.w fp, #0 - 80088c0: bfcc ite gt - 80088c2: 465f movgt r7, fp - 80088c4: 2701 movle r7, #1 - 80088c6: f04f 0800 mov.w r8, #0 - 80088ca: 9a08 ldr r2, [sp, #32] - 80088cc: 4417 add r7, r2 - 80088ce: 4651 mov r1, sl - 80088d0: 2201 movs r2, #1 - 80088d2: 4628 mov r0, r5 - 80088d4: 9302 str r3, [sp, #8] - 80088d6: f000 fa7f bl 8008dd8 <__lshift> - 80088da: 4621 mov r1, r4 - 80088dc: 4682 mov sl, r0 - 80088de: f000 fae7 bl 8008eb0 <__mcmp> - 80088e2: 2800 cmp r0, #0 - 80088e4: dcb2 bgt.n 800884c <_dtoa_r+0xac4> - 80088e6: d102 bne.n 80088ee <_dtoa_r+0xb66> - 80088e8: 9b02 ldr r3, [sp, #8] - 80088ea: 07db lsls r3, r3, #31 - 80088ec: d4ae bmi.n 800884c <_dtoa_r+0xac4> - 80088ee: 463b mov r3, r7 - 80088f0: 461f mov r7, r3 - 80088f2: f813 2d01 ldrb.w r2, [r3, #-1]! - 80088f6: 2a30 cmp r2, #48 ; 0x30 - 80088f8: d0fa beq.n 80088f0 <_dtoa_r+0xb68> - 80088fa: e6fb b.n 80086f4 <_dtoa_r+0x96c> - 80088fc: 9a08 ldr r2, [sp, #32] - 80088fe: 429a cmp r2, r3 - 8008900: d1a5 bne.n 800884e <_dtoa_r+0xac6> - 8008902: 2331 movs r3, #49 ; 0x31 - 8008904: f109 0901 add.w r9, r9, #1 - 8008908: 7013 strb r3, [r2, #0] - 800890a: e6f3 b.n 80086f4 <_dtoa_r+0x96c> - 800890c: 4b13 ldr r3, [pc, #76] ; (800895c <_dtoa_r+0xbd4>) - 800890e: f7ff baa7 b.w 8007e60 <_dtoa_r+0xd8> - 8008912: 9b26 ldr r3, [sp, #152] ; 0x98 - 8008914: 2b00 cmp r3, #0 - 8008916: f47f aa80 bne.w 8007e1a <_dtoa_r+0x92> - 800891a: 4b11 ldr r3, [pc, #68] ; (8008960 <_dtoa_r+0xbd8>) - 800891c: f7ff baa0 b.w 8007e60 <_dtoa_r+0xd8> - 8008920: f1bb 0f00 cmp.w fp, #0 - 8008924: dc03 bgt.n 800892e <_dtoa_r+0xba6> - 8008926: 9b22 ldr r3, [sp, #136] ; 0x88 - 8008928: 2b02 cmp r3, #2 - 800892a: f73f aecc bgt.w 80086c6 <_dtoa_r+0x93e> - 800892e: 9f08 ldr r7, [sp, #32] - 8008930: 4621 mov r1, r4 - 8008932: 4650 mov r0, sl - 8008934: f7ff f99a bl 8007c6c - 8008938: 9a08 ldr r2, [sp, #32] - 800893a: f100 0330 add.w r3, r0, #48 ; 0x30 - 800893e: f807 3b01 strb.w r3, [r7], #1 - 8008942: 1aba subs r2, r7, r2 - 8008944: 4593 cmp fp, r2 - 8008946: ddb9 ble.n 80088bc <_dtoa_r+0xb34> - 8008948: 4651 mov r1, sl - 800894a: 2300 movs r3, #0 - 800894c: 220a movs r2, #10 - 800894e: 4628 mov r0, r5 - 8008950: f000 f896 bl 8008a80 <__multadd> - 8008954: 4682 mov sl, r0 - 8008956: e7eb b.n 8008930 <_dtoa_r+0xba8> - 8008958: 0800af93 .word 0x0800af93 - 800895c: 0800aeec .word 0x0800aeec - 8008960: 0800af10 .word 0x0800af10 + 8008740: f000 f896 bl 8008870 <__multadd> + 8008744: 4682 mov sl, r0 + 8008746: e7eb b.n 8008720 <_dtoa_r+0xba8> + 8008748: 0800a92f .word 0x0800a92f + 800874c: 0800a888 .word 0x0800a888 + 8008750: 0800a8ac .word 0x0800a8ac -08008964 <_localeconv_r>: - 8008964: 4800 ldr r0, [pc, #0] ; (8008968 <_localeconv_r+0x4>) - 8008966: 4770 bx lr - 8008968: 20000160 .word 0x20000160 +08008754 <_localeconv_r>: + 8008754: 4800 ldr r0, [pc, #0] ; (8008758 <_localeconv_r+0x4>) + 8008756: 4770 bx lr + 8008758: 20000160 .word 0x20000160 -0800896c : - 800896c: 4603 mov r3, r0 - 800896e: b510 push {r4, lr} - 8008970: b2c9 uxtb r1, r1 - 8008972: 4402 add r2, r0 - 8008974: 4293 cmp r3, r2 - 8008976: 4618 mov r0, r3 - 8008978: d101 bne.n 800897e - 800897a: 2000 movs r0, #0 - 800897c: e003 b.n 8008986 - 800897e: 7804 ldrb r4, [r0, #0] - 8008980: 3301 adds r3, #1 - 8008982: 428c cmp r4, r1 - 8008984: d1f6 bne.n 8008974 - 8008986: bd10 pop {r4, pc} +0800875c : + 800875c: 4603 mov r3, r0 + 800875e: b510 push {r4, lr} + 8008760: b2c9 uxtb r1, r1 + 8008762: 4402 add r2, r0 + 8008764: 4293 cmp r3, r2 + 8008766: 4618 mov r0, r3 + 8008768: d101 bne.n 800876e + 800876a: 2000 movs r0, #0 + 800876c: e003 b.n 8008776 + 800876e: 7804 ldrb r4, [r0, #0] + 8008770: 3301 adds r3, #1 + 8008772: 428c cmp r4, r1 + 8008774: d1f6 bne.n 8008764 + 8008776: bd10 pop {r4, pc} -08008988 : - 8008988: 440a add r2, r1 - 800898a: 4291 cmp r1, r2 - 800898c: f100 33ff add.w r3, r0, #4294967295 ; 0xffffffff - 8008990: d100 bne.n 8008994 - 8008992: 4770 bx lr - 8008994: b510 push {r4, lr} - 8008996: f811 4b01 ldrb.w r4, [r1], #1 - 800899a: 4291 cmp r1, r2 - 800899c: f803 4f01 strb.w r4, [r3, #1]! - 80089a0: d1f9 bne.n 8008996 - 80089a2: bd10 pop {r4, pc} +08008778 : + 8008778: 440a add r2, r1 + 800877a: 4291 cmp r1, r2 + 800877c: f100 33ff add.w r3, r0, #4294967295 ; 0xffffffff + 8008780: d100 bne.n 8008784 + 8008782: 4770 bx lr + 8008784: b510 push {r4, lr} + 8008786: f811 4b01 ldrb.w r4, [r1], #1 + 800878a: 4291 cmp r1, r2 + 800878c: f803 4f01 strb.w r4, [r3, #1]! + 8008790: d1f9 bne.n 8008786 + 8008792: bd10 pop {r4, pc} -080089a4 <__malloc_lock>: - 80089a4: 4801 ldr r0, [pc, #4] ; (80089ac <__malloc_lock+0x8>) - 80089a6: f000 bd26 b.w 80093f6 <__retarget_lock_acquire_recursive> - 80089aa: bf00 nop - 80089ac: 200024a4 .word 0x200024a4 +08008794 <__malloc_lock>: + 8008794: 4801 ldr r0, [pc, #4] ; (800879c <__malloc_lock+0x8>) + 8008796: f000 bd26 b.w 80091e6 <__retarget_lock_acquire_recursive> + 800879a: bf00 nop + 800879c: 200024f4 .word 0x200024f4 -080089b0 <__malloc_unlock>: - 80089b0: 4801 ldr r0, [pc, #4] ; (80089b8 <__malloc_unlock+0x8>) - 80089b2: f000 bd21 b.w 80093f8 <__retarget_lock_release_recursive> - 80089b6: bf00 nop - 80089b8: 200024a4 .word 0x200024a4 +080087a0 <__malloc_unlock>: + 80087a0: 4801 ldr r0, [pc, #4] ; (80087a8 <__malloc_unlock+0x8>) + 80087a2: f000 bd21 b.w 80091e8 <__retarget_lock_release_recursive> + 80087a6: bf00 nop + 80087a8: 200024f4 .word 0x200024f4 -080089bc <_Balloc>: - 80089bc: b570 push {r4, r5, r6, lr} - 80089be: 6a46 ldr r6, [r0, #36] ; 0x24 - 80089c0: 4604 mov r4, r0 - 80089c2: 460d mov r5, r1 - 80089c4: b976 cbnz r6, 80089e4 <_Balloc+0x28> - 80089c6: 2010 movs r0, #16 - 80089c8: f7fe fc02 bl 80071d0 - 80089cc: 4602 mov r2, r0 - 80089ce: 6260 str r0, [r4, #36] ; 0x24 - 80089d0: b920 cbnz r0, 80089dc <_Balloc+0x20> - 80089d2: 2166 movs r1, #102 ; 0x66 - 80089d4: 4b17 ldr r3, [pc, #92] ; (8008a34 <_Balloc+0x78>) - 80089d6: 4818 ldr r0, [pc, #96] ; (8008a38 <_Balloc+0x7c>) - 80089d8: f000 fcdc bl 8009394 <__assert_func> - 80089dc: e9c0 6601 strd r6, r6, [r0, #4] - 80089e0: 6006 str r6, [r0, #0] - 80089e2: 60c6 str r6, [r0, #12] - 80089e4: 6a66 ldr r6, [r4, #36] ; 0x24 - 80089e6: 68f3 ldr r3, [r6, #12] - 80089e8: b183 cbz r3, 8008a0c <_Balloc+0x50> - 80089ea: 6a63 ldr r3, [r4, #36] ; 0x24 - 80089ec: 68db ldr r3, [r3, #12] - 80089ee: f853 0025 ldr.w r0, [r3, r5, lsl #2] - 80089f2: b9b8 cbnz r0, 8008a24 <_Balloc+0x68> - 80089f4: 2101 movs r1, #1 - 80089f6: fa01 f605 lsl.w r6, r1, r5 - 80089fa: 1d72 adds r2, r6, #5 - 80089fc: 4620 mov r0, r4 - 80089fe: 0092 lsls r2, r2, #2 - 8008a00: f000 fb5e bl 80090c0 <_calloc_r> - 8008a04: b160 cbz r0, 8008a20 <_Balloc+0x64> - 8008a06: e9c0 5601 strd r5, r6, [r0, #4] - 8008a0a: e00e b.n 8008a2a <_Balloc+0x6e> - 8008a0c: 2221 movs r2, #33 ; 0x21 - 8008a0e: 2104 movs r1, #4 - 8008a10: 4620 mov r0, r4 - 8008a12: f000 fb55 bl 80090c0 <_calloc_r> - 8008a16: 6a63 ldr r3, [r4, #36] ; 0x24 - 8008a18: 60f0 str r0, [r6, #12] - 8008a1a: 68db ldr r3, [r3, #12] - 8008a1c: 2b00 cmp r3, #0 - 8008a1e: d1e4 bne.n 80089ea <_Balloc+0x2e> - 8008a20: 2000 movs r0, #0 - 8008a22: bd70 pop {r4, r5, r6, pc} - 8008a24: 6802 ldr r2, [r0, #0] - 8008a26: f843 2025 str.w r2, [r3, r5, lsl #2] - 8008a2a: 2300 movs r3, #0 - 8008a2c: e9c0 3303 strd r3, r3, [r0, #12] - 8008a30: e7f7 b.n 8008a22 <_Balloc+0x66> - 8008a32: bf00 nop - 8008a34: 0800af1d .word 0x0800af1d - 8008a38: 0800afa4 .word 0x0800afa4 +080087ac <_Balloc>: + 80087ac: b570 push {r4, r5, r6, lr} + 80087ae: 6a46 ldr r6, [r0, #36] ; 0x24 + 80087b0: 4604 mov r4, r0 + 80087b2: 460d mov r5, r1 + 80087b4: b976 cbnz r6, 80087d4 <_Balloc+0x28> + 80087b6: 2010 movs r0, #16 + 80087b8: f7fe fc00 bl 8006fbc + 80087bc: 4602 mov r2, r0 + 80087be: 6260 str r0, [r4, #36] ; 0x24 + 80087c0: b920 cbnz r0, 80087cc <_Balloc+0x20> + 80087c2: 2166 movs r1, #102 ; 0x66 + 80087c4: 4b17 ldr r3, [pc, #92] ; (8008824 <_Balloc+0x78>) + 80087c6: 4818 ldr r0, [pc, #96] ; (8008828 <_Balloc+0x7c>) + 80087c8: f000 fcdc bl 8009184 <__assert_func> + 80087cc: e9c0 6601 strd r6, r6, [r0, #4] + 80087d0: 6006 str r6, [r0, #0] + 80087d2: 60c6 str r6, [r0, #12] + 80087d4: 6a66 ldr r6, [r4, #36] ; 0x24 + 80087d6: 68f3 ldr r3, [r6, #12] + 80087d8: b183 cbz r3, 80087fc <_Balloc+0x50> + 80087da: 6a63 ldr r3, [r4, #36] ; 0x24 + 80087dc: 68db ldr r3, [r3, #12] + 80087de: f853 0025 ldr.w r0, [r3, r5, lsl #2] + 80087e2: b9b8 cbnz r0, 8008814 <_Balloc+0x68> + 80087e4: 2101 movs r1, #1 + 80087e6: fa01 f605 lsl.w r6, r1, r5 + 80087ea: 1d72 adds r2, r6, #5 + 80087ec: 4620 mov r0, r4 + 80087ee: 0092 lsls r2, r2, #2 + 80087f0: f000 fb5e bl 8008eb0 <_calloc_r> + 80087f4: b160 cbz r0, 8008810 <_Balloc+0x64> + 80087f6: e9c0 5601 strd r5, r6, [r0, #4] + 80087fa: e00e b.n 800881a <_Balloc+0x6e> + 80087fc: 2221 movs r2, #33 ; 0x21 + 80087fe: 2104 movs r1, #4 + 8008800: 4620 mov r0, r4 + 8008802: f000 fb55 bl 8008eb0 <_calloc_r> + 8008806: 6a63 ldr r3, [r4, #36] ; 0x24 + 8008808: 60f0 str r0, [r6, #12] + 800880a: 68db ldr r3, [r3, #12] + 800880c: 2b00 cmp r3, #0 + 800880e: d1e4 bne.n 80087da <_Balloc+0x2e> + 8008810: 2000 movs r0, #0 + 8008812: bd70 pop {r4, r5, r6, pc} + 8008814: 6802 ldr r2, [r0, #0] + 8008816: f843 2025 str.w r2, [r3, r5, lsl #2] + 800881a: 2300 movs r3, #0 + 800881c: e9c0 3303 strd r3, r3, [r0, #12] + 8008820: e7f7 b.n 8008812 <_Balloc+0x66> + 8008822: bf00 nop + 8008824: 0800a8b9 .word 0x0800a8b9 + 8008828: 0800a940 .word 0x0800a940 -08008a3c <_Bfree>: - 8008a3c: b570 push {r4, r5, r6, lr} - 8008a3e: 6a46 ldr r6, [r0, #36] ; 0x24 - 8008a40: 4605 mov r5, r0 - 8008a42: 460c mov r4, r1 - 8008a44: b976 cbnz r6, 8008a64 <_Bfree+0x28> - 8008a46: 2010 movs r0, #16 - 8008a48: f7fe fbc2 bl 80071d0 - 8008a4c: 4602 mov r2, r0 - 8008a4e: 6268 str r0, [r5, #36] ; 0x24 - 8008a50: b920 cbnz r0, 8008a5c <_Bfree+0x20> - 8008a52: 218a movs r1, #138 ; 0x8a - 8008a54: 4b08 ldr r3, [pc, #32] ; (8008a78 <_Bfree+0x3c>) - 8008a56: 4809 ldr r0, [pc, #36] ; (8008a7c <_Bfree+0x40>) - 8008a58: f000 fc9c bl 8009394 <__assert_func> - 8008a5c: e9c0 6601 strd r6, r6, [r0, #4] - 8008a60: 6006 str r6, [r0, #0] - 8008a62: 60c6 str r6, [r0, #12] - 8008a64: b13c cbz r4, 8008a76 <_Bfree+0x3a> - 8008a66: 6a6b ldr r3, [r5, #36] ; 0x24 - 8008a68: 6862 ldr r2, [r4, #4] - 8008a6a: 68db ldr r3, [r3, #12] - 8008a6c: f853 1022 ldr.w r1, [r3, r2, lsl #2] - 8008a70: 6021 str r1, [r4, #0] - 8008a72: f843 4022 str.w r4, [r3, r2, lsl #2] - 8008a76: bd70 pop {r4, r5, r6, pc} - 8008a78: 0800af1d .word 0x0800af1d - 8008a7c: 0800afa4 .word 0x0800afa4 +0800882c <_Bfree>: + 800882c: b570 push {r4, r5, r6, lr} + 800882e: 6a46 ldr r6, [r0, #36] ; 0x24 + 8008830: 4605 mov r5, r0 + 8008832: 460c mov r4, r1 + 8008834: b976 cbnz r6, 8008854 <_Bfree+0x28> + 8008836: 2010 movs r0, #16 + 8008838: f7fe fbc0 bl 8006fbc + 800883c: 4602 mov r2, r0 + 800883e: 6268 str r0, [r5, #36] ; 0x24 + 8008840: b920 cbnz r0, 800884c <_Bfree+0x20> + 8008842: 218a movs r1, #138 ; 0x8a + 8008844: 4b08 ldr r3, [pc, #32] ; (8008868 <_Bfree+0x3c>) + 8008846: 4809 ldr r0, [pc, #36] ; (800886c <_Bfree+0x40>) + 8008848: f000 fc9c bl 8009184 <__assert_func> + 800884c: e9c0 6601 strd r6, r6, [r0, #4] + 8008850: 6006 str r6, [r0, #0] + 8008852: 60c6 str r6, [r0, #12] + 8008854: b13c cbz r4, 8008866 <_Bfree+0x3a> + 8008856: 6a6b ldr r3, [r5, #36] ; 0x24 + 8008858: 6862 ldr r2, [r4, #4] + 800885a: 68db ldr r3, [r3, #12] + 800885c: f853 1022 ldr.w r1, [r3, r2, lsl #2] + 8008860: 6021 str r1, [r4, #0] + 8008862: f843 4022 str.w r4, [r3, r2, lsl #2] + 8008866: bd70 pop {r4, r5, r6, pc} + 8008868: 0800a8b9 .word 0x0800a8b9 + 800886c: 0800a940 .word 0x0800a940 -08008a80 <__multadd>: - 8008a80: e92d 41f0 stmdb sp!, {r4, r5, r6, r7, r8, lr} - 8008a84: 4698 mov r8, r3 - 8008a86: 460c mov r4, r1 - 8008a88: 2300 movs r3, #0 - 8008a8a: 690e ldr r6, [r1, #16] - 8008a8c: 4607 mov r7, r0 - 8008a8e: f101 0014 add.w r0, r1, #20 - 8008a92: 6805 ldr r5, [r0, #0] - 8008a94: 3301 adds r3, #1 - 8008a96: b2a9 uxth r1, r5 - 8008a98: fb02 8101 mla r1, r2, r1, r8 - 8008a9c: 0c2d lsrs r5, r5, #16 - 8008a9e: ea4f 4c11 mov.w ip, r1, lsr #16 - 8008aa2: fb02 c505 mla r5, r2, r5, ip - 8008aa6: b289 uxth r1, r1 - 8008aa8: eb01 4105 add.w r1, r1, r5, lsl #16 - 8008aac: 429e cmp r6, r3 - 8008aae: ea4f 4815 mov.w r8, r5, lsr #16 - 8008ab2: f840 1b04 str.w r1, [r0], #4 - 8008ab6: dcec bgt.n 8008a92 <__multadd+0x12> - 8008ab8: f1b8 0f00 cmp.w r8, #0 - 8008abc: d022 beq.n 8008b04 <__multadd+0x84> - 8008abe: 68a3 ldr r3, [r4, #8] - 8008ac0: 42b3 cmp r3, r6 - 8008ac2: dc19 bgt.n 8008af8 <__multadd+0x78> - 8008ac4: 6861 ldr r1, [r4, #4] - 8008ac6: 4638 mov r0, r7 - 8008ac8: 3101 adds r1, #1 - 8008aca: f7ff ff77 bl 80089bc <_Balloc> - 8008ace: 4605 mov r5, r0 - 8008ad0: b928 cbnz r0, 8008ade <__multadd+0x5e> - 8008ad2: 4602 mov r2, r0 - 8008ad4: 21b5 movs r1, #181 ; 0xb5 - 8008ad6: 4b0d ldr r3, [pc, #52] ; (8008b0c <__multadd+0x8c>) - 8008ad8: 480d ldr r0, [pc, #52] ; (8008b10 <__multadd+0x90>) - 8008ada: f000 fc5b bl 8009394 <__assert_func> - 8008ade: 6922 ldr r2, [r4, #16] - 8008ae0: f104 010c add.w r1, r4, #12 - 8008ae4: 3202 adds r2, #2 - 8008ae6: 0092 lsls r2, r2, #2 - 8008ae8: 300c adds r0, #12 - 8008aea: f7ff ff4d bl 8008988 - 8008aee: 4621 mov r1, r4 - 8008af0: 4638 mov r0, r7 - 8008af2: f7ff ffa3 bl 8008a3c <_Bfree> - 8008af6: 462c mov r4, r5 - 8008af8: eb04 0386 add.w r3, r4, r6, lsl #2 - 8008afc: 3601 adds r6, #1 - 8008afe: f8c3 8014 str.w r8, [r3, #20] - 8008b02: 6126 str r6, [r4, #16] - 8008b04: 4620 mov r0, r4 - 8008b06: e8bd 81f0 ldmia.w sp!, {r4, r5, r6, r7, r8, pc} - 8008b0a: bf00 nop - 8008b0c: 0800af93 .word 0x0800af93 - 8008b10: 0800afa4 .word 0x0800afa4 +08008870 <__multadd>: + 8008870: e92d 41f0 stmdb sp!, {r4, r5, r6, r7, r8, lr} + 8008874: 4698 mov r8, r3 + 8008876: 460c mov r4, r1 + 8008878: 2300 movs r3, #0 + 800887a: 690e ldr r6, [r1, #16] + 800887c: 4607 mov r7, r0 + 800887e: f101 0014 add.w r0, r1, #20 + 8008882: 6805 ldr r5, [r0, #0] + 8008884: 3301 adds r3, #1 + 8008886: b2a9 uxth r1, r5 + 8008888: fb02 8101 mla r1, r2, r1, r8 + 800888c: 0c2d lsrs r5, r5, #16 + 800888e: ea4f 4c11 mov.w ip, r1, lsr #16 + 8008892: fb02 c505 mla r5, r2, r5, ip + 8008896: b289 uxth r1, r1 + 8008898: eb01 4105 add.w r1, r1, r5, lsl #16 + 800889c: 429e cmp r6, r3 + 800889e: ea4f 4815 mov.w r8, r5, lsr #16 + 80088a2: f840 1b04 str.w r1, [r0], #4 + 80088a6: dcec bgt.n 8008882 <__multadd+0x12> + 80088a8: f1b8 0f00 cmp.w r8, #0 + 80088ac: d022 beq.n 80088f4 <__multadd+0x84> + 80088ae: 68a3 ldr r3, [r4, #8] + 80088b0: 42b3 cmp r3, r6 + 80088b2: dc19 bgt.n 80088e8 <__multadd+0x78> + 80088b4: 6861 ldr r1, [r4, #4] + 80088b6: 4638 mov r0, r7 + 80088b8: 3101 adds r1, #1 + 80088ba: f7ff ff77 bl 80087ac <_Balloc> + 80088be: 4605 mov r5, r0 + 80088c0: b928 cbnz r0, 80088ce <__multadd+0x5e> + 80088c2: 4602 mov r2, r0 + 80088c4: 21b5 movs r1, #181 ; 0xb5 + 80088c6: 4b0d ldr r3, [pc, #52] ; (80088fc <__multadd+0x8c>) + 80088c8: 480d ldr r0, [pc, #52] ; (8008900 <__multadd+0x90>) + 80088ca: f000 fc5b bl 8009184 <__assert_func> + 80088ce: 6922 ldr r2, [r4, #16] + 80088d0: f104 010c add.w r1, r4, #12 + 80088d4: 3202 adds r2, #2 + 80088d6: 0092 lsls r2, r2, #2 + 80088d8: 300c adds r0, #12 + 80088da: f7ff ff4d bl 8008778 + 80088de: 4621 mov r1, r4 + 80088e0: 4638 mov r0, r7 + 80088e2: f7ff ffa3 bl 800882c <_Bfree> + 80088e6: 462c mov r4, r5 + 80088e8: eb04 0386 add.w r3, r4, r6, lsl #2 + 80088ec: 3601 adds r6, #1 + 80088ee: f8c3 8014 str.w r8, [r3, #20] + 80088f2: 6126 str r6, [r4, #16] + 80088f4: 4620 mov r0, r4 + 80088f6: e8bd 81f0 ldmia.w sp!, {r4, r5, r6, r7, r8, pc} + 80088fa: bf00 nop + 80088fc: 0800a92f .word 0x0800a92f + 8008900: 0800a940 .word 0x0800a940 -08008b14 <__hi0bits>: - 8008b14: 0c02 lsrs r2, r0, #16 - 8008b16: 0412 lsls r2, r2, #16 - 8008b18: 4603 mov r3, r0 - 8008b1a: b9ca cbnz r2, 8008b50 <__hi0bits+0x3c> - 8008b1c: 0403 lsls r3, r0, #16 - 8008b1e: 2010 movs r0, #16 - 8008b20: f013 4f7f tst.w r3, #4278190080 ; 0xff000000 - 8008b24: bf04 itt eq - 8008b26: 021b lsleq r3, r3, #8 - 8008b28: 3008 addeq r0, #8 - 8008b2a: f013 4f70 tst.w r3, #4026531840 ; 0xf0000000 - 8008b2e: bf04 itt eq - 8008b30: 011b lsleq r3, r3, #4 - 8008b32: 3004 addeq r0, #4 - 8008b34: f013 4f40 tst.w r3, #3221225472 ; 0xc0000000 - 8008b38: bf04 itt eq - 8008b3a: 009b lsleq r3, r3, #2 - 8008b3c: 3002 addeq r0, #2 - 8008b3e: 2b00 cmp r3, #0 - 8008b40: db05 blt.n 8008b4e <__hi0bits+0x3a> - 8008b42: f013 4f80 tst.w r3, #1073741824 ; 0x40000000 - 8008b46: f100 0001 add.w r0, r0, #1 - 8008b4a: bf08 it eq - 8008b4c: 2020 moveq r0, #32 - 8008b4e: 4770 bx lr - 8008b50: 2000 movs r0, #0 - 8008b52: e7e5 b.n 8008b20 <__hi0bits+0xc> +08008904 <__hi0bits>: + 8008904: 0c02 lsrs r2, r0, #16 + 8008906: 0412 lsls r2, r2, #16 + 8008908: 4603 mov r3, r0 + 800890a: b9ca cbnz r2, 8008940 <__hi0bits+0x3c> + 800890c: 0403 lsls r3, r0, #16 + 800890e: 2010 movs r0, #16 + 8008910: f013 4f7f tst.w r3, #4278190080 ; 0xff000000 + 8008914: bf04 itt eq + 8008916: 021b lsleq r3, r3, #8 + 8008918: 3008 addeq r0, #8 + 800891a: f013 4f70 tst.w r3, #4026531840 ; 0xf0000000 + 800891e: bf04 itt eq + 8008920: 011b lsleq r3, r3, #4 + 8008922: 3004 addeq r0, #4 + 8008924: f013 4f40 tst.w r3, #3221225472 ; 0xc0000000 + 8008928: bf04 itt eq + 800892a: 009b lsleq r3, r3, #2 + 800892c: 3002 addeq r0, #2 + 800892e: 2b00 cmp r3, #0 + 8008930: db05 blt.n 800893e <__hi0bits+0x3a> + 8008932: f013 4f80 tst.w r3, #1073741824 ; 0x40000000 + 8008936: f100 0001 add.w r0, r0, #1 + 800893a: bf08 it eq + 800893c: 2020 moveq r0, #32 + 800893e: 4770 bx lr + 8008940: 2000 movs r0, #0 + 8008942: e7e5 b.n 8008910 <__hi0bits+0xc> -08008b54 <__lo0bits>: - 8008b54: 6803 ldr r3, [r0, #0] - 8008b56: 4602 mov r2, r0 - 8008b58: f013 0007 ands.w r0, r3, #7 - 8008b5c: d00b beq.n 8008b76 <__lo0bits+0x22> - 8008b5e: 07d9 lsls r1, r3, #31 - 8008b60: d422 bmi.n 8008ba8 <__lo0bits+0x54> - 8008b62: 0798 lsls r0, r3, #30 - 8008b64: bf49 itett mi - 8008b66: 085b lsrmi r3, r3, #1 - 8008b68: 089b lsrpl r3, r3, #2 - 8008b6a: 2001 movmi r0, #1 - 8008b6c: 6013 strmi r3, [r2, #0] - 8008b6e: bf5c itt pl - 8008b70: 2002 movpl r0, #2 - 8008b72: 6013 strpl r3, [r2, #0] - 8008b74: 4770 bx lr - 8008b76: b299 uxth r1, r3 - 8008b78: b909 cbnz r1, 8008b7e <__lo0bits+0x2a> - 8008b7a: 2010 movs r0, #16 - 8008b7c: 0c1b lsrs r3, r3, #16 - 8008b7e: f013 0fff tst.w r3, #255 ; 0xff - 8008b82: bf04 itt eq - 8008b84: 0a1b lsreq r3, r3, #8 - 8008b86: 3008 addeq r0, #8 - 8008b88: 0719 lsls r1, r3, #28 - 8008b8a: bf04 itt eq - 8008b8c: 091b lsreq r3, r3, #4 - 8008b8e: 3004 addeq r0, #4 - 8008b90: 0799 lsls r1, r3, #30 - 8008b92: bf04 itt eq - 8008b94: 089b lsreq r3, r3, #2 - 8008b96: 3002 addeq r0, #2 - 8008b98: 07d9 lsls r1, r3, #31 - 8008b9a: d403 bmi.n 8008ba4 <__lo0bits+0x50> - 8008b9c: 085b lsrs r3, r3, #1 - 8008b9e: f100 0001 add.w r0, r0, #1 - 8008ba2: d003 beq.n 8008bac <__lo0bits+0x58> - 8008ba4: 6013 str r3, [r2, #0] - 8008ba6: 4770 bx lr - 8008ba8: 2000 movs r0, #0 - 8008baa: 4770 bx lr - 8008bac: 2020 movs r0, #32 - 8008bae: 4770 bx lr +08008944 <__lo0bits>: + 8008944: 6803 ldr r3, [r0, #0] + 8008946: 4602 mov r2, r0 + 8008948: f013 0007 ands.w r0, r3, #7 + 800894c: d00b beq.n 8008966 <__lo0bits+0x22> + 800894e: 07d9 lsls r1, r3, #31 + 8008950: d422 bmi.n 8008998 <__lo0bits+0x54> + 8008952: 0798 lsls r0, r3, #30 + 8008954: bf49 itett mi + 8008956: 085b lsrmi r3, r3, #1 + 8008958: 089b lsrpl r3, r3, #2 + 800895a: 2001 movmi r0, #1 + 800895c: 6013 strmi r3, [r2, #0] + 800895e: bf5c itt pl + 8008960: 2002 movpl r0, #2 + 8008962: 6013 strpl r3, [r2, #0] + 8008964: 4770 bx lr + 8008966: b299 uxth r1, r3 + 8008968: b909 cbnz r1, 800896e <__lo0bits+0x2a> + 800896a: 2010 movs r0, #16 + 800896c: 0c1b lsrs r3, r3, #16 + 800896e: f013 0fff tst.w r3, #255 ; 0xff + 8008972: bf04 itt eq + 8008974: 0a1b lsreq r3, r3, #8 + 8008976: 3008 addeq r0, #8 + 8008978: 0719 lsls r1, r3, #28 + 800897a: bf04 itt eq + 800897c: 091b lsreq r3, r3, #4 + 800897e: 3004 addeq r0, #4 + 8008980: 0799 lsls r1, r3, #30 + 8008982: bf04 itt eq + 8008984: 089b lsreq r3, r3, #2 + 8008986: 3002 addeq r0, #2 + 8008988: 07d9 lsls r1, r3, #31 + 800898a: d403 bmi.n 8008994 <__lo0bits+0x50> + 800898c: 085b lsrs r3, r3, #1 + 800898e: f100 0001 add.w r0, r0, #1 + 8008992: d003 beq.n 800899c <__lo0bits+0x58> + 8008994: 6013 str r3, [r2, #0] + 8008996: 4770 bx lr + 8008998: 2000 movs r0, #0 + 800899a: 4770 bx lr + 800899c: 2020 movs r0, #32 + 800899e: 4770 bx lr -08008bb0 <__i2b>: - 8008bb0: b510 push {r4, lr} - 8008bb2: 460c mov r4, r1 - 8008bb4: 2101 movs r1, #1 - 8008bb6: f7ff ff01 bl 80089bc <_Balloc> - 8008bba: 4602 mov r2, r0 - 8008bbc: b928 cbnz r0, 8008bca <__i2b+0x1a> - 8008bbe: f44f 71a0 mov.w r1, #320 ; 0x140 - 8008bc2: 4b04 ldr r3, [pc, #16] ; (8008bd4 <__i2b+0x24>) - 8008bc4: 4804 ldr r0, [pc, #16] ; (8008bd8 <__i2b+0x28>) - 8008bc6: f000 fbe5 bl 8009394 <__assert_func> - 8008bca: 2301 movs r3, #1 - 8008bcc: 6144 str r4, [r0, #20] - 8008bce: 6103 str r3, [r0, #16] - 8008bd0: bd10 pop {r4, pc} - 8008bd2: bf00 nop - 8008bd4: 0800af93 .word 0x0800af93 - 8008bd8: 0800afa4 .word 0x0800afa4 +080089a0 <__i2b>: + 80089a0: b510 push {r4, lr} + 80089a2: 460c mov r4, r1 + 80089a4: 2101 movs r1, #1 + 80089a6: f7ff ff01 bl 80087ac <_Balloc> + 80089aa: 4602 mov r2, r0 + 80089ac: b928 cbnz r0, 80089ba <__i2b+0x1a> + 80089ae: f44f 71a0 mov.w r1, #320 ; 0x140 + 80089b2: 4b04 ldr r3, [pc, #16] ; (80089c4 <__i2b+0x24>) + 80089b4: 4804 ldr r0, [pc, #16] ; (80089c8 <__i2b+0x28>) + 80089b6: f000 fbe5 bl 8009184 <__assert_func> + 80089ba: 2301 movs r3, #1 + 80089bc: 6144 str r4, [r0, #20] + 80089be: 6103 str r3, [r0, #16] + 80089c0: bd10 pop {r4, pc} + 80089c2: bf00 nop + 80089c4: 0800a92f .word 0x0800a92f + 80089c8: 0800a940 .word 0x0800a940 -08008bdc <__multiply>: - 8008bdc: e92d 4ff0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, fp, lr} - 8008be0: 4614 mov r4, r2 - 8008be2: 690a ldr r2, [r1, #16] - 8008be4: 6923 ldr r3, [r4, #16] - 8008be6: 460d mov r5, r1 - 8008be8: 429a cmp r2, r3 - 8008bea: bfbe ittt lt - 8008bec: 460b movlt r3, r1 - 8008bee: 4625 movlt r5, r4 - 8008bf0: 461c movlt r4, r3 - 8008bf2: f8d5 a010 ldr.w sl, [r5, #16] - 8008bf6: f8d4 9010 ldr.w r9, [r4, #16] - 8008bfa: 68ab ldr r3, [r5, #8] - 8008bfc: 6869 ldr r1, [r5, #4] - 8008bfe: eb0a 0709 add.w r7, sl, r9 - 8008c02: 42bb cmp r3, r7 - 8008c04: b085 sub sp, #20 - 8008c06: bfb8 it lt - 8008c08: 3101 addlt r1, #1 - 8008c0a: f7ff fed7 bl 80089bc <_Balloc> - 8008c0e: b930 cbnz r0, 8008c1e <__multiply+0x42> - 8008c10: 4602 mov r2, r0 - 8008c12: f240 115d movw r1, #349 ; 0x15d - 8008c16: 4b41 ldr r3, [pc, #260] ; (8008d1c <__multiply+0x140>) - 8008c18: 4841 ldr r0, [pc, #260] ; (8008d20 <__multiply+0x144>) - 8008c1a: f000 fbbb bl 8009394 <__assert_func> - 8008c1e: f100 0614 add.w r6, r0, #20 - 8008c22: 4633 mov r3, r6 - 8008c24: 2200 movs r2, #0 - 8008c26: eb06 0887 add.w r8, r6, r7, lsl #2 - 8008c2a: 4543 cmp r3, r8 - 8008c2c: d31e bcc.n 8008c6c <__multiply+0x90> - 8008c2e: f105 0c14 add.w ip, r5, #20 - 8008c32: f104 0314 add.w r3, r4, #20 - 8008c36: eb0c 0c8a add.w ip, ip, sl, lsl #2 - 8008c3a: eb03 0289 add.w r2, r3, r9, lsl #2 - 8008c3e: 9202 str r2, [sp, #8] - 8008c40: ebac 0205 sub.w r2, ip, r5 - 8008c44: 3a15 subs r2, #21 - 8008c46: f022 0203 bic.w r2, r2, #3 - 8008c4a: 3204 adds r2, #4 - 8008c4c: f105 0115 add.w r1, r5, #21 - 8008c50: 458c cmp ip, r1 - 8008c52: bf38 it cc - 8008c54: 2204 movcc r2, #4 - 8008c56: 9201 str r2, [sp, #4] - 8008c58: 9a02 ldr r2, [sp, #8] - 8008c5a: 9303 str r3, [sp, #12] - 8008c5c: 429a cmp r2, r3 - 8008c5e: d808 bhi.n 8008c72 <__multiply+0x96> - 8008c60: 2f00 cmp r7, #0 - 8008c62: dc55 bgt.n 8008d10 <__multiply+0x134> - 8008c64: 6107 str r7, [r0, #16] - 8008c66: b005 add sp, #20 - 8008c68: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc} - 8008c6c: f843 2b04 str.w r2, [r3], #4 - 8008c70: e7db b.n 8008c2a <__multiply+0x4e> - 8008c72: f8b3 a000 ldrh.w sl, [r3] - 8008c76: f1ba 0f00 cmp.w sl, #0 - 8008c7a: d020 beq.n 8008cbe <__multiply+0xe2> - 8008c7c: 46b1 mov r9, r6 - 8008c7e: 2200 movs r2, #0 - 8008c80: f105 0e14 add.w lr, r5, #20 - 8008c84: f85e 4b04 ldr.w r4, [lr], #4 - 8008c88: f8d9 b000 ldr.w fp, [r9] - 8008c8c: b2a1 uxth r1, r4 - 8008c8e: fa1f fb8b uxth.w fp, fp - 8008c92: fb0a b101 mla r1, sl, r1, fp - 8008c96: 4411 add r1, r2 - 8008c98: f8d9 2000 ldr.w r2, [r9] - 8008c9c: 0c24 lsrs r4, r4, #16 - 8008c9e: 0c12 lsrs r2, r2, #16 - 8008ca0: fb0a 2404 mla r4, sl, r4, r2 - 8008ca4: eb04 4411 add.w r4, r4, r1, lsr #16 - 8008ca8: b289 uxth r1, r1 - 8008caa: ea41 4104 orr.w r1, r1, r4, lsl #16 - 8008cae: 45f4 cmp ip, lr - 8008cb0: ea4f 4214 mov.w r2, r4, lsr #16 - 8008cb4: f849 1b04 str.w r1, [r9], #4 - 8008cb8: d8e4 bhi.n 8008c84 <__multiply+0xa8> - 8008cba: 9901 ldr r1, [sp, #4] - 8008cbc: 5072 str r2, [r6, r1] - 8008cbe: 9a03 ldr r2, [sp, #12] - 8008cc0: 3304 adds r3, #4 - 8008cc2: f8b2 9002 ldrh.w r9, [r2, #2] - 8008cc6: f1b9 0f00 cmp.w r9, #0 - 8008cca: d01f beq.n 8008d0c <__multiply+0x130> - 8008ccc: 46b6 mov lr, r6 - 8008cce: f04f 0a00 mov.w sl, #0 - 8008cd2: 6834 ldr r4, [r6, #0] - 8008cd4: f105 0114 add.w r1, r5, #20 - 8008cd8: 880a ldrh r2, [r1, #0] - 8008cda: f8be b002 ldrh.w fp, [lr, #2] - 8008cde: b2a4 uxth r4, r4 - 8008ce0: fb09 b202 mla r2, r9, r2, fp - 8008ce4: 4492 add sl, r2 - 8008ce6: ea44 440a orr.w r4, r4, sl, lsl #16 - 8008cea: f84e 4b04 str.w r4, [lr], #4 - 8008cee: f851 4b04 ldr.w r4, [r1], #4 - 8008cf2: f8be 2000 ldrh.w r2, [lr] - 8008cf6: 0c24 lsrs r4, r4, #16 - 8008cf8: fb09 2404 mla r4, r9, r4, r2 - 8008cfc: 458c cmp ip, r1 - 8008cfe: eb04 441a add.w r4, r4, sl, lsr #16 - 8008d02: ea4f 4a14 mov.w sl, r4, lsr #16 - 8008d06: d8e7 bhi.n 8008cd8 <__multiply+0xfc> - 8008d08: 9a01 ldr r2, [sp, #4] - 8008d0a: 50b4 str r4, [r6, r2] - 8008d0c: 3604 adds r6, #4 - 8008d0e: e7a3 b.n 8008c58 <__multiply+0x7c> - 8008d10: f858 3d04 ldr.w r3, [r8, #-4]! - 8008d14: 2b00 cmp r3, #0 - 8008d16: d1a5 bne.n 8008c64 <__multiply+0x88> - 8008d18: 3f01 subs r7, #1 - 8008d1a: e7a1 b.n 8008c60 <__multiply+0x84> - 8008d1c: 0800af93 .word 0x0800af93 - 8008d20: 0800afa4 .word 0x0800afa4 +080089cc <__multiply>: + 80089cc: e92d 4ff0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, fp, lr} + 80089d0: 4614 mov r4, r2 + 80089d2: 690a ldr r2, [r1, #16] + 80089d4: 6923 ldr r3, [r4, #16] + 80089d6: 460d mov r5, r1 + 80089d8: 429a cmp r2, r3 + 80089da: bfbe ittt lt + 80089dc: 460b movlt r3, r1 + 80089de: 4625 movlt r5, r4 + 80089e0: 461c movlt r4, r3 + 80089e2: f8d5 a010 ldr.w sl, [r5, #16] + 80089e6: f8d4 9010 ldr.w r9, [r4, #16] + 80089ea: 68ab ldr r3, [r5, #8] + 80089ec: 6869 ldr r1, [r5, #4] + 80089ee: eb0a 0709 add.w r7, sl, r9 + 80089f2: 42bb cmp r3, r7 + 80089f4: b085 sub sp, #20 + 80089f6: bfb8 it lt + 80089f8: 3101 addlt r1, #1 + 80089fa: f7ff fed7 bl 80087ac <_Balloc> + 80089fe: b930 cbnz r0, 8008a0e <__multiply+0x42> + 8008a00: 4602 mov r2, r0 + 8008a02: f240 115d movw r1, #349 ; 0x15d + 8008a06: 4b41 ldr r3, [pc, #260] ; (8008b0c <__multiply+0x140>) + 8008a08: 4841 ldr r0, [pc, #260] ; (8008b10 <__multiply+0x144>) + 8008a0a: f000 fbbb bl 8009184 <__assert_func> + 8008a0e: f100 0614 add.w r6, r0, #20 + 8008a12: 4633 mov r3, r6 + 8008a14: 2200 movs r2, #0 + 8008a16: eb06 0887 add.w r8, r6, r7, lsl #2 + 8008a1a: 4543 cmp r3, r8 + 8008a1c: d31e bcc.n 8008a5c <__multiply+0x90> + 8008a1e: f105 0c14 add.w ip, r5, #20 + 8008a22: f104 0314 add.w r3, r4, #20 + 8008a26: eb0c 0c8a add.w ip, ip, sl, lsl #2 + 8008a2a: eb03 0289 add.w r2, r3, r9, lsl #2 + 8008a2e: 9202 str r2, [sp, #8] + 8008a30: ebac 0205 sub.w r2, ip, r5 + 8008a34: 3a15 subs r2, #21 + 8008a36: f022 0203 bic.w r2, r2, #3 + 8008a3a: 3204 adds r2, #4 + 8008a3c: f105 0115 add.w r1, r5, #21 + 8008a40: 458c cmp ip, r1 + 8008a42: bf38 it cc + 8008a44: 2204 movcc r2, #4 + 8008a46: 9201 str r2, [sp, #4] + 8008a48: 9a02 ldr r2, [sp, #8] + 8008a4a: 9303 str r3, [sp, #12] + 8008a4c: 429a cmp r2, r3 + 8008a4e: d808 bhi.n 8008a62 <__multiply+0x96> + 8008a50: 2f00 cmp r7, #0 + 8008a52: dc55 bgt.n 8008b00 <__multiply+0x134> + 8008a54: 6107 str r7, [r0, #16] + 8008a56: b005 add sp, #20 + 8008a58: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc} + 8008a5c: f843 2b04 str.w r2, [r3], #4 + 8008a60: e7db b.n 8008a1a <__multiply+0x4e> + 8008a62: f8b3 a000 ldrh.w sl, [r3] + 8008a66: f1ba 0f00 cmp.w sl, #0 + 8008a6a: d020 beq.n 8008aae <__multiply+0xe2> + 8008a6c: 46b1 mov r9, r6 + 8008a6e: 2200 movs r2, #0 + 8008a70: f105 0e14 add.w lr, r5, #20 + 8008a74: f85e 4b04 ldr.w r4, [lr], #4 + 8008a78: f8d9 b000 ldr.w fp, [r9] + 8008a7c: b2a1 uxth r1, r4 + 8008a7e: fa1f fb8b uxth.w fp, fp + 8008a82: fb0a b101 mla r1, sl, r1, fp + 8008a86: 4411 add r1, r2 + 8008a88: f8d9 2000 ldr.w r2, [r9] + 8008a8c: 0c24 lsrs r4, r4, #16 + 8008a8e: 0c12 lsrs r2, r2, #16 + 8008a90: fb0a 2404 mla r4, sl, r4, r2 + 8008a94: eb04 4411 add.w r4, r4, r1, lsr #16 + 8008a98: b289 uxth r1, r1 + 8008a9a: ea41 4104 orr.w r1, r1, r4, lsl #16 + 8008a9e: 45f4 cmp ip, lr + 8008aa0: ea4f 4214 mov.w r2, r4, lsr #16 + 8008aa4: f849 1b04 str.w r1, [r9], #4 + 8008aa8: d8e4 bhi.n 8008a74 <__multiply+0xa8> + 8008aaa: 9901 ldr r1, [sp, #4] + 8008aac: 5072 str r2, [r6, r1] + 8008aae: 9a03 ldr r2, [sp, #12] + 8008ab0: 3304 adds r3, #4 + 8008ab2: f8b2 9002 ldrh.w r9, [r2, #2] + 8008ab6: f1b9 0f00 cmp.w r9, #0 + 8008aba: d01f beq.n 8008afc <__multiply+0x130> + 8008abc: 46b6 mov lr, r6 + 8008abe: f04f 0a00 mov.w sl, #0 + 8008ac2: 6834 ldr r4, [r6, #0] + 8008ac4: f105 0114 add.w r1, r5, #20 + 8008ac8: 880a ldrh r2, [r1, #0] + 8008aca: f8be b002 ldrh.w fp, [lr, #2] + 8008ace: b2a4 uxth r4, r4 + 8008ad0: fb09 b202 mla r2, r9, r2, fp + 8008ad4: 4492 add sl, r2 + 8008ad6: ea44 440a orr.w r4, r4, sl, lsl #16 + 8008ada: f84e 4b04 str.w r4, [lr], #4 + 8008ade: f851 4b04 ldr.w r4, [r1], #4 + 8008ae2: f8be 2000 ldrh.w r2, [lr] + 8008ae6: 0c24 lsrs r4, r4, #16 + 8008ae8: fb09 2404 mla r4, r9, r4, r2 + 8008aec: 458c cmp ip, r1 + 8008aee: eb04 441a add.w r4, r4, sl, lsr #16 + 8008af2: ea4f 4a14 mov.w sl, r4, lsr #16 + 8008af6: d8e7 bhi.n 8008ac8 <__multiply+0xfc> + 8008af8: 9a01 ldr r2, [sp, #4] + 8008afa: 50b4 str r4, [r6, r2] + 8008afc: 3604 adds r6, #4 + 8008afe: e7a3 b.n 8008a48 <__multiply+0x7c> + 8008b00: f858 3d04 ldr.w r3, [r8, #-4]! + 8008b04: 2b00 cmp r3, #0 + 8008b06: d1a5 bne.n 8008a54 <__multiply+0x88> + 8008b08: 3f01 subs r7, #1 + 8008b0a: e7a1 b.n 8008a50 <__multiply+0x84> + 8008b0c: 0800a92f .word 0x0800a92f + 8008b10: 0800a940 .word 0x0800a940 -08008d24 <__pow5mult>: - 8008d24: e92d 43f8 stmdb sp!, {r3, r4, r5, r6, r7, r8, r9, lr} - 8008d28: 4615 mov r5, r2 - 8008d2a: f012 0203 ands.w r2, r2, #3 - 8008d2e: 4606 mov r6, r0 - 8008d30: 460f mov r7, r1 - 8008d32: d007 beq.n 8008d44 <__pow5mult+0x20> - 8008d34: 4c25 ldr r4, [pc, #148] ; (8008dcc <__pow5mult+0xa8>) - 8008d36: 3a01 subs r2, #1 - 8008d38: 2300 movs r3, #0 - 8008d3a: f854 2022 ldr.w r2, [r4, r2, lsl #2] - 8008d3e: f7ff fe9f bl 8008a80 <__multadd> - 8008d42: 4607 mov r7, r0 - 8008d44: 10ad asrs r5, r5, #2 - 8008d46: d03d beq.n 8008dc4 <__pow5mult+0xa0> - 8008d48: 6a74 ldr r4, [r6, #36] ; 0x24 - 8008d4a: b97c cbnz r4, 8008d6c <__pow5mult+0x48> - 8008d4c: 2010 movs r0, #16 - 8008d4e: f7fe fa3f bl 80071d0 - 8008d52: 4602 mov r2, r0 - 8008d54: 6270 str r0, [r6, #36] ; 0x24 - 8008d56: b928 cbnz r0, 8008d64 <__pow5mult+0x40> - 8008d58: f44f 71d7 mov.w r1, #430 ; 0x1ae - 8008d5c: 4b1c ldr r3, [pc, #112] ; (8008dd0 <__pow5mult+0xac>) - 8008d5e: 481d ldr r0, [pc, #116] ; (8008dd4 <__pow5mult+0xb0>) - 8008d60: f000 fb18 bl 8009394 <__assert_func> - 8008d64: e9c0 4401 strd r4, r4, [r0, #4] - 8008d68: 6004 str r4, [r0, #0] - 8008d6a: 60c4 str r4, [r0, #12] - 8008d6c: f8d6 8024 ldr.w r8, [r6, #36] ; 0x24 - 8008d70: f8d8 4008 ldr.w r4, [r8, #8] - 8008d74: b94c cbnz r4, 8008d8a <__pow5mult+0x66> - 8008d76: f240 2171 movw r1, #625 ; 0x271 - 8008d7a: 4630 mov r0, r6 - 8008d7c: f7ff ff18 bl 8008bb0 <__i2b> - 8008d80: 2300 movs r3, #0 - 8008d82: 4604 mov r4, r0 - 8008d84: f8c8 0008 str.w r0, [r8, #8] - 8008d88: 6003 str r3, [r0, #0] - 8008d8a: f04f 0900 mov.w r9, #0 - 8008d8e: 07eb lsls r3, r5, #31 - 8008d90: d50a bpl.n 8008da8 <__pow5mult+0x84> - 8008d92: 4639 mov r1, r7 - 8008d94: 4622 mov r2, r4 - 8008d96: 4630 mov r0, r6 - 8008d98: f7ff ff20 bl 8008bdc <__multiply> - 8008d9c: 4680 mov r8, r0 - 8008d9e: 4639 mov r1, r7 - 8008da0: 4630 mov r0, r6 - 8008da2: f7ff fe4b bl 8008a3c <_Bfree> - 8008da6: 4647 mov r7, r8 - 8008da8: 106d asrs r5, r5, #1 - 8008daa: d00b beq.n 8008dc4 <__pow5mult+0xa0> - 8008dac: 6820 ldr r0, [r4, #0] - 8008dae: b938 cbnz r0, 8008dc0 <__pow5mult+0x9c> - 8008db0: 4622 mov r2, r4 - 8008db2: 4621 mov r1, r4 - 8008db4: 4630 mov r0, r6 - 8008db6: f7ff ff11 bl 8008bdc <__multiply> - 8008dba: 6020 str r0, [r4, #0] - 8008dbc: f8c0 9000 str.w r9, [r0] - 8008dc0: 4604 mov r4, r0 - 8008dc2: e7e4 b.n 8008d8e <__pow5mult+0x6a> - 8008dc4: 4638 mov r0, r7 - 8008dc6: e8bd 83f8 ldmia.w sp!, {r3, r4, r5, r6, r7, r8, r9, pc} - 8008dca: bf00 nop - 8008dcc: 0800b0f8 .word 0x0800b0f8 - 8008dd0: 0800af1d .word 0x0800af1d - 8008dd4: 0800afa4 .word 0x0800afa4 +08008b14 <__pow5mult>: + 8008b14: e92d 43f8 stmdb sp!, {r3, r4, r5, r6, r7, r8, r9, lr} + 8008b18: 4615 mov r5, r2 + 8008b1a: f012 0203 ands.w r2, r2, #3 + 8008b1e: 4606 mov r6, r0 + 8008b20: 460f mov r7, r1 + 8008b22: d007 beq.n 8008b34 <__pow5mult+0x20> + 8008b24: 4c25 ldr r4, [pc, #148] ; (8008bbc <__pow5mult+0xa8>) + 8008b26: 3a01 subs r2, #1 + 8008b28: 2300 movs r3, #0 + 8008b2a: f854 2022 ldr.w r2, [r4, r2, lsl #2] + 8008b2e: f7ff fe9f bl 8008870 <__multadd> + 8008b32: 4607 mov r7, r0 + 8008b34: 10ad asrs r5, r5, #2 + 8008b36: d03d beq.n 8008bb4 <__pow5mult+0xa0> + 8008b38: 6a74 ldr r4, [r6, #36] ; 0x24 + 8008b3a: b97c cbnz r4, 8008b5c <__pow5mult+0x48> + 8008b3c: 2010 movs r0, #16 + 8008b3e: f7fe fa3d bl 8006fbc + 8008b42: 4602 mov r2, r0 + 8008b44: 6270 str r0, [r6, #36] ; 0x24 + 8008b46: b928 cbnz r0, 8008b54 <__pow5mult+0x40> + 8008b48: f44f 71d7 mov.w r1, #430 ; 0x1ae + 8008b4c: 4b1c ldr r3, [pc, #112] ; (8008bc0 <__pow5mult+0xac>) + 8008b4e: 481d ldr r0, [pc, #116] ; (8008bc4 <__pow5mult+0xb0>) + 8008b50: f000 fb18 bl 8009184 <__assert_func> + 8008b54: e9c0 4401 strd r4, r4, [r0, #4] + 8008b58: 6004 str r4, [r0, #0] + 8008b5a: 60c4 str r4, [r0, #12] + 8008b5c: f8d6 8024 ldr.w r8, [r6, #36] ; 0x24 + 8008b60: f8d8 4008 ldr.w r4, [r8, #8] + 8008b64: b94c cbnz r4, 8008b7a <__pow5mult+0x66> + 8008b66: f240 2171 movw r1, #625 ; 0x271 + 8008b6a: 4630 mov r0, r6 + 8008b6c: f7ff ff18 bl 80089a0 <__i2b> + 8008b70: 2300 movs r3, #0 + 8008b72: 4604 mov r4, r0 + 8008b74: f8c8 0008 str.w r0, [r8, #8] + 8008b78: 6003 str r3, [r0, #0] + 8008b7a: f04f 0900 mov.w r9, #0 + 8008b7e: 07eb lsls r3, r5, #31 + 8008b80: d50a bpl.n 8008b98 <__pow5mult+0x84> + 8008b82: 4639 mov r1, r7 + 8008b84: 4622 mov r2, r4 + 8008b86: 4630 mov r0, r6 + 8008b88: f7ff ff20 bl 80089cc <__multiply> + 8008b8c: 4680 mov r8, r0 + 8008b8e: 4639 mov r1, r7 + 8008b90: 4630 mov r0, r6 + 8008b92: f7ff fe4b bl 800882c <_Bfree> + 8008b96: 4647 mov r7, r8 + 8008b98: 106d asrs r5, r5, #1 + 8008b9a: d00b beq.n 8008bb4 <__pow5mult+0xa0> + 8008b9c: 6820 ldr r0, [r4, #0] + 8008b9e: b938 cbnz r0, 8008bb0 <__pow5mult+0x9c> + 8008ba0: 4622 mov r2, r4 + 8008ba2: 4621 mov r1, r4 + 8008ba4: 4630 mov r0, r6 + 8008ba6: f7ff ff11 bl 80089cc <__multiply> + 8008baa: 6020 str r0, [r4, #0] + 8008bac: f8c0 9000 str.w r9, [r0] + 8008bb0: 4604 mov r4, r0 + 8008bb2: e7e4 b.n 8008b7e <__pow5mult+0x6a> + 8008bb4: 4638 mov r0, r7 + 8008bb6: e8bd 83f8 ldmia.w sp!, {r3, r4, r5, r6, r7, r8, r9, pc} + 8008bba: bf00 nop + 8008bbc: 0800aa90 .word 0x0800aa90 + 8008bc0: 0800a8b9 .word 0x0800a8b9 + 8008bc4: 0800a940 .word 0x0800a940 -08008dd8 <__lshift>: - 8008dd8: e92d 47f0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, lr} - 8008ddc: 460c mov r4, r1 - 8008dde: 4607 mov r7, r0 - 8008de0: 4691 mov r9, r2 - 8008de2: 6923 ldr r3, [r4, #16] - 8008de4: 6849 ldr r1, [r1, #4] - 8008de6: eb03 1862 add.w r8, r3, r2, asr #5 - 8008dea: 68a3 ldr r3, [r4, #8] - 8008dec: ea4f 1a62 mov.w sl, r2, asr #5 - 8008df0: f108 0601 add.w r6, r8, #1 - 8008df4: 42b3 cmp r3, r6 - 8008df6: db0b blt.n 8008e10 <__lshift+0x38> - 8008df8: 4638 mov r0, r7 - 8008dfa: f7ff fddf bl 80089bc <_Balloc> - 8008dfe: 4605 mov r5, r0 - 8008e00: b948 cbnz r0, 8008e16 <__lshift+0x3e> - 8008e02: 4602 mov r2, r0 - 8008e04: f240 11d9 movw r1, #473 ; 0x1d9 - 8008e08: 4b27 ldr r3, [pc, #156] ; (8008ea8 <__lshift+0xd0>) - 8008e0a: 4828 ldr r0, [pc, #160] ; (8008eac <__lshift+0xd4>) - 8008e0c: f000 fac2 bl 8009394 <__assert_func> - 8008e10: 3101 adds r1, #1 - 8008e12: 005b lsls r3, r3, #1 - 8008e14: e7ee b.n 8008df4 <__lshift+0x1c> - 8008e16: 2300 movs r3, #0 - 8008e18: f100 0114 add.w r1, r0, #20 - 8008e1c: f100 0210 add.w r2, r0, #16 - 8008e20: 4618 mov r0, r3 - 8008e22: 4553 cmp r3, sl - 8008e24: db33 blt.n 8008e8e <__lshift+0xb6> - 8008e26: 6920 ldr r0, [r4, #16] - 8008e28: ea2a 7aea bic.w sl, sl, sl, asr #31 - 8008e2c: f104 0314 add.w r3, r4, #20 - 8008e30: f019 091f ands.w r9, r9, #31 - 8008e34: eb01 018a add.w r1, r1, sl, lsl #2 - 8008e38: eb03 0c80 add.w ip, r3, r0, lsl #2 - 8008e3c: d02b beq.n 8008e96 <__lshift+0xbe> - 8008e3e: 468a mov sl, r1 - 8008e40: 2200 movs r2, #0 - 8008e42: f1c9 0e20 rsb lr, r9, #32 - 8008e46: 6818 ldr r0, [r3, #0] - 8008e48: fa00 f009 lsl.w r0, r0, r9 - 8008e4c: 4302 orrs r2, r0 - 8008e4e: f84a 2b04 str.w r2, [sl], #4 - 8008e52: f853 2b04 ldr.w r2, [r3], #4 - 8008e56: 459c cmp ip, r3 - 8008e58: fa22 f20e lsr.w r2, r2, lr - 8008e5c: d8f3 bhi.n 8008e46 <__lshift+0x6e> - 8008e5e: ebac 0304 sub.w r3, ip, r4 - 8008e62: 3b15 subs r3, #21 - 8008e64: f023 0303 bic.w r3, r3, #3 - 8008e68: 3304 adds r3, #4 - 8008e6a: f104 0015 add.w r0, r4, #21 - 8008e6e: 4584 cmp ip, r0 - 8008e70: bf38 it cc - 8008e72: 2304 movcc r3, #4 - 8008e74: 50ca str r2, [r1, r3] - 8008e76: b10a cbz r2, 8008e7c <__lshift+0xa4> - 8008e78: f108 0602 add.w r6, r8, #2 - 8008e7c: 3e01 subs r6, #1 - 8008e7e: 4638 mov r0, r7 - 8008e80: 4621 mov r1, r4 - 8008e82: 612e str r6, [r5, #16] - 8008e84: f7ff fdda bl 8008a3c <_Bfree> - 8008e88: 4628 mov r0, r5 - 8008e8a: e8bd 87f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, pc} - 8008e8e: f842 0f04 str.w r0, [r2, #4]! - 8008e92: 3301 adds r3, #1 - 8008e94: e7c5 b.n 8008e22 <__lshift+0x4a> - 8008e96: 3904 subs r1, #4 - 8008e98: f853 2b04 ldr.w r2, [r3], #4 - 8008e9c: 459c cmp ip, r3 - 8008e9e: f841 2f04 str.w r2, [r1, #4]! - 8008ea2: d8f9 bhi.n 8008e98 <__lshift+0xc0> - 8008ea4: e7ea b.n 8008e7c <__lshift+0xa4> +08008bc8 <__lshift>: + 8008bc8: e92d 47f0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, lr} + 8008bcc: 460c mov r4, r1 + 8008bce: 4607 mov r7, r0 + 8008bd0: 4691 mov r9, r2 + 8008bd2: 6923 ldr r3, [r4, #16] + 8008bd4: 6849 ldr r1, [r1, #4] + 8008bd6: eb03 1862 add.w r8, r3, r2, asr #5 + 8008bda: 68a3 ldr r3, [r4, #8] + 8008bdc: ea4f 1a62 mov.w sl, r2, asr #5 + 8008be0: f108 0601 add.w r6, r8, #1 + 8008be4: 42b3 cmp r3, r6 + 8008be6: db0b blt.n 8008c00 <__lshift+0x38> + 8008be8: 4638 mov r0, r7 + 8008bea: f7ff fddf bl 80087ac <_Balloc> + 8008bee: 4605 mov r5, r0 + 8008bf0: b948 cbnz r0, 8008c06 <__lshift+0x3e> + 8008bf2: 4602 mov r2, r0 + 8008bf4: f240 11d9 movw r1, #473 ; 0x1d9 + 8008bf8: 4b27 ldr r3, [pc, #156] ; (8008c98 <__lshift+0xd0>) + 8008bfa: 4828 ldr r0, [pc, #160] ; (8008c9c <__lshift+0xd4>) + 8008bfc: f000 fac2 bl 8009184 <__assert_func> + 8008c00: 3101 adds r1, #1 + 8008c02: 005b lsls r3, r3, #1 + 8008c04: e7ee b.n 8008be4 <__lshift+0x1c> + 8008c06: 2300 movs r3, #0 + 8008c08: f100 0114 add.w r1, r0, #20 + 8008c0c: f100 0210 add.w r2, r0, #16 + 8008c10: 4618 mov r0, r3 + 8008c12: 4553 cmp r3, sl + 8008c14: db33 blt.n 8008c7e <__lshift+0xb6> + 8008c16: 6920 ldr r0, [r4, #16] + 8008c18: ea2a 7aea bic.w sl, sl, sl, asr #31 + 8008c1c: f104 0314 add.w r3, r4, #20 + 8008c20: f019 091f ands.w r9, r9, #31 + 8008c24: eb01 018a add.w r1, r1, sl, lsl #2 + 8008c28: eb03 0c80 add.w ip, r3, r0, lsl #2 + 8008c2c: d02b beq.n 8008c86 <__lshift+0xbe> + 8008c2e: 468a mov sl, r1 + 8008c30: 2200 movs r2, #0 + 8008c32: f1c9 0e20 rsb lr, r9, #32 + 8008c36: 6818 ldr r0, [r3, #0] + 8008c38: fa00 f009 lsl.w r0, r0, r9 + 8008c3c: 4302 orrs r2, r0 + 8008c3e: f84a 2b04 str.w r2, [sl], #4 + 8008c42: f853 2b04 ldr.w r2, [r3], #4 + 8008c46: 459c cmp ip, r3 + 8008c48: fa22 f20e lsr.w r2, r2, lr + 8008c4c: d8f3 bhi.n 8008c36 <__lshift+0x6e> + 8008c4e: ebac 0304 sub.w r3, ip, r4 + 8008c52: 3b15 subs r3, #21 + 8008c54: f023 0303 bic.w r3, r3, #3 + 8008c58: 3304 adds r3, #4 + 8008c5a: f104 0015 add.w r0, r4, #21 + 8008c5e: 4584 cmp ip, r0 + 8008c60: bf38 it cc + 8008c62: 2304 movcc r3, #4 + 8008c64: 50ca str r2, [r1, r3] + 8008c66: b10a cbz r2, 8008c6c <__lshift+0xa4> + 8008c68: f108 0602 add.w r6, r8, #2 + 8008c6c: 3e01 subs r6, #1 + 8008c6e: 4638 mov r0, r7 + 8008c70: 4621 mov r1, r4 + 8008c72: 612e str r6, [r5, #16] + 8008c74: f7ff fdda bl 800882c <_Bfree> + 8008c78: 4628 mov r0, r5 + 8008c7a: e8bd 87f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, pc} + 8008c7e: f842 0f04 str.w r0, [r2, #4]! + 8008c82: 3301 adds r3, #1 + 8008c84: e7c5 b.n 8008c12 <__lshift+0x4a> + 8008c86: 3904 subs r1, #4 + 8008c88: f853 2b04 ldr.w r2, [r3], #4 + 8008c8c: 459c cmp ip, r3 + 8008c8e: f841 2f04 str.w r2, [r1, #4]! + 8008c92: d8f9 bhi.n 8008c88 <__lshift+0xc0> + 8008c94: e7ea b.n 8008c6c <__lshift+0xa4> + 8008c96: bf00 nop + 8008c98: 0800a92f .word 0x0800a92f + 8008c9c: 0800a940 .word 0x0800a940 + +08008ca0 <__mcmp>: + 8008ca0: 4603 mov r3, r0 + 8008ca2: 690a ldr r2, [r1, #16] + 8008ca4: 6900 ldr r0, [r0, #16] + 8008ca6: b530 push {r4, r5, lr} + 8008ca8: 1a80 subs r0, r0, r2 + 8008caa: d10d bne.n 8008cc8 <__mcmp+0x28> + 8008cac: 3314 adds r3, #20 + 8008cae: 3114 adds r1, #20 + 8008cb0: eb03 0482 add.w r4, r3, r2, lsl #2 + 8008cb4: eb01 0182 add.w r1, r1, r2, lsl #2 + 8008cb8: f854 5d04 ldr.w r5, [r4, #-4]! + 8008cbc: f851 2d04 ldr.w r2, [r1, #-4]! + 8008cc0: 4295 cmp r5, r2 + 8008cc2: d002 beq.n 8008cca <__mcmp+0x2a> + 8008cc4: d304 bcc.n 8008cd0 <__mcmp+0x30> + 8008cc6: 2001 movs r0, #1 + 8008cc8: bd30 pop {r4, r5, pc} + 8008cca: 42a3 cmp r3, r4 + 8008ccc: d3f4 bcc.n 8008cb8 <__mcmp+0x18> + 8008cce: e7fb b.n 8008cc8 <__mcmp+0x28> + 8008cd0: f04f 30ff mov.w r0, #4294967295 ; 0xffffffff + 8008cd4: e7f8 b.n 8008cc8 <__mcmp+0x28> + ... + +08008cd8 <__mdiff>: + 8008cd8: e92d 4ff8 stmdb sp!, {r3, r4, r5, r6, r7, r8, r9, sl, fp, lr} + 8008cdc: 460c mov r4, r1 + 8008cde: 4606 mov r6, r0 + 8008ce0: 4611 mov r1, r2 + 8008ce2: 4620 mov r0, r4 + 8008ce4: 4692 mov sl, r2 + 8008ce6: f7ff ffdb bl 8008ca0 <__mcmp> + 8008cea: 1e05 subs r5, r0, #0 + 8008cec: d111 bne.n 8008d12 <__mdiff+0x3a> + 8008cee: 4629 mov r1, r5 + 8008cf0: 4630 mov r0, r6 + 8008cf2: f7ff fd5b bl 80087ac <_Balloc> + 8008cf6: 4602 mov r2, r0 + 8008cf8: b928 cbnz r0, 8008d06 <__mdiff+0x2e> + 8008cfa: f240 2132 movw r1, #562 ; 0x232 + 8008cfe: 4b3c ldr r3, [pc, #240] ; (8008df0 <__mdiff+0x118>) + 8008d00: 483c ldr r0, [pc, #240] ; (8008df4 <__mdiff+0x11c>) + 8008d02: f000 fa3f bl 8009184 <__assert_func> + 8008d06: 2301 movs r3, #1 + 8008d08: e9c0 3504 strd r3, r5, [r0, #16] + 8008d0c: 4610 mov r0, r2 + 8008d0e: e8bd 8ff8 ldmia.w sp!, {r3, r4, r5, r6, r7, r8, r9, sl, fp, pc} + 8008d12: bfa4 itt ge + 8008d14: 4653 movge r3, sl + 8008d16: 46a2 movge sl, r4 + 8008d18: 4630 mov r0, r6 + 8008d1a: f8da 1004 ldr.w r1, [sl, #4] + 8008d1e: bfa6 itte ge + 8008d20: 461c movge r4, r3 + 8008d22: 2500 movge r5, #0 + 8008d24: 2501 movlt r5, #1 + 8008d26: f7ff fd41 bl 80087ac <_Balloc> + 8008d2a: 4602 mov r2, r0 + 8008d2c: b918 cbnz r0, 8008d36 <__mdiff+0x5e> + 8008d2e: f44f 7110 mov.w r1, #576 ; 0x240 + 8008d32: 4b2f ldr r3, [pc, #188] ; (8008df0 <__mdiff+0x118>) + 8008d34: e7e4 b.n 8008d00 <__mdiff+0x28> + 8008d36: f100 0814 add.w r8, r0, #20 + 8008d3a: f8da 7010 ldr.w r7, [sl, #16] + 8008d3e: 60c5 str r5, [r0, #12] + 8008d40: f04f 0c00 mov.w ip, #0 + 8008d44: f10a 0514 add.w r5, sl, #20 + 8008d48: f10a 0010 add.w r0, sl, #16 + 8008d4c: 46c2 mov sl, r8 + 8008d4e: 6926 ldr r6, [r4, #16] + 8008d50: f104 0914 add.w r9, r4, #20 + 8008d54: eb05 0e87 add.w lr, r5, r7, lsl #2 + 8008d58: eb09 0686 add.w r6, r9, r6, lsl #2 + 8008d5c: f850 bf04 ldr.w fp, [r0, #4]! + 8008d60: f859 3b04 ldr.w r3, [r9], #4 + 8008d64: fa1f f18b uxth.w r1, fp + 8008d68: 4461 add r1, ip + 8008d6a: fa1f fc83 uxth.w ip, r3 + 8008d6e: 0c1b lsrs r3, r3, #16 + 8008d70: eba1 010c sub.w r1, r1, ip + 8008d74: ebc3 431b rsb r3, r3, fp, lsr #16 + 8008d78: eb03 4321 add.w r3, r3, r1, asr #16 + 8008d7c: b289 uxth r1, r1 + 8008d7e: ea4f 4c23 mov.w ip, r3, asr #16 + 8008d82: 454e cmp r6, r9 + 8008d84: ea41 4303 orr.w r3, r1, r3, lsl #16 + 8008d88: f84a 3b04 str.w r3, [sl], #4 + 8008d8c: d8e6 bhi.n 8008d5c <__mdiff+0x84> + 8008d8e: 1b33 subs r3, r6, r4 + 8008d90: 3b15 subs r3, #21 + 8008d92: f023 0303 bic.w r3, r3, #3 + 8008d96: 3415 adds r4, #21 + 8008d98: 3304 adds r3, #4 + 8008d9a: 42a6 cmp r6, r4 + 8008d9c: bf38 it cc + 8008d9e: 2304 movcc r3, #4 + 8008da0: 441d add r5, r3 + 8008da2: 4443 add r3, r8 + 8008da4: 461e mov r6, r3 + 8008da6: 462c mov r4, r5 + 8008da8: 4574 cmp r4, lr + 8008daa: d30e bcc.n 8008dca <__mdiff+0xf2> + 8008dac: f10e 0103 add.w r1, lr, #3 + 8008db0: 1b49 subs r1, r1, r5 + 8008db2: f021 0103 bic.w r1, r1, #3 + 8008db6: 3d03 subs r5, #3 + 8008db8: 45ae cmp lr, r5 + 8008dba: bf38 it cc + 8008dbc: 2100 movcc r1, #0 + 8008dbe: 4419 add r1, r3 + 8008dc0: f851 3d04 ldr.w r3, [r1, #-4]! + 8008dc4: b18b cbz r3, 8008dea <__mdiff+0x112> + 8008dc6: 6117 str r7, [r2, #16] + 8008dc8: e7a0 b.n 8008d0c <__mdiff+0x34> + 8008dca: f854 8b04 ldr.w r8, [r4], #4 + 8008dce: fa1f f188 uxth.w r1, r8 + 8008dd2: 4461 add r1, ip + 8008dd4: 1408 asrs r0, r1, #16 + 8008dd6: eb00 4018 add.w r0, r0, r8, lsr #16 + 8008dda: b289 uxth r1, r1 + 8008ddc: ea41 4100 orr.w r1, r1, r0, lsl #16 + 8008de0: ea4f 4c20 mov.w ip, r0, asr #16 + 8008de4: f846 1b04 str.w r1, [r6], #4 + 8008de8: e7de b.n 8008da8 <__mdiff+0xd0> + 8008dea: 3f01 subs r7, #1 + 8008dec: e7e8 b.n 8008dc0 <__mdiff+0xe8> + 8008dee: bf00 nop + 8008df0: 0800a92f .word 0x0800a92f + 8008df4: 0800a940 .word 0x0800a940 + +08008df8 <__d2b>: + 8008df8: e92d 41f3 stmdb sp!, {r0, r1, r4, r5, r6, r7, r8, lr} + 8008dfc: 2101 movs r1, #1 + 8008dfe: e9dd 7608 ldrd r7, r6, [sp, #32] + 8008e02: 4690 mov r8, r2 + 8008e04: 461d mov r5, r3 + 8008e06: f7ff fcd1 bl 80087ac <_Balloc> + 8008e0a: 4604 mov r4, r0 + 8008e0c: b930 cbnz r0, 8008e1c <__d2b+0x24> + 8008e0e: 4602 mov r2, r0 + 8008e10: f240 310a movw r1, #778 ; 0x30a + 8008e14: 4b24 ldr r3, [pc, #144] ; (8008ea8 <__d2b+0xb0>) + 8008e16: 4825 ldr r0, [pc, #148] ; (8008eac <__d2b+0xb4>) + 8008e18: f000 f9b4 bl 8009184 <__assert_func> + 8008e1c: f3c5 0313 ubfx r3, r5, #0, #20 + 8008e20: f3c5 550a ubfx r5, r5, #20, #11 + 8008e24: bb2d cbnz r5, 8008e72 <__d2b+0x7a> + 8008e26: 9301 str r3, [sp, #4] + 8008e28: f1b8 0300 subs.w r3, r8, #0 + 8008e2c: d026 beq.n 8008e7c <__d2b+0x84> + 8008e2e: 4668 mov r0, sp + 8008e30: 9300 str r3, [sp, #0] + 8008e32: f7ff fd87 bl 8008944 <__lo0bits> + 8008e36: 9900 ldr r1, [sp, #0] + 8008e38: b1f0 cbz r0, 8008e78 <__d2b+0x80> + 8008e3a: 9a01 ldr r2, [sp, #4] + 8008e3c: f1c0 0320 rsb r3, r0, #32 + 8008e40: fa02 f303 lsl.w r3, r2, r3 + 8008e44: 430b orrs r3, r1 + 8008e46: 40c2 lsrs r2, r0 + 8008e48: 6163 str r3, [r4, #20] + 8008e4a: 9201 str r2, [sp, #4] + 8008e4c: 9b01 ldr r3, [sp, #4] + 8008e4e: 2b00 cmp r3, #0 + 8008e50: bf14 ite ne + 8008e52: 2102 movne r1, #2 + 8008e54: 2101 moveq r1, #1 + 8008e56: 61a3 str r3, [r4, #24] + 8008e58: 6121 str r1, [r4, #16] + 8008e5a: b1c5 cbz r5, 8008e8e <__d2b+0x96> + 8008e5c: f2a5 4533 subw r5, r5, #1075 ; 0x433 + 8008e60: 4405 add r5, r0 + 8008e62: f1c0 0035 rsb r0, r0, #53 ; 0x35 + 8008e66: 603d str r5, [r7, #0] + 8008e68: 6030 str r0, [r6, #0] + 8008e6a: 4620 mov r0, r4 + 8008e6c: b002 add sp, #8 + 8008e6e: e8bd 81f0 ldmia.w sp!, {r4, r5, r6, r7, r8, pc} + 8008e72: f443 1380 orr.w r3, r3, #1048576 ; 0x100000 + 8008e76: e7d6 b.n 8008e26 <__d2b+0x2e> + 8008e78: 6161 str r1, [r4, #20] + 8008e7a: e7e7 b.n 8008e4c <__d2b+0x54> + 8008e7c: a801 add r0, sp, #4 + 8008e7e: f7ff fd61 bl 8008944 <__lo0bits> + 8008e82: 2101 movs r1, #1 + 8008e84: 9b01 ldr r3, [sp, #4] + 8008e86: 6121 str r1, [r4, #16] + 8008e88: 6163 str r3, [r4, #20] + 8008e8a: 3020 adds r0, #32 + 8008e8c: e7e5 b.n 8008e5a <__d2b+0x62> + 8008e8e: eb04 0381 add.w r3, r4, r1, lsl #2 + 8008e92: f2a0 4032 subw r0, r0, #1074 ; 0x432 + 8008e96: 6038 str r0, [r7, #0] + 8008e98: 6918 ldr r0, [r3, #16] + 8008e9a: f7ff fd33 bl 8008904 <__hi0bits> + 8008e9e: ebc0 1141 rsb r1, r0, r1, lsl #5 + 8008ea2: 6031 str r1, [r6, #0] + 8008ea4: e7e1 b.n 8008e6a <__d2b+0x72> 8008ea6: bf00 nop - 8008ea8: 0800af93 .word 0x0800af93 - 8008eac: 0800afa4 .word 0x0800afa4 + 8008ea8: 0800a92f .word 0x0800a92f + 8008eac: 0800a940 .word 0x0800a940 -08008eb0 <__mcmp>: - 8008eb0: 4603 mov r3, r0 - 8008eb2: 690a ldr r2, [r1, #16] - 8008eb4: 6900 ldr r0, [r0, #16] - 8008eb6: b530 push {r4, r5, lr} - 8008eb8: 1a80 subs r0, r0, r2 - 8008eba: d10d bne.n 8008ed8 <__mcmp+0x28> - 8008ebc: 3314 adds r3, #20 - 8008ebe: 3114 adds r1, #20 - 8008ec0: eb03 0482 add.w r4, r3, r2, lsl #2 - 8008ec4: eb01 0182 add.w r1, r1, r2, lsl #2 - 8008ec8: f854 5d04 ldr.w r5, [r4, #-4]! - 8008ecc: f851 2d04 ldr.w r2, [r1, #-4]! - 8008ed0: 4295 cmp r5, r2 - 8008ed2: d002 beq.n 8008eda <__mcmp+0x2a> - 8008ed4: d304 bcc.n 8008ee0 <__mcmp+0x30> - 8008ed6: 2001 movs r0, #1 - 8008ed8: bd30 pop {r4, r5, pc} - 8008eda: 42a3 cmp r3, r4 - 8008edc: d3f4 bcc.n 8008ec8 <__mcmp+0x18> - 8008ede: e7fb b.n 8008ed8 <__mcmp+0x28> - 8008ee0: f04f 30ff mov.w r0, #4294967295 ; 0xffffffff - 8008ee4: e7f8 b.n 8008ed8 <__mcmp+0x28> +08008eb0 <_calloc_r>: + 8008eb0: b538 push {r3, r4, r5, lr} + 8008eb2: fb02 f501 mul.w r5, r2, r1 + 8008eb6: 4629 mov r1, r5 + 8008eb8: f7fe f8e4 bl 8007084 <_malloc_r> + 8008ebc: 4604 mov r4, r0 + 8008ebe: b118 cbz r0, 8008ec8 <_calloc_r+0x18> + 8008ec0: 462a mov r2, r5 + 8008ec2: 2100 movs r1, #0 + 8008ec4: f7fe f88a bl 8006fdc + 8008ec8: 4620 mov r0, r4 + 8008eca: bd38 pop {r3, r4, r5, pc} + +08008ecc <__ssputs_r>: + 8008ecc: e92d 47f0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, lr} + 8008ed0: 688e ldr r6, [r1, #8] + 8008ed2: 4682 mov sl, r0 + 8008ed4: 429e cmp r6, r3 + 8008ed6: 460c mov r4, r1 + 8008ed8: 4690 mov r8, r2 + 8008eda: 461f mov r7, r3 + 8008edc: d838 bhi.n 8008f50 <__ssputs_r+0x84> + 8008ede: 898a ldrh r2, [r1, #12] + 8008ee0: f412 6f90 tst.w r2, #1152 ; 0x480 + 8008ee4: d032 beq.n 8008f4c <__ssputs_r+0x80> + 8008ee6: 6825 ldr r5, [r4, #0] + 8008ee8: 6909 ldr r1, [r1, #16] + 8008eea: 3301 adds r3, #1 + 8008eec: eba5 0901 sub.w r9, r5, r1 + 8008ef0: 6965 ldr r5, [r4, #20] + 8008ef2: 444b add r3, r9 + 8008ef4: eb05 0545 add.w r5, r5, r5, lsl #1 + 8008ef8: eb05 75d5 add.w r5, r5, r5, lsr #31 + 8008efc: 106d asrs r5, r5, #1 + 8008efe: 429d cmp r5, r3 + 8008f00: bf38 it cc + 8008f02: 461d movcc r5, r3 + 8008f04: 0553 lsls r3, r2, #21 + 8008f06: d531 bpl.n 8008f6c <__ssputs_r+0xa0> + 8008f08: 4629 mov r1, r5 + 8008f0a: f7fe f8bb bl 8007084 <_malloc_r> + 8008f0e: 4606 mov r6, r0 + 8008f10: b950 cbnz r0, 8008f28 <__ssputs_r+0x5c> + 8008f12: 230c movs r3, #12 + 8008f14: f04f 30ff mov.w r0, #4294967295 ; 0xffffffff + 8008f18: f8ca 3000 str.w r3, [sl] + 8008f1c: 89a3 ldrh r3, [r4, #12] + 8008f1e: f043 0340 orr.w r3, r3, #64 ; 0x40 + 8008f22: 81a3 strh r3, [r4, #12] + 8008f24: e8bd 87f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, pc} + 8008f28: 464a mov r2, r9 + 8008f2a: 6921 ldr r1, [r4, #16] + 8008f2c: f7ff fc24 bl 8008778 + 8008f30: 89a3 ldrh r3, [r4, #12] + 8008f32: f423 6390 bic.w r3, r3, #1152 ; 0x480 + 8008f36: f043 0380 orr.w r3, r3, #128 ; 0x80 + 8008f3a: 81a3 strh r3, [r4, #12] + 8008f3c: 6126 str r6, [r4, #16] + 8008f3e: 444e add r6, r9 + 8008f40: 6026 str r6, [r4, #0] + 8008f42: 463e mov r6, r7 + 8008f44: 6165 str r5, [r4, #20] + 8008f46: eba5 0509 sub.w r5, r5, r9 + 8008f4a: 60a5 str r5, [r4, #8] + 8008f4c: 42be cmp r6, r7 + 8008f4e: d900 bls.n 8008f52 <__ssputs_r+0x86> + 8008f50: 463e mov r6, r7 + 8008f52: 4632 mov r2, r6 + 8008f54: 4641 mov r1, r8 + 8008f56: 6820 ldr r0, [r4, #0] + 8008f58: f000 f959 bl 800920e + 8008f5c: 68a3 ldr r3, [r4, #8] + 8008f5e: 6822 ldr r2, [r4, #0] + 8008f60: 1b9b subs r3, r3, r6 + 8008f62: 4432 add r2, r6 + 8008f64: 2000 movs r0, #0 + 8008f66: 60a3 str r3, [r4, #8] + 8008f68: 6022 str r2, [r4, #0] + 8008f6a: e7db b.n 8008f24 <__ssputs_r+0x58> + 8008f6c: 462a mov r2, r5 + 8008f6e: f000 f968 bl 8009242 <_realloc_r> + 8008f72: 4606 mov r6, r0 + 8008f74: 2800 cmp r0, #0 + 8008f76: d1e1 bne.n 8008f3c <__ssputs_r+0x70> + 8008f78: 4650 mov r0, sl + 8008f7a: 6921 ldr r1, [r4, #16] + 8008f7c: f7fe f836 bl 8006fec <_free_r> + 8008f80: e7c7 b.n 8008f12 <__ssputs_r+0x46> ... -08008ee8 <__mdiff>: - 8008ee8: e92d 4ff8 stmdb sp!, {r3, r4, r5, r6, r7, r8, r9, sl, fp, lr} - 8008eec: 460c mov r4, r1 - 8008eee: 4606 mov r6, r0 - 8008ef0: 4611 mov r1, r2 - 8008ef2: 4620 mov r0, r4 - 8008ef4: 4692 mov sl, r2 - 8008ef6: f7ff ffdb bl 8008eb0 <__mcmp> - 8008efa: 1e05 subs r5, r0, #0 - 8008efc: d111 bne.n 8008f22 <__mdiff+0x3a> - 8008efe: 4629 mov r1, r5 - 8008f00: 4630 mov r0, r6 - 8008f02: f7ff fd5b bl 80089bc <_Balloc> - 8008f06: 4602 mov r2, r0 - 8008f08: b928 cbnz r0, 8008f16 <__mdiff+0x2e> - 8008f0a: f240 2132 movw r1, #562 ; 0x232 - 8008f0e: 4b3c ldr r3, [pc, #240] ; (8009000 <__mdiff+0x118>) - 8008f10: 483c ldr r0, [pc, #240] ; (8009004 <__mdiff+0x11c>) - 8008f12: f000 fa3f bl 8009394 <__assert_func> - 8008f16: 2301 movs r3, #1 - 8008f18: e9c0 3504 strd r3, r5, [r0, #16] - 8008f1c: 4610 mov r0, r2 - 8008f1e: e8bd 8ff8 ldmia.w sp!, {r3, r4, r5, r6, r7, r8, r9, sl, fp, pc} - 8008f22: bfa4 itt ge - 8008f24: 4653 movge r3, sl - 8008f26: 46a2 movge sl, r4 - 8008f28: 4630 mov r0, r6 - 8008f2a: f8da 1004 ldr.w r1, [sl, #4] - 8008f2e: bfa6 itte ge - 8008f30: 461c movge r4, r3 - 8008f32: 2500 movge r5, #0 - 8008f34: 2501 movlt r5, #1 - 8008f36: f7ff fd41 bl 80089bc <_Balloc> - 8008f3a: 4602 mov r2, r0 - 8008f3c: b918 cbnz r0, 8008f46 <__mdiff+0x5e> - 8008f3e: f44f 7110 mov.w r1, #576 ; 0x240 - 8008f42: 4b2f ldr r3, [pc, #188] ; (8009000 <__mdiff+0x118>) - 8008f44: e7e4 b.n 8008f10 <__mdiff+0x28> - 8008f46: f100 0814 add.w r8, r0, #20 - 8008f4a: f8da 7010 ldr.w r7, [sl, #16] - 8008f4e: 60c5 str r5, [r0, #12] - 8008f50: f04f 0c00 mov.w ip, #0 - 8008f54: f10a 0514 add.w r5, sl, #20 - 8008f58: f10a 0010 add.w r0, sl, #16 - 8008f5c: 46c2 mov sl, r8 - 8008f5e: 6926 ldr r6, [r4, #16] - 8008f60: f104 0914 add.w r9, r4, #20 - 8008f64: eb05 0e87 add.w lr, r5, r7, lsl #2 - 8008f68: eb09 0686 add.w r6, r9, r6, lsl #2 - 8008f6c: f850 bf04 ldr.w fp, [r0, #4]! - 8008f70: f859 3b04 ldr.w r3, [r9], #4 - 8008f74: fa1f f18b uxth.w r1, fp - 8008f78: 4461 add r1, ip - 8008f7a: fa1f fc83 uxth.w ip, r3 - 8008f7e: 0c1b lsrs r3, r3, #16 - 8008f80: eba1 010c sub.w r1, r1, ip - 8008f84: ebc3 431b rsb r3, r3, fp, lsr #16 - 8008f88: eb03 4321 add.w r3, r3, r1, asr #16 - 8008f8c: b289 uxth r1, r1 - 8008f8e: ea4f 4c23 mov.w ip, r3, asr #16 - 8008f92: 454e cmp r6, r9 - 8008f94: ea41 4303 orr.w r3, r1, r3, lsl #16 - 8008f98: f84a 3b04 str.w r3, [sl], #4 - 8008f9c: d8e6 bhi.n 8008f6c <__mdiff+0x84> - 8008f9e: 1b33 subs r3, r6, r4 - 8008fa0: 3b15 subs r3, #21 - 8008fa2: f023 0303 bic.w r3, r3, #3 - 8008fa6: 3415 adds r4, #21 - 8008fa8: 3304 adds r3, #4 - 8008faa: 42a6 cmp r6, r4 - 8008fac: bf38 it cc - 8008fae: 2304 movcc r3, #4 - 8008fb0: 441d add r5, r3 - 8008fb2: 4443 add r3, r8 - 8008fb4: 461e mov r6, r3 - 8008fb6: 462c mov r4, r5 - 8008fb8: 4574 cmp r4, lr - 8008fba: d30e bcc.n 8008fda <__mdiff+0xf2> - 8008fbc: f10e 0103 add.w r1, lr, #3 - 8008fc0: 1b49 subs r1, r1, r5 - 8008fc2: f021 0103 bic.w r1, r1, #3 - 8008fc6: 3d03 subs r5, #3 - 8008fc8: 45ae cmp lr, r5 - 8008fca: bf38 it cc - 8008fcc: 2100 movcc r1, #0 - 8008fce: 4419 add r1, r3 - 8008fd0: f851 3d04 ldr.w r3, [r1, #-4]! - 8008fd4: b18b cbz r3, 8008ffa <__mdiff+0x112> - 8008fd6: 6117 str r7, [r2, #16] - 8008fd8: e7a0 b.n 8008f1c <__mdiff+0x34> - 8008fda: f854 8b04 ldr.w r8, [r4], #4 - 8008fde: fa1f f188 uxth.w r1, r8 - 8008fe2: 4461 add r1, ip - 8008fe4: 1408 asrs r0, r1, #16 - 8008fe6: eb00 4018 add.w r0, r0, r8, lsr #16 - 8008fea: b289 uxth r1, r1 - 8008fec: ea41 4100 orr.w r1, r1, r0, lsl #16 - 8008ff0: ea4f 4c20 mov.w ip, r0, asr #16 - 8008ff4: f846 1b04 str.w r1, [r6], #4 - 8008ff8: e7de b.n 8008fb8 <__mdiff+0xd0> - 8008ffa: 3f01 subs r7, #1 - 8008ffc: e7e8 b.n 8008fd0 <__mdiff+0xe8> - 8008ffe: bf00 nop - 8009000: 0800af93 .word 0x0800af93 - 8009004: 0800afa4 .word 0x0800afa4 +08008f84 <_svfiprintf_r>: + 8008f84: e92d 4ff0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, fp, lr} + 8008f88: 4698 mov r8, r3 + 8008f8a: 898b ldrh r3, [r1, #12] + 8008f8c: 4607 mov r7, r0 + 8008f8e: 061b lsls r3, r3, #24 + 8008f90: 460d mov r5, r1 + 8008f92: 4614 mov r4, r2 + 8008f94: b09d sub sp, #116 ; 0x74 + 8008f96: d50e bpl.n 8008fb6 <_svfiprintf_r+0x32> + 8008f98: 690b ldr r3, [r1, #16] + 8008f9a: b963 cbnz r3, 8008fb6 <_svfiprintf_r+0x32> + 8008f9c: 2140 movs r1, #64 ; 0x40 + 8008f9e: f7fe f871 bl 8007084 <_malloc_r> + 8008fa2: 6028 str r0, [r5, #0] + 8008fa4: 6128 str r0, [r5, #16] + 8008fa6: b920 cbnz r0, 8008fb2 <_svfiprintf_r+0x2e> + 8008fa8: 230c movs r3, #12 + 8008faa: 603b str r3, [r7, #0] + 8008fac: f04f 30ff mov.w r0, #4294967295 ; 0xffffffff + 8008fb0: e0d1 b.n 8009156 <_svfiprintf_r+0x1d2> + 8008fb2: 2340 movs r3, #64 ; 0x40 + 8008fb4: 616b str r3, [r5, #20] + 8008fb6: 2300 movs r3, #0 + 8008fb8: 9309 str r3, [sp, #36] ; 0x24 + 8008fba: 2320 movs r3, #32 + 8008fbc: f88d 3029 strb.w r3, [sp, #41] ; 0x29 + 8008fc0: 2330 movs r3, #48 ; 0x30 + 8008fc2: f04f 0901 mov.w r9, #1 + 8008fc6: f8cd 800c str.w r8, [sp, #12] + 8008fca: f8df 81a4 ldr.w r8, [pc, #420] ; 8009170 <_svfiprintf_r+0x1ec> + 8008fce: f88d 302a strb.w r3, [sp, #42] ; 0x2a + 8008fd2: 4623 mov r3, r4 + 8008fd4: 469a mov sl, r3 + 8008fd6: f813 2b01 ldrb.w r2, [r3], #1 + 8008fda: b10a cbz r2, 8008fe0 <_svfiprintf_r+0x5c> + 8008fdc: 2a25 cmp r2, #37 ; 0x25 + 8008fde: d1f9 bne.n 8008fd4 <_svfiprintf_r+0x50> + 8008fe0: ebba 0b04 subs.w fp, sl, r4 + 8008fe4: d00b beq.n 8008ffe <_svfiprintf_r+0x7a> + 8008fe6: 465b mov r3, fp + 8008fe8: 4622 mov r2, r4 + 8008fea: 4629 mov r1, r5 + 8008fec: 4638 mov r0, r7 + 8008fee: f7ff ff6d bl 8008ecc <__ssputs_r> + 8008ff2: 3001 adds r0, #1 + 8008ff4: f000 80aa beq.w 800914c <_svfiprintf_r+0x1c8> + 8008ff8: 9a09 ldr r2, [sp, #36] ; 0x24 + 8008ffa: 445a add r2, fp + 8008ffc: 9209 str r2, [sp, #36] ; 0x24 + 8008ffe: f89a 3000 ldrb.w r3, [sl] + 8009002: 2b00 cmp r3, #0 + 8009004: f000 80a2 beq.w 800914c <_svfiprintf_r+0x1c8> + 8009008: 2300 movs r3, #0 + 800900a: f04f 32ff mov.w r2, #4294967295 ; 0xffffffff + 800900e: e9cd 2305 strd r2, r3, [sp, #20] + 8009012: f10a 0a01 add.w sl, sl, #1 + 8009016: 9304 str r3, [sp, #16] + 8009018: 9307 str r3, [sp, #28] + 800901a: f88d 3053 strb.w r3, [sp, #83] ; 0x53 + 800901e: 931a str r3, [sp, #104] ; 0x68 + 8009020: 4654 mov r4, sl + 8009022: 2205 movs r2, #5 + 8009024: f814 1b01 ldrb.w r1, [r4], #1 + 8009028: 4851 ldr r0, [pc, #324] ; (8009170 <_svfiprintf_r+0x1ec>) + 800902a: f7ff fb97 bl 800875c + 800902e: 9a04 ldr r2, [sp, #16] + 8009030: b9d8 cbnz r0, 800906a <_svfiprintf_r+0xe6> + 8009032: 06d0 lsls r0, r2, #27 + 8009034: bf44 itt mi + 8009036: 2320 movmi r3, #32 + 8009038: f88d 3053 strbmi.w r3, [sp, #83] ; 0x53 + 800903c: 0711 lsls r1, r2, #28 + 800903e: bf44 itt mi + 8009040: 232b movmi r3, #43 ; 0x2b + 8009042: f88d 3053 strbmi.w r3, [sp, #83] ; 0x53 + 8009046: f89a 3000 ldrb.w r3, [sl] + 800904a: 2b2a cmp r3, #42 ; 0x2a + 800904c: d015 beq.n 800907a <_svfiprintf_r+0xf6> + 800904e: 4654 mov r4, sl + 8009050: 2000 movs r0, #0 + 8009052: f04f 0c0a mov.w ip, #10 + 8009056: 9a07 ldr r2, [sp, #28] + 8009058: 4621 mov r1, r4 + 800905a: f811 3b01 ldrb.w r3, [r1], #1 + 800905e: 3b30 subs r3, #48 ; 0x30 + 8009060: 2b09 cmp r3, #9 + 8009062: d94e bls.n 8009102 <_svfiprintf_r+0x17e> + 8009064: b1b0 cbz r0, 8009094 <_svfiprintf_r+0x110> + 8009066: 9207 str r2, [sp, #28] + 8009068: e014 b.n 8009094 <_svfiprintf_r+0x110> + 800906a: eba0 0308 sub.w r3, r0, r8 + 800906e: fa09 f303 lsl.w r3, r9, r3 + 8009072: 4313 orrs r3, r2 + 8009074: 46a2 mov sl, r4 + 8009076: 9304 str r3, [sp, #16] + 8009078: e7d2 b.n 8009020 <_svfiprintf_r+0x9c> + 800907a: 9b03 ldr r3, [sp, #12] + 800907c: 1d19 adds r1, r3, #4 + 800907e: 681b ldr r3, [r3, #0] + 8009080: 9103 str r1, [sp, #12] + 8009082: 2b00 cmp r3, #0 + 8009084: bfbb ittet lt + 8009086: 425b neglt r3, r3 + 8009088: f042 0202 orrlt.w r2, r2, #2 + 800908c: 9307 strge r3, [sp, #28] + 800908e: 9307 strlt r3, [sp, #28] + 8009090: bfb8 it lt + 8009092: 9204 strlt r2, [sp, #16] + 8009094: 7823 ldrb r3, [r4, #0] + 8009096: 2b2e cmp r3, #46 ; 0x2e + 8009098: d10c bne.n 80090b4 <_svfiprintf_r+0x130> + 800909a: 7863 ldrb r3, [r4, #1] + 800909c: 2b2a cmp r3, #42 ; 0x2a + 800909e: d135 bne.n 800910c <_svfiprintf_r+0x188> + 80090a0: 9b03 ldr r3, [sp, #12] + 80090a2: 3402 adds r4, #2 + 80090a4: 1d1a adds r2, r3, #4 + 80090a6: 681b ldr r3, [r3, #0] + 80090a8: 9203 str r2, [sp, #12] + 80090aa: 2b00 cmp r3, #0 + 80090ac: bfb8 it lt + 80090ae: f04f 33ff movlt.w r3, #4294967295 ; 0xffffffff + 80090b2: 9305 str r3, [sp, #20] + 80090b4: f8df a0c8 ldr.w sl, [pc, #200] ; 8009180 <_svfiprintf_r+0x1fc> + 80090b8: 2203 movs r2, #3 + 80090ba: 4650 mov r0, sl + 80090bc: 7821 ldrb r1, [r4, #0] + 80090be: f7ff fb4d bl 800875c + 80090c2: b140 cbz r0, 80090d6 <_svfiprintf_r+0x152> + 80090c4: 2340 movs r3, #64 ; 0x40 + 80090c6: eba0 000a sub.w r0, r0, sl + 80090ca: fa03 f000 lsl.w r0, r3, r0 + 80090ce: 9b04 ldr r3, [sp, #16] + 80090d0: 3401 adds r4, #1 + 80090d2: 4303 orrs r3, r0 + 80090d4: 9304 str r3, [sp, #16] + 80090d6: f814 1b01 ldrb.w r1, [r4], #1 + 80090da: 2206 movs r2, #6 + 80090dc: 4825 ldr r0, [pc, #148] ; (8009174 <_svfiprintf_r+0x1f0>) + 80090de: f88d 1028 strb.w r1, [sp, #40] ; 0x28 + 80090e2: f7ff fb3b bl 800875c + 80090e6: 2800 cmp r0, #0 + 80090e8: d038 beq.n 800915c <_svfiprintf_r+0x1d8> + 80090ea: 4b23 ldr r3, [pc, #140] ; (8009178 <_svfiprintf_r+0x1f4>) + 80090ec: bb1b cbnz r3, 8009136 <_svfiprintf_r+0x1b2> + 80090ee: 9b03 ldr r3, [sp, #12] + 80090f0: 3307 adds r3, #7 + 80090f2: f023 0307 bic.w r3, r3, #7 + 80090f6: 3308 adds r3, #8 + 80090f8: 9303 str r3, [sp, #12] + 80090fa: 9b09 ldr r3, [sp, #36] ; 0x24 + 80090fc: 4433 add r3, r6 + 80090fe: 9309 str r3, [sp, #36] ; 0x24 + 8009100: e767 b.n 8008fd2 <_svfiprintf_r+0x4e> + 8009102: 460c mov r4, r1 + 8009104: 2001 movs r0, #1 + 8009106: fb0c 3202 mla r2, ip, r2, r3 + 800910a: e7a5 b.n 8009058 <_svfiprintf_r+0xd4> + 800910c: 2300 movs r3, #0 + 800910e: f04f 0c0a mov.w ip, #10 + 8009112: 4619 mov r1, r3 + 8009114: 3401 adds r4, #1 + 8009116: 9305 str r3, [sp, #20] + 8009118: 4620 mov r0, r4 + 800911a: f810 2b01 ldrb.w r2, [r0], #1 + 800911e: 3a30 subs r2, #48 ; 0x30 + 8009120: 2a09 cmp r2, #9 + 8009122: d903 bls.n 800912c <_svfiprintf_r+0x1a8> + 8009124: 2b00 cmp r3, #0 + 8009126: d0c5 beq.n 80090b4 <_svfiprintf_r+0x130> + 8009128: 9105 str r1, [sp, #20] + 800912a: e7c3 b.n 80090b4 <_svfiprintf_r+0x130> + 800912c: 4604 mov r4, r0 + 800912e: 2301 movs r3, #1 + 8009130: fb0c 2101 mla r1, ip, r1, r2 + 8009134: e7f0 b.n 8009118 <_svfiprintf_r+0x194> + 8009136: ab03 add r3, sp, #12 + 8009138: 9300 str r3, [sp, #0] + 800913a: 462a mov r2, r5 + 800913c: 4638 mov r0, r7 + 800913e: 4b0f ldr r3, [pc, #60] ; (800917c <_svfiprintf_r+0x1f8>) + 8009140: a904 add r1, sp, #16 + 8009142: f7fe f897 bl 8007274 <_printf_float> + 8009146: 1c42 adds r2, r0, #1 + 8009148: 4606 mov r6, r0 + 800914a: d1d6 bne.n 80090fa <_svfiprintf_r+0x176> + 800914c: 89ab ldrh r3, [r5, #12] + 800914e: 065b lsls r3, r3, #25 + 8009150: f53f af2c bmi.w 8008fac <_svfiprintf_r+0x28> + 8009154: 9809 ldr r0, [sp, #36] ; 0x24 + 8009156: b01d add sp, #116 ; 0x74 + 8009158: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc} + 800915c: ab03 add r3, sp, #12 + 800915e: 9300 str r3, [sp, #0] + 8009160: 462a mov r2, r5 + 8009162: 4638 mov r0, r7 + 8009164: 4b05 ldr r3, [pc, #20] ; (800917c <_svfiprintf_r+0x1f8>) + 8009166: a904 add r1, sp, #16 + 8009168: f7fe fb20 bl 80077ac <_printf_i> + 800916c: e7eb b.n 8009146 <_svfiprintf_r+0x1c2> + 800916e: bf00 nop + 8009170: 0800aa9c .word 0x0800aa9c + 8009174: 0800aaa6 .word 0x0800aaa6 + 8009178: 08007275 .word 0x08007275 + 800917c: 08008ecd .word 0x08008ecd + 8009180: 0800aaa2 .word 0x0800aaa2 -08009008 <__d2b>: - 8009008: e92d 41f3 stmdb sp!, {r0, r1, r4, r5, r6, r7, r8, lr} - 800900c: 2101 movs r1, #1 - 800900e: e9dd 7608 ldrd r7, r6, [sp, #32] - 8009012: 4690 mov r8, r2 - 8009014: 461d mov r5, r3 - 8009016: f7ff fcd1 bl 80089bc <_Balloc> - 800901a: 4604 mov r4, r0 - 800901c: b930 cbnz r0, 800902c <__d2b+0x24> - 800901e: 4602 mov r2, r0 - 8009020: f240 310a movw r1, #778 ; 0x30a - 8009024: 4b24 ldr r3, [pc, #144] ; (80090b8 <__d2b+0xb0>) - 8009026: 4825 ldr r0, [pc, #148] ; (80090bc <__d2b+0xb4>) - 8009028: f000 f9b4 bl 8009394 <__assert_func> - 800902c: f3c5 0313 ubfx r3, r5, #0, #20 - 8009030: f3c5 550a ubfx r5, r5, #20, #11 - 8009034: bb2d cbnz r5, 8009082 <__d2b+0x7a> - 8009036: 9301 str r3, [sp, #4] - 8009038: f1b8 0300 subs.w r3, r8, #0 - 800903c: d026 beq.n 800908c <__d2b+0x84> - 800903e: 4668 mov r0, sp - 8009040: 9300 str r3, [sp, #0] - 8009042: f7ff fd87 bl 8008b54 <__lo0bits> - 8009046: 9900 ldr r1, [sp, #0] - 8009048: b1f0 cbz r0, 8009088 <__d2b+0x80> - 800904a: 9a01 ldr r2, [sp, #4] - 800904c: f1c0 0320 rsb r3, r0, #32 - 8009050: fa02 f303 lsl.w r3, r2, r3 - 8009054: 430b orrs r3, r1 - 8009056: 40c2 lsrs r2, r0 - 8009058: 6163 str r3, [r4, #20] - 800905a: 9201 str r2, [sp, #4] - 800905c: 9b01 ldr r3, [sp, #4] - 800905e: 2b00 cmp r3, #0 - 8009060: bf14 ite ne - 8009062: 2102 movne r1, #2 - 8009064: 2101 moveq r1, #1 - 8009066: 61a3 str r3, [r4, #24] - 8009068: 6121 str r1, [r4, #16] - 800906a: b1c5 cbz r5, 800909e <__d2b+0x96> - 800906c: f2a5 4533 subw r5, r5, #1075 ; 0x433 - 8009070: 4405 add r5, r0 - 8009072: f1c0 0035 rsb r0, r0, #53 ; 0x35 - 8009076: 603d str r5, [r7, #0] - 8009078: 6030 str r0, [r6, #0] - 800907a: 4620 mov r0, r4 - 800907c: b002 add sp, #8 - 800907e: e8bd 81f0 ldmia.w sp!, {r4, r5, r6, r7, r8, pc} - 8009082: f443 1380 orr.w r3, r3, #1048576 ; 0x100000 - 8009086: e7d6 b.n 8009036 <__d2b+0x2e> - 8009088: 6161 str r1, [r4, #20] - 800908a: e7e7 b.n 800905c <__d2b+0x54> - 800908c: a801 add r0, sp, #4 - 800908e: f7ff fd61 bl 8008b54 <__lo0bits> - 8009092: 2101 movs r1, #1 - 8009094: 9b01 ldr r3, [sp, #4] - 8009096: 6121 str r1, [r4, #16] - 8009098: 6163 str r3, [r4, #20] - 800909a: 3020 adds r0, #32 - 800909c: e7e5 b.n 800906a <__d2b+0x62> - 800909e: eb04 0381 add.w r3, r4, r1, lsl #2 - 80090a2: f2a0 4032 subw r0, r0, #1074 ; 0x432 - 80090a6: 6038 str r0, [r7, #0] - 80090a8: 6918 ldr r0, [r3, #16] - 80090aa: f7ff fd33 bl 8008b14 <__hi0bits> - 80090ae: ebc0 1141 rsb r1, r0, r1, lsl #5 - 80090b2: 6031 str r1, [r6, #0] - 80090b4: e7e1 b.n 800907a <__d2b+0x72> - 80090b6: bf00 nop - 80090b8: 0800af93 .word 0x0800af93 - 80090bc: 0800afa4 .word 0x0800afa4 +08009184 <__assert_func>: + 8009184: b51f push {r0, r1, r2, r3, r4, lr} + 8009186: 4614 mov r4, r2 + 8009188: 461a mov r2, r3 + 800918a: 4b09 ldr r3, [pc, #36] ; (80091b0 <__assert_func+0x2c>) + 800918c: 4605 mov r5, r0 + 800918e: 681b ldr r3, [r3, #0] + 8009190: 68d8 ldr r0, [r3, #12] + 8009192: b14c cbz r4, 80091a8 <__assert_func+0x24> + 8009194: 4b07 ldr r3, [pc, #28] ; (80091b4 <__assert_func+0x30>) + 8009196: e9cd 3401 strd r3, r4, [sp, #4] + 800919a: 9100 str r1, [sp, #0] + 800919c: 462b mov r3, r5 + 800919e: 4906 ldr r1, [pc, #24] ; (80091b8 <__assert_func+0x34>) + 80091a0: f000 f80e bl 80091c0 + 80091a4: f000 fa98 bl 80096d8 + 80091a8: 4b04 ldr r3, [pc, #16] ; (80091bc <__assert_func+0x38>) + 80091aa: 461c mov r4, r3 + 80091ac: e7f3 b.n 8009196 <__assert_func+0x12> + 80091ae: bf00 nop + 80091b0: 2000000c .word 0x2000000c + 80091b4: 0800aaad .word 0x0800aaad + 80091b8: 0800aaba .word 0x0800aaba + 80091bc: 0800aae8 .word 0x0800aae8 -080090c0 <_calloc_r>: - 80090c0: b538 push {r3, r4, r5, lr} - 80090c2: fb02 f501 mul.w r5, r2, r1 - 80090c6: 4629 mov r1, r5 - 80090c8: f7fe f8e6 bl 8007298 <_malloc_r> - 80090cc: 4604 mov r4, r0 - 80090ce: b118 cbz r0, 80090d8 <_calloc_r+0x18> - 80090d0: 462a mov r2, r5 - 80090d2: 2100 movs r1, #0 - 80090d4: f7fe f88c bl 80071f0 - 80090d8: 4620 mov r0, r4 - 80090da: bd38 pop {r3, r4, r5, pc} +080091c0 : + 80091c0: b40e push {r1, r2, r3} + 80091c2: b503 push {r0, r1, lr} + 80091c4: 4601 mov r1, r0 + 80091c6: ab03 add r3, sp, #12 + 80091c8: 4805 ldr r0, [pc, #20] ; (80091e0 ) + 80091ca: f853 2b04 ldr.w r2, [r3], #4 + 80091ce: 6800 ldr r0, [r0, #0] + 80091d0: 9301 str r3, [sp, #4] + 80091d2: f000 f883 bl 80092dc <_vfiprintf_r> + 80091d6: b002 add sp, #8 + 80091d8: f85d eb04 ldr.w lr, [sp], #4 + 80091dc: b003 add sp, #12 + 80091de: 4770 bx lr + 80091e0: 2000000c .word 0x2000000c -080090dc <__ssputs_r>: - 80090dc: e92d 47f0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, lr} - 80090e0: 688e ldr r6, [r1, #8] - 80090e2: 4682 mov sl, r0 - 80090e4: 429e cmp r6, r3 - 80090e6: 460c mov r4, r1 - 80090e8: 4690 mov r8, r2 - 80090ea: 461f mov r7, r3 - 80090ec: d838 bhi.n 8009160 <__ssputs_r+0x84> - 80090ee: 898a ldrh r2, [r1, #12] - 80090f0: f412 6f90 tst.w r2, #1152 ; 0x480 - 80090f4: d032 beq.n 800915c <__ssputs_r+0x80> - 80090f6: 6825 ldr r5, [r4, #0] - 80090f8: 6909 ldr r1, [r1, #16] - 80090fa: 3301 adds r3, #1 - 80090fc: eba5 0901 sub.w r9, r5, r1 - 8009100: 6965 ldr r5, [r4, #20] - 8009102: 444b add r3, r9 - 8009104: eb05 0545 add.w r5, r5, r5, lsl #1 - 8009108: eb05 75d5 add.w r5, r5, r5, lsr #31 - 800910c: 106d asrs r5, r5, #1 - 800910e: 429d cmp r5, r3 - 8009110: bf38 it cc - 8009112: 461d movcc r5, r3 - 8009114: 0553 lsls r3, r2, #21 - 8009116: d531 bpl.n 800917c <__ssputs_r+0xa0> - 8009118: 4629 mov r1, r5 - 800911a: f7fe f8bd bl 8007298 <_malloc_r> - 800911e: 4606 mov r6, r0 - 8009120: b950 cbnz r0, 8009138 <__ssputs_r+0x5c> - 8009122: 230c movs r3, #12 - 8009124: f04f 30ff mov.w r0, #4294967295 ; 0xffffffff - 8009128: f8ca 3000 str.w r3, [sl] - 800912c: 89a3 ldrh r3, [r4, #12] - 800912e: f043 0340 orr.w r3, r3, #64 ; 0x40 - 8009132: 81a3 strh r3, [r4, #12] - 8009134: e8bd 87f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, pc} - 8009138: 464a mov r2, r9 - 800913a: 6921 ldr r1, [r4, #16] - 800913c: f7ff fc24 bl 8008988 - 8009140: 89a3 ldrh r3, [r4, #12] - 8009142: f423 6390 bic.w r3, r3, #1152 ; 0x480 - 8009146: f043 0380 orr.w r3, r3, #128 ; 0x80 - 800914a: 81a3 strh r3, [r4, #12] - 800914c: 6126 str r6, [r4, #16] - 800914e: 444e add r6, r9 - 8009150: 6026 str r6, [r4, #0] - 8009152: 463e mov r6, r7 - 8009154: 6165 str r5, [r4, #20] - 8009156: eba5 0509 sub.w r5, r5, r9 - 800915a: 60a5 str r5, [r4, #8] - 800915c: 42be cmp r6, r7 - 800915e: d900 bls.n 8009162 <__ssputs_r+0x86> - 8009160: 463e mov r6, r7 - 8009162: 4632 mov r2, r6 - 8009164: 4641 mov r1, r8 - 8009166: 6820 ldr r0, [r4, #0] - 8009168: f000 f959 bl 800941e - 800916c: 68a3 ldr r3, [r4, #8] - 800916e: 6822 ldr r2, [r4, #0] - 8009170: 1b9b subs r3, r3, r6 - 8009172: 4432 add r2, r6 - 8009174: 2000 movs r0, #0 - 8009176: 60a3 str r3, [r4, #8] - 8009178: 6022 str r2, [r4, #0] - 800917a: e7db b.n 8009134 <__ssputs_r+0x58> - 800917c: 462a mov r2, r5 - 800917e: f000 f968 bl 8009452 <_realloc_r> - 8009182: 4606 mov r6, r0 - 8009184: 2800 cmp r0, #0 - 8009186: d1e1 bne.n 800914c <__ssputs_r+0x70> - 8009188: 4650 mov r0, sl - 800918a: 6921 ldr r1, [r4, #16] - 800918c: f7fe f838 bl 8007200 <_free_r> - 8009190: e7c7 b.n 8009122 <__ssputs_r+0x46> - ... +080091e4 <__retarget_lock_init_recursive>: + 80091e4: 4770 bx lr -08009194 <_svfiprintf_r>: - 8009194: e92d 4ff0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, fp, lr} - 8009198: 4698 mov r8, r3 - 800919a: 898b ldrh r3, [r1, #12] - 800919c: 4607 mov r7, r0 - 800919e: 061b lsls r3, r3, #24 - 80091a0: 460d mov r5, r1 - 80091a2: 4614 mov r4, r2 - 80091a4: b09d sub sp, #116 ; 0x74 - 80091a6: d50e bpl.n 80091c6 <_svfiprintf_r+0x32> - 80091a8: 690b ldr r3, [r1, #16] - 80091aa: b963 cbnz r3, 80091c6 <_svfiprintf_r+0x32> - 80091ac: 2140 movs r1, #64 ; 0x40 - 80091ae: f7fe f873 bl 8007298 <_malloc_r> - 80091b2: 6028 str r0, [r5, #0] - 80091b4: 6128 str r0, [r5, #16] - 80091b6: b920 cbnz r0, 80091c2 <_svfiprintf_r+0x2e> - 80091b8: 230c movs r3, #12 - 80091ba: 603b str r3, [r7, #0] - 80091bc: f04f 30ff mov.w r0, #4294967295 ; 0xffffffff - 80091c0: e0d1 b.n 8009366 <_svfiprintf_r+0x1d2> - 80091c2: 2340 movs r3, #64 ; 0x40 - 80091c4: 616b str r3, [r5, #20] - 80091c6: 2300 movs r3, #0 - 80091c8: 9309 str r3, [sp, #36] ; 0x24 - 80091ca: 2320 movs r3, #32 - 80091cc: f88d 3029 strb.w r3, [sp, #41] ; 0x29 - 80091d0: 2330 movs r3, #48 ; 0x30 - 80091d2: f04f 0901 mov.w r9, #1 - 80091d6: f8cd 800c str.w r8, [sp, #12] - 80091da: f8df 81a4 ldr.w r8, [pc, #420] ; 8009380 <_svfiprintf_r+0x1ec> - 80091de: f88d 302a strb.w r3, [sp, #42] ; 0x2a - 80091e2: 4623 mov r3, r4 - 80091e4: 469a mov sl, r3 - 80091e6: f813 2b01 ldrb.w r2, [r3], #1 - 80091ea: b10a cbz r2, 80091f0 <_svfiprintf_r+0x5c> - 80091ec: 2a25 cmp r2, #37 ; 0x25 - 80091ee: d1f9 bne.n 80091e4 <_svfiprintf_r+0x50> - 80091f0: ebba 0b04 subs.w fp, sl, r4 - 80091f4: d00b beq.n 800920e <_svfiprintf_r+0x7a> - 80091f6: 465b mov r3, fp - 80091f8: 4622 mov r2, r4 - 80091fa: 4629 mov r1, r5 - 80091fc: 4638 mov r0, r7 - 80091fe: f7ff ff6d bl 80090dc <__ssputs_r> - 8009202: 3001 adds r0, #1 - 8009204: f000 80aa beq.w 800935c <_svfiprintf_r+0x1c8> - 8009208: 9a09 ldr r2, [sp, #36] ; 0x24 - 800920a: 445a add r2, fp - 800920c: 9209 str r2, [sp, #36] ; 0x24 - 800920e: f89a 3000 ldrb.w r3, [sl] - 8009212: 2b00 cmp r3, #0 - 8009214: f000 80a2 beq.w 800935c <_svfiprintf_r+0x1c8> - 8009218: 2300 movs r3, #0 - 800921a: f04f 32ff mov.w r2, #4294967295 ; 0xffffffff - 800921e: e9cd 2305 strd r2, r3, [sp, #20] - 8009222: f10a 0a01 add.w sl, sl, #1 - 8009226: 9304 str r3, [sp, #16] - 8009228: 9307 str r3, [sp, #28] - 800922a: f88d 3053 strb.w r3, [sp, #83] ; 0x53 - 800922e: 931a str r3, [sp, #104] ; 0x68 - 8009230: 4654 mov r4, sl - 8009232: 2205 movs r2, #5 - 8009234: f814 1b01 ldrb.w r1, [r4], #1 - 8009238: 4851 ldr r0, [pc, #324] ; (8009380 <_svfiprintf_r+0x1ec>) - 800923a: f7ff fb97 bl 800896c - 800923e: 9a04 ldr r2, [sp, #16] - 8009240: b9d8 cbnz r0, 800927a <_svfiprintf_r+0xe6> - 8009242: 06d0 lsls r0, r2, #27 - 8009244: bf44 itt mi - 8009246: 2320 movmi r3, #32 - 8009248: f88d 3053 strbmi.w r3, [sp, #83] ; 0x53 - 800924c: 0711 lsls r1, r2, #28 - 800924e: bf44 itt mi - 8009250: 232b movmi r3, #43 ; 0x2b - 8009252: f88d 3053 strbmi.w r3, [sp, #83] ; 0x53 - 8009256: f89a 3000 ldrb.w r3, [sl] - 800925a: 2b2a cmp r3, #42 ; 0x2a - 800925c: d015 beq.n 800928a <_svfiprintf_r+0xf6> - 800925e: 4654 mov r4, sl - 8009260: 2000 movs r0, #0 - 8009262: f04f 0c0a mov.w ip, #10 - 8009266: 9a07 ldr r2, [sp, #28] - 8009268: 4621 mov r1, r4 - 800926a: f811 3b01 ldrb.w r3, [r1], #1 - 800926e: 3b30 subs r3, #48 ; 0x30 - 8009270: 2b09 cmp r3, #9 - 8009272: d94e bls.n 8009312 <_svfiprintf_r+0x17e> - 8009274: b1b0 cbz r0, 80092a4 <_svfiprintf_r+0x110> - 8009276: 9207 str r2, [sp, #28] - 8009278: e014 b.n 80092a4 <_svfiprintf_r+0x110> - 800927a: eba0 0308 sub.w r3, r0, r8 - 800927e: fa09 f303 lsl.w r3, r9, r3 - 8009282: 4313 orrs r3, r2 - 8009284: 46a2 mov sl, r4 - 8009286: 9304 str r3, [sp, #16] - 8009288: e7d2 b.n 8009230 <_svfiprintf_r+0x9c> - 800928a: 9b03 ldr r3, [sp, #12] - 800928c: 1d19 adds r1, r3, #4 - 800928e: 681b ldr r3, [r3, #0] - 8009290: 9103 str r1, [sp, #12] - 8009292: 2b00 cmp r3, #0 - 8009294: bfbb ittet lt - 8009296: 425b neglt r3, r3 - 8009298: f042 0202 orrlt.w r2, r2, #2 - 800929c: 9307 strge r3, [sp, #28] - 800929e: 9307 strlt r3, [sp, #28] - 80092a0: bfb8 it lt - 80092a2: 9204 strlt r2, [sp, #16] - 80092a4: 7823 ldrb r3, [r4, #0] - 80092a6: 2b2e cmp r3, #46 ; 0x2e - 80092a8: d10c bne.n 80092c4 <_svfiprintf_r+0x130> - 80092aa: 7863 ldrb r3, [r4, #1] - 80092ac: 2b2a cmp r3, #42 ; 0x2a - 80092ae: d135 bne.n 800931c <_svfiprintf_r+0x188> - 80092b0: 9b03 ldr r3, [sp, #12] - 80092b2: 3402 adds r4, #2 - 80092b4: 1d1a adds r2, r3, #4 - 80092b6: 681b ldr r3, [r3, #0] - 80092b8: 9203 str r2, [sp, #12] - 80092ba: 2b00 cmp r3, #0 - 80092bc: bfb8 it lt - 80092be: f04f 33ff movlt.w r3, #4294967295 ; 0xffffffff - 80092c2: 9305 str r3, [sp, #20] - 80092c4: f8df a0c8 ldr.w sl, [pc, #200] ; 8009390 <_svfiprintf_r+0x1fc> - 80092c8: 2203 movs r2, #3 - 80092ca: 4650 mov r0, sl - 80092cc: 7821 ldrb r1, [r4, #0] - 80092ce: f7ff fb4d bl 800896c - 80092d2: b140 cbz r0, 80092e6 <_svfiprintf_r+0x152> - 80092d4: 2340 movs r3, #64 ; 0x40 - 80092d6: eba0 000a sub.w r0, r0, sl - 80092da: fa03 f000 lsl.w r0, r3, r0 - 80092de: 9b04 ldr r3, [sp, #16] - 80092e0: 3401 adds r4, #1 - 80092e2: 4303 orrs r3, r0 - 80092e4: 9304 str r3, [sp, #16] - 80092e6: f814 1b01 ldrb.w r1, [r4], #1 - 80092ea: 2206 movs r2, #6 - 80092ec: 4825 ldr r0, [pc, #148] ; (8009384 <_svfiprintf_r+0x1f0>) - 80092ee: f88d 1028 strb.w r1, [sp, #40] ; 0x28 - 80092f2: f7ff fb3b bl 800896c - 80092f6: 2800 cmp r0, #0 - 80092f8: d038 beq.n 800936c <_svfiprintf_r+0x1d8> - 80092fa: 4b23 ldr r3, [pc, #140] ; (8009388 <_svfiprintf_r+0x1f4>) - 80092fc: bb1b cbnz r3, 8009346 <_svfiprintf_r+0x1b2> - 80092fe: 9b03 ldr r3, [sp, #12] - 8009300: 3307 adds r3, #7 - 8009302: f023 0307 bic.w r3, r3, #7 - 8009306: 3308 adds r3, #8 - 8009308: 9303 str r3, [sp, #12] - 800930a: 9b09 ldr r3, [sp, #36] ; 0x24 - 800930c: 4433 add r3, r6 - 800930e: 9309 str r3, [sp, #36] ; 0x24 - 8009310: e767 b.n 80091e2 <_svfiprintf_r+0x4e> - 8009312: 460c mov r4, r1 - 8009314: 2001 movs r0, #1 - 8009316: fb0c 3202 mla r2, ip, r2, r3 - 800931a: e7a5 b.n 8009268 <_svfiprintf_r+0xd4> - 800931c: 2300 movs r3, #0 - 800931e: f04f 0c0a mov.w ip, #10 - 8009322: 4619 mov r1, r3 - 8009324: 3401 adds r4, #1 - 8009326: 9305 str r3, [sp, #20] - 8009328: 4620 mov r0, r4 - 800932a: f810 2b01 ldrb.w r2, [r0], #1 - 800932e: 3a30 subs r2, #48 ; 0x30 - 8009330: 2a09 cmp r2, #9 - 8009332: d903 bls.n 800933c <_svfiprintf_r+0x1a8> - 8009334: 2b00 cmp r3, #0 - 8009336: d0c5 beq.n 80092c4 <_svfiprintf_r+0x130> - 8009338: 9105 str r1, [sp, #20] - 800933a: e7c3 b.n 80092c4 <_svfiprintf_r+0x130> - 800933c: 4604 mov r4, r0 - 800933e: 2301 movs r3, #1 - 8009340: fb0c 2101 mla r1, ip, r1, r2 - 8009344: e7f0 b.n 8009328 <_svfiprintf_r+0x194> - 8009346: ab03 add r3, sp, #12 - 8009348: 9300 str r3, [sp, #0] - 800934a: 462a mov r2, r5 - 800934c: 4638 mov r0, r7 - 800934e: 4b0f ldr r3, [pc, #60] ; (800938c <_svfiprintf_r+0x1f8>) - 8009350: a904 add r1, sp, #16 - 8009352: f7fe f899 bl 8007488 <_printf_float> - 8009356: 1c42 adds r2, r0, #1 - 8009358: 4606 mov r6, r0 - 800935a: d1d6 bne.n 800930a <_svfiprintf_r+0x176> - 800935c: 89ab ldrh r3, [r5, #12] - 800935e: 065b lsls r3, r3, #25 - 8009360: f53f af2c bmi.w 80091bc <_svfiprintf_r+0x28> - 8009364: 9809 ldr r0, [sp, #36] ; 0x24 - 8009366: b01d add sp, #116 ; 0x74 - 8009368: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc} - 800936c: ab03 add r3, sp, #12 - 800936e: 9300 str r3, [sp, #0] - 8009370: 462a mov r2, r5 - 8009372: 4638 mov r0, r7 - 8009374: 4b05 ldr r3, [pc, #20] ; (800938c <_svfiprintf_r+0x1f8>) - 8009376: a904 add r1, sp, #16 - 8009378: f7fe fb22 bl 80079c0 <_printf_i> - 800937c: e7eb b.n 8009356 <_svfiprintf_r+0x1c2> - 800937e: bf00 nop - 8009380: 0800b104 .word 0x0800b104 - 8009384: 0800b10e .word 0x0800b10e - 8009388: 08007489 .word 0x08007489 - 800938c: 080090dd .word 0x080090dd - 8009390: 0800b10a .word 0x0800b10a +080091e6 <__retarget_lock_acquire_recursive>: + 80091e6: 4770 bx lr -08009394 <__assert_func>: - 8009394: b51f push {r0, r1, r2, r3, r4, lr} - 8009396: 4614 mov r4, r2 - 8009398: 461a mov r2, r3 - 800939a: 4b09 ldr r3, [pc, #36] ; (80093c0 <__assert_func+0x2c>) - 800939c: 4605 mov r5, r0 - 800939e: 681b ldr r3, [r3, #0] - 80093a0: 68d8 ldr r0, [r3, #12] - 80093a2: b14c cbz r4, 80093b8 <__assert_func+0x24> - 80093a4: 4b07 ldr r3, [pc, #28] ; (80093c4 <__assert_func+0x30>) - 80093a6: e9cd 3401 strd r3, r4, [sp, #4] - 80093aa: 9100 str r1, [sp, #0] - 80093ac: 462b mov r3, r5 - 80093ae: 4906 ldr r1, [pc, #24] ; (80093c8 <__assert_func+0x34>) - 80093b0: f000 f80e bl 80093d0 - 80093b4: f000 fa98 bl 80098e8 - 80093b8: 4b04 ldr r3, [pc, #16] ; (80093cc <__assert_func+0x38>) - 80093ba: 461c mov r4, r3 - 80093bc: e7f3 b.n 80093a6 <__assert_func+0x12> - 80093be: bf00 nop - 80093c0: 2000000c .word 0x2000000c - 80093c4: 0800b115 .word 0x0800b115 - 80093c8: 0800b122 .word 0x0800b122 - 80093cc: 0800b150 .word 0x0800b150 +080091e8 <__retarget_lock_release_recursive>: + 80091e8: 4770 bx lr -080093d0 : - 80093d0: b40e push {r1, r2, r3} - 80093d2: b503 push {r0, r1, lr} - 80093d4: 4601 mov r1, r0 - 80093d6: ab03 add r3, sp, #12 - 80093d8: 4805 ldr r0, [pc, #20] ; (80093f0 ) - 80093da: f853 2b04 ldr.w r2, [r3], #4 - 80093de: 6800 ldr r0, [r0, #0] - 80093e0: 9301 str r3, [sp, #4] - 80093e2: f000 f883 bl 80094ec <_vfiprintf_r> - 80093e6: b002 add sp, #8 - 80093e8: f85d eb04 ldr.w lr, [sp], #4 - 80093ec: b003 add sp, #12 - 80093ee: 4770 bx lr - 80093f0: 2000000c .word 0x2000000c +080091ea <__ascii_mbtowc>: + 80091ea: b082 sub sp, #8 + 80091ec: b901 cbnz r1, 80091f0 <__ascii_mbtowc+0x6> + 80091ee: a901 add r1, sp, #4 + 80091f0: b142 cbz r2, 8009204 <__ascii_mbtowc+0x1a> + 80091f2: b14b cbz r3, 8009208 <__ascii_mbtowc+0x1e> + 80091f4: 7813 ldrb r3, [r2, #0] + 80091f6: 600b str r3, [r1, #0] + 80091f8: 7812 ldrb r2, [r2, #0] + 80091fa: 1e10 subs r0, r2, #0 + 80091fc: bf18 it ne + 80091fe: 2001 movne r0, #1 + 8009200: b002 add sp, #8 + 8009202: 4770 bx lr + 8009204: 4610 mov r0, r2 + 8009206: e7fb b.n 8009200 <__ascii_mbtowc+0x16> + 8009208: f06f 0001 mvn.w r0, #1 + 800920c: e7f8 b.n 8009200 <__ascii_mbtowc+0x16> -080093f4 <__retarget_lock_init_recursive>: - 80093f4: 4770 bx lr +0800920e : + 800920e: 4288 cmp r0, r1 + 8009210: b510 push {r4, lr} + 8009212: eb01 0402 add.w r4, r1, r2 + 8009216: d902 bls.n 800921e + 8009218: 4284 cmp r4, r0 + 800921a: 4623 mov r3, r4 + 800921c: d807 bhi.n 800922e + 800921e: 1e43 subs r3, r0, #1 + 8009220: 42a1 cmp r1, r4 + 8009222: d008 beq.n 8009236 + 8009224: f811 2b01 ldrb.w r2, [r1], #1 + 8009228: f803 2f01 strb.w r2, [r3, #1]! + 800922c: e7f8 b.n 8009220 + 800922e: 4601 mov r1, r0 + 8009230: 4402 add r2, r0 + 8009232: 428a cmp r2, r1 + 8009234: d100 bne.n 8009238 + 8009236: bd10 pop {r4, pc} + 8009238: f813 4d01 ldrb.w r4, [r3, #-1]! + 800923c: f802 4d01 strb.w r4, [r2, #-1]! + 8009240: e7f7 b.n 8009232 -080093f6 <__retarget_lock_acquire_recursive>: - 80093f6: 4770 bx lr +08009242 <_realloc_r>: + 8009242: b5f8 push {r3, r4, r5, r6, r7, lr} + 8009244: 4607 mov r7, r0 + 8009246: 4614 mov r4, r2 + 8009248: 460e mov r6, r1 + 800924a: b921 cbnz r1, 8009256 <_realloc_r+0x14> + 800924c: 4611 mov r1, r2 + 800924e: e8bd 40f8 ldmia.w sp!, {r3, r4, r5, r6, r7, lr} + 8009252: f7fd bf17 b.w 8007084 <_malloc_r> + 8009256: b922 cbnz r2, 8009262 <_realloc_r+0x20> + 8009258: f7fd fec8 bl 8006fec <_free_r> + 800925c: 4625 mov r5, r4 + 800925e: 4628 mov r0, r5 + 8009260: bdf8 pop {r3, r4, r5, r6, r7, pc} + 8009262: f000 fc5d bl 8009b20 <_malloc_usable_size_r> + 8009266: 42a0 cmp r0, r4 + 8009268: d20f bcs.n 800928a <_realloc_r+0x48> + 800926a: 4621 mov r1, r4 + 800926c: 4638 mov r0, r7 + 800926e: f7fd ff09 bl 8007084 <_malloc_r> + 8009272: 4605 mov r5, r0 + 8009274: 2800 cmp r0, #0 + 8009276: d0f2 beq.n 800925e <_realloc_r+0x1c> + 8009278: 4631 mov r1, r6 + 800927a: 4622 mov r2, r4 + 800927c: f7ff fa7c bl 8008778 + 8009280: 4631 mov r1, r6 + 8009282: 4638 mov r0, r7 + 8009284: f7fd feb2 bl 8006fec <_free_r> + 8009288: e7e9 b.n 800925e <_realloc_r+0x1c> + 800928a: 4635 mov r5, r6 + 800928c: e7e7 b.n 800925e <_realloc_r+0x1c> -080093f8 <__retarget_lock_release_recursive>: - 80093f8: 4770 bx lr +0800928e <__sfputc_r>: + 800928e: 6893 ldr r3, [r2, #8] + 8009290: b410 push {r4} + 8009292: 3b01 subs r3, #1 + 8009294: 2b00 cmp r3, #0 + 8009296: 6093 str r3, [r2, #8] + 8009298: da07 bge.n 80092aa <__sfputc_r+0x1c> + 800929a: 6994 ldr r4, [r2, #24] + 800929c: 42a3 cmp r3, r4 + 800929e: db01 blt.n 80092a4 <__sfputc_r+0x16> + 80092a0: 290a cmp r1, #10 + 80092a2: d102 bne.n 80092aa <__sfputc_r+0x1c> + 80092a4: bc10 pop {r4} + 80092a6: f000 b949 b.w 800953c <__swbuf_r> + 80092aa: 6813 ldr r3, [r2, #0] + 80092ac: 1c58 adds r0, r3, #1 + 80092ae: 6010 str r0, [r2, #0] + 80092b0: 7019 strb r1, [r3, #0] + 80092b2: 4608 mov r0, r1 + 80092b4: bc10 pop {r4} + 80092b6: 4770 bx lr -080093fa <__ascii_mbtowc>: - 80093fa: b082 sub sp, #8 - 80093fc: b901 cbnz r1, 8009400 <__ascii_mbtowc+0x6> - 80093fe: a901 add r1, sp, #4 - 8009400: b142 cbz r2, 8009414 <__ascii_mbtowc+0x1a> - 8009402: b14b cbz r3, 8009418 <__ascii_mbtowc+0x1e> - 8009404: 7813 ldrb r3, [r2, #0] - 8009406: 600b str r3, [r1, #0] - 8009408: 7812 ldrb r2, [r2, #0] - 800940a: 1e10 subs r0, r2, #0 - 800940c: bf18 it ne - 800940e: 2001 movne r0, #1 - 8009410: b002 add sp, #8 - 8009412: 4770 bx lr - 8009414: 4610 mov r0, r2 - 8009416: e7fb b.n 8009410 <__ascii_mbtowc+0x16> - 8009418: f06f 0001 mvn.w r0, #1 - 800941c: e7f8 b.n 8009410 <__ascii_mbtowc+0x16> +080092b8 <__sfputs_r>: + 80092b8: b5f8 push {r3, r4, r5, r6, r7, lr} + 80092ba: 4606 mov r6, r0 + 80092bc: 460f mov r7, r1 + 80092be: 4614 mov r4, r2 + 80092c0: 18d5 adds r5, r2, r3 + 80092c2: 42ac cmp r4, r5 + 80092c4: d101 bne.n 80092ca <__sfputs_r+0x12> + 80092c6: 2000 movs r0, #0 + 80092c8: e007 b.n 80092da <__sfputs_r+0x22> + 80092ca: 463a mov r2, r7 + 80092cc: 4630 mov r0, r6 + 80092ce: f814 1b01 ldrb.w r1, [r4], #1 + 80092d2: f7ff ffdc bl 800928e <__sfputc_r> + 80092d6: 1c43 adds r3, r0, #1 + 80092d8: d1f3 bne.n 80092c2 <__sfputs_r+0xa> + 80092da: bdf8 pop {r3, r4, r5, r6, r7, pc} -0800941e : - 800941e: 4288 cmp r0, r1 - 8009420: b510 push {r4, lr} - 8009422: eb01 0402 add.w r4, r1, r2 - 8009426: d902 bls.n 800942e - 8009428: 4284 cmp r4, r0 - 800942a: 4623 mov r3, r4 - 800942c: d807 bhi.n 800943e - 800942e: 1e43 subs r3, r0, #1 - 8009430: 42a1 cmp r1, r4 - 8009432: d008 beq.n 8009446 - 8009434: f811 2b01 ldrb.w r2, [r1], #1 - 8009438: f803 2f01 strb.w r2, [r3, #1]! - 800943c: e7f8 b.n 8009430 - 800943e: 4601 mov r1, r0 - 8009440: 4402 add r2, r0 - 8009442: 428a cmp r2, r1 - 8009444: d100 bne.n 8009448 - 8009446: bd10 pop {r4, pc} - 8009448: f813 4d01 ldrb.w r4, [r3, #-1]! - 800944c: f802 4d01 strb.w r4, [r2, #-1]! - 8009450: e7f7 b.n 8009442 - -08009452 <_realloc_r>: - 8009452: b5f8 push {r3, r4, r5, r6, r7, lr} - 8009454: 4607 mov r7, r0 - 8009456: 4614 mov r4, r2 - 8009458: 460e mov r6, r1 - 800945a: b921 cbnz r1, 8009466 <_realloc_r+0x14> - 800945c: 4611 mov r1, r2 - 800945e: e8bd 40f8 ldmia.w sp!, {r3, r4, r5, r6, r7, lr} - 8009462: f7fd bf19 b.w 8007298 <_malloc_r> - 8009466: b922 cbnz r2, 8009472 <_realloc_r+0x20> - 8009468: f7fd feca bl 8007200 <_free_r> - 800946c: 4625 mov r5, r4 - 800946e: 4628 mov r0, r5 - 8009470: bdf8 pop {r3, r4, r5, r6, r7, pc} - 8009472: f000 fc5d bl 8009d30 <_malloc_usable_size_r> - 8009476: 42a0 cmp r0, r4 - 8009478: d20f bcs.n 800949a <_realloc_r+0x48> - 800947a: 4621 mov r1, r4 - 800947c: 4638 mov r0, r7 - 800947e: f7fd ff0b bl 8007298 <_malloc_r> - 8009482: 4605 mov r5, r0 +080092dc <_vfiprintf_r>: + 80092dc: e92d 4ff0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, fp, lr} + 80092e0: 460d mov r5, r1 + 80092e2: 4614 mov r4, r2 + 80092e4: 4698 mov r8, r3 + 80092e6: 4606 mov r6, r0 + 80092e8: b09d sub sp, #116 ; 0x74 + 80092ea: b118 cbz r0, 80092f4 <_vfiprintf_r+0x18> + 80092ec: 6983 ldr r3, [r0, #24] + 80092ee: b90b cbnz r3, 80092f4 <_vfiprintf_r+0x18> + 80092f0: f000 fb14 bl 800991c <__sinit> + 80092f4: 4b89 ldr r3, [pc, #548] ; (800951c <_vfiprintf_r+0x240>) + 80092f6: 429d cmp r5, r3 + 80092f8: d11b bne.n 8009332 <_vfiprintf_r+0x56> + 80092fa: 6875 ldr r5, [r6, #4] + 80092fc: 6e6b ldr r3, [r5, #100] ; 0x64 + 80092fe: 07d9 lsls r1, r3, #31 + 8009300: d405 bmi.n 800930e <_vfiprintf_r+0x32> + 8009302: 89ab ldrh r3, [r5, #12] + 8009304: 059a lsls r2, r3, #22 + 8009306: d402 bmi.n 800930e <_vfiprintf_r+0x32> + 8009308: 6da8 ldr r0, [r5, #88] ; 0x58 + 800930a: f7ff ff6c bl 80091e6 <__retarget_lock_acquire_recursive> + 800930e: 89ab ldrh r3, [r5, #12] + 8009310: 071b lsls r3, r3, #28 + 8009312: d501 bpl.n 8009318 <_vfiprintf_r+0x3c> + 8009314: 692b ldr r3, [r5, #16] + 8009316: b9eb cbnz r3, 8009354 <_vfiprintf_r+0x78> + 8009318: 4629 mov r1, r5 + 800931a: 4630 mov r0, r6 + 800931c: f000 f96e bl 80095fc <__swsetup_r> + 8009320: b1c0 cbz r0, 8009354 <_vfiprintf_r+0x78> + 8009322: 6e6b ldr r3, [r5, #100] ; 0x64 + 8009324: 07dc lsls r4, r3, #31 + 8009326: d50e bpl.n 8009346 <_vfiprintf_r+0x6a> + 8009328: f04f 30ff mov.w r0, #4294967295 ; 0xffffffff + 800932c: b01d add sp, #116 ; 0x74 + 800932e: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc} + 8009332: 4b7b ldr r3, [pc, #492] ; (8009520 <_vfiprintf_r+0x244>) + 8009334: 429d cmp r5, r3 + 8009336: d101 bne.n 800933c <_vfiprintf_r+0x60> + 8009338: 68b5 ldr r5, [r6, #8] + 800933a: e7df b.n 80092fc <_vfiprintf_r+0x20> + 800933c: 4b79 ldr r3, [pc, #484] ; (8009524 <_vfiprintf_r+0x248>) + 800933e: 429d cmp r5, r3 + 8009340: bf08 it eq + 8009342: 68f5 ldreq r5, [r6, #12] + 8009344: e7da b.n 80092fc <_vfiprintf_r+0x20> + 8009346: 89ab ldrh r3, [r5, #12] + 8009348: 0598 lsls r0, r3, #22 + 800934a: d4ed bmi.n 8009328 <_vfiprintf_r+0x4c> + 800934c: 6da8 ldr r0, [r5, #88] ; 0x58 + 800934e: f7ff ff4b bl 80091e8 <__retarget_lock_release_recursive> + 8009352: e7e9 b.n 8009328 <_vfiprintf_r+0x4c> + 8009354: 2300 movs r3, #0 + 8009356: 9309 str r3, [sp, #36] ; 0x24 + 8009358: 2320 movs r3, #32 + 800935a: f88d 3029 strb.w r3, [sp, #41] ; 0x29 + 800935e: 2330 movs r3, #48 ; 0x30 + 8009360: f04f 0901 mov.w r9, #1 + 8009364: f8cd 800c str.w r8, [sp, #12] + 8009368: f8df 81bc ldr.w r8, [pc, #444] ; 8009528 <_vfiprintf_r+0x24c> + 800936c: f88d 302a strb.w r3, [sp, #42] ; 0x2a + 8009370: 4623 mov r3, r4 + 8009372: 469a mov sl, r3 + 8009374: f813 2b01 ldrb.w r2, [r3], #1 + 8009378: b10a cbz r2, 800937e <_vfiprintf_r+0xa2> + 800937a: 2a25 cmp r2, #37 ; 0x25 + 800937c: d1f9 bne.n 8009372 <_vfiprintf_r+0x96> + 800937e: ebba 0b04 subs.w fp, sl, r4 + 8009382: d00b beq.n 800939c <_vfiprintf_r+0xc0> + 8009384: 465b mov r3, fp + 8009386: 4622 mov r2, r4 + 8009388: 4629 mov r1, r5 + 800938a: 4630 mov r0, r6 + 800938c: f7ff ff94 bl 80092b8 <__sfputs_r> + 8009390: 3001 adds r0, #1 + 8009392: f000 80aa beq.w 80094ea <_vfiprintf_r+0x20e> + 8009396: 9a09 ldr r2, [sp, #36] ; 0x24 + 8009398: 445a add r2, fp + 800939a: 9209 str r2, [sp, #36] ; 0x24 + 800939c: f89a 3000 ldrb.w r3, [sl] + 80093a0: 2b00 cmp r3, #0 + 80093a2: f000 80a2 beq.w 80094ea <_vfiprintf_r+0x20e> + 80093a6: 2300 movs r3, #0 + 80093a8: f04f 32ff mov.w r2, #4294967295 ; 0xffffffff + 80093ac: e9cd 2305 strd r2, r3, [sp, #20] + 80093b0: f10a 0a01 add.w sl, sl, #1 + 80093b4: 9304 str r3, [sp, #16] + 80093b6: 9307 str r3, [sp, #28] + 80093b8: f88d 3053 strb.w r3, [sp, #83] ; 0x53 + 80093bc: 931a str r3, [sp, #104] ; 0x68 + 80093be: 4654 mov r4, sl + 80093c0: 2205 movs r2, #5 + 80093c2: f814 1b01 ldrb.w r1, [r4], #1 + 80093c6: 4858 ldr r0, [pc, #352] ; (8009528 <_vfiprintf_r+0x24c>) + 80093c8: f7ff f9c8 bl 800875c + 80093cc: 9a04 ldr r2, [sp, #16] + 80093ce: b9d8 cbnz r0, 8009408 <_vfiprintf_r+0x12c> + 80093d0: 06d1 lsls r1, r2, #27 + 80093d2: bf44 itt mi + 80093d4: 2320 movmi r3, #32 + 80093d6: f88d 3053 strbmi.w r3, [sp, #83] ; 0x53 + 80093da: 0713 lsls r3, r2, #28 + 80093dc: bf44 itt mi + 80093de: 232b movmi r3, #43 ; 0x2b + 80093e0: f88d 3053 strbmi.w r3, [sp, #83] ; 0x53 + 80093e4: f89a 3000 ldrb.w r3, [sl] + 80093e8: 2b2a cmp r3, #42 ; 0x2a + 80093ea: d015 beq.n 8009418 <_vfiprintf_r+0x13c> + 80093ec: 4654 mov r4, sl + 80093ee: 2000 movs r0, #0 + 80093f0: f04f 0c0a mov.w ip, #10 + 80093f4: 9a07 ldr r2, [sp, #28] + 80093f6: 4621 mov r1, r4 + 80093f8: f811 3b01 ldrb.w r3, [r1], #1 + 80093fc: 3b30 subs r3, #48 ; 0x30 + 80093fe: 2b09 cmp r3, #9 + 8009400: d94e bls.n 80094a0 <_vfiprintf_r+0x1c4> + 8009402: b1b0 cbz r0, 8009432 <_vfiprintf_r+0x156> + 8009404: 9207 str r2, [sp, #28] + 8009406: e014 b.n 8009432 <_vfiprintf_r+0x156> + 8009408: eba0 0308 sub.w r3, r0, r8 + 800940c: fa09 f303 lsl.w r3, r9, r3 + 8009410: 4313 orrs r3, r2 + 8009412: 46a2 mov sl, r4 + 8009414: 9304 str r3, [sp, #16] + 8009416: e7d2 b.n 80093be <_vfiprintf_r+0xe2> + 8009418: 9b03 ldr r3, [sp, #12] + 800941a: 1d19 adds r1, r3, #4 + 800941c: 681b ldr r3, [r3, #0] + 800941e: 9103 str r1, [sp, #12] + 8009420: 2b00 cmp r3, #0 + 8009422: bfbb ittet lt + 8009424: 425b neglt r3, r3 + 8009426: f042 0202 orrlt.w r2, r2, #2 + 800942a: 9307 strge r3, [sp, #28] + 800942c: 9307 strlt r3, [sp, #28] + 800942e: bfb8 it lt + 8009430: 9204 strlt r2, [sp, #16] + 8009432: 7823 ldrb r3, [r4, #0] + 8009434: 2b2e cmp r3, #46 ; 0x2e + 8009436: d10c bne.n 8009452 <_vfiprintf_r+0x176> + 8009438: 7863 ldrb r3, [r4, #1] + 800943a: 2b2a cmp r3, #42 ; 0x2a + 800943c: d135 bne.n 80094aa <_vfiprintf_r+0x1ce> + 800943e: 9b03 ldr r3, [sp, #12] + 8009440: 3402 adds r4, #2 + 8009442: 1d1a adds r2, r3, #4 + 8009444: 681b ldr r3, [r3, #0] + 8009446: 9203 str r2, [sp, #12] + 8009448: 2b00 cmp r3, #0 + 800944a: bfb8 it lt + 800944c: f04f 33ff movlt.w r3, #4294967295 ; 0xffffffff + 8009450: 9305 str r3, [sp, #20] + 8009452: f8df a0e4 ldr.w sl, [pc, #228] ; 8009538 <_vfiprintf_r+0x25c> + 8009456: 2203 movs r2, #3 + 8009458: 4650 mov r0, sl + 800945a: 7821 ldrb r1, [r4, #0] + 800945c: f7ff f97e bl 800875c + 8009460: b140 cbz r0, 8009474 <_vfiprintf_r+0x198> + 8009462: 2340 movs r3, #64 ; 0x40 + 8009464: eba0 000a sub.w r0, r0, sl + 8009468: fa03 f000 lsl.w r0, r3, r0 + 800946c: 9b04 ldr r3, [sp, #16] + 800946e: 3401 adds r4, #1 + 8009470: 4303 orrs r3, r0 + 8009472: 9304 str r3, [sp, #16] + 8009474: f814 1b01 ldrb.w r1, [r4], #1 + 8009478: 2206 movs r2, #6 + 800947a: 482c ldr r0, [pc, #176] ; (800952c <_vfiprintf_r+0x250>) + 800947c: f88d 1028 strb.w r1, [sp, #40] ; 0x28 + 8009480: f7ff f96c bl 800875c 8009484: 2800 cmp r0, #0 - 8009486: d0f2 beq.n 800946e <_realloc_r+0x1c> - 8009488: 4631 mov r1, r6 - 800948a: 4622 mov r2, r4 - 800948c: f7ff fa7c bl 8008988 - 8009490: 4631 mov r1, r6 - 8009492: 4638 mov r0, r7 - 8009494: f7fd feb4 bl 8007200 <_free_r> - 8009498: e7e9 b.n 800946e <_realloc_r+0x1c> - 800949a: 4635 mov r5, r6 - 800949c: e7e7 b.n 800946e <_realloc_r+0x1c> + 8009486: d03f beq.n 8009508 <_vfiprintf_r+0x22c> + 8009488: 4b29 ldr r3, [pc, #164] ; (8009530 <_vfiprintf_r+0x254>) + 800948a: bb1b cbnz r3, 80094d4 <_vfiprintf_r+0x1f8> + 800948c: 9b03 ldr r3, [sp, #12] + 800948e: 3307 adds r3, #7 + 8009490: f023 0307 bic.w r3, r3, #7 + 8009494: 3308 adds r3, #8 + 8009496: 9303 str r3, [sp, #12] + 8009498: 9b09 ldr r3, [sp, #36] ; 0x24 + 800949a: 443b add r3, r7 + 800949c: 9309 str r3, [sp, #36] ; 0x24 + 800949e: e767 b.n 8009370 <_vfiprintf_r+0x94> + 80094a0: 460c mov r4, r1 + 80094a2: 2001 movs r0, #1 + 80094a4: fb0c 3202 mla r2, ip, r2, r3 + 80094a8: e7a5 b.n 80093f6 <_vfiprintf_r+0x11a> + 80094aa: 2300 movs r3, #0 + 80094ac: f04f 0c0a mov.w ip, #10 + 80094b0: 4619 mov r1, r3 + 80094b2: 3401 adds r4, #1 + 80094b4: 9305 str r3, [sp, #20] + 80094b6: 4620 mov r0, r4 + 80094b8: f810 2b01 ldrb.w r2, [r0], #1 + 80094bc: 3a30 subs r2, #48 ; 0x30 + 80094be: 2a09 cmp r2, #9 + 80094c0: d903 bls.n 80094ca <_vfiprintf_r+0x1ee> + 80094c2: 2b00 cmp r3, #0 + 80094c4: d0c5 beq.n 8009452 <_vfiprintf_r+0x176> + 80094c6: 9105 str r1, [sp, #20] + 80094c8: e7c3 b.n 8009452 <_vfiprintf_r+0x176> + 80094ca: 4604 mov r4, r0 + 80094cc: 2301 movs r3, #1 + 80094ce: fb0c 2101 mla r1, ip, r1, r2 + 80094d2: e7f0 b.n 80094b6 <_vfiprintf_r+0x1da> + 80094d4: ab03 add r3, sp, #12 + 80094d6: 9300 str r3, [sp, #0] + 80094d8: 462a mov r2, r5 + 80094da: 4630 mov r0, r6 + 80094dc: 4b15 ldr r3, [pc, #84] ; (8009534 <_vfiprintf_r+0x258>) + 80094de: a904 add r1, sp, #16 + 80094e0: f7fd fec8 bl 8007274 <_printf_float> + 80094e4: 4607 mov r7, r0 + 80094e6: 1c78 adds r0, r7, #1 + 80094e8: d1d6 bne.n 8009498 <_vfiprintf_r+0x1bc> + 80094ea: 6e6b ldr r3, [r5, #100] ; 0x64 + 80094ec: 07d9 lsls r1, r3, #31 + 80094ee: d405 bmi.n 80094fc <_vfiprintf_r+0x220> + 80094f0: 89ab ldrh r3, [r5, #12] + 80094f2: 059a lsls r2, r3, #22 + 80094f4: d402 bmi.n 80094fc <_vfiprintf_r+0x220> + 80094f6: 6da8 ldr r0, [r5, #88] ; 0x58 + 80094f8: f7ff fe76 bl 80091e8 <__retarget_lock_release_recursive> + 80094fc: 89ab ldrh r3, [r5, #12] + 80094fe: 065b lsls r3, r3, #25 + 8009500: f53f af12 bmi.w 8009328 <_vfiprintf_r+0x4c> + 8009504: 9809 ldr r0, [sp, #36] ; 0x24 + 8009506: e711 b.n 800932c <_vfiprintf_r+0x50> + 8009508: ab03 add r3, sp, #12 + 800950a: 9300 str r3, [sp, #0] + 800950c: 462a mov r2, r5 + 800950e: 4630 mov r0, r6 + 8009510: 4b08 ldr r3, [pc, #32] ; (8009534 <_vfiprintf_r+0x258>) + 8009512: a904 add r1, sp, #16 + 8009514: f7fe f94a bl 80077ac <_printf_i> + 8009518: e7e4 b.n 80094e4 <_vfiprintf_r+0x208> + 800951a: bf00 nop + 800951c: 0800ac14 .word 0x0800ac14 + 8009520: 0800ac34 .word 0x0800ac34 + 8009524: 0800abf4 .word 0x0800abf4 + 8009528: 0800aa9c .word 0x0800aa9c + 800952c: 0800aaa6 .word 0x0800aaa6 + 8009530: 08007275 .word 0x08007275 + 8009534: 080092b9 .word 0x080092b9 + 8009538: 0800aaa2 .word 0x0800aaa2 -0800949e <__sfputc_r>: - 800949e: 6893 ldr r3, [r2, #8] - 80094a0: b410 push {r4} - 80094a2: 3b01 subs r3, #1 - 80094a4: 2b00 cmp r3, #0 - 80094a6: 6093 str r3, [r2, #8] - 80094a8: da07 bge.n 80094ba <__sfputc_r+0x1c> - 80094aa: 6994 ldr r4, [r2, #24] - 80094ac: 42a3 cmp r3, r4 - 80094ae: db01 blt.n 80094b4 <__sfputc_r+0x16> - 80094b0: 290a cmp r1, #10 - 80094b2: d102 bne.n 80094ba <__sfputc_r+0x1c> - 80094b4: bc10 pop {r4} - 80094b6: f000 b949 b.w 800974c <__swbuf_r> - 80094ba: 6813 ldr r3, [r2, #0] - 80094bc: 1c58 adds r0, r3, #1 - 80094be: 6010 str r0, [r2, #0] - 80094c0: 7019 strb r1, [r3, #0] - 80094c2: 4608 mov r0, r1 - 80094c4: bc10 pop {r4} - 80094c6: 4770 bx lr +0800953c <__swbuf_r>: + 800953c: b5f8 push {r3, r4, r5, r6, r7, lr} + 800953e: 460e mov r6, r1 + 8009540: 4614 mov r4, r2 + 8009542: 4605 mov r5, r0 + 8009544: b118 cbz r0, 800954e <__swbuf_r+0x12> + 8009546: 6983 ldr r3, [r0, #24] + 8009548: b90b cbnz r3, 800954e <__swbuf_r+0x12> + 800954a: f000 f9e7 bl 800991c <__sinit> + 800954e: 4b21 ldr r3, [pc, #132] ; (80095d4 <__swbuf_r+0x98>) + 8009550: 429c cmp r4, r3 + 8009552: d12b bne.n 80095ac <__swbuf_r+0x70> + 8009554: 686c ldr r4, [r5, #4] + 8009556: 69a3 ldr r3, [r4, #24] + 8009558: 60a3 str r3, [r4, #8] + 800955a: 89a3 ldrh r3, [r4, #12] + 800955c: 071a lsls r2, r3, #28 + 800955e: d52f bpl.n 80095c0 <__swbuf_r+0x84> + 8009560: 6923 ldr r3, [r4, #16] + 8009562: b36b cbz r3, 80095c0 <__swbuf_r+0x84> + 8009564: 6923 ldr r3, [r4, #16] + 8009566: 6820 ldr r0, [r4, #0] + 8009568: b2f6 uxtb r6, r6 + 800956a: 1ac0 subs r0, r0, r3 + 800956c: 6963 ldr r3, [r4, #20] + 800956e: 4637 mov r7, r6 + 8009570: 4283 cmp r3, r0 + 8009572: dc04 bgt.n 800957e <__swbuf_r+0x42> + 8009574: 4621 mov r1, r4 + 8009576: 4628 mov r0, r5 + 8009578: f000 f93c bl 80097f4 <_fflush_r> + 800957c: bb30 cbnz r0, 80095cc <__swbuf_r+0x90> + 800957e: 68a3 ldr r3, [r4, #8] + 8009580: 3001 adds r0, #1 + 8009582: 3b01 subs r3, #1 + 8009584: 60a3 str r3, [r4, #8] + 8009586: 6823 ldr r3, [r4, #0] + 8009588: 1c5a adds r2, r3, #1 + 800958a: 6022 str r2, [r4, #0] + 800958c: 701e strb r6, [r3, #0] + 800958e: 6963 ldr r3, [r4, #20] + 8009590: 4283 cmp r3, r0 + 8009592: d004 beq.n 800959e <__swbuf_r+0x62> + 8009594: 89a3 ldrh r3, [r4, #12] + 8009596: 07db lsls r3, r3, #31 + 8009598: d506 bpl.n 80095a8 <__swbuf_r+0x6c> + 800959a: 2e0a cmp r6, #10 + 800959c: d104 bne.n 80095a8 <__swbuf_r+0x6c> + 800959e: 4621 mov r1, r4 + 80095a0: 4628 mov r0, r5 + 80095a2: f000 f927 bl 80097f4 <_fflush_r> + 80095a6: b988 cbnz r0, 80095cc <__swbuf_r+0x90> + 80095a8: 4638 mov r0, r7 + 80095aa: bdf8 pop {r3, r4, r5, r6, r7, pc} + 80095ac: 4b0a ldr r3, [pc, #40] ; (80095d8 <__swbuf_r+0x9c>) + 80095ae: 429c cmp r4, r3 + 80095b0: d101 bne.n 80095b6 <__swbuf_r+0x7a> + 80095b2: 68ac ldr r4, [r5, #8] + 80095b4: e7cf b.n 8009556 <__swbuf_r+0x1a> + 80095b6: 4b09 ldr r3, [pc, #36] ; (80095dc <__swbuf_r+0xa0>) + 80095b8: 429c cmp r4, r3 + 80095ba: bf08 it eq + 80095bc: 68ec ldreq r4, [r5, #12] + 80095be: e7ca b.n 8009556 <__swbuf_r+0x1a> + 80095c0: 4621 mov r1, r4 + 80095c2: 4628 mov r0, r5 + 80095c4: f000 f81a bl 80095fc <__swsetup_r> + 80095c8: 2800 cmp r0, #0 + 80095ca: d0cb beq.n 8009564 <__swbuf_r+0x28> + 80095cc: f04f 37ff mov.w r7, #4294967295 ; 0xffffffff + 80095d0: e7ea b.n 80095a8 <__swbuf_r+0x6c> + 80095d2: bf00 nop + 80095d4: 0800ac14 .word 0x0800ac14 + 80095d8: 0800ac34 .word 0x0800ac34 + 80095dc: 0800abf4 .word 0x0800abf4 -080094c8 <__sfputs_r>: - 80094c8: b5f8 push {r3, r4, r5, r6, r7, lr} - 80094ca: 4606 mov r6, r0 - 80094cc: 460f mov r7, r1 - 80094ce: 4614 mov r4, r2 - 80094d0: 18d5 adds r5, r2, r3 - 80094d2: 42ac cmp r4, r5 - 80094d4: d101 bne.n 80094da <__sfputs_r+0x12> - 80094d6: 2000 movs r0, #0 - 80094d8: e007 b.n 80094ea <__sfputs_r+0x22> - 80094da: 463a mov r2, r7 - 80094dc: 4630 mov r0, r6 - 80094de: f814 1b01 ldrb.w r1, [r4], #1 - 80094e2: f7ff ffdc bl 800949e <__sfputc_r> - 80094e6: 1c43 adds r3, r0, #1 - 80094e8: d1f3 bne.n 80094d2 <__sfputs_r+0xa> - 80094ea: bdf8 pop {r3, r4, r5, r6, r7, pc} - -080094ec <_vfiprintf_r>: - 80094ec: e92d 4ff0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, fp, lr} - 80094f0: 460d mov r5, r1 - 80094f2: 4614 mov r4, r2 - 80094f4: 4698 mov r8, r3 - 80094f6: 4606 mov r6, r0 - 80094f8: b09d sub sp, #116 ; 0x74 - 80094fa: b118 cbz r0, 8009504 <_vfiprintf_r+0x18> - 80094fc: 6983 ldr r3, [r0, #24] - 80094fe: b90b cbnz r3, 8009504 <_vfiprintf_r+0x18> - 8009500: f000 fb14 bl 8009b2c <__sinit> - 8009504: 4b89 ldr r3, [pc, #548] ; (800972c <_vfiprintf_r+0x240>) - 8009506: 429d cmp r5, r3 - 8009508: d11b bne.n 8009542 <_vfiprintf_r+0x56> - 800950a: 6875 ldr r5, [r6, #4] - 800950c: 6e6b ldr r3, [r5, #100] ; 0x64 - 800950e: 07d9 lsls r1, r3, #31 - 8009510: d405 bmi.n 800951e <_vfiprintf_r+0x32> - 8009512: 89ab ldrh r3, [r5, #12] - 8009514: 059a lsls r2, r3, #22 - 8009516: d402 bmi.n 800951e <_vfiprintf_r+0x32> - 8009518: 6da8 ldr r0, [r5, #88] ; 0x58 - 800951a: f7ff ff6c bl 80093f6 <__retarget_lock_acquire_recursive> - 800951e: 89ab ldrh r3, [r5, #12] - 8009520: 071b lsls r3, r3, #28 - 8009522: d501 bpl.n 8009528 <_vfiprintf_r+0x3c> - 8009524: 692b ldr r3, [r5, #16] - 8009526: b9eb cbnz r3, 8009564 <_vfiprintf_r+0x78> - 8009528: 4629 mov r1, r5 - 800952a: 4630 mov r0, r6 - 800952c: f000 f96e bl 800980c <__swsetup_r> - 8009530: b1c0 cbz r0, 8009564 <_vfiprintf_r+0x78> - 8009532: 6e6b ldr r3, [r5, #100] ; 0x64 - 8009534: 07dc lsls r4, r3, #31 - 8009536: d50e bpl.n 8009556 <_vfiprintf_r+0x6a> - 8009538: f04f 30ff mov.w r0, #4294967295 ; 0xffffffff - 800953c: b01d add sp, #116 ; 0x74 - 800953e: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc} - 8009542: 4b7b ldr r3, [pc, #492] ; (8009730 <_vfiprintf_r+0x244>) - 8009544: 429d cmp r5, r3 - 8009546: d101 bne.n 800954c <_vfiprintf_r+0x60> - 8009548: 68b5 ldr r5, [r6, #8] - 800954a: e7df b.n 800950c <_vfiprintf_r+0x20> - 800954c: 4b79 ldr r3, [pc, #484] ; (8009734 <_vfiprintf_r+0x248>) - 800954e: 429d cmp r5, r3 - 8009550: bf08 it eq - 8009552: 68f5 ldreq r5, [r6, #12] - 8009554: e7da b.n 800950c <_vfiprintf_r+0x20> - 8009556: 89ab ldrh r3, [r5, #12] - 8009558: 0598 lsls r0, r3, #22 - 800955a: d4ed bmi.n 8009538 <_vfiprintf_r+0x4c> - 800955c: 6da8 ldr r0, [r5, #88] ; 0x58 - 800955e: f7ff ff4b bl 80093f8 <__retarget_lock_release_recursive> - 8009562: e7e9 b.n 8009538 <_vfiprintf_r+0x4c> - 8009564: 2300 movs r3, #0 - 8009566: 9309 str r3, [sp, #36] ; 0x24 - 8009568: 2320 movs r3, #32 - 800956a: f88d 3029 strb.w r3, [sp, #41] ; 0x29 - 800956e: 2330 movs r3, #48 ; 0x30 - 8009570: f04f 0901 mov.w r9, #1 - 8009574: f8cd 800c str.w r8, [sp, #12] - 8009578: f8df 81bc ldr.w r8, [pc, #444] ; 8009738 <_vfiprintf_r+0x24c> - 800957c: f88d 302a strb.w r3, [sp, #42] ; 0x2a - 8009580: 4623 mov r3, r4 - 8009582: 469a mov sl, r3 - 8009584: f813 2b01 ldrb.w r2, [r3], #1 - 8009588: b10a cbz r2, 800958e <_vfiprintf_r+0xa2> - 800958a: 2a25 cmp r2, #37 ; 0x25 - 800958c: d1f9 bne.n 8009582 <_vfiprintf_r+0x96> - 800958e: ebba 0b04 subs.w fp, sl, r4 - 8009592: d00b beq.n 80095ac <_vfiprintf_r+0xc0> - 8009594: 465b mov r3, fp - 8009596: 4622 mov r2, r4 - 8009598: 4629 mov r1, r5 - 800959a: 4630 mov r0, r6 - 800959c: f7ff ff94 bl 80094c8 <__sfputs_r> - 80095a0: 3001 adds r0, #1 - 80095a2: f000 80aa beq.w 80096fa <_vfiprintf_r+0x20e> - 80095a6: 9a09 ldr r2, [sp, #36] ; 0x24 - 80095a8: 445a add r2, fp - 80095aa: 9209 str r2, [sp, #36] ; 0x24 - 80095ac: f89a 3000 ldrb.w r3, [sl] - 80095b0: 2b00 cmp r3, #0 - 80095b2: f000 80a2 beq.w 80096fa <_vfiprintf_r+0x20e> - 80095b6: 2300 movs r3, #0 - 80095b8: f04f 32ff mov.w r2, #4294967295 ; 0xffffffff - 80095bc: e9cd 2305 strd r2, r3, [sp, #20] - 80095c0: f10a 0a01 add.w sl, sl, #1 - 80095c4: 9304 str r3, [sp, #16] - 80095c6: 9307 str r3, [sp, #28] - 80095c8: f88d 3053 strb.w r3, [sp, #83] ; 0x53 - 80095cc: 931a str r3, [sp, #104] ; 0x68 - 80095ce: 4654 mov r4, sl - 80095d0: 2205 movs r2, #5 - 80095d2: f814 1b01 ldrb.w r1, [r4], #1 - 80095d6: 4858 ldr r0, [pc, #352] ; (8009738 <_vfiprintf_r+0x24c>) - 80095d8: f7ff f9c8 bl 800896c - 80095dc: 9a04 ldr r2, [sp, #16] - 80095de: b9d8 cbnz r0, 8009618 <_vfiprintf_r+0x12c> - 80095e0: 06d1 lsls r1, r2, #27 - 80095e2: bf44 itt mi - 80095e4: 2320 movmi r3, #32 - 80095e6: f88d 3053 strbmi.w r3, [sp, #83] ; 0x53 - 80095ea: 0713 lsls r3, r2, #28 - 80095ec: bf44 itt mi - 80095ee: 232b movmi r3, #43 ; 0x2b - 80095f0: f88d 3053 strbmi.w r3, [sp, #83] ; 0x53 - 80095f4: f89a 3000 ldrb.w r3, [sl] - 80095f8: 2b2a cmp r3, #42 ; 0x2a - 80095fa: d015 beq.n 8009628 <_vfiprintf_r+0x13c> - 80095fc: 4654 mov r4, sl - 80095fe: 2000 movs r0, #0 - 8009600: f04f 0c0a mov.w ip, #10 - 8009604: 9a07 ldr r2, [sp, #28] - 8009606: 4621 mov r1, r4 - 8009608: f811 3b01 ldrb.w r3, [r1], #1 - 800960c: 3b30 subs r3, #48 ; 0x30 - 800960e: 2b09 cmp r3, #9 - 8009610: d94e bls.n 80096b0 <_vfiprintf_r+0x1c4> - 8009612: b1b0 cbz r0, 8009642 <_vfiprintf_r+0x156> - 8009614: 9207 str r2, [sp, #28] - 8009616: e014 b.n 8009642 <_vfiprintf_r+0x156> - 8009618: eba0 0308 sub.w r3, r0, r8 - 800961c: fa09 f303 lsl.w r3, r9, r3 - 8009620: 4313 orrs r3, r2 - 8009622: 46a2 mov sl, r4 - 8009624: 9304 str r3, [sp, #16] - 8009626: e7d2 b.n 80095ce <_vfiprintf_r+0xe2> - 8009628: 9b03 ldr r3, [sp, #12] - 800962a: 1d19 adds r1, r3, #4 - 800962c: 681b ldr r3, [r3, #0] - 800962e: 9103 str r1, [sp, #12] - 8009630: 2b00 cmp r3, #0 - 8009632: bfbb ittet lt - 8009634: 425b neglt r3, r3 - 8009636: f042 0202 orrlt.w r2, r2, #2 - 800963a: 9307 strge r3, [sp, #28] - 800963c: 9307 strlt r3, [sp, #28] - 800963e: bfb8 it lt - 8009640: 9204 strlt r2, [sp, #16] - 8009642: 7823 ldrb r3, [r4, #0] - 8009644: 2b2e cmp r3, #46 ; 0x2e - 8009646: d10c bne.n 8009662 <_vfiprintf_r+0x176> - 8009648: 7863 ldrb r3, [r4, #1] - 800964a: 2b2a cmp r3, #42 ; 0x2a - 800964c: d135 bne.n 80096ba <_vfiprintf_r+0x1ce> - 800964e: 9b03 ldr r3, [sp, #12] - 8009650: 3402 adds r4, #2 - 8009652: 1d1a adds r2, r3, #4 - 8009654: 681b ldr r3, [r3, #0] - 8009656: 9203 str r2, [sp, #12] - 8009658: 2b00 cmp r3, #0 - 800965a: bfb8 it lt - 800965c: f04f 33ff movlt.w r3, #4294967295 ; 0xffffffff - 8009660: 9305 str r3, [sp, #20] - 8009662: f8df a0e4 ldr.w sl, [pc, #228] ; 8009748 <_vfiprintf_r+0x25c> - 8009666: 2203 movs r2, #3 - 8009668: 4650 mov r0, sl - 800966a: 7821 ldrb r1, [r4, #0] - 800966c: f7ff f97e bl 800896c - 8009670: b140 cbz r0, 8009684 <_vfiprintf_r+0x198> - 8009672: 2340 movs r3, #64 ; 0x40 - 8009674: eba0 000a sub.w r0, r0, sl - 8009678: fa03 f000 lsl.w r0, r3, r0 - 800967c: 9b04 ldr r3, [sp, #16] - 800967e: 3401 adds r4, #1 - 8009680: 4303 orrs r3, r0 - 8009682: 9304 str r3, [sp, #16] - 8009684: f814 1b01 ldrb.w r1, [r4], #1 - 8009688: 2206 movs r2, #6 - 800968a: 482c ldr r0, [pc, #176] ; (800973c <_vfiprintf_r+0x250>) - 800968c: f88d 1028 strb.w r1, [sp, #40] ; 0x28 - 8009690: f7ff f96c bl 800896c - 8009694: 2800 cmp r0, #0 - 8009696: d03f beq.n 8009718 <_vfiprintf_r+0x22c> - 8009698: 4b29 ldr r3, [pc, #164] ; (8009740 <_vfiprintf_r+0x254>) - 800969a: bb1b cbnz r3, 80096e4 <_vfiprintf_r+0x1f8> - 800969c: 9b03 ldr r3, [sp, #12] - 800969e: 3307 adds r3, #7 - 80096a0: f023 0307 bic.w r3, r3, #7 - 80096a4: 3308 adds r3, #8 - 80096a6: 9303 str r3, [sp, #12] - 80096a8: 9b09 ldr r3, [sp, #36] ; 0x24 - 80096aa: 443b add r3, r7 - 80096ac: 9309 str r3, [sp, #36] ; 0x24 - 80096ae: e767 b.n 8009580 <_vfiprintf_r+0x94> - 80096b0: 460c mov r4, r1 - 80096b2: 2001 movs r0, #1 - 80096b4: fb0c 3202 mla r2, ip, r2, r3 - 80096b8: e7a5 b.n 8009606 <_vfiprintf_r+0x11a> - 80096ba: 2300 movs r3, #0 - 80096bc: f04f 0c0a mov.w ip, #10 - 80096c0: 4619 mov r1, r3 - 80096c2: 3401 adds r4, #1 - 80096c4: 9305 str r3, [sp, #20] - 80096c6: 4620 mov r0, r4 - 80096c8: f810 2b01 ldrb.w r2, [r0], #1 - 80096cc: 3a30 subs r2, #48 ; 0x30 - 80096ce: 2a09 cmp r2, #9 - 80096d0: d903 bls.n 80096da <_vfiprintf_r+0x1ee> - 80096d2: 2b00 cmp r3, #0 - 80096d4: d0c5 beq.n 8009662 <_vfiprintf_r+0x176> - 80096d6: 9105 str r1, [sp, #20] - 80096d8: e7c3 b.n 8009662 <_vfiprintf_r+0x176> - 80096da: 4604 mov r4, r0 - 80096dc: 2301 movs r3, #1 - 80096de: fb0c 2101 mla r1, ip, r1, r2 - 80096e2: e7f0 b.n 80096c6 <_vfiprintf_r+0x1da> - 80096e4: ab03 add r3, sp, #12 - 80096e6: 9300 str r3, [sp, #0] - 80096e8: 462a mov r2, r5 - 80096ea: 4630 mov r0, r6 - 80096ec: 4b15 ldr r3, [pc, #84] ; (8009744 <_vfiprintf_r+0x258>) - 80096ee: a904 add r1, sp, #16 - 80096f0: f7fd feca bl 8007488 <_printf_float> - 80096f4: 4607 mov r7, r0 - 80096f6: 1c78 adds r0, r7, #1 - 80096f8: d1d6 bne.n 80096a8 <_vfiprintf_r+0x1bc> - 80096fa: 6e6b ldr r3, [r5, #100] ; 0x64 - 80096fc: 07d9 lsls r1, r3, #31 - 80096fe: d405 bmi.n 800970c <_vfiprintf_r+0x220> - 8009700: 89ab ldrh r3, [r5, #12] - 8009702: 059a lsls r2, r3, #22 - 8009704: d402 bmi.n 800970c <_vfiprintf_r+0x220> - 8009706: 6da8 ldr r0, [r5, #88] ; 0x58 - 8009708: f7ff fe76 bl 80093f8 <__retarget_lock_release_recursive> - 800970c: 89ab ldrh r3, [r5, #12] - 800970e: 065b lsls r3, r3, #25 - 8009710: f53f af12 bmi.w 8009538 <_vfiprintf_r+0x4c> - 8009714: 9809 ldr r0, [sp, #36] ; 0x24 - 8009716: e711 b.n 800953c <_vfiprintf_r+0x50> - 8009718: ab03 add r3, sp, #12 - 800971a: 9300 str r3, [sp, #0] - 800971c: 462a mov r2, r5 - 800971e: 4630 mov r0, r6 - 8009720: 4b08 ldr r3, [pc, #32] ; (8009744 <_vfiprintf_r+0x258>) - 8009722: a904 add r1, sp, #16 - 8009724: f7fe f94c bl 80079c0 <_printf_i> - 8009728: e7e4 b.n 80096f4 <_vfiprintf_r+0x208> - 800972a: bf00 nop - 800972c: 0800b27c .word 0x0800b27c - 8009730: 0800b29c .word 0x0800b29c - 8009734: 0800b25c .word 0x0800b25c - 8009738: 0800b104 .word 0x0800b104 - 800973c: 0800b10e .word 0x0800b10e - 8009740: 08007489 .word 0x08007489 - 8009744: 080094c9 .word 0x080094c9 - 8009748: 0800b10a .word 0x0800b10a - -0800974c <__swbuf_r>: - 800974c: b5f8 push {r3, r4, r5, r6, r7, lr} - 800974e: 460e mov r6, r1 - 8009750: 4614 mov r4, r2 - 8009752: 4605 mov r5, r0 - 8009754: b118 cbz r0, 800975e <__swbuf_r+0x12> - 8009756: 6983 ldr r3, [r0, #24] - 8009758: b90b cbnz r3, 800975e <__swbuf_r+0x12> - 800975a: f000 f9e7 bl 8009b2c <__sinit> - 800975e: 4b21 ldr r3, [pc, #132] ; (80097e4 <__swbuf_r+0x98>) - 8009760: 429c cmp r4, r3 - 8009762: d12b bne.n 80097bc <__swbuf_r+0x70> - 8009764: 686c ldr r4, [r5, #4] - 8009766: 69a3 ldr r3, [r4, #24] - 8009768: 60a3 str r3, [r4, #8] - 800976a: 89a3 ldrh r3, [r4, #12] - 800976c: 071a lsls r2, r3, #28 - 800976e: d52f bpl.n 80097d0 <__swbuf_r+0x84> - 8009770: 6923 ldr r3, [r4, #16] - 8009772: b36b cbz r3, 80097d0 <__swbuf_r+0x84> - 8009774: 6923 ldr r3, [r4, #16] - 8009776: 6820 ldr r0, [r4, #0] - 8009778: b2f6 uxtb r6, r6 - 800977a: 1ac0 subs r0, r0, r3 - 800977c: 6963 ldr r3, [r4, #20] - 800977e: 4637 mov r7, r6 - 8009780: 4283 cmp r3, r0 - 8009782: dc04 bgt.n 800978e <__swbuf_r+0x42> - 8009784: 4621 mov r1, r4 - 8009786: 4628 mov r0, r5 - 8009788: f000 f93c bl 8009a04 <_fflush_r> - 800978c: bb30 cbnz r0, 80097dc <__swbuf_r+0x90> - 800978e: 68a3 ldr r3, [r4, #8] - 8009790: 3001 adds r0, #1 - 8009792: 3b01 subs r3, #1 - 8009794: 60a3 str r3, [r4, #8] - 8009796: 6823 ldr r3, [r4, #0] - 8009798: 1c5a adds r2, r3, #1 - 800979a: 6022 str r2, [r4, #0] - 800979c: 701e strb r6, [r3, #0] - 800979e: 6963 ldr r3, [r4, #20] - 80097a0: 4283 cmp r3, r0 - 80097a2: d004 beq.n 80097ae <__swbuf_r+0x62> - 80097a4: 89a3 ldrh r3, [r4, #12] - 80097a6: 07db lsls r3, r3, #31 - 80097a8: d506 bpl.n 80097b8 <__swbuf_r+0x6c> - 80097aa: 2e0a cmp r6, #10 - 80097ac: d104 bne.n 80097b8 <__swbuf_r+0x6c> - 80097ae: 4621 mov r1, r4 - 80097b0: 4628 mov r0, r5 - 80097b2: f000 f927 bl 8009a04 <_fflush_r> - 80097b6: b988 cbnz r0, 80097dc <__swbuf_r+0x90> - 80097b8: 4638 mov r0, r7 - 80097ba: bdf8 pop {r3, r4, r5, r6, r7, pc} - 80097bc: 4b0a ldr r3, [pc, #40] ; (80097e8 <__swbuf_r+0x9c>) - 80097be: 429c cmp r4, r3 - 80097c0: d101 bne.n 80097c6 <__swbuf_r+0x7a> - 80097c2: 68ac ldr r4, [r5, #8] - 80097c4: e7cf b.n 8009766 <__swbuf_r+0x1a> - 80097c6: 4b09 ldr r3, [pc, #36] ; (80097ec <__swbuf_r+0xa0>) - 80097c8: 429c cmp r4, r3 - 80097ca: bf08 it eq - 80097cc: 68ec ldreq r4, [r5, #12] - 80097ce: e7ca b.n 8009766 <__swbuf_r+0x1a> - 80097d0: 4621 mov r1, r4 - 80097d2: 4628 mov r0, r5 - 80097d4: f000 f81a bl 800980c <__swsetup_r> - 80097d8: 2800 cmp r0, #0 - 80097da: d0cb beq.n 8009774 <__swbuf_r+0x28> - 80097dc: f04f 37ff mov.w r7, #4294967295 ; 0xffffffff - 80097e0: e7ea b.n 80097b8 <__swbuf_r+0x6c> - 80097e2: bf00 nop - 80097e4: 0800b27c .word 0x0800b27c - 80097e8: 0800b29c .word 0x0800b29c - 80097ec: 0800b25c .word 0x0800b25c - -080097f0 <__ascii_wctomb>: - 80097f0: 4603 mov r3, r0 - 80097f2: 4608 mov r0, r1 - 80097f4: b141 cbz r1, 8009808 <__ascii_wctomb+0x18> - 80097f6: 2aff cmp r2, #255 ; 0xff - 80097f8: d904 bls.n 8009804 <__ascii_wctomb+0x14> - 80097fa: 228a movs r2, #138 ; 0x8a - 80097fc: f04f 30ff mov.w r0, #4294967295 ; 0xffffffff - 8009800: 601a str r2, [r3, #0] - 8009802: 4770 bx lr - 8009804: 2001 movs r0, #1 - 8009806: 700a strb r2, [r1, #0] - 8009808: 4770 bx lr +080095e0 <__ascii_wctomb>: + 80095e0: 4603 mov r3, r0 + 80095e2: 4608 mov r0, r1 + 80095e4: b141 cbz r1, 80095f8 <__ascii_wctomb+0x18> + 80095e6: 2aff cmp r2, #255 ; 0xff + 80095e8: d904 bls.n 80095f4 <__ascii_wctomb+0x14> + 80095ea: 228a movs r2, #138 ; 0x8a + 80095ec: f04f 30ff mov.w r0, #4294967295 ; 0xffffffff + 80095f0: 601a str r2, [r3, #0] + 80095f2: 4770 bx lr + 80095f4: 2001 movs r0, #1 + 80095f6: 700a strb r2, [r1, #0] + 80095f8: 4770 bx lr ... -0800980c <__swsetup_r>: - 800980c: 4b32 ldr r3, [pc, #200] ; (80098d8 <__swsetup_r+0xcc>) - 800980e: b570 push {r4, r5, r6, lr} - 8009810: 681d ldr r5, [r3, #0] - 8009812: 4606 mov r6, r0 - 8009814: 460c mov r4, r1 - 8009816: b125 cbz r5, 8009822 <__swsetup_r+0x16> - 8009818: 69ab ldr r3, [r5, #24] - 800981a: b913 cbnz r3, 8009822 <__swsetup_r+0x16> - 800981c: 4628 mov r0, r5 - 800981e: f000 f985 bl 8009b2c <__sinit> - 8009822: 4b2e ldr r3, [pc, #184] ; (80098dc <__swsetup_r+0xd0>) - 8009824: 429c cmp r4, r3 - 8009826: d10f bne.n 8009848 <__swsetup_r+0x3c> - 8009828: 686c ldr r4, [r5, #4] - 800982a: 89a3 ldrh r3, [r4, #12] - 800982c: f9b4 200c ldrsh.w r2, [r4, #12] - 8009830: 0719 lsls r1, r3, #28 - 8009832: d42c bmi.n 800988e <__swsetup_r+0x82> - 8009834: 06dd lsls r5, r3, #27 - 8009836: d411 bmi.n 800985c <__swsetup_r+0x50> - 8009838: 2309 movs r3, #9 - 800983a: 6033 str r3, [r6, #0] - 800983c: f042 0340 orr.w r3, r2, #64 ; 0x40 - 8009840: f04f 30ff mov.w r0, #4294967295 ; 0xffffffff - 8009844: 81a3 strh r3, [r4, #12] - 8009846: e03e b.n 80098c6 <__swsetup_r+0xba> - 8009848: 4b25 ldr r3, [pc, #148] ; (80098e0 <__swsetup_r+0xd4>) - 800984a: 429c cmp r4, r3 - 800984c: d101 bne.n 8009852 <__swsetup_r+0x46> - 800984e: 68ac ldr r4, [r5, #8] - 8009850: e7eb b.n 800982a <__swsetup_r+0x1e> - 8009852: 4b24 ldr r3, [pc, #144] ; (80098e4 <__swsetup_r+0xd8>) - 8009854: 429c cmp r4, r3 - 8009856: bf08 it eq - 8009858: 68ec ldreq r4, [r5, #12] - 800985a: e7e6 b.n 800982a <__swsetup_r+0x1e> - 800985c: 0758 lsls r0, r3, #29 - 800985e: d512 bpl.n 8009886 <__swsetup_r+0x7a> - 8009860: 6b61 ldr r1, [r4, #52] ; 0x34 - 8009862: b141 cbz r1, 8009876 <__swsetup_r+0x6a> - 8009864: f104 0344 add.w r3, r4, #68 ; 0x44 - 8009868: 4299 cmp r1, r3 - 800986a: d002 beq.n 8009872 <__swsetup_r+0x66> - 800986c: 4630 mov r0, r6 - 800986e: f7fd fcc7 bl 8007200 <_free_r> - 8009872: 2300 movs r3, #0 - 8009874: 6363 str r3, [r4, #52] ; 0x34 - 8009876: 89a3 ldrh r3, [r4, #12] - 8009878: f023 0324 bic.w r3, r3, #36 ; 0x24 - 800987c: 81a3 strh r3, [r4, #12] - 800987e: 2300 movs r3, #0 - 8009880: 6063 str r3, [r4, #4] - 8009882: 6923 ldr r3, [r4, #16] - 8009884: 6023 str r3, [r4, #0] - 8009886: 89a3 ldrh r3, [r4, #12] - 8009888: f043 0308 orr.w r3, r3, #8 - 800988c: 81a3 strh r3, [r4, #12] - 800988e: 6923 ldr r3, [r4, #16] - 8009890: b94b cbnz r3, 80098a6 <__swsetup_r+0x9a> - 8009892: 89a3 ldrh r3, [r4, #12] - 8009894: f403 7320 and.w r3, r3, #640 ; 0x280 - 8009898: f5b3 7f00 cmp.w r3, #512 ; 0x200 - 800989c: d003 beq.n 80098a6 <__swsetup_r+0x9a> - 800989e: 4621 mov r1, r4 - 80098a0: 4630 mov r0, r6 - 80098a2: f000 fa05 bl 8009cb0 <__smakebuf_r> - 80098a6: 89a0 ldrh r0, [r4, #12] - 80098a8: f9b4 200c ldrsh.w r2, [r4, #12] - 80098ac: f010 0301 ands.w r3, r0, #1 - 80098b0: d00a beq.n 80098c8 <__swsetup_r+0xbc> - 80098b2: 2300 movs r3, #0 - 80098b4: 60a3 str r3, [r4, #8] - 80098b6: 6963 ldr r3, [r4, #20] - 80098b8: 425b negs r3, r3 - 80098ba: 61a3 str r3, [r4, #24] - 80098bc: 6923 ldr r3, [r4, #16] - 80098be: b943 cbnz r3, 80098d2 <__swsetup_r+0xc6> - 80098c0: f010 0080 ands.w r0, r0, #128 ; 0x80 - 80098c4: d1ba bne.n 800983c <__swsetup_r+0x30> - 80098c6: bd70 pop {r4, r5, r6, pc} - 80098c8: 0781 lsls r1, r0, #30 - 80098ca: bf58 it pl - 80098cc: 6963 ldrpl r3, [r4, #20] - 80098ce: 60a3 str r3, [r4, #8] - 80098d0: e7f4 b.n 80098bc <__swsetup_r+0xb0> - 80098d2: 2000 movs r0, #0 - 80098d4: e7f7 b.n 80098c6 <__swsetup_r+0xba> - 80098d6: bf00 nop - 80098d8: 2000000c .word 0x2000000c - 80098dc: 0800b27c .word 0x0800b27c - 80098e0: 0800b29c .word 0x0800b29c - 80098e4: 0800b25c .word 0x0800b25c +080095fc <__swsetup_r>: + 80095fc: 4b32 ldr r3, [pc, #200] ; (80096c8 <__swsetup_r+0xcc>) + 80095fe: b570 push {r4, r5, r6, lr} + 8009600: 681d ldr r5, [r3, #0] + 8009602: 4606 mov r6, r0 + 8009604: 460c mov r4, r1 + 8009606: b125 cbz r5, 8009612 <__swsetup_r+0x16> + 8009608: 69ab ldr r3, [r5, #24] + 800960a: b913 cbnz r3, 8009612 <__swsetup_r+0x16> + 800960c: 4628 mov r0, r5 + 800960e: f000 f985 bl 800991c <__sinit> + 8009612: 4b2e ldr r3, [pc, #184] ; (80096cc <__swsetup_r+0xd0>) + 8009614: 429c cmp r4, r3 + 8009616: d10f bne.n 8009638 <__swsetup_r+0x3c> + 8009618: 686c ldr r4, [r5, #4] + 800961a: 89a3 ldrh r3, [r4, #12] + 800961c: f9b4 200c ldrsh.w r2, [r4, #12] + 8009620: 0719 lsls r1, r3, #28 + 8009622: d42c bmi.n 800967e <__swsetup_r+0x82> + 8009624: 06dd lsls r5, r3, #27 + 8009626: d411 bmi.n 800964c <__swsetup_r+0x50> + 8009628: 2309 movs r3, #9 + 800962a: 6033 str r3, [r6, #0] + 800962c: f042 0340 orr.w r3, r2, #64 ; 0x40 + 8009630: f04f 30ff mov.w r0, #4294967295 ; 0xffffffff + 8009634: 81a3 strh r3, [r4, #12] + 8009636: e03e b.n 80096b6 <__swsetup_r+0xba> + 8009638: 4b25 ldr r3, [pc, #148] ; (80096d0 <__swsetup_r+0xd4>) + 800963a: 429c cmp r4, r3 + 800963c: d101 bne.n 8009642 <__swsetup_r+0x46> + 800963e: 68ac ldr r4, [r5, #8] + 8009640: e7eb b.n 800961a <__swsetup_r+0x1e> + 8009642: 4b24 ldr r3, [pc, #144] ; (80096d4 <__swsetup_r+0xd8>) + 8009644: 429c cmp r4, r3 + 8009646: bf08 it eq + 8009648: 68ec ldreq r4, [r5, #12] + 800964a: e7e6 b.n 800961a <__swsetup_r+0x1e> + 800964c: 0758 lsls r0, r3, #29 + 800964e: d512 bpl.n 8009676 <__swsetup_r+0x7a> + 8009650: 6b61 ldr r1, [r4, #52] ; 0x34 + 8009652: b141 cbz r1, 8009666 <__swsetup_r+0x6a> + 8009654: f104 0344 add.w r3, r4, #68 ; 0x44 + 8009658: 4299 cmp r1, r3 + 800965a: d002 beq.n 8009662 <__swsetup_r+0x66> + 800965c: 4630 mov r0, r6 + 800965e: f7fd fcc5 bl 8006fec <_free_r> + 8009662: 2300 movs r3, #0 + 8009664: 6363 str r3, [r4, #52] ; 0x34 + 8009666: 89a3 ldrh r3, [r4, #12] + 8009668: f023 0324 bic.w r3, r3, #36 ; 0x24 + 800966c: 81a3 strh r3, [r4, #12] + 800966e: 2300 movs r3, #0 + 8009670: 6063 str r3, [r4, #4] + 8009672: 6923 ldr r3, [r4, #16] + 8009674: 6023 str r3, [r4, #0] + 8009676: 89a3 ldrh r3, [r4, #12] + 8009678: f043 0308 orr.w r3, r3, #8 + 800967c: 81a3 strh r3, [r4, #12] + 800967e: 6923 ldr r3, [r4, #16] + 8009680: b94b cbnz r3, 8009696 <__swsetup_r+0x9a> + 8009682: 89a3 ldrh r3, [r4, #12] + 8009684: f403 7320 and.w r3, r3, #640 ; 0x280 + 8009688: f5b3 7f00 cmp.w r3, #512 ; 0x200 + 800968c: d003 beq.n 8009696 <__swsetup_r+0x9a> + 800968e: 4621 mov r1, r4 + 8009690: 4630 mov r0, r6 + 8009692: f000 fa05 bl 8009aa0 <__smakebuf_r> + 8009696: 89a0 ldrh r0, [r4, #12] + 8009698: f9b4 200c ldrsh.w r2, [r4, #12] + 800969c: f010 0301 ands.w r3, r0, #1 + 80096a0: d00a beq.n 80096b8 <__swsetup_r+0xbc> + 80096a2: 2300 movs r3, #0 + 80096a4: 60a3 str r3, [r4, #8] + 80096a6: 6963 ldr r3, [r4, #20] + 80096a8: 425b negs r3, r3 + 80096aa: 61a3 str r3, [r4, #24] + 80096ac: 6923 ldr r3, [r4, #16] + 80096ae: b943 cbnz r3, 80096c2 <__swsetup_r+0xc6> + 80096b0: f010 0080 ands.w r0, r0, #128 ; 0x80 + 80096b4: d1ba bne.n 800962c <__swsetup_r+0x30> + 80096b6: bd70 pop {r4, r5, r6, pc} + 80096b8: 0781 lsls r1, r0, #30 + 80096ba: bf58 it pl + 80096bc: 6963 ldrpl r3, [r4, #20] + 80096be: 60a3 str r3, [r4, #8] + 80096c0: e7f4 b.n 80096ac <__swsetup_r+0xb0> + 80096c2: 2000 movs r0, #0 + 80096c4: e7f7 b.n 80096b6 <__swsetup_r+0xba> + 80096c6: bf00 nop + 80096c8: 2000000c .word 0x2000000c + 80096cc: 0800ac14 .word 0x0800ac14 + 80096d0: 0800ac34 .word 0x0800ac34 + 80096d4: 0800abf4 .word 0x0800abf4 -080098e8 : - 80098e8: 2006 movs r0, #6 - 80098ea: b508 push {r3, lr} - 80098ec: f000 fa50 bl 8009d90 - 80098f0: 2001 movs r0, #1 - 80098f2: f7f7 ffba bl 800186a <_exit> +080096d8 : + 80096d8: 2006 movs r0, #6 + 80096da: b508 push {r3, lr} + 80096dc: f000 fa50 bl 8009b80 + 80096e0: 2001 movs r0, #1 + 80096e2: f7f8 f8f4 bl 80018ce <_exit> ... -080098f8 <__sflush_r>: - 80098f8: 898a ldrh r2, [r1, #12] - 80098fa: e92d 41f0 stmdb sp!, {r4, r5, r6, r7, r8, lr} - 80098fe: 4605 mov r5, r0 - 8009900: 0710 lsls r0, r2, #28 - 8009902: 460c mov r4, r1 - 8009904: d458 bmi.n 80099b8 <__sflush_r+0xc0> - 8009906: 684b ldr r3, [r1, #4] - 8009908: 2b00 cmp r3, #0 - 800990a: dc05 bgt.n 8009918 <__sflush_r+0x20> - 800990c: 6c0b ldr r3, [r1, #64] ; 0x40 - 800990e: 2b00 cmp r3, #0 - 8009910: dc02 bgt.n 8009918 <__sflush_r+0x20> - 8009912: 2000 movs r0, #0 - 8009914: e8bd 81f0 ldmia.w sp!, {r4, r5, r6, r7, r8, pc} - 8009918: 6ae6 ldr r6, [r4, #44] ; 0x2c - 800991a: 2e00 cmp r6, #0 - 800991c: d0f9 beq.n 8009912 <__sflush_r+0x1a> - 800991e: 2300 movs r3, #0 - 8009920: f412 5280 ands.w r2, r2, #4096 ; 0x1000 - 8009924: 682f ldr r7, [r5, #0] - 8009926: 602b str r3, [r5, #0] - 8009928: d032 beq.n 8009990 <__sflush_r+0x98> - 800992a: 6d60 ldr r0, [r4, #84] ; 0x54 - 800992c: 89a3 ldrh r3, [r4, #12] - 800992e: 075a lsls r2, r3, #29 - 8009930: d505 bpl.n 800993e <__sflush_r+0x46> - 8009932: 6863 ldr r3, [r4, #4] - 8009934: 1ac0 subs r0, r0, r3 - 8009936: 6b63 ldr r3, [r4, #52] ; 0x34 - 8009938: b10b cbz r3, 800993e <__sflush_r+0x46> - 800993a: 6c23 ldr r3, [r4, #64] ; 0x40 - 800993c: 1ac0 subs r0, r0, r3 - 800993e: 2300 movs r3, #0 - 8009940: 4602 mov r2, r0 - 8009942: 6ae6 ldr r6, [r4, #44] ; 0x2c - 8009944: 4628 mov r0, r5 - 8009946: 6a21 ldr r1, [r4, #32] - 8009948: 47b0 blx r6 - 800994a: 1c43 adds r3, r0, #1 - 800994c: 89a3 ldrh r3, [r4, #12] - 800994e: d106 bne.n 800995e <__sflush_r+0x66> - 8009950: 6829 ldr r1, [r5, #0] - 8009952: 291d cmp r1, #29 - 8009954: d82c bhi.n 80099b0 <__sflush_r+0xb8> - 8009956: 4a2a ldr r2, [pc, #168] ; (8009a00 <__sflush_r+0x108>) - 8009958: 40ca lsrs r2, r1 - 800995a: 07d6 lsls r6, r2, #31 - 800995c: d528 bpl.n 80099b0 <__sflush_r+0xb8> +080096e8 <__sflush_r>: + 80096e8: 898a ldrh r2, [r1, #12] + 80096ea: e92d 41f0 stmdb sp!, {r4, r5, r6, r7, r8, lr} + 80096ee: 4605 mov r5, r0 + 80096f0: 0710 lsls r0, r2, #28 + 80096f2: 460c mov r4, r1 + 80096f4: d458 bmi.n 80097a8 <__sflush_r+0xc0> + 80096f6: 684b ldr r3, [r1, #4] + 80096f8: 2b00 cmp r3, #0 + 80096fa: dc05 bgt.n 8009708 <__sflush_r+0x20> + 80096fc: 6c0b ldr r3, [r1, #64] ; 0x40 + 80096fe: 2b00 cmp r3, #0 + 8009700: dc02 bgt.n 8009708 <__sflush_r+0x20> + 8009702: 2000 movs r0, #0 + 8009704: e8bd 81f0 ldmia.w sp!, {r4, r5, r6, r7, r8, pc} + 8009708: 6ae6 ldr r6, [r4, #44] ; 0x2c + 800970a: 2e00 cmp r6, #0 + 800970c: d0f9 beq.n 8009702 <__sflush_r+0x1a> + 800970e: 2300 movs r3, #0 + 8009710: f412 5280 ands.w r2, r2, #4096 ; 0x1000 + 8009714: 682f ldr r7, [r5, #0] + 8009716: 602b str r3, [r5, #0] + 8009718: d032 beq.n 8009780 <__sflush_r+0x98> + 800971a: 6d60 ldr r0, [r4, #84] ; 0x54 + 800971c: 89a3 ldrh r3, [r4, #12] + 800971e: 075a lsls r2, r3, #29 + 8009720: d505 bpl.n 800972e <__sflush_r+0x46> + 8009722: 6863 ldr r3, [r4, #4] + 8009724: 1ac0 subs r0, r0, r3 + 8009726: 6b63 ldr r3, [r4, #52] ; 0x34 + 8009728: b10b cbz r3, 800972e <__sflush_r+0x46> + 800972a: 6c23 ldr r3, [r4, #64] ; 0x40 + 800972c: 1ac0 subs r0, r0, r3 + 800972e: 2300 movs r3, #0 + 8009730: 4602 mov r2, r0 + 8009732: 6ae6 ldr r6, [r4, #44] ; 0x2c + 8009734: 4628 mov r0, r5 + 8009736: 6a21 ldr r1, [r4, #32] + 8009738: 47b0 blx r6 + 800973a: 1c43 adds r3, r0, #1 + 800973c: 89a3 ldrh r3, [r4, #12] + 800973e: d106 bne.n 800974e <__sflush_r+0x66> + 8009740: 6829 ldr r1, [r5, #0] + 8009742: 291d cmp r1, #29 + 8009744: d82c bhi.n 80097a0 <__sflush_r+0xb8> + 8009746: 4a2a ldr r2, [pc, #168] ; (80097f0 <__sflush_r+0x108>) + 8009748: 40ca lsrs r2, r1 + 800974a: 07d6 lsls r6, r2, #31 + 800974c: d528 bpl.n 80097a0 <__sflush_r+0xb8> + 800974e: 2200 movs r2, #0 + 8009750: 6062 str r2, [r4, #4] + 8009752: 6922 ldr r2, [r4, #16] + 8009754: 04d9 lsls r1, r3, #19 + 8009756: 6022 str r2, [r4, #0] + 8009758: d504 bpl.n 8009764 <__sflush_r+0x7c> + 800975a: 1c42 adds r2, r0, #1 + 800975c: d101 bne.n 8009762 <__sflush_r+0x7a> + 800975e: 682b ldr r3, [r5, #0] + 8009760: b903 cbnz r3, 8009764 <__sflush_r+0x7c> + 8009762: 6560 str r0, [r4, #84] ; 0x54 + 8009764: 6b61 ldr r1, [r4, #52] ; 0x34 + 8009766: 602f str r7, [r5, #0] + 8009768: 2900 cmp r1, #0 + 800976a: d0ca beq.n 8009702 <__sflush_r+0x1a> + 800976c: f104 0344 add.w r3, r4, #68 ; 0x44 + 8009770: 4299 cmp r1, r3 + 8009772: d002 beq.n 800977a <__sflush_r+0x92> + 8009774: 4628 mov r0, r5 + 8009776: f7fd fc39 bl 8006fec <_free_r> + 800977a: 2000 movs r0, #0 + 800977c: 6360 str r0, [r4, #52] ; 0x34 + 800977e: e7c1 b.n 8009704 <__sflush_r+0x1c> + 8009780: 6a21 ldr r1, [r4, #32] + 8009782: 2301 movs r3, #1 + 8009784: 4628 mov r0, r5 + 8009786: 47b0 blx r6 + 8009788: 1c41 adds r1, r0, #1 + 800978a: d1c7 bne.n 800971c <__sflush_r+0x34> + 800978c: 682b ldr r3, [r5, #0] + 800978e: 2b00 cmp r3, #0 + 8009790: d0c4 beq.n 800971c <__sflush_r+0x34> + 8009792: 2b1d cmp r3, #29 + 8009794: d001 beq.n 800979a <__sflush_r+0xb2> + 8009796: 2b16 cmp r3, #22 + 8009798: d101 bne.n 800979e <__sflush_r+0xb6> + 800979a: 602f str r7, [r5, #0] + 800979c: e7b1 b.n 8009702 <__sflush_r+0x1a> + 800979e: 89a3 ldrh r3, [r4, #12] + 80097a0: f043 0340 orr.w r3, r3, #64 ; 0x40 + 80097a4: 81a3 strh r3, [r4, #12] + 80097a6: e7ad b.n 8009704 <__sflush_r+0x1c> + 80097a8: 690f ldr r7, [r1, #16] + 80097aa: 2f00 cmp r7, #0 + 80097ac: d0a9 beq.n 8009702 <__sflush_r+0x1a> + 80097ae: 0793 lsls r3, r2, #30 + 80097b0: bf18 it ne + 80097b2: 2300 movne r3, #0 + 80097b4: 680e ldr r6, [r1, #0] + 80097b6: bf08 it eq + 80097b8: 694b ldreq r3, [r1, #20] + 80097ba: eba6 0807 sub.w r8, r6, r7 + 80097be: 600f str r7, [r1, #0] + 80097c0: 608b str r3, [r1, #8] + 80097c2: f1b8 0f00 cmp.w r8, #0 + 80097c6: dd9c ble.n 8009702 <__sflush_r+0x1a> + 80097c8: 4643 mov r3, r8 + 80097ca: 463a mov r2, r7 + 80097cc: 4628 mov r0, r5 + 80097ce: 6a21 ldr r1, [r4, #32] + 80097d0: 6aa6 ldr r6, [r4, #40] ; 0x28 + 80097d2: 47b0 blx r6 + 80097d4: 2800 cmp r0, #0 + 80097d6: dc06 bgt.n 80097e6 <__sflush_r+0xfe> + 80097d8: 89a3 ldrh r3, [r4, #12] + 80097da: f04f 30ff mov.w r0, #4294967295 ; 0xffffffff + 80097de: f043 0340 orr.w r3, r3, #64 ; 0x40 + 80097e2: 81a3 strh r3, [r4, #12] + 80097e4: e78e b.n 8009704 <__sflush_r+0x1c> + 80097e6: 4407 add r7, r0 + 80097e8: eba8 0800 sub.w r8, r8, r0 + 80097ec: e7e9 b.n 80097c2 <__sflush_r+0xda> + 80097ee: bf00 nop + 80097f0: 20400001 .word 0x20400001 + +080097f4 <_fflush_r>: + 80097f4: b538 push {r3, r4, r5, lr} + 80097f6: 690b ldr r3, [r1, #16] + 80097f8: 4605 mov r5, r0 + 80097fa: 460c mov r4, r1 + 80097fc: b913 cbnz r3, 8009804 <_fflush_r+0x10> + 80097fe: 2500 movs r5, #0 + 8009800: 4628 mov r0, r5 + 8009802: bd38 pop {r3, r4, r5, pc} + 8009804: b118 cbz r0, 800980e <_fflush_r+0x1a> + 8009806: 6983 ldr r3, [r0, #24] + 8009808: b90b cbnz r3, 800980e <_fflush_r+0x1a> + 800980a: f000 f887 bl 800991c <__sinit> + 800980e: 4b14 ldr r3, [pc, #80] ; (8009860 <_fflush_r+0x6c>) + 8009810: 429c cmp r4, r3 + 8009812: d11b bne.n 800984c <_fflush_r+0x58> + 8009814: 686c ldr r4, [r5, #4] + 8009816: f9b4 300c ldrsh.w r3, [r4, #12] + 800981a: 2b00 cmp r3, #0 + 800981c: d0ef beq.n 80097fe <_fflush_r+0xa> + 800981e: 6e62 ldr r2, [r4, #100] ; 0x64 + 8009820: 07d0 lsls r0, r2, #31 + 8009822: d404 bmi.n 800982e <_fflush_r+0x3a> + 8009824: 0599 lsls r1, r3, #22 + 8009826: d402 bmi.n 800982e <_fflush_r+0x3a> + 8009828: 6da0 ldr r0, [r4, #88] ; 0x58 + 800982a: f7ff fcdc bl 80091e6 <__retarget_lock_acquire_recursive> + 800982e: 4628 mov r0, r5 + 8009830: 4621 mov r1, r4 + 8009832: f7ff ff59 bl 80096e8 <__sflush_r> + 8009836: 6e63 ldr r3, [r4, #100] ; 0x64 + 8009838: 4605 mov r5, r0 + 800983a: 07da lsls r2, r3, #31 + 800983c: d4e0 bmi.n 8009800 <_fflush_r+0xc> + 800983e: 89a3 ldrh r3, [r4, #12] + 8009840: 059b lsls r3, r3, #22 + 8009842: d4dd bmi.n 8009800 <_fflush_r+0xc> + 8009844: 6da0 ldr r0, [r4, #88] ; 0x58 + 8009846: f7ff fccf bl 80091e8 <__retarget_lock_release_recursive> + 800984a: e7d9 b.n 8009800 <_fflush_r+0xc> + 800984c: 4b05 ldr r3, [pc, #20] ; (8009864 <_fflush_r+0x70>) + 800984e: 429c cmp r4, r3 + 8009850: d101 bne.n 8009856 <_fflush_r+0x62> + 8009852: 68ac ldr r4, [r5, #8] + 8009854: e7df b.n 8009816 <_fflush_r+0x22> + 8009856: 4b04 ldr r3, [pc, #16] ; (8009868 <_fflush_r+0x74>) + 8009858: 429c cmp r4, r3 + 800985a: bf08 it eq + 800985c: 68ec ldreq r4, [r5, #12] + 800985e: e7da b.n 8009816 <_fflush_r+0x22> + 8009860: 0800ac14 .word 0x0800ac14 + 8009864: 0800ac34 .word 0x0800ac34 + 8009868: 0800abf4 .word 0x0800abf4 + +0800986c : + 800986c: 2300 movs r3, #0 + 800986e: b510 push {r4, lr} + 8009870: 4604 mov r4, r0 + 8009872: e9c0 3300 strd r3, r3, [r0] + 8009876: e9c0 3304 strd r3, r3, [r0, #16] + 800987a: 6083 str r3, [r0, #8] + 800987c: 8181 strh r1, [r0, #12] + 800987e: 6643 str r3, [r0, #100] ; 0x64 + 8009880: 81c2 strh r2, [r0, #14] + 8009882: 6183 str r3, [r0, #24] + 8009884: 4619 mov r1, r3 + 8009886: 2208 movs r2, #8 + 8009888: 305c adds r0, #92 ; 0x5c + 800988a: f7fd fba7 bl 8006fdc + 800988e: 4b05 ldr r3, [pc, #20] ; (80098a4 ) + 8009890: 6224 str r4, [r4, #32] + 8009892: 6263 str r3, [r4, #36] ; 0x24 + 8009894: 4b04 ldr r3, [pc, #16] ; (80098a8 ) + 8009896: 62a3 str r3, [r4, #40] ; 0x28 + 8009898: 4b04 ldr r3, [pc, #16] ; (80098ac ) + 800989a: 62e3 str r3, [r4, #44] ; 0x2c + 800989c: 4b04 ldr r3, [pc, #16] ; (80098b0 ) + 800989e: 6323 str r3, [r4, #48] ; 0x30 + 80098a0: bd10 pop {r4, pc} + 80098a2: bf00 nop + 80098a4: 08009bb9 .word 0x08009bb9 + 80098a8: 08009bdb .word 0x08009bdb + 80098ac: 08009c13 .word 0x08009c13 + 80098b0: 08009c37 .word 0x08009c37 + +080098b4 <_cleanup_r>: + 80098b4: 4901 ldr r1, [pc, #4] ; (80098bc <_cleanup_r+0x8>) + 80098b6: f000 b8af b.w 8009a18 <_fwalk_reent> + 80098ba: bf00 nop + 80098bc: 080097f5 .word 0x080097f5 + +080098c0 <__sfmoreglue>: + 80098c0: b570 push {r4, r5, r6, lr} + 80098c2: 2568 movs r5, #104 ; 0x68 + 80098c4: 1e4a subs r2, r1, #1 + 80098c6: 4355 muls r5, r2 + 80098c8: 460e mov r6, r1 + 80098ca: f105 0174 add.w r1, r5, #116 ; 0x74 + 80098ce: f7fd fbd9 bl 8007084 <_malloc_r> + 80098d2: 4604 mov r4, r0 + 80098d4: b140 cbz r0, 80098e8 <__sfmoreglue+0x28> + 80098d6: 2100 movs r1, #0 + 80098d8: e9c0 1600 strd r1, r6, [r0] + 80098dc: 300c adds r0, #12 + 80098de: 60a0 str r0, [r4, #8] + 80098e0: f105 0268 add.w r2, r5, #104 ; 0x68 + 80098e4: f7fd fb7a bl 8006fdc + 80098e8: 4620 mov r0, r4 + 80098ea: bd70 pop {r4, r5, r6, pc} + +080098ec <__sfp_lock_acquire>: + 80098ec: 4801 ldr r0, [pc, #4] ; (80098f4 <__sfp_lock_acquire+0x8>) + 80098ee: f7ff bc7a b.w 80091e6 <__retarget_lock_acquire_recursive> + 80098f2: bf00 nop + 80098f4: 200024f8 .word 0x200024f8 + +080098f8 <__sfp_lock_release>: + 80098f8: 4801 ldr r0, [pc, #4] ; (8009900 <__sfp_lock_release+0x8>) + 80098fa: f7ff bc75 b.w 80091e8 <__retarget_lock_release_recursive> + 80098fe: bf00 nop + 8009900: 200024f8 .word 0x200024f8 + +08009904 <__sinit_lock_acquire>: + 8009904: 4801 ldr r0, [pc, #4] ; (800990c <__sinit_lock_acquire+0x8>) + 8009906: f7ff bc6e b.w 80091e6 <__retarget_lock_acquire_recursive> + 800990a: bf00 nop + 800990c: 200024f3 .word 0x200024f3 + +08009910 <__sinit_lock_release>: + 8009910: 4801 ldr r0, [pc, #4] ; (8009918 <__sinit_lock_release+0x8>) + 8009912: f7ff bc69 b.w 80091e8 <__retarget_lock_release_recursive> + 8009916: bf00 nop + 8009918: 200024f3 .word 0x200024f3 + +0800991c <__sinit>: + 800991c: b510 push {r4, lr} + 800991e: 4604 mov r4, r0 + 8009920: f7ff fff0 bl 8009904 <__sinit_lock_acquire> + 8009924: 69a3 ldr r3, [r4, #24] + 8009926: b11b cbz r3, 8009930 <__sinit+0x14> + 8009928: e8bd 4010 ldmia.w sp!, {r4, lr} + 800992c: f7ff bff0 b.w 8009910 <__sinit_lock_release> + 8009930: e9c4 3312 strd r3, r3, [r4, #72] ; 0x48 + 8009934: 6523 str r3, [r4, #80] ; 0x50 + 8009936: 4b13 ldr r3, [pc, #76] ; (8009984 <__sinit+0x68>) + 8009938: 4a13 ldr r2, [pc, #76] ; (8009988 <__sinit+0x6c>) + 800993a: 681b ldr r3, [r3, #0] + 800993c: 62a2 str r2, [r4, #40] ; 0x28 + 800993e: 42a3 cmp r3, r4 + 8009940: bf08 it eq + 8009942: 2301 moveq r3, #1 + 8009944: 4620 mov r0, r4 + 8009946: bf08 it eq + 8009948: 61a3 streq r3, [r4, #24] + 800994a: f000 f81f bl 800998c <__sfp> + 800994e: 6060 str r0, [r4, #4] + 8009950: 4620 mov r0, r4 + 8009952: f000 f81b bl 800998c <__sfp> + 8009956: 60a0 str r0, [r4, #8] + 8009958: 4620 mov r0, r4 + 800995a: f000 f817 bl 800998c <__sfp> 800995e: 2200 movs r2, #0 - 8009960: 6062 str r2, [r4, #4] - 8009962: 6922 ldr r2, [r4, #16] - 8009964: 04d9 lsls r1, r3, #19 - 8009966: 6022 str r2, [r4, #0] - 8009968: d504 bpl.n 8009974 <__sflush_r+0x7c> - 800996a: 1c42 adds r2, r0, #1 - 800996c: d101 bne.n 8009972 <__sflush_r+0x7a> - 800996e: 682b ldr r3, [r5, #0] - 8009970: b903 cbnz r3, 8009974 <__sflush_r+0x7c> - 8009972: 6560 str r0, [r4, #84] ; 0x54 - 8009974: 6b61 ldr r1, [r4, #52] ; 0x34 - 8009976: 602f str r7, [r5, #0] - 8009978: 2900 cmp r1, #0 - 800997a: d0ca beq.n 8009912 <__sflush_r+0x1a> - 800997c: f104 0344 add.w r3, r4, #68 ; 0x44 - 8009980: 4299 cmp r1, r3 - 8009982: d002 beq.n 800998a <__sflush_r+0x92> - 8009984: 4628 mov r0, r5 - 8009986: f7fd fc3b bl 8007200 <_free_r> - 800998a: 2000 movs r0, #0 - 800998c: 6360 str r0, [r4, #52] ; 0x34 - 800998e: e7c1 b.n 8009914 <__sflush_r+0x1c> - 8009990: 6a21 ldr r1, [r4, #32] - 8009992: 2301 movs r3, #1 - 8009994: 4628 mov r0, r5 - 8009996: 47b0 blx r6 - 8009998: 1c41 adds r1, r0, #1 - 800999a: d1c7 bne.n 800992c <__sflush_r+0x34> - 800999c: 682b ldr r3, [r5, #0] - 800999e: 2b00 cmp r3, #0 - 80099a0: d0c4 beq.n 800992c <__sflush_r+0x34> - 80099a2: 2b1d cmp r3, #29 - 80099a4: d001 beq.n 80099aa <__sflush_r+0xb2> - 80099a6: 2b16 cmp r3, #22 - 80099a8: d101 bne.n 80099ae <__sflush_r+0xb6> - 80099aa: 602f str r7, [r5, #0] - 80099ac: e7b1 b.n 8009912 <__sflush_r+0x1a> - 80099ae: 89a3 ldrh r3, [r4, #12] - 80099b0: f043 0340 orr.w r3, r3, #64 ; 0x40 - 80099b4: 81a3 strh r3, [r4, #12] - 80099b6: e7ad b.n 8009914 <__sflush_r+0x1c> - 80099b8: 690f ldr r7, [r1, #16] - 80099ba: 2f00 cmp r7, #0 - 80099bc: d0a9 beq.n 8009912 <__sflush_r+0x1a> - 80099be: 0793 lsls r3, r2, #30 - 80099c0: bf18 it ne - 80099c2: 2300 movne r3, #0 - 80099c4: 680e ldr r6, [r1, #0] - 80099c6: bf08 it eq - 80099c8: 694b ldreq r3, [r1, #20] - 80099ca: eba6 0807 sub.w r8, r6, r7 - 80099ce: 600f str r7, [r1, #0] - 80099d0: 608b str r3, [r1, #8] - 80099d2: f1b8 0f00 cmp.w r8, #0 - 80099d6: dd9c ble.n 8009912 <__sflush_r+0x1a> - 80099d8: 4643 mov r3, r8 - 80099da: 463a mov r2, r7 - 80099dc: 4628 mov r0, r5 - 80099de: 6a21 ldr r1, [r4, #32] - 80099e0: 6aa6 ldr r6, [r4, #40] ; 0x28 - 80099e2: 47b0 blx r6 - 80099e4: 2800 cmp r0, #0 - 80099e6: dc06 bgt.n 80099f6 <__sflush_r+0xfe> - 80099e8: 89a3 ldrh r3, [r4, #12] - 80099ea: f04f 30ff mov.w r0, #4294967295 ; 0xffffffff - 80099ee: f043 0340 orr.w r3, r3, #64 ; 0x40 - 80099f2: 81a3 strh r3, [r4, #12] - 80099f4: e78e b.n 8009914 <__sflush_r+0x1c> - 80099f6: 4407 add r7, r0 - 80099f8: eba8 0800 sub.w r8, r8, r0 - 80099fc: e7e9 b.n 80099d2 <__sflush_r+0xda> - 80099fe: bf00 nop - 8009a00: 20400001 .word 0x20400001 + 8009960: 2104 movs r1, #4 + 8009962: 60e0 str r0, [r4, #12] + 8009964: 6860 ldr r0, [r4, #4] + 8009966: f7ff ff81 bl 800986c + 800996a: 2201 movs r2, #1 + 800996c: 2109 movs r1, #9 + 800996e: 68a0 ldr r0, [r4, #8] + 8009970: f7ff ff7c bl 800986c + 8009974: 2202 movs r2, #2 + 8009976: 2112 movs r1, #18 + 8009978: 68e0 ldr r0, [r4, #12] + 800997a: f7ff ff77 bl 800986c + 800997e: 2301 movs r3, #1 + 8009980: 61a3 str r3, [r4, #24] + 8009982: e7d1 b.n 8009928 <__sinit+0xc> + 8009984: 0800a874 .word 0x0800a874 + 8009988: 080098b5 .word 0x080098b5 -08009a04 <_fflush_r>: - 8009a04: b538 push {r3, r4, r5, lr} - 8009a06: 690b ldr r3, [r1, #16] - 8009a08: 4605 mov r5, r0 - 8009a0a: 460c mov r4, r1 - 8009a0c: b913 cbnz r3, 8009a14 <_fflush_r+0x10> - 8009a0e: 2500 movs r5, #0 - 8009a10: 4628 mov r0, r5 - 8009a12: bd38 pop {r3, r4, r5, pc} - 8009a14: b118 cbz r0, 8009a1e <_fflush_r+0x1a> - 8009a16: 6983 ldr r3, [r0, #24] - 8009a18: b90b cbnz r3, 8009a1e <_fflush_r+0x1a> - 8009a1a: f000 f887 bl 8009b2c <__sinit> - 8009a1e: 4b14 ldr r3, [pc, #80] ; (8009a70 <_fflush_r+0x6c>) - 8009a20: 429c cmp r4, r3 - 8009a22: d11b bne.n 8009a5c <_fflush_r+0x58> - 8009a24: 686c ldr r4, [r5, #4] - 8009a26: f9b4 300c ldrsh.w r3, [r4, #12] - 8009a2a: 2b00 cmp r3, #0 - 8009a2c: d0ef beq.n 8009a0e <_fflush_r+0xa> - 8009a2e: 6e62 ldr r2, [r4, #100] ; 0x64 - 8009a30: 07d0 lsls r0, r2, #31 - 8009a32: d404 bmi.n 8009a3e <_fflush_r+0x3a> - 8009a34: 0599 lsls r1, r3, #22 - 8009a36: d402 bmi.n 8009a3e <_fflush_r+0x3a> - 8009a38: 6da0 ldr r0, [r4, #88] ; 0x58 - 8009a3a: f7ff fcdc bl 80093f6 <__retarget_lock_acquire_recursive> - 8009a3e: 4628 mov r0, r5 - 8009a40: 4621 mov r1, r4 - 8009a42: f7ff ff59 bl 80098f8 <__sflush_r> - 8009a46: 6e63 ldr r3, [r4, #100] ; 0x64 - 8009a48: 4605 mov r5, r0 - 8009a4a: 07da lsls r2, r3, #31 - 8009a4c: d4e0 bmi.n 8009a10 <_fflush_r+0xc> - 8009a4e: 89a3 ldrh r3, [r4, #12] - 8009a50: 059b lsls r3, r3, #22 - 8009a52: d4dd bmi.n 8009a10 <_fflush_r+0xc> - 8009a54: 6da0 ldr r0, [r4, #88] ; 0x58 - 8009a56: f7ff fccf bl 80093f8 <__retarget_lock_release_recursive> - 8009a5a: e7d9 b.n 8009a10 <_fflush_r+0xc> - 8009a5c: 4b05 ldr r3, [pc, #20] ; (8009a74 <_fflush_r+0x70>) - 8009a5e: 429c cmp r4, r3 - 8009a60: d101 bne.n 8009a66 <_fflush_r+0x62> - 8009a62: 68ac ldr r4, [r5, #8] - 8009a64: e7df b.n 8009a26 <_fflush_r+0x22> - 8009a66: 4b04 ldr r3, [pc, #16] ; (8009a78 <_fflush_r+0x74>) - 8009a68: 429c cmp r4, r3 - 8009a6a: bf08 it eq - 8009a6c: 68ec ldreq r4, [r5, #12] - 8009a6e: e7da b.n 8009a26 <_fflush_r+0x22> - 8009a70: 0800b27c .word 0x0800b27c - 8009a74: 0800b29c .word 0x0800b29c - 8009a78: 0800b25c .word 0x0800b25c +0800998c <__sfp>: + 800998c: b5f8 push {r3, r4, r5, r6, r7, lr} + 800998e: 4607 mov r7, r0 + 8009990: f7ff ffac bl 80098ec <__sfp_lock_acquire> + 8009994: 4b1e ldr r3, [pc, #120] ; (8009a10 <__sfp+0x84>) + 8009996: 681e ldr r6, [r3, #0] + 8009998: 69b3 ldr r3, [r6, #24] + 800999a: b913 cbnz r3, 80099a2 <__sfp+0x16> + 800999c: 4630 mov r0, r6 + 800999e: f7ff ffbd bl 800991c <__sinit> + 80099a2: 3648 adds r6, #72 ; 0x48 + 80099a4: e9d6 3401 ldrd r3, r4, [r6, #4] + 80099a8: 3b01 subs r3, #1 + 80099aa: d503 bpl.n 80099b4 <__sfp+0x28> + 80099ac: 6833 ldr r3, [r6, #0] + 80099ae: b30b cbz r3, 80099f4 <__sfp+0x68> + 80099b0: 6836 ldr r6, [r6, #0] + 80099b2: e7f7 b.n 80099a4 <__sfp+0x18> + 80099b4: f9b4 500c ldrsh.w r5, [r4, #12] + 80099b8: b9d5 cbnz r5, 80099f0 <__sfp+0x64> + 80099ba: 4b16 ldr r3, [pc, #88] ; (8009a14 <__sfp+0x88>) + 80099bc: f104 0058 add.w r0, r4, #88 ; 0x58 + 80099c0: 60e3 str r3, [r4, #12] + 80099c2: 6665 str r5, [r4, #100] ; 0x64 + 80099c4: f7ff fc0e bl 80091e4 <__retarget_lock_init_recursive> + 80099c8: f7ff ff96 bl 80098f8 <__sfp_lock_release> + 80099cc: 2208 movs r2, #8 + 80099ce: 4629 mov r1, r5 + 80099d0: e9c4 5501 strd r5, r5, [r4, #4] + 80099d4: e9c4 5504 strd r5, r5, [r4, #16] + 80099d8: 6025 str r5, [r4, #0] + 80099da: 61a5 str r5, [r4, #24] + 80099dc: f104 005c add.w r0, r4, #92 ; 0x5c + 80099e0: f7fd fafc bl 8006fdc + 80099e4: e9c4 550d strd r5, r5, [r4, #52] ; 0x34 + 80099e8: e9c4 5512 strd r5, r5, [r4, #72] ; 0x48 + 80099ec: 4620 mov r0, r4 + 80099ee: bdf8 pop {r3, r4, r5, r6, r7, pc} + 80099f0: 3468 adds r4, #104 ; 0x68 + 80099f2: e7d9 b.n 80099a8 <__sfp+0x1c> + 80099f4: 2104 movs r1, #4 + 80099f6: 4638 mov r0, r7 + 80099f8: f7ff ff62 bl 80098c0 <__sfmoreglue> + 80099fc: 4604 mov r4, r0 + 80099fe: 6030 str r0, [r6, #0] + 8009a00: 2800 cmp r0, #0 + 8009a02: d1d5 bne.n 80099b0 <__sfp+0x24> + 8009a04: f7ff ff78 bl 80098f8 <__sfp_lock_release> + 8009a08: 230c movs r3, #12 + 8009a0a: 603b str r3, [r7, #0] + 8009a0c: e7ee b.n 80099ec <__sfp+0x60> + 8009a0e: bf00 nop + 8009a10: 0800a874 .word 0x0800a874 + 8009a14: ffff0001 .word 0xffff0001 -08009a7c : - 8009a7c: 2300 movs r3, #0 - 8009a7e: b510 push {r4, lr} - 8009a80: 4604 mov r4, r0 - 8009a82: e9c0 3300 strd r3, r3, [r0] - 8009a86: e9c0 3304 strd r3, r3, [r0, #16] - 8009a8a: 6083 str r3, [r0, #8] - 8009a8c: 8181 strh r1, [r0, #12] - 8009a8e: 6643 str r3, [r0, #100] ; 0x64 - 8009a90: 81c2 strh r2, [r0, #14] - 8009a92: 6183 str r3, [r0, #24] - 8009a94: 4619 mov r1, r3 - 8009a96: 2208 movs r2, #8 - 8009a98: 305c adds r0, #92 ; 0x5c - 8009a9a: f7fd fba9 bl 80071f0 - 8009a9e: 4b05 ldr r3, [pc, #20] ; (8009ab4 ) - 8009aa0: 6224 str r4, [r4, #32] - 8009aa2: 6263 str r3, [r4, #36] ; 0x24 - 8009aa4: 4b04 ldr r3, [pc, #16] ; (8009ab8 ) - 8009aa6: 62a3 str r3, [r4, #40] ; 0x28 - 8009aa8: 4b04 ldr r3, [pc, #16] ; (8009abc ) - 8009aaa: 62e3 str r3, [r4, #44] ; 0x2c - 8009aac: 4b04 ldr r3, [pc, #16] ; (8009ac0 ) - 8009aae: 6323 str r3, [r4, #48] ; 0x30 - 8009ab0: bd10 pop {r4, pc} - 8009ab2: bf00 nop - 8009ab4: 08009dc9 .word 0x08009dc9 - 8009ab8: 08009deb .word 0x08009deb - 8009abc: 08009e23 .word 0x08009e23 - 8009ac0: 08009e47 .word 0x08009e47 +08009a18 <_fwalk_reent>: + 8009a18: e92d 43f8 stmdb sp!, {r3, r4, r5, r6, r7, r8, r9, lr} + 8009a1c: 4606 mov r6, r0 + 8009a1e: 4688 mov r8, r1 + 8009a20: 2700 movs r7, #0 + 8009a22: f100 0448 add.w r4, r0, #72 ; 0x48 + 8009a26: e9d4 9501 ldrd r9, r5, [r4, #4] + 8009a2a: f1b9 0901 subs.w r9, r9, #1 + 8009a2e: d505 bpl.n 8009a3c <_fwalk_reent+0x24> + 8009a30: 6824 ldr r4, [r4, #0] + 8009a32: 2c00 cmp r4, #0 + 8009a34: d1f7 bne.n 8009a26 <_fwalk_reent+0xe> + 8009a36: 4638 mov r0, r7 + 8009a38: e8bd 83f8 ldmia.w sp!, {r3, r4, r5, r6, r7, r8, r9, pc} + 8009a3c: 89ab ldrh r3, [r5, #12] + 8009a3e: 2b01 cmp r3, #1 + 8009a40: d907 bls.n 8009a52 <_fwalk_reent+0x3a> + 8009a42: f9b5 300e ldrsh.w r3, [r5, #14] + 8009a46: 3301 adds r3, #1 + 8009a48: d003 beq.n 8009a52 <_fwalk_reent+0x3a> + 8009a4a: 4629 mov r1, r5 + 8009a4c: 4630 mov r0, r6 + 8009a4e: 47c0 blx r8 + 8009a50: 4307 orrs r7, r0 + 8009a52: 3568 adds r5, #104 ; 0x68 + 8009a54: e7e9 b.n 8009a2a <_fwalk_reent+0x12> -08009ac4 <_cleanup_r>: - 8009ac4: 4901 ldr r1, [pc, #4] ; (8009acc <_cleanup_r+0x8>) - 8009ac6: f000 b8af b.w 8009c28 <_fwalk_reent> - 8009aca: bf00 nop - 8009acc: 08009a05 .word 0x08009a05 - -08009ad0 <__sfmoreglue>: - 8009ad0: b570 push {r4, r5, r6, lr} - 8009ad2: 2568 movs r5, #104 ; 0x68 - 8009ad4: 1e4a subs r2, r1, #1 - 8009ad6: 4355 muls r5, r2 - 8009ad8: 460e mov r6, r1 - 8009ada: f105 0174 add.w r1, r5, #116 ; 0x74 - 8009ade: f7fd fbdb bl 8007298 <_malloc_r> - 8009ae2: 4604 mov r4, r0 - 8009ae4: b140 cbz r0, 8009af8 <__sfmoreglue+0x28> - 8009ae6: 2100 movs r1, #0 - 8009ae8: e9c0 1600 strd r1, r6, [r0] - 8009aec: 300c adds r0, #12 - 8009aee: 60a0 str r0, [r4, #8] - 8009af0: f105 0268 add.w r2, r5, #104 ; 0x68 - 8009af4: f7fd fb7c bl 80071f0 - 8009af8: 4620 mov r0, r4 - 8009afa: bd70 pop {r4, r5, r6, pc} - -08009afc <__sfp_lock_acquire>: - 8009afc: 4801 ldr r0, [pc, #4] ; (8009b04 <__sfp_lock_acquire+0x8>) - 8009afe: f7ff bc7a b.w 80093f6 <__retarget_lock_acquire_recursive> - 8009b02: bf00 nop - 8009b04: 200024a8 .word 0x200024a8 - -08009b08 <__sfp_lock_release>: - 8009b08: 4801 ldr r0, [pc, #4] ; (8009b10 <__sfp_lock_release+0x8>) - 8009b0a: f7ff bc75 b.w 80093f8 <__retarget_lock_release_recursive> - 8009b0e: bf00 nop - 8009b10: 200024a8 .word 0x200024a8 - -08009b14 <__sinit_lock_acquire>: - 8009b14: 4801 ldr r0, [pc, #4] ; (8009b1c <__sinit_lock_acquire+0x8>) - 8009b16: f7ff bc6e b.w 80093f6 <__retarget_lock_acquire_recursive> - 8009b1a: bf00 nop - 8009b1c: 200024a3 .word 0x200024a3 - -08009b20 <__sinit_lock_release>: - 8009b20: 4801 ldr r0, [pc, #4] ; (8009b28 <__sinit_lock_release+0x8>) - 8009b22: f7ff bc69 b.w 80093f8 <__retarget_lock_release_recursive> - 8009b26: bf00 nop - 8009b28: 200024a3 .word 0x200024a3 - -08009b2c <__sinit>: - 8009b2c: b510 push {r4, lr} - 8009b2e: 4604 mov r4, r0 - 8009b30: f7ff fff0 bl 8009b14 <__sinit_lock_acquire> - 8009b34: 69a3 ldr r3, [r4, #24] - 8009b36: b11b cbz r3, 8009b40 <__sinit+0x14> - 8009b38: e8bd 4010 ldmia.w sp!, {r4, lr} - 8009b3c: f7ff bff0 b.w 8009b20 <__sinit_lock_release> - 8009b40: e9c4 3312 strd r3, r3, [r4, #72] ; 0x48 - 8009b44: 6523 str r3, [r4, #80] ; 0x50 - 8009b46: 4b13 ldr r3, [pc, #76] ; (8009b94 <__sinit+0x68>) - 8009b48: 4a13 ldr r2, [pc, #76] ; (8009b98 <__sinit+0x6c>) - 8009b4a: 681b ldr r3, [r3, #0] - 8009b4c: 62a2 str r2, [r4, #40] ; 0x28 - 8009b4e: 42a3 cmp r3, r4 - 8009b50: bf08 it eq - 8009b52: 2301 moveq r3, #1 - 8009b54: 4620 mov r0, r4 - 8009b56: bf08 it eq - 8009b58: 61a3 streq r3, [r4, #24] - 8009b5a: f000 f81f bl 8009b9c <__sfp> - 8009b5e: 6060 str r0, [r4, #4] - 8009b60: 4620 mov r0, r4 - 8009b62: f000 f81b bl 8009b9c <__sfp> - 8009b66: 60a0 str r0, [r4, #8] - 8009b68: 4620 mov r0, r4 - 8009b6a: f000 f817 bl 8009b9c <__sfp> - 8009b6e: 2200 movs r2, #0 - 8009b70: 2104 movs r1, #4 - 8009b72: 60e0 str r0, [r4, #12] - 8009b74: 6860 ldr r0, [r4, #4] - 8009b76: f7ff ff81 bl 8009a7c - 8009b7a: 2201 movs r2, #1 - 8009b7c: 2109 movs r1, #9 - 8009b7e: 68a0 ldr r0, [r4, #8] - 8009b80: f7ff ff7c bl 8009a7c - 8009b84: 2202 movs r2, #2 - 8009b86: 2112 movs r1, #18 - 8009b88: 68e0 ldr r0, [r4, #12] - 8009b8a: f7ff ff77 bl 8009a7c - 8009b8e: 2301 movs r3, #1 - 8009b90: 61a3 str r3, [r4, #24] - 8009b92: e7d1 b.n 8009b38 <__sinit+0xc> - 8009b94: 0800aed8 .word 0x0800aed8 - 8009b98: 08009ac5 .word 0x08009ac5 - -08009b9c <__sfp>: - 8009b9c: b5f8 push {r3, r4, r5, r6, r7, lr} - 8009b9e: 4607 mov r7, r0 - 8009ba0: f7ff ffac bl 8009afc <__sfp_lock_acquire> - 8009ba4: 4b1e ldr r3, [pc, #120] ; (8009c20 <__sfp+0x84>) - 8009ba6: 681e ldr r6, [r3, #0] - 8009ba8: 69b3 ldr r3, [r6, #24] - 8009baa: b913 cbnz r3, 8009bb2 <__sfp+0x16> - 8009bac: 4630 mov r0, r6 - 8009bae: f7ff ffbd bl 8009b2c <__sinit> - 8009bb2: 3648 adds r6, #72 ; 0x48 - 8009bb4: e9d6 3401 ldrd r3, r4, [r6, #4] - 8009bb8: 3b01 subs r3, #1 - 8009bba: d503 bpl.n 8009bc4 <__sfp+0x28> - 8009bbc: 6833 ldr r3, [r6, #0] - 8009bbe: b30b cbz r3, 8009c04 <__sfp+0x68> - 8009bc0: 6836 ldr r6, [r6, #0] - 8009bc2: e7f7 b.n 8009bb4 <__sfp+0x18> - 8009bc4: f9b4 500c ldrsh.w r5, [r4, #12] - 8009bc8: b9d5 cbnz r5, 8009c00 <__sfp+0x64> - 8009bca: 4b16 ldr r3, [pc, #88] ; (8009c24 <__sfp+0x88>) - 8009bcc: f104 0058 add.w r0, r4, #88 ; 0x58 - 8009bd0: 60e3 str r3, [r4, #12] - 8009bd2: 6665 str r5, [r4, #100] ; 0x64 - 8009bd4: f7ff fc0e bl 80093f4 <__retarget_lock_init_recursive> - 8009bd8: f7ff ff96 bl 8009b08 <__sfp_lock_release> - 8009bdc: 2208 movs r2, #8 - 8009bde: 4629 mov r1, r5 - 8009be0: e9c4 5501 strd r5, r5, [r4, #4] - 8009be4: e9c4 5504 strd r5, r5, [r4, #16] - 8009be8: 6025 str r5, [r4, #0] - 8009bea: 61a5 str r5, [r4, #24] - 8009bec: f104 005c add.w r0, r4, #92 ; 0x5c - 8009bf0: f7fd fafe bl 80071f0 - 8009bf4: e9c4 550d strd r5, r5, [r4, #52] ; 0x34 - 8009bf8: e9c4 5512 strd r5, r5, [r4, #72] ; 0x48 - 8009bfc: 4620 mov r0, r4 - 8009bfe: bdf8 pop {r3, r4, r5, r6, r7, pc} - 8009c00: 3468 adds r4, #104 ; 0x68 - 8009c02: e7d9 b.n 8009bb8 <__sfp+0x1c> - 8009c04: 2104 movs r1, #4 - 8009c06: 4638 mov r0, r7 - 8009c08: f7ff ff62 bl 8009ad0 <__sfmoreglue> - 8009c0c: 4604 mov r4, r0 - 8009c0e: 6030 str r0, [r6, #0] - 8009c10: 2800 cmp r0, #0 - 8009c12: d1d5 bne.n 8009bc0 <__sfp+0x24> - 8009c14: f7ff ff78 bl 8009b08 <__sfp_lock_release> - 8009c18: 230c movs r3, #12 - 8009c1a: 603b str r3, [r7, #0] - 8009c1c: e7ee b.n 8009bfc <__sfp+0x60> - 8009c1e: bf00 nop - 8009c20: 0800aed8 .word 0x0800aed8 - 8009c24: ffff0001 .word 0xffff0001 - -08009c28 <_fwalk_reent>: - 8009c28: e92d 43f8 stmdb sp!, {r3, r4, r5, r6, r7, r8, r9, lr} - 8009c2c: 4606 mov r6, r0 - 8009c2e: 4688 mov r8, r1 - 8009c30: 2700 movs r7, #0 - 8009c32: f100 0448 add.w r4, r0, #72 ; 0x48 - 8009c36: e9d4 9501 ldrd r9, r5, [r4, #4] - 8009c3a: f1b9 0901 subs.w r9, r9, #1 - 8009c3e: d505 bpl.n 8009c4c <_fwalk_reent+0x24> - 8009c40: 6824 ldr r4, [r4, #0] - 8009c42: 2c00 cmp r4, #0 - 8009c44: d1f7 bne.n 8009c36 <_fwalk_reent+0xe> - 8009c46: 4638 mov r0, r7 - 8009c48: e8bd 83f8 ldmia.w sp!, {r3, r4, r5, r6, r7, r8, r9, pc} - 8009c4c: 89ab ldrh r3, [r5, #12] - 8009c4e: 2b01 cmp r3, #1 - 8009c50: d907 bls.n 8009c62 <_fwalk_reent+0x3a> - 8009c52: f9b5 300e ldrsh.w r3, [r5, #14] - 8009c56: 3301 adds r3, #1 - 8009c58: d003 beq.n 8009c62 <_fwalk_reent+0x3a> - 8009c5a: 4629 mov r1, r5 - 8009c5c: 4630 mov r0, r6 - 8009c5e: 47c0 blx r8 - 8009c60: 4307 orrs r7, r0 - 8009c62: 3568 adds r5, #104 ; 0x68 - 8009c64: e7e9 b.n 8009c3a <_fwalk_reent+0x12> - -08009c66 <__swhatbuf_r>: - 8009c66: b570 push {r4, r5, r6, lr} - 8009c68: 460e mov r6, r1 - 8009c6a: f9b1 100e ldrsh.w r1, [r1, #14] - 8009c6e: 4614 mov r4, r2 - 8009c70: 2900 cmp r1, #0 - 8009c72: 461d mov r5, r3 - 8009c74: b096 sub sp, #88 ; 0x58 - 8009c76: da07 bge.n 8009c88 <__swhatbuf_r+0x22> - 8009c78: 2300 movs r3, #0 - 8009c7a: 602b str r3, [r5, #0] - 8009c7c: 89b3 ldrh r3, [r6, #12] - 8009c7e: 061a lsls r2, r3, #24 - 8009c80: d410 bmi.n 8009ca4 <__swhatbuf_r+0x3e> - 8009c82: f44f 6380 mov.w r3, #1024 ; 0x400 - 8009c86: e00e b.n 8009ca6 <__swhatbuf_r+0x40> - 8009c88: 466a mov r2, sp - 8009c8a: f000 f903 bl 8009e94 <_fstat_r> - 8009c8e: 2800 cmp r0, #0 - 8009c90: dbf2 blt.n 8009c78 <__swhatbuf_r+0x12> - 8009c92: 9a01 ldr r2, [sp, #4] - 8009c94: f402 4270 and.w r2, r2, #61440 ; 0xf000 - 8009c98: f5a2 5300 sub.w r3, r2, #8192 ; 0x2000 - 8009c9c: 425a negs r2, r3 - 8009c9e: 415a adcs r2, r3 - 8009ca0: 602a str r2, [r5, #0] - 8009ca2: e7ee b.n 8009c82 <__swhatbuf_r+0x1c> - 8009ca4: 2340 movs r3, #64 ; 0x40 - 8009ca6: 2000 movs r0, #0 - 8009ca8: 6023 str r3, [r4, #0] - 8009caa: b016 add sp, #88 ; 0x58 - 8009cac: bd70 pop {r4, r5, r6, pc} +08009a56 <__swhatbuf_r>: + 8009a56: b570 push {r4, r5, r6, lr} + 8009a58: 460e mov r6, r1 + 8009a5a: f9b1 100e ldrsh.w r1, [r1, #14] + 8009a5e: 4614 mov r4, r2 + 8009a60: 2900 cmp r1, #0 + 8009a62: 461d mov r5, r3 + 8009a64: b096 sub sp, #88 ; 0x58 + 8009a66: da07 bge.n 8009a78 <__swhatbuf_r+0x22> + 8009a68: 2300 movs r3, #0 + 8009a6a: 602b str r3, [r5, #0] + 8009a6c: 89b3 ldrh r3, [r6, #12] + 8009a6e: 061a lsls r2, r3, #24 + 8009a70: d410 bmi.n 8009a94 <__swhatbuf_r+0x3e> + 8009a72: f44f 6380 mov.w r3, #1024 ; 0x400 + 8009a76: e00e b.n 8009a96 <__swhatbuf_r+0x40> + 8009a78: 466a mov r2, sp + 8009a7a: f000 f903 bl 8009c84 <_fstat_r> + 8009a7e: 2800 cmp r0, #0 + 8009a80: dbf2 blt.n 8009a68 <__swhatbuf_r+0x12> + 8009a82: 9a01 ldr r2, [sp, #4] + 8009a84: f402 4270 and.w r2, r2, #61440 ; 0xf000 + 8009a88: f5a2 5300 sub.w r3, r2, #8192 ; 0x2000 + 8009a8c: 425a negs r2, r3 + 8009a8e: 415a adcs r2, r3 + 8009a90: 602a str r2, [r5, #0] + 8009a92: e7ee b.n 8009a72 <__swhatbuf_r+0x1c> + 8009a94: 2340 movs r3, #64 ; 0x40 + 8009a96: 2000 movs r0, #0 + 8009a98: 6023 str r3, [r4, #0] + 8009a9a: b016 add sp, #88 ; 0x58 + 8009a9c: bd70 pop {r4, r5, r6, pc} ... -08009cb0 <__smakebuf_r>: - 8009cb0: 898b ldrh r3, [r1, #12] - 8009cb2: b573 push {r0, r1, r4, r5, r6, lr} - 8009cb4: 079d lsls r5, r3, #30 - 8009cb6: 4606 mov r6, r0 - 8009cb8: 460c mov r4, r1 - 8009cba: d507 bpl.n 8009ccc <__smakebuf_r+0x1c> - 8009cbc: f104 0347 add.w r3, r4, #71 ; 0x47 +08009aa0 <__smakebuf_r>: + 8009aa0: 898b ldrh r3, [r1, #12] + 8009aa2: b573 push {r0, r1, r4, r5, r6, lr} + 8009aa4: 079d lsls r5, r3, #30 + 8009aa6: 4606 mov r6, r0 + 8009aa8: 460c mov r4, r1 + 8009aaa: d507 bpl.n 8009abc <__smakebuf_r+0x1c> + 8009aac: f104 0347 add.w r3, r4, #71 ; 0x47 + 8009ab0: 6023 str r3, [r4, #0] + 8009ab2: 6123 str r3, [r4, #16] + 8009ab4: 2301 movs r3, #1 + 8009ab6: 6163 str r3, [r4, #20] + 8009ab8: b002 add sp, #8 + 8009aba: bd70 pop {r4, r5, r6, pc} + 8009abc: 466a mov r2, sp + 8009abe: ab01 add r3, sp, #4 + 8009ac0: f7ff ffc9 bl 8009a56 <__swhatbuf_r> + 8009ac4: 9900 ldr r1, [sp, #0] + 8009ac6: 4605 mov r5, r0 + 8009ac8: 4630 mov r0, r6 + 8009aca: f7fd fadb bl 8007084 <_malloc_r> + 8009ace: b948 cbnz r0, 8009ae4 <__smakebuf_r+0x44> + 8009ad0: f9b4 300c ldrsh.w r3, [r4, #12] + 8009ad4: 059a lsls r2, r3, #22 + 8009ad6: d4ef bmi.n 8009ab8 <__smakebuf_r+0x18> + 8009ad8: f023 0303 bic.w r3, r3, #3 + 8009adc: f043 0302 orr.w r3, r3, #2 + 8009ae0: 81a3 strh r3, [r4, #12] + 8009ae2: e7e3 b.n 8009aac <__smakebuf_r+0xc> + 8009ae4: 4b0d ldr r3, [pc, #52] ; (8009b1c <__smakebuf_r+0x7c>) + 8009ae6: 62b3 str r3, [r6, #40] ; 0x28 + 8009ae8: 89a3 ldrh r3, [r4, #12] + 8009aea: 6020 str r0, [r4, #0] + 8009aec: f043 0380 orr.w r3, r3, #128 ; 0x80 + 8009af0: 81a3 strh r3, [r4, #12] + 8009af2: 9b00 ldr r3, [sp, #0] + 8009af4: 6120 str r0, [r4, #16] + 8009af6: 6163 str r3, [r4, #20] + 8009af8: 9b01 ldr r3, [sp, #4] + 8009afa: b15b cbz r3, 8009b14 <__smakebuf_r+0x74> + 8009afc: 4630 mov r0, r6 + 8009afe: f9b4 100e ldrsh.w r1, [r4, #14] + 8009b02: f000 f8d1 bl 8009ca8 <_isatty_r> + 8009b06: b128 cbz r0, 8009b14 <__smakebuf_r+0x74> + 8009b08: 89a3 ldrh r3, [r4, #12] + 8009b0a: f023 0303 bic.w r3, r3, #3 + 8009b0e: f043 0301 orr.w r3, r3, #1 + 8009b12: 81a3 strh r3, [r4, #12] + 8009b14: 89a0 ldrh r0, [r4, #12] + 8009b16: 4305 orrs r5, r0 + 8009b18: 81a5 strh r5, [r4, #12] + 8009b1a: e7cd b.n 8009ab8 <__smakebuf_r+0x18> + 8009b1c: 080098b5 .word 0x080098b5 + +08009b20 <_malloc_usable_size_r>: + 8009b20: f851 3c04 ldr.w r3, [r1, #-4] + 8009b24: 1f18 subs r0, r3, #4 + 8009b26: 2b00 cmp r3, #0 + 8009b28: bfbc itt lt + 8009b2a: 580b ldrlt r3, [r1, r0] + 8009b2c: 18c0 addlt r0, r0, r3 + 8009b2e: 4770 bx lr + +08009b30 <_raise_r>: + 8009b30: 291f cmp r1, #31 + 8009b32: b538 push {r3, r4, r5, lr} + 8009b34: 4604 mov r4, r0 + 8009b36: 460d mov r5, r1 + 8009b38: d904 bls.n 8009b44 <_raise_r+0x14> + 8009b3a: 2316 movs r3, #22 + 8009b3c: 6003 str r3, [r0, #0] + 8009b3e: f04f 30ff mov.w r0, #4294967295 ; 0xffffffff + 8009b42: bd38 pop {r3, r4, r5, pc} + 8009b44: 6c42 ldr r2, [r0, #68] ; 0x44 + 8009b46: b112 cbz r2, 8009b4e <_raise_r+0x1e> + 8009b48: f852 3021 ldr.w r3, [r2, r1, lsl #2] + 8009b4c: b94b cbnz r3, 8009b62 <_raise_r+0x32> + 8009b4e: 4620 mov r0, r4 + 8009b50: f000 f830 bl 8009bb4 <_getpid_r> + 8009b54: 462a mov r2, r5 + 8009b56: 4601 mov r1, r0 + 8009b58: 4620 mov r0, r4 + 8009b5a: e8bd 4038 ldmia.w sp!, {r3, r4, r5, lr} + 8009b5e: f000 b817 b.w 8009b90 <_kill_r> + 8009b62: 2b01 cmp r3, #1 + 8009b64: d00a beq.n 8009b7c <_raise_r+0x4c> + 8009b66: 1c59 adds r1, r3, #1 + 8009b68: d103 bne.n 8009b72 <_raise_r+0x42> + 8009b6a: 2316 movs r3, #22 + 8009b6c: 6003 str r3, [r0, #0] + 8009b6e: 2001 movs r0, #1 + 8009b70: e7e7 b.n 8009b42 <_raise_r+0x12> + 8009b72: 2400 movs r4, #0 + 8009b74: 4628 mov r0, r5 + 8009b76: f842 4025 str.w r4, [r2, r5, lsl #2] + 8009b7a: 4798 blx r3 + 8009b7c: 2000 movs r0, #0 + 8009b7e: e7e0 b.n 8009b42 <_raise_r+0x12> + +08009b80 : + 8009b80: 4b02 ldr r3, [pc, #8] ; (8009b8c ) + 8009b82: 4601 mov r1, r0 + 8009b84: 6818 ldr r0, [r3, #0] + 8009b86: f7ff bfd3 b.w 8009b30 <_raise_r> + 8009b8a: bf00 nop + 8009b8c: 2000000c .word 0x2000000c + +08009b90 <_kill_r>: + 8009b90: b538 push {r3, r4, r5, lr} + 8009b92: 2300 movs r3, #0 + 8009b94: 4d06 ldr r5, [pc, #24] ; (8009bb0 <_kill_r+0x20>) + 8009b96: 4604 mov r4, r0 + 8009b98: 4608 mov r0, r1 + 8009b9a: 4611 mov r1, r2 + 8009b9c: 602b str r3, [r5, #0] + 8009b9e: f7f7 fe86 bl 80018ae <_kill> + 8009ba2: 1c43 adds r3, r0, #1 + 8009ba4: d102 bne.n 8009bac <_kill_r+0x1c> + 8009ba6: 682b ldr r3, [r5, #0] + 8009ba8: b103 cbz r3, 8009bac <_kill_r+0x1c> + 8009baa: 6023 str r3, [r4, #0] + 8009bac: bd38 pop {r3, r4, r5, pc} + 8009bae: bf00 nop + 8009bb0: 200024ec .word 0x200024ec + +08009bb4 <_getpid_r>: + 8009bb4: f7f7 be74 b.w 80018a0 <_getpid> + +08009bb8 <__sread>: + 8009bb8: b510 push {r4, lr} + 8009bba: 460c mov r4, r1 + 8009bbc: f9b1 100e ldrsh.w r1, [r1, #14] + 8009bc0: f000 f894 bl 8009cec <_read_r> + 8009bc4: 2800 cmp r0, #0 + 8009bc6: bfab itete ge + 8009bc8: 6d63 ldrge r3, [r4, #84] ; 0x54 + 8009bca: 89a3 ldrhlt r3, [r4, #12] + 8009bcc: 181b addge r3, r3, r0 + 8009bce: f423 5380 biclt.w r3, r3, #4096 ; 0x1000 + 8009bd2: bfac ite ge + 8009bd4: 6563 strge r3, [r4, #84] ; 0x54 + 8009bd6: 81a3 strhlt r3, [r4, #12] + 8009bd8: bd10 pop {r4, pc} + +08009bda <__swrite>: + 8009bda: e92d 41f0 stmdb sp!, {r4, r5, r6, r7, r8, lr} + 8009bde: 461f mov r7, r3 + 8009be0: 898b ldrh r3, [r1, #12] + 8009be2: 4605 mov r5, r0 + 8009be4: 05db lsls r3, r3, #23 + 8009be6: 460c mov r4, r1 + 8009be8: 4616 mov r6, r2 + 8009bea: d505 bpl.n 8009bf8 <__swrite+0x1e> + 8009bec: 2302 movs r3, #2 + 8009bee: 2200 movs r2, #0 + 8009bf0: f9b1 100e ldrsh.w r1, [r1, #14] + 8009bf4: f000 f868 bl 8009cc8 <_lseek_r> + 8009bf8: 89a3 ldrh r3, [r4, #12] + 8009bfa: 4632 mov r2, r6 + 8009bfc: f423 5380 bic.w r3, r3, #4096 ; 0x1000 + 8009c00: 81a3 strh r3, [r4, #12] + 8009c02: 4628 mov r0, r5 + 8009c04: 463b mov r3, r7 + 8009c06: f9b4 100e ldrsh.w r1, [r4, #14] + 8009c0a: e8bd 41f0 ldmia.w sp!, {r4, r5, r6, r7, r8, lr} + 8009c0e: f000 b817 b.w 8009c40 <_write_r> + +08009c12 <__sseek>: + 8009c12: b510 push {r4, lr} + 8009c14: 460c mov r4, r1 + 8009c16: f9b1 100e ldrsh.w r1, [r1, #14] + 8009c1a: f000 f855 bl 8009cc8 <_lseek_r> + 8009c1e: 1c43 adds r3, r0, #1 + 8009c20: 89a3 ldrh r3, [r4, #12] + 8009c22: bf15 itete ne + 8009c24: 6560 strne r0, [r4, #84] ; 0x54 + 8009c26: f423 5380 biceq.w r3, r3, #4096 ; 0x1000 + 8009c2a: f443 5380 orrne.w r3, r3, #4096 ; 0x1000 + 8009c2e: 81a3 strheq r3, [r4, #12] + 8009c30: bf18 it ne + 8009c32: 81a3 strhne r3, [r4, #12] + 8009c34: bd10 pop {r4, pc} + +08009c36 <__sclose>: + 8009c36: f9b1 100e ldrsh.w r1, [r1, #14] + 8009c3a: f000 b813 b.w 8009c64 <_close_r> + ... + +08009c40 <_write_r>: + 8009c40: b538 push {r3, r4, r5, lr} + 8009c42: 4604 mov r4, r0 + 8009c44: 4608 mov r0, r1 + 8009c46: 4611 mov r1, r2 + 8009c48: 2200 movs r2, #0 + 8009c4a: 4d05 ldr r5, [pc, #20] ; (8009c60 <_write_r+0x20>) + 8009c4c: 602a str r2, [r5, #0] + 8009c4e: 461a mov r2, r3 + 8009c50: f7f7 fe64 bl 800191c <_write> + 8009c54: 1c43 adds r3, r0, #1 + 8009c56: d102 bne.n 8009c5e <_write_r+0x1e> + 8009c58: 682b ldr r3, [r5, #0] + 8009c5a: b103 cbz r3, 8009c5e <_write_r+0x1e> + 8009c5c: 6023 str r3, [r4, #0] + 8009c5e: bd38 pop {r3, r4, r5, pc} + 8009c60: 200024ec .word 0x200024ec + +08009c64 <_close_r>: + 8009c64: b538 push {r3, r4, r5, lr} + 8009c66: 2300 movs r3, #0 + 8009c68: 4d05 ldr r5, [pc, #20] ; (8009c80 <_close_r+0x1c>) + 8009c6a: 4604 mov r4, r0 + 8009c6c: 4608 mov r0, r1 + 8009c6e: 602b str r3, [r5, #0] + 8009c70: f7f7 fe70 bl 8001954 <_close> + 8009c74: 1c43 adds r3, r0, #1 + 8009c76: d102 bne.n 8009c7e <_close_r+0x1a> + 8009c78: 682b ldr r3, [r5, #0] + 8009c7a: b103 cbz r3, 8009c7e <_close_r+0x1a> + 8009c7c: 6023 str r3, [r4, #0] + 8009c7e: bd38 pop {r3, r4, r5, pc} + 8009c80: 200024ec .word 0x200024ec + +08009c84 <_fstat_r>: + 8009c84: b538 push {r3, r4, r5, lr} + 8009c86: 2300 movs r3, #0 + 8009c88: 4d06 ldr r5, [pc, #24] ; (8009ca4 <_fstat_r+0x20>) + 8009c8a: 4604 mov r4, r0 + 8009c8c: 4608 mov r0, r1 + 8009c8e: 4611 mov r1, r2 + 8009c90: 602b str r3, [r5, #0] + 8009c92: f7f7 fe6a bl 800196a <_fstat> + 8009c96: 1c43 adds r3, r0, #1 + 8009c98: d102 bne.n 8009ca0 <_fstat_r+0x1c> + 8009c9a: 682b ldr r3, [r5, #0] + 8009c9c: b103 cbz r3, 8009ca0 <_fstat_r+0x1c> + 8009c9e: 6023 str r3, [r4, #0] + 8009ca0: bd38 pop {r3, r4, r5, pc} + 8009ca2: bf00 nop + 8009ca4: 200024ec .word 0x200024ec + +08009ca8 <_isatty_r>: + 8009ca8: b538 push {r3, r4, r5, lr} + 8009caa: 2300 movs r3, #0 + 8009cac: 4d05 ldr r5, [pc, #20] ; (8009cc4 <_isatty_r+0x1c>) + 8009cae: 4604 mov r4, r0 + 8009cb0: 4608 mov r0, r1 + 8009cb2: 602b str r3, [r5, #0] + 8009cb4: f7f7 fe68 bl 8001988 <_isatty> + 8009cb8: 1c43 adds r3, r0, #1 + 8009cba: d102 bne.n 8009cc2 <_isatty_r+0x1a> + 8009cbc: 682b ldr r3, [r5, #0] + 8009cbe: b103 cbz r3, 8009cc2 <_isatty_r+0x1a> 8009cc0: 6023 str r3, [r4, #0] - 8009cc2: 6123 str r3, [r4, #16] - 8009cc4: 2301 movs r3, #1 - 8009cc6: 6163 str r3, [r4, #20] - 8009cc8: b002 add sp, #8 - 8009cca: bd70 pop {r4, r5, r6, pc} - 8009ccc: 466a mov r2, sp - 8009cce: ab01 add r3, sp, #4 - 8009cd0: f7ff ffc9 bl 8009c66 <__swhatbuf_r> - 8009cd4: 9900 ldr r1, [sp, #0] - 8009cd6: 4605 mov r5, r0 - 8009cd8: 4630 mov r0, r6 - 8009cda: f7fd fadd bl 8007298 <_malloc_r> - 8009cde: b948 cbnz r0, 8009cf4 <__smakebuf_r+0x44> - 8009ce0: f9b4 300c ldrsh.w r3, [r4, #12] - 8009ce4: 059a lsls r2, r3, #22 - 8009ce6: d4ef bmi.n 8009cc8 <__smakebuf_r+0x18> - 8009ce8: f023 0303 bic.w r3, r3, #3 - 8009cec: f043 0302 orr.w r3, r3, #2 - 8009cf0: 81a3 strh r3, [r4, #12] - 8009cf2: e7e3 b.n 8009cbc <__smakebuf_r+0xc> - 8009cf4: 4b0d ldr r3, [pc, #52] ; (8009d2c <__smakebuf_r+0x7c>) - 8009cf6: 62b3 str r3, [r6, #40] ; 0x28 - 8009cf8: 89a3 ldrh r3, [r4, #12] - 8009cfa: 6020 str r0, [r4, #0] - 8009cfc: f043 0380 orr.w r3, r3, #128 ; 0x80 - 8009d00: 81a3 strh r3, [r4, #12] - 8009d02: 9b00 ldr r3, [sp, #0] - 8009d04: 6120 str r0, [r4, #16] - 8009d06: 6163 str r3, [r4, #20] - 8009d08: 9b01 ldr r3, [sp, #4] - 8009d0a: b15b cbz r3, 8009d24 <__smakebuf_r+0x74> - 8009d0c: 4630 mov r0, r6 - 8009d0e: f9b4 100e ldrsh.w r1, [r4, #14] - 8009d12: f000 f8d1 bl 8009eb8 <_isatty_r> - 8009d16: b128 cbz r0, 8009d24 <__smakebuf_r+0x74> - 8009d18: 89a3 ldrh r3, [r4, #12] - 8009d1a: f023 0303 bic.w r3, r3, #3 - 8009d1e: f043 0301 orr.w r3, r3, #1 - 8009d22: 81a3 strh r3, [r4, #12] - 8009d24: 89a0 ldrh r0, [r4, #12] - 8009d26: 4305 orrs r5, r0 - 8009d28: 81a5 strh r5, [r4, #12] - 8009d2a: e7cd b.n 8009cc8 <__smakebuf_r+0x18> - 8009d2c: 08009ac5 .word 0x08009ac5 + 8009cc2: bd38 pop {r3, r4, r5, pc} + 8009cc4: 200024ec .word 0x200024ec -08009d30 <_malloc_usable_size_r>: - 8009d30: f851 3c04 ldr.w r3, [r1, #-4] - 8009d34: 1f18 subs r0, r3, #4 - 8009d36: 2b00 cmp r3, #0 - 8009d38: bfbc itt lt - 8009d3a: 580b ldrlt r3, [r1, r0] - 8009d3c: 18c0 addlt r0, r0, r3 - 8009d3e: 4770 bx lr +08009cc8 <_lseek_r>: + 8009cc8: b538 push {r3, r4, r5, lr} + 8009cca: 4604 mov r4, r0 + 8009ccc: 4608 mov r0, r1 + 8009cce: 4611 mov r1, r2 + 8009cd0: 2200 movs r2, #0 + 8009cd2: 4d05 ldr r5, [pc, #20] ; (8009ce8 <_lseek_r+0x20>) + 8009cd4: 602a str r2, [r5, #0] + 8009cd6: 461a mov r2, r3 + 8009cd8: f7f7 fe60 bl 800199c <_lseek> + 8009cdc: 1c43 adds r3, r0, #1 + 8009cde: d102 bne.n 8009ce6 <_lseek_r+0x1e> + 8009ce0: 682b ldr r3, [r5, #0] + 8009ce2: b103 cbz r3, 8009ce6 <_lseek_r+0x1e> + 8009ce4: 6023 str r3, [r4, #0] + 8009ce6: bd38 pop {r3, r4, r5, pc} + 8009ce8: 200024ec .word 0x200024ec -08009d40 <_raise_r>: - 8009d40: 291f cmp r1, #31 - 8009d42: b538 push {r3, r4, r5, lr} - 8009d44: 4604 mov r4, r0 - 8009d46: 460d mov r5, r1 - 8009d48: d904 bls.n 8009d54 <_raise_r+0x14> - 8009d4a: 2316 movs r3, #22 - 8009d4c: 6003 str r3, [r0, #0] - 8009d4e: f04f 30ff mov.w r0, #4294967295 ; 0xffffffff - 8009d52: bd38 pop {r3, r4, r5, pc} - 8009d54: 6c42 ldr r2, [r0, #68] ; 0x44 - 8009d56: b112 cbz r2, 8009d5e <_raise_r+0x1e> - 8009d58: f852 3021 ldr.w r3, [r2, r1, lsl #2] - 8009d5c: b94b cbnz r3, 8009d72 <_raise_r+0x32> - 8009d5e: 4620 mov r0, r4 - 8009d60: f000 f830 bl 8009dc4 <_getpid_r> - 8009d64: 462a mov r2, r5 - 8009d66: 4601 mov r1, r0 - 8009d68: 4620 mov r0, r4 - 8009d6a: e8bd 4038 ldmia.w sp!, {r3, r4, r5, lr} - 8009d6e: f000 b817 b.w 8009da0 <_kill_r> - 8009d72: 2b01 cmp r3, #1 - 8009d74: d00a beq.n 8009d8c <_raise_r+0x4c> - 8009d76: 1c59 adds r1, r3, #1 - 8009d78: d103 bne.n 8009d82 <_raise_r+0x42> - 8009d7a: 2316 movs r3, #22 - 8009d7c: 6003 str r3, [r0, #0] - 8009d7e: 2001 movs r0, #1 - 8009d80: e7e7 b.n 8009d52 <_raise_r+0x12> - 8009d82: 2400 movs r4, #0 - 8009d84: 4628 mov r0, r5 - 8009d86: f842 4025 str.w r4, [r2, r5, lsl #2] - 8009d8a: 4798 blx r3 - 8009d8c: 2000 movs r0, #0 - 8009d8e: e7e0 b.n 8009d52 <_raise_r+0x12> +08009cec <_read_r>: + 8009cec: b538 push {r3, r4, r5, lr} + 8009cee: 4604 mov r4, r0 + 8009cf0: 4608 mov r0, r1 + 8009cf2: 4611 mov r1, r2 + 8009cf4: 2200 movs r2, #0 + 8009cf6: 4d05 ldr r5, [pc, #20] ; (8009d0c <_read_r+0x20>) + 8009cf8: 602a str r2, [r5, #0] + 8009cfa: 461a mov r2, r3 + 8009cfc: f7f7 fdf1 bl 80018e2 <_read> + 8009d00: 1c43 adds r3, r0, #1 + 8009d02: d102 bne.n 8009d0a <_read_r+0x1e> + 8009d04: 682b ldr r3, [r5, #0] + 8009d06: b103 cbz r3, 8009d0a <_read_r+0x1e> + 8009d08: 6023 str r3, [r4, #0] + 8009d0a: bd38 pop {r3, r4, r5, pc} + 8009d0c: 200024ec .word 0x200024ec -08009d90 : - 8009d90: 4b02 ldr r3, [pc, #8] ; (8009d9c ) - 8009d92: 4601 mov r1, r0 - 8009d94: 6818 ldr r0, [r3, #0] - 8009d96: f7ff bfd3 b.w 8009d40 <_raise_r> - 8009d9a: bf00 nop - 8009d9c: 2000000c .word 0x2000000c +08009d10 <_init>: + 8009d10: b5f8 push {r3, r4, r5, r6, r7, lr} + 8009d12: bf00 nop + 8009d14: bcf8 pop {r3, r4, r5, r6, r7} + 8009d16: bc08 pop {r3} + 8009d18: 469e mov lr, r3 + 8009d1a: 4770 bx lr -08009da0 <_kill_r>: - 8009da0: b538 push {r3, r4, r5, lr} - 8009da2: 2300 movs r3, #0 - 8009da4: 4d06 ldr r5, [pc, #24] ; (8009dc0 <_kill_r+0x20>) - 8009da6: 4604 mov r4, r0 - 8009da8: 4608 mov r0, r1 - 8009daa: 4611 mov r1, r2 - 8009dac: 602b str r3, [r5, #0] - 8009dae: f7f7 fd4c bl 800184a <_kill> - 8009db2: 1c43 adds r3, r0, #1 - 8009db4: d102 bne.n 8009dbc <_kill_r+0x1c> - 8009db6: 682b ldr r3, [r5, #0] - 8009db8: b103 cbz r3, 8009dbc <_kill_r+0x1c> - 8009dba: 6023 str r3, [r4, #0] - 8009dbc: bd38 pop {r3, r4, r5, pc} - 8009dbe: bf00 nop - 8009dc0: 2000249c .word 0x2000249c - -08009dc4 <_getpid_r>: - 8009dc4: f7f7 bd3a b.w 800183c <_getpid> - -08009dc8 <__sread>: - 8009dc8: b510 push {r4, lr} - 8009dca: 460c mov r4, r1 - 8009dcc: f9b1 100e ldrsh.w r1, [r1, #14] - 8009dd0: f000 f894 bl 8009efc <_read_r> - 8009dd4: 2800 cmp r0, #0 - 8009dd6: bfab itete ge - 8009dd8: 6d63 ldrge r3, [r4, #84] ; 0x54 - 8009dda: 89a3 ldrhlt r3, [r4, #12] - 8009ddc: 181b addge r3, r3, r0 - 8009dde: f423 5380 biclt.w r3, r3, #4096 ; 0x1000 - 8009de2: bfac ite ge - 8009de4: 6563 strge r3, [r4, #84] ; 0x54 - 8009de6: 81a3 strhlt r3, [r4, #12] - 8009de8: bd10 pop {r4, pc} - -08009dea <__swrite>: - 8009dea: e92d 41f0 stmdb sp!, {r4, r5, r6, r7, r8, lr} - 8009dee: 461f mov r7, r3 - 8009df0: 898b ldrh r3, [r1, #12] - 8009df2: 4605 mov r5, r0 - 8009df4: 05db lsls r3, r3, #23 - 8009df6: 460c mov r4, r1 - 8009df8: 4616 mov r6, r2 - 8009dfa: d505 bpl.n 8009e08 <__swrite+0x1e> - 8009dfc: 2302 movs r3, #2 - 8009dfe: 2200 movs r2, #0 - 8009e00: f9b1 100e ldrsh.w r1, [r1, #14] - 8009e04: f000 f868 bl 8009ed8 <_lseek_r> - 8009e08: 89a3 ldrh r3, [r4, #12] - 8009e0a: 4632 mov r2, r6 - 8009e0c: f423 5380 bic.w r3, r3, #4096 ; 0x1000 - 8009e10: 81a3 strh r3, [r4, #12] - 8009e12: 4628 mov r0, r5 - 8009e14: 463b mov r3, r7 - 8009e16: f9b4 100e ldrsh.w r1, [r4, #14] - 8009e1a: e8bd 41f0 ldmia.w sp!, {r4, r5, r6, r7, r8, lr} - 8009e1e: f000 b817 b.w 8009e50 <_write_r> - -08009e22 <__sseek>: - 8009e22: b510 push {r4, lr} - 8009e24: 460c mov r4, r1 - 8009e26: f9b1 100e ldrsh.w r1, [r1, #14] - 8009e2a: f000 f855 bl 8009ed8 <_lseek_r> - 8009e2e: 1c43 adds r3, r0, #1 - 8009e30: 89a3 ldrh r3, [r4, #12] - 8009e32: bf15 itete ne - 8009e34: 6560 strne r0, [r4, #84] ; 0x54 - 8009e36: f423 5380 biceq.w r3, r3, #4096 ; 0x1000 - 8009e3a: f443 5380 orrne.w r3, r3, #4096 ; 0x1000 - 8009e3e: 81a3 strheq r3, [r4, #12] - 8009e40: bf18 it ne - 8009e42: 81a3 strhne r3, [r4, #12] - 8009e44: bd10 pop {r4, pc} - -08009e46 <__sclose>: - 8009e46: f9b1 100e ldrsh.w r1, [r1, #14] - 8009e4a: f000 b813 b.w 8009e74 <_close_r> - ... - -08009e50 <_write_r>: - 8009e50: b538 push {r3, r4, r5, lr} - 8009e52: 4604 mov r4, r0 - 8009e54: 4608 mov r0, r1 - 8009e56: 4611 mov r1, r2 - 8009e58: 2200 movs r2, #0 - 8009e5a: 4d05 ldr r5, [pc, #20] ; (8009e70 <_write_r+0x20>) - 8009e5c: 602a str r2, [r5, #0] - 8009e5e: 461a mov r2, r3 - 8009e60: f7f7 fd2a bl 80018b8 <_write> - 8009e64: 1c43 adds r3, r0, #1 - 8009e66: d102 bne.n 8009e6e <_write_r+0x1e> - 8009e68: 682b ldr r3, [r5, #0] - 8009e6a: b103 cbz r3, 8009e6e <_write_r+0x1e> - 8009e6c: 6023 str r3, [r4, #0] - 8009e6e: bd38 pop {r3, r4, r5, pc} - 8009e70: 2000249c .word 0x2000249c - -08009e74 <_close_r>: - 8009e74: b538 push {r3, r4, r5, lr} - 8009e76: 2300 movs r3, #0 - 8009e78: 4d05 ldr r5, [pc, #20] ; (8009e90 <_close_r+0x1c>) - 8009e7a: 4604 mov r4, r0 - 8009e7c: 4608 mov r0, r1 - 8009e7e: 602b str r3, [r5, #0] - 8009e80: f7f7 fd36 bl 80018f0 <_close> - 8009e84: 1c43 adds r3, r0, #1 - 8009e86: d102 bne.n 8009e8e <_close_r+0x1a> - 8009e88: 682b ldr r3, [r5, #0] - 8009e8a: b103 cbz r3, 8009e8e <_close_r+0x1a> - 8009e8c: 6023 str r3, [r4, #0] - 8009e8e: bd38 pop {r3, r4, r5, pc} - 8009e90: 2000249c .word 0x2000249c - -08009e94 <_fstat_r>: - 8009e94: b538 push {r3, r4, r5, lr} - 8009e96: 2300 movs r3, #0 - 8009e98: 4d06 ldr r5, [pc, #24] ; (8009eb4 <_fstat_r+0x20>) - 8009e9a: 4604 mov r4, r0 - 8009e9c: 4608 mov r0, r1 - 8009e9e: 4611 mov r1, r2 - 8009ea0: 602b str r3, [r5, #0] - 8009ea2: f7f7 fd30 bl 8001906 <_fstat> - 8009ea6: 1c43 adds r3, r0, #1 - 8009ea8: d102 bne.n 8009eb0 <_fstat_r+0x1c> - 8009eaa: 682b ldr r3, [r5, #0] - 8009eac: b103 cbz r3, 8009eb0 <_fstat_r+0x1c> - 8009eae: 6023 str r3, [r4, #0] - 8009eb0: bd38 pop {r3, r4, r5, pc} - 8009eb2: bf00 nop - 8009eb4: 2000249c .word 0x2000249c - -08009eb8 <_isatty_r>: - 8009eb8: b538 push {r3, r4, r5, lr} - 8009eba: 2300 movs r3, #0 - 8009ebc: 4d05 ldr r5, [pc, #20] ; (8009ed4 <_isatty_r+0x1c>) - 8009ebe: 4604 mov r4, r0 - 8009ec0: 4608 mov r0, r1 - 8009ec2: 602b str r3, [r5, #0] - 8009ec4: f7f7 fd2e bl 8001924 <_isatty> - 8009ec8: 1c43 adds r3, r0, #1 - 8009eca: d102 bne.n 8009ed2 <_isatty_r+0x1a> - 8009ecc: 682b ldr r3, [r5, #0] - 8009ece: b103 cbz r3, 8009ed2 <_isatty_r+0x1a> - 8009ed0: 6023 str r3, [r4, #0] - 8009ed2: bd38 pop {r3, r4, r5, pc} - 8009ed4: 2000249c .word 0x2000249c - -08009ed8 <_lseek_r>: - 8009ed8: b538 push {r3, r4, r5, lr} - 8009eda: 4604 mov r4, r0 - 8009edc: 4608 mov r0, r1 - 8009ede: 4611 mov r1, r2 - 8009ee0: 2200 movs r2, #0 - 8009ee2: 4d05 ldr r5, [pc, #20] ; (8009ef8 <_lseek_r+0x20>) - 8009ee4: 602a str r2, [r5, #0] - 8009ee6: 461a mov r2, r3 - 8009ee8: f7f7 fd26 bl 8001938 <_lseek> - 8009eec: 1c43 adds r3, r0, #1 - 8009eee: d102 bne.n 8009ef6 <_lseek_r+0x1e> - 8009ef0: 682b ldr r3, [r5, #0] - 8009ef2: b103 cbz r3, 8009ef6 <_lseek_r+0x1e> - 8009ef4: 6023 str r3, [r4, #0] - 8009ef6: bd38 pop {r3, r4, r5, pc} - 8009ef8: 2000249c .word 0x2000249c - -08009efc <_read_r>: - 8009efc: b538 push {r3, r4, r5, lr} - 8009efe: 4604 mov r4, r0 - 8009f00: 4608 mov r0, r1 - 8009f02: 4611 mov r1, r2 - 8009f04: 2200 movs r2, #0 - 8009f06: 4d05 ldr r5, [pc, #20] ; (8009f1c <_read_r+0x20>) - 8009f08: 602a str r2, [r5, #0] - 8009f0a: 461a mov r2, r3 - 8009f0c: f7f7 fcb7 bl 800187e <_read> - 8009f10: 1c43 adds r3, r0, #1 - 8009f12: d102 bne.n 8009f1a <_read_r+0x1e> - 8009f14: 682b ldr r3, [r5, #0] - 8009f16: b103 cbz r3, 8009f1a <_read_r+0x1e> - 8009f18: 6023 str r3, [r4, #0] - 8009f1a: bd38 pop {r3, r4, r5, pc} - 8009f1c: 2000249c .word 0x2000249c - -08009f20 : - 8009f20: b538 push {r3, r4, r5, lr} - 8009f22: 4605 mov r5, r0 - 8009f24: f000 f81e bl 8009f64 <__ieee754_sqrtf> - 8009f28: 4b0d ldr r3, [pc, #52] ; (8009f60 ) - 8009f2a: 4604 mov r4, r0 - 8009f2c: f993 3000 ldrsb.w r3, [r3] - 8009f30: 3301 adds r3, #1 - 8009f32: d012 beq.n 8009f5a - 8009f34: 4629 mov r1, r5 - 8009f36: 4628 mov r0, r5 - 8009f38: f7f7 f936 bl 80011a8 <__aeabi_fcmpun> - 8009f3c: b968 cbnz r0, 8009f5a - 8009f3e: 2100 movs r1, #0 - 8009f40: 4628 mov r0, r5 - 8009f42: f7f7 f909 bl 8001158 <__aeabi_fcmplt> - 8009f46: b140 cbz r0, 8009f5a - 8009f48: f7fd f918 bl 800717c <__errno> - 8009f4c: 2321 movs r3, #33 ; 0x21 - 8009f4e: 2100 movs r1, #0 - 8009f50: 6003 str r3, [r0, #0] - 8009f52: 4608 mov r0, r1 - 8009f54: f7f7 f816 bl 8000f84 <__aeabi_fdiv> - 8009f58: 4604 mov r4, r0 - 8009f5a: 4620 mov r0, r4 - 8009f5c: bd38 pop {r3, r4, r5, pc} - 8009f5e: bf00 nop - 8009f60: 200001dc .word 0x200001dc - -08009f64 <__ieee754_sqrtf>: - 8009f64: f020 4200 bic.w r2, r0, #2147483648 ; 0x80000000 - 8009f68: f1b2 4fff cmp.w r2, #2139095040 ; 0x7f800000 - 8009f6c: b570 push {r4, r5, r6, lr} - 8009f6e: 4603 mov r3, r0 - 8009f70: 4604 mov r4, r0 - 8009f72: d309 bcc.n 8009f88 <__ieee754_sqrtf+0x24> - 8009f74: 4601 mov r1, r0 - 8009f76: f7f6 ff51 bl 8000e1c <__aeabi_fmul> - 8009f7a: 4601 mov r1, r0 - 8009f7c: 4620 mov r0, r4 - 8009f7e: f7f6 fe45 bl 8000c0c <__addsf3> - 8009f82: 4604 mov r4, r0 - 8009f84: 4620 mov r0, r4 - 8009f86: bd70 pop {r4, r5, r6, pc} - 8009f88: 2a00 cmp r2, #0 - 8009f8a: d0fb beq.n 8009f84 <__ieee754_sqrtf+0x20> - 8009f8c: 2800 cmp r0, #0 - 8009f8e: da06 bge.n 8009f9e <__ieee754_sqrtf+0x3a> - 8009f90: 4601 mov r1, r0 - 8009f92: f7f6 fe39 bl 8000c08 <__aeabi_fsub> - 8009f96: 4601 mov r1, r0 - 8009f98: f7f6 fff4 bl 8000f84 <__aeabi_fdiv> - 8009f9c: e7f1 b.n 8009f82 <__ieee754_sqrtf+0x1e> - 8009f9e: f010 42ff ands.w r2, r0, #2139095040 ; 0x7f800000 - 8009fa2: ea4f 51e0 mov.w r1, r0, asr #23 - 8009fa6: d029 beq.n 8009ffc <__ieee754_sqrtf+0x98> - 8009fa8: f3c3 0216 ubfx r2, r3, #0, #23 - 8009fac: 07cb lsls r3, r1, #31 - 8009fae: f04f 0300 mov.w r3, #0 - 8009fb2: f1a1 007f sub.w r0, r1, #127 ; 0x7f - 8009fb6: f04f 0419 mov.w r4, #25 - 8009fba: 461e mov r6, r3 - 8009fbc: f04f 7180 mov.w r1, #16777216 ; 0x1000000 - 8009fc0: f442 0200 orr.w r2, r2, #8388608 ; 0x800000 - 8009fc4: bf58 it pl - 8009fc6: 0052 lslpl r2, r2, #1 - 8009fc8: 1040 asrs r0, r0, #1 - 8009fca: 0052 lsls r2, r2, #1 - 8009fcc: 1875 adds r5, r6, r1 - 8009fce: 4295 cmp r5, r2 - 8009fd0: bfde ittt le - 8009fd2: 186e addle r6, r5, r1 - 8009fd4: 1b52 suble r2, r2, r5 - 8009fd6: 185b addle r3, r3, r1 - 8009fd8: 3c01 subs r4, #1 - 8009fda: ea4f 0242 mov.w r2, r2, lsl #1 - 8009fde: ea4f 0151 mov.w r1, r1, lsr #1 - 8009fe2: d1f3 bne.n 8009fcc <__ieee754_sqrtf+0x68> - 8009fe4: b112 cbz r2, 8009fec <__ieee754_sqrtf+0x88> - 8009fe6: 3301 adds r3, #1 - 8009fe8: f023 0301 bic.w r3, r3, #1 - 8009fec: 105c asrs r4, r3, #1 - 8009fee: f104 547c add.w r4, r4, #1056964608 ; 0x3f000000 - 8009ff2: eb04 54c0 add.w r4, r4, r0, lsl #23 - 8009ff6: e7c5 b.n 8009f84 <__ieee754_sqrtf+0x20> - 8009ff8: 005b lsls r3, r3, #1 - 8009ffa: 3201 adds r2, #1 - 8009ffc: 0218 lsls r0, r3, #8 - 8009ffe: d5fb bpl.n 8009ff8 <__ieee754_sqrtf+0x94> - 800a000: 3a01 subs r2, #1 - 800a002: 1a89 subs r1, r1, r2 - 800a004: e7d0 b.n 8009fa8 <__ieee754_sqrtf+0x44> - ... - -0800a008 <_init>: - 800a008: b5f8 push {r3, r4, r5, r6, r7, lr} - 800a00a: bf00 nop - 800a00c: bcf8 pop {r3, r4, r5, r6, r7} - 800a00e: bc08 pop {r3} - 800a010: 469e mov lr, r3 - 800a012: 4770 bx lr - -0800a014 <_fini>: - 800a014: b5f8 push {r3, r4, r5, r6, r7, lr} - 800a016: bf00 nop - 800a018: bcf8 pop {r3, r4, r5, r6, r7} - 800a01a: bc08 pop {r3} - 800a01c: 469e mov lr, r3 - 800a01e: 4770 bx lr +08009d1c <_fini>: + 8009d1c: b5f8 push {r3, r4, r5, r6, r7, lr} + 8009d1e: bf00 nop + 8009d20: bcf8 pop {r3, r4, r5, r6, r7} + 8009d22: bc08 pop {r3} + 8009d24: 469e mov lr, r3 + 8009d26: 4770 bx lr diff --git a/Debug/m3s.map b/Debug/m3s.map index b43a8a4..6c4bc70 100644 --- a/Debug/m3s.map +++ b/Debug/m3s.map @@ -159,12 +159,14 @@ hsram1 0x48 ./Core/Src/main.o s1 0x1080 ./SW_APPs/APP_blood.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) +idcard_window 0x4 ./SW_APPs/APP_IDcard.o eeprom_write_buffer 0x14 ./HW_Devices/eeprom.o htim6 0x48 ./Core/Src/main.o lcddev 0xa ./HW_Devices/LCD.o s2 0x1080 ./SW_APPs/APP_blood.o t0 0x10 ./HW_Devices/touch.o +hspi1 0x58 ./Core/Src/main.o g_BloodWave 0x8 ./SW_APPs/APP_blood.o __lock___at_quick_exit_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) @@ -226,6 +228,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 @@ -267,11 +270,14 @@ 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 + .text.HAL_SPI_MspDeInit + 0x0000000000000000 0x3c ./Core/Src/stm32f1xx_hal_msp.o .text.HAL_TIM_Base_MspDeInit 0x0000000000000000 0x34 ./Core/Src/stm32f1xx_hal_msp.o .bss.FSMC_DeInitialized @@ -281,7 +287,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 0x221 ./Core/Src/stm32f1xx_hal_msp.o + .debug_macro 0x0000000000000000 0x227 ./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 @@ -315,9 +321,11 @@ Discarded input sections .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 0x217 ./Core/Src/stm32f1xx_hal_msp.o .debug_macro 0x0000000000000000 0x8d1 ./Core/Src/stm32f1xx_hal_msp.o .debug_macro 0x0000000000000000 0xb5 ./Core/Src/stm32f1xx_hal_msp.o - .debug_macro 0x0000000000000000 0x70 ./Core/Src/stm32f1xx_hal_msp.o + .debug_macro 0x0000000000000000 0xac ./Core/Src/stm32f1xx_hal_msp.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 .group 0x0000000000000000 0xc ./Core/Src/stm32f1xx_it.o @@ -360,7 +368,7 @@ Discarded input sections .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 0x221 ./Core/Src/stm32f1xx_it.o + .debug_macro 0x0000000000000000 0x227 ./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 @@ -394,9 +402,10 @@ Discarded input sections .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 0x217 ./Core/Src/stm32f1xx_it.o .debug_macro 0x0000000000000000 0x8d1 ./Core/Src/stm32f1xx_it.o .debug_macro 0x0000000000000000 0xb5 ./Core/Src/stm32f1xx_it.o - .debug_macro 0x0000000000000000 0x70 ./Core/Src/stm32f1xx_it.o + .debug_macro 0x0000000000000000 0xac ./Core/Src/stm32f1xx_it.o .group 0x0000000000000000 0xc ./Core/Src/syscalls.o .group 0x0000000000000000 0xc ./Core/Src/syscalls.o .group 0x0000000000000000 0xc ./Core/Src/syscalls.o @@ -546,6 +555,7 @@ 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 @@ -566,7 +576,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 0x221 ./Core/Src/system_stm32f1xx.o + .debug_macro 0x0000000000000000 0x227 ./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 @@ -586,6 +596,7 @@ Discarded input sections .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 0x217 ./Core/Src/system_stm32f1xx.o .debug_macro 0x0000000000000000 0x8d1 ./Core/Src/system_stm32f1xx.o .debug_macro 0x0000000000000000 0xb5 ./Core/Src/system_stm32f1xx.o .text 0x0000000000000000 0x14 ./Core/Startup/startup_stm32f103zetx.o @@ -628,6 +639,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 @@ -672,7 +684,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 0x221 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.o + .debug_macro 0x0000000000000000 0x227 ./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 @@ -706,6 +718,7 @@ Discarded input sections .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 0x217 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.o .debug_macro 0x0000000000000000 0x8d1 ./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 @@ -745,6 +758,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 @@ -787,7 +801,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 0x221 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.o + .debug_macro 0x0000000000000000 0x227 ./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 @@ -821,6 +835,7 @@ Discarded input sections .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 0x217 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.o .debug_macro 0x0000000000000000 0x8d1 ./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 @@ -860,6 +875,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 @@ -894,9 +910,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 0x1bd ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_dma.o + .debug_macro 0x0000000000000000 0x1c7 ./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 0x221 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_dma.o + .debug_macro 0x0000000000000000 0x227 ./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 @@ -930,10 +946,11 @@ Discarded input sections .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 0x217 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_dma.o .debug_macro 0x0000000000000000 0x8d1 ./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 0x12b0 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_dma.o - .debug_str 0x0000000000000000 0x93be3 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_dma.o + .debug_line 0x0000000000000000 0x12c7 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_dma.o + .debug_str 0x0000000000000000 0x95021 ./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 @@ -975,6 +992,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 @@ -1001,9 +1019,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 0x1bd ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.o + .debug_macro 0x0000000000000000 0x1c7 ./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 0x221 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.o + .debug_macro 0x0000000000000000 0x227 ./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 @@ -1037,10 +1055,11 @@ Discarded input sections .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 0x217 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.o .debug_macro 0x0000000000000000 0x8d1 ./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 0x9ae ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.o - .debug_str 0x0000000000000000 0x939c8 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.o + .debug_line 0x0000000000000000 0x9c5 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.o + .debug_str 0x0000000000000000 0x94e06 ./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 @@ -1082,6 +1101,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 @@ -1118,9 +1138,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 0x1bd ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.o + .debug_macro 0x0000000000000000 0x1c7 ./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 0x221 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.o + .debug_macro 0x0000000000000000 0x227 ./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 @@ -1154,10 +1174,11 @@ Discarded input sections .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 0x217 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.o .debug_macro 0x0000000000000000 0x8d1 ./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 0xa63 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.o - .debug_str 0x0000000000000000 0x93ade ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.o + .debug_line 0x0000000000000000 0xa7a ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.o + .debug_str 0x0000000000000000 0x94f1c ./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 @@ -1200,6 +1221,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 @@ -1240,9 +1262,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 0x1cf ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash_ex.o + .debug_macro 0x0000000000000000 0x1d9 ./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 0x221 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash_ex.o + .debug_macro 0x0000000000000000 0x227 ./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 @@ -1276,10 +1298,11 @@ Discarded input sections .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 0x217 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash_ex.o .debug_macro 0x0000000000000000 0x8d1 ./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 0xb54 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash_ex.o - .debug_str 0x0000000000000000 0x93ca2 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash_ex.o + .debug_line 0x0000000000000000 0xb6b ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash_ex.o + .debug_str 0x0000000000000000 0x950e0 ./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 @@ -1321,6 +1344,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 @@ -1335,7 +1359,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 0x221 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio.o + .debug_macro 0x0000000000000000 0x227 ./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 @@ -1369,6 +1393,7 @@ Discarded input sections .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 0x217 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio.o .debug_macro 0x0000000000000000 0x8d1 ./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 @@ -1408,6 +1433,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 @@ -1422,9 +1448,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 0x1bd ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio_ex.o + .debug_macro 0x0000000000000000 0x1c7 ./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 0x221 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio_ex.o + .debug_macro 0x0000000000000000 0x227 ./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 @@ -1458,10 +1484,11 @@ Discarded input sections .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 0x217 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio_ex.o .debug_macro 0x0000000000000000 0x8d1 ./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 0x71c ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio_ex.o - .debug_str 0x0000000000000000 0x93849 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio_ex.o + .debug_line 0x0000000000000000 0x733 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio_ex.o + .debug_str 0x0000000000000000 0x94c87 ./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 @@ -1503,6 +1530,7 @@ Discarded input sections .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 @@ -1647,7 +1675,7 @@ Discarded input sections .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 0x221 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + .debug_macro 0x0000000000000000 0x227 ./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 @@ -1681,6 +1709,7 @@ Discarded input sections .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 0x217 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o .debug_macro 0x0000000000000000 0x8d1 ./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 @@ -1720,6 +1749,7 @@ Discarded input sections .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 .text 0x0000000000000000 0x0 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_pwr.o .data 0x0000000000000000 0x0 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_pwr.o .bss 0x0000000000000000 0x0 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_pwr.o @@ -1764,9 +1794,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 0x21d ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_pwr.o + .debug_macro 0x0000000000000000 0x227 ./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 0x221 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_pwr.o + .debug_macro 0x0000000000000000 0x227 ./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 @@ -1800,10 +1830,11 @@ Discarded input sections .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 0x217 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_pwr.o .debug_macro 0x0000000000000000 0x8d1 ./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 0x908 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_pwr.o - .debug_str 0x0000000000000000 0x93d6b ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_pwr.o + .debug_line 0x0000000000000000 0x91f ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_pwr.o + .debug_str 0x0000000000000000 0x951a9 ./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 @@ -1845,6 +1876,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 @@ -1867,7 +1899,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 0x221 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.o + .debug_macro 0x0000000000000000 0x227 ./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 @@ -1901,6 +1933,7 @@ Discarded input sections .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 0x217 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.o .debug_macro 0x0000000000000000 0x8d1 ./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 @@ -1940,6 +1973,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 @@ -1955,9 +1989,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 0x1bd ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc_ex.o + .debug_macro 0x0000000000000000 0x1c7 ./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 0x221 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc_ex.o + .debug_macro 0x0000000000000000 0x227 ./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 @@ -1991,14 +2025,191 @@ Discarded input sections .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 0x217 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc_ex.o .debug_macro 0x0000000000000000 0x8d1 ./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 0x8e4 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc_ex.o - .debug_str 0x0000000000000000 0x939b8 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc_ex.o + .debug_line 0x0000000000000000 0x8fb ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc_ex.o + .debug_str 0x0000000000000000 0x94df6 ./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 0x0000000000000000 0x2d ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc_ex.o + .group 0x0000000000000000 0xc ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o + .group 0x0000000000000000 0xc ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o + .group 0x0000000000000000 0xc ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o + .group 0x0000000000000000 0xc ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o + .group 0x0000000000000000 0xc ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o + .group 0x0000000000000000 0xc ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o + .group 0x0000000000000000 0xc ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o + .group 0x0000000000000000 0xc ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o + .group 0x0000000000000000 0xc ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o + .group 0x0000000000000000 0xc ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o + .group 0x0000000000000000 0xc ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o + .group 0x0000000000000000 0xc ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o + .group 0x0000000000000000 0xc ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o + .group 0x0000000000000000 0xc ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o + .group 0x0000000000000000 0xc ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o + .group 0x0000000000000000 0xc ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o + .group 0x0000000000000000 0xc ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o + .group 0x0000000000000000 0xc ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o + .group 0x0000000000000000 0xc ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o + .group 0x0000000000000000 0xc ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o + .group 0x0000000000000000 0xc ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o + .group 0x0000000000000000 0xc ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o + .group 0x0000000000000000 0xc ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o + .group 0x0000000000000000 0xc ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o + .group 0x0000000000000000 0xc ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o + .group 0x0000000000000000 0xc ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o + .group 0x0000000000000000 0xc ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o + .group 0x0000000000000000 0xc ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o + .group 0x0000000000000000 0xc ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o + .group 0x0000000000000000 0xc ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o + .group 0x0000000000000000 0xc ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o + .group 0x0000000000000000 0xc ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o + .group 0x0000000000000000 0xc ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o + .group 0x0000000000000000 0xc ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o + .group 0x0000000000000000 0xc ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o + .group 0x0000000000000000 0xc ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o + .group 0x0000000000000000 0xc ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o + .group 0x0000000000000000 0xc ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o + .text 0x0000000000000000 0x0 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o + .data 0x0000000000000000 0x0 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o + .bss 0x0000000000000000 0x0 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o + .text.HAL_SPI_DeInit + 0x0000000000000000 0x50 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o + .text.HAL_SPI_MspInit + 0x0000000000000000 0x12 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o + .text.HAL_SPI_MspDeInit + 0x0000000000000000 0x12 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o + .text.HAL_SPI_Transmit_IT + 0x0000000000000000 0x114 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o + .text.HAL_SPI_Receive_IT + 0x0000000000000000 0x13c ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o + .text.HAL_SPI_TransmitReceive_IT + 0x0000000000000000 0x128 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o + .text.HAL_SPI_Transmit_DMA + 0x0000000000000000 0x16c ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o + .text.HAL_SPI_Receive_DMA + 0x0000000000000000 0x190 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o + .text.HAL_SPI_TransmitReceive_DMA + 0x0000000000000000 0x204 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o + .text.HAL_SPI_Abort + 0x0000000000000000 0x1c8 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o + .text.HAL_SPI_Abort_IT + 0x0000000000000000 0x1e4 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o + .text.HAL_SPI_DMAPause + 0x0000000000000000 0x42 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o + .text.HAL_SPI_DMAResume + 0x0000000000000000 0x42 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o + .text.HAL_SPI_DMAStop + 0x0000000000000000 0x7e ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o + .text.HAL_SPI_IRQHandler + 0x0000000000000000 0x1cc ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o + .text.HAL_SPI_TxCpltCallback + 0x0000000000000000 0x12 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o + .text.HAL_SPI_RxCpltCallback + 0x0000000000000000 0x12 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o + .text.HAL_SPI_TxRxCpltCallback + 0x0000000000000000 0x12 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o + .text.HAL_SPI_TxHalfCpltCallback + 0x0000000000000000 0x12 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o + .text.HAL_SPI_RxHalfCpltCallback + 0x0000000000000000 0x12 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o + .text.HAL_SPI_TxRxHalfCpltCallback + 0x0000000000000000 0x12 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o + .text.HAL_SPI_ErrorCallback + 0x0000000000000000 0x12 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o + .text.HAL_SPI_AbortCpltCallback + 0x0000000000000000 0x12 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o + .text.HAL_SPI_GetState + 0x0000000000000000 0x1a ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o + .text.HAL_SPI_GetError + 0x0000000000000000 0x16 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o + .text.SPI_DMATransmitCplt + 0x0000000000000000 0xa6 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o + .text.SPI_DMAReceiveCplt + 0x0000000000000000 0xa6 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o + .text.SPI_DMATransmitReceiveCplt + 0x0000000000000000 0x8e ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o + .text.SPI_DMAHalfTransmitCplt + 0x0000000000000000 0x1c ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o + .text.SPI_DMAHalfReceiveCplt + 0x0000000000000000 0x1c ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o + .text.SPI_DMAHalfTransmitReceiveCplt + 0x0000000000000000 0x1c ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o + .text.SPI_DMAError + 0x0000000000000000 0x40 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o + .text.SPI_DMAAbortOnError + 0x0000000000000000 0x28 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o + .text.SPI_DMATxAbortCallback + 0x0000000000000000 0xc4 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o + .text.SPI_DMARxAbortCallback + 0x0000000000000000 0xb2 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o + .text.SPI_2linesRxISR_8BIT + 0x0000000000000000 0x64 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o + .text.SPI_2linesTxISR_8BIT + 0x0000000000000000 0x60 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o + .text.SPI_2linesRxISR_16BIT + 0x0000000000000000 0x60 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o + .text.SPI_2linesTxISR_16BIT + 0x0000000000000000 0x5e ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o + .text.SPI_RxISR_8BIT + 0x0000000000000000 0x4a ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o + .text.SPI_RxISR_16BIT + 0x0000000000000000 0x46 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o + .text.SPI_TxISR_8BIT + 0x0000000000000000 0x46 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o + .text.SPI_TxISR_16BIT + 0x0000000000000000 0x44 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o + .text.SPI_CloseRxTx_ISR + 0x0000000000000000 0xe8 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o + .text.SPI_CloseRx_ISR + 0x0000000000000000 0x7e ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o + .text.SPI_CloseTx_ISR + 0x0000000000000000 0xc4 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o + .text.SPI_AbortRx_ISR + 0x0000000000000000 0x8c ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o + .text.SPI_AbortTx_ISR + 0x0000000000000000 0x3a ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o + .debug_macro 0x0000000000000000 0xa9c ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o + .debug_macro 0x0000000000000000 0x227 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o + .debug_macro 0x0000000000000000 0x2e ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o + .debug_macro 0x0000000000000000 0x22 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o + .debug_macro 0x0000000000000000 0x22 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o + .debug_macro 0x0000000000000000 0x8e ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o + .debug_macro 0x0000000000000000 0x51 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o + .debug_macro 0x0000000000000000 0x103 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o + .debug_macro 0x0000000000000000 0x6a ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o + .debug_macro 0x0000000000000000 0x1df ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o + .debug_macro 0x0000000000000000 0x1c ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o + .debug_macro 0x0000000000000000 0x22 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o + .debug_macro 0x0000000000000000 0xc3 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o + .debug_macro 0x0000000000000000 0xd23 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o + .debug_macro 0x0000000000000000 0xfd8c ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o + .debug_macro 0x0000000000000000 0x6d ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o + .debug_macro 0x0000000000000000 0x3468 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o + .debug_macro 0x0000000000000000 0x174 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o + .debug_macro 0x0000000000000000 0x5c ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o + .debug_macro 0x0000000000000000 0x5be ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o + .debug_macro 0x0000000000000000 0x4d5 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o + .debug_macro 0x0000000000000000 0x1cb ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o + .debug_macro 0x0000000000000000 0x114 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o + .debug_macro 0x0000000000000000 0x1ea ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o + .debug_macro 0x0000000000000000 0x27 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o + .debug_macro 0x0000000000000000 0x144 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o + .debug_macro 0x0000000000000000 0x1bc ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o + .debug_macro 0x0000000000000000 0x30 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o + .debug_macro 0x0000000000000000 0x3c ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o + .debug_macro 0x0000000000000000 0x57 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o + .debug_macro 0x0000000000000000 0x88 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o + .debug_macro 0x0000000000000000 0x24f ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o + .debug_macro 0x0000000000000000 0x356 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o + .debug_macro 0x0000000000000000 0x287 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o + .debug_macro 0x0000000000000000 0x141 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o + .debug_macro 0x0000000000000000 0x217 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o + .debug_macro 0x0000000000000000 0x8d1 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o + .debug_macro 0x0000000000000000 0xb5 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.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 .group 0x0000000000000000 0xc ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_sram.o @@ -2078,7 +2289,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 0x221 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_sram.o + .debug_macro 0x0000000000000000 0x227 ./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 @@ -2112,6 +2323,7 @@ Discarded input sections .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 0x217 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_sram.o .debug_macro 0x0000000000000000 0x8d1 ./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 @@ -2151,6 +2363,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 @@ -2164,6 +2377,8 @@ Discarded input sections 0x0000000000000000 0xb0 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim.o .text.HAL_TIM_Base_Stop 0x0000000000000000 0x4c ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim.o + .text.HAL_TIM_Base_Start_IT + 0x0000000000000000 0xc0 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim.o .text.HAL_TIM_Base_Start_DMA 0x0000000000000000 0x128 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim.o .text.HAL_TIM_Base_Stop_DMA @@ -2375,7 +2590,7 @@ Discarded input sections .text.TIM_CCxChannelCmd 0x0000000000000000 0x48 ./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 0x221 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim.o + .debug_macro 0x0000000000000000 0x227 ./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 @@ -2409,6 +2624,7 @@ Discarded input sections .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 0x217 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim.o .debug_macro 0x0000000000000000 0x8d1 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim.o .debug_macro 0x0000000000000000 0xb5 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim.o .group 0x0000000000000000 0xc ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim_ex.o @@ -2448,6 +2664,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 @@ -2530,7 +2747,7 @@ Discarded input sections .text.TIM_CCxNChannelCmd 0x0000000000000000 0x48 ./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 0x221 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim_ex.o + .debug_macro 0x0000000000000000 0x227 ./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 @@ -2564,6 +2781,7 @@ Discarded input sections .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 0x217 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim_ex.o .debug_macro 0x0000000000000000 0x8d1 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim_ex.o .debug_macro 0x0000000000000000 0xb5 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim_ex.o .group 0x0000000000000000 0xc ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_fsmc.o @@ -2603,6 +2821,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 @@ -2637,7 +2856,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 0x221 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_fsmc.o + .debug_macro 0x0000000000000000 0x227 ./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 @@ -2671,6 +2890,7 @@ Discarded input sections .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 0x217 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_fsmc.o .debug_macro 0x0000000000000000 0x8d1 ./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 @@ -2712,6 +2932,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 @@ -2732,7 +2953,7 @@ Discarded input sections .text.LCD_ReadPoint 0x0000000000000000 0x160 ./HW_Devices/LCD.o .debug_macro 0x0000000000000000 0xa9c ./HW_Devices/LCD.o - .debug_macro 0x0000000000000000 0x221 ./HW_Devices/LCD.o + .debug_macro 0x0000000000000000 0x227 ./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 @@ -2766,9 +2987,11 @@ Discarded input sections .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 0x217 ./HW_Devices/LCD.o .debug_macro 0x0000000000000000 0x8d1 ./HW_Devices/LCD.o .debug_macro 0x0000000000000000 0xb5 ./HW_Devices/LCD.o - .debug_macro 0x0000000000000000 0x70 ./HW_Devices/LCD.o + .debug_macro 0x0000000000000000 0xac ./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 @@ -2811,7 +3034,7 @@ Discarded input sections .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 0x221 ./HW_Devices/eeprom.o + .debug_macro 0x0000000000000000 0x227 ./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 @@ -2845,9 +3068,11 @@ Discarded input sections .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 0x217 ./HW_Devices/eeprom.o .debug_macro 0x0000000000000000 0x8d1 ./HW_Devices/eeprom.o .debug_macro 0x0000000000000000 0xb5 ./HW_Devices/eeprom.o - .debug_macro 0x0000000000000000 0x70 ./HW_Devices/eeprom.o + .debug_macro 0x0000000000000000 0xac ./HW_Devices/eeprom.o + .group 0x0000000000000000 0xc ./HW_Devices/iic.o .group 0x0000000000000000 0xc ./HW_Devices/iic.o .group 0x0000000000000000 0xc ./HW_Devices/iic.o .group 0x0000000000000000 0xc ./HW_Devices/iic.o @@ -2890,7 +3115,7 @@ Discarded input sections .data 0x0000000000000000 0x0 ./HW_Devices/iic.o .bss 0x0000000000000000 0x0 ./HW_Devices/iic.o .debug_macro 0x0000000000000000 0xa9c ./HW_Devices/iic.o - .debug_macro 0x0000000000000000 0x221 ./HW_Devices/iic.o + .debug_macro 0x0000000000000000 0x227 ./HW_Devices/iic.o .debug_macro 0x0000000000000000 0x2e ./HW_Devices/iic.o .debug_macro 0x0000000000000000 0x22 ./HW_Devices/iic.o .debug_macro 0x0000000000000000 0x22 ./HW_Devices/iic.o @@ -2924,9 +3149,112 @@ Discarded input sections .debug_macro 0x0000000000000000 0x356 ./HW_Devices/iic.o .debug_macro 0x0000000000000000 0x287 ./HW_Devices/iic.o .debug_macro 0x0000000000000000 0x141 ./HW_Devices/iic.o + .debug_macro 0x0000000000000000 0x217 ./HW_Devices/iic.o .debug_macro 0x0000000000000000 0x8d1 ./HW_Devices/iic.o .debug_macro 0x0000000000000000 0xb5 ./HW_Devices/iic.o - .debug_macro 0x0000000000000000 0x70 ./HW_Devices/iic.o + .debug_macro 0x0000000000000000 0xac ./HW_Devices/iic.o + .group 0x0000000000000000 0xc ./HW_Devices/rs522.o + .group 0x0000000000000000 0xc ./HW_Devices/rs522.o + .group 0x0000000000000000 0xc ./HW_Devices/rs522.o + .group 0x0000000000000000 0xc ./HW_Devices/rs522.o + .group 0x0000000000000000 0xc ./HW_Devices/rs522.o + .group 0x0000000000000000 0xc ./HW_Devices/rs522.o + .group 0x0000000000000000 0xc ./HW_Devices/rs522.o + .group 0x0000000000000000 0xc ./HW_Devices/rs522.o + .group 0x0000000000000000 0xc ./HW_Devices/rs522.o + .group 0x0000000000000000 0xc ./HW_Devices/rs522.o + .group 0x0000000000000000 0xc ./HW_Devices/rs522.o + .group 0x0000000000000000 0xc ./HW_Devices/rs522.o + .group 0x0000000000000000 0xc ./HW_Devices/rs522.o + .group 0x0000000000000000 0xc ./HW_Devices/rs522.o + .group 0x0000000000000000 0xc ./HW_Devices/rs522.o + .group 0x0000000000000000 0xc ./HW_Devices/rs522.o + .group 0x0000000000000000 0xc ./HW_Devices/rs522.o + .group 0x0000000000000000 0xc ./HW_Devices/rs522.o + .group 0x0000000000000000 0xc ./HW_Devices/rs522.o + .group 0x0000000000000000 0xc ./HW_Devices/rs522.o + .group 0x0000000000000000 0xc ./HW_Devices/rs522.o + .group 0x0000000000000000 0xc ./HW_Devices/rs522.o + .group 0x0000000000000000 0xc ./HW_Devices/rs522.o + .group 0x0000000000000000 0xc ./HW_Devices/rs522.o + .group 0x0000000000000000 0xc ./HW_Devices/rs522.o + .group 0x0000000000000000 0xc ./HW_Devices/rs522.o + .group 0x0000000000000000 0xc ./HW_Devices/rs522.o + .group 0x0000000000000000 0xc ./HW_Devices/rs522.o + .group 0x0000000000000000 0xc ./HW_Devices/rs522.o + .group 0x0000000000000000 0xc ./HW_Devices/rs522.o + .group 0x0000000000000000 0xc ./HW_Devices/rs522.o + .group 0x0000000000000000 0xc ./HW_Devices/rs522.o + .group 0x0000000000000000 0xc ./HW_Devices/rs522.o + .group 0x0000000000000000 0xc ./HW_Devices/rs522.o + .group 0x0000000000000000 0xc ./HW_Devices/rs522.o + .group 0x0000000000000000 0xc ./HW_Devices/rs522.o + .group 0x0000000000000000 0xc ./HW_Devices/rs522.o + .group 0x0000000000000000 0xc ./HW_Devices/rs522.o + .group 0x0000000000000000 0xc ./HW_Devices/rs522.o + .group 0x0000000000000000 0xc ./HW_Devices/rs522.o + .text 0x0000000000000000 0x0 ./HW_Devices/rs522.o + .data 0x0000000000000000 0x0 ./HW_Devices/rs522.o + .bss 0x0000000000000000 0x0 ./HW_Devices/rs522.o + .text.PcdAntennaOff + 0x0000000000000000 0x10 ./HW_Devices/rs522.o + .text.PcdComMF522 + 0x0000000000000000 0x1a2 ./HW_Devices/rs522.o + .text.PcdRequest + 0x0000000000000000 0x6e ./HW_Devices/rs522.o + .text.PcdAnticoll + 0x0000000000000000 0xce ./HW_Devices/rs522.o + .text.CalulateCRC + 0x0000000000000000 0x9a ./HW_Devices/rs522.o + .text.PcdSelect + 0x0000000000000000 0xa2 ./HW_Devices/rs522.o + .text.PcdAuthState + 0x0000000000000000 0xca ./HW_Devices/rs522.o + .text.PcdWrite + 0x0000000000000000 0xdc ./HW_Devices/rs522.o + .text.PcdRead 0x0000000000000000 0x84 ./HW_Devices/rs522.o + .text.PcdHalt 0x0000000000000000 0x38 ./HW_Devices/rs522.o + .text.IC_CMT 0x0000000000000000 0x60 ./HW_Devices/rs522.o + .debug_macro 0x0000000000000000 0xa9c ./HW_Devices/rs522.o + .debug_macro 0x0000000000000000 0x227 ./HW_Devices/rs522.o + .debug_macro 0x0000000000000000 0x2e ./HW_Devices/rs522.o + .debug_macro 0x0000000000000000 0x22 ./HW_Devices/rs522.o + .debug_macro 0x0000000000000000 0x22 ./HW_Devices/rs522.o + .debug_macro 0x0000000000000000 0x8e ./HW_Devices/rs522.o + .debug_macro 0x0000000000000000 0x51 ./HW_Devices/rs522.o + .debug_macro 0x0000000000000000 0x103 ./HW_Devices/rs522.o + .debug_macro 0x0000000000000000 0x6a ./HW_Devices/rs522.o + .debug_macro 0x0000000000000000 0x1df ./HW_Devices/rs522.o + .debug_macro 0x0000000000000000 0x1c ./HW_Devices/rs522.o + .debug_macro 0x0000000000000000 0x22 ./HW_Devices/rs522.o + .debug_macro 0x0000000000000000 0xc3 ./HW_Devices/rs522.o + .debug_macro 0x0000000000000000 0xd23 ./HW_Devices/rs522.o + .debug_macro 0x0000000000000000 0xfd8c ./HW_Devices/rs522.o + .debug_macro 0x0000000000000000 0x6d ./HW_Devices/rs522.o + .debug_macro 0x0000000000000000 0x3468 ./HW_Devices/rs522.o + .debug_macro 0x0000000000000000 0x174 ./HW_Devices/rs522.o + .debug_macro 0x0000000000000000 0x5c ./HW_Devices/rs522.o + .debug_macro 0x0000000000000000 0x5be ./HW_Devices/rs522.o + .debug_macro 0x0000000000000000 0x4d5 ./HW_Devices/rs522.o + .debug_macro 0x0000000000000000 0x1cb ./HW_Devices/rs522.o + .debug_macro 0x0000000000000000 0x114 ./HW_Devices/rs522.o + .debug_macro 0x0000000000000000 0x1ea ./HW_Devices/rs522.o + .debug_macro 0x0000000000000000 0x27 ./HW_Devices/rs522.o + .debug_macro 0x0000000000000000 0x144 ./HW_Devices/rs522.o + .debug_macro 0x0000000000000000 0x1bc ./HW_Devices/rs522.o + .debug_macro 0x0000000000000000 0x30 ./HW_Devices/rs522.o + .debug_macro 0x0000000000000000 0x3c ./HW_Devices/rs522.o + .debug_macro 0x0000000000000000 0x57 ./HW_Devices/rs522.o + .debug_macro 0x0000000000000000 0x88 ./HW_Devices/rs522.o + .debug_macro 0x0000000000000000 0x24f ./HW_Devices/rs522.o + .debug_macro 0x0000000000000000 0x356 ./HW_Devices/rs522.o + .debug_macro 0x0000000000000000 0x287 ./HW_Devices/rs522.o + .debug_macro 0x0000000000000000 0x141 ./HW_Devices/rs522.o + .debug_macro 0x0000000000000000 0x217 ./HW_Devices/rs522.o + .debug_macro 0x0000000000000000 0x8d1 ./HW_Devices/rs522.o + .debug_macro 0x0000000000000000 0xb5 ./HW_Devices/rs522.o + .debug_macro 0x0000000000000000 0xac ./HW_Devices/rs522.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 @@ -2973,7 +3301,7 @@ Discarded input sections .bss 0x0000000000000000 0x0 ./HW_Devices/touch.o .text.TP_XY 0x0000000000000000 0xbc ./HW_Devices/touch.o .debug_macro 0x0000000000000000 0xa9c ./HW_Devices/touch.o - .debug_macro 0x0000000000000000 0x221 ./HW_Devices/touch.o + .debug_macro 0x0000000000000000 0x227 ./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 @@ -3007,9 +3335,94 @@ Discarded input sections .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 0x217 ./HW_Devices/touch.o .debug_macro 0x0000000000000000 0x8d1 ./HW_Devices/touch.o .debug_macro 0x0000000000000000 0xb5 ./HW_Devices/touch.o - .debug_macro 0x0000000000000000 0x70 ./HW_Devices/touch.o + .debug_macro 0x0000000000000000 0xac ./HW_Devices/touch.o + .group 0x0000000000000000 0xc ./SW_APPs/APP_IDcard.o + .group 0x0000000000000000 0xc ./SW_APPs/APP_IDcard.o + .group 0x0000000000000000 0xc ./SW_APPs/APP_IDcard.o + .group 0x0000000000000000 0xc ./SW_APPs/APP_IDcard.o + .group 0x0000000000000000 0xc ./SW_APPs/APP_IDcard.o + .group 0x0000000000000000 0xc ./SW_APPs/APP_IDcard.o + .group 0x0000000000000000 0xc ./SW_APPs/APP_IDcard.o + .group 0x0000000000000000 0xc ./SW_APPs/APP_IDcard.o + .group 0x0000000000000000 0xc ./SW_APPs/APP_IDcard.o + .group 0x0000000000000000 0xc ./SW_APPs/APP_IDcard.o + .group 0x0000000000000000 0xc ./SW_APPs/APP_IDcard.o + .group 0x0000000000000000 0xc ./SW_APPs/APP_IDcard.o + .group 0x0000000000000000 0xc ./SW_APPs/APP_IDcard.o + .group 0x0000000000000000 0xc ./SW_APPs/APP_IDcard.o + .group 0x0000000000000000 0xc ./SW_APPs/APP_IDcard.o + .group 0x0000000000000000 0xc ./SW_APPs/APP_IDcard.o + .group 0x0000000000000000 0xc ./SW_APPs/APP_IDcard.o + .group 0x0000000000000000 0xc ./SW_APPs/APP_IDcard.o + .group 0x0000000000000000 0xc ./SW_APPs/APP_IDcard.o + .group 0x0000000000000000 0xc ./SW_APPs/APP_IDcard.o + .group 0x0000000000000000 0xc ./SW_APPs/APP_IDcard.o + .group 0x0000000000000000 0xc ./SW_APPs/APP_IDcard.o + .group 0x0000000000000000 0xc ./SW_APPs/APP_IDcard.o + .group 0x0000000000000000 0xc ./SW_APPs/APP_IDcard.o + .group 0x0000000000000000 0xc ./SW_APPs/APP_IDcard.o + .group 0x0000000000000000 0xc ./SW_APPs/APP_IDcard.o + .group 0x0000000000000000 0xc ./SW_APPs/APP_IDcard.o + .group 0x0000000000000000 0xc ./SW_APPs/APP_IDcard.o + .group 0x0000000000000000 0xc ./SW_APPs/APP_IDcard.o + .group 0x0000000000000000 0xc ./SW_APPs/APP_IDcard.o + .group 0x0000000000000000 0xc ./SW_APPs/APP_IDcard.o + .group 0x0000000000000000 0xc ./SW_APPs/APP_IDcard.o + .group 0x0000000000000000 0xc ./SW_APPs/APP_IDcard.o + .group 0x0000000000000000 0xc ./SW_APPs/APP_IDcard.o + .group 0x0000000000000000 0xc ./SW_APPs/APP_IDcard.o + .group 0x0000000000000000 0xc ./SW_APPs/APP_IDcard.o + .group 0x0000000000000000 0xc ./SW_APPs/APP_IDcard.o + .group 0x0000000000000000 0xc ./SW_APPs/APP_IDcard.o + .group 0x0000000000000000 0xc ./SW_APPs/APP_IDcard.o + .group 0x0000000000000000 0xc ./SW_APPs/APP_IDcard.o + .group 0x0000000000000000 0xc ./SW_APPs/APP_IDcard.o + .text 0x0000000000000000 0x0 ./SW_APPs/APP_IDcard.o + .data 0x0000000000000000 0x0 ./SW_APPs/APP_IDcard.o + .bss 0x0000000000000000 0x0 ./SW_APPs/APP_IDcard.o + .debug_macro 0x0000000000000000 0xa9c ./SW_APPs/APP_IDcard.o + .debug_macro 0x0000000000000000 0x227 ./SW_APPs/APP_IDcard.o + .debug_macro 0x0000000000000000 0x2e ./SW_APPs/APP_IDcard.o + .debug_macro 0x0000000000000000 0x22 ./SW_APPs/APP_IDcard.o + .debug_macro 0x0000000000000000 0x22 ./SW_APPs/APP_IDcard.o + .debug_macro 0x0000000000000000 0x8e ./SW_APPs/APP_IDcard.o + .debug_macro 0x0000000000000000 0x51 ./SW_APPs/APP_IDcard.o + .debug_macro 0x0000000000000000 0x103 ./SW_APPs/APP_IDcard.o + .debug_macro 0x0000000000000000 0x6a ./SW_APPs/APP_IDcard.o + .debug_macro 0x0000000000000000 0x1df ./SW_APPs/APP_IDcard.o + .debug_macro 0x0000000000000000 0x1c ./SW_APPs/APP_IDcard.o + .debug_macro 0x0000000000000000 0x22 ./SW_APPs/APP_IDcard.o + .debug_macro 0x0000000000000000 0xc3 ./SW_APPs/APP_IDcard.o + .debug_macro 0x0000000000000000 0xd23 ./SW_APPs/APP_IDcard.o + .debug_macro 0x0000000000000000 0xfd8c ./SW_APPs/APP_IDcard.o + .debug_macro 0x0000000000000000 0x6d ./SW_APPs/APP_IDcard.o + .debug_macro 0x0000000000000000 0x3468 ./SW_APPs/APP_IDcard.o + .debug_macro 0x0000000000000000 0x174 ./SW_APPs/APP_IDcard.o + .debug_macro 0x0000000000000000 0x5c ./SW_APPs/APP_IDcard.o + .debug_macro 0x0000000000000000 0x5be ./SW_APPs/APP_IDcard.o + .debug_macro 0x0000000000000000 0x4d5 ./SW_APPs/APP_IDcard.o + .debug_macro 0x0000000000000000 0x1cb ./SW_APPs/APP_IDcard.o + .debug_macro 0x0000000000000000 0x114 ./SW_APPs/APP_IDcard.o + .debug_macro 0x0000000000000000 0x1ea ./SW_APPs/APP_IDcard.o + .debug_macro 0x0000000000000000 0x27 ./SW_APPs/APP_IDcard.o + .debug_macro 0x0000000000000000 0x144 ./SW_APPs/APP_IDcard.o + .debug_macro 0x0000000000000000 0x1bc ./SW_APPs/APP_IDcard.o + .debug_macro 0x0000000000000000 0x30 ./SW_APPs/APP_IDcard.o + .debug_macro 0x0000000000000000 0x3c ./SW_APPs/APP_IDcard.o + .debug_macro 0x0000000000000000 0x57 ./SW_APPs/APP_IDcard.o + .debug_macro 0x0000000000000000 0x88 ./SW_APPs/APP_IDcard.o + .debug_macro 0x0000000000000000 0x24f ./SW_APPs/APP_IDcard.o + .debug_macro 0x0000000000000000 0x356 ./SW_APPs/APP_IDcard.o + .debug_macro 0x0000000000000000 0x287 ./SW_APPs/APP_IDcard.o + .debug_macro 0x0000000000000000 0x141 ./SW_APPs/APP_IDcard.o + .debug_macro 0x0000000000000000 0x217 ./SW_APPs/APP_IDcard.o + .debug_macro 0x0000000000000000 0x8d1 ./SW_APPs/APP_IDcard.o + .debug_macro 0x0000000000000000 0xb5 ./SW_APPs/APP_IDcard.o + .debug_macro 0x0000000000000000 0xac ./SW_APPs/APP_IDcard.o + .group 0x0000000000000000 0xc ./SW_APPs/APP_blood.o .group 0x0000000000000000 0xc ./SW_APPs/APP_blood.o .group 0x0000000000000000 0xc ./SW_APPs/APP_blood.o .group 0x0000000000000000 0xc ./SW_APPs/APP_blood.o @@ -3067,7 +3480,33 @@ Discarded input sections .text 0x0000000000000000 0x0 ./SW_APPs/APP_blood.o .data 0x0000000000000000 0x0 ./SW_APPs/APP_blood.o .bss 0x0000000000000000 0x0 ./SW_APPs/APP_blood.o + .text.Max30102_reset + 0x0000000000000000 0x20 ./SW_APPs/APP_blood.o + .text.MAX30102_Config + 0x0000000000000000 0xae ./SW_APPs/APP_blood.o + .text.APP_blood_init + 0x0000000000000000 0x40 ./SW_APPs/APP_blood.o + .rodata.XSinTbl + 0x0000000000000000 0x328 ./SW_APPs/APP_blood.o + .bss.g_blooddata + 0x0000000000000000 0x8 ./SW_APPs/APP_blood.o + .text.my_floor + 0x0000000000000000 0x6e ./SW_APPs/APP_blood.o + .text.my_fmod 0x0000000000000000 0xd4 ./SW_APPs/APP_blood.o + .text.XSin 0x0000000000000000 0x2b4 ./SW_APPs/APP_blood.o + .text.XCos 0x0000000000000000 0x40 ./SW_APPs/APP_blood.o .text.qsqrt 0x0000000000000000 0x68 ./SW_APPs/APP_blood.o + .text.EE 0x0000000000000000 0x84 ./SW_APPs/APP_blood.o + .text.FFT 0x0000000000000000 0x240 ./SW_APPs/APP_blood.o + .text.find_max_num_index + 0x0000000000000000 0x64 ./SW_APPs/APP_blood.o + .text.blood_data_translate + 0x0000000000000000 0x53c ./SW_APPs/APP_blood.o + .bss.get_data_lock + 0x0000000000000000 0x1 ./SW_APPs/APP_blood.o + .rodata 0x0000000000000000 0x3b ./SW_APPs/APP_blood.o + .text.APP_blood_loop + 0x0000000000000000 0x184 ./SW_APPs/APP_blood.o .debug_macro 0x0000000000000000 0xa9c ./SW_APPs/APP_blood.o .debug_macro 0x0000000000000000 0x22 ./SW_APPs/APP_blood.o .debug_macro 0x0000000000000000 0x4c ./SW_APPs/APP_blood.o @@ -3086,7 +3525,7 @@ Discarded input sections .debug_macro 0x0000000000000000 0x1c ./SW_APPs/APP_blood.o .debug_macro 0x0000000000000000 0x12a ./SW_APPs/APP_blood.o .debug_macro 0x0000000000000000 0x339 ./SW_APPs/APP_blood.o - .debug_macro 0x0000000000000000 0x221 ./SW_APPs/APP_blood.o + .debug_macro 0x0000000000000000 0x227 ./SW_APPs/APP_blood.o .debug_macro 0x0000000000000000 0x2e ./SW_APPs/APP_blood.o .debug_macro 0x0000000000000000 0x22 ./SW_APPs/APP_blood.o .debug_macro 0x0000000000000000 0x103 ./SW_APPs/APP_blood.o @@ -3114,9 +3553,13 @@ Discarded input sections .debug_macro 0x0000000000000000 0x356 ./SW_APPs/APP_blood.o .debug_macro 0x0000000000000000 0x287 ./SW_APPs/APP_blood.o .debug_macro 0x0000000000000000 0x141 ./SW_APPs/APP_blood.o + .debug_macro 0x0000000000000000 0x217 ./SW_APPs/APP_blood.o .debug_macro 0x0000000000000000 0x8d1 ./SW_APPs/APP_blood.o .debug_macro 0x0000000000000000 0xb5 ./SW_APPs/APP_blood.o - .debug_macro 0x0000000000000000 0x70 ./SW_APPs/APP_blood.o + .debug_macro 0x0000000000000000 0xac ./SW_APPs/APP_blood.o + .debug_macro 0x0000000000000000 0x391 ./SW_APPs/APP_blood.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 .group 0x0000000000000000 0xc ./SW_APPs/Main_APP.o @@ -3163,7 +3606,7 @@ Discarded input sections .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 0x221 ./SW_APPs/Main_APP.o + .debug_macro 0x0000000000000000 0x227 ./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 @@ -3197,11 +3640,13 @@ Discarded input sections .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 0x217 ./SW_APPs/Main_APP.o .debug_macro 0x0000000000000000 0x8d1 ./SW_APPs/Main_APP.o .debug_macro 0x0000000000000000 0xb5 ./SW_APPs/Main_APP.o - .debug_macro 0x0000000000000000 0x70 ./SW_APPs/Main_APP.o + .debug_macro 0x0000000000000000 0xac ./SW_APPs/Main_APP.o .debug_macro 0x0000000000000000 0x38b ./SW_APPs/Main_APP.o .debug_macro 0x0000000000000000 0x10 ./SW_APPs/Main_APP.o + .debug_macro 0x0000000000000000 0x24a ./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 @@ -3243,6 +3688,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 @@ -3253,7 +3699,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 0x221 ./SW_APPs/windows.o + .debug_macro 0x0000000000000000 0x227 ./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 @@ -3287,9 +3733,10 @@ Discarded input sections .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 0x217 ./SW_APPs/windows.o .debug_macro 0x0000000000000000 0x8d1 ./SW_APPs/windows.o .debug_macro 0x0000000000000000 0xb5 ./SW_APPs/windows.o - .debug_macro 0x0000000000000000 0x70 ./SW_APPs/windows.o + .debug_macro 0x0000000000000000 0xac ./SW_APPs/windows.o .debug_macro 0x0000000000000000 0x391 ./SW_APPs/windows.o .debug_macro 0x0000000000000000 0x28 ./SW_APPs/windows.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-errno.o) @@ -3543,12 +3990,25 @@ 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/libm.a(lib_a-wf_sqrt.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/libm.a(lib_a-wf_sqrt.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/libm.a(lib_a-wf_sqrt.o) + .text.sqrtf 0x0000000000000000 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/libm.a(lib_a-wf_sqrt.o) + .debug_frame 0x0000000000000000 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/libm.a(lib_a-wf_sqrt.o) + .ARM.attributes + 0x0000000000000000 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/libm.a(lib_a-wf_sqrt.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/libm.a(lib_a-ef_sqrt.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/libm.a(lib_a-ef_sqrt.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/libm.a(lib_a-ef_sqrt.o) + .text.__ieee754_sqrtf + 0x0000000000000000 0xa2 /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-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(lib_a-ef_sqrt.o) + .debug_frame 0x0000000000000000 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/libm.a(lib_a-ef_sqrt.o) + .ARM.attributes + 0x0000000000000000 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/libm.a(lib_a-ef_sqrt.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/libm.a(lib_a-s_lib_ver.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/libm.a(lib_a-s_lib_ver.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/libm.a(lib_a-s_lib_ver.o) + .data.__fdlib_version + 0x0000000000000000 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/libm.a(lib_a-s_lib_ver.o) + .ARM.attributes + 0x0000000000000000 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/libm.a(lib_a-s_lib_ver.o) .text 0x0000000000000000 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/thumb/v7-m/nofp/libgcc.a(_arm_muldf3.o) .data 0x0000000000000000 0x0 /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.macos64_2.0.0.202105311346/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/thumb/v7-m/nofp/libgcc.a(_arm_muldf3.o) .bss 0x0000000000000000 0x0 /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.macos64_2.0.0.202105311346/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/thumb/v7-m/nofp/libgcc.a(_arm_muldf3.o) @@ -3577,10 +4037,18 @@ Discarded input sections .bss 0x0000000000000000 0x0 /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.macos64_2.0.0.202105311346/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/thumb/v7-m/nofp/libgcc.a(_arm_addsubsf3.o) .data 0x0000000000000000 0x0 /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.macos64_2.0.0.202105311346/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/thumb/v7-m/nofp/libgcc.a(_arm_muldivsf3.o) .bss 0x0000000000000000 0x0 /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.macos64_2.0.0.202105311346/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/thumb/v7-m/nofp/libgcc.a(_arm_muldivsf3.o) + .text 0x0000000000000000 0xec /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.ide.mcu.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_cmpsf2.o) .data 0x0000000000000000 0x0 /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.macos64_2.0.0.202105311346/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/thumb/v7-m/nofp/libgcc.a(_arm_cmpsf2.o) .bss 0x0000000000000000 0x0 /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.macos64_2.0.0.202105311346/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/thumb/v7-m/nofp/libgcc.a(_arm_cmpsf2.o) + .debug_frame 0x0000000000000000 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/thumb/v7-m/nofp/libgcc.a(_arm_cmpsf2.o) + .ARM.attributes + 0x0000000000000000 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_cmpsf2.o) + .text 0x0000000000000000 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/thumb/v7-m/nofp/libgcc.a(_arm_unordsf2.o) .data 0x0000000000000000 0x0 /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.macos64_2.0.0.202105311346/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/thumb/v7-m/nofp/libgcc.a(_arm_unordsf2.o) .bss 0x0000000000000000 0x0 /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.macos64_2.0.0.202105311346/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/thumb/v7-m/nofp/libgcc.a(_arm_unordsf2.o) + .debug_frame 0x0000000000000000 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_unordsf2.o) + .ARM.attributes + 0x0000000000000000 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_unordsf2.o) .data 0x0000000000000000 0x0 /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.macos64_2.0.0.202105311346/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/thumb/v7-m/nofp/libgcc.a(_arm_fixsfsi.o) .bss 0x0000000000000000 0x0 /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.macos64_2.0.0.202105311346/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/thumb/v7-m/nofp/libgcc.a(_arm_fixsfsi.o) .text 0x0000000000000000 0x0 /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.macos64_2.0.0.202105311346/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/thumb/v7-m/nofp/crtend.o @@ -3624,6 +4092,7 @@ 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 +LOAD ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o LOAD ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_sram.o LOAD ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim.o LOAD ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim_ex.o @@ -3631,7 +4100,9 @@ LOAD ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_fsmc.o LOAD ./HW_Devices/LCD.o LOAD ./HW_Devices/eeprom.o LOAD ./HW_Devices/iic.o +LOAD ./HW_Devices/rs522.o LOAD ./HW_Devices/touch.o +LOAD ./SW_APPs/APP_IDcard.o LOAD ./SW_APPs/APP_blood.o LOAD ./SW_APPs/Main_APP.o LOAD ./SW_APPs/windows.o @@ -3666,7 +4137,7 @@ LOAD /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.id 0x0000000008000000 g_pfnVectors 0x00000000080001e4 . = ALIGN (0x4) -.text 0x00000000080001e8 0x9e38 +.text 0x00000000080001e8 0x9b40 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 @@ -3737,843 +4208,828 @@ LOAD /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.id 0x0000000008000e1c __aeabi_fmul 0x0000000008000f84 __divsf3 0x0000000008000f84 __aeabi_fdiv - .text 0x00000000080010bc 0xec /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.ide.mcu.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_cmpsf2.o) - 0x00000000080010bc __gesf2 - 0x00000000080010bc __gtsf2 - 0x00000000080010c4 __ltsf2 - 0x00000000080010c4 __lesf2 - 0x00000000080010cc __nesf2 - 0x00000000080010cc __eqsf2 - 0x00000000080010cc __cmpsf2 - 0x000000000800112c __aeabi_cfrcmple - 0x0000000008001134 __aeabi_cfcmpeq - 0x0000000008001134 __aeabi_cfcmple - 0x0000000008001144 __aeabi_fcmpeq - 0x0000000008001158 __aeabi_fcmplt - 0x000000000800116c __aeabi_fcmple - 0x0000000008001180 __aeabi_fcmpge - 0x0000000008001194 __aeabi_fcmpgt - .text 0x00000000080011a8 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/thumb/v7-m/nofp/libgcc.a(_arm_unordsf2.o) - 0x00000000080011a8 __aeabi_fcmpun - 0x00000000080011a8 __unordsf2 - .text 0x00000000080011d4 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_fixsfsi.o) - 0x00000000080011d4 __fixsfsi - 0x00000000080011d4 __aeabi_f2iz + .text 0x00000000080010bc 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_fixsfsi.o) + 0x00000000080010bc __fixsfsi + 0x00000000080010bc __aeabi_f2iz *(.text*) - .text.main 0x0000000008001220 0x22 ./Core/Src/main.o - 0x0000000008001220 main + .text.main 0x0000000008001108 0x26 ./Core/Src/main.o + 0x0000000008001108 main .text.SystemClock_Config - 0x0000000008001242 0x8a ./Core/Src/main.o - 0x0000000008001242 SystemClock_Config + 0x000000000800112e 0x8a ./Core/Src/main.o + 0x000000000800112e SystemClock_Config .text.MX_I2C2_Init - 0x00000000080012cc 0x5c ./Core/Src/main.o + 0x00000000080011b8 0x5c ./Core/Src/main.o + .text.MX_SPI1_Init + 0x0000000008001214 0x6c ./Core/Src/main.o .text.MX_TIM6_Init - 0x0000000008001328 0x6c ./Core/Src/main.o + 0x0000000008001280 0x6c ./Core/Src/main.o .text.MX_GPIO_Init - 0x0000000008001394 0x184 ./Core/Src/main.o + 0x00000000080012ec 0x1fc ./Core/Src/main.o .text.MX_FSMC_Init - 0x0000000008001518 0xc8 ./Core/Src/main.o + 0x00000000080014e8 0xc8 ./Core/Src/main.o .text.Error_Handler - 0x00000000080015e0 0xa ./Core/Src/main.o - 0x00000000080015e0 Error_Handler - *fill* 0x00000000080015ea 0x2 + 0x00000000080015b0 0xa ./Core/Src/main.o + 0x00000000080015b0 Error_Handler + *fill* 0x00000000080015ba 0x2 .text.HAL_MspInit - 0x00000000080015ec 0x64 ./Core/Src/stm32f1xx_hal_msp.o - 0x00000000080015ec HAL_MspInit + 0x00000000080015bc 0x64 ./Core/Src/stm32f1xx_hal_msp.o + 0x00000000080015bc HAL_MspInit .text.HAL_I2C_MspInit - 0x0000000008001650 0x80 ./Core/Src/stm32f1xx_hal_msp.o - 0x0000000008001650 HAL_I2C_MspInit + 0x0000000008001620 0x80 ./Core/Src/stm32f1xx_hal_msp.o + 0x0000000008001620 HAL_I2C_MspInit + .text.HAL_SPI_MspInit + 0x00000000080016a0 0x94 ./Core/Src/stm32f1xx_hal_msp.o + 0x00000000080016a0 HAL_SPI_MspInit .text.HAL_TIM_Base_MspInit - 0x00000000080016d0 0x4c ./Core/Src/stm32f1xx_hal_msp.o - 0x00000000080016d0 HAL_TIM_Base_MspInit + 0x0000000008001734 0x4c ./Core/Src/stm32f1xx_hal_msp.o + 0x0000000008001734 HAL_TIM_Base_MspInit .text.HAL_FSMC_MspInit - 0x000000000800171c 0xa8 ./Core/Src/stm32f1xx_hal_msp.o + 0x0000000008001780 0xa8 ./Core/Src/stm32f1xx_hal_msp.o .text.HAL_SRAM_MspInit - 0x00000000080017c4 0x14 ./Core/Src/stm32f1xx_hal_msp.o - 0x00000000080017c4 HAL_SRAM_MspInit + 0x0000000008001828 0x14 ./Core/Src/stm32f1xx_hal_msp.o + 0x0000000008001828 HAL_SRAM_MspInit .text.NMI_Handler - 0x00000000080017d8 0x6 ./Core/Src/stm32f1xx_it.o - 0x00000000080017d8 NMI_Handler + 0x000000000800183c 0x6 ./Core/Src/stm32f1xx_it.o + 0x000000000800183c NMI_Handler .text.HardFault_Handler - 0x00000000080017de 0x6 ./Core/Src/stm32f1xx_it.o - 0x00000000080017de HardFault_Handler + 0x0000000008001842 0x6 ./Core/Src/stm32f1xx_it.o + 0x0000000008001842 HardFault_Handler .text.MemManage_Handler - 0x00000000080017e4 0x6 ./Core/Src/stm32f1xx_it.o - 0x00000000080017e4 MemManage_Handler + 0x0000000008001848 0x6 ./Core/Src/stm32f1xx_it.o + 0x0000000008001848 MemManage_Handler .text.BusFault_Handler - 0x00000000080017ea 0x6 ./Core/Src/stm32f1xx_it.o - 0x00000000080017ea BusFault_Handler + 0x000000000800184e 0x6 ./Core/Src/stm32f1xx_it.o + 0x000000000800184e BusFault_Handler .text.UsageFault_Handler - 0x00000000080017f0 0x6 ./Core/Src/stm32f1xx_it.o - 0x00000000080017f0 UsageFault_Handler + 0x0000000008001854 0x6 ./Core/Src/stm32f1xx_it.o + 0x0000000008001854 UsageFault_Handler .text.SVC_Handler - 0x00000000080017f6 0xc ./Core/Src/stm32f1xx_it.o - 0x00000000080017f6 SVC_Handler + 0x000000000800185a 0xc ./Core/Src/stm32f1xx_it.o + 0x000000000800185a SVC_Handler .text.DebugMon_Handler - 0x0000000008001802 0xc ./Core/Src/stm32f1xx_it.o - 0x0000000008001802 DebugMon_Handler + 0x0000000008001866 0xc ./Core/Src/stm32f1xx_it.o + 0x0000000008001866 DebugMon_Handler .text.PendSV_Handler - 0x000000000800180e 0xc ./Core/Src/stm32f1xx_it.o - 0x000000000800180e PendSV_Handler + 0x0000000008001872 0xc ./Core/Src/stm32f1xx_it.o + 0x0000000008001872 PendSV_Handler .text.SysTick_Handler - 0x000000000800181a 0xc ./Core/Src/stm32f1xx_it.o - 0x000000000800181a SysTick_Handler - *fill* 0x0000000008001826 0x2 + 0x000000000800187e 0xc ./Core/Src/stm32f1xx_it.o + 0x000000000800187e SysTick_Handler + *fill* 0x000000000800188a 0x2 .text.TIM6_IRQHandler - 0x0000000008001828 0x14 ./Core/Src/stm32f1xx_it.o - 0x0000000008001828 TIM6_IRQHandler - .text._getpid 0x000000000800183c 0xe ./Core/Src/syscalls.o - 0x000000000800183c _getpid - .text._kill 0x000000000800184a 0x20 ./Core/Src/syscalls.o - 0x000000000800184a _kill - .text._exit 0x000000000800186a 0x14 ./Core/Src/syscalls.o - 0x000000000800186a _exit - .text._read 0x000000000800187e 0x3a ./Core/Src/syscalls.o - 0x000000000800187e _read - .text._write 0x00000000080018b8 0x38 ./Core/Src/syscalls.o - 0x00000000080018b8 _write - .text._close 0x00000000080018f0 0x16 ./Core/Src/syscalls.o - 0x00000000080018f0 _close - .text._fstat 0x0000000008001906 0x1e ./Core/Src/syscalls.o - 0x0000000008001906 _fstat - .text._isatty 0x0000000008001924 0x14 ./Core/Src/syscalls.o - 0x0000000008001924 _isatty - .text._lseek 0x0000000008001938 0x18 ./Core/Src/syscalls.o - 0x0000000008001938 _lseek - .text._sbrk 0x0000000008001950 0x6c ./Core/Src/sysmem.o - 0x0000000008001950 _sbrk + 0x000000000800188c 0x14 ./Core/Src/stm32f1xx_it.o + 0x000000000800188c TIM6_IRQHandler + .text._getpid 0x00000000080018a0 0xe ./Core/Src/syscalls.o + 0x00000000080018a0 _getpid + .text._kill 0x00000000080018ae 0x20 ./Core/Src/syscalls.o + 0x00000000080018ae _kill + .text._exit 0x00000000080018ce 0x14 ./Core/Src/syscalls.o + 0x00000000080018ce _exit + .text._read 0x00000000080018e2 0x3a ./Core/Src/syscalls.o + 0x00000000080018e2 _read + .text._write 0x000000000800191c 0x38 ./Core/Src/syscalls.o + 0x000000000800191c _write + .text._close 0x0000000008001954 0x16 ./Core/Src/syscalls.o + 0x0000000008001954 _close + .text._fstat 0x000000000800196a 0x1e ./Core/Src/syscalls.o + 0x000000000800196a _fstat + .text._isatty 0x0000000008001988 0x14 ./Core/Src/syscalls.o + 0x0000000008001988 _isatty + .text._lseek 0x000000000800199c 0x18 ./Core/Src/syscalls.o + 0x000000000800199c _lseek + .text._sbrk 0x00000000080019b4 0x6c ./Core/Src/sysmem.o + 0x00000000080019b4 _sbrk .text.SystemInit - 0x00000000080019bc 0xc ./Core/Src/system_stm32f1xx.o - 0x00000000080019bc SystemInit + 0x0000000008001a20 0xc ./Core/Src/system_stm32f1xx.o + 0x0000000008001a20 SystemInit .text.Reset_Handler - 0x00000000080019c8 0x48 ./Core/Startup/startup_stm32f103zetx.o - 0x00000000080019c8 Reset_Handler + 0x0000000008001a2c 0x48 ./Core/Startup/startup_stm32f103zetx.o + 0x0000000008001a2c Reset_Handler .text.Default_Handler - 0x0000000008001a10 0x2 ./Core/Startup/startup_stm32f103zetx.o - 0x0000000008001a10 DMA2_Channel3_IRQHandler - 0x0000000008001a10 EXTI2_IRQHandler - 0x0000000008001a10 TIM8_TRG_COM_IRQHandler - 0x0000000008001a10 TIM8_CC_IRQHandler - 0x0000000008001a10 TIM1_CC_IRQHandler - 0x0000000008001a10 PVD_IRQHandler - 0x0000000008001a10 SDIO_IRQHandler - 0x0000000008001a10 EXTI3_IRQHandler - 0x0000000008001a10 EXTI0_IRQHandler - 0x0000000008001a10 I2C2_EV_IRQHandler - 0x0000000008001a10 ADC1_2_IRQHandler - 0x0000000008001a10 SPI1_IRQHandler - 0x0000000008001a10 TAMPER_IRQHandler - 0x0000000008001a10 TIM8_UP_IRQHandler - 0x0000000008001a10 DMA2_Channel2_IRQHandler - 0x0000000008001a10 DMA1_Channel4_IRQHandler - 0x0000000008001a10 USART3_IRQHandler - 0x0000000008001a10 RTC_IRQHandler - 0x0000000008001a10 DMA1_Channel7_IRQHandler - 0x0000000008001a10 CAN1_RX1_IRQHandler - 0x0000000008001a10 UART5_IRQHandler - 0x0000000008001a10 ADC3_IRQHandler - 0x0000000008001a10 TIM4_IRQHandler - 0x0000000008001a10 DMA2_Channel1_IRQHandler - 0x0000000008001a10 I2C1_EV_IRQHandler - 0x0000000008001a10 DMA1_Channel6_IRQHandler - 0x0000000008001a10 UART4_IRQHandler - 0x0000000008001a10 TIM3_IRQHandler - 0x0000000008001a10 RCC_IRQHandler - 0x0000000008001a10 TIM1_TRG_COM_IRQHandler - 0x0000000008001a10 DMA1_Channel1_IRQHandler - 0x0000000008001a10 Default_Handler - 0x0000000008001a10 EXTI15_10_IRQHandler - 0x0000000008001a10 TIM7_IRQHandler - 0x0000000008001a10 TIM5_IRQHandler - 0x0000000008001a10 EXTI9_5_IRQHandler - 0x0000000008001a10 SPI2_IRQHandler - 0x0000000008001a10 DMA1_Channel5_IRQHandler - 0x0000000008001a10 EXTI4_IRQHandler - 0x0000000008001a10 USB_LP_CAN1_RX0_IRQHandler - 0x0000000008001a10 USB_HP_CAN1_TX_IRQHandler - 0x0000000008001a10 DMA1_Channel3_IRQHandler - 0x0000000008001a10 FSMC_IRQHandler - 0x0000000008001a10 TIM1_UP_IRQHandler - 0x0000000008001a10 WWDG_IRQHandler - 0x0000000008001a10 TIM2_IRQHandler - 0x0000000008001a10 TIM1_BRK_IRQHandler - 0x0000000008001a10 EXTI1_IRQHandler - 0x0000000008001a10 DMA2_Channel4_5_IRQHandler - 0x0000000008001a10 USART2_IRQHandler - 0x0000000008001a10 I2C2_ER_IRQHandler - 0x0000000008001a10 DMA1_Channel2_IRQHandler - 0x0000000008001a10 TIM8_BRK_IRQHandler - 0x0000000008001a10 CAN1_SCE_IRQHandler - 0x0000000008001a10 FLASH_IRQHandler - 0x0000000008001a10 USART1_IRQHandler - 0x0000000008001a10 SPI3_IRQHandler - 0x0000000008001a10 I2C1_ER_IRQHandler - 0x0000000008001a10 USBWakeUp_IRQHandler - 0x0000000008001a10 RTC_Alarm_IRQHandler - *fill* 0x0000000008001a12 0x2 + 0x0000000008001a74 0x2 ./Core/Startup/startup_stm32f103zetx.o + 0x0000000008001a74 DMA2_Channel3_IRQHandler + 0x0000000008001a74 EXTI2_IRQHandler + 0x0000000008001a74 TIM8_TRG_COM_IRQHandler + 0x0000000008001a74 TIM8_CC_IRQHandler + 0x0000000008001a74 TIM1_CC_IRQHandler + 0x0000000008001a74 PVD_IRQHandler + 0x0000000008001a74 SDIO_IRQHandler + 0x0000000008001a74 EXTI3_IRQHandler + 0x0000000008001a74 EXTI0_IRQHandler + 0x0000000008001a74 I2C2_EV_IRQHandler + 0x0000000008001a74 ADC1_2_IRQHandler + 0x0000000008001a74 SPI1_IRQHandler + 0x0000000008001a74 TAMPER_IRQHandler + 0x0000000008001a74 TIM8_UP_IRQHandler + 0x0000000008001a74 DMA2_Channel2_IRQHandler + 0x0000000008001a74 DMA1_Channel4_IRQHandler + 0x0000000008001a74 USART3_IRQHandler + 0x0000000008001a74 RTC_IRQHandler + 0x0000000008001a74 DMA1_Channel7_IRQHandler + 0x0000000008001a74 CAN1_RX1_IRQHandler + 0x0000000008001a74 UART5_IRQHandler + 0x0000000008001a74 ADC3_IRQHandler + 0x0000000008001a74 TIM4_IRQHandler + 0x0000000008001a74 DMA2_Channel1_IRQHandler + 0x0000000008001a74 I2C1_EV_IRQHandler + 0x0000000008001a74 DMA1_Channel6_IRQHandler + 0x0000000008001a74 UART4_IRQHandler + 0x0000000008001a74 TIM3_IRQHandler + 0x0000000008001a74 RCC_IRQHandler + 0x0000000008001a74 TIM1_TRG_COM_IRQHandler + 0x0000000008001a74 DMA1_Channel1_IRQHandler + 0x0000000008001a74 Default_Handler + 0x0000000008001a74 EXTI15_10_IRQHandler + 0x0000000008001a74 TIM7_IRQHandler + 0x0000000008001a74 TIM5_IRQHandler + 0x0000000008001a74 EXTI9_5_IRQHandler + 0x0000000008001a74 SPI2_IRQHandler + 0x0000000008001a74 DMA1_Channel5_IRQHandler + 0x0000000008001a74 EXTI4_IRQHandler + 0x0000000008001a74 USB_LP_CAN1_RX0_IRQHandler + 0x0000000008001a74 USB_HP_CAN1_TX_IRQHandler + 0x0000000008001a74 DMA1_Channel3_IRQHandler + 0x0000000008001a74 FSMC_IRQHandler + 0x0000000008001a74 TIM1_UP_IRQHandler + 0x0000000008001a74 WWDG_IRQHandler + 0x0000000008001a74 TIM2_IRQHandler + 0x0000000008001a74 TIM1_BRK_IRQHandler + 0x0000000008001a74 EXTI1_IRQHandler + 0x0000000008001a74 DMA2_Channel4_5_IRQHandler + 0x0000000008001a74 USART2_IRQHandler + 0x0000000008001a74 I2C2_ER_IRQHandler + 0x0000000008001a74 DMA1_Channel2_IRQHandler + 0x0000000008001a74 TIM8_BRK_IRQHandler + 0x0000000008001a74 CAN1_SCE_IRQHandler + 0x0000000008001a74 FLASH_IRQHandler + 0x0000000008001a74 USART1_IRQHandler + 0x0000000008001a74 SPI3_IRQHandler + 0x0000000008001a74 I2C1_ER_IRQHandler + 0x0000000008001a74 USBWakeUp_IRQHandler + 0x0000000008001a74 RTC_Alarm_IRQHandler + *fill* 0x0000000008001a76 0x2 .text.HAL_Init - 0x0000000008001a14 0x2c ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.o - 0x0000000008001a14 HAL_Init + 0x0000000008001a78 0x2c ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.o + 0x0000000008001a78 HAL_Init .text.HAL_InitTick - 0x0000000008001a40 0x60 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.o - 0x0000000008001a40 HAL_InitTick + 0x0000000008001aa4 0x60 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.o + 0x0000000008001aa4 HAL_InitTick .text.HAL_IncTick - 0x0000000008001aa0 0x24 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.o - 0x0000000008001aa0 HAL_IncTick + 0x0000000008001b04 0x24 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.o + 0x0000000008001b04 HAL_IncTick .text.HAL_GetTick - 0x0000000008001ac4 0x14 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.o - 0x0000000008001ac4 HAL_GetTick + 0x0000000008001b28 0x14 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.o + 0x0000000008001b28 HAL_GetTick .text.HAL_Delay - 0x0000000008001ad8 0x48 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.o - 0x0000000008001ad8 HAL_Delay + 0x0000000008001b3c 0x48 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.o + 0x0000000008001b3c HAL_Delay .text.__NVIC_SetPriorityGrouping - 0x0000000008001b20 0x48 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.o + 0x0000000008001b84 0x48 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.o .text.__NVIC_GetPriorityGrouping - 0x0000000008001b68 0x1c ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.o + 0x0000000008001bcc 0x1c ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.o .text.__NVIC_EnableIRQ - 0x0000000008001b84 0x38 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.o + 0x0000000008001be8 0x38 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.o .text.__NVIC_SetPriority - 0x0000000008001bbc 0x54 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.o + 0x0000000008001c20 0x54 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.o .text.NVIC_EncodePriority - 0x0000000008001c10 0x64 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.o + 0x0000000008001c74 0x64 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.o .text.SysTick_Config - 0x0000000008001c74 0x44 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.o + 0x0000000008001cd8 0x44 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.o .text.HAL_NVIC_SetPriorityGrouping - 0x0000000008001cb8 0x16 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.o - 0x0000000008001cb8 HAL_NVIC_SetPriorityGrouping + 0x0000000008001d1c 0x16 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.o + 0x0000000008001d1c HAL_NVIC_SetPriorityGrouping .text.HAL_NVIC_SetPriority - 0x0000000008001cce 0x38 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.o - 0x0000000008001cce HAL_NVIC_SetPriority + 0x0000000008001d32 0x38 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.o + 0x0000000008001d32 HAL_NVIC_SetPriority .text.HAL_NVIC_EnableIRQ - 0x0000000008001d06 0x1c ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.o - 0x0000000008001d06 HAL_NVIC_EnableIRQ + 0x0000000008001d6a 0x1c ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.o + 0x0000000008001d6a HAL_NVIC_EnableIRQ .text.HAL_SYSTICK_Config - 0x0000000008001d22 0x18 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.o - 0x0000000008001d22 HAL_SYSTICK_Config - *fill* 0x0000000008001d3a 0x2 + 0x0000000008001d86 0x18 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.o + 0x0000000008001d86 HAL_SYSTICK_Config + *fill* 0x0000000008001d9e 0x2 .text.HAL_GPIO_Init - 0x0000000008001d3c 0x328 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio.o - 0x0000000008001d3c HAL_GPIO_Init + 0x0000000008001da0 0x328 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio.o + 0x0000000008001da0 HAL_GPIO_Init .text.HAL_GPIO_ReadPin - 0x0000000008002064 0x2e ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio.o - 0x0000000008002064 HAL_GPIO_ReadPin + 0x00000000080020c8 0x2e ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio.o + 0x00000000080020c8 HAL_GPIO_ReadPin .text.HAL_GPIO_WritePin - 0x0000000008002092 0x30 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio.o - 0x0000000008002092 HAL_GPIO_WritePin - *fill* 0x00000000080020c2 0x2 + 0x00000000080020f6 0x30 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio.o + 0x00000000080020f6 HAL_GPIO_WritePin + *fill* 0x0000000008002126 0x2 .text.HAL_I2C_Init - 0x00000000080020c4 0x288 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o - 0x00000000080020c4 HAL_I2C_Init + 0x0000000008002128 0x288 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + 0x0000000008002128 HAL_I2C_Init .text.HAL_I2C_Mem_Write - 0x000000000800234c 0x1f4 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o - 0x000000000800234c HAL_I2C_Mem_Write + 0x00000000080023b0 0x1f4 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + 0x00000000080023b0 HAL_I2C_Mem_Write .text.HAL_I2C_Mem_Read - 0x0000000008002540 0x4d0 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o - 0x0000000008002540 HAL_I2C_Mem_Read + 0x00000000080025a4 0x4d0 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + 0x00000000080025a4 HAL_I2C_Mem_Read .text.I2C_RequestMemoryWrite - 0x0000000008002a10 0x12c ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + 0x0000000008002a74 0x12c ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o .text.I2C_RequestMemoryRead - 0x0000000008002b3c 0x1d0 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + 0x0000000008002ba0 0x1d0 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o .text.I2C_WaitOnFlagUntilTimeout - 0x0000000008002d0c 0xae ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + 0x0000000008002d70 0xae ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o .text.I2C_WaitOnMasterAddressFlagUntilTimeout - 0x0000000008002dba 0xfe ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + 0x0000000008002e1e 0xfe ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o .text.I2C_WaitOnTXEFlagUntilTimeout - 0x0000000008002eb8 0x82 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + 0x0000000008002f1c 0x82 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o .text.I2C_WaitOnBTFFlagUntilTimeout - 0x0000000008002f3a 0x82 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + 0x0000000008002f9e 0x82 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o .text.I2C_WaitOnRXNEFlagUntilTimeout - 0x0000000008002fbc 0xac ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + 0x0000000008003020 0xac ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o .text.I2C_IsAcknowledgeFailed - 0x0000000008003068 0x5c ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + 0x00000000080030cc 0x5c ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o .text.HAL_RCC_OscConfig - 0x00000000080030c4 0x500 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.o - 0x00000000080030c4 HAL_RCC_OscConfig + 0x0000000008003128 0x500 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.o + 0x0000000008003128 HAL_RCC_OscConfig .text.HAL_RCC_ClockConfig - 0x00000000080035c4 0x1d4 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.o - 0x00000000080035c4 HAL_RCC_ClockConfig + 0x0000000008003628 0x1d4 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.o + 0x0000000008003628 HAL_RCC_ClockConfig .text.HAL_RCC_GetSysClockFreq - 0x0000000008003798 0xc0 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.o - 0x0000000008003798 HAL_RCC_GetSysClockFreq + 0x00000000080037fc 0xc0 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.o + 0x00000000080037fc HAL_RCC_GetSysClockFreq .text.HAL_RCC_GetHCLKFreq - 0x0000000008003858 0x14 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.o - 0x0000000008003858 HAL_RCC_GetHCLKFreq + 0x00000000080038bc 0x14 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.o + 0x00000000080038bc HAL_RCC_GetHCLKFreq .text.HAL_RCC_GetPCLK1Freq - 0x000000000800386c 0x28 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.o - 0x000000000800386c HAL_RCC_GetPCLK1Freq + 0x00000000080038d0 0x28 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.o + 0x00000000080038d0 HAL_RCC_GetPCLK1Freq .text.RCC_Delay - 0x0000000008003894 0x3c ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.o + 0x00000000080038f8 0x3c ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.o + .text.HAL_SPI_Init + 0x0000000008003934 0x108 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o + 0x0000000008003934 HAL_SPI_Init + .text.HAL_SPI_Transmit + 0x0000000008003a3c 0x278 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o + 0x0000000008003a3c HAL_SPI_Transmit + .text.HAL_SPI_Receive + 0x0000000008003cb4 0x222 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o + 0x0000000008003cb4 HAL_SPI_Receive + .text.HAL_SPI_TransmitReceive + 0x0000000008003ed6 0x344 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o + 0x0000000008003ed6 HAL_SPI_TransmitReceive + *fill* 0x000000000800421a 0x2 + .text.SPI_WaitFlagStateUntilTimeout + 0x000000000800421c 0x110 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o + .text.SPI_EndRxTransaction + 0x000000000800432c 0xa4 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o + .text.SPI_EndRxTxTransaction + 0x00000000080043d0 0x3c ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o .text.HAL_SRAM_Init - 0x00000000080038d0 0x9a ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_sram.o - 0x00000000080038d0 HAL_SRAM_Init + 0x000000000800440c 0x9a ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_sram.o + 0x000000000800440c HAL_SRAM_Init .text.HAL_TIM_Base_Init - 0x000000000800396a 0x9e ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim.o - 0x000000000800396a HAL_TIM_Base_Init - .text.HAL_TIM_Base_Start_IT - 0x0000000008003a08 0xc0 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim.o - 0x0000000008003a08 HAL_TIM_Base_Start_IT + 0x00000000080044a6 0x9e ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim.o + 0x00000000080044a6 HAL_TIM_Base_Init .text.HAL_TIM_Base_Stop_IT - 0x0000000008003ac8 0x5c ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim.o - 0x0000000008003ac8 HAL_TIM_Base_Stop_IT + 0x0000000008004544 0x5c ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim.o + 0x0000000008004544 HAL_TIM_Base_Stop_IT .text.HAL_TIM_IRQHandler - 0x0000000008003b24 0x210 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim.o - 0x0000000008003b24 HAL_TIM_IRQHandler + 0x00000000080045a0 0x210 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim.o + 0x00000000080045a0 HAL_TIM_IRQHandler .text.HAL_TIM_OC_DelayElapsedCallback - 0x0000000008003d34 0x12 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim.o - 0x0000000008003d34 HAL_TIM_OC_DelayElapsedCallback + 0x00000000080047b0 0x12 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim.o + 0x00000000080047b0 HAL_TIM_OC_DelayElapsedCallback .text.HAL_TIM_IC_CaptureCallback - 0x0000000008003d46 0x12 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim.o - 0x0000000008003d46 HAL_TIM_IC_CaptureCallback + 0x00000000080047c2 0x12 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim.o + 0x00000000080047c2 HAL_TIM_IC_CaptureCallback .text.HAL_TIM_PWM_PulseFinishedCallback - 0x0000000008003d58 0x12 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim.o - 0x0000000008003d58 HAL_TIM_PWM_PulseFinishedCallback + 0x00000000080047d4 0x12 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim.o + 0x00000000080047d4 HAL_TIM_PWM_PulseFinishedCallback .text.HAL_TIM_TriggerCallback - 0x0000000008003d6a 0x12 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim.o - 0x0000000008003d6a HAL_TIM_TriggerCallback + 0x00000000080047e6 0x12 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim.o + 0x00000000080047e6 HAL_TIM_TriggerCallback .text.TIM_Base_SetConfig - 0x0000000008003d7c 0xf4 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim.o - 0x0000000008003d7c TIM_Base_SetConfig + 0x00000000080047f8 0xf4 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim.o + 0x00000000080047f8 TIM_Base_SetConfig .text.HAL_TIMEx_MasterConfigSynchronization - 0x0000000008003e70 0xd8 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim_ex.o - 0x0000000008003e70 HAL_TIMEx_MasterConfigSynchronization + 0x00000000080048ec 0xd8 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim_ex.o + 0x00000000080048ec HAL_TIMEx_MasterConfigSynchronization .text.HAL_TIMEx_CommutCallback - 0x0000000008003f48 0x12 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim_ex.o - 0x0000000008003f48 HAL_TIMEx_CommutCallback + 0x00000000080049c4 0x12 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim_ex.o + 0x00000000080049c4 HAL_TIMEx_CommutCallback .text.HAL_TIMEx_BreakCallback - 0x0000000008003f5a 0x12 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim_ex.o - 0x0000000008003f5a HAL_TIMEx_BreakCallback + 0x00000000080049d6 0x12 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim_ex.o + 0x00000000080049d6 HAL_TIMEx_BreakCallback .text.FSMC_NORSRAM_Init - 0x0000000008003f6c 0xd4 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_fsmc.o - 0x0000000008003f6c FSMC_NORSRAM_Init + 0x00000000080049e8 0xd4 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_fsmc.o + 0x00000000080049e8 FSMC_NORSRAM_Init .text.FSMC_NORSRAM_Timing_Init - 0x0000000008004040 0x68 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_fsmc.o - 0x0000000008004040 FSMC_NORSRAM_Timing_Init + 0x0000000008004abc 0x68 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_fsmc.o + 0x0000000008004abc FSMC_NORSRAM_Timing_Init .text.FSMC_NORSRAM_Extended_Timing_Init - 0x00000000080040a8 0x70 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_fsmc.o - 0x00000000080040a8 FSMC_NORSRAM_Extended_Timing_Init + 0x0000000008004b24 0x70 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_fsmc.o + 0x0000000008004b24 FSMC_NORSRAM_Extended_Timing_Init .text.LCD_WR_REG - 0x0000000008004118 0x1c ./HW_Devices/LCD.o - 0x0000000008004118 LCD_WR_REG + 0x0000000008004b94 0x1c ./HW_Devices/LCD.o + 0x0000000008004b94 LCD_WR_REG .text.LCD_WR_DATA - 0x0000000008004134 0x20 ./HW_Devices/LCD.o - 0x0000000008004134 LCD_WR_DATA + 0x0000000008004bb0 0x20 ./HW_Devices/LCD.o + 0x0000000008004bb0 LCD_WR_DATA .text.LCD_WriteReg - 0x0000000008004154 0x2c ./HW_Devices/LCD.o - 0x0000000008004154 LCD_WriteReg + 0x0000000008004bd0 0x2c ./HW_Devices/LCD.o + 0x0000000008004bd0 LCD_WriteReg .text.LCD_ReadReg - 0x0000000008004180 0x28 ./HW_Devices/LCD.o - 0x0000000008004180 LCD_ReadReg + 0x0000000008004bfc 0x28 ./HW_Devices/LCD.o + 0x0000000008004bfc LCD_ReadReg .text.LCD_Scan_Dir - 0x00000000080041a8 0x2dc ./HW_Devices/LCD.o - 0x00000000080041a8 LCD_Scan_Dir + 0x0000000008004c24 0x2dc ./HW_Devices/LCD.o + 0x0000000008004c24 LCD_Scan_Dir .text.LCD_Display_Dir - 0x0000000008004484 0x18c ./HW_Devices/LCD.o - 0x0000000008004484 LCD_Display_Dir + 0x0000000008004f00 0x18c ./HW_Devices/LCD.o + 0x0000000008004f00 LCD_Display_Dir .text.LCDx_Init - 0x0000000008004610 0x1ec ./HW_Devices/LCD.o - 0x0000000008004610 LCDx_Init + 0x000000000800508c 0x1ec ./HW_Devices/LCD.o + 0x000000000800508c LCDx_Init .text.LCD_SetCursor - 0x00000000080047fc 0x120 ./HW_Devices/LCD.o - 0x00000000080047fc LCD_SetCursor + 0x0000000008005278 0x120 ./HW_Devices/LCD.o + 0x0000000008005278 LCD_SetCursor .text.LCD_set_dot - 0x000000000800491c 0x40 ./HW_Devices/LCD.o - 0x000000000800491c LCD_set_dot + 0x0000000008005398 0x40 ./HW_Devices/LCD.o + 0x0000000008005398 LCD_set_dot .text.LCD_Clear - 0x000000000800495c 0xa4 ./HW_Devices/LCD.o - 0x000000000800495c LCD_Clear + 0x00000000080053d8 0xa4 ./HW_Devices/LCD.o + 0x00000000080053d8 LCD_Clear .text.LCD_DrawLine - 0x0000000008004a00 0x10a ./HW_Devices/LCD.o - 0x0000000008004a00 LCD_DrawLine + 0x000000000800547c 0x10a ./HW_Devices/LCD.o + 0x000000000800547c LCD_DrawLine .text.Draw_Circle - 0x0000000008004b0a 0x156 ./HW_Devices/LCD.o - 0x0000000008004b0a Draw_Circle + 0x0000000008005586 0x156 ./HW_Devices/LCD.o + 0x0000000008005586 Draw_Circle .text.LCD_ShowChar - 0x0000000008004c60 0xf8 ./HW_Devices/LCD.o - 0x0000000008004c60 LCD_ShowChar + 0x00000000080056dc 0xf8 ./HW_Devices/LCD.o + 0x00000000080056dc LCD_ShowChar .text.LCD_ShowString - 0x0000000008004d58 0x7c ./HW_Devices/LCD.o - 0x0000000008004d58 LCD_ShowString + 0x00000000080057d4 0x7c ./HW_Devices/LCD.o + 0x00000000080057d4 LCD_ShowString .text.EPPROM_SLOWWRITE_INIT - 0x0000000008004dd4 0x34 ./HW_Devices/eeprom.o - 0x0000000008004dd4 EPPROM_SLOWWRITE_INIT + 0x0000000008005850 0x34 ./HW_Devices/eeprom.o + 0x0000000008005850 EPPROM_SLOWWRITE_INIT .text.EEPROM_SLOWWRITE_SERVER - 0x0000000008004e08 0x8c ./HW_Devices/eeprom.o - 0x0000000008004e08 EEPROM_SLOWWRITE_SERVER + 0x0000000008005884 0x8c ./HW_Devices/eeprom.o + 0x0000000008005884 EEPROM_SLOWWRITE_SERVER .text.EEPROM_READ_BATY - 0x0000000008004e94 0x24 ./HW_Devices/eeprom.o - 0x0000000008004e94 EEPROM_READ_BATY + 0x0000000008005910 0x24 ./HW_Devices/eeprom.o + 0x0000000008005910 EEPROM_READ_BATY .text.EEPROM_WRITE_BATY - 0x0000000008004eb8 0x8c ./HW_Devices/eeprom.o - 0x0000000008004eb8 EEPROM_WRITE_BATY + 0x0000000008005934 0x8c ./HW_Devices/eeprom.o + 0x0000000008005934 EEPROM_WRITE_BATY .text.IIC_SAND_DATE - 0x0000000008004f44 0x3c ./HW_Devices/iic.o - 0x0000000008004f44 IIC_SAND_DATE + 0x00000000080059c0 0x3c ./HW_Devices/iic.o + 0x00000000080059c0 IIC_SAND_DATE .text.IIC_READ_DATE - 0x0000000008004f80 0x3c ./HW_Devices/iic.o - 0x0000000008004f80 IIC_READ_DATE + 0x00000000080059fc 0x3c ./HW_Devices/iic.o + 0x00000000080059fc IIC_READ_DATE + .text.ReadRawRC + 0x0000000008005a38 0x64 ./HW_Devices/rs522.o + 0x0000000008005a38 ReadRawRC + .text.WriteRawRC + 0x0000000008005a9c 0x5c ./HW_Devices/rs522.o + 0x0000000008005a9c WriteRawRC + .text.SetBitMask + 0x0000000008005af8 0x36 ./HW_Devices/rs522.o + 0x0000000008005af8 SetBitMask + .text.ClearBitMask + 0x0000000008005b2e 0x40 ./HW_Devices/rs522.o + 0x0000000008005b2e ClearBitMask + .text.PcdAntennaOn + 0x0000000008005b6e 0x2a ./HW_Devices/rs522.o + 0x0000000008005b6e PcdAntennaOn + .text.PcdReset + 0x0000000008005b98 0x5e ./HW_Devices/rs522.o + 0x0000000008005b98 PcdReset + .text.M500PcdConfigISOType + 0x0000000008005bf6 0x62 ./HW_Devices/rs522.o + 0x0000000008005bf6 M500PcdConfigISOType + .text.RC522_Init + 0x0000000008005c58 0x12 ./HW_Devices/rs522.o + 0x0000000008005c58 RC522_Init + *fill* 0x0000000008005c6a 0x2 .text.TP_Write_Byte - 0x0000000008004fbc 0x6c ./HW_Devices/touch.o - 0x0000000008004fbc TP_Write_Byte + 0x0000000008005c6c 0x6c ./HW_Devices/touch.o + 0x0000000008005c6c TP_Write_Byte .text.TP_Read_AD - 0x0000000008005028 0xc8 ./HW_Devices/touch.o - 0x0000000008005028 TP_Read_AD + 0x0000000008005cd8 0xc8 ./HW_Devices/touch.o + 0x0000000008005cd8 TP_Read_AD .text.TP_Read_XOY - 0x00000000080050f0 0x104 ./HW_Devices/touch.o - 0x00000000080050f0 TP_Read_XOY + 0x0000000008005da0 0x104 ./HW_Devices/touch.o + 0x0000000008005da0 TP_Read_XOY .text.TP_Read_XY_ADC - 0x00000000080051f4 0x32 ./HW_Devices/touch.o - 0x00000000080051f4 TP_Read_XY_ADC + 0x0000000008005ea4 0x32 ./HW_Devices/touch.o + 0x0000000008005ea4 TP_Read_XY_ADC .text.TP_Read_XY2 - 0x0000000008005226 0xd0 ./HW_Devices/touch.o - 0x0000000008005226 TP_Read_XY2 - *fill* 0x00000000080052f6 0x2 + 0x0000000008005ed6 0xd0 ./HW_Devices/touch.o + 0x0000000008005ed6 TP_Read_XY2 + *fill* 0x0000000008005fa6 0x2 .text.TP_Server - 0x00000000080052f8 0xf0 ./HW_Devices/touch.o - 0x00000000080052f8 TP_Server + 0x0000000008005fa8 0xf0 ./HW_Devices/touch.o + 0x0000000008005fa8 TP_Server .text.TP_DrwaTrage - 0x00000000080053e8 0xb8 ./HW_Devices/touch.o - 0x00000000080053e8 TP_DrwaTrage + 0x0000000008006098 0xb8 ./HW_Devices/touch.o + 0x0000000008006098 TP_DrwaTrage .text.TP_adjustment - 0x00000000080054a0 0x594 ./HW_Devices/touch.o - 0x00000000080054a0 TP_adjustment - .text.Max30102_reset - 0x0000000008005a34 0x20 ./SW_APPs/APP_blood.o - 0x0000000008005a34 Max30102_reset - .text.MAX30102_Config - 0x0000000008005a54 0xae ./SW_APPs/APP_blood.o - 0x0000000008005a54 MAX30102_Config - *fill* 0x0000000008005b02 0x2 + 0x0000000008006150 0x5c4 ./HW_Devices/touch.o + 0x0000000008006150 TP_adjustment + .text.APP_IDcard_init + 0x0000000008006714 0x20 ./SW_APPs/APP_IDcard.o + 0x0000000008006714 APP_IDcard_init + .text.APP_IDcard_loop + 0x0000000008006734 0xc ./SW_APPs/APP_IDcard.o + 0x0000000008006734 APP_IDcard_loop .text.max30102_read_fifo - 0x0000000008005b04 0x100 ./SW_APPs/APP_blood.o - 0x0000000008005b04 max30102_read_fifo - .text.APP_blood_init - 0x0000000008005c04 0x40 ./SW_APPs/APP_blood.o - 0x0000000008005c04 APP_blood_init - .text.my_floor - 0x0000000008005c44 0x6e ./SW_APPs/APP_blood.o - 0x0000000008005c44 my_floor - .text.my_fmod 0x0000000008005cb2 0xd4 ./SW_APPs/APP_blood.o - 0x0000000008005cb2 my_fmod - *fill* 0x0000000008005d86 0x2 - .text.XSin 0x0000000008005d88 0x2b4 ./SW_APPs/APP_blood.o - 0x0000000008005d88 XSin - *fill* 0x000000000800603c 0x4 - .text.XCos 0x0000000008006040 0x40 ./SW_APPs/APP_blood.o - 0x0000000008006040 XCos - .text.EE 0x0000000008006080 0x84 ./SW_APPs/APP_blood.o - 0x0000000008006080 EE - *fill* 0x0000000008006104 0x4 - .text.FFT 0x0000000008006108 0x240 ./SW_APPs/APP_blood.o - 0x0000000008006108 FFT - .text.find_max_num_index - 0x0000000008006348 0x64 ./SW_APPs/APP_blood.o - 0x0000000008006348 find_max_num_index - *fill* 0x00000000080063ac 0x4 - .text.blood_data_translate - 0x00000000080063b0 0x53c ./SW_APPs/APP_blood.o - 0x00000000080063b0 blood_data_translate - .text.APP_blood_loop - 0x00000000080068ec 0x184 ./SW_APPs/APP_blood.o - 0x00000000080068ec APP_blood_loop + 0x0000000008006740 0x100 ./SW_APPs/APP_blood.o + 0x0000000008006740 max30102_read_fifo .text.HAL_TIM_PeriodElapsedCallback - 0x0000000008006a70 0xac ./SW_APPs/APP_blood.o - 0x0000000008006a70 HAL_TIM_PeriodElapsedCallback + 0x0000000008006840 0xac ./SW_APPs/APP_blood.o + 0x0000000008006840 HAL_TIM_PeriodElapsedCallback .text.main_app - 0x0000000008006b1c 0x64 ./SW_APPs/Main_APP.o - 0x0000000008006b1c main_app + 0x00000000080068ec 0x80 ./SW_APPs/Main_APP.o + 0x00000000080068ec main_app .text.Inteface_SetCursor - 0x0000000008006b80 0x34 ./SW_APPs/windows.o - 0x0000000008006b80 Inteface_SetCursor + 0x000000000800696c 0x34 ./SW_APPs/windows.o + 0x000000000800696c Inteface_SetCursor .text.Inteface_SetColor - 0x0000000008006bb4 0x20 ./SW_APPs/windows.o - 0x0000000008006bb4 Inteface_SetColor - .text.UI_Init 0x0000000008006bd4 0x66 ./SW_APPs/windows.o - 0x0000000008006bd4 UI_Init + 0x00000000080069a0 0x20 ./SW_APPs/windows.o + 0x00000000080069a0 Inteface_SetColor + .text.UI_Init 0x00000000080069c0 0x66 ./SW_APPs/windows.o + 0x00000000080069c0 UI_Init .text.New_Window - 0x0000000008006c3a 0xd2 ./SW_APPs/windows.o - 0x0000000008006c3a New_Window + 0x0000000008006a26 0xd2 ./SW_APPs/windows.o + 0x0000000008006a26 New_Window .text.Refresh_Window - 0x0000000008006d0c 0x10a ./SW_APPs/windows.o - 0x0000000008006d0c Refresh_Window + 0x0000000008006af8 0x10a ./SW_APPs/windows.o + 0x0000000008006af8 Refresh_Window .text.Refresh_UI - 0x0000000008006e16 0x94 ./SW_APPs/windows.o - 0x0000000008006e16 Refresh_UI - .text.Chack 0x0000000008006eaa 0xdc ./SW_APPs/windows.o - 0x0000000008006eaa Chack - *fill* 0x0000000008006f86 0x2 + 0x0000000008006c02 0x94 ./SW_APPs/windows.o + 0x0000000008006c02 Refresh_UI + .text.Chack 0x0000000008006c96 0xdc ./SW_APPs/windows.o + 0x0000000008006c96 Chack + *fill* 0x0000000008006d72 0x2 .text.UI_Server - 0x0000000008006f88 0x1f4 ./SW_APPs/windows.o - 0x0000000008006f88 UI_Server - .text.__errno 0x000000000800717c 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) - 0x000000000800717c __errno + 0x0000000008006d74 0x1f4 ./SW_APPs/windows.o + 0x0000000008006d74 UI_Server + .text.__errno 0x0000000008006f68 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) + 0x0000000008006f68 __errno .text.__libc_init_array - 0x0000000008007188 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) - 0x0000000008007188 __libc_init_array - .text.malloc 0x00000000080071d0 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) - 0x00000000080071d0 malloc - .text.free 0x00000000080071e0 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) - 0x00000000080071e0 free - .text.memset 0x00000000080071f0 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) - 0x00000000080071f0 memset - .text._free_r 0x0000000008007200 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) - 0x0000000008007200 _free_r + 0x0000000008006f74 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) + 0x0000000008006f74 __libc_init_array + .text.malloc 0x0000000008006fbc 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) + 0x0000000008006fbc malloc + .text.free 0x0000000008006fcc 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) + 0x0000000008006fcc free + .text.memset 0x0000000008006fdc 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) + 0x0000000008006fdc memset + .text._free_r 0x0000000008006fec 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) + 0x0000000008006fec _free_r .text._malloc_r - 0x0000000008007298 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) - 0x0000000008007298 _malloc_r - .text.__cvt 0x000000000800734c 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) - 0x000000000800734c __cvt + 0x0000000008007084 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) + 0x0000000008007084 _malloc_r + .text.__cvt 0x0000000008007138 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) + 0x0000000008007138 __cvt .text.__exponent - 0x000000000800740a 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) - 0x000000000800740a __exponent - *fill* 0x0000000008007486 0x2 + 0x00000000080071f6 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) + 0x00000000080071f6 __exponent + *fill* 0x0000000008007272 0x2 .text._printf_float - 0x0000000008007488 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) - 0x0000000008007488 _printf_float + 0x0000000008007274 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) + 0x0000000008007274 _printf_float .text._printf_common - 0x00000000080078e0 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) - 0x00000000080078e0 _printf_common - *fill* 0x00000000080079be 0x2 + 0x00000000080076cc 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) + 0x00000000080076cc _printf_common + *fill* 0x00000000080077aa 0x2 .text._printf_i - 0x00000000080079c0 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) - 0x00000000080079c0 _printf_i - .text._sbrk_r 0x0000000008007c0c 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) - 0x0000000008007c0c _sbrk_r - .text.sprintf 0x0000000008007c2c 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) - 0x0000000008007c2c sprintf - 0x0000000008007c2c siprintf - .text.quorem 0x0000000008007c6c 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* 0x0000000008007d86 0x2 - .text._dtoa_r 0x0000000008007d88 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) - 0x0000000008007d88 _dtoa_r + 0x00000000080077ac 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) + 0x00000000080077ac _printf_i + .text._sbrk_r 0x00000000080079f8 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) + 0x00000000080079f8 _sbrk_r + .text.sprintf 0x0000000008007a18 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) + 0x0000000008007a18 sprintf + 0x0000000008007a18 siprintf + .text.quorem 0x0000000008007a58 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* 0x0000000008007b72 0x6 + .text._dtoa_r 0x0000000008007b78 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) + 0x0000000008007b78 _dtoa_r .text._localeconv_r - 0x0000000008008964 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) - 0x0000000008008964 _localeconv_r - .text.memchr 0x000000000800896c 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) - 0x000000000800896c memchr - .text.memcpy 0x0000000008008988 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) - 0x0000000008008988 memcpy + 0x0000000008008754 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) + 0x0000000008008754 _localeconv_r + .text.memchr 0x000000000800875c 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) + 0x000000000800875c memchr + .text.memcpy 0x0000000008008778 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) + 0x0000000008008778 memcpy .text.__malloc_lock - 0x00000000080089a4 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) - 0x00000000080089a4 __malloc_lock + 0x0000000008008794 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) + 0x0000000008008794 __malloc_lock .text.__malloc_unlock - 0x00000000080089b0 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) - 0x00000000080089b0 __malloc_unlock - .text._Balloc 0x00000000080089bc 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) - 0x00000000080089bc _Balloc - .text._Bfree 0x0000000008008a3c 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) - 0x0000000008008a3c _Bfree + 0x00000000080087a0 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) + 0x00000000080087a0 __malloc_unlock + .text._Balloc 0x00000000080087ac 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) + 0x00000000080087ac _Balloc + .text._Bfree 0x000000000800882c 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) + 0x000000000800882c _Bfree .text.__multadd - 0x0000000008008a80 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) - 0x0000000008008a80 __multadd + 0x0000000008008870 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) + 0x0000000008008870 __multadd .text.__hi0bits - 0x0000000008008b14 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) - 0x0000000008008b14 __hi0bits + 0x0000000008008904 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) + 0x0000000008008904 __hi0bits .text.__lo0bits - 0x0000000008008b54 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) - 0x0000000008008b54 __lo0bits - .text.__i2b 0x0000000008008bb0 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) - 0x0000000008008bb0 __i2b + 0x0000000008008944 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) + 0x0000000008008944 __lo0bits + .text.__i2b 0x00000000080089a0 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) + 0x00000000080089a0 __i2b .text.__multiply - 0x0000000008008bdc 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) - 0x0000000008008bdc __multiply + 0x00000000080089cc 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) + 0x00000000080089cc __multiply .text.__pow5mult - 0x0000000008008d24 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) - 0x0000000008008d24 __pow5mult + 0x0000000008008b14 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) + 0x0000000008008b14 __pow5mult .text.__lshift - 0x0000000008008dd8 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) - 0x0000000008008dd8 __lshift - .text.__mcmp 0x0000000008008eb0 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) - 0x0000000008008eb0 __mcmp - *fill* 0x0000000008008ee6 0x2 - .text.__mdiff 0x0000000008008ee8 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) - 0x0000000008008ee8 __mdiff - .text.__d2b 0x0000000008009008 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) - 0x0000000008009008 __d2b + 0x0000000008008bc8 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) + 0x0000000008008bc8 __lshift + .text.__mcmp 0x0000000008008ca0 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) + 0x0000000008008ca0 __mcmp + *fill* 0x0000000008008cd6 0x2 + .text.__mdiff 0x0000000008008cd8 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) + 0x0000000008008cd8 __mdiff + .text.__d2b 0x0000000008008df8 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) + 0x0000000008008df8 __d2b .text._calloc_r - 0x00000000080090c0 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) - 0x00000000080090c0 _calloc_r + 0x0000000008008eb0 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) + 0x0000000008008eb0 _calloc_r .text.__ssputs_r - 0x00000000080090dc 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) - 0x00000000080090dc __ssputs_r - *fill* 0x0000000008009192 0x2 + 0x0000000008008ecc 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) + 0x0000000008008ecc __ssputs_r + *fill* 0x0000000008008f82 0x2 .text._svfprintf_r - 0x0000000008009194 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) - 0x0000000008009194 _svfprintf_r - 0x0000000008009194 _svfiprintf_r + 0x0000000008008f84 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) + 0x0000000008008f84 _svfprintf_r + 0x0000000008008f84 _svfiprintf_r .text.__assert_func - 0x0000000008009394 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) - 0x0000000008009394 __assert_func - .text.fprintf 0x00000000080093d0 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) - 0x00000000080093d0 fprintf - 0x00000000080093d0 fiprintf + 0x0000000008009184 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) + 0x0000000008009184 __assert_func + .text.fprintf 0x00000000080091c0 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) + 0x00000000080091c0 fprintf + 0x00000000080091c0 fiprintf .text.__retarget_lock_init_recursive - 0x00000000080093f4 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) - 0x00000000080093f4 __retarget_lock_init_recursive + 0x00000000080091e4 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) + 0x00000000080091e4 __retarget_lock_init_recursive .text.__retarget_lock_acquire_recursive - 0x00000000080093f6 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) - 0x00000000080093f6 __retarget_lock_acquire_recursive + 0x00000000080091e6 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) + 0x00000000080091e6 __retarget_lock_acquire_recursive .text.__retarget_lock_release_recursive - 0x00000000080093f8 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) - 0x00000000080093f8 __retarget_lock_release_recursive + 0x00000000080091e8 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) + 0x00000000080091e8 __retarget_lock_release_recursive .text.__ascii_mbtowc - 0x00000000080093fa 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) - 0x00000000080093fa __ascii_mbtowc - .text.memmove 0x000000000800941e 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) - 0x000000000800941e memmove + 0x00000000080091ea 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) + 0x00000000080091ea __ascii_mbtowc + .text.memmove 0x000000000800920e 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) + 0x000000000800920e memmove .text._realloc_r - 0x0000000008009452 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) - 0x0000000008009452 _realloc_r + 0x0000000008009242 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) + 0x0000000008009242 _realloc_r .text.__sfputc_r - 0x000000000800949e 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) + 0x000000000800928e 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 - 0x00000000080094c8 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) - 0x00000000080094c8 __sfputs_r + 0x00000000080092b8 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) + 0x00000000080092b8 __sfputs_r .text._vfprintf_r - 0x00000000080094ec 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) - 0x00000000080094ec _vfiprintf_r - 0x00000000080094ec _vfprintf_r + 0x00000000080092dc 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) + 0x00000000080092dc _vfiprintf_r + 0x00000000080092dc _vfprintf_r .text.__swbuf_r - 0x000000000800974c 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) - 0x000000000800974c __swbuf_r + 0x000000000800953c 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) + 0x000000000800953c __swbuf_r .text.__ascii_wctomb - 0x00000000080097f0 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) - 0x00000000080097f0 __ascii_wctomb - *fill* 0x000000000800980a 0x2 + 0x00000000080095e0 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) + 0x00000000080095e0 __ascii_wctomb + *fill* 0x00000000080095fa 0x2 .text.__swsetup_r - 0x000000000800980c 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) - 0x000000000800980c __swsetup_r - .text.abort 0x00000000080098e8 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) - 0x00000000080098e8 abort - *fill* 0x00000000080098f6 0x2 + 0x00000000080095fc 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) + 0x00000000080095fc __swsetup_r + .text.abort 0x00000000080096d8 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) + 0x00000000080096d8 abort + *fill* 0x00000000080096e6 0x2 .text.__sflush_r - 0x00000000080098f8 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) - 0x00000000080098f8 __sflush_r + 0x00000000080096e8 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) + 0x00000000080096e8 __sflush_r .text._fflush_r - 0x0000000008009a04 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) - 0x0000000008009a04 _fflush_r - .text.std 0x0000000008009a7c 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) + 0x00000000080097f4 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) + 0x00000000080097f4 _fflush_r + .text.std 0x000000000800986c 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 - 0x0000000008009ac4 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) - 0x0000000008009ac4 _cleanup_r + 0x00000000080098b4 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) + 0x00000000080098b4 _cleanup_r .text.__sfmoreglue - 0x0000000008009ad0 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) - 0x0000000008009ad0 __sfmoreglue + 0x00000000080098c0 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) + 0x00000000080098c0 __sfmoreglue .text.__sfp_lock_acquire - 0x0000000008009afc 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) - 0x0000000008009afc __sfp_lock_acquire + 0x00000000080098ec 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) + 0x00000000080098ec __sfp_lock_acquire .text.__sfp_lock_release - 0x0000000008009b08 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) - 0x0000000008009b08 __sfp_lock_release + 0x00000000080098f8 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) + 0x00000000080098f8 __sfp_lock_release .text.__sinit_lock_acquire - 0x0000000008009b14 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) - 0x0000000008009b14 __sinit_lock_acquire + 0x0000000008009904 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) + 0x0000000008009904 __sinit_lock_acquire .text.__sinit_lock_release - 0x0000000008009b20 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) - 0x0000000008009b20 __sinit_lock_release - .text.__sinit 0x0000000008009b2c 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) - 0x0000000008009b2c __sinit - .text.__sfp 0x0000000008009b9c 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) - 0x0000000008009b9c __sfp + 0x0000000008009910 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) + 0x0000000008009910 __sinit_lock_release + .text.__sinit 0x000000000800991c 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) + 0x000000000800991c __sinit + .text.__sfp 0x000000000800998c 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) + 0x000000000800998c __sfp .text._fwalk_reent - 0x0000000008009c28 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) - 0x0000000008009c28 _fwalk_reent + 0x0000000008009a18 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) + 0x0000000008009a18 _fwalk_reent .text.__swhatbuf_r - 0x0000000008009c66 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) - 0x0000000008009c66 __swhatbuf_r - *fill* 0x0000000008009cae 0x2 + 0x0000000008009a56 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) + 0x0000000008009a56 __swhatbuf_r + *fill* 0x0000000008009a9e 0x2 .text.__smakebuf_r - 0x0000000008009cb0 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) - 0x0000000008009cb0 __smakebuf_r + 0x0000000008009aa0 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) + 0x0000000008009aa0 __smakebuf_r .text._malloc_usable_size_r - 0x0000000008009d30 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) - 0x0000000008009d30 _malloc_usable_size_r + 0x0000000008009b20 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) + 0x0000000008009b20 _malloc_usable_size_r .text._raise_r - 0x0000000008009d40 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) - 0x0000000008009d40 _raise_r - .text.raise 0x0000000008009d90 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) - 0x0000000008009d90 raise - .text._kill_r 0x0000000008009da0 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) - 0x0000000008009da0 _kill_r + 0x0000000008009b30 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) + 0x0000000008009b30 _raise_r + .text.raise 0x0000000008009b80 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) + 0x0000000008009b80 raise + .text._kill_r 0x0000000008009b90 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) + 0x0000000008009b90 _kill_r .text._getpid_r - 0x0000000008009dc4 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) - 0x0000000008009dc4 _getpid_r - .text.__sread 0x0000000008009dc8 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) - 0x0000000008009dc8 __sread + 0x0000000008009bb4 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) + 0x0000000008009bb4 _getpid_r + .text.__sread 0x0000000008009bb8 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) + 0x0000000008009bb8 __sread .text.__swrite - 0x0000000008009dea 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) - 0x0000000008009dea __swrite - .text.__sseek 0x0000000008009e22 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) - 0x0000000008009e22 __sseek + 0x0000000008009bda 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) + 0x0000000008009bda __swrite + .text.__sseek 0x0000000008009c12 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) + 0x0000000008009c12 __sseek .text.__sclose - 0x0000000008009e46 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) - 0x0000000008009e46 __sclose - *fill* 0x0000000008009e4e 0x2 + 0x0000000008009c36 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) + 0x0000000008009c36 __sclose + *fill* 0x0000000008009c3e 0x2 .text._write_r - 0x0000000008009e50 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) - 0x0000000008009e50 _write_r + 0x0000000008009c40 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) + 0x0000000008009c40 _write_r .text._close_r - 0x0000000008009e74 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) - 0x0000000008009e74 _close_r + 0x0000000008009c64 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) + 0x0000000008009c64 _close_r .text._fstat_r - 0x0000000008009e94 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) - 0x0000000008009e94 _fstat_r + 0x0000000008009c84 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) + 0x0000000008009c84 _fstat_r .text._isatty_r - 0x0000000008009eb8 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) - 0x0000000008009eb8 _isatty_r + 0x0000000008009ca8 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) + 0x0000000008009ca8 _isatty_r .text._lseek_r - 0x0000000008009ed8 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) - 0x0000000008009ed8 _lseek_r - .text._read_r 0x0000000008009efc 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) - 0x0000000008009efc _read_r - .text.sqrtf 0x0000000008009f20 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/libm.a(lib_a-wf_sqrt.o) - 0x0000000008009f20 sqrtf - .text.__ieee754_sqrtf - 0x0000000008009f64 0xa2 /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-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(lib_a-ef_sqrt.o) - 0x0000000008009f64 __ieee754_sqrtf + 0x0000000008009cc8 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) + 0x0000000008009cc8 _lseek_r + .text._read_r 0x0000000008009cec 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) + 0x0000000008009cec _read_r *(.glue_7) - .glue_7 0x000000000800a006 0x0 linker stubs + .glue_7 0x0000000008009d10 0x0 linker stubs *(.glue_7t) - .glue_7t 0x000000000800a006 0x0 linker stubs + .glue_7t 0x0000000008009d10 0x0 linker stubs *(.eh_frame) - *fill* 0x000000000800a006 0x2 - .eh_frame 0x000000000800a008 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 0x0000000008009d10 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 0x000000000800a008 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 - 0x000000000800a008 _init - .init 0x000000000800a00c 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 0x0000000008009d10 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 + 0x0000000008009d10 _init + .init 0x0000000008009d14 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 0x000000000800a014 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 - 0x000000000800a014 _fini - .fini 0x000000000800a018 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 - 0x000000000800a020 . = ALIGN (0x4) - 0x000000000800a020 _etext = . + .fini 0x0000000008009d1c 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 + 0x0000000008009d1c _fini + .fini 0x0000000008009d20 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 + 0x0000000008009d28 . = ALIGN (0x4) + 0x0000000008009d28 _etext = . -.vfp11_veneer 0x000000000800a020 0x0 - .vfp11_veneer 0x000000000800a020 0x0 linker stubs +.vfp11_veneer 0x0000000008009d28 0x0 + .vfp11_veneer 0x0000000008009d28 0x0 linker stubs -.v4_bx 0x000000000800a020 0x0 - .v4_bx 0x000000000800a020 0x0 linker stubs +.v4_bx 0x0000000008009d28 0x0 + .v4_bx 0x0000000008009d28 0x0 linker stubs -.iplt 0x000000000800a020 0x0 - .iplt 0x000000000800a020 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 0x0000000008009d28 0x0 + .iplt 0x0000000008009d28 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 0x000000000800a020 0x129c - 0x000000000800a020 . = ALIGN (0x4) +.rodata 0x0000000008009d28 0xf2c + 0x0000000008009d28 . = ALIGN (0x4) *(.rodata) - .rodata 0x000000000800a020 0x10 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.o - .rodata 0x000000000800a030 0xb8 ./HW_Devices/touch.o - .rodata 0x000000000800a0e8 0x3b ./SW_APPs/APP_blood.o - *fill* 0x000000000800a123 0x1 - .rodata 0x000000000800a124 0x9 ./SW_APPs/Main_APP.o + .rodata 0x0000000008009d28 0x10 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.o + .rodata 0x0000000008009d38 0xb8 ./HW_Devices/touch.o + .rodata 0x0000000008009df0 0x7 ./SW_APPs/Main_APP.o *(.rodata*) - *fill* 0x000000000800a12d 0x3 + *fill* 0x0000000008009df7 0x1 .rodata.AHBPrescTable - 0x000000000800a130 0x10 ./Core/Src/system_stm32f1xx.o - 0x000000000800a130 AHBPrescTable + 0x0000000008009df8 0x10 ./Core/Src/system_stm32f1xx.o + 0x0000000008009df8 AHBPrescTable .rodata.APBPrescTable - 0x000000000800a140 0x8 ./Core/Src/system_stm32f1xx.o - 0x000000000800a140 APBPrescTable + 0x0000000008009e08 0x8 ./Core/Src/system_stm32f1xx.o + 0x0000000008009e08 APBPrescTable .rodata.asc2_1206 - 0x000000000800a148 0x474 ./HW_Devices/LCD.o - 0x000000000800a148 asc2_1206 + 0x0000000008009e10 0x474 ./HW_Devices/LCD.o + 0x0000000008009e10 asc2_1206 .rodata.asc2_1608 - 0x000000000800a5bc 0x5f0 ./HW_Devices/LCD.o - 0x000000000800a5bc asc2_1608 - *fill* 0x000000000800abac 0x4 - .rodata.XSinTbl - 0x000000000800abb0 0x328 ./SW_APPs/APP_blood.o + 0x000000000800a284 0x5f0 ./HW_Devices/LCD.o + 0x000000000800a284 asc2_1608 .rodata._global_impure_ptr - 0x000000000800aed8 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) - 0x000000000800aed8 _global_impure_ptr + 0x000000000800a874 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) + 0x000000000800a874 _global_impure_ptr .rodata._printf_float.str1.1 - 0x000000000800aedc 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) + 0x000000000800a878 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 - 0x000000000800aeee 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) + 0x000000000800a88a 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 - 0x000000000800af10 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) + 0x000000000800a8ac 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 - 0x000000000800afa4 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) + 0x000000000800a940 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 - 0x000000000800b004 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) - *fill* 0x000000000800b004 0x4 + 0x000000000800a9a0 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 - 0x000000000800b008 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) - 0x000000000800b008 __mprec_bigtens + 0x000000000800a9a0 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) + 0x000000000800a9a0 __mprec_bigtens .rodata.__mprec_tens - 0x000000000800b030 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) - 0x000000000800b030 __mprec_tens + 0x000000000800a9c8 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) + 0x000000000800a9c8 __mprec_tens .rodata.p05.6150 - 0x000000000800b0f8 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) + 0x000000000800aa90 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 - 0x000000000800b104 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) + 0x000000000800aa9c 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 - 0x000000000800b115 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) + 0x000000000800aaad 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 - 0x000000000800b151 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) + 0x000000000800aae9 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 - 0x000000000800b159 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) + 0x000000000800aaf1 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 - 0x000000000800b15b 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) + 0x000000000800aaf3 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_ - 0x000000000800b15b 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) - 0x000000000800b15b _ctype_ + 0x000000000800aaf3 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) + 0x000000000800aaf3 _ctype_ .rodata.__sf_fake_stderr - 0x000000000800b25c 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) - 0x000000000800b25c __sf_fake_stderr + 0x000000000800abf4 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) + 0x000000000800abf4 __sf_fake_stderr .rodata.__sf_fake_stdin - 0x000000000800b27c 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) - 0x000000000800b27c __sf_fake_stdin + 0x000000000800ac14 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) + 0x000000000800ac14 __sf_fake_stdin .rodata.__sf_fake_stdout - 0x000000000800b29c 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) - 0x000000000800b29c __sf_fake_stdout - 0x000000000800b2bc . = ALIGN (0x4) + 0x000000000800ac34 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) + 0x000000000800ac34 __sf_fake_stdout + 0x000000000800ac54 . = ALIGN (0x4) -.rel.dyn 0x000000000800b2bc 0x0 - .rel.iplt 0x000000000800b2bc 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 0x000000000800ac54 0x0 + .rel.iplt 0x000000000800ac54 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 0x000000000800b2bc 0x0 - 0x000000000800b2bc . = ALIGN (0x4) +.ARM.extab 0x000000000800ac54 0x0 + 0x000000000800ac54 . = ALIGN (0x4) *(.ARM.extab* .gnu.linkonce.armextab.*) - 0x000000000800b2bc . = ALIGN (0x4) + 0x000000000800ac54 . = ALIGN (0x4) -.ARM 0x000000000800b2bc 0x0 - 0x000000000800b2bc . = ALIGN (0x4) - 0x000000000800b2bc __exidx_start = . +.ARM 0x000000000800ac54 0x0 + 0x000000000800ac54 . = ALIGN (0x4) + 0x000000000800ac54 __exidx_start = . *(.ARM.exidx*) - 0x000000000800b2bc __exidx_end = . - 0x000000000800b2bc . = ALIGN (0x4) + 0x000000000800ac54 __exidx_end = . + 0x000000000800ac54 . = ALIGN (0x4) -.preinit_array 0x000000000800b2bc 0x0 - 0x000000000800b2bc . = ALIGN (0x4) - 0x000000000800b2bc PROVIDE (__preinit_array_start = .) +.preinit_array 0x000000000800ac54 0x0 + 0x000000000800ac54 . = ALIGN (0x4) + 0x000000000800ac54 PROVIDE (__preinit_array_start = .) *(.preinit_array*) - 0x000000000800b2bc PROVIDE (__preinit_array_end = .) - 0x000000000800b2bc . = ALIGN (0x4) + 0x000000000800ac54 PROVIDE (__preinit_array_end = .) + 0x000000000800ac54 . = ALIGN (0x4) -.init_array 0x000000000800b2bc 0x4 - 0x000000000800b2bc . = ALIGN (0x4) - 0x000000000800b2bc PROVIDE (__init_array_start = .) +.init_array 0x000000000800ac54 0x4 + 0x000000000800ac54 . = ALIGN (0x4) + 0x000000000800ac54 PROVIDE (__init_array_start = .) *(SORT_BY_NAME(.init_array.*)) *(.init_array*) - .init_array 0x000000000800b2bc 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 - 0x000000000800b2c0 PROVIDE (__init_array_end = .) - 0x000000000800b2c0 . = ALIGN (0x4) + .init_array 0x000000000800ac54 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 + 0x000000000800ac58 PROVIDE (__init_array_end = .) + 0x000000000800ac58 . = ALIGN (0x4) -.fini_array 0x000000000800b2c0 0x4 - 0x000000000800b2c0 . = ALIGN (0x4) +.fini_array 0x000000000800ac58 0x4 + 0x000000000800ac58 . = ALIGN (0x4) [!provide] PROVIDE (__fini_array_start = .) *(SORT_BY_NAME(.fini_array.*)) *(.fini_array*) - .fini_array 0x000000000800b2c0 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 0x000000000800ac58 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 = .) - 0x000000000800b2c4 . = ALIGN (0x4) - 0x000000000800b2c4 _sidata = LOADADDR (.data) + 0x000000000800ac5c . = ALIGN (0x4) + 0x000000000800ac5c _sidata = LOADADDR (.data) -.data 0x0000000020000000 0x1e0 load address 0x000000000800b2c4 +.data 0x0000000020000000 0x1dc load address 0x000000000800ac5c 0x0000000020000000 . = ALIGN (0x4) 0x0000000020000000 _sdata = . *(.data) @@ -4596,99 +5052,93 @@ LOAD /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.id .data.__global_locale 0x0000000020000070 0x16c /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.macos64_2.0.0.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) 0x0000000020000070 __global_locale - .data.__fdlib_version - 0x00000000200001dc 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/libm.a(lib_a-s_lib_ver.o) - 0x00000000200001dc __fdlib_version *(.RamFunc) *(.RamFunc*) - 0x00000000200001e0 . = ALIGN (0x4) - *fill* 0x00000000200001dd 0x3 - 0x00000000200001e0 _edata = . + 0x00000000200001dc . = ALIGN (0x4) + 0x00000000200001dc _edata = . -.igot.plt 0x00000000200001e0 0x0 load address 0x000000000800b4a4 - .igot.plt 0x00000000200001e0 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 - 0x00000000200001e0 . = ALIGN (0x4) +.igot.plt 0x00000000200001dc 0x0 load address 0x000000000800ae38 + .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 0x00000000200001e0 0x22cc load address 0x000000000800b4a4 - 0x00000000200001e0 _sbss = . - 0x00000000200001e0 __bss_start__ = _sbss +.bss 0x00000000200001dc 0x2320 load address 0x000000000800ae38 + 0x00000000200001dc _sbss = . + 0x00000000200001dc __bss_start__ = _sbss *(.bss) - .bss 0x00000000200001e0 0x1c /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.macos64_2.0.0.202105311346/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/thumb/v7-m/nofp/crtbegin.o + .bss 0x00000000200001dc 0x1c /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.macos64_2.0.0.202105311346/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/thumb/v7-m/nofp/crtbegin.o *(.bss*) .bss.FSMC_Initialized - 0x00000000200001fc 0x4 ./Core/Src/stm32f1xx_hal_msp.o + 0x00000000200001f8 0x4 ./Core/Src/stm32f1xx_hal_msp.o .bss.__sbrk_heap_end - 0x0000000020000200 0x4 ./Core/Src/sysmem.o - .bss.g_blooddata - 0x0000000020000204 0x8 ./SW_APPs/APP_blood.o - 0x0000000020000204 g_blooddata - .bss.get_data_lock - 0x000000002000020c 0x1 ./SW_APPs/APP_blood.o - 0x000000002000020c get_data_lock + 0x00000000200001fc 0x4 ./Core/Src/sysmem.o .bss.get_data_flag - 0x000000002000020d 0x1 ./SW_APPs/APP_blood.o - 0x000000002000020d get_data_flag + 0x0000000020000200 0x1 ./SW_APPs/APP_blood.o + 0x0000000020000200 get_data_flag + *fill* 0x0000000020000201 0x1 .bss.g_fft_index - 0x000000002000020e 0x2 ./SW_APPs/APP_blood.o - 0x000000002000020e g_fft_index + 0x0000000020000202 0x2 ./SW_APPs/APP_blood.o + 0x0000000020000202 g_fft_index .bss.__malloc_free_list - 0x0000000020000210 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) - 0x0000000020000210 __malloc_free_list + 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_free_list .bss.__malloc_sbrk_start - 0x0000000020000214 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) - 0x0000000020000214 __malloc_sbrk_start + 0x0000000020000208 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) + 0x0000000020000208 __malloc_sbrk_start *(COMMON) - COMMON 0x0000000020000218 0xe4 ./Core/Src/main.o - 0x0000000020000218 hi2c2 - 0x000000002000026c hsram1 - 0x00000000200002b4 htim6 - COMMON 0x00000000200002fc 0x4 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.o - 0x00000000200002fc uwTick - COMMON 0x0000000020000300 0xa ./HW_Devices/LCD.o - 0x0000000020000300 lcddev - *fill* 0x000000002000030a 0x2 - COMMON 0x000000002000030c 0x14 ./HW_Devices/eeprom.o - 0x000000002000030c eeprom_write_buffer - COMMON 0x0000000020000320 0x28 ./HW_Devices/touch.o - 0x0000000020000320 tconfig - 0x0000000020000338 t0 - COMMON 0x0000000020000348 0x2152 ./SW_APPs/APP_blood.o - 0x0000000020000348 blood_str - 0x0000000020000388 fifo_ir - 0x000000002000038c blood_win - 0x0000000020000390 s1 - 0x0000000020001410 s2 - 0x0000000020002490 g_BloodWave - 0x0000000020002498 fifo_red - *fill* 0x000000002000249a 0x2 - COMMON 0x000000002000249c 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) - 0x000000002000249c errno - COMMON 0x00000000200024a0 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) - 0x00000000200024a0 __lock___atexit_recursive_mutex - 0x00000000200024a1 __lock___arc4random_mutex - 0x00000000200024a2 __lock___env_recursive_mutex - 0x00000000200024a3 __lock___sinit_recursive_mutex - 0x00000000200024a4 __lock___malloc_recursive_mutex - 0x00000000200024a5 __lock___at_quick_exit_mutex - 0x00000000200024a6 __lock___dd_hash_mutex - 0x00000000200024a7 __lock___tz_mutex - 0x00000000200024a8 __lock___sfp_recursive_mutex - 0x00000000200024ac . = ALIGN (0x4) - *fill* 0x00000000200024a9 0x3 - 0x00000000200024ac _ebss = . - 0x00000000200024ac __bss_end__ = _ebss + COMMON 0x000000002000020c 0x13c ./Core/Src/main.o + 0x000000002000020c hi2c2 + 0x0000000020000260 hsram1 + 0x00000000200002a8 htim6 + 0x00000000200002f0 hspi1 + COMMON 0x0000000020000348 0x4 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.o + 0x0000000020000348 uwTick + COMMON 0x000000002000034c 0xa ./HW_Devices/LCD.o + 0x000000002000034c lcddev + *fill* 0x0000000020000356 0x2 + COMMON 0x0000000020000358 0x14 ./HW_Devices/eeprom.o + 0x0000000020000358 eeprom_write_buffer + COMMON 0x000000002000036c 0x28 ./HW_Devices/touch.o + 0x000000002000036c tconfig + 0x0000000020000384 t0 + COMMON 0x0000000020000394 0x4 ./SW_APPs/APP_IDcard.o + 0x0000000020000394 idcard_window + COMMON 0x0000000020000398 0x2152 ./SW_APPs/APP_blood.o + 0x0000000020000398 blood_str + 0x00000000200003d8 fifo_ir + 0x00000000200003dc blood_win + 0x00000000200003e0 s1 + 0x0000000020001460 s2 + 0x00000000200024e0 g_BloodWave + 0x00000000200024e8 fifo_red + *fill* 0x00000000200024ea 0x2 + COMMON 0x00000000200024ec 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) + 0x00000000200024ec errno + COMMON 0x00000000200024f0 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) + 0x00000000200024f0 __lock___atexit_recursive_mutex + 0x00000000200024f1 __lock___arc4random_mutex + 0x00000000200024f2 __lock___env_recursive_mutex + 0x00000000200024f3 __lock___sinit_recursive_mutex + 0x00000000200024f4 __lock___malloc_recursive_mutex + 0x00000000200024f5 __lock___at_quick_exit_mutex + 0x00000000200024f6 __lock___dd_hash_mutex + 0x00000000200024f7 __lock___tz_mutex + 0x00000000200024f8 __lock___sfp_recursive_mutex + 0x00000000200024fc . = ALIGN (0x4) + *fill* 0x00000000200024f9 0x3 + 0x00000000200024fc _ebss = . + 0x00000000200024fc __bss_end__ = _ebss ._user_heap_stack - 0x00000000200024ac 0xc04 load address 0x000000000800b4a4 - 0x00000000200024b0 . = ALIGN (0x8) - *fill* 0x00000000200024ac 0x4 + 0x00000000200024fc 0xc04 load address 0x000000000800ae38 + 0x0000000020002500 . = ALIGN (0x8) + *fill* 0x00000000200024fc 0x4 [!provide] PROVIDE (end = .) - 0x00000000200024b0 PROVIDE (_end = .) - 0x00000000200028b0 . = (. + _Min_Heap_Size) - *fill* 0x00000000200024b0 0x400 - 0x00000000200030b0 . = (. + _Min_Stack_Size) - *fill* 0x00000000200028b0 0x800 - 0x00000000200030b0 . = ALIGN (0x8) + 0x0000000020002500 PROVIDE (_end = .) + 0x0000000020002900 . = (. + _Min_Heap_Size) + *fill* 0x0000000020002500 0x400 + 0x0000000020003100 . = (. + _Min_Stack_Size) + *fill* 0x0000000020002900 0x800 + 0x0000000020003100 . = ALIGN (0x8) /DISCARD/ libc.a(*) @@ -4727,129 +5177,129 @@ LOAD /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.id .ARM.attributes 0x000000000000022d 0x2d ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.o .ARM.attributes - 0x000000000000025a 0x2d ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_sram.o + 0x000000000000025a 0x2d ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o .ARM.attributes - 0x0000000000000287 0x2d ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim.o + 0x0000000000000287 0x2d ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_sram.o .ARM.attributes - 0x00000000000002b4 0x2d ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim_ex.o + 0x00000000000002b4 0x2d ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim.o .ARM.attributes - 0x00000000000002e1 0x2d ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_fsmc.o + 0x00000000000002e1 0x2d ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim_ex.o .ARM.attributes - 0x000000000000030e 0x2d ./HW_Devices/LCD.o + 0x000000000000030e 0x2d ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_fsmc.o .ARM.attributes - 0x000000000000033b 0x2d ./HW_Devices/eeprom.o + 0x000000000000033b 0x2d ./HW_Devices/LCD.o .ARM.attributes - 0x0000000000000368 0x2d ./HW_Devices/iic.o + 0x0000000000000368 0x2d ./HW_Devices/eeprom.o .ARM.attributes - 0x0000000000000395 0x2d ./HW_Devices/touch.o + 0x0000000000000395 0x2d ./HW_Devices/iic.o .ARM.attributes - 0x00000000000003c2 0x2d ./SW_APPs/APP_blood.o + 0x00000000000003c2 0x2d ./HW_Devices/rs522.o .ARM.attributes - 0x00000000000003ef 0x2d ./SW_APPs/Main_APP.o + 0x00000000000003ef 0x2d ./HW_Devices/touch.o .ARM.attributes - 0x000000000000041c 0x2d ./SW_APPs/windows.o + 0x000000000000041c 0x2d ./SW_APPs/APP_IDcard.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-errno.o) + 0x0000000000000449 0x2d ./SW_APPs/APP_blood.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-impure.o) + 0x0000000000000476 0x2d ./SW_APPs/Main_APP.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-init.o) + 0x00000000000004a3 0x2d ./SW_APPs/windows.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-malloc.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-errno.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-memset.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-impure.o) .ARM.attributes - 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-nano-freer.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-init.o) .ARM.attributes - 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-nano-mallocr.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-malloc.o) .ARM.attributes - 0x0000000000000584 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) + 0x0000000000000584 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 - 0x00000000000005b1 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) + 0x00000000000005b1 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 - 0x00000000000005de 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) + 0x00000000000005de 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 - 0x000000000000060b 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) + 0x000000000000060b 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 - 0x0000000000000638 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) + 0x0000000000000638 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 - 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-dtoa.o) + 0x0000000000000665 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 - 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-localeconv.o) + 0x0000000000000692 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 - 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-memchr-stub.o) + 0x00000000000006bf 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 - 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-memcpy-stub.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-dtoa.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-mlock.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-localeconv.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-mprec.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-memchr-stub.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-nano-callocr.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-memcpy-stub.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-nano-svfprintf.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-mlock.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-reent.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-mprec.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-assert.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-nano-callocr.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-fprintf.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-nano-svfprintf.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-locale.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-reent.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-lock.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-assert.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-mbtowc_r.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-fprintf.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-memmove.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-locale.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-nano-reallocr.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-lock.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-nano-vfprintf.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-mbtowc_r.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-wbuf.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-memmove.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-wctomb_r.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-nano-reallocr.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-wsetup.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-nano-vfprintf.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-abort.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-wbuf.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-ctype_.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-wctomb_r.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-fflush.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-wsetup.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-findfp.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-abort.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-fwalk.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-ctype_.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-makebuf.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-fflush.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-nano-msizer.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-findfp.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-signal.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-fwalk.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-signalr.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-makebuf.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-stdio.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-nano-msizer.o) .ARM.attributes - 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-writer.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-signal.o) .ARM.attributes - 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-closer.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-signalr.o) .ARM.attributes - 0x0000000000000bef 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) + 0x0000000000000bef 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 - 0x0000000000000c1c 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) + 0x0000000000000c1c 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 - 0x0000000000000c49 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) + 0x0000000000000c49 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 - 0x0000000000000c76 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) + 0x0000000000000c76 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 - 0x0000000000000ca3 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/libm.a(lib_a-wf_sqrt.o) + 0x0000000000000ca3 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 - 0x0000000000000cd0 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/libm.a(lib_a-ef_sqrt.o) + 0x0000000000000cd0 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 - 0x0000000000000cfd 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/libm.a(lib_a-s_lib_ver.o) + 0x0000000000000cfd 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 0x0000000000000d2a 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 @@ -4867,45 +5317,44 @@ LOAD /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.id .ARM.attributes 0x0000000000000df5 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 - 0x0000000000000e12 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_cmpsf2.o) + 0x0000000000000e12 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 - 0x0000000000000e2f 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_unordsf2.o) - .ARM.attributes - 0x0000000000000e4c 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 - 0x0000000000000e69 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 + 0x0000000000000e2f 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 0x12c6e - .debug_info 0x0000000000000000 0x114e ./Core/Src/main.o - .debug_info 0x000000000000114e 0x1169 ./Core/Src/stm32f1xx_hal_msp.o - .debug_info 0x00000000000022b7 0x7b4 ./Core/Src/stm32f1xx_it.o - .debug_info 0x0000000000002a6b 0xfa8 ./Core/Src/syscalls.o - .debug_info 0x0000000000003a13 0xa25 ./Core/Src/sysmem.o - .debug_info 0x0000000000004438 0x2be ./Core/Src/system_stm32f1xx.o - .debug_info 0x00000000000046f6 0x22 ./Core/Startup/startup_stm32f103zetx.o - .debug_info 0x0000000000004718 0x7d0 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.o - .debug_info 0x0000000000004ee8 0xc42 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.o - .debug_info 0x0000000000005b2a 0x701 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio.o - .debug_info 0x000000000000622b 0x278e ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o - .debug_info 0x00000000000089b9 0x88e ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.o - .debug_info 0x0000000000009247 0xd4b ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_sram.o - .debug_info 0x0000000000009f92 0x2a45 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim.o - .debug_info 0x000000000000c9d7 0x14d5 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim_ex.o - .debug_info 0x000000000000deac 0xae7 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_fsmc.o - .debug_info 0x000000000000e993 0xa30 ./HW_Devices/LCD.o - .debug_info 0x000000000000f3c3 0x39b ./HW_Devices/eeprom.o - .debug_info 0x000000000000f75e 0x734 ./HW_Devices/iic.o - .debug_info 0x000000000000fe92 0x8b1 ./HW_Devices/touch.o - .debug_info 0x0000000000010743 0x17f7 ./SW_APPs/APP_blood.o - .debug_info 0x0000000000011f3a 0x4cc ./SW_APPs/Main_APP.o - .debug_info 0x0000000000012406 0x868 ./SW_APPs/windows.o +.debug_info 0x0000000000000000 0x159cd + .debug_info 0x0000000000000000 0x141a ./Core/Src/main.o + .debug_info 0x000000000000141a 0x1487 ./Core/Src/stm32f1xx_hal_msp.o + .debug_info 0x00000000000028a1 0x7b4 ./Core/Src/stm32f1xx_it.o + .debug_info 0x0000000000003055 0xfa8 ./Core/Src/syscalls.o + .debug_info 0x0000000000003ffd 0xa25 ./Core/Src/sysmem.o + .debug_info 0x0000000000004a22 0x2be ./Core/Src/system_stm32f1xx.o + .debug_info 0x0000000000004ce0 0x22 ./Core/Startup/startup_stm32f103zetx.o + .debug_info 0x0000000000004d02 0x7d0 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.o + .debug_info 0x00000000000054d2 0xc42 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.o + .debug_info 0x0000000000006114 0x701 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio.o + .debug_info 0x0000000000006815 0x278e ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + .debug_info 0x0000000000008fa3 0x88e ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.o + .debug_info 0x0000000000009831 0x16cd ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o + .debug_info 0x000000000000aefe 0xd4b ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_sram.o + .debug_info 0x000000000000bc49 0x2a45 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim.o + .debug_info 0x000000000000e68e 0x14d5 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim_ex.o + .debug_info 0x000000000000fb63 0xae7 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_fsmc.o + .debug_info 0x000000000001064a 0xa30 ./HW_Devices/LCD.o + .debug_info 0x000000000001107a 0x39b ./HW_Devices/eeprom.o + .debug_info 0x0000000000011415 0x734 ./HW_Devices/iic.o + .debug_info 0x0000000000011b49 0xd47 ./HW_Devices/rs522.o + .debug_info 0x0000000000012890 0x8c1 ./HW_Devices/touch.o + .debug_info 0x0000000000013151 0x2d7 ./SW_APPs/APP_IDcard.o + .debug_info 0x0000000000013428 0x17f7 ./SW_APPs/APP_blood.o + .debug_info 0x0000000000014c1f 0x546 ./SW_APPs/Main_APP.o + .debug_info 0x0000000000015165 0x868 ./SW_APPs/windows.o -.debug_abbrev 0x0000000000000000 0x303e +.debug_abbrev 0x0000000000000000 0x368c .debug_abbrev 0x0000000000000000 0x25e ./Core/Src/main.o .debug_abbrev 0x000000000000025e 0x238 ./Core/Src/stm32f1xx_hal_msp.o .debug_abbrev 0x0000000000000496 0x176 ./Core/Src/stm32f1xx_it.o @@ -4918,280 +5367,307 @@ LOAD /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.id .debug_abbrev 0x00000000000010b1 0x1e8 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio.o .debug_abbrev 0x0000000000001299 0x288 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o .debug_abbrev 0x0000000000001521 0x273 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.o - .debug_abbrev 0x0000000000001794 0x1f2 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_sram.o - .debug_abbrev 0x0000000000001986 0x25e ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim.o - .debug_abbrev 0x0000000000001be4 0x266 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim_ex.o - .debug_abbrev 0x0000000000001e4a 0x1ae ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_fsmc.o - .debug_abbrev 0x0000000000001ff8 0x28b ./HW_Devices/LCD.o - .debug_abbrev 0x0000000000002283 0x1b6 ./HW_Devices/eeprom.o - .debug_abbrev 0x0000000000002439 0x176 ./HW_Devices/iic.o - .debug_abbrev 0x00000000000025af 0x258 ./HW_Devices/touch.o - .debug_abbrev 0x0000000000002807 0x3ca ./SW_APPs/APP_blood.o - .debug_abbrev 0x0000000000002bd1 0x198 ./SW_APPs/Main_APP.o - .debug_abbrev 0x0000000000002d69 0x2d5 ./SW_APPs/windows.o + .debug_abbrev 0x0000000000001794 0x26e ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o + .debug_abbrev 0x0000000000001a02 0x1f2 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_sram.o + .debug_abbrev 0x0000000000001bf4 0x25e ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim.o + .debug_abbrev 0x0000000000001e52 0x266 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim_ex.o + .debug_abbrev 0x00000000000020b8 0x1ae ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_fsmc.o + .debug_abbrev 0x0000000000002266 0x28b ./HW_Devices/LCD.o + .debug_abbrev 0x00000000000024f1 0x1b6 ./HW_Devices/eeprom.o + .debug_abbrev 0x00000000000026a7 0x176 ./HW_Devices/iic.o + .debug_abbrev 0x000000000000281d 0x27b ./HW_Devices/rs522.o + .debug_abbrev 0x0000000000002a98 0x24f ./HW_Devices/touch.o + .debug_abbrev 0x0000000000002ce7 0x12e ./SW_APPs/APP_IDcard.o + .debug_abbrev 0x0000000000002e15 0x3ca ./SW_APPs/APP_blood.o + .debug_abbrev 0x00000000000031df 0x1d8 ./SW_APPs/Main_APP.o + .debug_abbrev 0x00000000000033b7 0x2d5 ./SW_APPs/windows.o -.debug_aranges 0x0000000000000000 0x10d8 +.debug_aranges 0x0000000000000000 0x1398 .debug_aranges - 0x0000000000000000 0x50 ./Core/Src/main.o + 0x0000000000000000 0x58 ./Core/Src/main.o .debug_aranges - 0x0000000000000050 0x60 ./Core/Src/stm32f1xx_hal_msp.o + 0x0000000000000058 0x70 ./Core/Src/stm32f1xx_hal_msp.o .debug_aranges - 0x00000000000000b0 0x68 ./Core/Src/stm32f1xx_it.o + 0x00000000000000c8 0x68 ./Core/Src/stm32f1xx_it.o .debug_aranges - 0x0000000000000118 0xa8 ./Core/Src/syscalls.o + 0x0000000000000130 0xa8 ./Core/Src/syscalls.o .debug_aranges - 0x00000000000001c0 0x20 ./Core/Src/sysmem.o + 0x00000000000001d8 0x20 ./Core/Src/sysmem.o .debug_aranges - 0x00000000000001e0 0x28 ./Core/Src/system_stm32f1xx.o + 0x00000000000001f8 0x28 ./Core/Src/system_stm32f1xx.o .debug_aranges - 0x0000000000000208 0x28 ./Core/Startup/startup_stm32f103zetx.o + 0x0000000000000220 0x28 ./Core/Startup/startup_stm32f103zetx.o .debug_aranges - 0x0000000000000230 0xe0 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.o + 0x0000000000000248 0xe0 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.o .debug_aranges - 0x0000000000000310 0x100 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.o + 0x0000000000000328 0x100 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.o .debug_aranges - 0x0000000000000410 0x58 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio.o + 0x0000000000000428 0x58 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio.o .debug_aranges - 0x0000000000000468 0x2a0 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + 0x0000000000000480 0x2a0 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o .debug_aranges - 0x0000000000000708 0x90 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.o + 0x0000000000000720 0x90 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.o .debug_aranges - 0x0000000000000798 0xb8 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_sram.o + 0x00000000000007b0 0x1d0 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o .debug_aranges - 0x0000000000000850 0x3d0 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim.o + 0x0000000000000980 0xb8 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_sram.o .debug_aranges - 0x0000000000000c20 0x168 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim_ex.o + 0x0000000000000a38 0x3d0 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim.o .debug_aranges - 0x0000000000000d88 0xa8 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_fsmc.o + 0x0000000000000e08 0x168 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim_ex.o .debug_aranges - 0x0000000000000e30 0xc8 ./HW_Devices/LCD.o + 0x0000000000000f70 0xa8 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_fsmc.o .debug_aranges - 0x0000000000000ef8 0x38 ./HW_Devices/eeprom.o + 0x0000000000001018 0xc8 ./HW_Devices/LCD.o .debug_aranges - 0x0000000000000f30 0x28 ./HW_Devices/iic.o + 0x00000000000010e0 0x38 ./HW_Devices/eeprom.o .debug_aranges - 0x0000000000000f58 0x60 ./HW_Devices/touch.o + 0x0000000000001118 0x28 ./HW_Devices/iic.o .debug_aranges - 0x0000000000000fb8 0x90 ./SW_APPs/APP_blood.o + 0x0000000000001140 0xb0 ./HW_Devices/rs522.o .debug_aranges - 0x0000000000001048 0x20 ./SW_APPs/Main_APP.o + 0x00000000000011f0 0x60 ./HW_Devices/touch.o .debug_aranges - 0x0000000000001068 0x70 ./SW_APPs/windows.o + 0x0000000000001250 0x28 ./SW_APPs/APP_IDcard.o + .debug_aranges + 0x0000000000001278 0x90 ./SW_APPs/APP_blood.o + .debug_aranges + 0x0000000000001308 0x20 ./SW_APPs/Main_APP.o + .debug_aranges + 0x0000000000001328 0x70 ./SW_APPs/windows.o -.debug_ranges 0x0000000000000000 0xfb0 - .debug_ranges 0x0000000000000000 0x40 ./Core/Src/main.o - .debug_ranges 0x0000000000000040 0x50 ./Core/Src/stm32f1xx_hal_msp.o - .debug_ranges 0x0000000000000090 0x58 ./Core/Src/stm32f1xx_it.o - .debug_ranges 0x00000000000000e8 0x98 ./Core/Src/syscalls.o - .debug_ranges 0x0000000000000180 0x10 ./Core/Src/sysmem.o - .debug_ranges 0x0000000000000190 0x18 ./Core/Src/system_stm32f1xx.o - .debug_ranges 0x00000000000001a8 0x20 ./Core/Startup/startup_stm32f103zetx.o - .debug_ranges 0x00000000000001c8 0xd0 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.o - .debug_ranges 0x0000000000000298 0xf0 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.o - .debug_ranges 0x0000000000000388 0x48 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio.o - .debug_ranges 0x00000000000003d0 0x2b8 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o - .debug_ranges 0x0000000000000688 0x80 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.o - .debug_ranges 0x0000000000000708 0xa8 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_sram.o - .debug_ranges 0x00000000000007b0 0x3c0 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim.o - .debug_ranges 0x0000000000000b70 0x158 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim_ex.o - .debug_ranges 0x0000000000000cc8 0x98 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_fsmc.o - .debug_ranges 0x0000000000000d60 0xb8 ./HW_Devices/LCD.o - .debug_ranges 0x0000000000000e18 0x40 ./HW_Devices/eeprom.o - .debug_ranges 0x0000000000000e58 0x18 ./HW_Devices/iic.o - .debug_ranges 0x0000000000000e70 0x50 ./HW_Devices/touch.o - .debug_ranges 0x0000000000000ec0 0x80 ./SW_APPs/APP_blood.o - .debug_ranges 0x0000000000000f40 0x10 ./SW_APPs/Main_APP.o - .debug_ranges 0x0000000000000f50 0x60 ./SW_APPs/windows.o +.debug_ranges 0x0000000000000000 0x1240 + .debug_ranges 0x0000000000000000 0x48 ./Core/Src/main.o + .debug_ranges 0x0000000000000048 0x60 ./Core/Src/stm32f1xx_hal_msp.o + .debug_ranges 0x00000000000000a8 0x58 ./Core/Src/stm32f1xx_it.o + .debug_ranges 0x0000000000000100 0x98 ./Core/Src/syscalls.o + .debug_ranges 0x0000000000000198 0x10 ./Core/Src/sysmem.o + .debug_ranges 0x00000000000001a8 0x18 ./Core/Src/system_stm32f1xx.o + .debug_ranges 0x00000000000001c0 0x20 ./Core/Startup/startup_stm32f103zetx.o + .debug_ranges 0x00000000000001e0 0xd0 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.o + .debug_ranges 0x00000000000002b0 0xf0 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.o + .debug_ranges 0x00000000000003a0 0x48 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio.o + .debug_ranges 0x00000000000003e8 0x2b8 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + .debug_ranges 0x00000000000006a0 0x80 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.o + .debug_ranges 0x0000000000000720 0x1c0 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o + .debug_ranges 0x00000000000008e0 0xa8 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_sram.o + .debug_ranges 0x0000000000000988 0x3c0 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim.o + .debug_ranges 0x0000000000000d48 0x158 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim_ex.o + .debug_ranges 0x0000000000000ea0 0x98 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_fsmc.o + .debug_ranges 0x0000000000000f38 0xb8 ./HW_Devices/LCD.o + .debug_ranges 0x0000000000000ff0 0x40 ./HW_Devices/eeprom.o + .debug_ranges 0x0000000000001030 0x18 ./HW_Devices/iic.o + .debug_ranges 0x0000000000001048 0xa0 ./HW_Devices/rs522.o + .debug_ranges 0x00000000000010e8 0x50 ./HW_Devices/touch.o + .debug_ranges 0x0000000000001138 0x18 ./SW_APPs/APP_IDcard.o + .debug_ranges 0x0000000000001150 0x80 ./SW_APPs/APP_blood.o + .debug_ranges 0x00000000000011d0 0x10 ./SW_APPs/Main_APP.o + .debug_ranges 0x00000000000011e0 0x60 ./SW_APPs/windows.o -.debug_macro 0x0000000000000000 0x1c81a - .debug_macro 0x0000000000000000 0x1d6 ./Core/Src/main.o - .debug_macro 0x00000000000001d6 0xa9c ./Core/Src/main.o - .debug_macro 0x0000000000000c72 0x221 ./Core/Src/main.o - .debug_macro 0x0000000000000e93 0x2e ./Core/Src/main.o - .debug_macro 0x0000000000000ec1 0x22 ./Core/Src/main.o - .debug_macro 0x0000000000000ee3 0x22 ./Core/Src/main.o - .debug_macro 0x0000000000000f05 0x8e ./Core/Src/main.o - .debug_macro 0x0000000000000f93 0x51 ./Core/Src/main.o - .debug_macro 0x0000000000000fe4 0x103 ./Core/Src/main.o - .debug_macro 0x00000000000010e7 0x6a ./Core/Src/main.o - .debug_macro 0x0000000000001151 0x1df ./Core/Src/main.o - .debug_macro 0x0000000000001330 0x1c ./Core/Src/main.o - .debug_macro 0x000000000000134c 0x22 ./Core/Src/main.o - .debug_macro 0x000000000000136e 0xc3 ./Core/Src/main.o - .debug_macro 0x0000000000001431 0xd23 ./Core/Src/main.o - .debug_macro 0x0000000000002154 0xfd8c ./Core/Src/main.o - .debug_macro 0x0000000000011ee0 0x6d ./Core/Src/main.o - .debug_macro 0x0000000000011f4d 0x3468 ./Core/Src/main.o - .debug_macro 0x00000000000153b5 0x174 ./Core/Src/main.o - .debug_macro 0x0000000000015529 0x5c ./Core/Src/main.o - .debug_macro 0x0000000000015585 0x5be ./Core/Src/main.o - .debug_macro 0x0000000000015b43 0x4d5 ./Core/Src/main.o - .debug_macro 0x0000000000016018 0x1cb ./Core/Src/main.o - .debug_macro 0x00000000000161e3 0x114 ./Core/Src/main.o - .debug_macro 0x00000000000162f7 0x1ea ./Core/Src/main.o - .debug_macro 0x00000000000164e1 0x27 ./Core/Src/main.o - .debug_macro 0x0000000000016508 0x144 ./Core/Src/main.o - .debug_macro 0x000000000001664c 0x1bc ./Core/Src/main.o - .debug_macro 0x0000000000016808 0x30 ./Core/Src/main.o - .debug_macro 0x0000000000016838 0x3c ./Core/Src/main.o - .debug_macro 0x0000000000016874 0x57 ./Core/Src/main.o - .debug_macro 0x00000000000168cb 0x88 ./Core/Src/main.o - .debug_macro 0x0000000000016953 0x24f ./Core/Src/main.o - .debug_macro 0x0000000000016ba2 0x356 ./Core/Src/main.o - .debug_macro 0x0000000000016ef8 0x287 ./Core/Src/main.o - .debug_macro 0x000000000001717f 0x141 ./Core/Src/main.o - .debug_macro 0x00000000000172c0 0x8d1 ./Core/Src/main.o - .debug_macro 0x0000000000017b91 0xb5 ./Core/Src/main.o - .debug_macro 0x0000000000017c46 0x70 ./Core/Src/main.o - .debug_macro 0x0000000000017cb6 0x1cc ./Core/Src/stm32f1xx_hal_msp.o - .debug_macro 0x0000000000017e82 0x1d6 ./Core/Src/stm32f1xx_it.o - .debug_macro 0x0000000000018058 0x24c ./Core/Src/syscalls.o - .debug_macro 0x00000000000182a4 0x4c ./Core/Src/syscalls.o - .debug_macro 0x00000000000182f0 0x18 ./Core/Src/syscalls.o - .debug_macro 0x0000000000018308 0x94 ./Core/Src/syscalls.o - .debug_macro 0x000000000001839c 0x3c ./Core/Src/syscalls.o - .debug_macro 0x00000000000183d8 0x34 ./Core/Src/syscalls.o - .debug_macro 0x000000000001840c 0x57 ./Core/Src/syscalls.o - .debug_macro 0x0000000000018463 0x339 ./Core/Src/syscalls.o - .debug_macro 0x000000000001879c 0x16 ./Core/Src/syscalls.o - .debug_macro 0x00000000000187b2 0x43 ./Core/Src/syscalls.o - .debug_macro 0x00000000000187f5 0x34 ./Core/Src/syscalls.o - .debug_macro 0x0000000000018829 0x10 ./Core/Src/syscalls.o - .debug_macro 0x0000000000018839 0x58 ./Core/Src/syscalls.o - .debug_macro 0x0000000000018891 0x71 ./Core/Src/syscalls.o - .debug_macro 0x0000000000018902 0x1c ./Core/Src/syscalls.o - .debug_macro 0x000000000001891e 0x12a ./Core/Src/syscalls.o - .debug_macro 0x0000000000018a48 0x10 ./Core/Src/syscalls.o - .debug_macro 0x0000000000018a58 0x35 ./Core/Src/syscalls.o - .debug_macro 0x0000000000018a8d 0x10 ./Core/Src/syscalls.o - .debug_macro 0x0000000000018a9d 0x10 ./Core/Src/syscalls.o - .debug_macro 0x0000000000018aad 0x10 ./Core/Src/syscalls.o - .debug_macro 0x0000000000018abd 0x1c ./Core/Src/syscalls.o - .debug_macro 0x0000000000018ad9 0x52 ./Core/Src/syscalls.o - .debug_macro 0x0000000000018b2b 0x22 ./Core/Src/syscalls.o - .debug_macro 0x0000000000018b4d 0x10 ./Core/Src/syscalls.o - .debug_macro 0x0000000000018b5d 0x40 ./Core/Src/syscalls.o - .debug_macro 0x0000000000018b9d 0xd5 ./Core/Src/syscalls.o - .debug_macro 0x0000000000018c72 0x1c ./Core/Src/syscalls.o - .debug_macro 0x0000000000018c8e 0x3d ./Core/Src/syscalls.o - .debug_macro 0x0000000000018ccb 0x35 ./Core/Src/syscalls.o - .debug_macro 0x0000000000018d00 0x12c ./Core/Src/syscalls.o - .debug_macro 0x0000000000018e2c 0x16 ./Core/Src/syscalls.o - .debug_macro 0x0000000000018e42 0x16 ./Core/Src/syscalls.o - .debug_macro 0x0000000000018e58 0x29 ./Core/Src/syscalls.o - .debug_macro 0x0000000000018e81 0x10 ./Core/Src/syscalls.o - .debug_macro 0x0000000000018e91 0x241 ./Core/Src/syscalls.o - .debug_macro 0x00000000000190d2 0x1c ./Core/Src/syscalls.o - .debug_macro 0x00000000000190ee 0x10 ./Core/Src/syscalls.o - .debug_macro 0x00000000000190fe 0x10 ./Core/Src/syscalls.o - .debug_macro 0x000000000001910e 0x16 ./Core/Src/syscalls.o - .debug_macro 0x0000000000019124 0x145 ./Core/Src/syscalls.o - .debug_macro 0x0000000000019269 0x189 ./Core/Src/syscalls.o - .debug_macro 0x00000000000193f2 0x16 ./Core/Src/syscalls.o - .debug_macro 0x0000000000019408 0xce ./Core/Src/syscalls.o - .debug_macro 0x00000000000194d6 0xff ./Core/Src/sysmem.o - .debug_macro 0x00000000000195d5 0x23b ./Core/Src/sysmem.o - .debug_macro 0x0000000000019810 0x1bd ./Core/Src/system_stm32f1xx.o - .debug_macro 0x00000000000199cd 0x1e1 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.o - .debug_macro 0x0000000000019bae 0x1bd ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.o - .debug_macro 0x0000000000019d6b 0x228 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio.o - .debug_macro 0x0000000000019f93 0x204 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o - .debug_macro 0x000000000001a197 0x1cf ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.o - .debug_macro 0x000000000001a366 0x1bd ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_sram.o - .debug_macro 0x000000000001a523 0x1be ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim.o - .debug_macro 0x000000000001a6e1 0x1bd ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim_ex.o - .debug_macro 0x000000000001a89e 0x1f6 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_fsmc.o - .debug_macro 0x000000000001aa94 0x1db ./HW_Devices/LCD.o - .debug_macro 0x000000000001ac6f 0x38b ./HW_Devices/LCD.o - .debug_macro 0x000000000001affa 0x1e6 ./HW_Devices/eeprom.o - .debug_macro 0x000000000001b1e0 0x1d6 ./HW_Devices/iic.o - .debug_macro 0x000000000001b3b6 0x20b ./HW_Devices/touch.o - .debug_macro 0x000000000001b5c1 0x22 ./HW_Devices/touch.o - .debug_macro 0x000000000001b5e3 0x391 ./HW_Devices/touch.o - .debug_macro 0x000000000001b974 0x10 ./HW_Devices/touch.o - .debug_macro 0x000000000001b984 0x2dc ./SW_APPs/APP_blood.o - .debug_macro 0x000000000001bc60 0x1a9 ./SW_APPs/APP_blood.o - .debug_macro 0x000000000001be09 0xbd ./SW_APPs/APP_blood.o - .debug_macro 0x000000000001bec6 0x56 ./SW_APPs/APP_blood.o - .debug_macro 0x000000000001bf1c 0x391 ./SW_APPs/APP_blood.o - .debug_macro 0x000000000001c2ad 0x9a ./SW_APPs/APP_blood.o - .debug_macro 0x000000000001c347 0x20e ./SW_APPs/Main_APP.o - .debug_macro 0x000000000001c555 0x28 ./SW_APPs/Main_APP.o - .debug_macro 0x000000000001c57d 0xa0 ./SW_APPs/Main_APP.o - .debug_macro 0x000000000001c61d 0x1fd ./SW_APPs/windows.o +.debug_macro 0x0000000000000000 0x1d58c + .debug_macro 0x0000000000000000 0x1e0 ./Core/Src/main.o + .debug_macro 0x00000000000001e0 0xa9c ./Core/Src/main.o + .debug_macro 0x0000000000000c7c 0x227 ./Core/Src/main.o + .debug_macro 0x0000000000000ea3 0x2e ./Core/Src/main.o + .debug_macro 0x0000000000000ed1 0x22 ./Core/Src/main.o + .debug_macro 0x0000000000000ef3 0x22 ./Core/Src/main.o + .debug_macro 0x0000000000000f15 0x8e ./Core/Src/main.o + .debug_macro 0x0000000000000fa3 0x51 ./Core/Src/main.o + .debug_macro 0x0000000000000ff4 0x103 ./Core/Src/main.o + .debug_macro 0x00000000000010f7 0x6a ./Core/Src/main.o + .debug_macro 0x0000000000001161 0x1df ./Core/Src/main.o + .debug_macro 0x0000000000001340 0x1c ./Core/Src/main.o + .debug_macro 0x000000000000135c 0x22 ./Core/Src/main.o + .debug_macro 0x000000000000137e 0xc3 ./Core/Src/main.o + .debug_macro 0x0000000000001441 0xd23 ./Core/Src/main.o + .debug_macro 0x0000000000002164 0xfd8c ./Core/Src/main.o + .debug_macro 0x0000000000011ef0 0x6d ./Core/Src/main.o + .debug_macro 0x0000000000011f5d 0x3468 ./Core/Src/main.o + .debug_macro 0x00000000000153c5 0x174 ./Core/Src/main.o + .debug_macro 0x0000000000015539 0x5c ./Core/Src/main.o + .debug_macro 0x0000000000015595 0x5be ./Core/Src/main.o + .debug_macro 0x0000000000015b53 0x4d5 ./Core/Src/main.o + .debug_macro 0x0000000000016028 0x1cb ./Core/Src/main.o + .debug_macro 0x00000000000161f3 0x114 ./Core/Src/main.o + .debug_macro 0x0000000000016307 0x1ea ./Core/Src/main.o + .debug_macro 0x00000000000164f1 0x27 ./Core/Src/main.o + .debug_macro 0x0000000000016518 0x144 ./Core/Src/main.o + .debug_macro 0x000000000001665c 0x1bc ./Core/Src/main.o + .debug_macro 0x0000000000016818 0x30 ./Core/Src/main.o + .debug_macro 0x0000000000016848 0x3c ./Core/Src/main.o + .debug_macro 0x0000000000016884 0x57 ./Core/Src/main.o + .debug_macro 0x00000000000168db 0x88 ./Core/Src/main.o + .debug_macro 0x0000000000016963 0x24f ./Core/Src/main.o + .debug_macro 0x0000000000016bb2 0x356 ./Core/Src/main.o + .debug_macro 0x0000000000016f08 0x287 ./Core/Src/main.o + .debug_macro 0x000000000001718f 0x141 ./Core/Src/main.o + .debug_macro 0x00000000000172d0 0x217 ./Core/Src/main.o + .debug_macro 0x00000000000174e7 0x8d1 ./Core/Src/main.o + .debug_macro 0x0000000000017db8 0xb5 ./Core/Src/main.o + .debug_macro 0x0000000000017e6d 0xac ./Core/Src/main.o + .debug_macro 0x0000000000017f19 0x1d6 ./Core/Src/stm32f1xx_hal_msp.o + .debug_macro 0x00000000000180ef 0x1e0 ./Core/Src/stm32f1xx_it.o + .debug_macro 0x00000000000182cf 0x24c ./Core/Src/syscalls.o + .debug_macro 0x000000000001851b 0x4c ./Core/Src/syscalls.o + .debug_macro 0x0000000000018567 0x18 ./Core/Src/syscalls.o + .debug_macro 0x000000000001857f 0x94 ./Core/Src/syscalls.o + .debug_macro 0x0000000000018613 0x3c ./Core/Src/syscalls.o + .debug_macro 0x000000000001864f 0x34 ./Core/Src/syscalls.o + .debug_macro 0x0000000000018683 0x57 ./Core/Src/syscalls.o + .debug_macro 0x00000000000186da 0x339 ./Core/Src/syscalls.o + .debug_macro 0x0000000000018a13 0x16 ./Core/Src/syscalls.o + .debug_macro 0x0000000000018a29 0x43 ./Core/Src/syscalls.o + .debug_macro 0x0000000000018a6c 0x34 ./Core/Src/syscalls.o + .debug_macro 0x0000000000018aa0 0x10 ./Core/Src/syscalls.o + .debug_macro 0x0000000000018ab0 0x58 ./Core/Src/syscalls.o + .debug_macro 0x0000000000018b08 0x71 ./Core/Src/syscalls.o + .debug_macro 0x0000000000018b79 0x1c ./Core/Src/syscalls.o + .debug_macro 0x0000000000018b95 0x12a ./Core/Src/syscalls.o + .debug_macro 0x0000000000018cbf 0x10 ./Core/Src/syscalls.o + .debug_macro 0x0000000000018ccf 0x35 ./Core/Src/syscalls.o + .debug_macro 0x0000000000018d04 0x10 ./Core/Src/syscalls.o + .debug_macro 0x0000000000018d14 0x10 ./Core/Src/syscalls.o + .debug_macro 0x0000000000018d24 0x10 ./Core/Src/syscalls.o + .debug_macro 0x0000000000018d34 0x1c ./Core/Src/syscalls.o + .debug_macro 0x0000000000018d50 0x52 ./Core/Src/syscalls.o + .debug_macro 0x0000000000018da2 0x22 ./Core/Src/syscalls.o + .debug_macro 0x0000000000018dc4 0x10 ./Core/Src/syscalls.o + .debug_macro 0x0000000000018dd4 0x40 ./Core/Src/syscalls.o + .debug_macro 0x0000000000018e14 0xd5 ./Core/Src/syscalls.o + .debug_macro 0x0000000000018ee9 0x1c ./Core/Src/syscalls.o + .debug_macro 0x0000000000018f05 0x3d ./Core/Src/syscalls.o + .debug_macro 0x0000000000018f42 0x35 ./Core/Src/syscalls.o + .debug_macro 0x0000000000018f77 0x12c ./Core/Src/syscalls.o + .debug_macro 0x00000000000190a3 0x16 ./Core/Src/syscalls.o + .debug_macro 0x00000000000190b9 0x16 ./Core/Src/syscalls.o + .debug_macro 0x00000000000190cf 0x29 ./Core/Src/syscalls.o + .debug_macro 0x00000000000190f8 0x10 ./Core/Src/syscalls.o + .debug_macro 0x0000000000019108 0x241 ./Core/Src/syscalls.o + .debug_macro 0x0000000000019349 0x1c ./Core/Src/syscalls.o + .debug_macro 0x0000000000019365 0x10 ./Core/Src/syscalls.o + .debug_macro 0x0000000000019375 0x10 ./Core/Src/syscalls.o + .debug_macro 0x0000000000019385 0x16 ./Core/Src/syscalls.o + .debug_macro 0x000000000001939b 0x145 ./Core/Src/syscalls.o + .debug_macro 0x00000000000194e0 0x189 ./Core/Src/syscalls.o + .debug_macro 0x0000000000019669 0x16 ./Core/Src/syscalls.o + .debug_macro 0x000000000001967f 0xce ./Core/Src/syscalls.o + .debug_macro 0x000000000001974d 0xff ./Core/Src/sysmem.o + .debug_macro 0x000000000001984c 0x23b ./Core/Src/sysmem.o + .debug_macro 0x0000000000019a87 0x1c7 ./Core/Src/system_stm32f1xx.o + .debug_macro 0x0000000000019c4e 0x1eb ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.o + .debug_macro 0x0000000000019e39 0x1c7 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.o + .debug_macro 0x000000000001a000 0x232 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio.o + .debug_macro 0x000000000001a232 0x20e ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + .debug_macro 0x000000000001a440 0x1d9 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.o + .debug_macro 0x000000000001a619 0x1cf ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o + .debug_macro 0x000000000001a7e8 0x1c7 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_sram.o + .debug_macro 0x000000000001a9af 0x1c8 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim.o + .debug_macro 0x000000000001ab77 0x1c7 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim_ex.o + .debug_macro 0x000000000001ad3e 0x200 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_fsmc.o + .debug_macro 0x000000000001af3e 0x1e5 ./HW_Devices/LCD.o + .debug_macro 0x000000000001b123 0x38b ./HW_Devices/LCD.o + .debug_macro 0x000000000001b4ae 0x1f0 ./HW_Devices/eeprom.o + .debug_macro 0x000000000001b69e 0x1e0 ./HW_Devices/iic.o + .debug_macro 0x000000000001b87e 0x1e5 ./HW_Devices/rs522.o + .debug_macro 0x000000000001ba63 0x244 ./HW_Devices/rs522.o + .debug_macro 0x000000000001bca7 0x215 ./HW_Devices/touch.o + .debug_macro 0x000000000001bebc 0x22 ./HW_Devices/touch.o + .debug_macro 0x000000000001bede 0x391 ./HW_Devices/touch.o + .debug_macro 0x000000000001c26f 0x10 ./HW_Devices/touch.o + .debug_macro 0x000000000001c27f 0x1fc ./SW_APPs/APP_IDcard.o + .debug_macro 0x000000000001c47b 0x391 ./SW_APPs/APP_IDcard.o + .debug_macro 0x000000000001c80c 0x24a ./SW_APPs/APP_IDcard.o + .debug_macro 0x000000000001ca56 0x2e6 ./SW_APPs/APP_blood.o + .debug_macro 0x000000000001cd3c 0x1a9 ./SW_APPs/APP_blood.o + .debug_macro 0x000000000001cee5 0xbd ./SW_APPs/APP_blood.o + .debug_macro 0x000000000001cfa2 0x56 ./SW_APPs/APP_blood.o + .debug_macro 0x000000000001cff8 0x9a ./SW_APPs/APP_blood.o + .debug_macro 0x000000000001d092 0x22b ./SW_APPs/Main_APP.o + .debug_macro 0x000000000001d2bd 0x28 ./SW_APPs/Main_APP.o + .debug_macro 0x000000000001d2e5 0xa0 ./SW_APPs/Main_APP.o + .debug_macro 0x000000000001d385 0x207 ./SW_APPs/windows.o -.debug_line 0x0000000000000000 0x14abb - .debug_line 0x0000000000000000 0x8e3 ./Core/Src/main.o - .debug_line 0x00000000000008e3 0x80f ./Core/Src/stm32f1xx_hal_msp.o - .debug_line 0x00000000000010f2 0x7b5 ./Core/Src/stm32f1xx_it.o - .debug_line 0x00000000000018a7 0x83e ./Core/Src/syscalls.o - .debug_line 0x00000000000020e5 0x534 ./Core/Src/sysmem.o - .debug_line 0x0000000000002619 0x759 ./Core/Src/system_stm32f1xx.o - .debug_line 0x0000000000002d72 0x87 ./Core/Startup/startup_stm32f103zetx.o - .debug_line 0x0000000000002df9 0x986 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.o - .debug_line 0x000000000000377f 0xb6e ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.o - .debug_line 0x00000000000042ed 0xa45 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio.o - .debug_line 0x0000000000004d32 0x3a70 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o - .debug_line 0x00000000000087a2 0xd94 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.o - .debug_line 0x0000000000009536 0xcf9 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_sram.o - .debug_line 0x000000000000a22f 0x354d ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim.o - .debug_line 0x000000000000d77c 0x1912 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim_ex.o - .debug_line 0x000000000000f08e 0x9e4 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_fsmc.o - .debug_line 0x000000000000fa72 0x10f2 ./HW_Devices/LCD.o - .debug_line 0x0000000000010b64 0x7c6 ./HW_Devices/eeprom.o - .debug_line 0x000000000001132a 0x6ed ./HW_Devices/iic.o - .debug_line 0x0000000000011a17 0xb44 ./HW_Devices/touch.o - .debug_line 0x000000000001255b 0x118f ./SW_APPs/APP_blood.o - .debug_line 0x00000000000136ea 0x789 ./SW_APPs/Main_APP.o - .debug_line 0x0000000000013e73 0xc48 ./SW_APPs/windows.o +.debug_line 0x0000000000000000 0x17dd7 + .debug_line 0x0000000000000000 0x962 ./Core/Src/main.o + .debug_line 0x0000000000000962 0x879 ./Core/Src/stm32f1xx_hal_msp.o + .debug_line 0x00000000000011db 0x7cc ./Core/Src/stm32f1xx_it.o + .debug_line 0x00000000000019a7 0x83e ./Core/Src/syscalls.o + .debug_line 0x00000000000021e5 0x534 ./Core/Src/sysmem.o + .debug_line 0x0000000000002719 0x770 ./Core/Src/system_stm32f1xx.o + .debug_line 0x0000000000002e89 0x87 ./Core/Startup/startup_stm32f103zetx.o + .debug_line 0x0000000000002f10 0x99d ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.o + .debug_line 0x00000000000038ad 0xb85 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.o + .debug_line 0x0000000000004432 0xa5c ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio.o + .debug_line 0x0000000000004e8e 0x3a87 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + .debug_line 0x0000000000008915 0xdab ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.o + .debug_line 0x00000000000096c0 0x1c22 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o + .debug_line 0x000000000000b2e2 0xd10 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_sram.o + .debug_line 0x000000000000bff2 0x3564 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim.o + .debug_line 0x000000000000f556 0x1929 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim_ex.o + .debug_line 0x0000000000010e7f 0x9fb ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_fsmc.o + .debug_line 0x000000000001187a 0x1109 ./HW_Devices/LCD.o + .debug_line 0x0000000000012983 0x7dd ./HW_Devices/eeprom.o + .debug_line 0x0000000000013160 0x704 ./HW_Devices/iic.o + .debug_line 0x0000000000013864 0xcdd ./HW_Devices/rs522.o + .debug_line 0x0000000000014541 0xb62 ./HW_Devices/touch.o + .debug_line 0x00000000000150a3 0x76b ./SW_APPs/APP_IDcard.o + .debug_line 0x000000000001580e 0x11a6 ./SW_APPs/APP_blood.o + .debug_line 0x00000000000169b4 0x7c4 ./SW_APPs/Main_APP.o + .debug_line 0x0000000000017178 0xc5f ./SW_APPs/windows.o -.debug_str 0x0000000000000000 0x9eb80 - .debug_str 0x0000000000000000 0x9400c ./Core/Src/main.o - 0x94565 (size before relaxing) - .debug_str 0x000000000009400c 0x3f7 ./Core/Src/stm32f1xx_hal_msp.o - 0x94758 (size before relaxing) - .debug_str 0x0000000000094403 0xbd ./Core/Src/stm32f1xx_it.o - 0x93e8b (size before relaxing) - .debug_str 0x00000000000944c0 0x5782 ./Core/Src/syscalls.o +.debug_str 0x0000000000000000 0xa0fa1 + .debug_str 0x0000000000000000 0x956ca ./Core/Src/main.o + 0x95c59 (size before relaxing) + .debug_str 0x00000000000956ca 0x41e ./Core/Src/stm32f1xx_hal_msp.o + 0x95e60 (size before relaxing) + .debug_str 0x0000000000095ae8 0xbd ./Core/Src/stm32f1xx_it.o + 0x9539e (size before relaxing) + .debug_str 0x0000000000095ba5 0x5782 ./Core/Src/syscalls.o 0x8e87 (size before relaxing) - .debug_str 0x0000000000099c42 0x6b ./Core/Src/sysmem.o + .debug_str 0x000000000009b327 0x6b ./Core/Src/sysmem.o 0x625a (size before relaxing) - .debug_str 0x0000000000099cad 0x52 ./Core/Src/system_stm32f1xx.o - 0x93808 (size before relaxing) - .debug_str 0x0000000000099cff 0x36 ./Core/Startup/startup_stm32f103zetx.o + .debug_str 0x000000000009b392 0x52 ./Core/Src/system_stm32f1xx.o + 0x94c46 (size before relaxing) + .debug_str 0x000000000009b3e4 0x36 ./Core/Startup/startup_stm32f103zetx.o 0x6e (size before relaxing) - .debug_str 0x0000000000099d35 0x2ff ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.o - 0x93f7d (size before relaxing) - .debug_str 0x000000000009a034 0x300 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.o - 0x93f85 (size before relaxing) - .debug_str 0x000000000009a334 0x31f ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio.o - 0x93bcc (size before relaxing) - .debug_str 0x000000000009a653 0xb47 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o - 0x94844 (size before relaxing) - .debug_str 0x000000000009b19a 0x244 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.o - 0x93c05 (size before relaxing) - .debug_str 0x000000000009b3de 0x1f7 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_sram.o - 0x93dfe (size before relaxing) - .debug_str 0x000000000009b5d5 0xe3e ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim.o - 0x94bd7 (size before relaxing) - .debug_str 0x000000000009c413 0x4ee ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim_ex.o - 0x94388 (size before relaxing) - .debug_str 0x000000000009c901 0x7ef ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_fsmc.o - 0x9419f (size before relaxing) - .debug_str 0x000000000009d0f0 0x814 ./HW_Devices/LCD.o - 0x94158 (size before relaxing) - .debug_str 0x000000000009d904 0x127 ./HW_Devices/eeprom.o - 0x93a53 (size before relaxing) - .debug_str 0x000000000009da2b 0x30 ./HW_Devices/iic.o - 0x93dd0 (size before relaxing) - .debug_str 0x000000000009da5b 0x288 ./HW_Devices/touch.o - 0x94242 (size before relaxing) - .debug_str 0x000000000009dce3 0xce5 ./SW_APPs/APP_blood.o - 0x98346 (size before relaxing) - .debug_str 0x000000000009e9c8 0x98 ./SW_APPs/Main_APP.o - 0x94402 (size before relaxing) - .debug_str 0x000000000009ea60 0x120 ./SW_APPs/windows.o - 0x94298 (size before relaxing) + .debug_str 0x000000000009b41a 0x2f5 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.o + 0x953bb (size before relaxing) + .debug_str 0x000000000009b70f 0x300 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.o + 0x953c3 (size before relaxing) + .debug_str 0x000000000009ba0f 0x31f ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio.o + 0x9500a (size before relaxing) + .debug_str 0x000000000009bd2e 0xb47 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + 0x95c82 (size before relaxing) + .debug_str 0x000000000009c875 0x244 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.o + 0x95043 (size before relaxing) + .debug_str 0x000000000009cab9 0x52e ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o + 0x95558 (size before relaxing) + .debug_str 0x000000000009cfe7 0x1f7 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_sram.o + 0x9523c (size before relaxing) + .debug_str 0x000000000009d1de 0xe3e ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim.o + 0x96015 (size before relaxing) + .debug_str 0x000000000009e01c 0x4ee ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim_ex.o + 0x957c6 (size before relaxing) + .debug_str 0x000000000009e50a 0x7ef ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_fsmc.o + 0x955dd (size before relaxing) + .debug_str 0x000000000009ecf9 0x814 ./HW_Devices/LCD.o + 0x9566b (size before relaxing) + .debug_str 0x000000000009f50d 0x127 ./HW_Devices/eeprom.o + 0x94f66 (size before relaxing) + .debug_str 0x000000000009f634 0x30 ./HW_Devices/iic.o + 0x952e3 (size before relaxing) + .debug_str 0x000000000009f664 0x7c3 ./HW_Devices/rs522.o + 0x959c4 (size before relaxing) + .debug_str 0x000000000009fe27 0x288 ./HW_Devices/touch.o + 0x9575a (size before relaxing) + .debug_str 0x00000000000a00af 0x80 ./SW_APPs/APP_IDcard.o + 0x95ae5 (size before relaxing) + .debug_str 0x00000000000a012f 0xcba ./SW_APPs/APP_blood.o + 0x99859 (size before relaxing) + .debug_str 0x00000000000a0de9 0x98 ./SW_APPs/Main_APP.o + 0x95f1a (size before relaxing) + .debug_str 0x00000000000a0e81 0x120 ./SW_APPs/windows.o + 0x957ab (size before relaxing) .comment 0x0000000000000000 0x53 .comment 0x0000000000000000 0x53 ./Core/Src/main.o @@ -5206,6 +5682,7 @@ LOAD /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.id .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_spi.o .comment 0x0000000000000053 0x54 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_sram.o .comment 0x0000000000000053 0x54 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim.o .comment 0x0000000000000053 0x54 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim_ex.o @@ -5213,89 +5690,90 @@ LOAD /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.id .comment 0x0000000000000053 0x54 ./HW_Devices/LCD.o .comment 0x0000000000000053 0x54 ./HW_Devices/eeprom.o .comment 0x0000000000000053 0x54 ./HW_Devices/iic.o + .comment 0x0000000000000053 0x54 ./HW_Devices/rs522.o .comment 0x0000000000000053 0x54 ./HW_Devices/touch.o + .comment 0x0000000000000053 0x54 ./SW_APPs/APP_IDcard.o .comment 0x0000000000000053 0x54 ./SW_APPs/APP_blood.o .comment 0x0000000000000053 0x54 ./SW_APPs/Main_APP.o .comment 0x0000000000000053 0x54 ./SW_APPs/windows.o -.debug_frame 0x0000000000000000 0x5974 - .debug_frame 0x0000000000000000 0xf0 ./Core/Src/main.o - .debug_frame 0x00000000000000f0 0x150 ./Core/Src/stm32f1xx_hal_msp.o - .debug_frame 0x0000000000000240 0x120 ./Core/Src/stm32f1xx_it.o - .debug_frame 0x0000000000000360 0x2ac ./Core/Src/syscalls.o - .debug_frame 0x000000000000060c 0x34 ./Core/Src/sysmem.o - .debug_frame 0x0000000000000640 0x58 ./Core/Src/system_stm32f1xx.o - .debug_frame 0x0000000000000698 0x334 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.o - .debug_frame 0x00000000000009cc 0x428 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.o - .debug_frame 0x0000000000000df4 0x14c ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio.o - .debug_frame 0x0000000000000f40 0xc5c ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o - .debug_frame 0x0000000000001b9c 0x21c ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.o - .debug_frame 0x0000000000001db8 0x30c ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_sram.o - .debug_frame 0x00000000000020c4 0x11bc ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim.o - .debug_frame 0x0000000000003280 0x638 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim_ex.o - .debug_frame 0x00000000000038b8 0x2dc ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_fsmc.o - .debug_frame 0x0000000000003b94 0x33c ./HW_Devices/LCD.o - .debug_frame 0x0000000000003ed0 0x9c ./HW_Devices/eeprom.o - .debug_frame 0x0000000000003f6c 0x58 ./HW_Devices/iic.o - .debug_frame 0x0000000000003fc4 0x164 ./HW_Devices/touch.o - .debug_frame 0x0000000000004128 0x260 ./SW_APPs/APP_blood.o - .debug_frame 0x0000000000004388 0x30 ./SW_APPs/Main_APP.o - .debug_frame 0x00000000000043b8 0x1b0 ./SW_APPs/windows.o - .debug_frame 0x0000000000004568 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 0x0000000000004588 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 0x00000000000045b4 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 0x00000000000045e4 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 0x0000000000004604 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 0x000000000000463c 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 0x000000000000466c 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 0x0000000000004700 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 0x0000000000004760 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 0x000000000000478c 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 0x00000000000047f8 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 0x0000000000004864 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 0x00000000000048a4 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 0x00000000000048cc 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 0x00000000000048f4 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 0x0000000000004924 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 0x0000000000004b78 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 0x0000000000004ba4 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 0x0000000000004c34 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 0x0000000000004c90 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 0x0000000000004cd0 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 0x0000000000004d34 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 0x0000000000004d7c 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 0x0000000000004e2c 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 0x0000000000004e74 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 0x0000000000004e9c 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 0x0000000000004ed8 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 0x0000000000004f84 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 0x0000000000004fc4 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 0x0000000000005000 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 0x000000000000502c 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 0x0000000000005054 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 0x00000000000050b0 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 0x00000000000051fc 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 0x0000000000005250 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 0x00000000000052a8 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 0x00000000000052c8 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 0x0000000000005394 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 0x00000000000053d0 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 0x0000000000005458 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 0x0000000000005484 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 0x00000000000054b0 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 0x00000000000054dc 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 0x0000000000005508 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 0x0000000000005534 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 0x0000000000005560 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/libm.a(lib_a-wf_sqrt.o) - .debug_frame 0x000000000000558c 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/libm.a(lib_a-ef_sqrt.o) - .debug_frame 0x00000000000055b8 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 0x0000000000005664 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 0x00000000000056b4 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 0x0000000000005778 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 0x0000000000005798 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 0x00000000000057bc 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 0x00000000000057e0 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 0x000000000000582c 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 0x0000000000005864 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/thumb/v7-m/nofp/libgcc.a(_arm_cmpsf2.o) - .debug_frame 0x000000000000592c 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_unordsf2.o) - .debug_frame 0x0000000000005950 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 0x63c8 + .debug_frame 0x0000000000000000 0x10c ./Core/Src/main.o + .debug_frame 0x000000000000010c 0x198 ./Core/Src/stm32f1xx_hal_msp.o + .debug_frame 0x00000000000002a4 0x120 ./Core/Src/stm32f1xx_it.o + .debug_frame 0x00000000000003c4 0x2ac ./Core/Src/syscalls.o + .debug_frame 0x0000000000000670 0x34 ./Core/Src/sysmem.o + .debug_frame 0x00000000000006a4 0x58 ./Core/Src/system_stm32f1xx.o + .debug_frame 0x00000000000006fc 0x334 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.o + .debug_frame 0x0000000000000a30 0x428 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.o + .debug_frame 0x0000000000000e58 0x14c ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio.o + .debug_frame 0x0000000000000fa4 0xc5c ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.o + .debug_frame 0x0000000000001c00 0x21c ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.o + .debug_frame 0x0000000000001e1c 0x824 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o + .debug_frame 0x0000000000002640 0x30c ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_sram.o + .debug_frame 0x000000000000294c 0x11bc ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim.o + .debug_frame 0x0000000000003b08 0x638 ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim_ex.o + .debug_frame 0x0000000000004140 0x2dc ./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_fsmc.o + .debug_frame 0x000000000000441c 0x33c ./HW_Devices/LCD.o + .debug_frame 0x0000000000004758 0x9c ./HW_Devices/eeprom.o + .debug_frame 0x00000000000047f4 0x58 ./HW_Devices/iic.o + .debug_frame 0x000000000000484c 0x2bc ./HW_Devices/rs522.o + .debug_frame 0x0000000000004b08 0x164 ./HW_Devices/touch.o + .debug_frame 0x0000000000004c6c 0x54 ./SW_APPs/APP_IDcard.o + .debug_frame 0x0000000000004cc0 0x260 ./SW_APPs/APP_blood.o + .debug_frame 0x0000000000004f20 0x30 ./SW_APPs/Main_APP.o + .debug_frame 0x0000000000004f50 0x1b0 ./SW_APPs/windows.o + .debug_frame 0x0000000000005100 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 0x0000000000005120 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 0x000000000000514c 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 0x000000000000517c 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 0x000000000000519c 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 0x00000000000051d4 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 0x0000000000005204 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 0x0000000000005298 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 0x00000000000052f8 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 0x0000000000005324 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 0x0000000000005390 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 0x00000000000053fc 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 0x000000000000543c 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 0x0000000000005464 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 0x000000000000548c 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 0x00000000000054bc 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 0x0000000000005710 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 0x000000000000573c 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 0x00000000000057cc 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 0x0000000000005828 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 0x0000000000005868 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 0x00000000000058cc 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 0x0000000000005914 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 0x00000000000059c4 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 0x0000000000005a0c 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 0x0000000000005a34 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 0x0000000000005a70 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 0x0000000000005b1c 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 0x0000000000005b5c 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 0x0000000000005b98 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 0x0000000000005bc4 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 0x0000000000005bec 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 0x0000000000005c48 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 0x0000000000005d94 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 0x0000000000005de8 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 0x0000000000005e40 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 0x0000000000005e60 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 0x0000000000005f2c 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 0x0000000000005f68 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 0x0000000000005ff0 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 0x000000000000601c 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 0x0000000000006048 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 0x0000000000006074 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 0x00000000000060a0 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 0x00000000000060cc 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 0x00000000000060f8 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 0x00000000000061a4 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 0x00000000000061f4 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 0x00000000000062b8 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 0x00000000000062d8 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 0x00000000000062fc 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 0x0000000000006320 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 0x000000000000636c 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 0x00000000000063a4 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 1804bc7..d98e58f 100644 --- a/Debug/objects.list +++ b/Debug/objects.list @@ -17,6 +17,7 @@ "./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" +"./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.o" "./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_sram.o" "./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim.o" "./Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim_ex.o" @@ -24,7 +25,9 @@ "./HW_Devices/LCD.o" "./HW_Devices/eeprom.o" "./HW_Devices/iic.o" +"./HW_Devices/rs522.o" "./HW_Devices/touch.o" +"./SW_APPs/APP_IDcard.o" "./SW_APPs/APP_blood.o" "./SW_APPs/Main_APP.o" "./SW_APPs/windows.o" diff --git a/Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_spi.h b/Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_spi.h new file mode 100644 index 0000000..49f223c --- /dev/null +++ b/Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_spi.h @@ -0,0 +1,731 @@ +/** + ****************************************************************************** + * @file stm32f1xx_hal_spi.h + * @author MCD Application Team + * @brief Header file of SPI 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_SPI_H +#define STM32F1xx_HAL_SPI_H + +#ifdef __cplusplus +extern "C" { +#endif + +/* Includes ------------------------------------------------------------------*/ +#include "stm32f1xx_hal_def.h" + +/** @addtogroup STM32F1xx_HAL_Driver + * @{ + */ + +/** @addtogroup SPI + * @{ + */ + +/* Exported types ------------------------------------------------------------*/ +/** @defgroup SPI_Exported_Types SPI Exported Types + * @{ + */ + +/** + * @brief SPI Configuration Structure definition + */ +typedef struct +{ + uint32_t Mode; /*!< Specifies the SPI operating mode. + This parameter can be a value of @ref SPI_Mode */ + + uint32_t Direction; /*!< Specifies the SPI bidirectional mode state. + This parameter can be a value of @ref SPI_Direction */ + + uint32_t DataSize; /*!< Specifies the SPI data size. + This parameter can be a value of @ref SPI_Data_Size */ + + uint32_t CLKPolarity; /*!< Specifies the serial clock steady state. + This parameter can be a value of @ref SPI_Clock_Polarity */ + + uint32_t CLKPhase; /*!< Specifies the clock active edge for the bit capture. + This parameter can be a value of @ref SPI_Clock_Phase */ + + uint32_t NSS; /*!< Specifies whether the NSS signal is managed by + hardware (NSS pin) or by software using the SSI bit. + This parameter can be a value of @ref SPI_Slave_Select_management */ + + uint32_t BaudRatePrescaler; /*!< Specifies the Baud Rate prescaler value which will be + used to configure the transmit and receive SCK clock. + This parameter can be a value of @ref SPI_BaudRate_Prescaler + @note The communication clock is derived from the master + clock. The slave clock does not need to be set. */ + + uint32_t FirstBit; /*!< Specifies whether data transfers start from MSB or LSB bit. + This parameter can be a value of @ref SPI_MSB_LSB_transmission */ + + uint32_t TIMode; /*!< Specifies if the TI mode is enabled or not. + This parameter can be a value of @ref SPI_TI_mode */ + + uint32_t CRCCalculation; /*!< Specifies if the CRC calculation is enabled or not. + This parameter can be a value of @ref SPI_CRC_Calculation */ + + uint32_t CRCPolynomial; /*!< Specifies the polynomial used for the CRC calculation. + This parameter must be an odd number between Min_Data = 1 and Max_Data = 65535 */ +} SPI_InitTypeDef; + +/** + * @brief HAL SPI State structure definition + */ +typedef enum +{ + HAL_SPI_STATE_RESET = 0x00U, /*!< Peripheral not Initialized */ + HAL_SPI_STATE_READY = 0x01U, /*!< Peripheral Initialized and ready for use */ + HAL_SPI_STATE_BUSY = 0x02U, /*!< an internal process is ongoing */ + HAL_SPI_STATE_BUSY_TX = 0x03U, /*!< Data Transmission process is ongoing */ + HAL_SPI_STATE_BUSY_RX = 0x04U, /*!< Data Reception process is ongoing */ + HAL_SPI_STATE_BUSY_TX_RX = 0x05U, /*!< Data Transmission and Reception process is ongoing */ + HAL_SPI_STATE_ERROR = 0x06U, /*!< SPI error state */ + HAL_SPI_STATE_ABORT = 0x07U /*!< SPI abort is ongoing */ +} HAL_SPI_StateTypeDef; + +/** + * @brief SPI handle Structure definition + */ +typedef struct __SPI_HandleTypeDef +{ + SPI_TypeDef *Instance; /*!< SPI registers base address */ + + SPI_InitTypeDef Init; /*!< SPI communication parameters */ + + uint8_t *pTxBuffPtr; /*!< Pointer to SPI Tx transfer Buffer */ + + uint16_t TxXferSize; /*!< SPI Tx Transfer size */ + + __IO uint16_t TxXferCount; /*!< SPI Tx Transfer Counter */ + + uint8_t *pRxBuffPtr; /*!< Pointer to SPI Rx transfer Buffer */ + + uint16_t RxXferSize; /*!< SPI Rx Transfer size */ + + __IO uint16_t RxXferCount; /*!< SPI Rx Transfer Counter */ + + void (*RxISR)(struct __SPI_HandleTypeDef *hspi); /*!< function pointer on Rx ISR */ + + void (*TxISR)(struct __SPI_HandleTypeDef *hspi); /*!< function pointer on Tx ISR */ + + DMA_HandleTypeDef *hdmatx; /*!< SPI Tx DMA Handle parameters */ + + DMA_HandleTypeDef *hdmarx; /*!< SPI Rx DMA Handle parameters */ + + HAL_LockTypeDef Lock; /*!< Locking object */ + + __IO HAL_SPI_StateTypeDef State; /*!< SPI communication state */ + + __IO uint32_t ErrorCode; /*!< SPI Error code */ + +#if (USE_HAL_SPI_REGISTER_CALLBACKS == 1U) + void (* TxCpltCallback)(struct __SPI_HandleTypeDef *hspi); /*!< SPI Tx Completed callback */ + void (* RxCpltCallback)(struct __SPI_HandleTypeDef *hspi); /*!< SPI Rx Completed callback */ + void (* TxRxCpltCallback)(struct __SPI_HandleTypeDef *hspi); /*!< SPI TxRx Completed callback */ + void (* TxHalfCpltCallback)(struct __SPI_HandleTypeDef *hspi); /*!< SPI Tx Half Completed callback */ + void (* RxHalfCpltCallback)(struct __SPI_HandleTypeDef *hspi); /*!< SPI Rx Half Completed callback */ + void (* TxRxHalfCpltCallback)(struct __SPI_HandleTypeDef *hspi); /*!< SPI TxRx Half Completed callback */ + void (* ErrorCallback)(struct __SPI_HandleTypeDef *hspi); /*!< SPI Error callback */ + void (* AbortCpltCallback)(struct __SPI_HandleTypeDef *hspi); /*!< SPI Abort callback */ + void (* MspInitCallback)(struct __SPI_HandleTypeDef *hspi); /*!< SPI Msp Init callback */ + void (* MspDeInitCallback)(struct __SPI_HandleTypeDef *hspi); /*!< SPI Msp DeInit callback */ + +#endif /* USE_HAL_SPI_REGISTER_CALLBACKS */ +} SPI_HandleTypeDef; + +#if (USE_HAL_SPI_REGISTER_CALLBACKS == 1U) +/** + * @brief HAL SPI Callback ID enumeration definition + */ +typedef enum +{ + HAL_SPI_TX_COMPLETE_CB_ID = 0x00U, /*!< SPI Tx Completed callback ID */ + HAL_SPI_RX_COMPLETE_CB_ID = 0x01U, /*!< SPI Rx Completed callback ID */ + HAL_SPI_TX_RX_COMPLETE_CB_ID = 0x02U, /*!< SPI TxRx Completed callback ID */ + HAL_SPI_TX_HALF_COMPLETE_CB_ID = 0x03U, /*!< SPI Tx Half Completed callback ID */ + HAL_SPI_RX_HALF_COMPLETE_CB_ID = 0x04U, /*!< SPI Rx Half Completed callback ID */ + HAL_SPI_TX_RX_HALF_COMPLETE_CB_ID = 0x05U, /*!< SPI TxRx Half Completed callback ID */ + HAL_SPI_ERROR_CB_ID = 0x06U, /*!< SPI Error callback ID */ + HAL_SPI_ABORT_CB_ID = 0x07U, /*!< SPI Abort callback ID */ + HAL_SPI_MSPINIT_CB_ID = 0x08U, /*!< SPI Msp Init callback ID */ + HAL_SPI_MSPDEINIT_CB_ID = 0x09U /*!< SPI Msp DeInit callback ID */ + +} HAL_SPI_CallbackIDTypeDef; + +/** + * @brief HAL SPI Callback pointer definition + */ +typedef void (*pSPI_CallbackTypeDef)(SPI_HandleTypeDef *hspi); /*!< pointer to an SPI callback function */ + +#endif /* USE_HAL_SPI_REGISTER_CALLBACKS */ +/** + * @} + */ + +/* Exported constants --------------------------------------------------------*/ +/** @defgroup SPI_Exported_Constants SPI Exported Constants + * @{ + */ + +/** @defgroup SPI_Error_Code SPI Error Code + * @{ + */ +#define HAL_SPI_ERROR_NONE (0x00000000U) /*!< No error */ +#define HAL_SPI_ERROR_MODF (0x00000001U) /*!< MODF error */ +#define HAL_SPI_ERROR_CRC (0x00000002U) /*!< CRC error */ +#define HAL_SPI_ERROR_OVR (0x00000004U) /*!< OVR error */ +#define HAL_SPI_ERROR_DMA (0x00000010U) /*!< DMA transfer error */ +#define HAL_SPI_ERROR_FLAG (0x00000020U) /*!< Error on RXNE/TXE/BSY Flag */ +#define HAL_SPI_ERROR_ABORT (0x00000040U) /*!< Error during SPI Abort procedure */ +#if (USE_HAL_SPI_REGISTER_CALLBACKS == 1U) +#define HAL_SPI_ERROR_INVALID_CALLBACK (0x00000080U) /*!< Invalid Callback error */ +#endif /* USE_HAL_SPI_REGISTER_CALLBACKS */ +/** + * @} + */ + +/** @defgroup SPI_Mode SPI Mode + * @{ + */ +#define SPI_MODE_SLAVE (0x00000000U) +#define SPI_MODE_MASTER (SPI_CR1_MSTR | SPI_CR1_SSI) +/** + * @} + */ + +/** @defgroup SPI_Direction SPI Direction Mode + * @{ + */ +#define SPI_DIRECTION_2LINES (0x00000000U) +#define SPI_DIRECTION_2LINES_RXONLY SPI_CR1_RXONLY +#define SPI_DIRECTION_1LINE SPI_CR1_BIDIMODE +/** + * @} + */ + +/** @defgroup SPI_Data_Size SPI Data Size + * @{ + */ +#define SPI_DATASIZE_8BIT (0x00000000U) +#define SPI_DATASIZE_16BIT SPI_CR1_DFF +/** + * @} + */ + +/** @defgroup SPI_Clock_Polarity SPI Clock Polarity + * @{ + */ +#define SPI_POLARITY_LOW (0x00000000U) +#define SPI_POLARITY_HIGH SPI_CR1_CPOL +/** + * @} + */ + +/** @defgroup SPI_Clock_Phase SPI Clock Phase + * @{ + */ +#define SPI_PHASE_1EDGE (0x00000000U) +#define SPI_PHASE_2EDGE SPI_CR1_CPHA +/** + * @} + */ + +/** @defgroup SPI_Slave_Select_management SPI Slave Select Management + * @{ + */ +#define SPI_NSS_SOFT SPI_CR1_SSM +#define SPI_NSS_HARD_INPUT (0x00000000U) +#define SPI_NSS_HARD_OUTPUT (SPI_CR2_SSOE << 16U) +/** + * @} + */ + +/** @defgroup SPI_BaudRate_Prescaler SPI BaudRate Prescaler + * @{ + */ +#define SPI_BAUDRATEPRESCALER_2 (0x00000000U) +#define SPI_BAUDRATEPRESCALER_4 (SPI_CR1_BR_0) +#define SPI_BAUDRATEPRESCALER_8 (SPI_CR1_BR_1) +#define SPI_BAUDRATEPRESCALER_16 (SPI_CR1_BR_1 | SPI_CR1_BR_0) +#define SPI_BAUDRATEPRESCALER_32 (SPI_CR1_BR_2) +#define SPI_BAUDRATEPRESCALER_64 (SPI_CR1_BR_2 | SPI_CR1_BR_0) +#define SPI_BAUDRATEPRESCALER_128 (SPI_CR1_BR_2 | SPI_CR1_BR_1) +#define SPI_BAUDRATEPRESCALER_256 (SPI_CR1_BR_2 | SPI_CR1_BR_1 | SPI_CR1_BR_0) +/** + * @} + */ + +/** @defgroup SPI_MSB_LSB_transmission SPI MSB LSB Transmission + * @{ + */ +#define SPI_FIRSTBIT_MSB (0x00000000U) +#define SPI_FIRSTBIT_LSB SPI_CR1_LSBFIRST +/** + * @} + */ + +/** @defgroup SPI_TI_mode SPI TI Mode + * @{ + */ +#define SPI_TIMODE_DISABLE (0x00000000U) +/** + * @} + */ + +/** @defgroup SPI_CRC_Calculation SPI CRC Calculation + * @{ + */ +#define SPI_CRCCALCULATION_DISABLE (0x00000000U) +#define SPI_CRCCALCULATION_ENABLE SPI_CR1_CRCEN +/** + * @} + */ + +/** @defgroup SPI_Interrupt_definition SPI Interrupt Definition + * @{ + */ +#define SPI_IT_TXE SPI_CR2_TXEIE +#define SPI_IT_RXNE SPI_CR2_RXNEIE +#define SPI_IT_ERR SPI_CR2_ERRIE +/** + * @} + */ + +/** @defgroup SPI_Flags_definition SPI Flags Definition + * @{ + */ +#define SPI_FLAG_RXNE SPI_SR_RXNE /* SPI status flag: Rx buffer not empty flag */ +#define SPI_FLAG_TXE SPI_SR_TXE /* SPI status flag: Tx buffer empty flag */ +#define SPI_FLAG_BSY SPI_SR_BSY /* SPI status flag: Busy flag */ +#define SPI_FLAG_CRCERR SPI_SR_CRCERR /* SPI Error flag: CRC error flag */ +#define SPI_FLAG_MODF SPI_SR_MODF /* SPI Error flag: Mode fault flag */ +#define SPI_FLAG_OVR SPI_SR_OVR /* SPI Error flag: Overrun flag */ +#define SPI_FLAG_MASK (SPI_SR_RXNE | SPI_SR_TXE | SPI_SR_BSY\ + | SPI_SR_CRCERR | SPI_SR_MODF | SPI_SR_OVR) +/** + * @} + */ + +/** + * @} + */ + +/* Exported macros -----------------------------------------------------------*/ +/** @defgroup SPI_Exported_Macros SPI Exported Macros + * @{ + */ + +/** @brief Reset SPI handle state. + * @param __HANDLE__ specifies the SPI Handle. + * This parameter can be SPI where x: 1, 2, or 3 to select the SPI peripheral. + * @retval None + */ +#if (USE_HAL_SPI_REGISTER_CALLBACKS == 1U) +#define __HAL_SPI_RESET_HANDLE_STATE(__HANDLE__) do{ \ + (__HANDLE__)->State = HAL_SPI_STATE_RESET; \ + (__HANDLE__)->MspInitCallback = NULL; \ + (__HANDLE__)->MspDeInitCallback = NULL; \ + } while(0) +#else +#define __HAL_SPI_RESET_HANDLE_STATE(__HANDLE__) ((__HANDLE__)->State = HAL_SPI_STATE_RESET) +#endif /* USE_HAL_SPI_REGISTER_CALLBACKS */ + +/** @brief Enable the specified SPI interrupts. + * @param __HANDLE__ specifies the SPI Handle. + * This parameter can be SPI where x: 1, 2, or 3 to select the SPI peripheral. + * @param __INTERRUPT__ specifies the interrupt source to enable. + * This parameter can be one of the following values: + * @arg SPI_IT_TXE: Tx buffer empty interrupt enable + * @arg SPI_IT_RXNE: RX buffer not empty interrupt enable + * @arg SPI_IT_ERR: Error interrupt enable + * @retval None + */ +#define __HAL_SPI_ENABLE_IT(__HANDLE__, __INTERRUPT__) SET_BIT((__HANDLE__)->Instance->CR2, (__INTERRUPT__)) + +/** @brief Disable the specified SPI interrupts. + * @param __HANDLE__ specifies the SPI handle. + * This parameter can be SPIx where x: 1, 2, or 3 to select the SPI peripheral. + * @param __INTERRUPT__ specifies the interrupt source to disable. + * This parameter can be one of the following values: + * @arg SPI_IT_TXE: Tx buffer empty interrupt enable + * @arg SPI_IT_RXNE: RX buffer not empty interrupt enable + * @arg SPI_IT_ERR: Error interrupt enable + * @retval None + */ +#define __HAL_SPI_DISABLE_IT(__HANDLE__, __INTERRUPT__) CLEAR_BIT((__HANDLE__)->Instance->CR2, (__INTERRUPT__)) + +/** @brief Check whether the specified SPI interrupt source is enabled or not. + * @param __HANDLE__ specifies the SPI Handle. + * This parameter can be SPI where x: 1, 2, or 3 to select the SPI peripheral. + * @param __INTERRUPT__ specifies the SPI interrupt source to check. + * This parameter can be one of the following values: + * @arg SPI_IT_TXE: Tx buffer empty interrupt enable + * @arg SPI_IT_RXNE: RX buffer not empty interrupt enable + * @arg SPI_IT_ERR: Error interrupt enable + * @retval The new state of __IT__ (TRUE or FALSE). + */ +#define __HAL_SPI_GET_IT_SOURCE(__HANDLE__, __INTERRUPT__) ((((__HANDLE__)->Instance->CR2\ + & (__INTERRUPT__)) == (__INTERRUPT__)) ? SET : RESET) + +/** @brief Check whether the specified SPI flag is set or not. + * @param __HANDLE__ specifies the SPI Handle. + * This parameter can be SPI where x: 1, 2, or 3 to select the SPI peripheral. + * @param __FLAG__ specifies the flag to check. + * This parameter can be one of the following values: + * @arg SPI_FLAG_RXNE: Receive buffer not empty flag + * @arg SPI_FLAG_TXE: Transmit buffer empty flag + * @arg SPI_FLAG_CRCERR: CRC error flag + * @arg SPI_FLAG_MODF: Mode fault flag + * @arg SPI_FLAG_OVR: Overrun flag + * @arg SPI_FLAG_BSY: Busy flag + * @retval The new state of __FLAG__ (TRUE or FALSE). + */ +#define __HAL_SPI_GET_FLAG(__HANDLE__, __FLAG__) ((((__HANDLE__)->Instance->SR) & (__FLAG__)) == (__FLAG__)) + +/** @brief Clear the SPI CRCERR pending flag. + * @param __HANDLE__ specifies the SPI Handle. + * This parameter can be SPI where x: 1, 2, or 3 to select the SPI peripheral. + * @retval None + */ +#define __HAL_SPI_CLEAR_CRCERRFLAG(__HANDLE__) ((__HANDLE__)->Instance->SR = (uint16_t)(~SPI_FLAG_CRCERR)) + +/** @brief Clear the SPI MODF pending flag. + * @param __HANDLE__ specifies the SPI Handle. + * This parameter can be SPI where x: 1, 2, or 3 to select the SPI peripheral. + * @retval None + */ +#define __HAL_SPI_CLEAR_MODFFLAG(__HANDLE__) \ + do{ \ + __IO uint32_t tmpreg_modf = 0x00U; \ + tmpreg_modf = (__HANDLE__)->Instance->SR; \ + CLEAR_BIT((__HANDLE__)->Instance->CR1, SPI_CR1_SPE); \ + UNUSED(tmpreg_modf); \ + } while(0U) + +/** @brief Clear the SPI OVR pending flag. + * @param __HANDLE__ specifies the SPI Handle. + * This parameter can be SPI where x: 1, 2, or 3 to select the SPI peripheral. + * @retval None + */ +#define __HAL_SPI_CLEAR_OVRFLAG(__HANDLE__) \ + do{ \ + __IO uint32_t tmpreg_ovr = 0x00U; \ + tmpreg_ovr = (__HANDLE__)->Instance->DR; \ + tmpreg_ovr = (__HANDLE__)->Instance->SR; \ + UNUSED(tmpreg_ovr); \ + } while(0U) + +/** @brief Enable the SPI peripheral. + * @param __HANDLE__ specifies the SPI Handle. + * This parameter can be SPI where x: 1, 2, or 3 to select the SPI peripheral. + * @retval None + */ +#define __HAL_SPI_ENABLE(__HANDLE__) SET_BIT((__HANDLE__)->Instance->CR1, SPI_CR1_SPE) + +/** @brief Disable the SPI peripheral. + * @param __HANDLE__ specifies the SPI Handle. + * This parameter can be SPI where x: 1, 2, or 3 to select the SPI peripheral. + * @retval None + */ +#define __HAL_SPI_DISABLE(__HANDLE__) CLEAR_BIT((__HANDLE__)->Instance->CR1, SPI_CR1_SPE) + +/** + * @} + */ + +/* Private constants ---------------------------------------------------------*/ +/** @defgroup SPI_Private_Constants SPI Private Constants + * @{ + */ +#define SPI_INVALID_CRC_ERROR 0U /* CRC error wrongly detected */ +#define SPI_VALID_CRC_ERROR 1U /* CRC error is true */ +/** + * @} + */ + +/* Private macros ------------------------------------------------------------*/ +/** @defgroup SPI_Private_Macros SPI Private Macros + * @{ + */ + +/** @brief Set the SPI transmit-only mode. + * @param __HANDLE__ specifies the SPI Handle. + * This parameter can be SPI where x: 1, 2, or 3 to select the SPI peripheral. + * @retval None + */ +#define SPI_1LINE_TX(__HANDLE__) SET_BIT((__HANDLE__)->Instance->CR1, SPI_CR1_BIDIOE) + +/** @brief Set the SPI receive-only mode. + * @param __HANDLE__ specifies the SPI Handle. + * This parameter can be SPI where x: 1, 2, or 3 to select the SPI peripheral. + * @retval None + */ +#define SPI_1LINE_RX(__HANDLE__) CLEAR_BIT((__HANDLE__)->Instance->CR1, SPI_CR1_BIDIOE) + +/** @brief Reset the CRC calculation of the SPI. + * @param __HANDLE__ specifies the SPI Handle. + * This parameter can be SPI where x: 1, 2, or 3 to select the SPI peripheral. + * @retval None + */ +#define SPI_RESET_CRC(__HANDLE__) do{CLEAR_BIT((__HANDLE__)->Instance->CR1, SPI_CR1_CRCEN);\ + SET_BIT((__HANDLE__)->Instance->CR1, SPI_CR1_CRCEN);}while(0U) + +/** @brief Check whether the specified SPI flag is set or not. + * @param __SR__ copy of SPI SR register. + * @param __FLAG__ specifies the flag to check. + * This parameter can be one of the following values: + * @arg SPI_FLAG_RXNE: Receive buffer not empty flag + * @arg SPI_FLAG_TXE: Transmit buffer empty flag + * @arg SPI_FLAG_CRCERR: CRC error flag + * @arg SPI_FLAG_MODF: Mode fault flag + * @arg SPI_FLAG_OVR: Overrun flag + * @arg SPI_FLAG_BSY: Busy flag + * @retval SET or RESET. + */ +#define SPI_CHECK_FLAG(__SR__, __FLAG__) ((((__SR__) & ((__FLAG__) & SPI_FLAG_MASK)) == \ + ((__FLAG__) & SPI_FLAG_MASK)) ? SET : RESET) + +/** @brief Check whether the specified SPI Interrupt is set or not. + * @param __CR2__ copy of SPI CR2 register. + * @param __INTERRUPT__ specifies the SPI interrupt source to check. + * This parameter can be one of the following values: + * @arg SPI_IT_TXE: Tx buffer empty interrupt enable + * @arg SPI_IT_RXNE: RX buffer not empty interrupt enable + * @arg SPI_IT_ERR: Error interrupt enable + * @retval SET or RESET. + */ +#define SPI_CHECK_IT_SOURCE(__CR2__, __INTERRUPT__) ((((__CR2__) & (__INTERRUPT__)) == \ + (__INTERRUPT__)) ? SET : RESET) + +/** @brief Checks if SPI Mode parameter is in allowed range. + * @param __MODE__ specifies the SPI Mode. + * This parameter can be a value of @ref SPI_Mode + * @retval None + */ +#define IS_SPI_MODE(__MODE__) (((__MODE__) == SPI_MODE_SLAVE) || \ + ((__MODE__) == SPI_MODE_MASTER)) + +/** @brief Checks if SPI Direction Mode parameter is in allowed range. + * @param __MODE__ specifies the SPI Direction Mode. + * This parameter can be a value of @ref SPI_Direction + * @retval None + */ +#define IS_SPI_DIRECTION(__MODE__) (((__MODE__) == SPI_DIRECTION_2LINES) || \ + ((__MODE__) == SPI_DIRECTION_2LINES_RXONLY) || \ + ((__MODE__) == SPI_DIRECTION_1LINE)) + +/** @brief Checks if SPI Direction Mode parameter is 2 lines. + * @param __MODE__ specifies the SPI Direction Mode. + * @retval None + */ +#define IS_SPI_DIRECTION_2LINES(__MODE__) ((__MODE__) == SPI_DIRECTION_2LINES) + +/** @brief Checks if SPI Direction Mode parameter is 1 or 2 lines. + * @param __MODE__ specifies the SPI Direction Mode. + * @retval None + */ +#define IS_SPI_DIRECTION_2LINES_OR_1LINE(__MODE__) (((__MODE__) == SPI_DIRECTION_2LINES) || \ + ((__MODE__) == SPI_DIRECTION_1LINE)) + +/** @brief Checks if SPI Data Size parameter is in allowed range. + * @param __DATASIZE__ specifies the SPI Data Size. + * This parameter can be a value of @ref SPI_Data_Size + * @retval None + */ +#define IS_SPI_DATASIZE(__DATASIZE__) (((__DATASIZE__) == SPI_DATASIZE_16BIT) || \ + ((__DATASIZE__) == SPI_DATASIZE_8BIT)) + +/** @brief Checks if SPI Serial clock steady state parameter is in allowed range. + * @param __CPOL__ specifies the SPI serial clock steady state. + * This parameter can be a value of @ref SPI_Clock_Polarity + * @retval None + */ +#define IS_SPI_CPOL(__CPOL__) (((__CPOL__) == SPI_POLARITY_LOW) || \ + ((__CPOL__) == SPI_POLARITY_HIGH)) + +/** @brief Checks if SPI Clock Phase parameter is in allowed range. + * @param __CPHA__ specifies the SPI Clock Phase. + * This parameter can be a value of @ref SPI_Clock_Phase + * @retval None + */ +#define IS_SPI_CPHA(__CPHA__) (((__CPHA__) == SPI_PHASE_1EDGE) || \ + ((__CPHA__) == SPI_PHASE_2EDGE)) + +/** @brief Checks if SPI Slave Select parameter is in allowed range. + * @param __NSS__ specifies the SPI Slave Select management parameter. + * This parameter can be a value of @ref SPI_Slave_Select_management + * @retval None + */ +#define IS_SPI_NSS(__NSS__) (((__NSS__) == SPI_NSS_SOFT) || \ + ((__NSS__) == SPI_NSS_HARD_INPUT) || \ + ((__NSS__) == SPI_NSS_HARD_OUTPUT)) + +/** @brief Checks if SPI Baudrate prescaler parameter is in allowed range. + * @param __PRESCALER__ specifies the SPI Baudrate prescaler. + * This parameter can be a value of @ref SPI_BaudRate_Prescaler + * @retval None + */ +#define IS_SPI_BAUDRATE_PRESCALER(__PRESCALER__) (((__PRESCALER__) == SPI_BAUDRATEPRESCALER_2) || \ + ((__PRESCALER__) == SPI_BAUDRATEPRESCALER_4) || \ + ((__PRESCALER__) == SPI_BAUDRATEPRESCALER_8) || \ + ((__PRESCALER__) == SPI_BAUDRATEPRESCALER_16) || \ + ((__PRESCALER__) == SPI_BAUDRATEPRESCALER_32) || \ + ((__PRESCALER__) == SPI_BAUDRATEPRESCALER_64) || \ + ((__PRESCALER__) == SPI_BAUDRATEPRESCALER_128) || \ + ((__PRESCALER__) == SPI_BAUDRATEPRESCALER_256)) + +/** @brief Checks if SPI MSB LSB transmission parameter is in allowed range. + * @param __BIT__ specifies the SPI MSB LSB transmission (whether data transfer starts from MSB or LSB bit). + * This parameter can be a value of @ref SPI_MSB_LSB_transmission + * @retval None + */ +#define IS_SPI_FIRST_BIT(__BIT__) (((__BIT__) == SPI_FIRSTBIT_MSB) || \ + ((__BIT__) == SPI_FIRSTBIT_LSB)) + +/** @brief Checks if SPI TI mode parameter is disabled. + * @param __MODE__ SPI_TIMODE_DISABLE. Device not support Ti Mode. + * This parameter can be a value of @ref SPI_TI_mode + * @retval None + */ +#define IS_SPI_TIMODE(__MODE__) ((__MODE__) == SPI_TIMODE_DISABLE) + +/** @brief Checks if SPI CRC calculation enabled state is in allowed range. + * @param __CALCULATION__ specifies the SPI CRC calculation enable state. + * This parameter can be a value of @ref SPI_CRC_Calculation + * @retval None + */ +#define IS_SPI_CRC_CALCULATION(__CALCULATION__) (((__CALCULATION__) == SPI_CRCCALCULATION_DISABLE) || \ + ((__CALCULATION__) == SPI_CRCCALCULATION_ENABLE)) + +/** @brief Checks if SPI polynomial value to be used for the CRC calculation, is in allowed range. + * @param __POLYNOMIAL__ specifies the SPI polynomial value to be used for the CRC calculation. + * This parameter must be a number between Min_Data = 0 and Max_Data = 65535 + * @retval None + */ +#define IS_SPI_CRC_POLYNOMIAL(__POLYNOMIAL__) (((__POLYNOMIAL__) >= 0x1U) && \ + ((__POLYNOMIAL__) <= 0xFFFFU) && \ + (((__POLYNOMIAL__)&0x1U) != 0U)) + +/** @brief Checks if DMA handle is valid. + * @param __HANDLE__ specifies a DMA Handle. + * @retval None + */ +#define IS_SPI_DMA_HANDLE(__HANDLE__) ((__HANDLE__) != NULL) + +/** + * @} + */ + +/* Private functions ---------------------------------------------------------*/ +/** @defgroup SPI_Private_Functions SPI Private Functions + * @{ + */ +uint8_t SPI_ISCRCErrorValid(SPI_HandleTypeDef *hspi); +/** + * @} + */ + +/* Exported functions --------------------------------------------------------*/ +/** @addtogroup SPI_Exported_Functions + * @{ + */ + +/** @addtogroup SPI_Exported_Functions_Group1 + * @{ + */ +/* Initialization/de-initialization functions ********************************/ +HAL_StatusTypeDef HAL_SPI_Init(SPI_HandleTypeDef *hspi); +HAL_StatusTypeDef HAL_SPI_DeInit(SPI_HandleTypeDef *hspi); +void HAL_SPI_MspInit(SPI_HandleTypeDef *hspi); +void HAL_SPI_MspDeInit(SPI_HandleTypeDef *hspi); + +/* Callbacks Register/UnRegister functions ***********************************/ +#if (USE_HAL_SPI_REGISTER_CALLBACKS == 1U) +HAL_StatusTypeDef HAL_SPI_RegisterCallback(SPI_HandleTypeDef *hspi, HAL_SPI_CallbackIDTypeDef CallbackID, pSPI_CallbackTypeDef pCallback); +HAL_StatusTypeDef HAL_SPI_UnRegisterCallback(SPI_HandleTypeDef *hspi, HAL_SPI_CallbackIDTypeDef CallbackID); +#endif /* USE_HAL_SPI_REGISTER_CALLBACKS */ +/** + * @} + */ + +/** @addtogroup SPI_Exported_Functions_Group2 + * @{ + */ +/* I/O operation functions ***************************************************/ +HAL_StatusTypeDef HAL_SPI_Transmit(SPI_HandleTypeDef *hspi, uint8_t *pData, uint16_t Size, uint32_t Timeout); +HAL_StatusTypeDef HAL_SPI_Receive(SPI_HandleTypeDef *hspi, uint8_t *pData, uint16_t Size, uint32_t Timeout); +HAL_StatusTypeDef HAL_SPI_TransmitReceive(SPI_HandleTypeDef *hspi, uint8_t *pTxData, uint8_t *pRxData, uint16_t Size, + uint32_t Timeout); +HAL_StatusTypeDef HAL_SPI_Transmit_IT(SPI_HandleTypeDef *hspi, uint8_t *pData, uint16_t Size); +HAL_StatusTypeDef HAL_SPI_Receive_IT(SPI_HandleTypeDef *hspi, uint8_t *pData, uint16_t Size); +HAL_StatusTypeDef HAL_SPI_TransmitReceive_IT(SPI_HandleTypeDef *hspi, uint8_t *pTxData, uint8_t *pRxData, + uint16_t Size); +HAL_StatusTypeDef HAL_SPI_Transmit_DMA(SPI_HandleTypeDef *hspi, uint8_t *pData, uint16_t Size); +HAL_StatusTypeDef HAL_SPI_Receive_DMA(SPI_HandleTypeDef *hspi, uint8_t *pData, uint16_t Size); +HAL_StatusTypeDef HAL_SPI_TransmitReceive_DMA(SPI_HandleTypeDef *hspi, uint8_t *pTxData, uint8_t *pRxData, + uint16_t Size); +HAL_StatusTypeDef HAL_SPI_DMAPause(SPI_HandleTypeDef *hspi); +HAL_StatusTypeDef HAL_SPI_DMAResume(SPI_HandleTypeDef *hspi); +HAL_StatusTypeDef HAL_SPI_DMAStop(SPI_HandleTypeDef *hspi); +/* Transfer Abort functions */ +HAL_StatusTypeDef HAL_SPI_Abort(SPI_HandleTypeDef *hspi); +HAL_StatusTypeDef HAL_SPI_Abort_IT(SPI_HandleTypeDef *hspi); + +void HAL_SPI_IRQHandler(SPI_HandleTypeDef *hspi); +void HAL_SPI_TxCpltCallback(SPI_HandleTypeDef *hspi); +void HAL_SPI_RxCpltCallback(SPI_HandleTypeDef *hspi); +void HAL_SPI_TxRxCpltCallback(SPI_HandleTypeDef *hspi); +void HAL_SPI_TxHalfCpltCallback(SPI_HandleTypeDef *hspi); +void HAL_SPI_RxHalfCpltCallback(SPI_HandleTypeDef *hspi); +void HAL_SPI_TxRxHalfCpltCallback(SPI_HandleTypeDef *hspi); +void HAL_SPI_ErrorCallback(SPI_HandleTypeDef *hspi); +void HAL_SPI_AbortCpltCallback(SPI_HandleTypeDef *hspi); +/** + * @} + */ + +/** @addtogroup SPI_Exported_Functions_Group3 + * @{ + */ +/* Peripheral State and Error functions ***************************************/ +HAL_SPI_StateTypeDef HAL_SPI_GetState(SPI_HandleTypeDef *hspi); +uint32_t HAL_SPI_GetError(SPI_HandleTypeDef *hspi); +/** + * @} + */ + +/** + * @} + */ + +/** + * @} + */ + +/** + * @} + */ + +#ifdef __cplusplus +} +#endif + +#endif /* STM32F1xx_HAL_SPI_H */ + +/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ diff --git a/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.c b/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.c new file mode 100644 index 0000000..c6922bf --- /dev/null +++ b/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.c @@ -0,0 +1,4005 @@ +/** + ****************************************************************************** + * @file stm32f1xx_hal_spi.c + * @author MCD Application Team + * @brief SPI HAL module driver. + * This file provides firmware functions to manage the following + * functionalities of the Serial Peripheral Interface (SPI) peripheral: + * + Initialization and de-initialization functions + * + IO operation functions + * + Peripheral Control functions + * + Peripheral State functions + * + @verbatim + ============================================================================== + ##### How to use this driver ##### + ============================================================================== + [..] + The SPI HAL driver can be used as follows: + + (#) Declare a SPI_HandleTypeDef handle structure, for example: + SPI_HandleTypeDef hspi; + + (#)Initialize the SPI low level resources by implementing the HAL_SPI_MspInit() API: + (##) Enable the SPIx interface clock + (##) SPI pins configuration + (+++) Enable the clock for the SPI GPIOs + (+++) Configure these SPI pins as alternate function push-pull + (##) NVIC configuration if you need to use interrupt process + (+++) Configure the SPIx interrupt priority + (+++) Enable the NVIC SPI IRQ handle + (##) DMA Configuration if you need to use DMA process + (+++) Declare a DMA_HandleTypeDef handle structure for the transmit or receive Stream/Channel + (+++) Enable the DMAx clock + (+++) Configure the DMA handle parameters + (+++) Configure the DMA Tx or Rx Stream/Channel + (+++) Associate the initialized hdma_tx(or _rx) handle to the hspi DMA Tx or Rx handle + (+++) Configure the priority and enable the NVIC for the transfer complete interrupt on the DMA Tx or Rx Stream/Channel + + (#) Program the Mode, BidirectionalMode , Data size, Baudrate Prescaler, NSS + management, Clock polarity and phase, FirstBit and CRC configuration in the hspi Init structure. + + (#) Initialize the SPI registers by calling the HAL_SPI_Init() API: + (++) This API configures also the low level Hardware GPIO, CLOCK, CORTEX...etc) + by calling the customized HAL_SPI_MspInit() API. + [..] + Circular mode restriction: + (#) The DMA circular mode cannot be used when the SPI is configured in these modes: + (##) Master 2Lines RxOnly + (##) Master 1Line Rx + (#) The CRC feature is not managed when the DMA circular mode is enabled + (#) When the SPI DMA Pause/Stop features are used, we must use the following APIs + the HAL_SPI_DMAPause()/ HAL_SPI_DMAStop() only under the SPI callbacks + [..] + Master Receive mode restriction: + (#) In Master unidirectional receive-only mode (MSTR =1, BIDIMODE=0, RXONLY=1) or + bidirectional receive mode (MSTR=1, BIDIMODE=1, BIDIOE=0), to ensure that the SPI + does not initiate a new transfer the following procedure has to be respected: + (##) HAL_SPI_DeInit() + (##) HAL_SPI_Init() + [..] + Callback registration: + + (#) The compilation flag USE_HAL_SPI_REGISTER_CALLBACKS when set to 1U + allows the user to configure dynamically the driver callbacks. + Use Functions HAL_SPI_RegisterCallback() to register an interrupt callback. + + Function HAL_SPI_RegisterCallback() allows to register following callbacks: + (++) TxCpltCallback : SPI Tx Completed callback + (++) RxCpltCallback : SPI Rx Completed callback + (++) TxRxCpltCallback : SPI TxRx Completed callback + (++) TxHalfCpltCallback : SPI Tx Half Completed callback + (++) RxHalfCpltCallback : SPI Rx Half Completed callback + (++) TxRxHalfCpltCallback : SPI TxRx Half Completed callback + (++) ErrorCallback : SPI Error callback + (++) AbortCpltCallback : SPI Abort callback + (++) MspInitCallback : SPI Msp Init callback + (++) MspDeInitCallback : SPI Msp DeInit callback + This function takes as parameters the HAL peripheral handle, the Callback ID + and a pointer to the user callback function. + + + (#) Use function HAL_SPI_UnRegisterCallback to reset a callback to the default + weak function. + HAL_SPI_UnRegisterCallback takes as parameters the HAL peripheral handle, + and the Callback ID. + This function allows to reset following callbacks: + (++) TxCpltCallback : SPI Tx Completed callback + (++) RxCpltCallback : SPI Rx Completed callback + (++) TxRxCpltCallback : SPI TxRx Completed callback + (++) TxHalfCpltCallback : SPI Tx Half Completed callback + (++) RxHalfCpltCallback : SPI Rx Half Completed callback + (++) TxRxHalfCpltCallback : SPI TxRx Half Completed callback + (++) ErrorCallback : SPI Error callback + (++) AbortCpltCallback : SPI Abort callback + (++) MspInitCallback : SPI Msp Init callback + (++) MspDeInitCallback : SPI Msp DeInit callback + + [..] + By default, after the HAL_SPI_Init() and when the state is HAL_SPI_STATE_RESET + all callbacks are set to the corresponding weak functions: + examples HAL_SPI_MasterTxCpltCallback(), HAL_SPI_MasterRxCpltCallback(). + Exception done for MspInit and MspDeInit functions that are + reset to the legacy weak functions in the HAL_SPI_Init()/ HAL_SPI_DeInit() only when + these callbacks are null (not registered beforehand). + If MspInit or MspDeInit are not null, the HAL_SPI_Init()/ HAL_SPI_DeInit() + keep and use the user MspInit/MspDeInit callbacks (registered beforehand) whatever the state. + + [..] + Callbacks can be registered/unregistered in HAL_SPI_STATE_READY state only. + Exception done MspInit/MspDeInit functions that can be registered/unregistered + in HAL_SPI_STATE_READY or HAL_SPI_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 HAL_SPI_RegisterCallback() before calling HAL_SPI_DeInit() + or HAL_SPI_Init() function. + + [..] + When the compilation define USE_HAL_PPP_REGISTER_CALLBACKS is set to 0 or + not defined, the callback registering feature is not available + and weak (surcharged) callbacks are used. + + [..] + Using the HAL it is not possible to reach all supported SPI frequency with the different SPI Modes, + the following table resume the max SPI frequency reached with data size 8bits/16bits, + according to frequency of the APBx Peripheral Clock (fPCLK) used by the SPI instance. + + @endverbatim + + Additional table : + + DataSize = SPI_DATASIZE_8BIT: + +----------------------------------------------------------------------------------------------+ + | | | 2Lines Fullduplex | 2Lines RxOnly | 1Line | + | Process | Transfer mode |---------------------|----------------------|----------------------| + | | | Master | Slave | Master | Slave | Master | Slave | + |==============================================================================================| + | T | Polling | Fpclk/2 | Fpclk/2 | NA | NA | NA | NA | + | X |----------------|----------|----------|-----------|----------|-----------|----------| + | / | Interrupt | Fpclk/4 | Fpclk/8 | NA | NA | NA | NA | + | R |----------------|----------|----------|-----------|----------|-----------|----------| + | X | DMA | Fpclk/2 | Fpclk/2 | NA | NA | NA | NA | + |=========|================|==========|==========|===========|==========|===========|==========| + | | Polling | Fpclk/2 | Fpclk/2 | Fpclk/64 | Fpclk/2 | Fpclk/64 | Fpclk/2 | + | |----------------|----------|----------|-----------|----------|-----------|----------| + | R | Interrupt | Fpclk/8 | Fpclk/8 | Fpclk/64 | Fpclk/2 | Fpclk/64 | Fpclk/2 | + | X |----------------|----------|----------|-----------|----------|-----------|----------| + | | DMA | Fpclk/2 | Fpclk/2 | Fpclk/64 | Fpclk/2 | Fpclk/128 | Fpclk/2 | + |=========|================|==========|==========|===========|==========|===========|==========| + | | Polling | Fpclk/2 | Fpclk/4 | NA | NA | Fpclk/2 | Fpclk/64 | + | |----------------|----------|----------|-----------|----------|-----------|----------| + | T | Interrupt | Fpclk/2 | Fpclk/4 | NA | NA | Fpclk/2 | Fpclk/64 | + | X |----------------|----------|----------|-----------|----------|-----------|----------| + | | DMA | Fpclk/2 | Fpclk/2 | NA | NA | Fpclk/2 | Fpclk/128| + +----------------------------------------------------------------------------------------------+ + + DataSize = SPI_DATASIZE_16BIT: + +----------------------------------------------------------------------------------------------+ + | | | 2Lines Fullduplex | 2Lines RxOnly | 1Line | + | Process | Transfer mode |---------------------|----------------------|----------------------| + | | | Master | Slave | Master | Slave | Master | Slave | + |==============================================================================================| + | T | Polling | Fpclk/2 | Fpclk/2 | NA | NA | NA | NA | + | X |----------------|----------|----------|-----------|----------|-----------|----------| + | / | Interrupt | Fpclk/4 | Fpclk/4 | NA | NA | NA | NA | + | R |----------------|----------|----------|-----------|----------|-----------|----------| + | X | DMA | Fpclk/2 | Fpclk/2 | NA | NA | NA | NA | + |=========|================|==========|==========|===========|==========|===========|==========| + | | Polling | Fpclk/2 | Fpclk/2 | Fpclk/64 | Fpclk/2 | Fpclk/32 | Fpclk/2 | + | |----------------|----------|----------|-----------|----------|-----------|----------| + | R | Interrupt | Fpclk/4 | Fpclk/4 | Fpclk/64 | Fpclk/2 | Fpclk/64 | Fpclk/2 | + | X |----------------|----------|----------|-----------|----------|-----------|----------| + | | DMA | Fpclk/2 | Fpclk/2 | Fpclk/64 | Fpclk/2 | Fpclk/128 | Fpclk/2 | + |=========|================|==========|==========|===========|==========|===========|==========| + | | Polling | Fpclk/2 | Fpclk/2 | NA | NA | Fpclk/2 | Fpclk/32 | + | |----------------|----------|----------|-----------|----------|-----------|----------| + | T | Interrupt | Fpclk/2 | Fpclk/2 | NA | NA | Fpclk/2 | Fpclk/64 | + | X |----------------|----------|----------|-----------|----------|-----------|----------| + | | DMA | Fpclk/2 | Fpclk/2 | NA | NA | Fpclk/2 | Fpclk/128| + +----------------------------------------------------------------------------------------------+ + @note The max SPI frequency depend on SPI data size (8bits, 16bits), + SPI mode(2 Lines fullduplex, 2 lines RxOnly, 1 line TX/RX) and Process mode (Polling, IT, DMA). + @note + (#) TX/RX processes are HAL_SPI_TransmitReceive(), HAL_SPI_TransmitReceive_IT() and HAL_SPI_TransmitReceive_DMA() + (#) RX processes are HAL_SPI_Receive(), HAL_SPI_Receive_IT() and HAL_SPI_Receive_DMA() + (#) TX processes are HAL_SPI_Transmit(), HAL_SPI_Transmit_IT() and HAL_SPI_Transmit_DMA() + + ****************************************************************************** + * @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 SPI SPI + * @brief SPI HAL module driver + * @{ + */ +#ifdef HAL_SPI_MODULE_ENABLED + +/* Private typedef -----------------------------------------------------------*/ +/* Private defines -----------------------------------------------------------*/ +#if (USE_SPI_CRC != 0U) && defined(SPI_CRC_ERROR_WORKAROUND_FEATURE) +/* CRC WORKAOUND FEATURE: Variable used to determine if device is impacted by implementation + * of workaround related to wrong CRC errors detection on SPI2. Conditions in which this workaround + * has to be applied, are: + * - STM32F101CDE/STM32F103CDE + * - Revision ID : Z + * - SPI2 + * - In receive only mode, with CRC calculation enabled, at the end of the CRC reception, + * the software needs to check the CRCERR flag. If it is found set, read back the SPI_RXCRC: + * + If the value is 0, the complete data transfer is successful. + * + Otherwise, one or more errors have been detected during the data transfer by CPU or DMA. + * If CRCERR is found reset, the complete data transfer is considered successful. + * + * Check RevisionID value for identifying if Device is Rev Z (0x0001) in order to enable workaround for + * CRC errors wrongly detected + */ +/* Pb is that ES_STM32F10xxCDE also identify an issue in Debug registers access while not in Debug mode + * Revision ID information is only available in Debug mode, so Workaround could not be implemented + * to distinguish Rev Z devices (issue present) from more recent version (issue fixed). + * So, in case of Revison Z F101 or F103 devices, below define should be assigned to 1. + */ +#define USE_SPI_CRC_ERROR_WORKAROUND 0U +#endif +/** @defgroup SPI_Private_Constants SPI Private Constants + * @{ + */ +#define SPI_DEFAULT_TIMEOUT 100U +/** + * @} + */ + +/* Private macros ------------------------------------------------------------*/ +/* Private variables ---------------------------------------------------------*/ +/* Private function prototypes -----------------------------------------------*/ +/** @defgroup SPI_Private_Functions SPI Private Functions + * @{ + */ +static void SPI_DMATransmitCplt(DMA_HandleTypeDef *hdma); +static void SPI_DMAReceiveCplt(DMA_HandleTypeDef *hdma); +static void SPI_DMATransmitReceiveCplt(DMA_HandleTypeDef *hdma); +static void SPI_DMAHalfTransmitCplt(DMA_HandleTypeDef *hdma); +static void SPI_DMAHalfReceiveCplt(DMA_HandleTypeDef *hdma); +static void SPI_DMAHalfTransmitReceiveCplt(DMA_HandleTypeDef *hdma); +static void SPI_DMAError(DMA_HandleTypeDef *hdma); +static void SPI_DMAAbortOnError(DMA_HandleTypeDef *hdma); +static void SPI_DMATxAbortCallback(DMA_HandleTypeDef *hdma); +static void SPI_DMARxAbortCallback(DMA_HandleTypeDef *hdma); +static HAL_StatusTypeDef SPI_WaitFlagStateUntilTimeout(SPI_HandleTypeDef *hspi, uint32_t Flag, FlagStatus State, + uint32_t Timeout, uint32_t Tickstart); +static void SPI_TxISR_8BIT(struct __SPI_HandleTypeDef *hspi); +static void SPI_TxISR_16BIT(struct __SPI_HandleTypeDef *hspi); +static void SPI_RxISR_8BIT(struct __SPI_HandleTypeDef *hspi); +static void SPI_RxISR_16BIT(struct __SPI_HandleTypeDef *hspi); +static void SPI_2linesRxISR_8BIT(struct __SPI_HandleTypeDef *hspi); +static void SPI_2linesTxISR_8BIT(struct __SPI_HandleTypeDef *hspi); +static void SPI_2linesTxISR_16BIT(struct __SPI_HandleTypeDef *hspi); +static void SPI_2linesRxISR_16BIT(struct __SPI_HandleTypeDef *hspi); +#if (USE_SPI_CRC != 0U) +static void SPI_RxISR_8BITCRC(struct __SPI_HandleTypeDef *hspi); +static void SPI_RxISR_16BITCRC(struct __SPI_HandleTypeDef *hspi); +static void SPI_2linesRxISR_8BITCRC(struct __SPI_HandleTypeDef *hspi); +static void SPI_2linesRxISR_16BITCRC(struct __SPI_HandleTypeDef *hspi); +#endif /* USE_SPI_CRC */ +static void SPI_AbortRx_ISR(SPI_HandleTypeDef *hspi); +static void SPI_AbortTx_ISR(SPI_HandleTypeDef *hspi); +static void SPI_CloseRxTx_ISR(SPI_HandleTypeDef *hspi); +static void SPI_CloseRx_ISR(SPI_HandleTypeDef *hspi); +static void SPI_CloseTx_ISR(SPI_HandleTypeDef *hspi); +static HAL_StatusTypeDef SPI_EndRxTransaction(SPI_HandleTypeDef *hspi, uint32_t Timeout, uint32_t Tickstart); +static HAL_StatusTypeDef SPI_EndRxTxTransaction(SPI_HandleTypeDef *hspi, uint32_t Timeout, uint32_t Tickstart); +/** + * @} + */ + +/* Exported functions --------------------------------------------------------*/ +/** @defgroup SPI_Exported_Functions SPI Exported Functions + * @{ + */ + +/** @defgroup SPI_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 + de-initialize the SPIx peripheral: + + (+) User must implement HAL_SPI_MspInit() function in which he configures + all related peripherals resources (CLOCK, GPIO, DMA, IT and NVIC ). + + (+) Call the function HAL_SPI_Init() to configure the selected device with + the selected configuration: + (++) Mode + (++) Direction + (++) Data Size + (++) Clock Polarity and Phase + (++) NSS Management + (++) BaudRate Prescaler + (++) FirstBit + (++) TIMode + (++) CRC Calculation + (++) CRC Polynomial if CRC enabled + + (+) Call the function HAL_SPI_DeInit() to restore the default configuration + of the selected SPIx peripheral. + +@endverbatim + * @{ + */ + +/** + * @brief Initialize the SPI according to the specified parameters + * in the SPI_InitTypeDef and initialize the associated handle. + * @param hspi pointer to a SPI_HandleTypeDef structure that contains + * the configuration information for SPI module. + * @retval HAL status + */ +HAL_StatusTypeDef HAL_SPI_Init(SPI_HandleTypeDef *hspi) +{ + /* Check the SPI handle allocation */ + if (hspi == NULL) + { + return HAL_ERROR; + } + + /* Check the parameters */ + assert_param(IS_SPI_ALL_INSTANCE(hspi->Instance)); + assert_param(IS_SPI_MODE(hspi->Init.Mode)); + assert_param(IS_SPI_DIRECTION(hspi->Init.Direction)); + assert_param(IS_SPI_DATASIZE(hspi->Init.DataSize)); + assert_param(IS_SPI_NSS(hspi->Init.NSS)); + assert_param(IS_SPI_BAUDRATE_PRESCALER(hspi->Init.BaudRatePrescaler)); + assert_param(IS_SPI_FIRST_BIT(hspi->Init.FirstBit)); + /* TI mode is not supported on this device. + TIMode parameter is mandatory equal to SPI_TIMODE_DISABLE */ + assert_param(IS_SPI_TIMODE(hspi->Init.TIMode)); + if (hspi->Init.TIMode == SPI_TIMODE_DISABLE) + { + assert_param(IS_SPI_CPOL(hspi->Init.CLKPolarity)); + assert_param(IS_SPI_CPHA(hspi->Init.CLKPhase)); + + if (hspi->Init.Mode == SPI_MODE_MASTER) + { + assert_param(IS_SPI_BAUDRATE_PRESCALER(hspi->Init.BaudRatePrescaler)); + } + else + { + /* Baudrate prescaler not use in Motoraola Slave mode. force to default value */ + hspi->Init.BaudRatePrescaler = SPI_BAUDRATEPRESCALER_2; + } + } + else + { + assert_param(IS_SPI_BAUDRATE_PRESCALER(hspi->Init.BaudRatePrescaler)); + + /* Force polarity and phase to TI protocaol requirements */ + hspi->Init.CLKPolarity = SPI_POLARITY_LOW; + hspi->Init.CLKPhase = SPI_PHASE_1EDGE; + } +#if (USE_SPI_CRC != 0U) + assert_param(IS_SPI_CRC_CALCULATION(hspi->Init.CRCCalculation)); + if (hspi->Init.CRCCalculation == SPI_CRCCALCULATION_ENABLE) + { + assert_param(IS_SPI_CRC_POLYNOMIAL(hspi->Init.CRCPolynomial)); + } +#else + hspi->Init.CRCCalculation = SPI_CRCCALCULATION_DISABLE; +#endif /* USE_SPI_CRC */ + + if (hspi->State == HAL_SPI_STATE_RESET) + { + /* Allocate lock resource and initialize it */ + hspi->Lock = HAL_UNLOCKED; + +#if (USE_HAL_SPI_REGISTER_CALLBACKS == 1U) + /* Init the SPI Callback settings */ + hspi->TxCpltCallback = HAL_SPI_TxCpltCallback; /* Legacy weak TxCpltCallback */ + hspi->RxCpltCallback = HAL_SPI_RxCpltCallback; /* Legacy weak RxCpltCallback */ + hspi->TxRxCpltCallback = HAL_SPI_TxRxCpltCallback; /* Legacy weak TxRxCpltCallback */ + hspi->TxHalfCpltCallback = HAL_SPI_TxHalfCpltCallback; /* Legacy weak TxHalfCpltCallback */ + hspi->RxHalfCpltCallback = HAL_SPI_RxHalfCpltCallback; /* Legacy weak RxHalfCpltCallback */ + hspi->TxRxHalfCpltCallback = HAL_SPI_TxRxHalfCpltCallback; /* Legacy weak TxRxHalfCpltCallback */ + hspi->ErrorCallback = HAL_SPI_ErrorCallback; /* Legacy weak ErrorCallback */ + hspi->AbortCpltCallback = HAL_SPI_AbortCpltCallback; /* Legacy weak AbortCpltCallback */ + + if (hspi->MspInitCallback == NULL) + { + hspi->MspInitCallback = HAL_SPI_MspInit; /* Legacy weak MspInit */ + } + + /* Init the low level hardware : GPIO, CLOCK, NVIC... */ + hspi->MspInitCallback(hspi); +#else + /* Init the low level hardware : GPIO, CLOCK, NVIC... */ + HAL_SPI_MspInit(hspi); +#endif /* USE_HAL_SPI_REGISTER_CALLBACKS */ + } + + hspi->State = HAL_SPI_STATE_BUSY; + + /* Disable the selected SPI peripheral */ + __HAL_SPI_DISABLE(hspi); + + /*----------------------- SPIx CR1 & CR2 Configuration ---------------------*/ + /* Configure : SPI Mode, Communication Mode, Data size, Clock polarity and phase, NSS management, + Communication speed, First bit and CRC calculation state */ + WRITE_REG(hspi->Instance->CR1, ((hspi->Init.Mode & (SPI_CR1_MSTR | SPI_CR1_SSI)) | + (hspi->Init.Direction & (SPI_CR1_RXONLY | SPI_CR1_BIDIMODE)) | + (hspi->Init.DataSize & SPI_CR1_DFF) | + (hspi->Init.CLKPolarity & SPI_CR1_CPOL) | + (hspi->Init.CLKPhase & SPI_CR1_CPHA) | + (hspi->Init.NSS & SPI_CR1_SSM) | + (hspi->Init.BaudRatePrescaler & SPI_CR1_BR_Msk) | + (hspi->Init.FirstBit & SPI_CR1_LSBFIRST) | + (hspi->Init.CRCCalculation & SPI_CR1_CRCEN))); + + /* Configure : NSS management */ + WRITE_REG(hspi->Instance->CR2, ((hspi->Init.NSS >> 16U) & SPI_CR2_SSOE)); + +#if (USE_SPI_CRC != 0U) + /*---------------------------- SPIx CRCPOLY Configuration ------------------*/ + /* Configure : CRC Polynomial */ + if (hspi->Init.CRCCalculation == SPI_CRCCALCULATION_ENABLE) + { + WRITE_REG(hspi->Instance->CRCPR, (hspi->Init.CRCPolynomial & SPI_CRCPR_CRCPOLY_Msk)); + } +#endif /* USE_SPI_CRC */ + +#if defined(SPI_I2SCFGR_I2SMOD) + /* Activate the SPI mode (Make sure that I2SMOD bit in I2SCFGR register is reset) */ + CLEAR_BIT(hspi->Instance->I2SCFGR, SPI_I2SCFGR_I2SMOD); +#endif /* SPI_I2SCFGR_I2SMOD */ + + hspi->ErrorCode = HAL_SPI_ERROR_NONE; + hspi->State = HAL_SPI_STATE_READY; + + return HAL_OK; +} + +/** + * @brief De-Initialize the SPI peripheral. + * @param hspi pointer to a SPI_HandleTypeDef structure that contains + * the configuration information for SPI module. + * @retval HAL status + */ +HAL_StatusTypeDef HAL_SPI_DeInit(SPI_HandleTypeDef *hspi) +{ + /* Check the SPI handle allocation */ + if (hspi == NULL) + { + return HAL_ERROR; + } + + /* Check SPI Instance parameter */ + assert_param(IS_SPI_ALL_INSTANCE(hspi->Instance)); + + hspi->State = HAL_SPI_STATE_BUSY; + + /* Disable the SPI Peripheral Clock */ + __HAL_SPI_DISABLE(hspi); + +#if (USE_HAL_SPI_REGISTER_CALLBACKS == 1U) + if (hspi->MspDeInitCallback == NULL) + { + hspi->MspDeInitCallback = HAL_SPI_MspDeInit; /* Legacy weak MspDeInit */ + } + + /* DeInit the low level hardware: GPIO, CLOCK, NVIC... */ + hspi->MspDeInitCallback(hspi); +#else + /* DeInit the low level hardware: GPIO, CLOCK, NVIC... */ + HAL_SPI_MspDeInit(hspi); +#endif /* USE_HAL_SPI_REGISTER_CALLBACKS */ + + hspi->ErrorCode = HAL_SPI_ERROR_NONE; + hspi->State = HAL_SPI_STATE_RESET; + + /* Release Lock */ + __HAL_UNLOCK(hspi); + + return HAL_OK; +} + +/** + * @brief Initialize the SPI MSP. + * @param hspi pointer to a SPI_HandleTypeDef structure that contains + * the configuration information for SPI module. + * @retval None + */ +__weak void HAL_SPI_MspInit(SPI_HandleTypeDef *hspi) +{ + /* Prevent unused argument(s) compilation warning */ + UNUSED(hspi); + + /* NOTE : This function should not be modified, when the callback is needed, + the HAL_SPI_MspInit should be implemented in the user file + */ +} + +/** + * @brief De-Initialize the SPI MSP. + * @param hspi pointer to a SPI_HandleTypeDef structure that contains + * the configuration information for SPI module. + * @retval None + */ +__weak void HAL_SPI_MspDeInit(SPI_HandleTypeDef *hspi) +{ + /* Prevent unused argument(s) compilation warning */ + UNUSED(hspi); + + /* NOTE : This function should not be modified, when the callback is needed, + the HAL_SPI_MspDeInit should be implemented in the user file + */ +} + +#if (USE_HAL_SPI_REGISTER_CALLBACKS == 1U) +/** + * @brief Register a User SPI Callback + * To be used instead of the weak predefined callback + * @param hspi Pointer to a SPI_HandleTypeDef structure that contains + * the configuration information for the specified SPI. + * @param CallbackID ID of the callback to be registered + * @param pCallback pointer to the Callback function + * @retval HAL status + */ +HAL_StatusTypeDef HAL_SPI_RegisterCallback(SPI_HandleTypeDef *hspi, HAL_SPI_CallbackIDTypeDef CallbackID, + pSPI_CallbackTypeDef pCallback) +{ + HAL_StatusTypeDef status = HAL_OK; + + if (pCallback == NULL) + { + /* Update the error code */ + hspi->ErrorCode |= HAL_SPI_ERROR_INVALID_CALLBACK; + + return HAL_ERROR; + } + /* Process locked */ + __HAL_LOCK(hspi); + + if (HAL_SPI_STATE_READY == hspi->State) + { + switch (CallbackID) + { + case HAL_SPI_TX_COMPLETE_CB_ID : + hspi->TxCpltCallback = pCallback; + break; + + case HAL_SPI_RX_COMPLETE_CB_ID : + hspi->RxCpltCallback = pCallback; + break; + + case HAL_SPI_TX_RX_COMPLETE_CB_ID : + hspi->TxRxCpltCallback = pCallback; + break; + + case HAL_SPI_TX_HALF_COMPLETE_CB_ID : + hspi->TxHalfCpltCallback = pCallback; + break; + + case HAL_SPI_RX_HALF_COMPLETE_CB_ID : + hspi->RxHalfCpltCallback = pCallback; + break; + + case HAL_SPI_TX_RX_HALF_COMPLETE_CB_ID : + hspi->TxRxHalfCpltCallback = pCallback; + break; + + case HAL_SPI_ERROR_CB_ID : + hspi->ErrorCallback = pCallback; + break; + + case HAL_SPI_ABORT_CB_ID : + hspi->AbortCpltCallback = pCallback; + break; + + case HAL_SPI_MSPINIT_CB_ID : + hspi->MspInitCallback = pCallback; + break; + + case HAL_SPI_MSPDEINIT_CB_ID : + hspi->MspDeInitCallback = pCallback; + break; + + default : + /* Update the error code */ + SET_BIT(hspi->ErrorCode, HAL_SPI_ERROR_INVALID_CALLBACK); + + /* Return error status */ + status = HAL_ERROR; + break; + } + } + else if (HAL_SPI_STATE_RESET == hspi->State) + { + switch (CallbackID) + { + case HAL_SPI_MSPINIT_CB_ID : + hspi->MspInitCallback = pCallback; + break; + + case HAL_SPI_MSPDEINIT_CB_ID : + hspi->MspDeInitCallback = pCallback; + break; + + default : + /* Update the error code */ + SET_BIT(hspi->ErrorCode, HAL_SPI_ERROR_INVALID_CALLBACK); + + /* Return error status */ + status = HAL_ERROR; + break; + } + } + else + { + /* Update the error code */ + SET_BIT(hspi->ErrorCode, HAL_SPI_ERROR_INVALID_CALLBACK); + + /* Return error status */ + status = HAL_ERROR; + } + + /* Release Lock */ + __HAL_UNLOCK(hspi); + return status; +} + +/** + * @brief Unregister an SPI Callback + * SPI callback is redirected to the weak predefined callback + * @param hspi Pointer to a SPI_HandleTypeDef structure that contains + * the configuration information for the specified SPI. + * @param CallbackID ID of the callback to be unregistered + * @retval HAL status + */ +HAL_StatusTypeDef HAL_SPI_UnRegisterCallback(SPI_HandleTypeDef *hspi, HAL_SPI_CallbackIDTypeDef CallbackID) +{ + HAL_StatusTypeDef status = HAL_OK; + + /* Process locked */ + __HAL_LOCK(hspi); + + if (HAL_SPI_STATE_READY == hspi->State) + { + switch (CallbackID) + { + case HAL_SPI_TX_COMPLETE_CB_ID : + hspi->TxCpltCallback = HAL_SPI_TxCpltCallback; /* Legacy weak TxCpltCallback */ + break; + + case HAL_SPI_RX_COMPLETE_CB_ID : + hspi->RxCpltCallback = HAL_SPI_RxCpltCallback; /* Legacy weak RxCpltCallback */ + break; + + case HAL_SPI_TX_RX_COMPLETE_CB_ID : + hspi->TxRxCpltCallback = HAL_SPI_TxRxCpltCallback; /* Legacy weak TxRxCpltCallback */ + break; + + case HAL_SPI_TX_HALF_COMPLETE_CB_ID : + hspi->TxHalfCpltCallback = HAL_SPI_TxHalfCpltCallback; /* Legacy weak TxHalfCpltCallback */ + break; + + case HAL_SPI_RX_HALF_COMPLETE_CB_ID : + hspi->RxHalfCpltCallback = HAL_SPI_RxHalfCpltCallback; /* Legacy weak RxHalfCpltCallback */ + break; + + case HAL_SPI_TX_RX_HALF_COMPLETE_CB_ID : + hspi->TxRxHalfCpltCallback = HAL_SPI_TxRxHalfCpltCallback; /* Legacy weak TxRxHalfCpltCallback */ + break; + + case HAL_SPI_ERROR_CB_ID : + hspi->ErrorCallback = HAL_SPI_ErrorCallback; /* Legacy weak ErrorCallback */ + break; + + case HAL_SPI_ABORT_CB_ID : + hspi->AbortCpltCallback = HAL_SPI_AbortCpltCallback; /* Legacy weak AbortCpltCallback */ + break; + + case HAL_SPI_MSPINIT_CB_ID : + hspi->MspInitCallback = HAL_SPI_MspInit; /* Legacy weak MspInit */ + break; + + case HAL_SPI_MSPDEINIT_CB_ID : + hspi->MspDeInitCallback = HAL_SPI_MspDeInit; /* Legacy weak MspDeInit */ + break; + + default : + /* Update the error code */ + SET_BIT(hspi->ErrorCode, HAL_SPI_ERROR_INVALID_CALLBACK); + + /* Return error status */ + status = HAL_ERROR; + break; + } + } + else if (HAL_SPI_STATE_RESET == hspi->State) + { + switch (CallbackID) + { + case HAL_SPI_MSPINIT_CB_ID : + hspi->MspInitCallback = HAL_SPI_MspInit; /* Legacy weak MspInit */ + break; + + case HAL_SPI_MSPDEINIT_CB_ID : + hspi->MspDeInitCallback = HAL_SPI_MspDeInit; /* Legacy weak MspDeInit */ + break; + + default : + /* Update the error code */ + SET_BIT(hspi->ErrorCode, HAL_SPI_ERROR_INVALID_CALLBACK); + + /* Return error status */ + status = HAL_ERROR; + break; + } + } + else + { + /* Update the error code */ + SET_BIT(hspi->ErrorCode, HAL_SPI_ERROR_INVALID_CALLBACK); + + /* Return error status */ + status = HAL_ERROR; + } + + /* Release Lock */ + __HAL_UNLOCK(hspi); + return status; +} +#endif /* USE_HAL_SPI_REGISTER_CALLBACKS */ +/** + * @} + */ + +/** @defgroup SPI_Exported_Functions_Group2 IO operation functions + * @brief Data transfers functions + * +@verbatim + ============================================================================== + ##### IO operation functions ##### + =============================================================================== + [..] + This subsection provides a set of functions allowing to manage the SPI + data transfers. + + [..] The SPI supports master and slave mode : + + (#) There are two modes of transfer: + (++) Blocking mode: The communication is performed in polling mode. + The HAL 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 APIs return the HAL status. + The end of the data processing will be indicated through the + dedicated SPI IRQ when using Interrupt mode or the DMA IRQ when + using DMA mode. + The HAL_SPI_TxCpltCallback(), HAL_SPI_RxCpltCallback() and HAL_SPI_TxRxCpltCallback() user callbacks + will be executed respectively at the end of the transmit or Receive process + The HAL_SPI_ErrorCallback()user callback will be executed when a communication error is detected + + (#) APIs provided for these 2 transfer modes (Blocking mode or Non blocking mode using either Interrupt or DMA) + exist for 1Line (simplex) and 2Lines (full duplex) modes. + +@endverbatim + * @{ + */ + +/** + * @brief Transmit an amount of data in blocking mode. + * @param hspi pointer to a SPI_HandleTypeDef structure that contains + * the configuration information for SPI module. + * @param pData pointer to data buffer + * @param Size amount of data to be sent + * @param Timeout Timeout duration + * @retval HAL status + */ +HAL_StatusTypeDef HAL_SPI_Transmit(SPI_HandleTypeDef *hspi, uint8_t *pData, uint16_t Size, uint32_t Timeout) +{ + uint32_t tickstart; + HAL_StatusTypeDef errorcode = HAL_OK; + uint16_t initial_TxXferCount; + + /* Check Direction parameter */ + assert_param(IS_SPI_DIRECTION_2LINES_OR_1LINE(hspi->Init.Direction)); + + /* Process Locked */ + __HAL_LOCK(hspi); + + /* Init tickstart for timeout management*/ + tickstart = HAL_GetTick(); + initial_TxXferCount = Size; + + if (hspi->State != HAL_SPI_STATE_READY) + { + errorcode = HAL_BUSY; + goto error; + } + + if ((pData == NULL) || (Size == 0U)) + { + errorcode = HAL_ERROR; + goto error; + } + + /* Set the transaction information */ + hspi->State = HAL_SPI_STATE_BUSY_TX; + hspi->ErrorCode = HAL_SPI_ERROR_NONE; + hspi->pTxBuffPtr = (uint8_t *)pData; + hspi->TxXferSize = Size; + hspi->TxXferCount = Size; + + /*Init field not used in handle to zero */ + hspi->pRxBuffPtr = (uint8_t *)NULL; + hspi->RxXferSize = 0U; + hspi->RxXferCount = 0U; + hspi->TxISR = NULL; + hspi->RxISR = NULL; + + /* Configure communication direction : 1Line */ + if (hspi->Init.Direction == SPI_DIRECTION_1LINE) + { + /* Disable SPI Peripheral before set 1Line direction (BIDIOE bit) */ + __HAL_SPI_DISABLE(hspi); + SPI_1LINE_TX(hspi); + } + +#if (USE_SPI_CRC != 0U) + /* Reset CRC Calculation */ + if (hspi->Init.CRCCalculation == SPI_CRCCALCULATION_ENABLE) + { + SPI_RESET_CRC(hspi); + } +#endif /* USE_SPI_CRC */ + + /* Check if the SPI is already enabled */ + if ((hspi->Instance->CR1 & SPI_CR1_SPE) != SPI_CR1_SPE) + { + /* Enable SPI peripheral */ + __HAL_SPI_ENABLE(hspi); + } + + /* Transmit data in 16 Bit mode */ + if (hspi->Init.DataSize == SPI_DATASIZE_16BIT) + { + if ((hspi->Init.Mode == SPI_MODE_SLAVE) || (initial_TxXferCount == 0x01U)) + { + hspi->Instance->DR = *((uint16_t *)hspi->pTxBuffPtr); + hspi->pTxBuffPtr += sizeof(uint16_t); + hspi->TxXferCount--; + } + /* Transmit data in 16 Bit mode */ + while (hspi->TxXferCount > 0U) + { + /* Wait until TXE flag is set to send data */ + if (__HAL_SPI_GET_FLAG(hspi, SPI_FLAG_TXE)) + { + hspi->Instance->DR = *((uint16_t *)hspi->pTxBuffPtr); + hspi->pTxBuffPtr += sizeof(uint16_t); + hspi->TxXferCount--; + } + else + { + /* Timeout management */ + if ((((HAL_GetTick() - tickstart) >= Timeout) && (Timeout != HAL_MAX_DELAY)) || (Timeout == 0U)) + { + errorcode = HAL_TIMEOUT; + goto error; + } + } + } + } + /* Transmit data in 8 Bit mode */ + else + { + if ((hspi->Init.Mode == SPI_MODE_SLAVE) || (initial_TxXferCount == 0x01U)) + { + *((__IO uint8_t *)&hspi->Instance->DR) = (*hspi->pTxBuffPtr); + hspi->pTxBuffPtr += sizeof(uint8_t); + hspi->TxXferCount--; + } + while (hspi->TxXferCount > 0U) + { + /* Wait until TXE flag is set to send data */ + if (__HAL_SPI_GET_FLAG(hspi, SPI_FLAG_TXE)) + { + *((__IO uint8_t *)&hspi->Instance->DR) = (*hspi->pTxBuffPtr); + hspi->pTxBuffPtr += sizeof(uint8_t); + hspi->TxXferCount--; + } + else + { + /* Timeout management */ + if ((((HAL_GetTick() - tickstart) >= Timeout) && (Timeout != HAL_MAX_DELAY)) || (Timeout == 0U)) + { + errorcode = HAL_TIMEOUT; + goto error; + } + } + } + } +#if (USE_SPI_CRC != 0U) + /* Enable CRC Transmission */ + if (hspi->Init.CRCCalculation == SPI_CRCCALCULATION_ENABLE) + { + SET_BIT(hspi->Instance->CR1, SPI_CR1_CRCNEXT); + } +#endif /* USE_SPI_CRC */ + + /* Check the end of the transaction */ + if (SPI_EndRxTxTransaction(hspi, Timeout, tickstart) != HAL_OK) + { + hspi->ErrorCode = HAL_SPI_ERROR_FLAG; + } + + /* Clear overrun flag in 2 Lines communication mode because received is not read */ + if (hspi->Init.Direction == SPI_DIRECTION_2LINES) + { + __HAL_SPI_CLEAR_OVRFLAG(hspi); + } + + if (hspi->ErrorCode != HAL_SPI_ERROR_NONE) + { + errorcode = HAL_ERROR; + } + +error: + hspi->State = HAL_SPI_STATE_READY; + /* Process Unlocked */ + __HAL_UNLOCK(hspi); + return errorcode; +} + +/** + * @brief Receive an amount of data in blocking mode. + * @param hspi pointer to a SPI_HandleTypeDef structure that contains + * the configuration information for SPI module. + * @param pData pointer to data buffer + * @param Size amount of data to be received + * @param Timeout Timeout duration + * @retval HAL status + */ +HAL_StatusTypeDef HAL_SPI_Receive(SPI_HandleTypeDef *hspi, uint8_t *pData, uint16_t Size, uint32_t Timeout) +{ +#if (USE_SPI_CRC != 0U) + __IO uint32_t tmpreg = 0U; +#endif /* USE_SPI_CRC */ + uint32_t tickstart; + HAL_StatusTypeDef errorcode = HAL_OK; + + if ((hspi->Init.Mode == SPI_MODE_MASTER) && (hspi->Init.Direction == SPI_DIRECTION_2LINES)) + { + hspi->State = HAL_SPI_STATE_BUSY_RX; + /* Call transmit-receive function to send Dummy data on Tx line and generate clock on CLK line */ + return HAL_SPI_TransmitReceive(hspi, pData, pData, Size, Timeout); + } + + /* Process Locked */ + __HAL_LOCK(hspi); + + /* Init tickstart for timeout management*/ + tickstart = HAL_GetTick(); + + if (hspi->State != HAL_SPI_STATE_READY) + { + errorcode = HAL_BUSY; + goto error; + } + + if ((pData == NULL) || (Size == 0U)) + { + errorcode = HAL_ERROR; + goto error; + } + + /* Set the transaction information */ + hspi->State = HAL_SPI_STATE_BUSY_RX; + hspi->ErrorCode = HAL_SPI_ERROR_NONE; + hspi->pRxBuffPtr = (uint8_t *)pData; + hspi->RxXferSize = Size; + hspi->RxXferCount = Size; + + /*Init field not used in handle to zero */ + hspi->pTxBuffPtr = (uint8_t *)NULL; + hspi->TxXferSize = 0U; + hspi->TxXferCount = 0U; + hspi->RxISR = NULL; + hspi->TxISR = NULL; + +#if (USE_SPI_CRC != 0U) + /* Reset CRC Calculation */ + if (hspi->Init.CRCCalculation == SPI_CRCCALCULATION_ENABLE) + { + SPI_RESET_CRC(hspi); + /* this is done to handle the CRCNEXT before the latest data */ + hspi->RxXferCount--; + } +#endif /* USE_SPI_CRC */ + + /* Configure communication direction: 1Line */ + if (hspi->Init.Direction == SPI_DIRECTION_1LINE) + { + /* Disable SPI Peripheral before set 1Line direction (BIDIOE bit) */ + __HAL_SPI_DISABLE(hspi); + SPI_1LINE_RX(hspi); + } + + /* Check if the SPI is already enabled */ + if ((hspi->Instance->CR1 & SPI_CR1_SPE) != SPI_CR1_SPE) + { + /* Enable SPI peripheral */ + __HAL_SPI_ENABLE(hspi); + } + + /* Receive data in 8 Bit mode */ + if (hspi->Init.DataSize == SPI_DATASIZE_8BIT) + { + /* Transfer loop */ + while (hspi->RxXferCount > 0U) + { + /* Check the RXNE flag */ + if (__HAL_SPI_GET_FLAG(hspi, SPI_FLAG_RXNE)) + { + /* read the received data */ + (* (uint8_t *)hspi->pRxBuffPtr) = *(__IO uint8_t *)&hspi->Instance->DR; + hspi->pRxBuffPtr += sizeof(uint8_t); + hspi->RxXferCount--; + } + else + { + /* Timeout management */ + if ((((HAL_GetTick() - tickstart) >= Timeout) && (Timeout != HAL_MAX_DELAY)) || (Timeout == 0U)) + { + errorcode = HAL_TIMEOUT; + goto error; + } + } + } + } + else + { + /* Transfer loop */ + while (hspi->RxXferCount > 0U) + { + /* Check the RXNE flag */ + if (__HAL_SPI_GET_FLAG(hspi, SPI_FLAG_RXNE)) + { + *((uint16_t *)hspi->pRxBuffPtr) = (uint16_t)hspi->Instance->DR; + hspi->pRxBuffPtr += sizeof(uint16_t); + hspi->RxXferCount--; + } + else + { + /* Timeout management */ + if ((((HAL_GetTick() - tickstart) >= Timeout) && (Timeout != HAL_MAX_DELAY)) || (Timeout == 0U)) + { + errorcode = HAL_TIMEOUT; + goto error; + } + } + } + } + +#if (USE_SPI_CRC != 0U) + /* Handle the CRC Transmission */ + if (hspi->Init.CRCCalculation == SPI_CRCCALCULATION_ENABLE) + { + /* freeze the CRC before the latest data */ + SET_BIT(hspi->Instance->CR1, SPI_CR1_CRCNEXT); + + /* Check if CRCNEXT is well reseted by hardware */ + if (READ_BIT(hspi->Instance->CR1, SPI_CR1_CRCNEXT)) + { + /* Workaround to force CRCNEXT bit to zero in case of CRCNEXT is not reset automatically by hardware */ + CLEAR_BIT(hspi->Instance->CR1, SPI_CR1_CRCNEXT); + } + /* Read the latest data */ + if (SPI_WaitFlagStateUntilTimeout(hspi, SPI_FLAG_RXNE, SET, Timeout, tickstart) != HAL_OK) + { + /* the latest data has not been received */ + errorcode = HAL_TIMEOUT; + goto error; + } + + /* Receive last data in 16 Bit mode */ + if (hspi->Init.DataSize == SPI_DATASIZE_16BIT) + { + *((uint16_t *)hspi->pRxBuffPtr) = (uint16_t)hspi->Instance->DR; + } + /* Receive last data in 8 Bit mode */ + else + { + (*(uint8_t *)hspi->pRxBuffPtr) = *(__IO uint8_t *)&hspi->Instance->DR; + } + + /* Wait the CRC data */ + if (SPI_WaitFlagStateUntilTimeout(hspi, SPI_FLAG_RXNE, SET, Timeout, tickstart) != HAL_OK) + { + SET_BIT(hspi->ErrorCode, HAL_SPI_ERROR_CRC); + errorcode = HAL_TIMEOUT; + goto error; + } + + /* Read CRC to Flush DR and RXNE flag */ + tmpreg = READ_REG(hspi->Instance->DR); + /* To avoid GCC warning */ + UNUSED(tmpreg); + } +#endif /* USE_SPI_CRC */ + + /* Check the end of the transaction */ + if (SPI_EndRxTransaction(hspi, Timeout, tickstart) != HAL_OK) + { + hspi->ErrorCode = HAL_SPI_ERROR_FLAG; + } + +#if (USE_SPI_CRC != 0U) + /* Check if CRC error occurred */ + if (__HAL_SPI_GET_FLAG(hspi, SPI_FLAG_CRCERR) != RESET) + { + /* Check if CRC error is valid or not (workaround to be applied or not) */ + if (SPI_ISCRCErrorValid(hspi) == SPI_VALID_CRC_ERROR) + { + SET_BIT(hspi->ErrorCode, HAL_SPI_ERROR_CRC); + + /* Reset CRC Calculation */ + SPI_RESET_CRC(hspi); + } + else + { + __HAL_SPI_CLEAR_CRCERRFLAG(hspi); + } + } +#endif /* USE_SPI_CRC */ + + if (hspi->ErrorCode != HAL_SPI_ERROR_NONE) + { + errorcode = HAL_ERROR; + } + +error : + hspi->State = HAL_SPI_STATE_READY; + __HAL_UNLOCK(hspi); + return errorcode; +} + +/** + * @brief Transmit and Receive an amount of data in blocking mode. + * @param hspi pointer to a SPI_HandleTypeDef structure that contains + * the configuration information for SPI module. + * @param pTxData pointer to transmission data buffer + * @param pRxData pointer to reception data buffer + * @param Size amount of data to be sent and received + * @param Timeout Timeout duration + * @retval HAL status + */ +HAL_StatusTypeDef HAL_SPI_TransmitReceive(SPI_HandleTypeDef *hspi, uint8_t *pTxData, uint8_t *pRxData, uint16_t Size, + uint32_t Timeout) +{ + uint16_t initial_TxXferCount; + uint32_t tmp_mode; + HAL_SPI_StateTypeDef tmp_state; + uint32_t tickstart; +#if (USE_SPI_CRC != 0U) + __IO uint32_t tmpreg = 0U; +#endif /* USE_SPI_CRC */ + + /* Variable used to alternate Rx and Tx during transfer */ + uint32_t txallowed = 1U; + HAL_StatusTypeDef errorcode = HAL_OK; + + /* Check Direction parameter */ + assert_param(IS_SPI_DIRECTION_2LINES(hspi->Init.Direction)); + + /* Process Locked */ + __HAL_LOCK(hspi); + + /* Init tickstart for timeout management*/ + tickstart = HAL_GetTick(); + + /* Init temporary variables */ + tmp_state = hspi->State; + tmp_mode = hspi->Init.Mode; + initial_TxXferCount = Size; + + if (!((tmp_state == HAL_SPI_STATE_READY) || \ + ((tmp_mode == SPI_MODE_MASTER) && (hspi->Init.Direction == SPI_DIRECTION_2LINES) && (tmp_state == HAL_SPI_STATE_BUSY_RX)))) + { + errorcode = HAL_BUSY; + goto error; + } + + if ((pTxData == NULL) || (pRxData == NULL) || (Size == 0U)) + { + errorcode = HAL_ERROR; + goto error; + } + + /* Don't overwrite in case of HAL_SPI_STATE_BUSY_RX */ + if (hspi->State != HAL_SPI_STATE_BUSY_RX) + { + hspi->State = HAL_SPI_STATE_BUSY_TX_RX; + } + + /* Set the transaction information */ + hspi->ErrorCode = HAL_SPI_ERROR_NONE; + hspi->pRxBuffPtr = (uint8_t *)pRxData; + hspi->RxXferCount = Size; + hspi->RxXferSize = Size; + hspi->pTxBuffPtr = (uint8_t *)pTxData; + hspi->TxXferCount = Size; + hspi->TxXferSize = Size; + + /*Init field not used in handle to zero */ + hspi->RxISR = NULL; + hspi->TxISR = NULL; + +#if (USE_SPI_CRC != 0U) + /* Reset CRC Calculation */ + if (hspi->Init.CRCCalculation == SPI_CRCCALCULATION_ENABLE) + { + SPI_RESET_CRC(hspi); + } +#endif /* USE_SPI_CRC */ + + /* Check if the SPI is already enabled */ + if ((hspi->Instance->CR1 & SPI_CR1_SPE) != SPI_CR1_SPE) + { + /* Enable SPI peripheral */ + __HAL_SPI_ENABLE(hspi); + } + + /* Transmit and Receive data in 16 Bit mode */ + if (hspi->Init.DataSize == SPI_DATASIZE_16BIT) + { + if ((hspi->Init.Mode == SPI_MODE_SLAVE) || (initial_TxXferCount == 0x01U)) + { + hspi->Instance->DR = *((uint16_t *)hspi->pTxBuffPtr); + hspi->pTxBuffPtr += sizeof(uint16_t); + hspi->TxXferCount--; + } + while ((hspi->TxXferCount > 0U) || (hspi->RxXferCount > 0U)) + { + /* Check TXE flag */ + if ((__HAL_SPI_GET_FLAG(hspi, SPI_FLAG_TXE)) && (hspi->TxXferCount > 0U) && (txallowed == 1U)) + { + hspi->Instance->DR = *((uint16_t *)hspi->pTxBuffPtr); + hspi->pTxBuffPtr += sizeof(uint16_t); + hspi->TxXferCount--; + /* Next Data is a reception (Rx). Tx not allowed */ + txallowed = 0U; + +#if (USE_SPI_CRC != 0U) + /* Enable CRC Transmission */ + if ((hspi->TxXferCount == 0U) && (hspi->Init.CRCCalculation == SPI_CRCCALCULATION_ENABLE)) + { + SET_BIT(hspi->Instance->CR1, SPI_CR1_CRCNEXT); + } +#endif /* USE_SPI_CRC */ + } + + /* Check RXNE flag */ + if ((__HAL_SPI_GET_FLAG(hspi, SPI_FLAG_RXNE)) && (hspi->RxXferCount > 0U)) + { + *((uint16_t *)hspi->pRxBuffPtr) = (uint16_t)hspi->Instance->DR; + hspi->pRxBuffPtr += sizeof(uint16_t); + hspi->RxXferCount--; + /* Next Data is a Transmission (Tx). Tx is allowed */ + txallowed = 1U; + } + if (((HAL_GetTick() - tickstart) >= Timeout) && (Timeout != HAL_MAX_DELAY)) + { + errorcode = HAL_TIMEOUT; + goto error; + } + } + } + /* Transmit and Receive data in 8 Bit mode */ + else + { + if ((hspi->Init.Mode == SPI_MODE_SLAVE) || (initial_TxXferCount == 0x01U)) + { + *((__IO uint8_t *)&hspi->Instance->DR) = (*hspi->pTxBuffPtr); + hspi->pTxBuffPtr += sizeof(uint8_t); + hspi->TxXferCount--; + } + while ((hspi->TxXferCount > 0U) || (hspi->RxXferCount > 0U)) + { + /* Check TXE flag */ + if ((__HAL_SPI_GET_FLAG(hspi, SPI_FLAG_TXE)) && (hspi->TxXferCount > 0U) && (txallowed == 1U)) + { + *(__IO uint8_t *)&hspi->Instance->DR = (*hspi->pTxBuffPtr); + hspi->pTxBuffPtr++; + hspi->TxXferCount--; + /* Next Data is a reception (Rx). Tx not allowed */ + txallowed = 0U; + +#if (USE_SPI_CRC != 0U) + /* Enable CRC Transmission */ + if ((hspi->TxXferCount == 0U) && (hspi->Init.CRCCalculation == SPI_CRCCALCULATION_ENABLE)) + { + SET_BIT(hspi->Instance->CR1, SPI_CR1_CRCNEXT); + } +#endif /* USE_SPI_CRC */ + } + + /* Wait until RXNE flag is reset */ + if ((__HAL_SPI_GET_FLAG(hspi, SPI_FLAG_RXNE)) && (hspi->RxXferCount > 0U)) + { + (*(uint8_t *)hspi->pRxBuffPtr) = hspi->Instance->DR; + hspi->pRxBuffPtr++; + hspi->RxXferCount--; + /* Next Data is a Transmission (Tx). Tx is allowed */ + txallowed = 1U; + } + if ((((HAL_GetTick() - tickstart) >= Timeout) && ((Timeout != HAL_MAX_DELAY))) || (Timeout == 0U)) + { + errorcode = HAL_TIMEOUT; + goto error; + } + } + } + +#if (USE_SPI_CRC != 0U) + /* Read CRC from DR to close CRC calculation process */ + if (hspi->Init.CRCCalculation == SPI_CRCCALCULATION_ENABLE) + { + /* Wait until TXE flag */ + if (SPI_WaitFlagStateUntilTimeout(hspi, SPI_FLAG_RXNE, SET, Timeout, tickstart) != HAL_OK) + { + /* Error on the CRC reception */ + SET_BIT(hspi->ErrorCode, HAL_SPI_ERROR_CRC); + errorcode = HAL_TIMEOUT; + goto error; + } + /* Read CRC */ + tmpreg = READ_REG(hspi->Instance->DR); + /* To avoid GCC warning */ + UNUSED(tmpreg); + } + + /* Check if CRC error occurred */ + if (__HAL_SPI_GET_FLAG(hspi, SPI_FLAG_CRCERR) != RESET) + { + /* Check if CRC error is valid or not (workaround to be applied or not) */ + if (SPI_ISCRCErrorValid(hspi) == SPI_VALID_CRC_ERROR) + { + SET_BIT(hspi->ErrorCode, HAL_SPI_ERROR_CRC); + + /* Reset CRC Calculation */ + SPI_RESET_CRC(hspi); + + errorcode = HAL_ERROR; + } + else + { + __HAL_SPI_CLEAR_CRCERRFLAG(hspi); + } + } +#endif /* USE_SPI_CRC */ + + /* Check the end of the transaction */ + if (SPI_EndRxTxTransaction(hspi, Timeout, tickstart) != HAL_OK) + { + errorcode = HAL_ERROR; + hspi->ErrorCode = HAL_SPI_ERROR_FLAG; + goto error; + } + + /* Clear overrun flag in 2 Lines communication mode because received is not read */ + if (hspi->Init.Direction == SPI_DIRECTION_2LINES) + { + __HAL_SPI_CLEAR_OVRFLAG(hspi); + } + +error : + hspi->State = HAL_SPI_STATE_READY; + __HAL_UNLOCK(hspi); + return errorcode; +} + +/** + * @brief Transmit an amount of data in non-blocking mode with Interrupt. + * @param hspi pointer to a SPI_HandleTypeDef structure that contains + * the configuration information for SPI module. + * @param pData pointer to data buffer + * @param Size amount of data to be sent + * @retval HAL status + */ +HAL_StatusTypeDef HAL_SPI_Transmit_IT(SPI_HandleTypeDef *hspi, uint8_t *pData, uint16_t Size) +{ + HAL_StatusTypeDef errorcode = HAL_OK; + + /* Check Direction parameter */ + assert_param(IS_SPI_DIRECTION_2LINES_OR_1LINE(hspi->Init.Direction)); + + /* Process Locked */ + __HAL_LOCK(hspi); + + if ((pData == NULL) || (Size == 0U)) + { + errorcode = HAL_ERROR; + goto error; + } + + if (hspi->State != HAL_SPI_STATE_READY) + { + errorcode = HAL_BUSY; + goto error; + } + + /* Set the transaction information */ + hspi->State = HAL_SPI_STATE_BUSY_TX; + hspi->ErrorCode = HAL_SPI_ERROR_NONE; + hspi->pTxBuffPtr = (uint8_t *)pData; + hspi->TxXferSize = Size; + hspi->TxXferCount = Size; + + /* Init field not used in handle to zero */ + hspi->pRxBuffPtr = (uint8_t *)NULL; + hspi->RxXferSize = 0U; + hspi->RxXferCount = 0U; + hspi->RxISR = NULL; + + /* Set the function for IT treatment */ + if (hspi->Init.DataSize > SPI_DATASIZE_8BIT) + { + hspi->TxISR = SPI_TxISR_16BIT; + } + else + { + hspi->TxISR = SPI_TxISR_8BIT; + } + + /* Configure communication direction : 1Line */ + if (hspi->Init.Direction == SPI_DIRECTION_1LINE) + { + /* Disable SPI Peripheral before set 1Line direction (BIDIOE bit) */ + __HAL_SPI_DISABLE(hspi); + SPI_1LINE_TX(hspi); + } + +#if (USE_SPI_CRC != 0U) + /* Reset CRC Calculation */ + if (hspi->Init.CRCCalculation == SPI_CRCCALCULATION_ENABLE) + { + SPI_RESET_CRC(hspi); + } +#endif /* USE_SPI_CRC */ + + /* Enable TXE and ERR interrupt */ + __HAL_SPI_ENABLE_IT(hspi, (SPI_IT_TXE | SPI_IT_ERR)); + + + /* Check if the SPI is already enabled */ + if ((hspi->Instance->CR1 & SPI_CR1_SPE) != SPI_CR1_SPE) + { + /* Enable SPI peripheral */ + __HAL_SPI_ENABLE(hspi); + } + +error : + __HAL_UNLOCK(hspi); + return errorcode; +} + +/** + * @brief Receive an amount of data in non-blocking mode with Interrupt. + * @param hspi pointer to a SPI_HandleTypeDef structure that contains + * the configuration information for SPI module. + * @param pData pointer to data buffer + * @param Size amount of data to be sent + * @retval HAL status + */ +HAL_StatusTypeDef HAL_SPI_Receive_IT(SPI_HandleTypeDef *hspi, uint8_t *pData, uint16_t Size) +{ + HAL_StatusTypeDef errorcode = HAL_OK; + + if ((hspi->Init.Direction == SPI_DIRECTION_2LINES) && (hspi->Init.Mode == SPI_MODE_MASTER)) + { + hspi->State = HAL_SPI_STATE_BUSY_RX; + /* Call transmit-receive function to send Dummy data on Tx line and generate clock on CLK line */ + return HAL_SPI_TransmitReceive_IT(hspi, pData, pData, Size); + } + + /* Process Locked */ + __HAL_LOCK(hspi); + + if (hspi->State != HAL_SPI_STATE_READY) + { + errorcode = HAL_BUSY; + goto error; + } + + if ((pData == NULL) || (Size == 0U)) + { + errorcode = HAL_ERROR; + goto error; + } + + /* Set the transaction information */ + hspi->State = HAL_SPI_STATE_BUSY_RX; + hspi->ErrorCode = HAL_SPI_ERROR_NONE; + hspi->pRxBuffPtr = (uint8_t *)pData; + hspi->RxXferSize = Size; + hspi->RxXferCount = Size; + + /* Init field not used in handle to zero */ + hspi->pTxBuffPtr = (uint8_t *)NULL; + hspi->TxXferSize = 0U; + hspi->TxXferCount = 0U; + hspi->TxISR = NULL; + + /* Set the function for IT treatment */ + if (hspi->Init.DataSize > SPI_DATASIZE_8BIT) + { + hspi->RxISR = SPI_RxISR_16BIT; + } + else + { + hspi->RxISR = SPI_RxISR_8BIT; + } + + /* Configure communication direction : 1Line */ + if (hspi->Init.Direction == SPI_DIRECTION_1LINE) + { + /* Disable SPI Peripheral before set 1Line direction (BIDIOE bit) */ + __HAL_SPI_DISABLE(hspi); + SPI_1LINE_RX(hspi); + } + +#if (USE_SPI_CRC != 0U) + /* Reset CRC Calculation */ + if (hspi->Init.CRCCalculation == SPI_CRCCALCULATION_ENABLE) + { + SPI_RESET_CRC(hspi); + } +#endif /* USE_SPI_CRC */ + + /* Enable TXE and ERR interrupt */ + __HAL_SPI_ENABLE_IT(hspi, (SPI_IT_RXNE | SPI_IT_ERR)); + + /* Note : The SPI must be enabled after unlocking current process + to avoid the risk of SPI interrupt handle execution before current + process unlock */ + + /* Check if the SPI is already enabled */ + if ((hspi->Instance->CR1 & SPI_CR1_SPE) != SPI_CR1_SPE) + { + /* Enable SPI peripheral */ + __HAL_SPI_ENABLE(hspi); + } + +error : + /* Process Unlocked */ + __HAL_UNLOCK(hspi); + return errorcode; +} + +/** + * @brief Transmit and Receive an amount of data in non-blocking mode with Interrupt. + * @param hspi pointer to a SPI_HandleTypeDef structure that contains + * the configuration information for SPI module. + * @param pTxData pointer to transmission data buffer + * @param pRxData pointer to reception data buffer + * @param Size amount of data to be sent and received + * @retval HAL status + */ +HAL_StatusTypeDef HAL_SPI_TransmitReceive_IT(SPI_HandleTypeDef *hspi, uint8_t *pTxData, uint8_t *pRxData, uint16_t Size) +{ + uint32_t tmp_mode; + HAL_SPI_StateTypeDef tmp_state; + HAL_StatusTypeDef errorcode = HAL_OK; + + /* Check Direction parameter */ + assert_param(IS_SPI_DIRECTION_2LINES(hspi->Init.Direction)); + + /* Process locked */ + __HAL_LOCK(hspi); + + /* Init temporary variables */ + tmp_state = hspi->State; + tmp_mode = hspi->Init.Mode; + + if (!((tmp_state == HAL_SPI_STATE_READY) || \ + ((tmp_mode == SPI_MODE_MASTER) && (hspi->Init.Direction == SPI_DIRECTION_2LINES) && (tmp_state == HAL_SPI_STATE_BUSY_RX)))) + { + errorcode = HAL_BUSY; + goto error; + } + + if ((pTxData == NULL) || (pRxData == NULL) || (Size == 0U)) + { + errorcode = HAL_ERROR; + goto error; + } + + /* Don't overwrite in case of HAL_SPI_STATE_BUSY_RX */ + if (hspi->State != HAL_SPI_STATE_BUSY_RX) + { + hspi->State = HAL_SPI_STATE_BUSY_TX_RX; + } + + /* Set the transaction information */ + hspi->ErrorCode = HAL_SPI_ERROR_NONE; + hspi->pTxBuffPtr = (uint8_t *)pTxData; + hspi->TxXferSize = Size; + hspi->TxXferCount = Size; + hspi->pRxBuffPtr = (uint8_t *)pRxData; + hspi->RxXferSize = Size; + hspi->RxXferCount = Size; + + /* Set the function for IT treatment */ + if (hspi->Init.DataSize > SPI_DATASIZE_8BIT) + { + hspi->RxISR = SPI_2linesRxISR_16BIT; + hspi->TxISR = SPI_2linesTxISR_16BIT; + } + else + { + hspi->RxISR = SPI_2linesRxISR_8BIT; + hspi->TxISR = SPI_2linesTxISR_8BIT; + } + +#if (USE_SPI_CRC != 0U) + /* Reset CRC Calculation */ + if (hspi->Init.CRCCalculation == SPI_CRCCALCULATION_ENABLE) + { + SPI_RESET_CRC(hspi); + } +#endif /* USE_SPI_CRC */ + + /* Enable TXE, RXNE and ERR interrupt */ + __HAL_SPI_ENABLE_IT(hspi, (SPI_IT_TXE | SPI_IT_RXNE | SPI_IT_ERR)); + + /* Check if the SPI is already enabled */ + if ((hspi->Instance->CR1 & SPI_CR1_SPE) != SPI_CR1_SPE) + { + /* Enable SPI peripheral */ + __HAL_SPI_ENABLE(hspi); + } + +error : + /* Process Unlocked */ + __HAL_UNLOCK(hspi); + return errorcode; +} + +/** + * @brief Transmit an amount of data in non-blocking mode with DMA. + * @param hspi pointer to a SPI_HandleTypeDef structure that contains + * the configuration information for SPI module. + * @param pData pointer to data buffer + * @param Size amount of data to be sent + * @retval HAL status + */ +HAL_StatusTypeDef HAL_SPI_Transmit_DMA(SPI_HandleTypeDef *hspi, uint8_t *pData, uint16_t Size) +{ + HAL_StatusTypeDef errorcode = HAL_OK; + + /* Check tx dma handle */ + assert_param(IS_SPI_DMA_HANDLE(hspi->hdmatx)); + + /* Check Direction parameter */ + assert_param(IS_SPI_DIRECTION_2LINES_OR_1LINE(hspi->Init.Direction)); + + /* Process Locked */ + __HAL_LOCK(hspi); + + if (hspi->State != HAL_SPI_STATE_READY) + { + errorcode = HAL_BUSY; + goto error; + } + + if ((pData == NULL) || (Size == 0U)) + { + errorcode = HAL_ERROR; + goto error; + } + + /* Set the transaction information */ + hspi->State = HAL_SPI_STATE_BUSY_TX; + hspi->ErrorCode = HAL_SPI_ERROR_NONE; + hspi->pTxBuffPtr = (uint8_t *)pData; + hspi->TxXferSize = Size; + hspi->TxXferCount = Size; + + /* Init field not used in handle to zero */ + hspi->pRxBuffPtr = (uint8_t *)NULL; + hspi->TxISR = NULL; + hspi->RxISR = NULL; + hspi->RxXferSize = 0U; + hspi->RxXferCount = 0U; + + /* Configure communication direction : 1Line */ + if (hspi->Init.Direction == SPI_DIRECTION_1LINE) + { + /* Disable SPI Peripheral before set 1Line direction (BIDIOE bit) */ + __HAL_SPI_DISABLE(hspi); + SPI_1LINE_TX(hspi); + } + +#if (USE_SPI_CRC != 0U) + /* Reset CRC Calculation */ + if (hspi->Init.CRCCalculation == SPI_CRCCALCULATION_ENABLE) + { + SPI_RESET_CRC(hspi); + } +#endif /* USE_SPI_CRC */ + + /* Set the SPI TxDMA Half transfer complete callback */ + hspi->hdmatx->XferHalfCpltCallback = SPI_DMAHalfTransmitCplt; + + /* Set the SPI TxDMA transfer complete callback */ + hspi->hdmatx->XferCpltCallback = SPI_DMATransmitCplt; + + /* Set the DMA error callback */ + hspi->hdmatx->XferErrorCallback = SPI_DMAError; + + /* Set the DMA AbortCpltCallback */ + hspi->hdmatx->XferAbortCallback = NULL; + + /* Enable the Tx DMA Stream/Channel */ + if (HAL_OK != HAL_DMA_Start_IT(hspi->hdmatx, (uint32_t)hspi->pTxBuffPtr, (uint32_t)&hspi->Instance->DR, + hspi->TxXferCount)) + { + /* Update SPI error code */ + SET_BIT(hspi->ErrorCode, HAL_SPI_ERROR_DMA); + errorcode = HAL_ERROR; + + hspi->State = HAL_SPI_STATE_READY; + goto error; + } + + /* Check if the SPI is already enabled */ + if ((hspi->Instance->CR1 & SPI_CR1_SPE) != SPI_CR1_SPE) + { + /* Enable SPI peripheral */ + __HAL_SPI_ENABLE(hspi); + } + + /* Enable the SPI Error Interrupt Bit */ + __HAL_SPI_ENABLE_IT(hspi, (SPI_IT_ERR)); + + /* Enable Tx DMA Request */ + SET_BIT(hspi->Instance->CR2, SPI_CR2_TXDMAEN); + +error : + /* Process Unlocked */ + __HAL_UNLOCK(hspi); + return errorcode; +} + +/** + * @brief Receive an amount of data in non-blocking mode with DMA. + * @note In case of MASTER mode and SPI_DIRECTION_2LINES direction, hdmatx shall be defined. + * @param hspi pointer to a SPI_HandleTypeDef structure that contains + * the configuration information for SPI module. + * @param pData pointer to data buffer + * @note When the CRC feature is enabled the pData Length must be Size + 1. + * @param Size amount of data to be sent + * @retval HAL status + */ +HAL_StatusTypeDef HAL_SPI_Receive_DMA(SPI_HandleTypeDef *hspi, uint8_t *pData, uint16_t Size) +{ + HAL_StatusTypeDef errorcode = HAL_OK; + + /* Check rx dma handle */ + assert_param(IS_SPI_DMA_HANDLE(hspi->hdmarx)); + + if ((hspi->Init.Direction == SPI_DIRECTION_2LINES) && (hspi->Init.Mode == SPI_MODE_MASTER)) + { + hspi->State = HAL_SPI_STATE_BUSY_RX; + + /* Check tx dma handle */ + assert_param(IS_SPI_DMA_HANDLE(hspi->hdmatx)); + + /* Call transmit-receive function to send Dummy data on Tx line and generate clock on CLK line */ + return HAL_SPI_TransmitReceive_DMA(hspi, pData, pData, Size); + } + + /* Process Locked */ + __HAL_LOCK(hspi); + + if (hspi->State != HAL_SPI_STATE_READY) + { + errorcode = HAL_BUSY; + goto error; + } + + if ((pData == NULL) || (Size == 0U)) + { + errorcode = HAL_ERROR; + goto error; + } + + /* Set the transaction information */ + hspi->State = HAL_SPI_STATE_BUSY_RX; + hspi->ErrorCode = HAL_SPI_ERROR_NONE; + hspi->pRxBuffPtr = (uint8_t *)pData; + hspi->RxXferSize = Size; + hspi->RxXferCount = Size; + + /*Init field not used in handle to zero */ + hspi->RxISR = NULL; + hspi->TxISR = NULL; + hspi->TxXferSize = 0U; + hspi->TxXferCount = 0U; + + /* Configure communication direction : 1Line */ + if (hspi->Init.Direction == SPI_DIRECTION_1LINE) + { + /* Disable SPI Peripheral before set 1Line direction (BIDIOE bit) */ + __HAL_SPI_DISABLE(hspi); + SPI_1LINE_RX(hspi); + } + +#if (USE_SPI_CRC != 0U) + /* Reset CRC Calculation */ + if (hspi->Init.CRCCalculation == SPI_CRCCALCULATION_ENABLE) + { + SPI_RESET_CRC(hspi); + } +#endif /* USE_SPI_CRC */ + + /* Set the SPI RxDMA Half transfer complete callback */ + hspi->hdmarx->XferHalfCpltCallback = SPI_DMAHalfReceiveCplt; + + /* Set the SPI Rx DMA transfer complete callback */ + hspi->hdmarx->XferCpltCallback = SPI_DMAReceiveCplt; + + /* Set the DMA error callback */ + hspi->hdmarx->XferErrorCallback = SPI_DMAError; + + /* Set the DMA AbortCpltCallback */ + hspi->hdmarx->XferAbortCallback = NULL; + + /* Enable the Rx DMA Stream/Channel */ + if (HAL_OK != HAL_DMA_Start_IT(hspi->hdmarx, (uint32_t)&hspi->Instance->DR, (uint32_t)hspi->pRxBuffPtr, + hspi->RxXferCount)) + { + /* Update SPI error code */ + SET_BIT(hspi->ErrorCode, HAL_SPI_ERROR_DMA); + errorcode = HAL_ERROR; + + hspi->State = HAL_SPI_STATE_READY; + goto error; + } + + /* Check if the SPI is already enabled */ + if ((hspi->Instance->CR1 & SPI_CR1_SPE) != SPI_CR1_SPE) + { + /* Enable SPI peripheral */ + __HAL_SPI_ENABLE(hspi); + } + + /* Enable the SPI Error Interrupt Bit */ + __HAL_SPI_ENABLE_IT(hspi, (SPI_IT_ERR)); + + /* Enable Rx DMA Request */ + SET_BIT(hspi->Instance->CR2, SPI_CR2_RXDMAEN); + +error: + /* Process Unlocked */ + __HAL_UNLOCK(hspi); + return errorcode; +} + +/** + * @brief Transmit and Receive an amount of data in non-blocking mode with DMA. + * @param hspi pointer to a SPI_HandleTypeDef structure that contains + * the configuration information for SPI module. + * @param pTxData pointer to transmission data buffer + * @param pRxData pointer to reception data buffer + * @note When the CRC feature is enabled the pRxData Length must be Size + 1 + * @param Size amount of data to be sent + * @retval HAL status + */ +HAL_StatusTypeDef HAL_SPI_TransmitReceive_DMA(SPI_HandleTypeDef *hspi, uint8_t *pTxData, uint8_t *pRxData, + uint16_t Size) +{ + uint32_t tmp_mode; + HAL_SPI_StateTypeDef tmp_state; + HAL_StatusTypeDef errorcode = HAL_OK; + + /* Check rx & tx dma handles */ + assert_param(IS_SPI_DMA_HANDLE(hspi->hdmarx)); + assert_param(IS_SPI_DMA_HANDLE(hspi->hdmatx)); + + /* Check Direction parameter */ + assert_param(IS_SPI_DIRECTION_2LINES(hspi->Init.Direction)); + + /* Process locked */ + __HAL_LOCK(hspi); + + /* Init temporary variables */ + tmp_state = hspi->State; + tmp_mode = hspi->Init.Mode; + + if (!((tmp_state == HAL_SPI_STATE_READY) || + ((tmp_mode == SPI_MODE_MASTER) && (hspi->Init.Direction == SPI_DIRECTION_2LINES) && (tmp_state == HAL_SPI_STATE_BUSY_RX)))) + { + errorcode = HAL_BUSY; + goto error; + } + + if ((pTxData == NULL) || (pRxData == NULL) || (Size == 0U)) + { + errorcode = HAL_ERROR; + goto error; + } + + /* Don't overwrite in case of HAL_SPI_STATE_BUSY_RX */ + if (hspi->State != HAL_SPI_STATE_BUSY_RX) + { + hspi->State = HAL_SPI_STATE_BUSY_TX_RX; + } + + /* Set the transaction information */ + hspi->ErrorCode = HAL_SPI_ERROR_NONE; + hspi->pTxBuffPtr = (uint8_t *)pTxData; + hspi->TxXferSize = Size; + hspi->TxXferCount = Size; + hspi->pRxBuffPtr = (uint8_t *)pRxData; + hspi->RxXferSize = Size; + hspi->RxXferCount = Size; + + /* Init field not used in handle to zero */ + hspi->RxISR = NULL; + hspi->TxISR = NULL; + +#if (USE_SPI_CRC != 0U) + /* Reset CRC Calculation */ + if (hspi->Init.CRCCalculation == SPI_CRCCALCULATION_ENABLE) + { + SPI_RESET_CRC(hspi); + } +#endif /* USE_SPI_CRC */ + + /* Check if we are in Rx only or in Rx/Tx Mode and configure the DMA transfer complete callback */ + if (hspi->State == HAL_SPI_STATE_BUSY_RX) + { + /* Set the SPI Rx DMA Half transfer complete callback */ + hspi->hdmarx->XferHalfCpltCallback = SPI_DMAHalfReceiveCplt; + hspi->hdmarx->XferCpltCallback = SPI_DMAReceiveCplt; + } + else + { + /* Set the SPI Tx/Rx DMA Half transfer complete callback */ + hspi->hdmarx->XferHalfCpltCallback = SPI_DMAHalfTransmitReceiveCplt; + hspi->hdmarx->XferCpltCallback = SPI_DMATransmitReceiveCplt; + } + + /* Set the DMA error callback */ + hspi->hdmarx->XferErrorCallback = SPI_DMAError; + + /* Set the DMA AbortCpltCallback */ + hspi->hdmarx->XferAbortCallback = NULL; + + /* Enable the Rx DMA Stream/Channel */ + if (HAL_OK != HAL_DMA_Start_IT(hspi->hdmarx, (uint32_t)&hspi->Instance->DR, (uint32_t)hspi->pRxBuffPtr, + hspi->RxXferCount)) + { + /* Update SPI error code */ + SET_BIT(hspi->ErrorCode, HAL_SPI_ERROR_DMA); + errorcode = HAL_ERROR; + + hspi->State = HAL_SPI_STATE_READY; + goto error; + } + + /* Enable Rx DMA Request */ + SET_BIT(hspi->Instance->CR2, SPI_CR2_RXDMAEN); + + /* Set the SPI Tx DMA transfer complete callback as NULL because the communication closing + is performed in DMA reception complete callback */ + hspi->hdmatx->XferHalfCpltCallback = NULL; + hspi->hdmatx->XferCpltCallback = NULL; + hspi->hdmatx->XferErrorCallback = NULL; + hspi->hdmatx->XferAbortCallback = NULL; + + /* Enable the Tx DMA Stream/Channel */ + if (HAL_OK != HAL_DMA_Start_IT(hspi->hdmatx, (uint32_t)hspi->pTxBuffPtr, (uint32_t)&hspi->Instance->DR, + hspi->TxXferCount)) + { + /* Update SPI error code */ + SET_BIT(hspi->ErrorCode, HAL_SPI_ERROR_DMA); + errorcode = HAL_ERROR; + + hspi->State = HAL_SPI_STATE_READY; + goto error; + } + + /* Check if the SPI is already enabled */ + if ((hspi->Instance->CR1 & SPI_CR1_SPE) != SPI_CR1_SPE) + { + /* Enable SPI peripheral */ + __HAL_SPI_ENABLE(hspi); + } + /* Enable the SPI Error Interrupt Bit */ + __HAL_SPI_ENABLE_IT(hspi, (SPI_IT_ERR)); + + /* Enable Tx DMA Request */ + SET_BIT(hspi->Instance->CR2, SPI_CR2_TXDMAEN); + +error : + /* Process Unlocked */ + __HAL_UNLOCK(hspi); + return errorcode; +} + +/** + * @brief Abort ongoing transfer (blocking mode). + * @param hspi SPI handle. + * @note This procedure could be used for aborting any ongoing transfer (Tx and Rx), + * started in Interrupt or DMA mode. + * This procedure performs following operations : + * - Disable SPI Interrupts (depending of transfer direction) + * - Disable the DMA transfer in the peripheral register (if enabled) + * - Abort DMA transfer by calling HAL_DMA_Abort (in case of transfer in DMA mode) + * - Set handle State to READY + * @note This procedure is executed in blocking mode : when exiting function, Abort is considered as completed. + * @retval HAL status + */ +HAL_StatusTypeDef HAL_SPI_Abort(SPI_HandleTypeDef *hspi) +{ + HAL_StatusTypeDef errorcode; + __IO uint32_t count; + __IO uint32_t resetcount; + + /* Initialized local variable */ + errorcode = HAL_OK; + resetcount = SPI_DEFAULT_TIMEOUT * (SystemCoreClock / 24U / 1000U); + count = resetcount; + + /* Clear ERRIE interrupt to avoid error interrupts generation during Abort procedure */ + CLEAR_BIT(hspi->Instance->CR2, SPI_CR2_ERRIE); + + /* Disable TXEIE, RXNEIE and ERRIE(mode fault event, overrun error, TI frame error) interrupts */ + if (HAL_IS_BIT_SET(hspi->Instance->CR2, SPI_CR2_TXEIE)) + { + hspi->TxISR = SPI_AbortTx_ISR; + /* Wait HAL_SPI_STATE_ABORT state */ + do + { + if (count == 0U) + { + SET_BIT(hspi->ErrorCode, HAL_SPI_ERROR_ABORT); + break; + } + count--; + } while (hspi->State != HAL_SPI_STATE_ABORT); + /* Reset Timeout Counter */ + count = resetcount; + } + + if (HAL_IS_BIT_SET(hspi->Instance->CR2, SPI_CR2_RXNEIE)) + { + hspi->RxISR = SPI_AbortRx_ISR; + /* Wait HAL_SPI_STATE_ABORT state */ + do + { + if (count == 0U) + { + SET_BIT(hspi->ErrorCode, HAL_SPI_ERROR_ABORT); + break; + } + count--; + } while (hspi->State != HAL_SPI_STATE_ABORT); + /* Reset Timeout Counter */ + count = resetcount; + } + + /* Disable the SPI DMA Tx request if enabled */ + if (HAL_IS_BIT_SET(hspi->Instance->CR2, SPI_CR2_TXDMAEN)) + { + /* Abort the SPI DMA Tx Stream/Channel : use blocking DMA Abort API (no callback) */ + if (hspi->hdmatx != NULL) + { + /* Set the SPI DMA Abort callback : + will lead to call HAL_SPI_AbortCpltCallback() at end of DMA abort procedure */ + hspi->hdmatx->XferAbortCallback = NULL; + + /* Abort DMA Tx Handle linked to SPI Peripheral */ + if (HAL_DMA_Abort(hspi->hdmatx) != HAL_OK) + { + hspi->ErrorCode = HAL_SPI_ERROR_ABORT; + } + + /* Disable Tx DMA Request */ + CLEAR_BIT(hspi->Instance->CR2, (SPI_CR2_TXDMAEN)); + + /* Wait until TXE flag is set */ + do + { + if (count == 0U) + { + SET_BIT(hspi->ErrorCode, HAL_SPI_ERROR_ABORT); + break; + } + count--; + } while ((hspi->Instance->SR & SPI_FLAG_TXE) == RESET); + } + } + + /* Disable the SPI DMA Rx request if enabled */ + if (HAL_IS_BIT_SET(hspi->Instance->CR2, SPI_CR2_RXDMAEN)) + { + /* Abort the SPI DMA Rx Stream/Channel : use blocking DMA Abort API (no callback) */ + if (hspi->hdmarx != NULL) + { + /* Set the SPI DMA Abort callback : + will lead to call HAL_SPI_AbortCpltCallback() at end of DMA abort procedure */ + hspi->hdmarx->XferAbortCallback = NULL; + + /* Abort DMA Rx Handle linked to SPI Peripheral */ + if (HAL_DMA_Abort(hspi->hdmarx) != HAL_OK) + { + hspi->ErrorCode = HAL_SPI_ERROR_ABORT; + } + + /* Disable peripheral */ + __HAL_SPI_DISABLE(hspi); + + /* Disable Rx DMA Request */ + CLEAR_BIT(hspi->Instance->CR2, (SPI_CR2_RXDMAEN)); + } + } + /* Reset Tx and Rx transfer counters */ + hspi->RxXferCount = 0U; + hspi->TxXferCount = 0U; + + /* Check error during Abort procedure */ + if (hspi->ErrorCode == HAL_SPI_ERROR_ABORT) + { + /* return HAL_Error in case of error during Abort procedure */ + errorcode = HAL_ERROR; + } + else + { + /* Reset errorCode */ + hspi->ErrorCode = HAL_SPI_ERROR_NONE; + } + + /* Clear the Error flags in the SR register */ + __HAL_SPI_CLEAR_OVRFLAG(hspi); + + /* Restore hspi->state to ready */ + hspi->State = HAL_SPI_STATE_READY; + + return errorcode; +} + +/** + * @brief Abort ongoing transfer (Interrupt mode). + * @param hspi SPI handle. + * @note This procedure could be used for aborting any ongoing transfer (Tx and Rx), + * started in Interrupt or DMA mode. + * This procedure performs following operations : + * - Disable SPI Interrupts (depending of transfer direction) + * - Disable the DMA transfer in the peripheral register (if enabled) + * - Abort DMA transfer by calling HAL_DMA_Abort_IT (in case of transfer in DMA mode) + * - Set handle State to READY + * - At abort completion, call user abort complete callback + * @note This procedure is executed in Interrupt mode, meaning that abort procedure could be + * considered as completed only when user abort complete callback is executed (not when exiting function). + * @retval HAL status + */ +HAL_StatusTypeDef HAL_SPI_Abort_IT(SPI_HandleTypeDef *hspi) +{ + HAL_StatusTypeDef errorcode; + uint32_t abortcplt ; + __IO uint32_t count; + __IO uint32_t resetcount; + + /* Initialized local variable */ + errorcode = HAL_OK; + abortcplt = 1U; + resetcount = SPI_DEFAULT_TIMEOUT * (SystemCoreClock / 24U / 1000U); + count = resetcount; + + /* Clear ERRIE interrupt to avoid error interrupts generation during Abort procedure */ + CLEAR_BIT(hspi->Instance->CR2, SPI_CR2_ERRIE); + + /* Change Rx and Tx Irq Handler to Disable TXEIE, RXNEIE and ERRIE interrupts */ + if (HAL_IS_BIT_SET(hspi->Instance->CR2, SPI_CR2_TXEIE)) + { + hspi->TxISR = SPI_AbortTx_ISR; + /* Wait HAL_SPI_STATE_ABORT state */ + do + { + if (count == 0U) + { + SET_BIT(hspi->ErrorCode, HAL_SPI_ERROR_ABORT); + break; + } + count--; + } while (hspi->State != HAL_SPI_STATE_ABORT); + /* Reset Timeout Counter */ + count = resetcount; + } + + if (HAL_IS_BIT_SET(hspi->Instance->CR2, SPI_CR2_RXNEIE)) + { + hspi->RxISR = SPI_AbortRx_ISR; + /* Wait HAL_SPI_STATE_ABORT state */ + do + { + if (count == 0U) + { + SET_BIT(hspi->ErrorCode, HAL_SPI_ERROR_ABORT); + break; + } + count--; + } while (hspi->State != HAL_SPI_STATE_ABORT); + /* Reset Timeout Counter */ + count = resetcount; + } + + /* If DMA Tx and/or DMA Rx Handles are associated to SPI Handle, DMA Abort complete callbacks should be initialised + before any call to DMA Abort functions */ + /* DMA Tx Handle is valid */ + if (hspi->hdmatx != NULL) + { + /* Set DMA Abort Complete callback if UART DMA Tx request if enabled. + Otherwise, set it to NULL */ + if (HAL_IS_BIT_SET(hspi->Instance->CR2, SPI_CR2_TXDMAEN)) + { + hspi->hdmatx->XferAbortCallback = SPI_DMATxAbortCallback; + } + else + { + hspi->hdmatx->XferAbortCallback = NULL; + } + } + /* DMA Rx Handle is valid */ + if (hspi->hdmarx != NULL) + { + /* Set DMA Abort Complete callback if UART DMA Rx request if enabled. + Otherwise, set it to NULL */ + if (HAL_IS_BIT_SET(hspi->Instance->CR2, SPI_CR2_RXDMAEN)) + { + hspi->hdmarx->XferAbortCallback = SPI_DMARxAbortCallback; + } + else + { + hspi->hdmarx->XferAbortCallback = NULL; + } + } + + /* Disable the SPI DMA Tx request if enabled */ + if (HAL_IS_BIT_SET(hspi->Instance->CR2, SPI_CR2_TXDMAEN)) + { + /* Abort the SPI DMA Tx Stream/Channel */ + if (hspi->hdmatx != NULL) + { + /* Abort DMA Tx Handle linked to SPI Peripheral */ + if (HAL_DMA_Abort_IT(hspi->hdmatx) != HAL_OK) + { + hspi->hdmatx->XferAbortCallback = NULL; + hspi->ErrorCode = HAL_SPI_ERROR_ABORT; + } + else + { + abortcplt = 0U; + } + } + } + /* Disable the SPI DMA Rx request if enabled */ + if (HAL_IS_BIT_SET(hspi->Instance->CR2, SPI_CR2_RXDMAEN)) + { + /* Abort the SPI DMA Rx Stream/Channel */ + if (hspi->hdmarx != NULL) + { + /* Abort DMA Rx Handle linked to SPI Peripheral */ + if (HAL_DMA_Abort_IT(hspi->hdmarx) != HAL_OK) + { + hspi->hdmarx->XferAbortCallback = NULL; + hspi->ErrorCode = HAL_SPI_ERROR_ABORT; + } + else + { + abortcplt = 0U; + } + } + } + + if (abortcplt == 1U) + { + /* Reset Tx and Rx transfer counters */ + hspi->RxXferCount = 0U; + hspi->TxXferCount = 0U; + + /* Check error during Abort procedure */ + if (hspi->ErrorCode == HAL_SPI_ERROR_ABORT) + { + /* return HAL_Error in case of error during Abort procedure */ + errorcode = HAL_ERROR; + } + else + { + /* Reset errorCode */ + hspi->ErrorCode = HAL_SPI_ERROR_NONE; + } + + /* Clear the Error flags in the SR register */ + __HAL_SPI_CLEAR_OVRFLAG(hspi); + + /* Restore hspi->State to Ready */ + hspi->State = HAL_SPI_STATE_READY; + + /* As no DMA to be aborted, call directly user Abort complete callback */ +#if (USE_HAL_SPI_REGISTER_CALLBACKS == 1U) + hspi->AbortCpltCallback(hspi); +#else + HAL_SPI_AbortCpltCallback(hspi); +#endif /* USE_HAL_SPI_REGISTER_CALLBACKS */ + } + + return errorcode; +} + +/** + * @brief Pause the DMA Transfer. + * @param hspi pointer to a SPI_HandleTypeDef structure that contains + * the configuration information for the specified SPI module. + * @retval HAL status + */ +HAL_StatusTypeDef HAL_SPI_DMAPause(SPI_HandleTypeDef *hspi) +{ + /* Process Locked */ + __HAL_LOCK(hspi); + + /* Disable the SPI DMA Tx & Rx requests */ + CLEAR_BIT(hspi->Instance->CR2, SPI_CR2_TXDMAEN | SPI_CR2_RXDMAEN); + + /* Process Unlocked */ + __HAL_UNLOCK(hspi); + + return HAL_OK; +} + +/** + * @brief Resume the DMA Transfer. + * @param hspi pointer to a SPI_HandleTypeDef structure that contains + * the configuration information for the specified SPI module. + * @retval HAL status + */ +HAL_StatusTypeDef HAL_SPI_DMAResume(SPI_HandleTypeDef *hspi) +{ + /* Process Locked */ + __HAL_LOCK(hspi); + + /* Enable the SPI DMA Tx & Rx requests */ + SET_BIT(hspi->Instance->CR2, SPI_CR2_TXDMAEN | SPI_CR2_RXDMAEN); + + /* Process Unlocked */ + __HAL_UNLOCK(hspi); + + return HAL_OK; +} + +/** + * @brief Stop the DMA Transfer. + * @param hspi pointer to a SPI_HandleTypeDef structure that contains + * the configuration information for the specified SPI module. + * @retval HAL status + */ +HAL_StatusTypeDef HAL_SPI_DMAStop(SPI_HandleTypeDef *hspi) +{ + HAL_StatusTypeDef errorcode = HAL_OK; + /* The Lock is not implemented on this API to allow the user application + to call the HAL SPI API under callbacks HAL_SPI_TxCpltCallback() or HAL_SPI_RxCpltCallback() or HAL_SPI_TxRxCpltCallback(): + when calling HAL_DMA_Abort() API the DMA TX/RX Transfer complete interrupt is generated + and the correspond call back is executed HAL_SPI_TxCpltCallback() or HAL_SPI_RxCpltCallback() or HAL_SPI_TxRxCpltCallback() + */ + + /* Abort the SPI DMA tx Stream/Channel */ + if (hspi->hdmatx != NULL) + { + if (HAL_OK != HAL_DMA_Abort(hspi->hdmatx)) + { + SET_BIT(hspi->ErrorCode, HAL_SPI_ERROR_DMA); + errorcode = HAL_ERROR; + } + } + /* Abort the SPI DMA rx Stream/Channel */ + if (hspi->hdmarx != NULL) + { + if (HAL_OK != HAL_DMA_Abort(hspi->hdmarx)) + { + SET_BIT(hspi->ErrorCode, HAL_SPI_ERROR_DMA); + errorcode = HAL_ERROR; + } + } + + /* Disable the SPI DMA Tx & Rx requests */ + CLEAR_BIT(hspi->Instance->CR2, SPI_CR2_TXDMAEN | SPI_CR2_RXDMAEN); + hspi->State = HAL_SPI_STATE_READY; + return errorcode; +} + +/** + * @brief Handle SPI interrupt request. + * @param hspi pointer to a SPI_HandleTypeDef structure that contains + * the configuration information for the specified SPI module. + * @retval None + */ +void HAL_SPI_IRQHandler(SPI_HandleTypeDef *hspi) +{ + uint32_t itsource = hspi->Instance->CR2; + uint32_t itflag = hspi->Instance->SR; + + /* SPI in mode Receiver ----------------------------------------------------*/ + if ((SPI_CHECK_FLAG(itflag, SPI_FLAG_OVR) == RESET) && + (SPI_CHECK_FLAG(itflag, SPI_FLAG_RXNE) != RESET) && (SPI_CHECK_IT_SOURCE(itsource, SPI_IT_RXNE) != RESET)) + { + hspi->RxISR(hspi); + return; + } + + /* SPI in mode Transmitter -------------------------------------------------*/ + if ((SPI_CHECK_FLAG(itflag, SPI_FLAG_TXE) != RESET) && (SPI_CHECK_IT_SOURCE(itsource, SPI_IT_TXE) != RESET)) + { + hspi->TxISR(hspi); + return; + } + + /* SPI in Error Treatment --------------------------------------------------*/ + if (((SPI_CHECK_FLAG(itflag, SPI_FLAG_MODF) != RESET) || (SPI_CHECK_FLAG(itflag, SPI_FLAG_OVR) != RESET)) + && (SPI_CHECK_IT_SOURCE(itsource, SPI_IT_ERR) != RESET)) + { + /* SPI Overrun error interrupt occurred ----------------------------------*/ + if (SPI_CHECK_FLAG(itflag, SPI_FLAG_OVR) != RESET) + { + if (hspi->State != HAL_SPI_STATE_BUSY_TX) + { + SET_BIT(hspi->ErrorCode, HAL_SPI_ERROR_OVR); + __HAL_SPI_CLEAR_OVRFLAG(hspi); + } + else + { + __HAL_SPI_CLEAR_OVRFLAG(hspi); + return; + } + } + + /* SPI Mode Fault error interrupt occurred -------------------------------*/ + if (SPI_CHECK_FLAG(itflag, SPI_FLAG_MODF) != RESET) + { + SET_BIT(hspi->ErrorCode, HAL_SPI_ERROR_MODF); + __HAL_SPI_CLEAR_MODFFLAG(hspi); + } + + /* SPI Frame error interrupt occurred ------------------------------------*/ + + if (hspi->ErrorCode != HAL_SPI_ERROR_NONE) + { + /* Disable all interrupts */ + __HAL_SPI_DISABLE_IT(hspi, SPI_IT_RXNE | SPI_IT_TXE | SPI_IT_ERR); + + hspi->State = HAL_SPI_STATE_READY; + /* Disable the SPI DMA requests if enabled */ + if ((HAL_IS_BIT_SET(itsource, SPI_CR2_TXDMAEN)) || (HAL_IS_BIT_SET(itsource, SPI_CR2_RXDMAEN))) + { + CLEAR_BIT(hspi->Instance->CR2, (SPI_CR2_TXDMAEN | SPI_CR2_RXDMAEN)); + + /* Abort the SPI DMA Rx channel */ + if (hspi->hdmarx != NULL) + { + /* Set the SPI DMA Abort callback : + will lead to call HAL_SPI_ErrorCallback() at end of DMA abort procedure */ + hspi->hdmarx->XferAbortCallback = SPI_DMAAbortOnError; + if (HAL_OK != HAL_DMA_Abort_IT(hspi->hdmarx)) + { + SET_BIT(hspi->ErrorCode, HAL_SPI_ERROR_ABORT); + } + } + /* Abort the SPI DMA Tx channel */ + if (hspi->hdmatx != NULL) + { + /* Set the SPI DMA Abort callback : + will lead to call HAL_SPI_ErrorCallback() at end of DMA abort procedure */ + hspi->hdmatx->XferAbortCallback = SPI_DMAAbortOnError; + if (HAL_OK != HAL_DMA_Abort_IT(hspi->hdmatx)) + { + SET_BIT(hspi->ErrorCode, HAL_SPI_ERROR_ABORT); + } + } + } + else + { + /* Call user error callback */ +#if (USE_HAL_SPI_REGISTER_CALLBACKS == 1U) + hspi->ErrorCallback(hspi); +#else + HAL_SPI_ErrorCallback(hspi); +#endif /* USE_HAL_SPI_REGISTER_CALLBACKS */ + } + } + return; + } +} + +/** + * @brief Tx Transfer completed callback. + * @param hspi pointer to a SPI_HandleTypeDef structure that contains + * the configuration information for SPI module. + * @retval None + */ +__weak void HAL_SPI_TxCpltCallback(SPI_HandleTypeDef *hspi) +{ + /* Prevent unused argument(s) compilation warning */ + UNUSED(hspi); + + /* NOTE : This function should not be modified, when the callback is needed, + the HAL_SPI_TxCpltCallback should be implemented in the user file + */ +} + +/** + * @brief Rx Transfer completed callback. + * @param hspi pointer to a SPI_HandleTypeDef structure that contains + * the configuration information for SPI module. + * @retval None + */ +__weak void HAL_SPI_RxCpltCallback(SPI_HandleTypeDef *hspi) +{ + /* Prevent unused argument(s) compilation warning */ + UNUSED(hspi); + + /* NOTE : This function should not be modified, when the callback is needed, + the HAL_SPI_RxCpltCallback should be implemented in the user file + */ +} + +/** + * @brief Tx and Rx Transfer completed callback. + * @param hspi pointer to a SPI_HandleTypeDef structure that contains + * the configuration information for SPI module. + * @retval None + */ +__weak void HAL_SPI_TxRxCpltCallback(SPI_HandleTypeDef *hspi) +{ + /* Prevent unused argument(s) compilation warning */ + UNUSED(hspi); + + /* NOTE : This function should not be modified, when the callback is needed, + the HAL_SPI_TxRxCpltCallback should be implemented in the user file + */ +} + +/** + * @brief Tx Half Transfer completed callback. + * @param hspi pointer to a SPI_HandleTypeDef structure that contains + * the configuration information for SPI module. + * @retval None + */ +__weak void HAL_SPI_TxHalfCpltCallback(SPI_HandleTypeDef *hspi) +{ + /* Prevent unused argument(s) compilation warning */ + UNUSED(hspi); + + /* NOTE : This function should not be modified, when the callback is needed, + the HAL_SPI_TxHalfCpltCallback should be implemented in the user file + */ +} + +/** + * @brief Rx Half Transfer completed callback. + * @param hspi pointer to a SPI_HandleTypeDef structure that contains + * the configuration information for SPI module. + * @retval None + */ +__weak void HAL_SPI_RxHalfCpltCallback(SPI_HandleTypeDef *hspi) +{ + /* Prevent unused argument(s) compilation warning */ + UNUSED(hspi); + + /* NOTE : This function should not be modified, when the callback is needed, + the HAL_SPI_RxHalfCpltCallback() should be implemented in the user file + */ +} + +/** + * @brief Tx and Rx Half Transfer callback. + * @param hspi pointer to a SPI_HandleTypeDef structure that contains + * the configuration information for SPI module. + * @retval None + */ +__weak void HAL_SPI_TxRxHalfCpltCallback(SPI_HandleTypeDef *hspi) +{ + /* Prevent unused argument(s) compilation warning */ + UNUSED(hspi); + + /* NOTE : This function should not be modified, when the callback is needed, + the HAL_SPI_TxRxHalfCpltCallback() should be implemented in the user file + */ +} + +/** + * @brief SPI error callback. + * @param hspi pointer to a SPI_HandleTypeDef structure that contains + * the configuration information for SPI module. + * @retval None + */ +__weak void HAL_SPI_ErrorCallback(SPI_HandleTypeDef *hspi) +{ + /* Prevent unused argument(s) compilation warning */ + UNUSED(hspi); + + /* NOTE : This function should not be modified, when the callback is needed, + the HAL_SPI_ErrorCallback should be implemented in the user file + */ + /* NOTE : The ErrorCode parameter in the hspi handle is updated by the SPI processes + and user can use HAL_SPI_GetError() API to check the latest error occurred + */ +} + +/** + * @brief SPI Abort Complete callback. + * @param hspi SPI handle. + * @retval None + */ +__weak void HAL_SPI_AbortCpltCallback(SPI_HandleTypeDef *hspi) +{ + /* Prevent unused argument(s) compilation warning */ + UNUSED(hspi); + + /* NOTE : This function should not be modified, when the callback is needed, + the HAL_SPI_AbortCpltCallback can be implemented in the user file. + */ +} + +/** + * @} + */ + +/** @defgroup SPI_Exported_Functions_Group3 Peripheral State and Errors functions + * @brief SPI control functions + * +@verbatim + =============================================================================== + ##### Peripheral State and Errors functions ##### + =============================================================================== + [..] + This subsection provides a set of functions allowing to control the SPI. + (+) HAL_SPI_GetState() API can be helpful to check in run-time the state of the SPI peripheral + (+) HAL_SPI_GetError() check in run-time Errors occurring during communication +@endverbatim + * @{ + */ + +/** + * @brief Return the SPI handle state. + * @param hspi pointer to a SPI_HandleTypeDef structure that contains + * the configuration information for SPI module. + * @retval SPI state + */ +HAL_SPI_StateTypeDef HAL_SPI_GetState(SPI_HandleTypeDef *hspi) +{ + /* Return SPI handle state */ + return hspi->State; +} + +/** + * @brief Return the SPI error code. + * @param hspi pointer to a SPI_HandleTypeDef structure that contains + * the configuration information for SPI module. + * @retval SPI error code in bitmap format + */ +uint32_t HAL_SPI_GetError(SPI_HandleTypeDef *hspi) +{ + /* Return SPI ErrorCode */ + return hspi->ErrorCode; +} + +/** + * @} + */ + +/** + * @} + */ + +/** @addtogroup SPI_Private_Functions + * @brief Private functions + * @{ + */ + +/** + * @brief DMA SPI transmit process complete callback. + * @param hdma pointer to a DMA_HandleTypeDef structure that contains + * the configuration information for the specified DMA module. + * @retval None + */ +static void SPI_DMATransmitCplt(DMA_HandleTypeDef *hdma) +{ + SPI_HandleTypeDef *hspi = (SPI_HandleTypeDef *)(((DMA_HandleTypeDef *)hdma)->Parent); /* Derogation MISRAC2012-Rule-11.5 */ + uint32_t tickstart; + + /* Init tickstart for timeout management*/ + tickstart = HAL_GetTick(); + + /* DMA Normal Mode */ + if ((hdma->Instance->CCR & DMA_CCR_CIRC) != DMA_CCR_CIRC) + { + /* Disable ERR interrupt */ + __HAL_SPI_DISABLE_IT(hspi, SPI_IT_ERR); + + /* Disable Tx DMA Request */ + CLEAR_BIT(hspi->Instance->CR2, SPI_CR2_TXDMAEN); + + /* Check the end of the transaction */ + if (SPI_EndRxTxTransaction(hspi, SPI_DEFAULT_TIMEOUT, tickstart) != HAL_OK) + { + SET_BIT(hspi->ErrorCode, HAL_SPI_ERROR_FLAG); + } + + /* Clear overrun flag in 2 Lines communication mode because received data is not read */ + if (hspi->Init.Direction == SPI_DIRECTION_2LINES) + { + __HAL_SPI_CLEAR_OVRFLAG(hspi); + } + + hspi->TxXferCount = 0U; + hspi->State = HAL_SPI_STATE_READY; + + if (hspi->ErrorCode != HAL_SPI_ERROR_NONE) + { + /* Call user error callback */ +#if (USE_HAL_SPI_REGISTER_CALLBACKS == 1U) + hspi->ErrorCallback(hspi); +#else + HAL_SPI_ErrorCallback(hspi); +#endif /* USE_HAL_SPI_REGISTER_CALLBACKS */ + return; + } + } + /* Call user Tx complete callback */ +#if (USE_HAL_SPI_REGISTER_CALLBACKS == 1U) + hspi->TxCpltCallback(hspi); +#else + HAL_SPI_TxCpltCallback(hspi); +#endif /* USE_HAL_SPI_REGISTER_CALLBACKS */ +} + +/** + * @brief DMA SPI receive process complete callback. + * @param hdma pointer to a DMA_HandleTypeDef structure that contains + * the configuration information for the specified DMA module. + * @retval None + */ +static void SPI_DMAReceiveCplt(DMA_HandleTypeDef *hdma) +{ + SPI_HandleTypeDef *hspi = (SPI_HandleTypeDef *)(((DMA_HandleTypeDef *)hdma)->Parent); /* Derogation MISRAC2012-Rule-11.5 */ + uint32_t tickstart; +#if (USE_SPI_CRC != 0U) + __IO uint32_t tmpreg = 0U; +#endif /* USE_SPI_CRC */ + + /* Init tickstart for timeout management*/ + tickstart = HAL_GetTick(); + + /* DMA Normal Mode */ + if ((hdma->Instance->CCR & DMA_CCR_CIRC) != DMA_CCR_CIRC) + { + /* Disable ERR interrupt */ + __HAL_SPI_DISABLE_IT(hspi, SPI_IT_ERR); + +#if (USE_SPI_CRC != 0U) + /* CRC handling */ + if (hspi->Init.CRCCalculation == SPI_CRCCALCULATION_ENABLE) + { + /* Wait until RXNE flag */ + if (SPI_WaitFlagStateUntilTimeout(hspi, SPI_FLAG_RXNE, SET, SPI_DEFAULT_TIMEOUT, tickstart) != HAL_OK) + { + /* Error on the CRC reception */ + SET_BIT(hspi->ErrorCode, HAL_SPI_ERROR_CRC); + } + /* Read CRC */ + tmpreg = READ_REG(hspi->Instance->DR); + /* To avoid GCC warning */ + UNUSED(tmpreg); + } +#endif /* USE_SPI_CRC */ + + /* Check if we are in Master RX 2 line mode */ + if ((hspi->Init.Direction == SPI_DIRECTION_2LINES) && (hspi->Init.Mode == SPI_MODE_MASTER)) + { + /* Disable Rx/Tx DMA Request (done by default to handle the case master rx direction 2 lines) */ + CLEAR_BIT(hspi->Instance->CR2, SPI_CR2_TXDMAEN | SPI_CR2_RXDMAEN); + } + else + { + /* Normal case */ + CLEAR_BIT(hspi->Instance->CR2, SPI_CR2_RXDMAEN); + } + + /* Check the end of the transaction */ + if (SPI_EndRxTransaction(hspi, SPI_DEFAULT_TIMEOUT, tickstart) != HAL_OK) + { + hspi->ErrorCode = HAL_SPI_ERROR_FLAG; + } + + hspi->RxXferCount = 0U; + hspi->State = HAL_SPI_STATE_READY; + +#if (USE_SPI_CRC != 0U) + /* Check if CRC error occurred */ + if (__HAL_SPI_GET_FLAG(hspi, SPI_FLAG_CRCERR) != RESET) + { + /* Check if CRC error is valid or not (workaround to be applied or not) */ + if (SPI_ISCRCErrorValid(hspi) == SPI_VALID_CRC_ERROR) + { + SET_BIT(hspi->ErrorCode, HAL_SPI_ERROR_CRC); + + /* Reset CRC Calculation */ + SPI_RESET_CRC(hspi); + } + else + { + __HAL_SPI_CLEAR_CRCERRFLAG(hspi); + } + } +#endif /* USE_SPI_CRC */ + + if (hspi->ErrorCode != HAL_SPI_ERROR_NONE) + { + /* Call user error callback */ +#if (USE_HAL_SPI_REGISTER_CALLBACKS == 1U) + hspi->ErrorCallback(hspi); +#else + HAL_SPI_ErrorCallback(hspi); +#endif /* USE_HAL_SPI_REGISTER_CALLBACKS */ + return; + } + } + /* Call user Rx complete callback */ +#if (USE_HAL_SPI_REGISTER_CALLBACKS == 1U) + hspi->RxCpltCallback(hspi); +#else + HAL_SPI_RxCpltCallback(hspi); +#endif /* USE_HAL_SPI_REGISTER_CALLBACKS */ +} + +/** + * @brief DMA SPI transmit receive process complete callback. + * @param hdma pointer to a DMA_HandleTypeDef structure that contains + * the configuration information for the specified DMA module. + * @retval None + */ +static void SPI_DMATransmitReceiveCplt(DMA_HandleTypeDef *hdma) +{ + SPI_HandleTypeDef *hspi = (SPI_HandleTypeDef *)(((DMA_HandleTypeDef *)hdma)->Parent); /* Derogation MISRAC2012-Rule-11.5 */ + uint32_t tickstart; +#if (USE_SPI_CRC != 0U) + __IO uint32_t tmpreg = 0U; +#endif /* USE_SPI_CRC */ + + /* Init tickstart for timeout management*/ + tickstart = HAL_GetTick(); + + /* DMA Normal Mode */ + if ((hdma->Instance->CCR & DMA_CCR_CIRC) != DMA_CCR_CIRC) + { + /* Disable ERR interrupt */ + __HAL_SPI_DISABLE_IT(hspi, SPI_IT_ERR); + +#if (USE_SPI_CRC != 0U) + /* CRC handling */ + if (hspi->Init.CRCCalculation == SPI_CRCCALCULATION_ENABLE) + { + /* Wait the CRC data */ + if (SPI_WaitFlagStateUntilTimeout(hspi, SPI_FLAG_RXNE, SET, SPI_DEFAULT_TIMEOUT, tickstart) != HAL_OK) + { + SET_BIT(hspi->ErrorCode, HAL_SPI_ERROR_CRC); + } + /* Read CRC to Flush DR and RXNE flag */ + tmpreg = READ_REG(hspi->Instance->DR); + /* To avoid GCC warning */ + UNUSED(tmpreg); + } +#endif /* USE_SPI_CRC */ + + /* Check the end of the transaction */ + if (SPI_EndRxTxTransaction(hspi, SPI_DEFAULT_TIMEOUT, tickstart) != HAL_OK) + { + SET_BIT(hspi->ErrorCode, HAL_SPI_ERROR_FLAG); + } + + /* Disable Rx/Tx DMA Request */ + CLEAR_BIT(hspi->Instance->CR2, SPI_CR2_TXDMAEN | SPI_CR2_RXDMAEN); + + hspi->TxXferCount = 0U; + hspi->RxXferCount = 0U; + hspi->State = HAL_SPI_STATE_READY; + +#if (USE_SPI_CRC != 0U) + /* Check if CRC error occurred */ + if (__HAL_SPI_GET_FLAG(hspi, SPI_FLAG_CRCERR) != RESET) + { + /* Check if CRC error is valid or not (workaround to be applied or not) */ + if (SPI_ISCRCErrorValid(hspi) == SPI_VALID_CRC_ERROR) + { + SET_BIT(hspi->ErrorCode, HAL_SPI_ERROR_CRC); + + /* Reset CRC Calculation */ + SPI_RESET_CRC(hspi); + } + else + { + __HAL_SPI_CLEAR_CRCERRFLAG(hspi); + } + } +#endif /* USE_SPI_CRC */ + + if (hspi->ErrorCode != HAL_SPI_ERROR_NONE) + { + /* Call user error callback */ +#if (USE_HAL_SPI_REGISTER_CALLBACKS == 1U) + hspi->ErrorCallback(hspi); +#else + HAL_SPI_ErrorCallback(hspi); +#endif /* USE_HAL_SPI_REGISTER_CALLBACKS */ + return; + } + } + /* Call user TxRx complete callback */ +#if (USE_HAL_SPI_REGISTER_CALLBACKS == 1U) + hspi->TxRxCpltCallback(hspi); +#else + HAL_SPI_TxRxCpltCallback(hspi); +#endif /* USE_HAL_SPI_REGISTER_CALLBACKS */ +} + +/** + * @brief DMA SPI half transmit process complete callback. + * @param hdma pointer to a DMA_HandleTypeDef structure that contains + * the configuration information for the specified DMA module. + * @retval None + */ +static void SPI_DMAHalfTransmitCplt(DMA_HandleTypeDef *hdma) +{ + SPI_HandleTypeDef *hspi = (SPI_HandleTypeDef *)(((DMA_HandleTypeDef *)hdma)->Parent); /* Derogation MISRAC2012-Rule-11.5 */ + + /* Call user Tx half complete callback */ +#if (USE_HAL_SPI_REGISTER_CALLBACKS == 1U) + hspi->TxHalfCpltCallback(hspi); +#else + HAL_SPI_TxHalfCpltCallback(hspi); +#endif /* USE_HAL_SPI_REGISTER_CALLBACKS */ +} + +/** + * @brief DMA SPI half receive process complete callback + * @param hdma pointer to a DMA_HandleTypeDef structure that contains + * the configuration information for the specified DMA module. + * @retval None + */ +static void SPI_DMAHalfReceiveCplt(DMA_HandleTypeDef *hdma) +{ + SPI_HandleTypeDef *hspi = (SPI_HandleTypeDef *)(((DMA_HandleTypeDef *)hdma)->Parent); /* Derogation MISRAC2012-Rule-11.5 */ + + /* Call user Rx half complete callback */ +#if (USE_HAL_SPI_REGISTER_CALLBACKS == 1U) + hspi->RxHalfCpltCallback(hspi); +#else + HAL_SPI_RxHalfCpltCallback(hspi); +#endif /* USE_HAL_SPI_REGISTER_CALLBACKS */ +} + +/** + * @brief DMA SPI half transmit receive process complete callback. + * @param hdma pointer to a DMA_HandleTypeDef structure that contains + * the configuration information for the specified DMA module. + * @retval None + */ +static void SPI_DMAHalfTransmitReceiveCplt(DMA_HandleTypeDef *hdma) +{ + SPI_HandleTypeDef *hspi = (SPI_HandleTypeDef *)(((DMA_HandleTypeDef *)hdma)->Parent); /* Derogation MISRAC2012-Rule-11.5 */ + + /* Call user TxRx half complete callback */ +#if (USE_HAL_SPI_REGISTER_CALLBACKS == 1U) + hspi->TxRxHalfCpltCallback(hspi); +#else + HAL_SPI_TxRxHalfCpltCallback(hspi); +#endif /* USE_HAL_SPI_REGISTER_CALLBACKS */ +} + +/** + * @brief DMA SPI communication error callback. + * @param hdma pointer to a DMA_HandleTypeDef structure that contains + * the configuration information for the specified DMA module. + * @retval None + */ +static void SPI_DMAError(DMA_HandleTypeDef *hdma) +{ + SPI_HandleTypeDef *hspi = (SPI_HandleTypeDef *)(((DMA_HandleTypeDef *)hdma)->Parent); /* Derogation MISRAC2012-Rule-11.5 */ + + /* Stop the disable DMA transfer on SPI side */ + CLEAR_BIT(hspi->Instance->CR2, SPI_CR2_TXDMAEN | SPI_CR2_RXDMAEN); + + SET_BIT(hspi->ErrorCode, HAL_SPI_ERROR_DMA); + hspi->State = HAL_SPI_STATE_READY; + /* Call user error callback */ +#if (USE_HAL_SPI_REGISTER_CALLBACKS == 1U) + hspi->ErrorCallback(hspi); +#else + HAL_SPI_ErrorCallback(hspi); +#endif /* USE_HAL_SPI_REGISTER_CALLBACKS */ +} + +/** + * @brief DMA SPI communication abort callback, when initiated by HAL services on Error + * (To be called at end of DMA Abort procedure following error occurrence). + * @param hdma DMA handle. + * @retval None + */ +static void SPI_DMAAbortOnError(DMA_HandleTypeDef *hdma) +{ + SPI_HandleTypeDef *hspi = (SPI_HandleTypeDef *)(((DMA_HandleTypeDef *)hdma)->Parent); /* Derogation MISRAC2012-Rule-11.5 */ + hspi->RxXferCount = 0U; + hspi->TxXferCount = 0U; + + /* Call user error callback */ +#if (USE_HAL_SPI_REGISTER_CALLBACKS == 1U) + hspi->ErrorCallback(hspi); +#else + HAL_SPI_ErrorCallback(hspi); +#endif /* USE_HAL_SPI_REGISTER_CALLBACKS */ +} + +/** + * @brief DMA SPI Tx communication abort callback, when initiated by user + * (To be called at end of DMA Tx Abort procedure following user abort request). + * @note When this callback is executed, User Abort complete call back is called only if no + * Abort still ongoing for Rx DMA Handle. + * @param hdma DMA handle. + * @retval None + */ +static void SPI_DMATxAbortCallback(DMA_HandleTypeDef *hdma) +{ + SPI_HandleTypeDef *hspi = (SPI_HandleTypeDef *)(((DMA_HandleTypeDef *)hdma)->Parent); /* Derogation MISRAC2012-Rule-11.5 */ + __IO uint32_t count; + + hspi->hdmatx->XferAbortCallback = NULL; + count = SPI_DEFAULT_TIMEOUT * (SystemCoreClock / 24U / 1000U); + + /* Disable Tx DMA Request */ + CLEAR_BIT(hspi->Instance->CR2, SPI_CR2_TXDMAEN); + + /* Wait until TXE flag is set */ + do + { + if (count == 0U) + { + SET_BIT(hspi->ErrorCode, HAL_SPI_ERROR_ABORT); + break; + } + count--; + } while ((hspi->Instance->SR & SPI_FLAG_TXE) == RESET); + + /* Check if an Abort process is still ongoing */ + if (hspi->hdmarx != NULL) + { + if (hspi->hdmarx->XferAbortCallback != NULL) + { + return; + } + } + + /* No Abort process still ongoing : All DMA Stream/Channel are aborted, call user Abort Complete callback */ + hspi->RxXferCount = 0U; + hspi->TxXferCount = 0U; + + /* Check no error during Abort procedure */ + if (hspi->ErrorCode != HAL_SPI_ERROR_ABORT) + { + /* Reset errorCode */ + hspi->ErrorCode = HAL_SPI_ERROR_NONE; + } + + /* Clear the Error flags in the SR register */ + __HAL_SPI_CLEAR_OVRFLAG(hspi); + + /* Restore hspi->State to Ready */ + hspi->State = HAL_SPI_STATE_READY; + + /* Call user Abort complete callback */ +#if (USE_HAL_SPI_REGISTER_CALLBACKS == 1U) + hspi->AbortCpltCallback(hspi); +#else + HAL_SPI_AbortCpltCallback(hspi); +#endif /* USE_HAL_SPI_REGISTER_CALLBACKS */ +} + +/** + * @brief DMA SPI Rx communication abort callback, when initiated by user + * (To be called at end of DMA Rx Abort procedure following user abort request). + * @note When this callback is executed, User Abort complete call back is called only if no + * Abort still ongoing for Tx DMA Handle. + * @param hdma DMA handle. + * @retval None + */ +static void SPI_DMARxAbortCallback(DMA_HandleTypeDef *hdma) +{ + SPI_HandleTypeDef *hspi = (SPI_HandleTypeDef *)(((DMA_HandleTypeDef *)hdma)->Parent); /* Derogation MISRAC2012-Rule-11.5 */ + + /* Disable SPI Peripheral */ + __HAL_SPI_DISABLE(hspi); + + hspi->hdmarx->XferAbortCallback = NULL; + + /* Disable Rx DMA Request */ + CLEAR_BIT(hspi->Instance->CR2, SPI_CR2_RXDMAEN); + + /* Check Busy flag */ + if (SPI_EndRxTxTransaction(hspi, SPI_DEFAULT_TIMEOUT, HAL_GetTick()) != HAL_OK) + { + SET_BIT(hspi->ErrorCode, HAL_SPI_ERROR_ABORT); + } + + /* Check if an Abort process is still ongoing */ + if (hspi->hdmatx != NULL) + { + if (hspi->hdmatx->XferAbortCallback != NULL) + { + return; + } + } + + /* No Abort process still ongoing : All DMA Stream/Channel are aborted, call user Abort Complete callback */ + hspi->RxXferCount = 0U; + hspi->TxXferCount = 0U; + + /* Check no error during Abort procedure */ + if (hspi->ErrorCode != HAL_SPI_ERROR_ABORT) + { + /* Reset errorCode */ + hspi->ErrorCode = HAL_SPI_ERROR_NONE; + } + + /* Clear the Error flags in the SR register */ + __HAL_SPI_CLEAR_OVRFLAG(hspi); + + /* Restore hspi->State to Ready */ + hspi->State = HAL_SPI_STATE_READY; + + /* Call user Abort complete callback */ +#if (USE_HAL_SPI_REGISTER_CALLBACKS == 1U) + hspi->AbortCpltCallback(hspi); +#else + HAL_SPI_AbortCpltCallback(hspi); +#endif /* USE_HAL_SPI_REGISTER_CALLBACKS */ +} + +/** + * @brief Rx 8-bit handler for Transmit and Receive in Interrupt mode. + * @param hspi pointer to a SPI_HandleTypeDef structure that contains + * the configuration information for SPI module. + * @retval None + */ +static void SPI_2linesRxISR_8BIT(struct __SPI_HandleTypeDef *hspi) +{ + /* Receive data in 8bit mode */ + *hspi->pRxBuffPtr = *((__IO uint8_t *)&hspi->Instance->DR); + hspi->pRxBuffPtr++; + hspi->RxXferCount--; + + /* Check end of the reception */ + if (hspi->RxXferCount == 0U) + { +#if (USE_SPI_CRC != 0U) + if (hspi->Init.CRCCalculation == SPI_CRCCALCULATION_ENABLE) + { + hspi->RxISR = SPI_2linesRxISR_8BITCRC; + return; + } +#endif /* USE_SPI_CRC */ + + /* Disable RXNE and ERR interrupt */ + __HAL_SPI_DISABLE_IT(hspi, (SPI_IT_RXNE | SPI_IT_ERR)); + + if (hspi->TxXferCount == 0U) + { + SPI_CloseRxTx_ISR(hspi); + } + } +} + +#if (USE_SPI_CRC != 0U) +/** + * @brief Rx 8-bit handler for Transmit and Receive in Interrupt mode. + * @param hspi pointer to a SPI_HandleTypeDef structure that contains + * the configuration information for SPI module. + * @retval None + */ +static void SPI_2linesRxISR_8BITCRC(struct __SPI_HandleTypeDef *hspi) +{ + __IO uint8_t * ptmpreg8; + __IO uint8_t tmpreg8 = 0; + + /* Initialize the 8bit temporary pointer */ + ptmpreg8 = (__IO uint8_t *)&hspi->Instance->DR; + /* Read 8bit CRC to flush Data Register */ + tmpreg8 = *ptmpreg8; + /* To avoid GCC warning */ + UNUSED(tmpreg8); + + /* Disable RXNE and ERR interrupt */ + __HAL_SPI_DISABLE_IT(hspi, (SPI_IT_RXNE | SPI_IT_ERR)); + + if (hspi->TxXferCount == 0U) + { + SPI_CloseRxTx_ISR(hspi); + } +} +#endif /* USE_SPI_CRC */ + +/** + * @brief Tx 8-bit handler for Transmit and Receive in Interrupt mode. + * @param hspi pointer to a SPI_HandleTypeDef structure that contains + * the configuration information for SPI module. + * @retval None + */ +static void SPI_2linesTxISR_8BIT(struct __SPI_HandleTypeDef *hspi) +{ + *(__IO uint8_t *)&hspi->Instance->DR = (*hspi->pTxBuffPtr); + hspi->pTxBuffPtr++; + hspi->TxXferCount--; + + /* Check the end of the transmission */ + if (hspi->TxXferCount == 0U) + { +#if (USE_SPI_CRC != 0U) + if (hspi->Init.CRCCalculation == SPI_CRCCALCULATION_ENABLE) + { + /* Set CRC Next Bit to send CRC */ + SET_BIT(hspi->Instance->CR1, SPI_CR1_CRCNEXT); + /* Disable TXE interrupt */ + __HAL_SPI_DISABLE_IT(hspi, SPI_IT_TXE); + return; + } +#endif /* USE_SPI_CRC */ + + /* Disable TXE interrupt */ + __HAL_SPI_DISABLE_IT(hspi, SPI_IT_TXE); + + if (hspi->RxXferCount == 0U) + { + SPI_CloseRxTx_ISR(hspi); + } + } +} + +/** + * @brief Rx 16-bit handler for Transmit and Receive in Interrupt mode. + * @param hspi pointer to a SPI_HandleTypeDef structure that contains + * the configuration information for SPI module. + * @retval None + */ +static void SPI_2linesRxISR_16BIT(struct __SPI_HandleTypeDef *hspi) +{ + /* Receive data in 16 Bit mode */ + *((uint16_t *)hspi->pRxBuffPtr) = (uint16_t)(hspi->Instance->DR); + hspi->pRxBuffPtr += sizeof(uint16_t); + hspi->RxXferCount--; + + if (hspi->RxXferCount == 0U) + { +#if (USE_SPI_CRC != 0U) + if (hspi->Init.CRCCalculation == SPI_CRCCALCULATION_ENABLE) + { + hspi->RxISR = SPI_2linesRxISR_16BITCRC; + return; + } +#endif /* USE_SPI_CRC */ + + /* Disable RXNE interrupt */ + __HAL_SPI_DISABLE_IT(hspi, SPI_IT_RXNE); + + if (hspi->TxXferCount == 0U) + { + SPI_CloseRxTx_ISR(hspi); + } + } +} + +#if (USE_SPI_CRC != 0U) +/** + * @brief Manage the CRC 16-bit receive for Transmit and Receive in Interrupt mode. + * @param hspi pointer to a SPI_HandleTypeDef structure that contains + * the configuration information for SPI module. + * @retval None + */ +static void SPI_2linesRxISR_16BITCRC(struct __SPI_HandleTypeDef *hspi) +{ + __IO uint32_t tmpreg = 0U; + + /* Read 16bit CRC to flush Data Register */ + tmpreg = READ_REG(hspi->Instance->DR); + /* To avoid GCC warning */ + UNUSED(tmpreg); + + /* Disable RXNE interrupt */ + __HAL_SPI_DISABLE_IT(hspi, SPI_IT_RXNE); + + SPI_CloseRxTx_ISR(hspi); +} +#endif /* USE_SPI_CRC */ + +/** + * @brief Tx 16-bit handler for Transmit and Receive in Interrupt mode. + * @param hspi pointer to a SPI_HandleTypeDef structure that contains + * the configuration information for SPI module. + * @retval None + */ +static void SPI_2linesTxISR_16BIT(struct __SPI_HandleTypeDef *hspi) +{ + /* Transmit data in 16 Bit mode */ + hspi->Instance->DR = *((uint16_t *)hspi->pTxBuffPtr); + hspi->pTxBuffPtr += sizeof(uint16_t); + hspi->TxXferCount--; + + /* Enable CRC Transmission */ + if (hspi->TxXferCount == 0U) + { +#if (USE_SPI_CRC != 0U) + if (hspi->Init.CRCCalculation == SPI_CRCCALCULATION_ENABLE) + { + /* Set CRC Next Bit to send CRC */ + SET_BIT(hspi->Instance->CR1, SPI_CR1_CRCNEXT); + /* Disable TXE interrupt */ + __HAL_SPI_DISABLE_IT(hspi, SPI_IT_TXE); + return; + } +#endif /* USE_SPI_CRC */ + + /* Disable TXE interrupt */ + __HAL_SPI_DISABLE_IT(hspi, SPI_IT_TXE); + + if (hspi->RxXferCount == 0U) + { + SPI_CloseRxTx_ISR(hspi); + } + } +} + +#if (USE_SPI_CRC != 0U) +/** + * @brief Manage the CRC 8-bit receive in Interrupt context. + * @param hspi pointer to a SPI_HandleTypeDef structure that contains + * the configuration information for SPI module. + * @retval None + */ +static void SPI_RxISR_8BITCRC(struct __SPI_HandleTypeDef *hspi) +{ + __IO uint8_t * ptmpreg8; + __IO uint8_t tmpreg8 = 0; + + /* Initialize the 8bit temporary pointer */ + ptmpreg8 = (__IO uint8_t *)&hspi->Instance->DR; + /* Read 8bit CRC to flush Data Register */ + tmpreg8 = *ptmpreg8; + /* To avoid GCC warning */ + UNUSED(tmpreg8); + + SPI_CloseRx_ISR(hspi); +} +#endif /* USE_SPI_CRC */ + +/** + * @brief Manage the receive 8-bit in Interrupt context. + * @param hspi pointer to a SPI_HandleTypeDef structure that contains + * the configuration information for SPI module. + * @retval None + */ +static void SPI_RxISR_8BIT(struct __SPI_HandleTypeDef *hspi) +{ + *hspi->pRxBuffPtr = (*(__IO uint8_t *)&hspi->Instance->DR); + hspi->pRxBuffPtr++; + hspi->RxXferCount--; + +#if (USE_SPI_CRC != 0U) + /* Enable CRC Transmission */ + if ((hspi->RxXferCount == 1U) && (hspi->Init.CRCCalculation == SPI_CRCCALCULATION_ENABLE)) + { + SET_BIT(hspi->Instance->CR1, SPI_CR1_CRCNEXT); + } + /* Check if CRCNEXT is well reseted by hardware */ + if (READ_BIT(hspi->Instance->CR1, SPI_CR1_CRCNEXT)) + { + /* Workaround to force CRCNEXT bit to zero in case of CRCNEXT is not reset automatically by hardware */ + CLEAR_BIT(hspi->Instance->CR1, SPI_CR1_CRCNEXT); + } + +#endif /* USE_SPI_CRC */ + + if (hspi->RxXferCount == 0U) + { +#if (USE_SPI_CRC != 0U) + if (hspi->Init.CRCCalculation == SPI_CRCCALCULATION_ENABLE) + { + hspi->RxISR = SPI_RxISR_8BITCRC; + return; + } +#endif /* USE_SPI_CRC */ + SPI_CloseRx_ISR(hspi); + } +} + +#if (USE_SPI_CRC != 0U) +/** + * @brief Manage the CRC 16-bit receive in Interrupt context. + * @param hspi pointer to a SPI_HandleTypeDef structure that contains + * the configuration information for SPI module. + * @retval None + */ +static void SPI_RxISR_16BITCRC(struct __SPI_HandleTypeDef *hspi) +{ + __IO uint32_t tmpreg = 0U; + + /* Read 16bit CRC to flush Data Register */ + tmpreg = READ_REG(hspi->Instance->DR); + /* To avoid GCC warning */ + UNUSED(tmpreg); + + /* Disable RXNE and ERR interrupt */ + __HAL_SPI_DISABLE_IT(hspi, (SPI_IT_RXNE | SPI_IT_ERR)); + + SPI_CloseRx_ISR(hspi); +} +#endif /* USE_SPI_CRC */ + +/** + * @brief Manage the 16-bit receive in Interrupt context. + * @param hspi pointer to a SPI_HandleTypeDef structure that contains + * the configuration information for SPI module. + * @retval None + */ +static void SPI_RxISR_16BIT(struct __SPI_HandleTypeDef *hspi) +{ + *((uint16_t *)hspi->pRxBuffPtr) = (uint16_t)(hspi->Instance->DR); + hspi->pRxBuffPtr += sizeof(uint16_t); + hspi->RxXferCount--; + +#if (USE_SPI_CRC != 0U) + /* Enable CRC Transmission */ + if ((hspi->RxXferCount == 1U) && (hspi->Init.CRCCalculation == SPI_CRCCALCULATION_ENABLE)) + { + SET_BIT(hspi->Instance->CR1, SPI_CR1_CRCNEXT); + } + /* Check if CRCNEXT is well reseted by hardware */ + if (READ_BIT(hspi->Instance->CR1, SPI_CR1_CRCNEXT)) + { + /* Workaround to force CRCNEXT bit to zero in case of CRCNEXT is not reset automatically by hardware */ + CLEAR_BIT(hspi->Instance->CR1, SPI_CR1_CRCNEXT); + } + +#endif /* USE_SPI_CRC */ + + if (hspi->RxXferCount == 0U) + { +#if (USE_SPI_CRC != 0U) + if (hspi->Init.CRCCalculation == SPI_CRCCALCULATION_ENABLE) + { + hspi->RxISR = SPI_RxISR_16BITCRC; + return; + } +#endif /* USE_SPI_CRC */ + SPI_CloseRx_ISR(hspi); + } +} + +/** + * @brief Handle the data 8-bit transmit in Interrupt mode. + * @param hspi pointer to a SPI_HandleTypeDef structure that contains + * the configuration information for SPI module. + * @retval None + */ +static void SPI_TxISR_8BIT(struct __SPI_HandleTypeDef *hspi) +{ + *(__IO uint8_t *)&hspi->Instance->DR = (*hspi->pTxBuffPtr); + hspi->pTxBuffPtr++; + hspi->TxXferCount--; + + if (hspi->TxXferCount == 0U) + { +#if (USE_SPI_CRC != 0U) + if (hspi->Init.CRCCalculation == SPI_CRCCALCULATION_ENABLE) + { + /* Enable CRC Transmission */ + SET_BIT(hspi->Instance->CR1, SPI_CR1_CRCNEXT); + } +#endif /* USE_SPI_CRC */ + SPI_CloseTx_ISR(hspi); + } +} + +/** + * @brief Handle the data 16-bit transmit in Interrupt mode. + * @param hspi pointer to a SPI_HandleTypeDef structure that contains + * the configuration information for SPI module. + * @retval None + */ +static void SPI_TxISR_16BIT(struct __SPI_HandleTypeDef *hspi) +{ + /* Transmit data in 16 Bit mode */ + hspi->Instance->DR = *((uint16_t *)hspi->pTxBuffPtr); + hspi->pTxBuffPtr += sizeof(uint16_t); + hspi->TxXferCount--; + + if (hspi->TxXferCount == 0U) + { +#if (USE_SPI_CRC != 0U) + if (hspi->Init.CRCCalculation == SPI_CRCCALCULATION_ENABLE) + { + /* Enable CRC Transmission */ + SET_BIT(hspi->Instance->CR1, SPI_CR1_CRCNEXT); + } +#endif /* USE_SPI_CRC */ + SPI_CloseTx_ISR(hspi); + } +} + +/** + * @brief Handle SPI Communication Timeout. + * @param hspi pointer to a SPI_HandleTypeDef structure that contains + * the configuration information for SPI module. + * @param Flag SPI flag to check + * @param State flag state to check + * @param Timeout Timeout duration + * @param Tickstart tick start value + * @retval HAL status + */ +static HAL_StatusTypeDef SPI_WaitFlagStateUntilTimeout(SPI_HandleTypeDef *hspi, uint32_t Flag, FlagStatus State, + uint32_t Timeout, uint32_t Tickstart) +{ + __IO uint32_t count; + uint32_t tmp_timeout; + uint32_t tmp_tickstart; + + /* Adjust Timeout value in case of end of transfer */ + tmp_timeout = Timeout - (HAL_GetTick() - Tickstart); + tmp_tickstart = HAL_GetTick(); + + /* Calculate Timeout based on a software loop to avoid blocking issue if Systick is disabled */ + count = tmp_timeout * ((SystemCoreClock * 32U) >> 20U); + + while ((__HAL_SPI_GET_FLAG(hspi, Flag) ? SET : RESET) != State) + { + if (Timeout != HAL_MAX_DELAY) + { + if (((HAL_GetTick() - tmp_tickstart) >= tmp_timeout) || (tmp_timeout == 0U)) + { + /* Disable the SPI and reset the CRC: the CRC value should be cleared + on both master and slave sides in order to resynchronize the master + and slave for their respective CRC calculation */ + + /* Disable TXE, RXNE and ERR interrupts for the interrupt process */ + __HAL_SPI_DISABLE_IT(hspi, (SPI_IT_TXE | SPI_IT_RXNE | SPI_IT_ERR)); + + if ((hspi->Init.Mode == SPI_MODE_MASTER) && ((hspi->Init.Direction == SPI_DIRECTION_1LINE) + || (hspi->Init.Direction == SPI_DIRECTION_2LINES_RXONLY))) + { + /* Disable SPI peripheral */ + __HAL_SPI_DISABLE(hspi); + } + + /* Reset CRC Calculation */ + if (hspi->Init.CRCCalculation == SPI_CRCCALCULATION_ENABLE) + { + SPI_RESET_CRC(hspi); + } + + hspi->State = HAL_SPI_STATE_READY; + + /* Process Unlocked */ + __HAL_UNLOCK(hspi); + + return HAL_TIMEOUT; + } + /* If Systick is disabled or not incremented, deactivate timeout to go in disable loop procedure */ + if(count == 0U) + { + tmp_timeout = 0U; + } + count--; + } + } + + return HAL_OK; +} + +/** + * @brief Handle the check of the RX transaction complete. + * @param hspi pointer to a SPI_HandleTypeDef structure that contains + * the configuration information for SPI module. + * @param Timeout Timeout duration + * @param Tickstart tick start value + * @retval HAL status + */ +static HAL_StatusTypeDef SPI_EndRxTransaction(SPI_HandleTypeDef *hspi, uint32_t Timeout, uint32_t Tickstart) +{ + if ((hspi->Init.Mode == SPI_MODE_MASTER) && ((hspi->Init.Direction == SPI_DIRECTION_1LINE) + || (hspi->Init.Direction == SPI_DIRECTION_2LINES_RXONLY))) + { + /* Disable SPI peripheral */ + __HAL_SPI_DISABLE(hspi); + } + + if ((hspi->Init.Mode == SPI_MODE_MASTER) && (hspi->Init.Direction == SPI_DIRECTION_2LINES_RXONLY)) + { + /* Wait the RXNE reset */ + if (SPI_WaitFlagStateUntilTimeout(hspi, SPI_FLAG_RXNE, RESET, Timeout, Tickstart) != HAL_OK) + { + SET_BIT(hspi->ErrorCode, HAL_SPI_ERROR_FLAG); + return HAL_TIMEOUT; + } + } + else + { + /* Control the BSY flag */ + if (SPI_WaitFlagStateUntilTimeout(hspi, SPI_FLAG_BSY, RESET, Timeout, Tickstart) != HAL_OK) + { + SET_BIT(hspi->ErrorCode, HAL_SPI_ERROR_FLAG); + return HAL_TIMEOUT; + } + } + return HAL_OK; +} + +/** + * @brief Handle the check of the RXTX or TX transaction complete. + * @param hspi SPI handle + * @param Timeout Timeout duration + * @param Tickstart tick start value + * @retval HAL status + */ +static HAL_StatusTypeDef SPI_EndRxTxTransaction(SPI_HandleTypeDef *hspi, uint32_t Timeout, uint32_t Tickstart) +{ + /* Control the BSY flag */ + if (SPI_WaitFlagStateUntilTimeout(hspi, SPI_FLAG_BSY, RESET, Timeout, Tickstart) != HAL_OK) + { + SET_BIT(hspi->ErrorCode, HAL_SPI_ERROR_FLAG); + return HAL_TIMEOUT; + } + return HAL_OK; +} + +/** + * @brief Handle the end of the RXTX transaction. + * @param hspi pointer to a SPI_HandleTypeDef structure that contains + * the configuration information for SPI module. + * @retval None + */ +static void SPI_CloseRxTx_ISR(SPI_HandleTypeDef *hspi) +{ + uint32_t tickstart; + __IO uint32_t count = SPI_DEFAULT_TIMEOUT * (SystemCoreClock / 24U / 1000U); + + /* Init tickstart for timeout management */ + tickstart = HAL_GetTick(); + + /* Disable ERR interrupt */ + __HAL_SPI_DISABLE_IT(hspi, SPI_IT_ERR); + + /* Wait until TXE flag is set */ + do + { + if (count == 0U) + { + SET_BIT(hspi->ErrorCode, HAL_SPI_ERROR_FLAG); + break; + } + count--; + } while ((hspi->Instance->SR & SPI_FLAG_TXE) == RESET); + + /* Check the end of the transaction */ + if (SPI_EndRxTxTransaction(hspi, SPI_DEFAULT_TIMEOUT, tickstart) != HAL_OK) + { + SET_BIT(hspi->ErrorCode, HAL_SPI_ERROR_FLAG); + } + + /* Clear overrun flag in 2 Lines communication mode because received is not read */ + if (hspi->Init.Direction == SPI_DIRECTION_2LINES) + { + __HAL_SPI_CLEAR_OVRFLAG(hspi); + } + +#if (USE_SPI_CRC != 0U) + /* Check if CRC error occurred */ + if (__HAL_SPI_GET_FLAG(hspi, SPI_FLAG_CRCERR) != RESET) + { + /* Check if CRC error is valid or not (workaround to be applied or not) */ + if (SPI_ISCRCErrorValid(hspi) == SPI_VALID_CRC_ERROR) + { + hspi->State = HAL_SPI_STATE_READY; + SET_BIT(hspi->ErrorCode, HAL_SPI_ERROR_CRC); + + /* Reset CRC Calculation */ + SPI_RESET_CRC(hspi); + + /* Call user error callback */ +#if (USE_HAL_SPI_REGISTER_CALLBACKS == 1U) + hspi->ErrorCallback(hspi); +#else + HAL_SPI_ErrorCallback(hspi); +#endif /* USE_HAL_SPI_REGISTER_CALLBACKS */ + } + else + { + __HAL_SPI_CLEAR_CRCERRFLAG(hspi); + } + } + else + { +#endif /* USE_SPI_CRC */ + if (hspi->ErrorCode == HAL_SPI_ERROR_NONE) + { + if (hspi->State == HAL_SPI_STATE_BUSY_RX) + { + hspi->State = HAL_SPI_STATE_READY; + /* Call user Rx complete callback */ +#if (USE_HAL_SPI_REGISTER_CALLBACKS == 1U) + hspi->RxCpltCallback(hspi); +#else + HAL_SPI_RxCpltCallback(hspi); +#endif /* USE_HAL_SPI_REGISTER_CALLBACKS */ + } + else + { + hspi->State = HAL_SPI_STATE_READY; + /* Call user TxRx complete callback */ +#if (USE_HAL_SPI_REGISTER_CALLBACKS == 1U) + hspi->TxRxCpltCallback(hspi); +#else + HAL_SPI_TxRxCpltCallback(hspi); +#endif /* USE_HAL_SPI_REGISTER_CALLBACKS */ + } + } + else + { + hspi->State = HAL_SPI_STATE_READY; + /* Call user error callback */ +#if (USE_HAL_SPI_REGISTER_CALLBACKS == 1U) + hspi->ErrorCallback(hspi); +#else + HAL_SPI_ErrorCallback(hspi); +#endif /* USE_HAL_SPI_REGISTER_CALLBACKS */ + } +#if (USE_SPI_CRC != 0U) + } +#endif /* USE_SPI_CRC */ +} + +/** + * @brief Handle the end of the RX transaction. + * @param hspi pointer to a SPI_HandleTypeDef structure that contains + * the configuration information for SPI module. + * @retval None + */ +static void SPI_CloseRx_ISR(SPI_HandleTypeDef *hspi) +{ + /* Disable RXNE and ERR interrupt */ + __HAL_SPI_DISABLE_IT(hspi, (SPI_IT_RXNE | SPI_IT_ERR)); + + /* Check the end of the transaction */ + if (SPI_EndRxTransaction(hspi, SPI_DEFAULT_TIMEOUT, HAL_GetTick()) != HAL_OK) + { + SET_BIT(hspi->ErrorCode, HAL_SPI_ERROR_FLAG); + } + + /* Clear overrun flag in 2 Lines communication mode because received is not read */ + if (hspi->Init.Direction == SPI_DIRECTION_2LINES) + { + __HAL_SPI_CLEAR_OVRFLAG(hspi); + } + hspi->State = HAL_SPI_STATE_READY; + +#if (USE_SPI_CRC != 0U) + /* Check if CRC error occurred */ + if (__HAL_SPI_GET_FLAG(hspi, SPI_FLAG_CRCERR) != RESET) + { + /* Check if CRC error is valid or not (workaround to be applied or not) */ + if (SPI_ISCRCErrorValid(hspi) == SPI_VALID_CRC_ERROR) + { + SET_BIT(hspi->ErrorCode, HAL_SPI_ERROR_CRC); + + /* Reset CRC Calculation */ + SPI_RESET_CRC(hspi); + + /* Call user error callback */ +#if (USE_HAL_SPI_REGISTER_CALLBACKS == 1U) + hspi->ErrorCallback(hspi); +#else + HAL_SPI_ErrorCallback(hspi); +#endif /* USE_HAL_SPI_REGISTER_CALLBACKS */ + } + else + { + __HAL_SPI_CLEAR_CRCERRFLAG(hspi); + } + } + else + { +#endif /* USE_SPI_CRC */ + if (hspi->ErrorCode == HAL_SPI_ERROR_NONE) + { + /* Call user Rx complete callback */ +#if (USE_HAL_SPI_REGISTER_CALLBACKS == 1U) + hspi->RxCpltCallback(hspi); +#else + HAL_SPI_RxCpltCallback(hspi); +#endif /* USE_HAL_SPI_REGISTER_CALLBACKS */ + } + else + { + /* Call user error callback */ +#if (USE_HAL_SPI_REGISTER_CALLBACKS == 1U) + hspi->ErrorCallback(hspi); +#else + HAL_SPI_ErrorCallback(hspi); +#endif /* USE_HAL_SPI_REGISTER_CALLBACKS */ + } +#if (USE_SPI_CRC != 0U) + } +#endif /* USE_SPI_CRC */ +} + +/** + * @brief Handle the end of the TX transaction. + * @param hspi pointer to a SPI_HandleTypeDef structure that contains + * the configuration information for SPI module. + * @retval None + */ +static void SPI_CloseTx_ISR(SPI_HandleTypeDef *hspi) +{ + uint32_t tickstart; + __IO uint32_t count = SPI_DEFAULT_TIMEOUT * (SystemCoreClock / 24U / 1000U); + + /* Init tickstart for timeout management*/ + tickstart = HAL_GetTick(); + + /* Wait until TXE flag is set */ + do + { + if (count == 0U) + { + SET_BIT(hspi->ErrorCode, HAL_SPI_ERROR_FLAG); + break; + } + count--; + } while ((hspi->Instance->SR & SPI_FLAG_TXE) == RESET); + + /* Disable TXE and ERR interrupt */ + __HAL_SPI_DISABLE_IT(hspi, (SPI_IT_TXE | SPI_IT_ERR)); + + /* Check the end of the transaction */ + if (SPI_EndRxTxTransaction(hspi, SPI_DEFAULT_TIMEOUT, tickstart) != HAL_OK) + { + SET_BIT(hspi->ErrorCode, HAL_SPI_ERROR_FLAG); + } + + /* Clear overrun flag in 2 Lines communication mode because received is not read */ + if (hspi->Init.Direction == SPI_DIRECTION_2LINES) + { + __HAL_SPI_CLEAR_OVRFLAG(hspi); + } + + hspi->State = HAL_SPI_STATE_READY; + if (hspi->ErrorCode != HAL_SPI_ERROR_NONE) + { + /* Call user error callback */ +#if (USE_HAL_SPI_REGISTER_CALLBACKS == 1U) + hspi->ErrorCallback(hspi); +#else + HAL_SPI_ErrorCallback(hspi); +#endif /* USE_HAL_SPI_REGISTER_CALLBACKS */ + } + else + { + /* Call user Rx complete callback */ +#if (USE_HAL_SPI_REGISTER_CALLBACKS == 1U) + hspi->TxCpltCallback(hspi); +#else + HAL_SPI_TxCpltCallback(hspi); +#endif /* USE_HAL_SPI_REGISTER_CALLBACKS */ + } +} + +/** + * @brief Handle abort a Rx transaction. + * @param hspi pointer to a SPI_HandleTypeDef structure that contains + * the configuration information for SPI module. + * @retval None + */ +static void SPI_AbortRx_ISR(SPI_HandleTypeDef *hspi) +{ + __IO uint32_t tmpreg = 0U; + __IO uint32_t count = SPI_DEFAULT_TIMEOUT * (SystemCoreClock / 24U / 1000U); + + /* Wait until TXE flag is set */ + do + { + if (count == 0U) + { + SET_BIT(hspi->ErrorCode, HAL_SPI_ERROR_ABORT); + break; + } + count--; + } while ((hspi->Instance->SR & SPI_FLAG_TXE) == RESET); + + /* Disable SPI Peripheral */ + __HAL_SPI_DISABLE(hspi); + + /* Disable TXEIE, RXNEIE and ERRIE(mode fault event, overrun error, TI frame error) interrupts */ + CLEAR_BIT(hspi->Instance->CR2, (SPI_CR2_TXEIE | SPI_CR2_RXNEIE | SPI_CR2_ERRIE)); + + /* Flush Data Register by a blank read */ + tmpreg = READ_REG(hspi->Instance->DR); + /* To avoid GCC warning */ + UNUSED(tmpreg); + + hspi->State = HAL_SPI_STATE_ABORT; +} + +/** + * @brief Handle abort a Tx or Rx/Tx transaction. + * @param hspi pointer to a SPI_HandleTypeDef structure that contains + * the configuration information for SPI module. + * @retval None + */ +static void SPI_AbortTx_ISR(SPI_HandleTypeDef *hspi) +{ + /* Disable TXEIE interrupt */ + CLEAR_BIT(hspi->Instance->CR2, (SPI_CR2_TXEIE)); + + /* Disable SPI Peripheral */ + __HAL_SPI_DISABLE(hspi); + + hspi->State = HAL_SPI_STATE_ABORT; +} + +#if (USE_SPI_CRC != 0U) +/** + * @brief Checks if encountered CRC error could be corresponding to wrongly detected errors + * according to SPI instance, Device type, and revision ID. + * @param hspi: pointer to a SPI_HandleTypeDef structure that contains + * the configuration information for SPI module. + * @retval CRC error validity (SPI_INVALID_CRC_ERROR or SPI_VALID_CRC_ERROR). + */ +uint8_t SPI_ISCRCErrorValid(SPI_HandleTypeDef *hspi) +{ +#if defined(SPI_CRC_ERROR_WORKAROUND_FEATURE) && (USE_SPI_CRC_ERROR_WORKAROUND != 0U) + /* Check how to handle this CRC error (workaround to be applied or not) */ + /* If CRC errors could be wrongly detected (issue 2.15.2 in STM32F10xxC/D/E silicon limitations ES (DocID14732 Rev 13) */ + if (hspi->Instance == SPI2) + { + if (hspi->Instance->RXCRCR == 0U) + { + return (SPI_INVALID_CRC_ERROR); + } + } +#endif + /* Prevent unused argument(s) compilation warning */ + UNUSED(hspi); + + return (SPI_VALID_CRC_ERROR); +} +#endif /* USE_SPI_CRC */ +/** + * @} + */ + +#endif /* HAL_SPI_MODULE_ENABLED */ + +/** + * @} + */ + +/** + * @} + */ + +/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ diff --git a/HW_Devices/rs522.c b/HW_Devices/rs522.c new file mode 100644 index 0000000..8e7f791 --- /dev/null +++ b/HW_Devices/rs522.c @@ -0,0 +1,575 @@ +/* + * rs522.c + * + * Created on: Sep 3, 2021 + * Author: wuwenfeng + */ +#include "rs522.h" + +extern SPI_HandleTypeDef hspi1; + +/* + * 函数名:ReadRawRC + * 描述 :读RC522寄存器 + * 输入 :ucAddress,寄存器地址 + * 返回 : 寄存器的当前值 + * 调用 :内部调用 + */ +uint8_t ReadRawRC ( uint8_t ucAddress ) +{ + uint8_t ucAddr, ucReturn; + ucAddr = ( ( ucAddress << 1 ) & 0x7E ) | 0x80; + HAL_GPIO_WritePin(RC522_CS_GPIO_Port, RC522_CS_Pin, 0); + HAL_SPI_Transmit(&hspi1,&ucAddr,1,100); + HAL_SPI_Receive(&hspi1,&ucReturn,1,100); + HAL_GPIO_WritePin(RC522_CS_GPIO_Port, RC522_CS_Pin, 1); + return ucReturn; +} + + +/* + * 函数名:WriteRawRC + * 描述 :写RC522寄存器 + * 输入 :ucAddress,寄存器地址 + * ucValue,写入寄存器的值 + * 返回 : 无 + * 调用 :内部调用 + */ +void WriteRawRC ( uint8_t ucAddress, uint8_t ucValue ) +{ + uint8_t ucAddr; + ucAddr = ( ucAddress << 1 ) & 0x7E; + HAL_GPIO_WritePin(RC522_CS_GPIO_Port, RC522_CS_Pin, 0); + HAL_SPI_Transmit(&hspi1,&ucAddr,1,100); + HAL_SPI_Transmit(&hspi1,&ucValue,1,100); + HAL_GPIO_WritePin(RC522_CS_GPIO_Port, RC522_CS_Pin, 1); +} + +/* + * 函数名:SetBitMask + * 描述 :对RC522寄存器置位 + * 输入 :ucReg,寄存器地址 + * ucMask,置位值 + * 返回 : 无 + * 调用 :内部调用 + */ +void SetBitMask ( uint8_t ucReg, uint8_t ucMask ) +{ + uint8_t ucTemp; + ucTemp = ReadRawRC ( ucReg ); + WriteRawRC ( ucReg, ucTemp | ucMask ); // set bit mask +} + +/* + * 函数名:ClearBitMask + * 描述 :对RC522寄存器清位 + * 输入 :ucReg,寄存器地址 + * ucMask,清位值 + * 返回 : 无 + * 调用 :内部调用 + */ +void ClearBitMask ( uint8_t ucReg, uint8_t ucMask ) +{ + uint8_t ucTemp; + ucTemp = ReadRawRC ( ucReg ); + WriteRawRC ( ucReg, ucTemp & ( ~ ucMask) ); // clear bit mask +} + + +/* + * 函数名:PcdAntennaOn + * 描述 :开启天线 + * 输入 :无 + * 返回 : 无 + * 调用 :内部调用 + */ +void PcdAntennaOn ( void ) +{ + uint8_t uc; + uc = ReadRawRC ( TxControlReg ); + if ( ! ( uc & 0x03 ) ) + { + SetBitMask(TxControlReg, 0x03); + } +} + + +/* + * 函数名:PcdAntennaOff + * 描述 :开启天线 + * 输入 :无 + * 返回 : 无 + * 调用 :内部调用 + */ +void PcdAntennaOff ( void ) +{ + ClearBitMask ( TxControlReg, 0x03 ); +} + + + +/* + * 函数名:PcdRese + * 描述 :复位RC522 + * 输入 :无 + * 返回 : 无 + * 调用 :外部调用 + */ +void PcdReset ( void ) +{ + HAL_Delay(1); + WriteRawRC ( CommandReg, 0x0f ); + while ( ReadRawRC ( CommandReg ) & 0x10 ); + HAL_Delay(1); + WriteRawRC ( ModeReg, 0x3D ); //定义发送和接收常用模式 和Mifare卡通讯,CRC初始值0x6363 + WriteRawRC ( TReloadRegL, 30 ); //16位定时器低位 + WriteRawRC ( TReloadRegH, 0 ); //16位定时器高位 + WriteRawRC ( TModeReg, 0x8D ); //定义内部定时器的设置 + WriteRawRC ( TPrescalerReg, 0x3E ); //设置定时器分频系数 + WriteRawRC ( TxAutoReg, 0x40 ); //调制发送信号为100%ASK + +} + +/* + * 函数名:M500PcdConfigISOType + * 描述 :设置RC522的工作方式 + * 输入 :ucType,工作方式 + * 返回 : 无 + * 调用 :外部调用 + */ +void M500PcdConfigISOType ( uint8_t ucType ) +{ + if ( ucType == 'A') //ISO14443_A + { + ClearBitMask ( Status2Reg, 0x08 ); + WriteRawRC ( ModeReg, 0x3D );//3F + WriteRawRC ( RxSelReg, 0x86 );//84 + WriteRawRC( RFCfgReg, 0x7F ); //4F + WriteRawRC( TReloadRegL, 30 );//tmoLength);// TReloadVal = 'h6a =tmoLength(dec) + WriteRawRC ( TReloadRegH, 0 ); + WriteRawRC ( TModeReg, 0x8D ); + WriteRawRC ( TPrescalerReg, 0x3E ); + HAL_Delay(1); + PcdAntennaOn ();//开天线 + + } + +} + +/* + * 函数名:PcdComMF522 + * 描述 :通过RC522和ISO14443卡通讯 + * 输入 :ucCommand,RC522命令字 + * pInData,通过RC522发送到卡片的数据 + * ucInLenByte,发送数据的字节长度 + * pOutData,接收到的卡片返回数据 + * pOutLenBit,返回数据的位长度 + * 返回 : 状态值 + * = MI_OK,成功 + * 调用 :内部调用 + */ +char PcdComMF522 ( uint8_t ucCommand, uint8_t * pInData, uint8_t ucInLenByte, uint8_t * pOutData, uint32_t * pOutLenBit ) +{ + char cStatus = MI_ERR; + uint8_t ucIrqEn = 0x00; + uint8_t ucWaitFor = 0x00; + uint8_t ucLastBits; + uint8_t ucN; + uint32_t ul; + + switch ( ucCommand ) + { + case PCD_AUTHENT: //Mifare认证 + ucIrqEn = 0x12; //允许错误中断请求ErrIEn 允许空闲中断IdleIEn + ucWaitFor = 0x10; //认证寻卡等待时候 查询空闲中断标志位 + break; + + case PCD_TRANSCEIVE: //接收发送 发送接收 + ucIrqEn = 0x77; //允许TxIEn RxIEn IdleIEn LoAlertIEn ErrIEn TimerIEn + ucWaitFor = 0x30; //寻卡等待时候 查询接收中断标志位与 空闲中断标志位 + break; + + default: + break; + + } + WriteRawRC ( ComIEnReg, ucIrqEn | 0x80 ); //IRqInv置位管脚IRQ与Status1Reg的IRq位的值相反 + ClearBitMask ( ComIrqReg, 0x80 ); //Set1该位清零时,CommIRqReg的屏蔽位清零 + WriteRawRC ( CommandReg, PCD_IDLE ); //写空闲命令 + SetBitMask ( FIFOLevelReg, 0x80 ); //置位FlushBuffer清除内部FIFO的读和写指针以及ErrReg的BufferOvfl标志位被清除 + for ( ul = 0; ul < ucInLenByte; ul ++ ) + { + WriteRawRC ( FIFODataReg, pInData [ ul ] ); //写数据进FIFOdata + } + WriteRawRC ( CommandReg, ucCommand ); //写命令 + if ( ucCommand == PCD_TRANSCEIVE ) + { + SetBitMask(BitFramingReg,0x80); //StartSend置位启动数据发送 该位与收发命令使用时才有效 + } + ul = 1000;//根据时钟频率调整,操作M1卡最大等待时间25ms + do //认证 与寻卡等待时间 + { + ucN = ReadRawRC ( ComIrqReg ); //查询事件中断 + ul --; + } while ( ( ul != 0 ) && ( ! ( ucN & 0x01 ) ) && ( ! ( ucN & ucWaitFor ) ) ); //退出条件i=0,定时器中断,与写空闲命令 + ClearBitMask ( BitFramingReg, 0x80 ); //清理允许StartSend位 + if ( ul != 0 ) + { + if ( ! (( ReadRawRC ( ErrorReg ) & 0x1B )) ) //读错误标志寄存器BufferOfI CollErr ParityErr ProtocolErr + { + cStatus = MI_OK; + if ( ucN & ucIrqEn & 0x01 ) //是否发生定时器中断 + { + cStatus = MI_NOTAGERR; + } + if ( ucCommand == PCD_TRANSCEIVE ) + { + ucN = ReadRawRC ( FIFOLevelReg ); //读FIFO中保存的字节数 + ucLastBits = ReadRawRC ( ControlReg ) & 0x07; //最后接收到得字节的有效位数 + if ( ucLastBits ) + { + * pOutLenBit = ( ucN - 1 ) * 8 + ucLastBits; //N个字节数减去1(最后一个字节)+最后一位的位数 读取到的数据总位数 + } + else + { + * pOutLenBit = ucN * 8; //最后接收到的字节整个字节有效 + } + if ( ucN == 0 ) + { + ucN = 1; + } + if ( ucN > MAXRLEN ) + { + ucN = MAXRLEN; + } + for ( ul = 0; ul < ucN; ul ++ ) + { + pOutData [ ul ] = ReadRawRC ( FIFODataReg ); + } + + } + } + else + { + cStatus = MI_ERR; + } + + } + + SetBitMask ( ControlReg, 0x80 ); // stop timer now + WriteRawRC ( CommandReg, PCD_IDLE ); + + return cStatus; + +} + +/* + * 函数名:PcdRequest + * 描述 :寻卡 + * 输入 :ucReq_code,寻卡方式 + * = 0x52,寻感应区内所有符合14443A标准的卡 + * = 0x26,寻未进入休眠状态的卡 + * pTagType,卡片类型代码 + * = 0x4400,Mifare_UltraLight + * = 0x0400,Mifare_One(S50) + * = 0x0200,Mifare_One(S70) + * = 0x0800,Mifare_Pro(X)) + * = 0x4403,Mifare_DESFire + * 返回 : 状态值 + * = MI_OK,成功 + * 调用 :外部调用 + */ +char PcdRequest ( uint8_t ucReq_code, uint8_t * pTagType ) +{ + char cStatus; + uint8_t ucComMF522Buf [ MAXRLEN ]; + uint32_t ulLen; + ClearBitMask ( Status2Reg, 0x08 ); //清理指示MIFARECyptol单元接通以及所有卡的数据通信被加密的情况 + WriteRawRC ( BitFramingReg, 0x07 ); // 发送的最后一个字节的 七位 + SetBitMask ( TxControlReg, 0x03 ); //TX1,TX2管脚的输出信号传递经发送调制的13.56的能量载波信号 + ucComMF522Buf [ 0 ] = ucReq_code; //存入 卡片命令字 + cStatus = PcdComMF522 ( PCD_TRANSCEIVE, ucComMF522Buf, 1, ucComMF522Buf, & ulLen ); //寻卡 + if ( ( cStatus == MI_OK ) && ( ulLen == 0x10 ) ) //寻卡成功返回卡类型 + { + * pTagType = ucComMF522Buf [ 0 ]; + * ( pTagType + 1 ) = ucComMF522Buf [ 1 ]; + } + else + { + cStatus = MI_ERR; + } + return cStatus; + +} + + +/* + * 函数名:PcdAnticoll + * 描述 :防冲撞 + * 输入 :pSnr,卡片序列号,4字节 + * 返回 : 状态值 + * = MI_OK,成功 + * 调用 :外部调用 + */ +char PcdAnticoll ( uint8_t * pSnr ) +{ + char cStatus; + uint8_t uc, ucSnr_check = 0; + uint8_t ucComMF522Buf [ MAXRLEN ]; + uint32_t ulLen; + ClearBitMask ( Status2Reg, 0x08 ); //清MFCryptol On位 只有成功执行MFAuthent命令后,该位才能置位 + WriteRawRC ( BitFramingReg, 0x00); //清理寄存器 停止收发 + ClearBitMask ( CollReg, 0x80 ); //清ValuesAfterColl所有接收的位在冲突后被清除 + ucComMF522Buf [ 0 ] = 0x93; //卡片防冲突命令 + ucComMF522Buf [ 1 ] = 0x20; + cStatus = PcdComMF522 ( PCD_TRANSCEIVE, ucComMF522Buf, 2, ucComMF522Buf, & ulLen);//与卡片通信 + if ( cStatus == MI_OK) //通信成功 + { + for ( uc = 0; uc < 4; uc ++ ) + { + * ( pSnr + uc ) = ucComMF522Buf [ uc ]; //读出UID + ucSnr_check ^= ucComMF522Buf [ uc ]; + } + + if ( ucSnr_check != ucComMF522Buf [ uc ] ) + { + cStatus = MI_ERR; + } + } + SetBitMask ( CollReg, 0x80 ); + return cStatus; +} + + +/* + * 函数名:CalulateCRC + * 描述 :用RC522计算CRC16 + * 输入 :pIndata,计算CRC16的数组 + * ucLen,计算CRC16的数组字节长度 + * pOutData,存放计算结果存放的首地址 + * 返回 : 无 + * 调用 :内部调用 + */ +void CalulateCRC ( uint8_t * pIndata, uint8_t ucLen, uint8_t * pOutData ) +{ + uint8_t uc, ucN; + ClearBitMask(DivIrqReg,0x04); + WriteRawRC(CommandReg,PCD_IDLE); + SetBitMask(FIFOLevelReg,0x80); + for ( uc = 0; uc < ucLen; uc ++) + { + WriteRawRC ( FIFODataReg, * ( pIndata + uc ) ); + } + WriteRawRC ( CommandReg, PCD_CALCCRC ); + uc = 0xFF; + do + { + ucN = ReadRawRC ( DivIrqReg ); + uc --; + } while ( ( uc != 0 ) && ! ( ucN & 0x04 ) ); + pOutData [ 0 ] = ReadRawRC ( CRCResultRegL ); + pOutData [ 1 ] = ReadRawRC ( CRCResultRegM ); +} + + +/* + * 函数名:PcdSelect + * 描述 :选定卡片 + * 输入 :pSnr,卡片序列号,4字节 + * 返回 : 状态值 + * = MI_OK,成功 + * 调用 :外部调用 + */ +char PcdSelect ( uint8_t * pSnr ) +{ + char ucN; + uint8_t uc; + uint8_t ucComMF522Buf [ MAXRLEN ]; + uint32_t ulLen; + ucComMF522Buf [ 0 ] = PICC_ANTICOLL1; + ucComMF522Buf [ 1 ] = 0x70; + ucComMF522Buf [ 6 ] = 0; + for ( uc = 0; uc < 4; uc ++ ) + { + ucComMF522Buf [ uc + 2 ] = * ( pSnr + uc ); + ucComMF522Buf [ 6 ] ^= * ( pSnr + uc ); + } + CalulateCRC ( ucComMF522Buf, 7, & ucComMF522Buf [ 7 ] ); + ClearBitMask ( Status2Reg, 0x08 ); + ucN = PcdComMF522 ( PCD_TRANSCEIVE, ucComMF522Buf, 9, ucComMF522Buf, & ulLen ); + if ( ( ucN == MI_OK ) && ( ulLen == 0x18 ) ) + { + ucN = MI_OK; + } + else + { + ucN = MI_ERR; + } + return ucN; + +} + + +/* + * 函数名:PcdAuthState + * 描述 :验证卡片密码 + * 输入 :ucAuth_mode,密码验证模式 + * = 0x60,验证A密钥 + * = 0x61,验证B密钥 + * u8 ucAddr,块地址 + * pKey,密码 + * pSnr,卡片序列号,4字节 + * 返回 : 状态值 + * = MI_OK,成功 + * 调用 :外部调用 + */ +char PcdAuthState ( uint8_t ucAuth_mode, uint8_t ucAddr, uint8_t * pKey, uint8_t * pSnr ) +{ + char cStatus; + uint8_t uc, ucComMF522Buf [ MAXRLEN ]; + uint32_t ulLen; + ucComMF522Buf [ 0 ] = ucAuth_mode; + ucComMF522Buf [ 1 ] = ucAddr; + for ( uc = 0; uc < 6; uc ++ ) + { + ucComMF522Buf [ uc + 2 ] = * ( pKey + uc ); + } + for ( uc = 0; uc < 6; uc ++ ) + { + ucComMF522Buf [ uc + 8 ] = * ( pSnr + uc ); + } + cStatus = PcdComMF522 ( PCD_AUTHENT, ucComMF522Buf, 12, ucComMF522Buf, & ulLen ); + if ( ( cStatus != MI_OK ) || ( ! ( ReadRawRC ( Status2Reg ) & 0x08 ) ) ) + { +// if(cStatus != MI_OK) +// printf("666") ; +// else +// printf("888"); + cStatus = MI_ERR; + } + + return cStatus; + +} + + +/* + * 函数名:PcdWrite + * 描述 :写数据到M1卡一块 + * 输入 :u8 ucAddr,块地址 + * pData,写入的数据,16字节 + * 返回 : 状态值 + * = MI_OK,成功 + * 调用 :外部调用 + */ +char PcdWrite ( uint8_t ucAddr, uint8_t * pData ) +{ + char cStatus; + uint8_t uc, ucComMF522Buf [ MAXRLEN ]; + uint32_t ulLen; + ucComMF522Buf [ 0 ] = PICC_WRITE; + ucComMF522Buf [ 1 ] = ucAddr; + CalulateCRC ( ucComMF522Buf, 2, & ucComMF522Buf [ 2 ] ); + cStatus = PcdComMF522 ( PCD_TRANSCEIVE, ucComMF522Buf, 4, ucComMF522Buf, & ulLen ); + if ( ( cStatus != MI_OK ) || ( ulLen != 4 ) || ( ( ucComMF522Buf [ 0 ] & 0x0F ) != 0x0A ) ) + { + cStatus = MI_ERR; + } + if ( cStatus == MI_OK ) + { + //memcpy(ucComMF522Buf, pData, 16); + for ( uc = 0; uc < 16; uc ++ ) + { + ucComMF522Buf [ uc ] = * ( pData + uc ); + } + CalulateCRC ( ucComMF522Buf, 16, & ucComMF522Buf [ 16 ] ); + cStatus = PcdComMF522 ( PCD_TRANSCEIVE, ucComMF522Buf, 18, ucComMF522Buf, & ulLen ); + if ( ( cStatus != MI_OK ) || ( ulLen != 4 ) || ( ( ucComMF522Buf [ 0 ] & 0x0F ) != 0x0A ) ) + { + cStatus = MI_ERR; + } + } + return cStatus; + +} + + +/* + * 函数名:PcdRead + * 描述 :读取M1卡一块数据 + * 输入 :u8 ucAddr,块地址 + * pData,读出的数据,16字节 + * 返回 : 状态值 + * = MI_OK,成功 + * 调用 :外部调用 + */ +char PcdRead ( uint8_t ucAddr, uint8_t * pData ) +{ + char cStatus; + uint8_t uc, ucComMF522Buf [ MAXRLEN ]; + uint32_t ulLen; + ucComMF522Buf [ 0 ] = PICC_READ; + ucComMF522Buf [ 1 ] = ucAddr; + CalulateCRC ( ucComMF522Buf, 2, & ucComMF522Buf [ 2 ] ); + cStatus = PcdComMF522 ( PCD_TRANSCEIVE, ucComMF522Buf, 4, ucComMF522Buf, & ulLen ); + if ( ( cStatus == MI_OK ) && ( ulLen == 0x90 ) ) + { + for ( uc = 0; uc < 16; uc ++ ) + { + * ( pData + uc ) = ucComMF522Buf [ uc ]; + } + } + else + { + cStatus = MI_ERR; + } + return cStatus; + +} + + +/* + * 函数名:PcdHalt + * 描述 :命令卡片进入休眠状态 + * 输入 :无 + * 返回 : 状态值 + * = MI_OK,成功 + * 调用 :外部调用 + */ +char PcdHalt( void ) +{ + uint8_t ucComMF522Buf [ MAXRLEN ]; + uint32_t ulLen; + ucComMF522Buf [ 0 ] = PICC_HALT; + ucComMF522Buf [ 1 ] = 0; + CalulateCRC ( ucComMF522Buf, 2, & ucComMF522Buf [ 2 ] ); + PcdComMF522 ( PCD_TRANSCEIVE, ucComMF522Buf, 4, ucComMF522Buf, & ulLen ); + return MI_OK; + +} + + +void IC_CMT ( uint8_t * UID, uint8_t * KEY, uint8_t RW, uint8_t * Dat ) +{ + uint8_t ucArray_ID [ 4 ] = { 0 };//先后存放IC卡的类型和UID(IC卡序列号) + PcdRequest ( 0x52, ucArray_ID );//寻卡 + PcdAnticoll ( ucArray_ID );//防冲撞 + PcdSelect ( UID );//选定卡 + PcdAuthState ( 0x60, 0x10, KEY, UID );//校验 + if ( RW )//读写选择,1是读,0是写 + { + PcdRead ( 0x10, Dat ); + } + else + { + PcdWrite ( 0x10, Dat ); + } + PcdHalt (); + +} + +void RC522_Init ( void ) +{ + PcdReset (); + M500PcdConfigISOType ( 'A' );//设置工作方式 +} diff --git a/HW_Devices/rs522.h b/HW_Devices/rs522.h new file mode 100644 index 0000000..ec2e81d --- /dev/null +++ b/HW_Devices/rs522.h @@ -0,0 +1,131 @@ +/* + * rs522.h + * + * Created on: Sep 3, 2021 + * Author: wuwenfeng + */ + +#ifndef RS522_H_ +#define RS522_H_ +#include "main.h" + +//MF522命令字 +#define PCD_IDLE 0x00 //取消当前命令 +#define PCD_AUTHENT 0x0E //验证密钥 +#define PCD_RECEIVE 0x08 //接收数据 +#define PCD_TRANSMIT 0x04 //发送数据 +#define PCD_TRANSCEIVE 0x0C //发送并接收数据 +#define PCD_RESETPHASE 0x0F //复位 +#define PCD_CALCCRC 0x03 //CRC计算 + + +//Mifare_One卡片命令字 +#define PICC_REQIDL 0x26 //寻天线区内未进入休眠状态 +#define PICC_REQALL 0x52 //寻天线区内全部卡 +#define PICC_ANTICOLL1 0x93 //防冲撞 +#define PICC_ANTICOLL2 0x95 //防冲撞 +#define PICC_AUTHENT1A 0x60 //验证A密钥 +#define PICC_AUTHENT1B 0x61 //验证B密钥 +#define PICC_READ 0x30 //读块 +#define PICC_WRITE 0xA0 //写块 +#define PICC_DECREMENT 0xC0 //扣款 +#define PICC_INCREMENT 0xC1 //充值 +#define PICC_RESTORE 0xC2 //调块数据到缓冲区 +#define PICC_TRANSFER 0xB0 //保存缓冲区中数据 +#define PICC_HALT 0x50 //休眠 + + +//MF522 FIFO长度定义 +#define DEF_FIFO_LENGTH 64 //FIFO size=64byte +#define MAXRLEN 18 + + +//MF522寄存器定义 +// PAGE 0 +#define RFU00 0x00 +#define CommandReg 0x01 +#define ComIEnReg 0x02 +#define DivlEnReg 0x03 +#define ComIrqReg 0x04 +#define DivIrqReg 0x05 +#define ErrorReg 0x06 +#define Status1Reg 0x07 +#define Status2Reg 0x08 +#define FIFODataReg 0x09 +#define FIFOLevelReg 0x0A +#define WaterLevelReg 0x0B +#define ControlReg 0x0C +#define BitFramingReg 0x0D +#define CollReg 0x0E +#define RFU0F 0x0F +// PAGE 1 +#define RFU10 0x10 +#define ModeReg 0x11 +#define TxModeReg 0x12 +#define RxModeReg 0x13 +#define TxControlReg 0x14 +#define TxAutoReg 0x15 +#define TxSelReg 0x16 +#define RxSelReg 0x17 +#define RxThresholdReg 0x18 +#define DemodReg 0x19 +#define RFU1A 0x1A +#define RFU1B 0x1B +#define MifareReg 0x1C +#define RFU1D 0x1D +#define RFU1E 0x1E +#define SerialSpeedReg 0x1F +// PAGE 2 +#define RFU20 0x20 +#define CRCResultRegM 0x21 +#define CRCResultRegL 0x22 +#define RFU23 0x23 +#define ModWidthReg 0x24 +#define RFU25 0x25 +#define RFCfgReg 0x26 +#define GsNReg 0x27 +#define CWGsCfgReg 0x28 +#define ModGsCfgReg 0x29 +#define TModeReg 0x2A +#define TPrescalerReg 0x2B +#define TReloadRegH 0x2C +#define TReloadRegL 0x2D +#define TCounterValueRegH 0x2E +#define TCounterValueRegL 0x2F +// PAGE 3 +#define RFU30 0x30 +#define TestSel1Reg 0x31 +#define TestSel2Reg 0x32 +#define TestPinEnReg 0x33 +#define TestPinValueReg 0x34 +#define TestBusReg 0x35 +#define AutoTestReg 0x36 +#define VersionReg 0x37 +#define AnalogTestReg 0x38 +#define TestDAC1Reg 0x39 +#define TestDAC2Reg 0x3A +#define TestADCReg 0x3B +#define RFU3C 0x3C +#define RFU3D 0x3D +#define RFU3E 0x3E +#define RFU3F 0x3F + + +//和MF522通讯时返回的错误代码 + +#define MI_OK 0 +#define MI_NOTAGERR (1) +#define MI_ERR (2) + +#define SHAQU1 0X01 +#define KUAI4 0X04 +#define KUAI7 0X07 +#define REGCARD 0xa1 +#define CONSUME 0xa2 +#define READCARD 0xa3 +#define ADDMONEY 0xa4 + + +void RC522_Init( void ); //初始化 + +#endif /* RS522_H_ */ diff --git a/HW_Devices/touch.c b/HW_Devices/touch.c index cd60a5e..4a45564 100644 --- a/HW_Devices/touch.c +++ b/HW_Devices/touch.c @@ -174,11 +174,12 @@ void TP_DrwaTrage(int x,int y,int r) LCD_DrawLine(x,y,x,y-10,RED); } //触摸屏校准 -void TP_adjustment() +//mode 校准模式,0 被动校准 ,1 主动校准 +void TP_adjustment(char mode) { //判断是否需要校准,从eeprom获取数据 EEPROM_READ_BATY(16,(char *)&tconfig,sizeof(touch_config)); - if(tconfig.begin==0xab&&tconfig.end==0xcd) //判断校准标记 + if(tconfig.begin==0xab&&tconfig.end==0xcd&&mode==0) //判断校准标记 { return; //已经校准过了 } diff --git a/HW_Devices/touch.h b/HW_Devices/touch.h index 99621ba..f5fab0f 100644 --- a/HW_Devices/touch.h +++ b/HW_Devices/touch.h @@ -39,6 +39,6 @@ typedef struct void TP_Server(); -void TP_adjustment(); +void TP_adjustment(char mode); char TP_XY(int *x,int *y); #endif /* TOUCH_H_ */ diff --git a/SW_APPs/APP_IDcard.c b/SW_APPs/APP_IDcard.c new file mode 100644 index 0000000..7f3e1c1 --- /dev/null +++ b/SW_APPs/APP_IDcard.c @@ -0,0 +1,21 @@ +/* + * APP_IDcard.c + * + * Created on: Sep 6, 2021 + * Author: wuwenfeng + */ +#include "APP_IDcard.h" + +window *idcard_window; + +void APP_IDcard_init(window *a_window) +{ + idcard_window=a_window; + RC522_Init(); +} + +void APP_IDcard_loop() +{ + +} + diff --git a/SW_APPs/APP_IDcard.h b/SW_APPs/APP_IDcard.h new file mode 100644 index 0000000..2f40e51 --- /dev/null +++ b/SW_APPs/APP_IDcard.h @@ -0,0 +1,17 @@ +/* + * APP_IDcard.h + * + * Created on: Sep 6, 2021 + * Author: wuwenfeng + */ + +#ifndef APP_IDCARD_H_ +#define APP_IDCARD_H_ +#include "main.h" +#include "windows.h" +#include "rs522.h" + +void APP_IDcard_init(window *a_window); +void APP_IDcard_loop(); + +#endif /* APP_IDCARD_H_ */ diff --git a/SW_APPs/Main_APP.c b/SW_APPs/Main_APP.c index 7435ab2..62faa46 100644 --- a/SW_APPs/Main_APP.c +++ b/SW_APPs/Main_APP.c @@ -12,6 +12,7 @@ #include "APP_blood.h" +#include "APP_IDcard.h" extern touch_device t0; @@ -23,14 +24,21 @@ void main_app() LCDx_Init(); EPPROM_SLOWWRITE_INIT(); - TP_adjustment(); + if(HAL_GPIO_ReadPin(KEY3_GPIO_Port, KEY3_Pin)==0) + { + TP_adjustment(1); + }else + { + TP_adjustment(0); + } + UI *ui=UI_Init(BLACK); - APP_blood_init(New_Window(ui,10,10,128,128,WHITE,"MAX30102")); + //APP_blood_init(New_Window(ui,10,10,128,128,WHITE,"MAX30102")); - //New_Window(ui,25,30,150,100,GREEN,"GREEN"); + APP_IDcard_init(New_Window(ui,25,30,150,100,GREEN,"IDcard")); //New_Window(ui,80,80,60,90,YELLOW,"YELLOW"); //New_Window(ui,120,90,70,60,MAGENTA,"MAGENTA"); @@ -51,7 +59,8 @@ void main_app() */ // 交叉编译测试 - APP_blood_loop(); + //APP_blood_loop(); + APP_IDcard_loop(); UI_Server(ui); TP_Server(); diff --git a/m3s.ioc b/m3s.ioc index 1d8f6d6..78d2408 100644 --- a/m3s.ioc +++ b/m3s.ioc @@ -4,54 +4,64 @@ FSMC.BusTurnAroundDuration1=0 FSMC.DataSetupTime1=1 FSMC.IPParameters=AddressSetupTime1,DataSetupTime1,BusTurnAroundDuration1 File.Version=6 +GPIO.groupedBy=Group By Peripherals KeepUserPlacement=false Mcu.Family=STM32F1 Mcu.IP0=FSMC Mcu.IP1=I2C2 Mcu.IP2=NVIC Mcu.IP3=RCC -Mcu.IP4=SYS -Mcu.IP5=TIM6 -Mcu.IPNb=6 +Mcu.IP4=SPI1 +Mcu.IP5=SYS +Mcu.IP6=TIM6 +Mcu.IPNb=7 Mcu.Name=STM32F103Z(C-D-E)Tx Mcu.Package=LQFP144 -Mcu.Pin0=PF8 -Mcu.Pin1=PF9 -Mcu.Pin10=PE8 -Mcu.Pin11=PE9 -Mcu.Pin12=PE10 -Mcu.Pin13=PE11 -Mcu.Pin14=PE12 -Mcu.Pin15=PE13 -Mcu.Pin16=PE14 -Mcu.Pin17=PE15 -Mcu.Pin18=PB10 -Mcu.Pin19=PB11 -Mcu.Pin2=PF10 -Mcu.Pin20=PB12 -Mcu.Pin21=PB13 -Mcu.Pin22=PB14 -Mcu.Pin23=PD8 -Mcu.Pin24=PD9 -Mcu.Pin25=PD10 -Mcu.Pin26=PD14 -Mcu.Pin27=PD15 -Mcu.Pin28=PD0 -Mcu.Pin29=PD1 -Mcu.Pin3=OSC_IN -Mcu.Pin30=PD4 -Mcu.Pin31=PD5 -Mcu.Pin32=PG12 -Mcu.Pin33=VP_SYS_VS_ND -Mcu.Pin34=VP_SYS_VS_Systick -Mcu.Pin35=VP_TIM6_VS_ClockSourceINT -Mcu.Pin4=OSC_OUT -Mcu.Pin5=PB0 -Mcu.Pin6=PB1 -Mcu.Pin7=PB2 -Mcu.Pin8=PG0 -Mcu.Pin9=PE7 -Mcu.PinsNb=36 +Mcu.Pin0=PE2 +Mcu.Pin1=PE3 +Mcu.Pin10=PA5 +Mcu.Pin11=PA6 +Mcu.Pin12=PA7 +Mcu.Pin13=PB0 +Mcu.Pin14=PB1 +Mcu.Pin15=PB2 +Mcu.Pin16=PG0 +Mcu.Pin17=PE7 +Mcu.Pin18=PE8 +Mcu.Pin19=PE9 +Mcu.Pin2=PE4 +Mcu.Pin20=PE10 +Mcu.Pin21=PE11 +Mcu.Pin22=PE12 +Mcu.Pin23=PE13 +Mcu.Pin24=PE14 +Mcu.Pin25=PE15 +Mcu.Pin26=PB10 +Mcu.Pin27=PB11 +Mcu.Pin28=PB12 +Mcu.Pin29=PB13 +Mcu.Pin3=PF8 +Mcu.Pin30=PB14 +Mcu.Pin31=PD8 +Mcu.Pin32=PD9 +Mcu.Pin33=PD10 +Mcu.Pin34=PD14 +Mcu.Pin35=PD15 +Mcu.Pin36=PD0 +Mcu.Pin37=PD1 +Mcu.Pin38=PD4 +Mcu.Pin39=PD5 +Mcu.Pin4=PF9 +Mcu.Pin40=PG12 +Mcu.Pin41=VP_SYS_VS_ND +Mcu.Pin42=VP_SYS_VS_Systick +Mcu.Pin43=VP_TIM6_VS_ClockSourceINT +Mcu.Pin5=PF10 +Mcu.Pin6=OSC_IN +Mcu.Pin7=OSC_OUT +Mcu.Pin8=PA0-WKUP +Mcu.Pin9=PA4 +Mcu.PinsNb=44 Mcu.ThirdPartyNb=0 Mcu.UserConstants= Mcu.UserName=STM32F103ZETx @@ -73,6 +83,20 @@ OSC_IN.Mode=HSE-External-Oscillator OSC_IN.Signal=RCC_OSC_IN OSC_OUT.Mode=HSE-External-Oscillator OSC_OUT.Signal=RCC_OSC_OUT +PA0-WKUP.GPIOParameters=GPIO_Label +PA0-WKUP.GPIO_Label=KEY0 +PA0-WKUP.Locked=true +PA0-WKUP.Signal=GPIO_Input +PA4.GPIOParameters=GPIO_Label +PA4.GPIO_Label=RC522_CS +PA4.Locked=true +PA4.Signal=GPIO_Output +PA5.Mode=Full_Duplex_Master +PA5.Signal=SPI1_SCK +PA6.Mode=Full_Duplex_Master +PA6.Signal=SPI1_MISO +PA7.Mode=Full_Duplex_Master +PA7.Signal=SPI1_MOSI PB0.GPIOParameters=GPIO_Label PB0.GPIO_Label=LCD_BL PB0.Locked=true @@ -127,6 +151,21 @@ PE12.Signal=FSMC_D9_DA9 PE13.Signal=FSMC_D10_DA10 PE14.Signal=FSMC_D11_DA11 PE15.Signal=FSMC_D12_DA12 +PE2.GPIOParameters=GPIO_PuPd,GPIO_Label +PE2.GPIO_Label=KEY3 +PE2.GPIO_PuPd=GPIO_PULLUP +PE2.Locked=true +PE2.Signal=GPIO_Input +PE3.GPIOParameters=GPIO_PuPd,GPIO_Label +PE3.GPIO_Label=KEY2 +PE3.GPIO_PuPd=GPIO_PULLUP +PE3.Locked=true +PE3.Signal=GPIO_Input +PE4.GPIOParameters=GPIO_PuPd,GPIO_Label +PE4.GPIO_Label=KEY1 +PE4.GPIO_PuPd=GPIO_PULLUP +PE4.Locked=true +PE4.Signal=GPIO_Input PE7.Signal=FSMC_D4_DA4 PE8.Signal=FSMC_D5_DA5 PE9.Signal=FSMC_D6_DA6 @@ -176,7 +215,7 @@ ProjectManager.StackSize=0x800 ProjectManager.TargetToolchain=STM32CubeIDE ProjectManager.ToolChainLocation= ProjectManager.UnderRoot=true -ProjectManager.functionlistsort=1-SystemClock_Config-RCC-false-HAL-false,2-MX_GPIO_Init-GPIO-false-HAL-true,3-MX_FSMC_Init-FSMC-false-HAL-true,4-MX_I2C2_Init-I2C2-false-HAL-true +ProjectManager.functionlistsort=1-SystemClock_Config-RCC-false-HAL-false,2-MX_GPIO_Init-GPIO-false-HAL-true,3-MX_FSMC_Init-FSMC-false-HAL-true,4-MX_I2C2_Init-I2C2-false-HAL-true,5-MX_TIM6_Init-TIM6-false-HAL-true,6-MX_SPI1_Init-SPI1-false-HAL-true RCC.ADCFreqValue=36000000 RCC.AHBFreq_Value=72000000 RCC.APB1CLKDivider=RCC_HCLK_DIV2 @@ -241,6 +280,12 @@ SH.FSMC_NOE.0=FSMC_NOE,Lcd1 SH.FSMC_NOE.ConfNb=1 SH.FSMC_NWE.0=FSMC_NWE,Lcd1 SH.FSMC_NWE.ConfNb=1 +SPI1.BaudRatePrescaler=SPI_BAUDRATEPRESCALER_4 +SPI1.CalculateBaudRate=18.0 MBits/s +SPI1.Direction=SPI_DIRECTION_2LINES +SPI1.IPParameters=VirtualType,Mode,Direction,BaudRatePrescaler,CalculateBaudRate +SPI1.Mode=SPI_MODE_MASTER +SPI1.VirtualType=VM_MASTER TIM6.IPParameters=Prescaler,Period TIM6.Period=10000-1 TIM6.Prescaler=72-1