diff --git a/Logiciel/Test_hardware_basique/.gitignore b/Logiciel/Test_hardware_basique/.gitignore index 3053d080c185533e767927d8ed2c2d0363956dc6..a95f3ce0f6ee1f7902c76c25be222c65f113ff02 100644 --- a/Logiciel/Test_hardware_basique/.gitignore +++ b/Logiciel/Test_hardware_basique/.gitignore @@ -1,3 +1,8 @@ +# Fichiers .log +*.log +Debug/ +Release/ + # Created by https://www.gitignore.io/api/c # Edit at https://www.gitignore.io/?templates=c @@ -56,3 +61,4 @@ Mkfile.old dkms.conf # End of https://www.gitignore.io/api/c + diff --git a/Logiciel/Test_hardware_basique/Debug/Drivers/STM32F0xx_HAL_Driver/Src/subdir.mk b/Logiciel/Test_hardware_basique/Debug/Drivers/STM32F0xx_HAL_Driver/Src/subdir.mk deleted file mode 100644 index 4729c822e9909f919f6f6c78779c38615bcbf685..0000000000000000000000000000000000000000 --- a/Logiciel/Test_hardware_basique/Debug/Drivers/STM32F0xx_HAL_Driver/Src/subdir.mk +++ /dev/null @@ -1,89 +0,0 @@ -################################################################################ -# Automatically-generated file. Do not edit! -################################################################################ - -# Add inputs and outputs from these tool invocations to the build variables -C_SRCS += \ -../Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c \ -../Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c \ -../Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c \ -../Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_exti.c \ -../Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c \ -../Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c \ -../Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c \ -../Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c \ -../Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c \ -../Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c \ -../Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c \ -../Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c \ -../Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c \ -../Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c \ -../Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c - -OBJS += \ -./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.o \ -./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.o \ -./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.o \ -./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_exti.o \ -./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.o \ -./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.o \ -./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.o \ -./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.o \ -./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.o \ -./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.o \ -./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.o \ -./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.o \ -./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.o \ -./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.o \ -./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.o - -C_DEPS += \ -./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.d \ -./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.d \ -./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.d \ -./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_exti.d \ -./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.d \ -./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.d \ -./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.d \ -./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.d \ -./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.d \ -./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.d \ -./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.d \ -./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.d \ -./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.d \ -./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.d \ -./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.d - - -# Each subdirectory must supply rules for building sources it contributes -Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.o: ../Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c - arm-none-eabi-gcc "$<" -mcpu=cortex-m0 -std=gnu11 -g3 -DSTM32F071xB -DUSE_HAL_DRIVER -DDEBUG -c -I../Inc -I../Drivers/STM32F0xx_HAL_Driver/Inc -I../Drivers/CMSIS/Include -I../Drivers/STM32F0xx_HAL_Driver/Inc/Legacy -I../Drivers/CMSIS/Device/ST/STM32F0xx/Include -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -MMD -MP -MF"Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.d" -MT"$@" --specs=nano.specs -mfloat-abi=soft -mthumb -o "$@" -Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.o: ../Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c - arm-none-eabi-gcc "$<" -mcpu=cortex-m0 -std=gnu11 -g3 -DSTM32F071xB -DUSE_HAL_DRIVER -DDEBUG -c -I../Inc -I../Drivers/STM32F0xx_HAL_Driver/Inc -I../Drivers/CMSIS/Include -I../Drivers/STM32F0xx_HAL_Driver/Inc/Legacy -I../Drivers/CMSIS/Device/ST/STM32F0xx/Include -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -MMD -MP -MF"Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.d" -MT"$@" --specs=nano.specs -mfloat-abi=soft -mthumb -o "$@" -Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.o: ../Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c - arm-none-eabi-gcc "$<" -mcpu=cortex-m0 -std=gnu11 -g3 -DSTM32F071xB -DUSE_HAL_DRIVER -DDEBUG -c -I../Inc -I../Drivers/STM32F0xx_HAL_Driver/Inc -I../Drivers/CMSIS/Include -I../Drivers/STM32F0xx_HAL_Driver/Inc/Legacy -I../Drivers/CMSIS/Device/ST/STM32F0xx/Include -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -MMD -MP -MF"Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.d" -MT"$@" --specs=nano.specs -mfloat-abi=soft -mthumb -o "$@" -Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_exti.o: ../Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_exti.c - arm-none-eabi-gcc "$<" -mcpu=cortex-m0 -std=gnu11 -g3 -DSTM32F071xB -DUSE_HAL_DRIVER -DDEBUG -c -I../Inc -I../Drivers/STM32F0xx_HAL_Driver/Inc -I../Drivers/CMSIS/Include -I../Drivers/STM32F0xx_HAL_Driver/Inc/Legacy -I../Drivers/CMSIS/Device/ST/STM32F0xx/Include -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -MMD -MP -MF"Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_exti.d" -MT"$@" --specs=nano.specs -mfloat-abi=soft -mthumb -o "$@" -Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.o: ../Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c - arm-none-eabi-gcc "$<" -mcpu=cortex-m0 -std=gnu11 -g3 -DSTM32F071xB -DUSE_HAL_DRIVER -DDEBUG -c -I../Inc -I../Drivers/STM32F0xx_HAL_Driver/Inc -I../Drivers/CMSIS/Include -I../Drivers/STM32F0xx_HAL_Driver/Inc/Legacy -I../Drivers/CMSIS/Device/ST/STM32F0xx/Include -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -MMD -MP -MF"Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.d" -MT"$@" --specs=nano.specs -mfloat-abi=soft -mthumb -o "$@" -Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.o: ../Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c - arm-none-eabi-gcc "$<" -mcpu=cortex-m0 -std=gnu11 -g3 -DSTM32F071xB -DUSE_HAL_DRIVER -DDEBUG -c -I../Inc -I../Drivers/STM32F0xx_HAL_Driver/Inc -I../Drivers/CMSIS/Include -I../Drivers/STM32F0xx_HAL_Driver/Inc/Legacy -I../Drivers/CMSIS/Device/ST/STM32F0xx/Include -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -MMD -MP -MF"Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.d" -MT"$@" --specs=nano.specs -mfloat-abi=soft -mthumb -o "$@" -Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.o: ../Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c - arm-none-eabi-gcc "$<" -mcpu=cortex-m0 -std=gnu11 -g3 -DSTM32F071xB -DUSE_HAL_DRIVER -DDEBUG -c -I../Inc -I../Drivers/STM32F0xx_HAL_Driver/Inc -I../Drivers/CMSIS/Include -I../Drivers/STM32F0xx_HAL_Driver/Inc/Legacy -I../Drivers/CMSIS/Device/ST/STM32F0xx/Include -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -MMD -MP -MF"Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.d" -MT"$@" --specs=nano.specs -mfloat-abi=soft -mthumb -o "$@" -Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.o: ../Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c - arm-none-eabi-gcc "$<" -mcpu=cortex-m0 -std=gnu11 -g3 -DSTM32F071xB -DUSE_HAL_DRIVER -DDEBUG -c -I../Inc -I../Drivers/STM32F0xx_HAL_Driver/Inc -I../Drivers/CMSIS/Include -I../Drivers/STM32F0xx_HAL_Driver/Inc/Legacy -I../Drivers/CMSIS/Device/ST/STM32F0xx/Include -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -MMD -MP -MF"Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.d" -MT"$@" --specs=nano.specs -mfloat-abi=soft -mthumb -o "$@" -Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.o: ../Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c - arm-none-eabi-gcc "$<" -mcpu=cortex-m0 -std=gnu11 -g3 -DSTM32F071xB -DUSE_HAL_DRIVER -DDEBUG -c -I../Inc -I../Drivers/STM32F0xx_HAL_Driver/Inc -I../Drivers/CMSIS/Include -I../Drivers/STM32F0xx_HAL_Driver/Inc/Legacy -I../Drivers/CMSIS/Device/ST/STM32F0xx/Include -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -MMD -MP -MF"Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.d" -MT"$@" --specs=nano.specs -mfloat-abi=soft -mthumb -o "$@" -Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.o: ../Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c - arm-none-eabi-gcc "$<" -mcpu=cortex-m0 -std=gnu11 -g3 -DSTM32F071xB -DUSE_HAL_DRIVER -DDEBUG -c -I../Inc -I../Drivers/STM32F0xx_HAL_Driver/Inc -I../Drivers/CMSIS/Include -I../Drivers/STM32F0xx_HAL_Driver/Inc/Legacy -I../Drivers/CMSIS/Device/ST/STM32F0xx/Include -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -MMD -MP -MF"Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.d" -MT"$@" --specs=nano.specs -mfloat-abi=soft -mthumb -o "$@" -Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.o: ../Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c - arm-none-eabi-gcc "$<" -mcpu=cortex-m0 -std=gnu11 -g3 -DSTM32F071xB -DUSE_HAL_DRIVER -DDEBUG -c -I../Inc -I../Drivers/STM32F0xx_HAL_Driver/Inc -I../Drivers/CMSIS/Include -I../Drivers/STM32F0xx_HAL_Driver/Inc/Legacy -I../Drivers/CMSIS/Device/ST/STM32F0xx/Include -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -MMD -MP -MF"Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.d" -MT"$@" --specs=nano.specs -mfloat-abi=soft -mthumb -o "$@" -Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.o: ../Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c - arm-none-eabi-gcc "$<" -mcpu=cortex-m0 -std=gnu11 -g3 -DSTM32F071xB -DUSE_HAL_DRIVER -DDEBUG -c -I../Inc -I../Drivers/STM32F0xx_HAL_Driver/Inc -I../Drivers/CMSIS/Include -I../Drivers/STM32F0xx_HAL_Driver/Inc/Legacy -I../Drivers/CMSIS/Device/ST/STM32F0xx/Include -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -MMD -MP -MF"Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.d" -MT"$@" --specs=nano.specs -mfloat-abi=soft -mthumb -o "$@" -Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.o: ../Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c - arm-none-eabi-gcc "$<" -mcpu=cortex-m0 -std=gnu11 -g3 -DSTM32F071xB -DUSE_HAL_DRIVER -DDEBUG -c -I../Inc -I../Drivers/STM32F0xx_HAL_Driver/Inc -I../Drivers/CMSIS/Include -I../Drivers/STM32F0xx_HAL_Driver/Inc/Legacy -I../Drivers/CMSIS/Device/ST/STM32F0xx/Include -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -MMD -MP -MF"Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.d" -MT"$@" --specs=nano.specs -mfloat-abi=soft -mthumb -o "$@" -Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.o: ../Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c - arm-none-eabi-gcc "$<" -mcpu=cortex-m0 -std=gnu11 -g3 -DSTM32F071xB -DUSE_HAL_DRIVER -DDEBUG -c -I../Inc -I../Drivers/STM32F0xx_HAL_Driver/Inc -I../Drivers/CMSIS/Include -I../Drivers/STM32F0xx_HAL_Driver/Inc/Legacy -I../Drivers/CMSIS/Device/ST/STM32F0xx/Include -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -MMD -MP -MF"Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.d" -MT"$@" --specs=nano.specs -mfloat-abi=soft -mthumb -o "$@" -Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.o: ../Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c - arm-none-eabi-gcc "$<" -mcpu=cortex-m0 -std=gnu11 -g3 -DSTM32F071xB -DUSE_HAL_DRIVER -DDEBUG -c -I../Inc -I../Drivers/STM32F0xx_HAL_Driver/Inc -I../Drivers/CMSIS/Include -I../Drivers/STM32F0xx_HAL_Driver/Inc/Legacy -I../Drivers/CMSIS/Device/ST/STM32F0xx/Include -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -MMD -MP -MF"Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.d" -MT"$@" --specs=nano.specs -mfloat-abi=soft -mthumb -o "$@" - diff --git a/Logiciel/Test_hardware_basique/Debug/Src/subdir.mk b/Logiciel/Test_hardware_basique/Debug/Src/subdir.mk deleted file mode 100644 index 3138606214b25b0a1351b0a6170eff837e76d10b..0000000000000000000000000000000000000000 --- a/Logiciel/Test_hardware_basique/Debug/Src/subdir.mk +++ /dev/null @@ -1,44 +0,0 @@ -################################################################################ -# Automatically-generated file. Do not edit! -################################################################################ - -# Add inputs and outputs from these tool invocations to the build variables -C_SRCS += \ -../Src/main.c \ -../Src/stm32f0xx_hal_msp.c \ -../Src/stm32f0xx_it.c \ -../Src/syscalls.c \ -../Src/sysmem.c \ -../Src/system_stm32f0xx.c - -OBJS += \ -./Src/main.o \ -./Src/stm32f0xx_hal_msp.o \ -./Src/stm32f0xx_it.o \ -./Src/syscalls.o \ -./Src/sysmem.o \ -./Src/system_stm32f0xx.o - -C_DEPS += \ -./Src/main.d \ -./Src/stm32f0xx_hal_msp.d \ -./Src/stm32f0xx_it.d \ -./Src/syscalls.d \ -./Src/sysmem.d \ -./Src/system_stm32f0xx.d - - -# Each subdirectory must supply rules for building sources it contributes -Src/main.o: ../Src/main.c - arm-none-eabi-gcc "$<" -mcpu=cortex-m0 -std=gnu11 -g3 -DSTM32F071xB -DUSE_HAL_DRIVER -DDEBUG -c -I../Inc -I../Drivers/STM32F0xx_HAL_Driver/Inc -I../Drivers/CMSIS/Include -I../Drivers/STM32F0xx_HAL_Driver/Inc/Legacy -I../Drivers/CMSIS/Device/ST/STM32F0xx/Include -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -MMD -MP -MF"Src/main.d" -MT"$@" --specs=nano.specs -mfloat-abi=soft -mthumb -o "$@" -Src/stm32f0xx_hal_msp.o: ../Src/stm32f0xx_hal_msp.c - arm-none-eabi-gcc "$<" -mcpu=cortex-m0 -std=gnu11 -g3 -DSTM32F071xB -DUSE_HAL_DRIVER -DDEBUG -c -I../Inc -I../Drivers/STM32F0xx_HAL_Driver/Inc -I../Drivers/CMSIS/Include -I../Drivers/STM32F0xx_HAL_Driver/Inc/Legacy -I../Drivers/CMSIS/Device/ST/STM32F0xx/Include -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -MMD -MP -MF"Src/stm32f0xx_hal_msp.d" -MT"$@" --specs=nano.specs -mfloat-abi=soft -mthumb -o "$@" -Src/stm32f0xx_it.o: ../Src/stm32f0xx_it.c - arm-none-eabi-gcc "$<" -mcpu=cortex-m0 -std=gnu11 -g3 -DSTM32F071xB -DUSE_HAL_DRIVER -DDEBUG -c -I../Inc -I../Drivers/STM32F0xx_HAL_Driver/Inc -I../Drivers/CMSIS/Include -I../Drivers/STM32F0xx_HAL_Driver/Inc/Legacy -I../Drivers/CMSIS/Device/ST/STM32F0xx/Include -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -MMD -MP -MF"Src/stm32f0xx_it.d" -MT"$@" --specs=nano.specs -mfloat-abi=soft -mthumb -o "$@" -Src/syscalls.o: ../Src/syscalls.c - arm-none-eabi-gcc "$<" -mcpu=cortex-m0 -std=gnu11 -g3 -DSTM32F071xB -DUSE_HAL_DRIVER -DDEBUG -c -I../Inc -I../Drivers/STM32F0xx_HAL_Driver/Inc -I../Drivers/CMSIS/Include -I../Drivers/STM32F0xx_HAL_Driver/Inc/Legacy -I../Drivers/CMSIS/Device/ST/STM32F0xx/Include -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -MMD -MP -MF"Src/syscalls.d" -MT"$@" --specs=nano.specs -mfloat-abi=soft -mthumb -o "$@" -Src/sysmem.o: ../Src/sysmem.c - arm-none-eabi-gcc "$<" -mcpu=cortex-m0 -std=gnu11 -g3 -DSTM32F071xB -DUSE_HAL_DRIVER -DDEBUG -c -I../Inc -I../Drivers/STM32F0xx_HAL_Driver/Inc -I../Drivers/CMSIS/Include -I../Drivers/STM32F0xx_HAL_Driver/Inc/Legacy -I../Drivers/CMSIS/Device/ST/STM32F0xx/Include -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -MMD -MP -MF"Src/sysmem.d" -MT"$@" --specs=nano.specs -mfloat-abi=soft -mthumb -o "$@" -Src/system_stm32f0xx.o: ../Src/system_stm32f0xx.c - arm-none-eabi-gcc "$<" -mcpu=cortex-m0 -std=gnu11 -g3 -DSTM32F071xB -DUSE_HAL_DRIVER -DDEBUG -c -I../Inc -I../Drivers/STM32F0xx_HAL_Driver/Inc -I../Drivers/CMSIS/Include -I../Drivers/STM32F0xx_HAL_Driver/Inc/Legacy -I../Drivers/CMSIS/Device/ST/STM32F0xx/Include -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -MMD -MP -MF"Src/system_stm32f0xx.d" -MT"$@" --specs=nano.specs -mfloat-abi=soft -mthumb -o "$@" - diff --git a/Logiciel/Test_hardware_basique/Debug/Startup/subdir.mk b/Logiciel/Test_hardware_basique/Debug/Startup/subdir.mk deleted file mode 100644 index 4fd913f9828b26f62b12444986fc61d0f829ace0..0000000000000000000000000000000000000000 --- a/Logiciel/Test_hardware_basique/Debug/Startup/subdir.mk +++ /dev/null @@ -1,16 +0,0 @@ -################################################################################ -# Automatically-generated file. Do not edit! -################################################################################ - -# Add inputs and outputs from these tool invocations to the build variables -S_SRCS += \ -../Startup/startup_stm32f071v8tx.s - -OBJS += \ -./Startup/startup_stm32f071v8tx.o - - -# Each subdirectory must supply rules for building sources it contributes -Startup/%.o: ../Startup/%.s - arm-none-eabi-gcc -mcpu=cortex-m0 -g3 -c -x assembler-with-cpp --specs=nano.specs -mfloat-abi=soft -mthumb -o "$@" "$<" - diff --git a/Logiciel/Test_hardware_basique/Debug/Test_hardware_basique.bin b/Logiciel/Test_hardware_basique/Debug/Test_hardware_basique.bin deleted file mode 100644 index a962ff796f9433596bb8ba19531c5e019919fbf3..0000000000000000000000000000000000000000 Binary files a/Logiciel/Test_hardware_basique/Debug/Test_hardware_basique.bin and /dev/null differ diff --git a/Logiciel/Test_hardware_basique/Debug/Test_hardware_basique.list b/Logiciel/Test_hardware_basique/Debug/Test_hardware_basique.list deleted file mode 100644 index 36dc44777940e47200b488a391666eda065526ca..0000000000000000000000000000000000000000 --- a/Logiciel/Test_hardware_basique/Debug/Test_hardware_basique.list +++ /dev/null @@ -1,3658 +0,0 @@ - -Test_hardware_basique.elf: file format elf32-littlearm - -Sections: -Idx Name Size VMA LMA File off Algn - 0 .isr_vector 000000c0 08000000 08000000 00010000 2**0 - CONTENTS, ALLOC, LOAD, READONLY, DATA - 1 .text 00001358 080000c0 080000c0 000100c0 2**2 - CONTENTS, ALLOC, LOAD, READONLY, CODE - 2 .rodata 00000030 08001418 08001418 00011418 2**2 - CONTENTS, ALLOC, LOAD, READONLY, DATA - 3 .ARM.extab 00000000 08001448 08001448 0002000c 2**0 - CONTENTS - 4 .ARM 00000000 08001448 08001448 0002000c 2**0 - CONTENTS - 5 .preinit_array 00000000 08001448 08001448 0002000c 2**0 - CONTENTS, ALLOC, LOAD, DATA - 6 .init_array 00000004 08001448 08001448 00011448 2**2 - CONTENTS, ALLOC, LOAD, DATA - 7 .fini_array 00000004 0800144c 0800144c 0001144c 2**2 - CONTENTS, ALLOC, LOAD, DATA - 8 .data 0000000c 20000000 08001450 00020000 2**2 - CONTENTS, ALLOC, LOAD, DATA - 9 .bss 00000020 2000000c 0800145c 0002000c 2**2 - ALLOC - 10 ._user_heap_stack 00000604 2000002c 0800145c 0002002c 2**0 - ALLOC - 11 .ARM.attributes 00000028 00000000 00000000 0002000c 2**0 - CONTENTS, READONLY - 12 .debug_info 000028d6 00000000 00000000 00020034 2**0 - CONTENTS, READONLY, DEBUGGING - 13 .debug_abbrev 00000cc0 00000000 00000000 0002290a 2**0 - CONTENTS, READONLY, DEBUGGING - 14 .debug_aranges 00000350 00000000 00000000 000235d0 2**3 - CONTENTS, READONLY, DEBUGGING - 15 .debug_ranges 000002c8 00000000 00000000 00023920 2**3 - CONTENTS, READONLY, DEBUGGING - 16 .debug_macro 0000dcc6 00000000 00000000 00023be8 2**0 - CONTENTS, READONLY, DEBUGGING - 17 .debug_line 00003a84 00000000 00000000 000318ae 2**0 - CONTENTS, READONLY, DEBUGGING - 18 .debug_str 0004fcc2 00000000 00000000 00035332 2**0 - CONTENTS, READONLY, DEBUGGING - 19 .comment 0000007b 00000000 00000000 00084ff4 2**0 - CONTENTS, READONLY - 20 .debug_frame 000009f8 00000000 00000000 00085070 2**2 - CONTENTS, READONLY, DEBUGGING - -Disassembly of section .text: - -080000c0 <__do_global_dtors_aux>: - 80000c0: b510 push {r4, lr} - 80000c2: 4c06 ldr r4, [pc, #24] ; (80000dc <__do_global_dtors_aux+0x1c>) - 80000c4: 7823 ldrb r3, [r4, #0] - 80000c6: 2b00 cmp r3, #0 - 80000c8: d107 bne.n 80000da <__do_global_dtors_aux+0x1a> - 80000ca: 4b05 ldr r3, [pc, #20] ; (80000e0 <__do_global_dtors_aux+0x20>) - 80000cc: 2b00 cmp r3, #0 - 80000ce: d002 beq.n 80000d6 <__do_global_dtors_aux+0x16> - 80000d0: 4804 ldr r0, [pc, #16] ; (80000e4 <__do_global_dtors_aux+0x24>) - 80000d2: e000 b.n 80000d6 <__do_global_dtors_aux+0x16> - 80000d4: bf00 nop - 80000d6: 2301 movs r3, #1 - 80000d8: 7023 strb r3, [r4, #0] - 80000da: bd10 pop {r4, pc} - 80000dc: 2000000c .word 0x2000000c - 80000e0: 00000000 .word 0x00000000 - 80000e4: 08001400 .word 0x08001400 - -080000e8 <frame_dummy>: - 80000e8: 4b04 ldr r3, [pc, #16] ; (80000fc <frame_dummy+0x14>) - 80000ea: b510 push {r4, lr} - 80000ec: 2b00 cmp r3, #0 - 80000ee: d003 beq.n 80000f8 <frame_dummy+0x10> - 80000f0: 4903 ldr r1, [pc, #12] ; (8000100 <frame_dummy+0x18>) - 80000f2: 4804 ldr r0, [pc, #16] ; (8000104 <frame_dummy+0x1c>) - 80000f4: e000 b.n 80000f8 <frame_dummy+0x10> - 80000f6: bf00 nop - 80000f8: bd10 pop {r4, pc} - 80000fa: 46c0 nop ; (mov r8, r8) - 80000fc: 00000000 .word 0x00000000 - 8000100: 20000010 .word 0x20000010 - 8000104: 08001400 .word 0x08001400 - -08000108 <__udivsi3>: - 8000108: 2200 movs r2, #0 - 800010a: 0843 lsrs r3, r0, #1 - 800010c: 428b cmp r3, r1 - 800010e: d374 bcc.n 80001fa <__udivsi3+0xf2> - 8000110: 0903 lsrs r3, r0, #4 - 8000112: 428b cmp r3, r1 - 8000114: d35f bcc.n 80001d6 <__udivsi3+0xce> - 8000116: 0a03 lsrs r3, r0, #8 - 8000118: 428b cmp r3, r1 - 800011a: d344 bcc.n 80001a6 <__udivsi3+0x9e> - 800011c: 0b03 lsrs r3, r0, #12 - 800011e: 428b cmp r3, r1 - 8000120: d328 bcc.n 8000174 <__udivsi3+0x6c> - 8000122: 0c03 lsrs r3, r0, #16 - 8000124: 428b cmp r3, r1 - 8000126: d30d bcc.n 8000144 <__udivsi3+0x3c> - 8000128: 22ff movs r2, #255 ; 0xff - 800012a: 0209 lsls r1, r1, #8 - 800012c: ba12 rev r2, r2 - 800012e: 0c03 lsrs r3, r0, #16 - 8000130: 428b cmp r3, r1 - 8000132: d302 bcc.n 800013a <__udivsi3+0x32> - 8000134: 1212 asrs r2, r2, #8 - 8000136: 0209 lsls r1, r1, #8 - 8000138: d065 beq.n 8000206 <__udivsi3+0xfe> - 800013a: 0b03 lsrs r3, r0, #12 - 800013c: 428b cmp r3, r1 - 800013e: d319 bcc.n 8000174 <__udivsi3+0x6c> - 8000140: e000 b.n 8000144 <__udivsi3+0x3c> - 8000142: 0a09 lsrs r1, r1, #8 - 8000144: 0bc3 lsrs r3, r0, #15 - 8000146: 428b cmp r3, r1 - 8000148: d301 bcc.n 800014e <__udivsi3+0x46> - 800014a: 03cb lsls r3, r1, #15 - 800014c: 1ac0 subs r0, r0, r3 - 800014e: 4152 adcs r2, r2 - 8000150: 0b83 lsrs r3, r0, #14 - 8000152: 428b cmp r3, r1 - 8000154: d301 bcc.n 800015a <__udivsi3+0x52> - 8000156: 038b lsls r3, r1, #14 - 8000158: 1ac0 subs r0, r0, r3 - 800015a: 4152 adcs r2, r2 - 800015c: 0b43 lsrs r3, r0, #13 - 800015e: 428b cmp r3, r1 - 8000160: d301 bcc.n 8000166 <__udivsi3+0x5e> - 8000162: 034b lsls r3, r1, #13 - 8000164: 1ac0 subs r0, r0, r3 - 8000166: 4152 adcs r2, r2 - 8000168: 0b03 lsrs r3, r0, #12 - 800016a: 428b cmp r3, r1 - 800016c: d301 bcc.n 8000172 <__udivsi3+0x6a> - 800016e: 030b lsls r3, r1, #12 - 8000170: 1ac0 subs r0, r0, r3 - 8000172: 4152 adcs r2, r2 - 8000174: 0ac3 lsrs r3, r0, #11 - 8000176: 428b cmp r3, r1 - 8000178: d301 bcc.n 800017e <__udivsi3+0x76> - 800017a: 02cb lsls r3, r1, #11 - 800017c: 1ac0 subs r0, r0, r3 - 800017e: 4152 adcs r2, r2 - 8000180: 0a83 lsrs r3, r0, #10 - 8000182: 428b cmp r3, r1 - 8000184: d301 bcc.n 800018a <__udivsi3+0x82> - 8000186: 028b lsls r3, r1, #10 - 8000188: 1ac0 subs r0, r0, r3 - 800018a: 4152 adcs r2, r2 - 800018c: 0a43 lsrs r3, r0, #9 - 800018e: 428b cmp r3, r1 - 8000190: d301 bcc.n 8000196 <__udivsi3+0x8e> - 8000192: 024b lsls r3, r1, #9 - 8000194: 1ac0 subs r0, r0, r3 - 8000196: 4152 adcs r2, r2 - 8000198: 0a03 lsrs r3, r0, #8 - 800019a: 428b cmp r3, r1 - 800019c: d301 bcc.n 80001a2 <__udivsi3+0x9a> - 800019e: 020b lsls r3, r1, #8 - 80001a0: 1ac0 subs r0, r0, r3 - 80001a2: 4152 adcs r2, r2 - 80001a4: d2cd bcs.n 8000142 <__udivsi3+0x3a> - 80001a6: 09c3 lsrs r3, r0, #7 - 80001a8: 428b cmp r3, r1 - 80001aa: d301 bcc.n 80001b0 <__udivsi3+0xa8> - 80001ac: 01cb lsls r3, r1, #7 - 80001ae: 1ac0 subs r0, r0, r3 - 80001b0: 4152 adcs r2, r2 - 80001b2: 0983 lsrs r3, r0, #6 - 80001b4: 428b cmp r3, r1 - 80001b6: d301 bcc.n 80001bc <__udivsi3+0xb4> - 80001b8: 018b lsls r3, r1, #6 - 80001ba: 1ac0 subs r0, r0, r3 - 80001bc: 4152 adcs r2, r2 - 80001be: 0943 lsrs r3, r0, #5 - 80001c0: 428b cmp r3, r1 - 80001c2: d301 bcc.n 80001c8 <__udivsi3+0xc0> - 80001c4: 014b lsls r3, r1, #5 - 80001c6: 1ac0 subs r0, r0, r3 - 80001c8: 4152 adcs r2, r2 - 80001ca: 0903 lsrs r3, r0, #4 - 80001cc: 428b cmp r3, r1 - 80001ce: d301 bcc.n 80001d4 <__udivsi3+0xcc> - 80001d0: 010b lsls r3, r1, #4 - 80001d2: 1ac0 subs r0, r0, r3 - 80001d4: 4152 adcs r2, r2 - 80001d6: 08c3 lsrs r3, r0, #3 - 80001d8: 428b cmp r3, r1 - 80001da: d301 bcc.n 80001e0 <__udivsi3+0xd8> - 80001dc: 00cb lsls r3, r1, #3 - 80001de: 1ac0 subs r0, r0, r3 - 80001e0: 4152 adcs r2, r2 - 80001e2: 0883 lsrs r3, r0, #2 - 80001e4: 428b cmp r3, r1 - 80001e6: d301 bcc.n 80001ec <__udivsi3+0xe4> - 80001e8: 008b lsls r3, r1, #2 - 80001ea: 1ac0 subs r0, r0, r3 - 80001ec: 4152 adcs r2, r2 - 80001ee: 0843 lsrs r3, r0, #1 - 80001f0: 428b cmp r3, r1 - 80001f2: d301 bcc.n 80001f8 <__udivsi3+0xf0> - 80001f4: 004b lsls r3, r1, #1 - 80001f6: 1ac0 subs r0, r0, r3 - 80001f8: 4152 adcs r2, r2 - 80001fa: 1a41 subs r1, r0, r1 - 80001fc: d200 bcs.n 8000200 <__udivsi3+0xf8> - 80001fe: 4601 mov r1, r0 - 8000200: 4152 adcs r2, r2 - 8000202: 4610 mov r0, r2 - 8000204: 4770 bx lr - 8000206: e7ff b.n 8000208 <__udivsi3+0x100> - 8000208: b501 push {r0, lr} - 800020a: 2000 movs r0, #0 - 800020c: f000 f806 bl 800021c <__aeabi_idiv0> - 8000210: bd02 pop {r1, pc} - 8000212: 46c0 nop ; (mov r8, r8) - -08000214 <__aeabi_uidivmod>: - 8000214: 2900 cmp r1, #0 - 8000216: d0f7 beq.n 8000208 <__udivsi3+0x100> - 8000218: e776 b.n 8000108 <__udivsi3> - 800021a: 4770 bx lr - -0800021c <__aeabi_idiv0>: - 800021c: 4770 bx lr - 800021e: 46c0 nop ; (mov r8, r8) - -08000220 <HAL_Init>: - * In the default implementation,Systick is used as source of time base. - * The tick variable is incremented each 1ms in its ISR. - * @retval HAL status - */ -HAL_StatusTypeDef HAL_Init(void) -{ - 8000220: b580 push {r7, lr} - 8000222: af00 add r7, sp, #0 - /* Configure Flash prefetch */ -#if (PREFETCH_ENABLE != 0) - __HAL_FLASH_PREFETCH_BUFFER_ENABLE(); - 8000224: 4b07 ldr r3, [pc, #28] ; (8000244 <HAL_Init+0x24>) - 8000226: 681a ldr r2, [r3, #0] - 8000228: 4b06 ldr r3, [pc, #24] ; (8000244 <HAL_Init+0x24>) - 800022a: 2110 movs r1, #16 - 800022c: 430a orrs r2, r1 - 800022e: 601a str r2, [r3, #0] -#endif /* PREFETCH_ENABLE */ - - /* Use systick as time base source and configure 1ms tick (default clock after Reset is HSI) */ - - HAL_InitTick(TICK_INT_PRIORITY); - 8000230: 2000 movs r0, #0 - 8000232: f000 f809 bl 8000248 <HAL_InitTick> - - /* Init the low level hardware */ - HAL_MspInit(); - 8000236: f001 f84b bl 80012d0 <HAL_MspInit> - - /* Return function status */ - return HAL_OK; - 800023a: 2300 movs r3, #0 -} - 800023c: 0018 movs r0, r3 - 800023e: 46bd mov sp, r7 - 8000240: bd80 pop {r7, pc} - 8000242: 46c0 nop ; (mov r8, r8) - 8000244: 40022000 .word 0x40022000 - -08000248 <HAL_InitTick>: - * implementation in user file. - * @param TickPriority Tick interrupt priority. - * @retval HAL status - */ -__weak HAL_StatusTypeDef HAL_InitTick(uint32_t TickPriority) -{ - 8000248: b590 push {r4, r7, lr} - 800024a: b083 sub sp, #12 - 800024c: af00 add r7, sp, #0 - 800024e: 6078 str r0, [r7, #4] - /*Configure the SysTick to have interrupt in 1ms time basis*/ - if (HAL_SYSTICK_Config(SystemCoreClock / (1000U / uwTickFreq)) > 0U) - 8000250: 4b14 ldr r3, [pc, #80] ; (80002a4 <HAL_InitTick+0x5c>) - 8000252: 681c ldr r4, [r3, #0] - 8000254: 4b14 ldr r3, [pc, #80] ; (80002a8 <HAL_InitTick+0x60>) - 8000256: 781b ldrb r3, [r3, #0] - 8000258: 0019 movs r1, r3 - 800025a: 23fa movs r3, #250 ; 0xfa - 800025c: 0098 lsls r0, r3, #2 - 800025e: f7ff ff53 bl 8000108 <__udivsi3> - 8000262: 0003 movs r3, r0 - 8000264: 0019 movs r1, r3 - 8000266: 0020 movs r0, r4 - 8000268: f7ff ff4e bl 8000108 <__udivsi3> - 800026c: 0003 movs r3, r0 - 800026e: 0018 movs r0, r3 - 8000270: f000 f903 bl 800047a <HAL_SYSTICK_Config> - 8000274: 1e03 subs r3, r0, #0 - 8000276: d001 beq.n 800027c <HAL_InitTick+0x34> - { - return HAL_ERROR; - 8000278: 2301 movs r3, #1 - 800027a: e00f b.n 800029c <HAL_InitTick+0x54> - } - - /* Configure the SysTick IRQ priority */ - if (TickPriority < (1UL << __NVIC_PRIO_BITS)) - 800027c: 687b ldr r3, [r7, #4] - 800027e: 2b03 cmp r3, #3 - 8000280: d80b bhi.n 800029a <HAL_InitTick+0x52> - { - HAL_NVIC_SetPriority(SysTick_IRQn, TickPriority, 0U); - 8000282: 6879 ldr r1, [r7, #4] - 8000284: 2301 movs r3, #1 - 8000286: 425b negs r3, r3 - 8000288: 2200 movs r2, #0 - 800028a: 0018 movs r0, r3 - 800028c: f000 f8e0 bl 8000450 <HAL_NVIC_SetPriority> - uwTickPrio = TickPriority; - 8000290: 4b06 ldr r3, [pc, #24] ; (80002ac <HAL_InitTick+0x64>) - 8000292: 687a ldr r2, [r7, #4] - 8000294: 601a str r2, [r3, #0] - { - return HAL_ERROR; - } - - /* Return function status */ - return HAL_OK; - 8000296: 2300 movs r3, #0 - 8000298: e000 b.n 800029c <HAL_InitTick+0x54> - return HAL_ERROR; - 800029a: 2301 movs r3, #1 -} - 800029c: 0018 movs r0, r3 - 800029e: 46bd mov sp, r7 - 80002a0: b003 add sp, #12 - 80002a2: bd90 pop {r4, r7, pc} - 80002a4: 20000008 .word 0x20000008 - 80002a8: 20000004 .word 0x20000004 - 80002ac: 20000000 .word 0x20000000 - -080002b0 <HAL_IncTick>: - * @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) -{ - 80002b0: b580 push {r7, lr} - 80002b2: af00 add r7, sp, #0 - uwTick += uwTickFreq; - 80002b4: 4b05 ldr r3, [pc, #20] ; (80002cc <HAL_IncTick+0x1c>) - 80002b6: 781b ldrb r3, [r3, #0] - 80002b8: 001a movs r2, r3 - 80002ba: 4b05 ldr r3, [pc, #20] ; (80002d0 <HAL_IncTick+0x20>) - 80002bc: 681b ldr r3, [r3, #0] - 80002be: 18d2 adds r2, r2, r3 - 80002c0: 4b03 ldr r3, [pc, #12] ; (80002d0 <HAL_IncTick+0x20>) - 80002c2: 601a str r2, [r3, #0] -} - 80002c4: 46c0 nop ; (mov r8, r8) - 80002c6: 46bd mov sp, r7 - 80002c8: bd80 pop {r7, pc} - 80002ca: 46c0 nop ; (mov r8, r8) - 80002cc: 20000004 .word 0x20000004 - 80002d0: 20000028 .word 0x20000028 - -080002d4 <HAL_GetTick>: - * @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) -{ - 80002d4: b580 push {r7, lr} - 80002d6: af00 add r7, sp, #0 - return uwTick; - 80002d8: 4b02 ldr r3, [pc, #8] ; (80002e4 <HAL_GetTick+0x10>) - 80002da: 681b ldr r3, [r3, #0] -} - 80002dc: 0018 movs r0, r3 - 80002de: 46bd mov sp, r7 - 80002e0: bd80 pop {r7, pc} - 80002e2: 46c0 nop ; (mov r8, r8) - 80002e4: 20000028 .word 0x20000028 - -080002e8 <HAL_Delay>: - * implementations in user file. - * @param Delay specifies the delay time length, in milliseconds. - * @retval None - */ -__weak void HAL_Delay(uint32_t Delay) -{ - 80002e8: b580 push {r7, lr} - 80002ea: b084 sub sp, #16 - 80002ec: af00 add r7, sp, #0 - 80002ee: 6078 str r0, [r7, #4] - uint32_t tickstart = HAL_GetTick(); - 80002f0: f7ff fff0 bl 80002d4 <HAL_GetTick> - 80002f4: 0003 movs r3, r0 - 80002f6: 60bb str r3, [r7, #8] - uint32_t wait = Delay; - 80002f8: 687b ldr r3, [r7, #4] - 80002fa: 60fb str r3, [r7, #12] - - /* Add a freq to guarantee minimum wait */ - if (wait < HAL_MAX_DELAY) - 80002fc: 68fb ldr r3, [r7, #12] - 80002fe: 3301 adds r3, #1 - 8000300: d005 beq.n 800030e <HAL_Delay+0x26> - { - wait += (uint32_t)(uwTickFreq); - 8000302: 4b09 ldr r3, [pc, #36] ; (8000328 <HAL_Delay+0x40>) - 8000304: 781b ldrb r3, [r3, #0] - 8000306: 001a movs r2, r3 - 8000308: 68fb ldr r3, [r7, #12] - 800030a: 189b adds r3, r3, r2 - 800030c: 60fb str r3, [r7, #12] - } - - while((HAL_GetTick() - tickstart) < wait) - 800030e: 46c0 nop ; (mov r8, r8) - 8000310: f7ff ffe0 bl 80002d4 <HAL_GetTick> - 8000314: 0002 movs r2, r0 - 8000316: 68bb ldr r3, [r7, #8] - 8000318: 1ad3 subs r3, r2, r3 - 800031a: 68fa ldr r2, [r7, #12] - 800031c: 429a cmp r2, r3 - 800031e: d8f7 bhi.n 8000310 <HAL_Delay+0x28> - { - } -} - 8000320: 46c0 nop ; (mov r8, r8) - 8000322: 46bd mov sp, r7 - 8000324: b004 add sp, #16 - 8000326: bd80 pop {r7, pc} - 8000328: 20000004 .word 0x20000004 - -0800032c <__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) -{ - 800032c: b590 push {r4, r7, lr} - 800032e: b083 sub sp, #12 - 8000330: af00 add r7, sp, #0 - 8000332: 0002 movs r2, r0 - 8000334: 6039 str r1, [r7, #0] - 8000336: 1dfb adds r3, r7, #7 - 8000338: 701a strb r2, [r3, #0] - if ((int32_t)(IRQn) >= 0) - 800033a: 1dfb adds r3, r7, #7 - 800033c: 781b ldrb r3, [r3, #0] - 800033e: 2b7f cmp r3, #127 ; 0x7f - 8000340: d828 bhi.n 8000394 <__NVIC_SetPriority+0x68> - { - NVIC->IP[_IP_IDX(IRQn)] = ((uint32_t)(NVIC->IP[_IP_IDX(IRQn)] & ~(0xFFUL << _BIT_SHIFT(IRQn))) | - 8000342: 4a2f ldr r2, [pc, #188] ; (8000400 <__NVIC_SetPriority+0xd4>) - 8000344: 1dfb adds r3, r7, #7 - 8000346: 781b ldrb r3, [r3, #0] - 8000348: b25b sxtb r3, r3 - 800034a: 089b lsrs r3, r3, #2 - 800034c: 33c0 adds r3, #192 ; 0xc0 - 800034e: 009b lsls r3, r3, #2 - 8000350: 589b ldr r3, [r3, r2] - 8000352: 1dfa adds r2, r7, #7 - 8000354: 7812 ldrb r2, [r2, #0] - 8000356: 0011 movs r1, r2 - 8000358: 2203 movs r2, #3 - 800035a: 400a ands r2, r1 - 800035c: 00d2 lsls r2, r2, #3 - 800035e: 21ff movs r1, #255 ; 0xff - 8000360: 4091 lsls r1, r2 - 8000362: 000a movs r2, r1 - 8000364: 43d2 mvns r2, r2 - 8000366: 401a ands r2, r3 - 8000368: 0011 movs r1, r2 - (((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL) << _BIT_SHIFT(IRQn))); - 800036a: 683b ldr r3, [r7, #0] - 800036c: 019b lsls r3, r3, #6 - 800036e: 22ff movs r2, #255 ; 0xff - 8000370: 401a ands r2, r3 - 8000372: 1dfb adds r3, r7, #7 - 8000374: 781b ldrb r3, [r3, #0] - 8000376: 0018 movs r0, r3 - 8000378: 2303 movs r3, #3 - 800037a: 4003 ands r3, r0 - 800037c: 00db lsls r3, r3, #3 - 800037e: 409a lsls r2, r3 - NVIC->IP[_IP_IDX(IRQn)] = ((uint32_t)(NVIC->IP[_IP_IDX(IRQn)] & ~(0xFFUL << _BIT_SHIFT(IRQn))) | - 8000380: 481f ldr r0, [pc, #124] ; (8000400 <__NVIC_SetPriority+0xd4>) - 8000382: 1dfb adds r3, r7, #7 - 8000384: 781b ldrb r3, [r3, #0] - 8000386: b25b sxtb r3, r3 - 8000388: 089b lsrs r3, r3, #2 - 800038a: 430a orrs r2, r1 - 800038c: 33c0 adds r3, #192 ; 0xc0 - 800038e: 009b lsls r3, r3, #2 - 8000390: 501a str r2, [r3, r0] - else - { - SCB->SHP[_SHP_IDX(IRQn)] = ((uint32_t)(SCB->SHP[_SHP_IDX(IRQn)] & ~(0xFFUL << _BIT_SHIFT(IRQn))) | - (((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL) << _BIT_SHIFT(IRQn))); - } -} - 8000392: e031 b.n 80003f8 <__NVIC_SetPriority+0xcc> - SCB->SHP[_SHP_IDX(IRQn)] = ((uint32_t)(SCB->SHP[_SHP_IDX(IRQn)] & ~(0xFFUL << _BIT_SHIFT(IRQn))) | - 8000394: 4a1b ldr r2, [pc, #108] ; (8000404 <__NVIC_SetPriority+0xd8>) - 8000396: 1dfb adds r3, r7, #7 - 8000398: 781b ldrb r3, [r3, #0] - 800039a: 0019 movs r1, r3 - 800039c: 230f movs r3, #15 - 800039e: 400b ands r3, r1 - 80003a0: 3b08 subs r3, #8 - 80003a2: 089b lsrs r3, r3, #2 - 80003a4: 3306 adds r3, #6 - 80003a6: 009b lsls r3, r3, #2 - 80003a8: 18d3 adds r3, r2, r3 - 80003aa: 3304 adds r3, #4 - 80003ac: 681b ldr r3, [r3, #0] - 80003ae: 1dfa adds r2, r7, #7 - 80003b0: 7812 ldrb r2, [r2, #0] - 80003b2: 0011 movs r1, r2 - 80003b4: 2203 movs r2, #3 - 80003b6: 400a ands r2, r1 - 80003b8: 00d2 lsls r2, r2, #3 - 80003ba: 21ff movs r1, #255 ; 0xff - 80003bc: 4091 lsls r1, r2 - 80003be: 000a movs r2, r1 - 80003c0: 43d2 mvns r2, r2 - 80003c2: 401a ands r2, r3 - 80003c4: 0011 movs r1, r2 - (((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL) << _BIT_SHIFT(IRQn))); - 80003c6: 683b ldr r3, [r7, #0] - 80003c8: 019b lsls r3, r3, #6 - 80003ca: 22ff movs r2, #255 ; 0xff - 80003cc: 401a ands r2, r3 - 80003ce: 1dfb adds r3, r7, #7 - 80003d0: 781b ldrb r3, [r3, #0] - 80003d2: 0018 movs r0, r3 - 80003d4: 2303 movs r3, #3 - 80003d6: 4003 ands r3, r0 - 80003d8: 00db lsls r3, r3, #3 - 80003da: 409a lsls r2, r3 - SCB->SHP[_SHP_IDX(IRQn)] = ((uint32_t)(SCB->SHP[_SHP_IDX(IRQn)] & ~(0xFFUL << _BIT_SHIFT(IRQn))) | - 80003dc: 4809 ldr r0, [pc, #36] ; (8000404 <__NVIC_SetPriority+0xd8>) - 80003de: 1dfb adds r3, r7, #7 - 80003e0: 781b ldrb r3, [r3, #0] - 80003e2: 001c movs r4, r3 - 80003e4: 230f movs r3, #15 - 80003e6: 4023 ands r3, r4 - 80003e8: 3b08 subs r3, #8 - 80003ea: 089b lsrs r3, r3, #2 - 80003ec: 430a orrs r2, r1 - 80003ee: 3306 adds r3, #6 - 80003f0: 009b lsls r3, r3, #2 - 80003f2: 18c3 adds r3, r0, r3 - 80003f4: 3304 adds r3, #4 - 80003f6: 601a str r2, [r3, #0] -} - 80003f8: 46c0 nop ; (mov r8, r8) - 80003fa: 46bd mov sp, r7 - 80003fc: b003 add sp, #12 - 80003fe: bd90 pop {r4, r7, pc} - 8000400: e000e100 .word 0xe000e100 - 8000404: e000ed00 .word 0xe000ed00 - -08000408 <SysTick_Config>: - \note When the variable <b>__Vendor_SysTickConfig</b> is set to 1, then the - function <b>SysTick_Config</b> is not included. In this case, the file <b><i>device</i>.h</b> - must contain a vendor-specific implementation of this function. - */ -__STATIC_INLINE uint32_t SysTick_Config(uint32_t ticks) -{ - 8000408: b580 push {r7, lr} - 800040a: b082 sub sp, #8 - 800040c: af00 add r7, sp, #0 - 800040e: 6078 str r0, [r7, #4] - if ((ticks - 1UL) > SysTick_LOAD_RELOAD_Msk) - 8000410: 687b ldr r3, [r7, #4] - 8000412: 3b01 subs r3, #1 - 8000414: 4a0c ldr r2, [pc, #48] ; (8000448 <SysTick_Config+0x40>) - 8000416: 4293 cmp r3, r2 - 8000418: d901 bls.n 800041e <SysTick_Config+0x16> - { - return (1UL); /* Reload value impossible */ - 800041a: 2301 movs r3, #1 - 800041c: e010 b.n 8000440 <SysTick_Config+0x38> - } - - SysTick->LOAD = (uint32_t)(ticks - 1UL); /* set reload register */ - 800041e: 4b0b ldr r3, [pc, #44] ; (800044c <SysTick_Config+0x44>) - 8000420: 687a ldr r2, [r7, #4] - 8000422: 3a01 subs r2, #1 - 8000424: 605a str r2, [r3, #4] - NVIC_SetPriority (SysTick_IRQn, (1UL << __NVIC_PRIO_BITS) - 1UL); /* set Priority for Systick Interrupt */ - 8000426: 2301 movs r3, #1 - 8000428: 425b negs r3, r3 - 800042a: 2103 movs r1, #3 - 800042c: 0018 movs r0, r3 - 800042e: f7ff ff7d bl 800032c <__NVIC_SetPriority> - SysTick->VAL = 0UL; /* Load the SysTick Counter Value */ - 8000432: 4b06 ldr r3, [pc, #24] ; (800044c <SysTick_Config+0x44>) - 8000434: 2200 movs r2, #0 - 8000436: 609a str r2, [r3, #8] - SysTick->CTRL = SysTick_CTRL_CLKSOURCE_Msk | - 8000438: 4b04 ldr r3, [pc, #16] ; (800044c <SysTick_Config+0x44>) - 800043a: 2207 movs r2, #7 - 800043c: 601a str r2, [r3, #0] - SysTick_CTRL_TICKINT_Msk | - SysTick_CTRL_ENABLE_Msk; /* Enable SysTick IRQ and SysTick Timer */ - return (0UL); /* Function successful */ - 800043e: 2300 movs r3, #0 -} - 8000440: 0018 movs r0, r3 - 8000442: 46bd mov sp, r7 - 8000444: b002 add sp, #8 - 8000446: bd80 pop {r7, pc} - 8000448: 00ffffff .word 0x00ffffff - 800044c: e000e010 .word 0xe000e010 - -08000450 <HAL_NVIC_SetPriority>: - * with stm32f0xx devices, this parameter is a dummy value and it is ignored, because - * no subpriority supported in Cortex M0 based products. - * @retval None - */ -void HAL_NVIC_SetPriority(IRQn_Type IRQn, uint32_t PreemptPriority, uint32_t SubPriority) -{ - 8000450: b580 push {r7, lr} - 8000452: b084 sub sp, #16 - 8000454: af00 add r7, sp, #0 - 8000456: 60b9 str r1, [r7, #8] - 8000458: 607a str r2, [r7, #4] - 800045a: 210f movs r1, #15 - 800045c: 187b adds r3, r7, r1 - 800045e: 1c02 adds r2, r0, #0 - 8000460: 701a strb r2, [r3, #0] - /* Check the parameters */ - assert_param(IS_NVIC_PREEMPTION_PRIORITY(PreemptPriority)); - NVIC_SetPriority(IRQn,PreemptPriority); - 8000462: 68ba ldr r2, [r7, #8] - 8000464: 187b adds r3, r7, r1 - 8000466: 781b ldrb r3, [r3, #0] - 8000468: b25b sxtb r3, r3 - 800046a: 0011 movs r1, r2 - 800046c: 0018 movs r0, r3 - 800046e: f7ff ff5d bl 800032c <__NVIC_SetPriority> -} - 8000472: 46c0 nop ; (mov r8, r8) - 8000474: 46bd mov sp, r7 - 8000476: b004 add sp, #16 - 8000478: bd80 pop {r7, pc} - -0800047a <HAL_SYSTICK_Config>: - * @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) -{ - 800047a: b580 push {r7, lr} - 800047c: b082 sub sp, #8 - 800047e: af00 add r7, sp, #0 - 8000480: 6078 str r0, [r7, #4] - return SysTick_Config(TicksNumb); - 8000482: 687b ldr r3, [r7, #4] - 8000484: 0018 movs r0, r3 - 8000486: f7ff ffbf bl 8000408 <SysTick_Config> - 800048a: 0003 movs r3, r0 -} - 800048c: 0018 movs r0, r3 - 800048e: 46bd mov sp, r7 - 8000490: b002 add sp, #8 - 8000492: bd80 pop {r7, pc} - -08000494 <HAL_GPIO_Init>: - * @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) -{ - 8000494: b580 push {r7, lr} - 8000496: b086 sub sp, #24 - 8000498: af00 add r7, sp, #0 - 800049a: 6078 str r0, [r7, #4] - 800049c: 6039 str r1, [r7, #0] - uint32_t position = 0x00u; - 800049e: 2300 movs r3, #0 - 80004a0: 617b str r3, [r7, #20] - assert_param(IS_GPIO_PIN(GPIO_Init->Pin)); - assert_param(IS_GPIO_MODE(GPIO_Init->Mode)); - assert_param(IS_GPIO_PULL(GPIO_Init->Pull)); - - /* Configure the port pins */ - while (((GPIO_Init->Pin) >> position) != 0x00u) - 80004a2: e155 b.n 8000750 <HAL_GPIO_Init+0x2bc> - { - /* Get current io position */ - iocurrent = (GPIO_Init->Pin) & (1uL << position); - 80004a4: 683b ldr r3, [r7, #0] - 80004a6: 681b ldr r3, [r3, #0] - 80004a8: 2101 movs r1, #1 - 80004aa: 697a ldr r2, [r7, #20] - 80004ac: 4091 lsls r1, r2 - 80004ae: 000a movs r2, r1 - 80004b0: 4013 ands r3, r2 - 80004b2: 60fb str r3, [r7, #12] - - if (iocurrent != 0x00u) - 80004b4: 68fb ldr r3, [r7, #12] - 80004b6: 2b00 cmp r3, #0 - 80004b8: d100 bne.n 80004bc <HAL_GPIO_Init+0x28> - 80004ba: e146 b.n 800074a <HAL_GPIO_Init+0x2b6> - { - /*--------------------- GPIO Mode Configuration ------------------------*/ - /* In case of Alternate function mode selection */ - if((GPIO_Init->Mode == GPIO_MODE_AF_PP) || (GPIO_Init->Mode == GPIO_MODE_AF_OD)) - 80004bc: 683b ldr r3, [r7, #0] - 80004be: 685b ldr r3, [r3, #4] - 80004c0: 2b02 cmp r3, #2 - 80004c2: d003 beq.n 80004cc <HAL_GPIO_Init+0x38> - 80004c4: 683b ldr r3, [r7, #0] - 80004c6: 685b ldr r3, [r3, #4] - 80004c8: 2b12 cmp r3, #18 - 80004ca: d123 bne.n 8000514 <HAL_GPIO_Init+0x80> - /* Check the Alternate function parameters */ - assert_param(IS_GPIO_AF_INSTANCE(GPIOx)); - assert_param(IS_GPIO_AF(GPIO_Init->Alternate)); - - /* Configure Alternate function mapped with the current IO */ - temp = GPIOx->AFR[position >> 3u]; - 80004cc: 697b ldr r3, [r7, #20] - 80004ce: 08da lsrs r2, r3, #3 - 80004d0: 687b ldr r3, [r7, #4] - 80004d2: 3208 adds r2, #8 - 80004d4: 0092 lsls r2, r2, #2 - 80004d6: 58d3 ldr r3, [r2, r3] - 80004d8: 613b str r3, [r7, #16] - temp &= ~(0xFu << ((position & 0x07u) * 4u)); - 80004da: 697b ldr r3, [r7, #20] - 80004dc: 2207 movs r2, #7 - 80004de: 4013 ands r3, r2 - 80004e0: 009b lsls r3, r3, #2 - 80004e2: 220f movs r2, #15 - 80004e4: 409a lsls r2, r3 - 80004e6: 0013 movs r3, r2 - 80004e8: 43da mvns r2, r3 - 80004ea: 693b ldr r3, [r7, #16] - 80004ec: 4013 ands r3, r2 - 80004ee: 613b str r3, [r7, #16] - temp |= ((GPIO_Init->Alternate) << ((position & 0x07u) * 4u)); - 80004f0: 683b ldr r3, [r7, #0] - 80004f2: 691a ldr r2, [r3, #16] - 80004f4: 697b ldr r3, [r7, #20] - 80004f6: 2107 movs r1, #7 - 80004f8: 400b ands r3, r1 - 80004fa: 009b lsls r3, r3, #2 - 80004fc: 409a lsls r2, r3 - 80004fe: 0013 movs r3, r2 - 8000500: 693a ldr r2, [r7, #16] - 8000502: 4313 orrs r3, r2 - 8000504: 613b str r3, [r7, #16] - GPIOx->AFR[position >> 3u] = temp; - 8000506: 697b ldr r3, [r7, #20] - 8000508: 08da lsrs r2, r3, #3 - 800050a: 687b ldr r3, [r7, #4] - 800050c: 3208 adds r2, #8 - 800050e: 0092 lsls r2, r2, #2 - 8000510: 6939 ldr r1, [r7, #16] - 8000512: 50d1 str r1, [r2, r3] - } - - /* Configure IO Direction mode (Input, Output, Alternate or Analog) */ - temp = GPIOx->MODER; - 8000514: 687b ldr r3, [r7, #4] - 8000516: 681b ldr r3, [r3, #0] - 8000518: 613b str r3, [r7, #16] - temp &= ~(GPIO_MODER_MODER0 << (position * 2u)); - 800051a: 697b ldr r3, [r7, #20] - 800051c: 005b lsls r3, r3, #1 - 800051e: 2203 movs r2, #3 - 8000520: 409a lsls r2, r3 - 8000522: 0013 movs r3, r2 - 8000524: 43da mvns r2, r3 - 8000526: 693b ldr r3, [r7, #16] - 8000528: 4013 ands r3, r2 - 800052a: 613b str r3, [r7, #16] - temp |= ((GPIO_Init->Mode & GPIO_MODE) << (position * 2u)); - 800052c: 683b ldr r3, [r7, #0] - 800052e: 685b ldr r3, [r3, #4] - 8000530: 2203 movs r2, #3 - 8000532: 401a ands r2, r3 - 8000534: 697b ldr r3, [r7, #20] - 8000536: 005b lsls r3, r3, #1 - 8000538: 409a lsls r2, r3 - 800053a: 0013 movs r3, r2 - 800053c: 693a ldr r2, [r7, #16] - 800053e: 4313 orrs r3, r2 - 8000540: 613b str r3, [r7, #16] - GPIOx->MODER = temp; - 8000542: 687b ldr r3, [r7, #4] - 8000544: 693a ldr r2, [r7, #16] - 8000546: 601a str r2, [r3, #0] - - /* In case of Output or Alternate function mode selection */ - if((GPIO_Init->Mode == GPIO_MODE_OUTPUT_PP) || (GPIO_Init->Mode == GPIO_MODE_AF_PP) || - 8000548: 683b ldr r3, [r7, #0] - 800054a: 685b ldr r3, [r3, #4] - 800054c: 2b01 cmp r3, #1 - 800054e: d00b beq.n 8000568 <HAL_GPIO_Init+0xd4> - 8000550: 683b ldr r3, [r7, #0] - 8000552: 685b ldr r3, [r3, #4] - 8000554: 2b02 cmp r3, #2 - 8000556: d007 beq.n 8000568 <HAL_GPIO_Init+0xd4> - (GPIO_Init->Mode == GPIO_MODE_OUTPUT_OD) || (GPIO_Init->Mode == GPIO_MODE_AF_OD)) - 8000558: 683b ldr r3, [r7, #0] - 800055a: 685b ldr r3, [r3, #4] - if((GPIO_Init->Mode == GPIO_MODE_OUTPUT_PP) || (GPIO_Init->Mode == GPIO_MODE_AF_PP) || - 800055c: 2b11 cmp r3, #17 - 800055e: d003 beq.n 8000568 <HAL_GPIO_Init+0xd4> - (GPIO_Init->Mode == GPIO_MODE_OUTPUT_OD) || (GPIO_Init->Mode == GPIO_MODE_AF_OD)) - 8000560: 683b ldr r3, [r7, #0] - 8000562: 685b ldr r3, [r3, #4] - 8000564: 2b12 cmp r3, #18 - 8000566: d130 bne.n 80005ca <HAL_GPIO_Init+0x136> - { - /* Check the Speed parameter */ - assert_param(IS_GPIO_SPEED(GPIO_Init->Speed)); - /* Configure the IO Speed */ - temp = GPIOx->OSPEEDR; - 8000568: 687b ldr r3, [r7, #4] - 800056a: 689b ldr r3, [r3, #8] - 800056c: 613b str r3, [r7, #16] - temp &= ~(GPIO_OSPEEDER_OSPEEDR0 << (position * 2u)); - 800056e: 697b ldr r3, [r7, #20] - 8000570: 005b lsls r3, r3, #1 - 8000572: 2203 movs r2, #3 - 8000574: 409a lsls r2, r3 - 8000576: 0013 movs r3, r2 - 8000578: 43da mvns r2, r3 - 800057a: 693b ldr r3, [r7, #16] - 800057c: 4013 ands r3, r2 - 800057e: 613b str r3, [r7, #16] - temp |= (GPIO_Init->Speed << (position * 2u)); - 8000580: 683b ldr r3, [r7, #0] - 8000582: 68da ldr r2, [r3, #12] - 8000584: 697b ldr r3, [r7, #20] - 8000586: 005b lsls r3, r3, #1 - 8000588: 409a lsls r2, r3 - 800058a: 0013 movs r3, r2 - 800058c: 693a ldr r2, [r7, #16] - 800058e: 4313 orrs r3, r2 - 8000590: 613b str r3, [r7, #16] - GPIOx->OSPEEDR = temp; - 8000592: 687b ldr r3, [r7, #4] - 8000594: 693a ldr r2, [r7, #16] - 8000596: 609a str r2, [r3, #8] - - /* Configure the IO Output Type */ - temp = GPIOx->OTYPER; - 8000598: 687b ldr r3, [r7, #4] - 800059a: 685b ldr r3, [r3, #4] - 800059c: 613b str r3, [r7, #16] - temp &= ~(GPIO_OTYPER_OT_0 << position) ; - 800059e: 2201 movs r2, #1 - 80005a0: 697b ldr r3, [r7, #20] - 80005a2: 409a lsls r2, r3 - 80005a4: 0013 movs r3, r2 - 80005a6: 43da mvns r2, r3 - 80005a8: 693b ldr r3, [r7, #16] - 80005aa: 4013 ands r3, r2 - 80005ac: 613b str r3, [r7, #16] - temp |= (((GPIO_Init->Mode & GPIO_OUTPUT_TYPE) >> 4u) << position); - 80005ae: 683b ldr r3, [r7, #0] - 80005b0: 685b ldr r3, [r3, #4] - 80005b2: 091b lsrs r3, r3, #4 - 80005b4: 2201 movs r2, #1 - 80005b6: 401a ands r2, r3 - 80005b8: 697b ldr r3, [r7, #20] - 80005ba: 409a lsls r2, r3 - 80005bc: 0013 movs r3, r2 - 80005be: 693a ldr r2, [r7, #16] - 80005c0: 4313 orrs r3, r2 - 80005c2: 613b str r3, [r7, #16] - GPIOx->OTYPER = temp; - 80005c4: 687b ldr r3, [r7, #4] - 80005c6: 693a ldr r2, [r7, #16] - 80005c8: 605a str r2, [r3, #4] - } - - /* Activate the Pull-up or Pull down resistor for the current IO */ - temp = GPIOx->PUPDR; - 80005ca: 687b ldr r3, [r7, #4] - 80005cc: 68db ldr r3, [r3, #12] - 80005ce: 613b str r3, [r7, #16] - temp &= ~(GPIO_PUPDR_PUPDR0 << (position * 2u)); - 80005d0: 697b ldr r3, [r7, #20] - 80005d2: 005b lsls r3, r3, #1 - 80005d4: 2203 movs r2, #3 - 80005d6: 409a lsls r2, r3 - 80005d8: 0013 movs r3, r2 - 80005da: 43da mvns r2, r3 - 80005dc: 693b ldr r3, [r7, #16] - 80005de: 4013 ands r3, r2 - 80005e0: 613b str r3, [r7, #16] - temp |= ((GPIO_Init->Pull) << (position * 2u)); - 80005e2: 683b ldr r3, [r7, #0] - 80005e4: 689a ldr r2, [r3, #8] - 80005e6: 697b ldr r3, [r7, #20] - 80005e8: 005b lsls r3, r3, #1 - 80005ea: 409a lsls r2, r3 - 80005ec: 0013 movs r3, r2 - 80005ee: 693a ldr r2, [r7, #16] - 80005f0: 4313 orrs r3, r2 - 80005f2: 613b str r3, [r7, #16] - GPIOx->PUPDR = temp; - 80005f4: 687b ldr r3, [r7, #4] - 80005f6: 693a ldr r2, [r7, #16] - 80005f8: 60da str r2, [r3, #12] - - /*--------------------- EXTI Mode Configuration ------------------------*/ - /* Configure the External Interrupt or event for the current IO */ - if((GPIO_Init->Mode & EXTI_MODE) == EXTI_MODE) - 80005fa: 683b ldr r3, [r7, #0] - 80005fc: 685a ldr r2, [r3, #4] - 80005fe: 2380 movs r3, #128 ; 0x80 - 8000600: 055b lsls r3, r3, #21 - 8000602: 4013 ands r3, r2 - 8000604: d100 bne.n 8000608 <HAL_GPIO_Init+0x174> - 8000606: e0a0 b.n 800074a <HAL_GPIO_Init+0x2b6> - { - /* Enable SYSCFG Clock */ - __HAL_RCC_SYSCFG_CLK_ENABLE(); - 8000608: 4b57 ldr r3, [pc, #348] ; (8000768 <HAL_GPIO_Init+0x2d4>) - 800060a: 699a ldr r2, [r3, #24] - 800060c: 4b56 ldr r3, [pc, #344] ; (8000768 <HAL_GPIO_Init+0x2d4>) - 800060e: 2101 movs r1, #1 - 8000610: 430a orrs r2, r1 - 8000612: 619a str r2, [r3, #24] - 8000614: 4b54 ldr r3, [pc, #336] ; (8000768 <HAL_GPIO_Init+0x2d4>) - 8000616: 699b ldr r3, [r3, #24] - 8000618: 2201 movs r2, #1 - 800061a: 4013 ands r3, r2 - 800061c: 60bb str r3, [r7, #8] - 800061e: 68bb ldr r3, [r7, #8] - - temp = SYSCFG->EXTICR[position >> 2u]; - 8000620: 4a52 ldr r2, [pc, #328] ; (800076c <HAL_GPIO_Init+0x2d8>) - 8000622: 697b ldr r3, [r7, #20] - 8000624: 089b lsrs r3, r3, #2 - 8000626: 3302 adds r3, #2 - 8000628: 009b lsls r3, r3, #2 - 800062a: 589b ldr r3, [r3, r2] - 800062c: 613b str r3, [r7, #16] - temp &= ~(0x0FuL << (4u * (position & 0x03u))); - 800062e: 697b ldr r3, [r7, #20] - 8000630: 2203 movs r2, #3 - 8000632: 4013 ands r3, r2 - 8000634: 009b lsls r3, r3, #2 - 8000636: 220f movs r2, #15 - 8000638: 409a lsls r2, r3 - 800063a: 0013 movs r3, r2 - 800063c: 43da mvns r2, r3 - 800063e: 693b ldr r3, [r7, #16] - 8000640: 4013 ands r3, r2 - 8000642: 613b str r3, [r7, #16] - temp |= (GPIO_GET_INDEX(GPIOx) << (4u * (position & 0x03u))); - 8000644: 687a ldr r2, [r7, #4] - 8000646: 2390 movs r3, #144 ; 0x90 - 8000648: 05db lsls r3, r3, #23 - 800064a: 429a cmp r2, r3 - 800064c: d019 beq.n 8000682 <HAL_GPIO_Init+0x1ee> - 800064e: 687b ldr r3, [r7, #4] - 8000650: 4a47 ldr r2, [pc, #284] ; (8000770 <HAL_GPIO_Init+0x2dc>) - 8000652: 4293 cmp r3, r2 - 8000654: d013 beq.n 800067e <HAL_GPIO_Init+0x1ea> - 8000656: 687b ldr r3, [r7, #4] - 8000658: 4a46 ldr r2, [pc, #280] ; (8000774 <HAL_GPIO_Init+0x2e0>) - 800065a: 4293 cmp r3, r2 - 800065c: d00d beq.n 800067a <HAL_GPIO_Init+0x1e6> - 800065e: 687b ldr r3, [r7, #4] - 8000660: 4a45 ldr r2, [pc, #276] ; (8000778 <HAL_GPIO_Init+0x2e4>) - 8000662: 4293 cmp r3, r2 - 8000664: d007 beq.n 8000676 <HAL_GPIO_Init+0x1e2> - 8000666: 687b ldr r3, [r7, #4] - 8000668: 4a44 ldr r2, [pc, #272] ; (800077c <HAL_GPIO_Init+0x2e8>) - 800066a: 4293 cmp r3, r2 - 800066c: d101 bne.n 8000672 <HAL_GPIO_Init+0x1de> - 800066e: 2304 movs r3, #4 - 8000670: e008 b.n 8000684 <HAL_GPIO_Init+0x1f0> - 8000672: 2305 movs r3, #5 - 8000674: e006 b.n 8000684 <HAL_GPIO_Init+0x1f0> - 8000676: 2303 movs r3, #3 - 8000678: e004 b.n 8000684 <HAL_GPIO_Init+0x1f0> - 800067a: 2302 movs r3, #2 - 800067c: e002 b.n 8000684 <HAL_GPIO_Init+0x1f0> - 800067e: 2301 movs r3, #1 - 8000680: e000 b.n 8000684 <HAL_GPIO_Init+0x1f0> - 8000682: 2300 movs r3, #0 - 8000684: 697a ldr r2, [r7, #20] - 8000686: 2103 movs r1, #3 - 8000688: 400a ands r2, r1 - 800068a: 0092 lsls r2, r2, #2 - 800068c: 4093 lsls r3, r2 - 800068e: 693a ldr r2, [r7, #16] - 8000690: 4313 orrs r3, r2 - 8000692: 613b str r3, [r7, #16] - SYSCFG->EXTICR[position >> 2u] = temp; - 8000694: 4935 ldr r1, [pc, #212] ; (800076c <HAL_GPIO_Init+0x2d8>) - 8000696: 697b ldr r3, [r7, #20] - 8000698: 089b lsrs r3, r3, #2 - 800069a: 3302 adds r3, #2 - 800069c: 009b lsls r3, r3, #2 - 800069e: 693a ldr r2, [r7, #16] - 80006a0: 505a str r2, [r3, r1] - - /* Clear EXTI line configuration */ - temp = EXTI->IMR; - 80006a2: 4b37 ldr r3, [pc, #220] ; (8000780 <HAL_GPIO_Init+0x2ec>) - 80006a4: 681b ldr r3, [r3, #0] - 80006a6: 613b str r3, [r7, #16] - temp &= ~(iocurrent); - 80006a8: 68fb ldr r3, [r7, #12] - 80006aa: 43da mvns r2, r3 - 80006ac: 693b ldr r3, [r7, #16] - 80006ae: 4013 ands r3, r2 - 80006b0: 613b str r3, [r7, #16] - if((GPIO_Init->Mode & GPIO_MODE_IT) == GPIO_MODE_IT) - 80006b2: 683b ldr r3, [r7, #0] - 80006b4: 685a ldr r2, [r3, #4] - 80006b6: 2380 movs r3, #128 ; 0x80 - 80006b8: 025b lsls r3, r3, #9 - 80006ba: 4013 ands r3, r2 - 80006bc: d003 beq.n 80006c6 <HAL_GPIO_Init+0x232> - { - temp |= iocurrent; - 80006be: 693a ldr r2, [r7, #16] - 80006c0: 68fb ldr r3, [r7, #12] - 80006c2: 4313 orrs r3, r2 - 80006c4: 613b str r3, [r7, #16] - } - EXTI->IMR = temp; - 80006c6: 4b2e ldr r3, [pc, #184] ; (8000780 <HAL_GPIO_Init+0x2ec>) - 80006c8: 693a ldr r2, [r7, #16] - 80006ca: 601a str r2, [r3, #0] - - temp = EXTI->EMR; - 80006cc: 4b2c ldr r3, [pc, #176] ; (8000780 <HAL_GPIO_Init+0x2ec>) - 80006ce: 685b ldr r3, [r3, #4] - 80006d0: 613b str r3, [r7, #16] - temp &= ~(iocurrent); - 80006d2: 68fb ldr r3, [r7, #12] - 80006d4: 43da mvns r2, r3 - 80006d6: 693b ldr r3, [r7, #16] - 80006d8: 4013 ands r3, r2 - 80006da: 613b str r3, [r7, #16] - if((GPIO_Init->Mode & GPIO_MODE_EVT) == GPIO_MODE_EVT) - 80006dc: 683b ldr r3, [r7, #0] - 80006de: 685a ldr r2, [r3, #4] - 80006e0: 2380 movs r3, #128 ; 0x80 - 80006e2: 029b lsls r3, r3, #10 - 80006e4: 4013 ands r3, r2 - 80006e6: d003 beq.n 80006f0 <HAL_GPIO_Init+0x25c> - { - temp |= iocurrent; - 80006e8: 693a ldr r2, [r7, #16] - 80006ea: 68fb ldr r3, [r7, #12] - 80006ec: 4313 orrs r3, r2 - 80006ee: 613b str r3, [r7, #16] - } - EXTI->EMR = temp; - 80006f0: 4b23 ldr r3, [pc, #140] ; (8000780 <HAL_GPIO_Init+0x2ec>) - 80006f2: 693a ldr r2, [r7, #16] - 80006f4: 605a str r2, [r3, #4] - - /* Clear Rising Falling edge configuration */ - temp = EXTI->RTSR; - 80006f6: 4b22 ldr r3, [pc, #136] ; (8000780 <HAL_GPIO_Init+0x2ec>) - 80006f8: 689b ldr r3, [r3, #8] - 80006fa: 613b str r3, [r7, #16] - temp &= ~(iocurrent); - 80006fc: 68fb ldr r3, [r7, #12] - 80006fe: 43da mvns r2, r3 - 8000700: 693b ldr r3, [r7, #16] - 8000702: 4013 ands r3, r2 - 8000704: 613b str r3, [r7, #16] - if((GPIO_Init->Mode & RISING_EDGE) == RISING_EDGE) - 8000706: 683b ldr r3, [r7, #0] - 8000708: 685a ldr r2, [r3, #4] - 800070a: 2380 movs r3, #128 ; 0x80 - 800070c: 035b lsls r3, r3, #13 - 800070e: 4013 ands r3, r2 - 8000710: d003 beq.n 800071a <HAL_GPIO_Init+0x286> - { - temp |= iocurrent; - 8000712: 693a ldr r2, [r7, #16] - 8000714: 68fb ldr r3, [r7, #12] - 8000716: 4313 orrs r3, r2 - 8000718: 613b str r3, [r7, #16] - } - EXTI->RTSR = temp; - 800071a: 4b19 ldr r3, [pc, #100] ; (8000780 <HAL_GPIO_Init+0x2ec>) - 800071c: 693a ldr r2, [r7, #16] - 800071e: 609a str r2, [r3, #8] - - temp = EXTI->FTSR; - 8000720: 4b17 ldr r3, [pc, #92] ; (8000780 <HAL_GPIO_Init+0x2ec>) - 8000722: 68db ldr r3, [r3, #12] - 8000724: 613b str r3, [r7, #16] - temp &= ~(iocurrent); - 8000726: 68fb ldr r3, [r7, #12] - 8000728: 43da mvns r2, r3 - 800072a: 693b ldr r3, [r7, #16] - 800072c: 4013 ands r3, r2 - 800072e: 613b str r3, [r7, #16] - if((GPIO_Init->Mode & FALLING_EDGE) == FALLING_EDGE) - 8000730: 683b ldr r3, [r7, #0] - 8000732: 685a ldr r2, [r3, #4] - 8000734: 2380 movs r3, #128 ; 0x80 - 8000736: 039b lsls r3, r3, #14 - 8000738: 4013 ands r3, r2 - 800073a: d003 beq.n 8000744 <HAL_GPIO_Init+0x2b0> - { - temp |= iocurrent; - 800073c: 693a ldr r2, [r7, #16] - 800073e: 68fb ldr r3, [r7, #12] - 8000740: 4313 orrs r3, r2 - 8000742: 613b str r3, [r7, #16] - } - EXTI->FTSR = temp; - 8000744: 4b0e ldr r3, [pc, #56] ; (8000780 <HAL_GPIO_Init+0x2ec>) - 8000746: 693a ldr r2, [r7, #16] - 8000748: 60da str r2, [r3, #12] - } - } - - position++; - 800074a: 697b ldr r3, [r7, #20] - 800074c: 3301 adds r3, #1 - 800074e: 617b str r3, [r7, #20] - while (((GPIO_Init->Pin) >> position) != 0x00u) - 8000750: 683b ldr r3, [r7, #0] - 8000752: 681a ldr r2, [r3, #0] - 8000754: 697b ldr r3, [r7, #20] - 8000756: 40da lsrs r2, r3 - 8000758: 1e13 subs r3, r2, #0 - 800075a: d000 beq.n 800075e <HAL_GPIO_Init+0x2ca> - 800075c: e6a2 b.n 80004a4 <HAL_GPIO_Init+0x10> - } -} - 800075e: 46c0 nop ; (mov r8, r8) - 8000760: 46bd mov sp, r7 - 8000762: b006 add sp, #24 - 8000764: bd80 pop {r7, pc} - 8000766: 46c0 nop ; (mov r8, r8) - 8000768: 40021000 .word 0x40021000 - 800076c: 40010000 .word 0x40010000 - 8000770: 48000400 .word 0x48000400 - 8000774: 48000800 .word 0x48000800 - 8000778: 48000c00 .word 0x48000c00 - 800077c: 48001000 .word 0x48001000 - 8000780: 40010400 .word 0x40010400 - -08000784 <HAL_GPIO_WritePin>: - * @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) -{ - 8000784: b580 push {r7, lr} - 8000786: b082 sub sp, #8 - 8000788: af00 add r7, sp, #0 - 800078a: 6078 str r0, [r7, #4] - 800078c: 0008 movs r0, r1 - 800078e: 0011 movs r1, r2 - 8000790: 1cbb adds r3, r7, #2 - 8000792: 1c02 adds r2, r0, #0 - 8000794: 801a strh r2, [r3, #0] - 8000796: 1c7b adds r3, r7, #1 - 8000798: 1c0a adds r2, r1, #0 - 800079a: 701a strb r2, [r3, #0] - /* Check the parameters */ - assert_param(IS_GPIO_PIN(GPIO_Pin)); - assert_param(IS_GPIO_PIN_ACTION(PinState)); - - if (PinState != GPIO_PIN_RESET) - 800079c: 1c7b adds r3, r7, #1 - 800079e: 781b ldrb r3, [r3, #0] - 80007a0: 2b00 cmp r3, #0 - 80007a2: d004 beq.n 80007ae <HAL_GPIO_WritePin+0x2a> - { - GPIOx->BSRR = (uint32_t)GPIO_Pin; - 80007a4: 1cbb adds r3, r7, #2 - 80007a6: 881a ldrh r2, [r3, #0] - 80007a8: 687b ldr r3, [r7, #4] - 80007aa: 619a str r2, [r3, #24] - } - else - { - GPIOx->BRR = (uint32_t)GPIO_Pin; - } -} - 80007ac: e003 b.n 80007b6 <HAL_GPIO_WritePin+0x32> - GPIOx->BRR = (uint32_t)GPIO_Pin; - 80007ae: 1cbb adds r3, r7, #2 - 80007b0: 881a ldrh r2, [r3, #0] - 80007b2: 687b ldr r3, [r7, #4] - 80007b4: 629a str r2, [r3, #40] ; 0x28 -} - 80007b6: 46c0 nop ; (mov r8, r8) - 80007b8: 46bd mov sp, r7 - 80007ba: b002 add sp, #8 - 80007bc: bd80 pop {r7, pc} - ... - -080007c0 <HAL_RCC_OscConfig>: - * 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) -{ - 80007c0: b580 push {r7, lr} - 80007c2: b088 sub sp, #32 - 80007c4: af00 add r7, sp, #0 - 80007c6: 6078 str r0, [r7, #4] - uint32_t tickstart; - uint32_t pll_config; - uint32_t pll_config2; - - /* Check Null pointer */ - if(RCC_OscInitStruct == NULL) - 80007c8: 687b ldr r3, [r7, #4] - 80007ca: 2b00 cmp r3, #0 - 80007cc: d102 bne.n 80007d4 <HAL_RCC_OscConfig+0x14> - { - return HAL_ERROR; - 80007ce: 2301 movs r3, #1 - 80007d0: f000 fb76 bl 8000ec0 <HAL_RCC_OscConfig+0x700> - - /* Check the parameters */ - assert_param(IS_RCC_OSCILLATORTYPE(RCC_OscInitStruct->OscillatorType)); - - /*------------------------------- HSE Configuration ------------------------*/ - if(((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_HSE) == RCC_OSCILLATORTYPE_HSE) - 80007d4: 687b ldr r3, [r7, #4] - 80007d6: 681b ldr r3, [r3, #0] - 80007d8: 2201 movs r2, #1 - 80007da: 4013 ands r3, r2 - 80007dc: d100 bne.n 80007e0 <HAL_RCC_OscConfig+0x20> - 80007de: e08e b.n 80008fe <HAL_RCC_OscConfig+0x13e> - { - /* 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) - 80007e0: 4bc5 ldr r3, [pc, #788] ; (8000af8 <HAL_RCC_OscConfig+0x338>) - 80007e2: 685b ldr r3, [r3, #4] - 80007e4: 220c movs r2, #12 - 80007e6: 4013 ands r3, r2 - 80007e8: 2b04 cmp r3, #4 - 80007ea: d00e beq.n 800080a <HAL_RCC_OscConfig+0x4a> - || ((__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_SYSCLKSOURCE_STATUS_PLLCLK) && (__HAL_RCC_GET_PLL_OSCSOURCE() == RCC_PLLSOURCE_HSE))) - 80007ec: 4bc2 ldr r3, [pc, #776] ; (8000af8 <HAL_RCC_OscConfig+0x338>) - 80007ee: 685b ldr r3, [r3, #4] - 80007f0: 220c movs r2, #12 - 80007f2: 4013 ands r3, r2 - 80007f4: 2b08 cmp r3, #8 - 80007f6: d117 bne.n 8000828 <HAL_RCC_OscConfig+0x68> - 80007f8: 4bbf ldr r3, [pc, #764] ; (8000af8 <HAL_RCC_OscConfig+0x338>) - 80007fa: 685a ldr r2, [r3, #4] - 80007fc: 23c0 movs r3, #192 ; 0xc0 - 80007fe: 025b lsls r3, r3, #9 - 8000800: 401a ands r2, r3 - 8000802: 2380 movs r3, #128 ; 0x80 - 8000804: 025b lsls r3, r3, #9 - 8000806: 429a cmp r2, r3 - 8000808: d10e bne.n 8000828 <HAL_RCC_OscConfig+0x68> - { - if((__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != RESET) && (RCC_OscInitStruct->HSEState == RCC_HSE_OFF)) - 800080a: 4bbb ldr r3, [pc, #748] ; (8000af8 <HAL_RCC_OscConfig+0x338>) - 800080c: 681a ldr r2, [r3, #0] - 800080e: 2380 movs r3, #128 ; 0x80 - 8000810: 029b lsls r3, r3, #10 - 8000812: 4013 ands r3, r2 - 8000814: d100 bne.n 8000818 <HAL_RCC_OscConfig+0x58> - 8000816: e071 b.n 80008fc <HAL_RCC_OscConfig+0x13c> - 8000818: 687b ldr r3, [r7, #4] - 800081a: 685b ldr r3, [r3, #4] - 800081c: 2b00 cmp r3, #0 - 800081e: d000 beq.n 8000822 <HAL_RCC_OscConfig+0x62> - 8000820: e06c b.n 80008fc <HAL_RCC_OscConfig+0x13c> - { - return HAL_ERROR; - 8000822: 2301 movs r3, #1 - 8000824: f000 fb4c bl 8000ec0 <HAL_RCC_OscConfig+0x700> - } - } - else - { - /* Set the new HSE configuration ---------------------------------------*/ - __HAL_RCC_HSE_CONFIG(RCC_OscInitStruct->HSEState); - 8000828: 687b ldr r3, [r7, #4] - 800082a: 685b ldr r3, [r3, #4] - 800082c: 2b01 cmp r3, #1 - 800082e: d107 bne.n 8000840 <HAL_RCC_OscConfig+0x80> - 8000830: 4bb1 ldr r3, [pc, #708] ; (8000af8 <HAL_RCC_OscConfig+0x338>) - 8000832: 681a ldr r2, [r3, #0] - 8000834: 4bb0 ldr r3, [pc, #704] ; (8000af8 <HAL_RCC_OscConfig+0x338>) - 8000836: 2180 movs r1, #128 ; 0x80 - 8000838: 0249 lsls r1, r1, #9 - 800083a: 430a orrs r2, r1 - 800083c: 601a str r2, [r3, #0] - 800083e: e02f b.n 80008a0 <HAL_RCC_OscConfig+0xe0> - 8000840: 687b ldr r3, [r7, #4] - 8000842: 685b ldr r3, [r3, #4] - 8000844: 2b00 cmp r3, #0 - 8000846: d10c bne.n 8000862 <HAL_RCC_OscConfig+0xa2> - 8000848: 4bab ldr r3, [pc, #684] ; (8000af8 <HAL_RCC_OscConfig+0x338>) - 800084a: 681a ldr r2, [r3, #0] - 800084c: 4baa ldr r3, [pc, #680] ; (8000af8 <HAL_RCC_OscConfig+0x338>) - 800084e: 49ab ldr r1, [pc, #684] ; (8000afc <HAL_RCC_OscConfig+0x33c>) - 8000850: 400a ands r2, r1 - 8000852: 601a str r2, [r3, #0] - 8000854: 4ba8 ldr r3, [pc, #672] ; (8000af8 <HAL_RCC_OscConfig+0x338>) - 8000856: 681a ldr r2, [r3, #0] - 8000858: 4ba7 ldr r3, [pc, #668] ; (8000af8 <HAL_RCC_OscConfig+0x338>) - 800085a: 49a9 ldr r1, [pc, #676] ; (8000b00 <HAL_RCC_OscConfig+0x340>) - 800085c: 400a ands r2, r1 - 800085e: 601a str r2, [r3, #0] - 8000860: e01e b.n 80008a0 <HAL_RCC_OscConfig+0xe0> - 8000862: 687b ldr r3, [r7, #4] - 8000864: 685b ldr r3, [r3, #4] - 8000866: 2b05 cmp r3, #5 - 8000868: d10e bne.n 8000888 <HAL_RCC_OscConfig+0xc8> - 800086a: 4ba3 ldr r3, [pc, #652] ; (8000af8 <HAL_RCC_OscConfig+0x338>) - 800086c: 681a ldr r2, [r3, #0] - 800086e: 4ba2 ldr r3, [pc, #648] ; (8000af8 <HAL_RCC_OscConfig+0x338>) - 8000870: 2180 movs r1, #128 ; 0x80 - 8000872: 02c9 lsls r1, r1, #11 - 8000874: 430a orrs r2, r1 - 8000876: 601a str r2, [r3, #0] - 8000878: 4b9f ldr r3, [pc, #636] ; (8000af8 <HAL_RCC_OscConfig+0x338>) - 800087a: 681a ldr r2, [r3, #0] - 800087c: 4b9e ldr r3, [pc, #632] ; (8000af8 <HAL_RCC_OscConfig+0x338>) - 800087e: 2180 movs r1, #128 ; 0x80 - 8000880: 0249 lsls r1, r1, #9 - 8000882: 430a orrs r2, r1 - 8000884: 601a str r2, [r3, #0] - 8000886: e00b b.n 80008a0 <HAL_RCC_OscConfig+0xe0> - 8000888: 4b9b ldr r3, [pc, #620] ; (8000af8 <HAL_RCC_OscConfig+0x338>) - 800088a: 681a ldr r2, [r3, #0] - 800088c: 4b9a ldr r3, [pc, #616] ; (8000af8 <HAL_RCC_OscConfig+0x338>) - 800088e: 499b ldr r1, [pc, #620] ; (8000afc <HAL_RCC_OscConfig+0x33c>) - 8000890: 400a ands r2, r1 - 8000892: 601a str r2, [r3, #0] - 8000894: 4b98 ldr r3, [pc, #608] ; (8000af8 <HAL_RCC_OscConfig+0x338>) - 8000896: 681a ldr r2, [r3, #0] - 8000898: 4b97 ldr r3, [pc, #604] ; (8000af8 <HAL_RCC_OscConfig+0x338>) - 800089a: 4999 ldr r1, [pc, #612] ; (8000b00 <HAL_RCC_OscConfig+0x340>) - 800089c: 400a ands r2, r1 - 800089e: 601a str r2, [r3, #0] - - - /* Check the HSE State */ - if(RCC_OscInitStruct->HSEState != RCC_HSE_OFF) - 80008a0: 687b ldr r3, [r7, #4] - 80008a2: 685b ldr r3, [r3, #4] - 80008a4: 2b00 cmp r3, #0 - 80008a6: d014 beq.n 80008d2 <HAL_RCC_OscConfig+0x112> - { - /* Get Start Tick */ - tickstart = HAL_GetTick(); - 80008a8: f7ff fd14 bl 80002d4 <HAL_GetTick> - 80008ac: 0003 movs r3, r0 - 80008ae: 61bb str r3, [r7, #24] - - /* Wait till HSE is ready */ - while(__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) == RESET) - 80008b0: e008 b.n 80008c4 <HAL_RCC_OscConfig+0x104> - { - if((HAL_GetTick() - tickstart ) > HSE_TIMEOUT_VALUE) - 80008b2: f7ff fd0f bl 80002d4 <HAL_GetTick> - 80008b6: 0002 movs r2, r0 - 80008b8: 69bb ldr r3, [r7, #24] - 80008ba: 1ad3 subs r3, r2, r3 - 80008bc: 2b64 cmp r3, #100 ; 0x64 - 80008be: d901 bls.n 80008c4 <HAL_RCC_OscConfig+0x104> - { - return HAL_TIMEOUT; - 80008c0: 2303 movs r3, #3 - 80008c2: e2fd b.n 8000ec0 <HAL_RCC_OscConfig+0x700> - while(__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) == RESET) - 80008c4: 4b8c ldr r3, [pc, #560] ; (8000af8 <HAL_RCC_OscConfig+0x338>) - 80008c6: 681a ldr r2, [r3, #0] - 80008c8: 2380 movs r3, #128 ; 0x80 - 80008ca: 029b lsls r3, r3, #10 - 80008cc: 4013 ands r3, r2 - 80008ce: d0f0 beq.n 80008b2 <HAL_RCC_OscConfig+0xf2> - 80008d0: e015 b.n 80008fe <HAL_RCC_OscConfig+0x13e> - } - } - else - { - /* Get Start Tick */ - tickstart = HAL_GetTick(); - 80008d2: f7ff fcff bl 80002d4 <HAL_GetTick> - 80008d6: 0003 movs r3, r0 - 80008d8: 61bb str r3, [r7, #24] - - /* Wait till HSE is disabled */ - while(__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != RESET) - 80008da: e008 b.n 80008ee <HAL_RCC_OscConfig+0x12e> - { - if((HAL_GetTick() - tickstart ) > HSE_TIMEOUT_VALUE) - 80008dc: f7ff fcfa bl 80002d4 <HAL_GetTick> - 80008e0: 0002 movs r2, r0 - 80008e2: 69bb ldr r3, [r7, #24] - 80008e4: 1ad3 subs r3, r2, r3 - 80008e6: 2b64 cmp r3, #100 ; 0x64 - 80008e8: d901 bls.n 80008ee <HAL_RCC_OscConfig+0x12e> - { - return HAL_TIMEOUT; - 80008ea: 2303 movs r3, #3 - 80008ec: e2e8 b.n 8000ec0 <HAL_RCC_OscConfig+0x700> - while(__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != RESET) - 80008ee: 4b82 ldr r3, [pc, #520] ; (8000af8 <HAL_RCC_OscConfig+0x338>) - 80008f0: 681a ldr r2, [r3, #0] - 80008f2: 2380 movs r3, #128 ; 0x80 - 80008f4: 029b lsls r3, r3, #10 - 80008f6: 4013 ands r3, r2 - 80008f8: d1f0 bne.n 80008dc <HAL_RCC_OscConfig+0x11c> - 80008fa: e000 b.n 80008fe <HAL_RCC_OscConfig+0x13e> - if((__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != RESET) && (RCC_OscInitStruct->HSEState == RCC_HSE_OFF)) - 80008fc: 46c0 nop ; (mov r8, r8) - } - } - } - } - /*----------------------------- HSI Configuration --------------------------*/ - if(((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_HSI) == RCC_OSCILLATORTYPE_HSI) - 80008fe: 687b ldr r3, [r7, #4] - 8000900: 681b ldr r3, [r3, #0] - 8000902: 2202 movs r2, #2 - 8000904: 4013 ands r3, r2 - 8000906: d100 bne.n 800090a <HAL_RCC_OscConfig+0x14a> - 8000908: e06c b.n 80009e4 <HAL_RCC_OscConfig+0x224> - /* 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) - 800090a: 4b7b ldr r3, [pc, #492] ; (8000af8 <HAL_RCC_OscConfig+0x338>) - 800090c: 685b ldr r3, [r3, #4] - 800090e: 220c movs r2, #12 - 8000910: 4013 ands r3, r2 - 8000912: d00e beq.n 8000932 <HAL_RCC_OscConfig+0x172> - || ((__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_SYSCLKSOURCE_STATUS_PLLCLK) && (__HAL_RCC_GET_PLL_OSCSOURCE() == RCC_PLLSOURCE_HSI))) - 8000914: 4b78 ldr r3, [pc, #480] ; (8000af8 <HAL_RCC_OscConfig+0x338>) - 8000916: 685b ldr r3, [r3, #4] - 8000918: 220c movs r2, #12 - 800091a: 4013 ands r3, r2 - 800091c: 2b08 cmp r3, #8 - 800091e: d11f bne.n 8000960 <HAL_RCC_OscConfig+0x1a0> - 8000920: 4b75 ldr r3, [pc, #468] ; (8000af8 <HAL_RCC_OscConfig+0x338>) - 8000922: 685a ldr r2, [r3, #4] - 8000924: 23c0 movs r3, #192 ; 0xc0 - 8000926: 025b lsls r3, r3, #9 - 8000928: 401a ands r2, r3 - 800092a: 2380 movs r3, #128 ; 0x80 - 800092c: 021b lsls r3, r3, #8 - 800092e: 429a cmp r2, r3 - 8000930: d116 bne.n 8000960 <HAL_RCC_OscConfig+0x1a0> - { - /* 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)) - 8000932: 4b71 ldr r3, [pc, #452] ; (8000af8 <HAL_RCC_OscConfig+0x338>) - 8000934: 681b ldr r3, [r3, #0] - 8000936: 2202 movs r2, #2 - 8000938: 4013 ands r3, r2 - 800093a: d005 beq.n 8000948 <HAL_RCC_OscConfig+0x188> - 800093c: 687b ldr r3, [r7, #4] - 800093e: 68db ldr r3, [r3, #12] - 8000940: 2b01 cmp r3, #1 - 8000942: d001 beq.n 8000948 <HAL_RCC_OscConfig+0x188> - { - return HAL_ERROR; - 8000944: 2301 movs r3, #1 - 8000946: e2bb b.n 8000ec0 <HAL_RCC_OscConfig+0x700> - } - /* Otherwise, just the calibration is allowed */ - else - { - /* Adjusts the Internal High Speed oscillator (HSI) calibration value.*/ - __HAL_RCC_HSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->HSICalibrationValue); - 8000948: 4b6b ldr r3, [pc, #428] ; (8000af8 <HAL_RCC_OscConfig+0x338>) - 800094a: 681b ldr r3, [r3, #0] - 800094c: 22f8 movs r2, #248 ; 0xf8 - 800094e: 4393 bics r3, r2 - 8000950: 0019 movs r1, r3 - 8000952: 687b ldr r3, [r7, #4] - 8000954: 691b ldr r3, [r3, #16] - 8000956: 00da lsls r2, r3, #3 - 8000958: 4b67 ldr r3, [pc, #412] ; (8000af8 <HAL_RCC_OscConfig+0x338>) - 800095a: 430a orrs r2, r1 - 800095c: 601a str r2, [r3, #0] - if((__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != RESET) && (RCC_OscInitStruct->HSIState != RCC_HSI_ON)) - 800095e: e041 b.n 80009e4 <HAL_RCC_OscConfig+0x224> - } - } - else - { - /* Check the HSI State */ - if(RCC_OscInitStruct->HSIState != RCC_HSI_OFF) - 8000960: 687b ldr r3, [r7, #4] - 8000962: 68db ldr r3, [r3, #12] - 8000964: 2b00 cmp r3, #0 - 8000966: d024 beq.n 80009b2 <HAL_RCC_OscConfig+0x1f2> - { - /* Enable the Internal High Speed oscillator (HSI). */ - __HAL_RCC_HSI_ENABLE(); - 8000968: 4b63 ldr r3, [pc, #396] ; (8000af8 <HAL_RCC_OscConfig+0x338>) - 800096a: 681a ldr r2, [r3, #0] - 800096c: 4b62 ldr r3, [pc, #392] ; (8000af8 <HAL_RCC_OscConfig+0x338>) - 800096e: 2101 movs r1, #1 - 8000970: 430a orrs r2, r1 - 8000972: 601a str r2, [r3, #0] - - /* Get Start Tick */ - tickstart = HAL_GetTick(); - 8000974: f7ff fcae bl 80002d4 <HAL_GetTick> - 8000978: 0003 movs r3, r0 - 800097a: 61bb str r3, [r7, #24] - - /* Wait till HSI is ready */ - while(__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) == RESET) - 800097c: e008 b.n 8000990 <HAL_RCC_OscConfig+0x1d0> - { - if((HAL_GetTick() - tickstart ) > HSI_TIMEOUT_VALUE) - 800097e: f7ff fca9 bl 80002d4 <HAL_GetTick> - 8000982: 0002 movs r2, r0 - 8000984: 69bb ldr r3, [r7, #24] - 8000986: 1ad3 subs r3, r2, r3 - 8000988: 2b02 cmp r3, #2 - 800098a: d901 bls.n 8000990 <HAL_RCC_OscConfig+0x1d0> - { - return HAL_TIMEOUT; - 800098c: 2303 movs r3, #3 - 800098e: e297 b.n 8000ec0 <HAL_RCC_OscConfig+0x700> - while(__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) == RESET) - 8000990: 4b59 ldr r3, [pc, #356] ; (8000af8 <HAL_RCC_OscConfig+0x338>) - 8000992: 681b ldr r3, [r3, #0] - 8000994: 2202 movs r2, #2 - 8000996: 4013 ands r3, r2 - 8000998: d0f1 beq.n 800097e <HAL_RCC_OscConfig+0x1be> - } - } - - /* Adjusts the Internal High Speed oscillator (HSI) calibration value.*/ - __HAL_RCC_HSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->HSICalibrationValue); - 800099a: 4b57 ldr r3, [pc, #348] ; (8000af8 <HAL_RCC_OscConfig+0x338>) - 800099c: 681b ldr r3, [r3, #0] - 800099e: 22f8 movs r2, #248 ; 0xf8 - 80009a0: 4393 bics r3, r2 - 80009a2: 0019 movs r1, r3 - 80009a4: 687b ldr r3, [r7, #4] - 80009a6: 691b ldr r3, [r3, #16] - 80009a8: 00da lsls r2, r3, #3 - 80009aa: 4b53 ldr r3, [pc, #332] ; (8000af8 <HAL_RCC_OscConfig+0x338>) - 80009ac: 430a orrs r2, r1 - 80009ae: 601a str r2, [r3, #0] - 80009b0: e018 b.n 80009e4 <HAL_RCC_OscConfig+0x224> - } - else - { - /* Disable the Internal High Speed oscillator (HSI). */ - __HAL_RCC_HSI_DISABLE(); - 80009b2: 4b51 ldr r3, [pc, #324] ; (8000af8 <HAL_RCC_OscConfig+0x338>) - 80009b4: 681a ldr r2, [r3, #0] - 80009b6: 4b50 ldr r3, [pc, #320] ; (8000af8 <HAL_RCC_OscConfig+0x338>) - 80009b8: 2101 movs r1, #1 - 80009ba: 438a bics r2, r1 - 80009bc: 601a str r2, [r3, #0] - - /* Get Start Tick */ - tickstart = HAL_GetTick(); - 80009be: f7ff fc89 bl 80002d4 <HAL_GetTick> - 80009c2: 0003 movs r3, r0 - 80009c4: 61bb str r3, [r7, #24] - - /* Wait till HSI is disabled */ - while(__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != RESET) - 80009c6: e008 b.n 80009da <HAL_RCC_OscConfig+0x21a> - { - if((HAL_GetTick() - tickstart ) > HSI_TIMEOUT_VALUE) - 80009c8: f7ff fc84 bl 80002d4 <HAL_GetTick> - 80009cc: 0002 movs r2, r0 - 80009ce: 69bb ldr r3, [r7, #24] - 80009d0: 1ad3 subs r3, r2, r3 - 80009d2: 2b02 cmp r3, #2 - 80009d4: d901 bls.n 80009da <HAL_RCC_OscConfig+0x21a> - { - return HAL_TIMEOUT; - 80009d6: 2303 movs r3, #3 - 80009d8: e272 b.n 8000ec0 <HAL_RCC_OscConfig+0x700> - while(__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != RESET) - 80009da: 4b47 ldr r3, [pc, #284] ; (8000af8 <HAL_RCC_OscConfig+0x338>) - 80009dc: 681b ldr r3, [r3, #0] - 80009de: 2202 movs r2, #2 - 80009e0: 4013 ands r3, r2 - 80009e2: d1f1 bne.n 80009c8 <HAL_RCC_OscConfig+0x208> - } - } - } - } - /*------------------------------ LSI Configuration -------------------------*/ - if(((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_LSI) == RCC_OSCILLATORTYPE_LSI) - 80009e4: 687b ldr r3, [r7, #4] - 80009e6: 681b ldr r3, [r3, #0] - 80009e8: 2208 movs r2, #8 - 80009ea: 4013 ands r3, r2 - 80009ec: d036 beq.n 8000a5c <HAL_RCC_OscConfig+0x29c> - { - /* Check the parameters */ - assert_param(IS_RCC_LSI(RCC_OscInitStruct->LSIState)); - - /* Check the LSI State */ - if(RCC_OscInitStruct->LSIState != RCC_LSI_OFF) - 80009ee: 687b ldr r3, [r7, #4] - 80009f0: 69db ldr r3, [r3, #28] - 80009f2: 2b00 cmp r3, #0 - 80009f4: d019 beq.n 8000a2a <HAL_RCC_OscConfig+0x26a> - { - /* Enable the Internal Low Speed oscillator (LSI). */ - __HAL_RCC_LSI_ENABLE(); - 80009f6: 4b40 ldr r3, [pc, #256] ; (8000af8 <HAL_RCC_OscConfig+0x338>) - 80009f8: 6a5a ldr r2, [r3, #36] ; 0x24 - 80009fa: 4b3f ldr r3, [pc, #252] ; (8000af8 <HAL_RCC_OscConfig+0x338>) - 80009fc: 2101 movs r1, #1 - 80009fe: 430a orrs r2, r1 - 8000a00: 625a str r2, [r3, #36] ; 0x24 - - /* Get Start Tick */ - tickstart = HAL_GetTick(); - 8000a02: f7ff fc67 bl 80002d4 <HAL_GetTick> - 8000a06: 0003 movs r3, r0 - 8000a08: 61bb str r3, [r7, #24] - - /* Wait till LSI is ready */ - while(__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) == RESET) - 8000a0a: e008 b.n 8000a1e <HAL_RCC_OscConfig+0x25e> - { - if((HAL_GetTick() - tickstart ) > LSI_TIMEOUT_VALUE) - 8000a0c: f7ff fc62 bl 80002d4 <HAL_GetTick> - 8000a10: 0002 movs r2, r0 - 8000a12: 69bb ldr r3, [r7, #24] - 8000a14: 1ad3 subs r3, r2, r3 - 8000a16: 2b02 cmp r3, #2 - 8000a18: d901 bls.n 8000a1e <HAL_RCC_OscConfig+0x25e> - { - return HAL_TIMEOUT; - 8000a1a: 2303 movs r3, #3 - 8000a1c: e250 b.n 8000ec0 <HAL_RCC_OscConfig+0x700> - while(__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) == RESET) - 8000a1e: 4b36 ldr r3, [pc, #216] ; (8000af8 <HAL_RCC_OscConfig+0x338>) - 8000a20: 6a5b ldr r3, [r3, #36] ; 0x24 - 8000a22: 2202 movs r2, #2 - 8000a24: 4013 ands r3, r2 - 8000a26: d0f1 beq.n 8000a0c <HAL_RCC_OscConfig+0x24c> - 8000a28: e018 b.n 8000a5c <HAL_RCC_OscConfig+0x29c> - } - } - else - { - /* Disable the Internal Low Speed oscillator (LSI). */ - __HAL_RCC_LSI_DISABLE(); - 8000a2a: 4b33 ldr r3, [pc, #204] ; (8000af8 <HAL_RCC_OscConfig+0x338>) - 8000a2c: 6a5a ldr r2, [r3, #36] ; 0x24 - 8000a2e: 4b32 ldr r3, [pc, #200] ; (8000af8 <HAL_RCC_OscConfig+0x338>) - 8000a30: 2101 movs r1, #1 - 8000a32: 438a bics r2, r1 - 8000a34: 625a str r2, [r3, #36] ; 0x24 - - /* Get Start Tick */ - tickstart = HAL_GetTick(); - 8000a36: f7ff fc4d bl 80002d4 <HAL_GetTick> - 8000a3a: 0003 movs r3, r0 - 8000a3c: 61bb str r3, [r7, #24] - - /* Wait till LSI is disabled */ - while(__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) != RESET) - 8000a3e: e008 b.n 8000a52 <HAL_RCC_OscConfig+0x292> - { - if((HAL_GetTick() - tickstart ) > LSI_TIMEOUT_VALUE) - 8000a40: f7ff fc48 bl 80002d4 <HAL_GetTick> - 8000a44: 0002 movs r2, r0 - 8000a46: 69bb ldr r3, [r7, #24] - 8000a48: 1ad3 subs r3, r2, r3 - 8000a4a: 2b02 cmp r3, #2 - 8000a4c: d901 bls.n 8000a52 <HAL_RCC_OscConfig+0x292> - { - return HAL_TIMEOUT; - 8000a4e: 2303 movs r3, #3 - 8000a50: e236 b.n 8000ec0 <HAL_RCC_OscConfig+0x700> - while(__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) != RESET) - 8000a52: 4b29 ldr r3, [pc, #164] ; (8000af8 <HAL_RCC_OscConfig+0x338>) - 8000a54: 6a5b ldr r3, [r3, #36] ; 0x24 - 8000a56: 2202 movs r2, #2 - 8000a58: 4013 ands r3, r2 - 8000a5a: d1f1 bne.n 8000a40 <HAL_RCC_OscConfig+0x280> - } - } - } - } - /*------------------------------ LSE Configuration -------------------------*/ - if(((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_LSE) == RCC_OSCILLATORTYPE_LSE) - 8000a5c: 687b ldr r3, [r7, #4] - 8000a5e: 681b ldr r3, [r3, #0] - 8000a60: 2204 movs r2, #4 - 8000a62: 4013 ands r3, r2 - 8000a64: d100 bne.n 8000a68 <HAL_RCC_OscConfig+0x2a8> - 8000a66: e0b5 b.n 8000bd4 <HAL_RCC_OscConfig+0x414> - { - FlagStatus pwrclkchanged = RESET; - 8000a68: 231f movs r3, #31 - 8000a6a: 18fb adds r3, r7, r3 - 8000a6c: 2200 movs r2, #0 - 8000a6e: 701a strb r2, [r3, #0] - /* 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()) - 8000a70: 4b21 ldr r3, [pc, #132] ; (8000af8 <HAL_RCC_OscConfig+0x338>) - 8000a72: 69da ldr r2, [r3, #28] - 8000a74: 2380 movs r3, #128 ; 0x80 - 8000a76: 055b lsls r3, r3, #21 - 8000a78: 4013 ands r3, r2 - 8000a7a: d111 bne.n 8000aa0 <HAL_RCC_OscConfig+0x2e0> - { - __HAL_RCC_PWR_CLK_ENABLE(); - 8000a7c: 4b1e ldr r3, [pc, #120] ; (8000af8 <HAL_RCC_OscConfig+0x338>) - 8000a7e: 69da ldr r2, [r3, #28] - 8000a80: 4b1d ldr r3, [pc, #116] ; (8000af8 <HAL_RCC_OscConfig+0x338>) - 8000a82: 2180 movs r1, #128 ; 0x80 - 8000a84: 0549 lsls r1, r1, #21 - 8000a86: 430a orrs r2, r1 - 8000a88: 61da str r2, [r3, #28] - 8000a8a: 4b1b ldr r3, [pc, #108] ; (8000af8 <HAL_RCC_OscConfig+0x338>) - 8000a8c: 69da ldr r2, [r3, #28] - 8000a8e: 2380 movs r3, #128 ; 0x80 - 8000a90: 055b lsls r3, r3, #21 - 8000a92: 4013 ands r3, r2 - 8000a94: 60fb str r3, [r7, #12] - 8000a96: 68fb ldr r3, [r7, #12] - pwrclkchanged = SET; - 8000a98: 231f movs r3, #31 - 8000a9a: 18fb adds r3, r7, r3 - 8000a9c: 2201 movs r2, #1 - 8000a9e: 701a strb r2, [r3, #0] - } - - if(HAL_IS_BIT_CLR(PWR->CR, PWR_CR_DBP)) - 8000aa0: 4b18 ldr r3, [pc, #96] ; (8000b04 <HAL_RCC_OscConfig+0x344>) - 8000aa2: 681a ldr r2, [r3, #0] - 8000aa4: 2380 movs r3, #128 ; 0x80 - 8000aa6: 005b lsls r3, r3, #1 - 8000aa8: 4013 ands r3, r2 - 8000aaa: d11a bne.n 8000ae2 <HAL_RCC_OscConfig+0x322> - { - /* Enable write access to Backup domain */ - SET_BIT(PWR->CR, PWR_CR_DBP); - 8000aac: 4b15 ldr r3, [pc, #84] ; (8000b04 <HAL_RCC_OscConfig+0x344>) - 8000aae: 681a ldr r2, [r3, #0] - 8000ab0: 4b14 ldr r3, [pc, #80] ; (8000b04 <HAL_RCC_OscConfig+0x344>) - 8000ab2: 2180 movs r1, #128 ; 0x80 - 8000ab4: 0049 lsls r1, r1, #1 - 8000ab6: 430a orrs r2, r1 - 8000ab8: 601a str r2, [r3, #0] - - /* Wait for Backup domain Write protection disable */ - tickstart = HAL_GetTick(); - 8000aba: f7ff fc0b bl 80002d4 <HAL_GetTick> - 8000abe: 0003 movs r3, r0 - 8000ac0: 61bb str r3, [r7, #24] - - while(HAL_IS_BIT_CLR(PWR->CR, PWR_CR_DBP)) - 8000ac2: e008 b.n 8000ad6 <HAL_RCC_OscConfig+0x316> - { - if((HAL_GetTick() - tickstart) > RCC_DBP_TIMEOUT_VALUE) - 8000ac4: f7ff fc06 bl 80002d4 <HAL_GetTick> - 8000ac8: 0002 movs r2, r0 - 8000aca: 69bb ldr r3, [r7, #24] - 8000acc: 1ad3 subs r3, r2, r3 - 8000ace: 2b64 cmp r3, #100 ; 0x64 - 8000ad0: d901 bls.n 8000ad6 <HAL_RCC_OscConfig+0x316> - { - return HAL_TIMEOUT; - 8000ad2: 2303 movs r3, #3 - 8000ad4: e1f4 b.n 8000ec0 <HAL_RCC_OscConfig+0x700> - while(HAL_IS_BIT_CLR(PWR->CR, PWR_CR_DBP)) - 8000ad6: 4b0b ldr r3, [pc, #44] ; (8000b04 <HAL_RCC_OscConfig+0x344>) - 8000ad8: 681a ldr r2, [r3, #0] - 8000ada: 2380 movs r3, #128 ; 0x80 - 8000adc: 005b lsls r3, r3, #1 - 8000ade: 4013 ands r3, r2 - 8000ae0: d0f0 beq.n 8000ac4 <HAL_RCC_OscConfig+0x304> - } - } - } - - /* Set the new LSE configuration -----------------------------------------*/ - __HAL_RCC_LSE_CONFIG(RCC_OscInitStruct->LSEState); - 8000ae2: 687b ldr r3, [r7, #4] - 8000ae4: 689b ldr r3, [r3, #8] - 8000ae6: 2b01 cmp r3, #1 - 8000ae8: d10e bne.n 8000b08 <HAL_RCC_OscConfig+0x348> - 8000aea: 4b03 ldr r3, [pc, #12] ; (8000af8 <HAL_RCC_OscConfig+0x338>) - 8000aec: 6a1a ldr r2, [r3, #32] - 8000aee: 4b02 ldr r3, [pc, #8] ; (8000af8 <HAL_RCC_OscConfig+0x338>) - 8000af0: 2101 movs r1, #1 - 8000af2: 430a orrs r2, r1 - 8000af4: 621a str r2, [r3, #32] - 8000af6: e035 b.n 8000b64 <HAL_RCC_OscConfig+0x3a4> - 8000af8: 40021000 .word 0x40021000 - 8000afc: fffeffff .word 0xfffeffff - 8000b00: fffbffff .word 0xfffbffff - 8000b04: 40007000 .word 0x40007000 - 8000b08: 687b ldr r3, [r7, #4] - 8000b0a: 689b ldr r3, [r3, #8] - 8000b0c: 2b00 cmp r3, #0 - 8000b0e: d10c bne.n 8000b2a <HAL_RCC_OscConfig+0x36a> - 8000b10: 4bca ldr r3, [pc, #808] ; (8000e3c <HAL_RCC_OscConfig+0x67c>) - 8000b12: 6a1a ldr r2, [r3, #32] - 8000b14: 4bc9 ldr r3, [pc, #804] ; (8000e3c <HAL_RCC_OscConfig+0x67c>) - 8000b16: 2101 movs r1, #1 - 8000b18: 438a bics r2, r1 - 8000b1a: 621a str r2, [r3, #32] - 8000b1c: 4bc7 ldr r3, [pc, #796] ; (8000e3c <HAL_RCC_OscConfig+0x67c>) - 8000b1e: 6a1a ldr r2, [r3, #32] - 8000b20: 4bc6 ldr r3, [pc, #792] ; (8000e3c <HAL_RCC_OscConfig+0x67c>) - 8000b22: 2104 movs r1, #4 - 8000b24: 438a bics r2, r1 - 8000b26: 621a str r2, [r3, #32] - 8000b28: e01c b.n 8000b64 <HAL_RCC_OscConfig+0x3a4> - 8000b2a: 687b ldr r3, [r7, #4] - 8000b2c: 689b ldr r3, [r3, #8] - 8000b2e: 2b05 cmp r3, #5 - 8000b30: d10c bne.n 8000b4c <HAL_RCC_OscConfig+0x38c> - 8000b32: 4bc2 ldr r3, [pc, #776] ; (8000e3c <HAL_RCC_OscConfig+0x67c>) - 8000b34: 6a1a ldr r2, [r3, #32] - 8000b36: 4bc1 ldr r3, [pc, #772] ; (8000e3c <HAL_RCC_OscConfig+0x67c>) - 8000b38: 2104 movs r1, #4 - 8000b3a: 430a orrs r2, r1 - 8000b3c: 621a str r2, [r3, #32] - 8000b3e: 4bbf ldr r3, [pc, #764] ; (8000e3c <HAL_RCC_OscConfig+0x67c>) - 8000b40: 6a1a ldr r2, [r3, #32] - 8000b42: 4bbe ldr r3, [pc, #760] ; (8000e3c <HAL_RCC_OscConfig+0x67c>) - 8000b44: 2101 movs r1, #1 - 8000b46: 430a orrs r2, r1 - 8000b48: 621a str r2, [r3, #32] - 8000b4a: e00b b.n 8000b64 <HAL_RCC_OscConfig+0x3a4> - 8000b4c: 4bbb ldr r3, [pc, #748] ; (8000e3c <HAL_RCC_OscConfig+0x67c>) - 8000b4e: 6a1a ldr r2, [r3, #32] - 8000b50: 4bba ldr r3, [pc, #744] ; (8000e3c <HAL_RCC_OscConfig+0x67c>) - 8000b52: 2101 movs r1, #1 - 8000b54: 438a bics r2, r1 - 8000b56: 621a str r2, [r3, #32] - 8000b58: 4bb8 ldr r3, [pc, #736] ; (8000e3c <HAL_RCC_OscConfig+0x67c>) - 8000b5a: 6a1a ldr r2, [r3, #32] - 8000b5c: 4bb7 ldr r3, [pc, #732] ; (8000e3c <HAL_RCC_OscConfig+0x67c>) - 8000b5e: 2104 movs r1, #4 - 8000b60: 438a bics r2, r1 - 8000b62: 621a str r2, [r3, #32] - /* Check the LSE State */ - if(RCC_OscInitStruct->LSEState != RCC_LSE_OFF) - 8000b64: 687b ldr r3, [r7, #4] - 8000b66: 689b ldr r3, [r3, #8] - 8000b68: 2b00 cmp r3, #0 - 8000b6a: d014 beq.n 8000b96 <HAL_RCC_OscConfig+0x3d6> - { - /* Get Start Tick */ - tickstart = HAL_GetTick(); - 8000b6c: f7ff fbb2 bl 80002d4 <HAL_GetTick> - 8000b70: 0003 movs r3, r0 - 8000b72: 61bb str r3, [r7, #24] - - /* Wait till LSE is ready */ - while(__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) == RESET) - 8000b74: e009 b.n 8000b8a <HAL_RCC_OscConfig+0x3ca> - { - if((HAL_GetTick() - tickstart ) > RCC_LSE_TIMEOUT_VALUE) - 8000b76: f7ff fbad bl 80002d4 <HAL_GetTick> - 8000b7a: 0002 movs r2, r0 - 8000b7c: 69bb ldr r3, [r7, #24] - 8000b7e: 1ad3 subs r3, r2, r3 - 8000b80: 4aaf ldr r2, [pc, #700] ; (8000e40 <HAL_RCC_OscConfig+0x680>) - 8000b82: 4293 cmp r3, r2 - 8000b84: d901 bls.n 8000b8a <HAL_RCC_OscConfig+0x3ca> - { - return HAL_TIMEOUT; - 8000b86: 2303 movs r3, #3 - 8000b88: e19a b.n 8000ec0 <HAL_RCC_OscConfig+0x700> - while(__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) == RESET) - 8000b8a: 4bac ldr r3, [pc, #688] ; (8000e3c <HAL_RCC_OscConfig+0x67c>) - 8000b8c: 6a1b ldr r3, [r3, #32] - 8000b8e: 2202 movs r2, #2 - 8000b90: 4013 ands r3, r2 - 8000b92: d0f0 beq.n 8000b76 <HAL_RCC_OscConfig+0x3b6> - 8000b94: e013 b.n 8000bbe <HAL_RCC_OscConfig+0x3fe> - } - } - else - { - /* Get Start Tick */ - tickstart = HAL_GetTick(); - 8000b96: f7ff fb9d bl 80002d4 <HAL_GetTick> - 8000b9a: 0003 movs r3, r0 - 8000b9c: 61bb str r3, [r7, #24] - - /* Wait till LSE is disabled */ - while(__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) != RESET) - 8000b9e: e009 b.n 8000bb4 <HAL_RCC_OscConfig+0x3f4> - { - if((HAL_GetTick() - tickstart ) > RCC_LSE_TIMEOUT_VALUE) - 8000ba0: f7ff fb98 bl 80002d4 <HAL_GetTick> - 8000ba4: 0002 movs r2, r0 - 8000ba6: 69bb ldr r3, [r7, #24] - 8000ba8: 1ad3 subs r3, r2, r3 - 8000baa: 4aa5 ldr r2, [pc, #660] ; (8000e40 <HAL_RCC_OscConfig+0x680>) - 8000bac: 4293 cmp r3, r2 - 8000bae: d901 bls.n 8000bb4 <HAL_RCC_OscConfig+0x3f4> - { - return HAL_TIMEOUT; - 8000bb0: 2303 movs r3, #3 - 8000bb2: e185 b.n 8000ec0 <HAL_RCC_OscConfig+0x700> - while(__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) != RESET) - 8000bb4: 4ba1 ldr r3, [pc, #644] ; (8000e3c <HAL_RCC_OscConfig+0x67c>) - 8000bb6: 6a1b ldr r3, [r3, #32] - 8000bb8: 2202 movs r2, #2 - 8000bba: 4013 ands r3, r2 - 8000bbc: d1f0 bne.n 8000ba0 <HAL_RCC_OscConfig+0x3e0> - } - } - } - - /* Require to disable power clock if necessary */ - if(pwrclkchanged == SET) - 8000bbe: 231f movs r3, #31 - 8000bc0: 18fb adds r3, r7, r3 - 8000bc2: 781b ldrb r3, [r3, #0] - 8000bc4: 2b01 cmp r3, #1 - 8000bc6: d105 bne.n 8000bd4 <HAL_RCC_OscConfig+0x414> - { - __HAL_RCC_PWR_CLK_DISABLE(); - 8000bc8: 4b9c ldr r3, [pc, #624] ; (8000e3c <HAL_RCC_OscConfig+0x67c>) - 8000bca: 69da ldr r2, [r3, #28] - 8000bcc: 4b9b ldr r3, [pc, #620] ; (8000e3c <HAL_RCC_OscConfig+0x67c>) - 8000bce: 499d ldr r1, [pc, #628] ; (8000e44 <HAL_RCC_OscConfig+0x684>) - 8000bd0: 400a ands r2, r1 - 8000bd2: 61da str r2, [r3, #28] - } - } - - /*----------------------------- HSI14 Configuration --------------------------*/ - if(((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_HSI14) == RCC_OSCILLATORTYPE_HSI14) - 8000bd4: 687b ldr r3, [r7, #4] - 8000bd6: 681b ldr r3, [r3, #0] - 8000bd8: 2210 movs r2, #16 - 8000bda: 4013 ands r3, r2 - 8000bdc: d063 beq.n 8000ca6 <HAL_RCC_OscConfig+0x4e6> - /* Check the parameters */ - assert_param(IS_RCC_HSI14(RCC_OscInitStruct->HSI14State)); - assert_param(IS_RCC_CALIBRATION_VALUE(RCC_OscInitStruct->HSI14CalibrationValue)); - - /* Check the HSI14 State */ - if(RCC_OscInitStruct->HSI14State == RCC_HSI14_ON) - 8000bde: 687b ldr r3, [r7, #4] - 8000be0: 695b ldr r3, [r3, #20] - 8000be2: 2b01 cmp r3, #1 - 8000be4: d12a bne.n 8000c3c <HAL_RCC_OscConfig+0x47c> - { - /* Disable ADC control of the Internal High Speed oscillator HSI14 */ - __HAL_RCC_HSI14ADC_DISABLE(); - 8000be6: 4b95 ldr r3, [pc, #596] ; (8000e3c <HAL_RCC_OscConfig+0x67c>) - 8000be8: 6b5a ldr r2, [r3, #52] ; 0x34 - 8000bea: 4b94 ldr r3, [pc, #592] ; (8000e3c <HAL_RCC_OscConfig+0x67c>) - 8000bec: 2104 movs r1, #4 - 8000bee: 430a orrs r2, r1 - 8000bf0: 635a str r2, [r3, #52] ; 0x34 - - /* Enable the Internal High Speed oscillator (HSI). */ - __HAL_RCC_HSI14_ENABLE(); - 8000bf2: 4b92 ldr r3, [pc, #584] ; (8000e3c <HAL_RCC_OscConfig+0x67c>) - 8000bf4: 6b5a ldr r2, [r3, #52] ; 0x34 - 8000bf6: 4b91 ldr r3, [pc, #580] ; (8000e3c <HAL_RCC_OscConfig+0x67c>) - 8000bf8: 2101 movs r1, #1 - 8000bfa: 430a orrs r2, r1 - 8000bfc: 635a str r2, [r3, #52] ; 0x34 - - /* Get Start Tick */ - tickstart = HAL_GetTick(); - 8000bfe: f7ff fb69 bl 80002d4 <HAL_GetTick> - 8000c02: 0003 movs r3, r0 - 8000c04: 61bb str r3, [r7, #24] - - /* Wait till HSI is ready */ - while(__HAL_RCC_GET_FLAG(RCC_FLAG_HSI14RDY) == RESET) - 8000c06: e008 b.n 8000c1a <HAL_RCC_OscConfig+0x45a> - { - if((HAL_GetTick() - tickstart) > HSI14_TIMEOUT_VALUE) - 8000c08: f7ff fb64 bl 80002d4 <HAL_GetTick> - 8000c0c: 0002 movs r2, r0 - 8000c0e: 69bb ldr r3, [r7, #24] - 8000c10: 1ad3 subs r3, r2, r3 - 8000c12: 2b02 cmp r3, #2 - 8000c14: d901 bls.n 8000c1a <HAL_RCC_OscConfig+0x45a> - { - return HAL_TIMEOUT; - 8000c16: 2303 movs r3, #3 - 8000c18: e152 b.n 8000ec0 <HAL_RCC_OscConfig+0x700> - while(__HAL_RCC_GET_FLAG(RCC_FLAG_HSI14RDY) == RESET) - 8000c1a: 4b88 ldr r3, [pc, #544] ; (8000e3c <HAL_RCC_OscConfig+0x67c>) - 8000c1c: 6b5b ldr r3, [r3, #52] ; 0x34 - 8000c1e: 2202 movs r2, #2 - 8000c20: 4013 ands r3, r2 - 8000c22: d0f1 beq.n 8000c08 <HAL_RCC_OscConfig+0x448> - } - } - - /* Adjusts the Internal High Speed oscillator 14Mhz (HSI14) calibration value. */ - __HAL_RCC_HSI14_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->HSI14CalibrationValue); - 8000c24: 4b85 ldr r3, [pc, #532] ; (8000e3c <HAL_RCC_OscConfig+0x67c>) - 8000c26: 6b5b ldr r3, [r3, #52] ; 0x34 - 8000c28: 22f8 movs r2, #248 ; 0xf8 - 8000c2a: 4393 bics r3, r2 - 8000c2c: 0019 movs r1, r3 - 8000c2e: 687b ldr r3, [r7, #4] - 8000c30: 699b ldr r3, [r3, #24] - 8000c32: 00da lsls r2, r3, #3 - 8000c34: 4b81 ldr r3, [pc, #516] ; (8000e3c <HAL_RCC_OscConfig+0x67c>) - 8000c36: 430a orrs r2, r1 - 8000c38: 635a str r2, [r3, #52] ; 0x34 - 8000c3a: e034 b.n 8000ca6 <HAL_RCC_OscConfig+0x4e6> - } - else if(RCC_OscInitStruct->HSI14State == RCC_HSI14_ADC_CONTROL) - 8000c3c: 687b ldr r3, [r7, #4] - 8000c3e: 695b ldr r3, [r3, #20] - 8000c40: 3305 adds r3, #5 - 8000c42: d111 bne.n 8000c68 <HAL_RCC_OscConfig+0x4a8> - { - /* Enable ADC control of the Internal High Speed oscillator HSI14 */ - __HAL_RCC_HSI14ADC_ENABLE(); - 8000c44: 4b7d ldr r3, [pc, #500] ; (8000e3c <HAL_RCC_OscConfig+0x67c>) - 8000c46: 6b5a ldr r2, [r3, #52] ; 0x34 - 8000c48: 4b7c ldr r3, [pc, #496] ; (8000e3c <HAL_RCC_OscConfig+0x67c>) - 8000c4a: 2104 movs r1, #4 - 8000c4c: 438a bics r2, r1 - 8000c4e: 635a str r2, [r3, #52] ; 0x34 - - /* Adjusts the Internal High Speed oscillator 14Mhz (HSI14) calibration value. */ - __HAL_RCC_HSI14_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->HSI14CalibrationValue); - 8000c50: 4b7a ldr r3, [pc, #488] ; (8000e3c <HAL_RCC_OscConfig+0x67c>) - 8000c52: 6b5b ldr r3, [r3, #52] ; 0x34 - 8000c54: 22f8 movs r2, #248 ; 0xf8 - 8000c56: 4393 bics r3, r2 - 8000c58: 0019 movs r1, r3 - 8000c5a: 687b ldr r3, [r7, #4] - 8000c5c: 699b ldr r3, [r3, #24] - 8000c5e: 00da lsls r2, r3, #3 - 8000c60: 4b76 ldr r3, [pc, #472] ; (8000e3c <HAL_RCC_OscConfig+0x67c>) - 8000c62: 430a orrs r2, r1 - 8000c64: 635a str r2, [r3, #52] ; 0x34 - 8000c66: e01e b.n 8000ca6 <HAL_RCC_OscConfig+0x4e6> - } - else - { - /* Disable ADC control of the Internal High Speed oscillator HSI14 */ - __HAL_RCC_HSI14ADC_DISABLE(); - 8000c68: 4b74 ldr r3, [pc, #464] ; (8000e3c <HAL_RCC_OscConfig+0x67c>) - 8000c6a: 6b5a ldr r2, [r3, #52] ; 0x34 - 8000c6c: 4b73 ldr r3, [pc, #460] ; (8000e3c <HAL_RCC_OscConfig+0x67c>) - 8000c6e: 2104 movs r1, #4 - 8000c70: 430a orrs r2, r1 - 8000c72: 635a str r2, [r3, #52] ; 0x34 - - /* Disable the Internal High Speed oscillator (HSI). */ - __HAL_RCC_HSI14_DISABLE(); - 8000c74: 4b71 ldr r3, [pc, #452] ; (8000e3c <HAL_RCC_OscConfig+0x67c>) - 8000c76: 6b5a ldr r2, [r3, #52] ; 0x34 - 8000c78: 4b70 ldr r3, [pc, #448] ; (8000e3c <HAL_RCC_OscConfig+0x67c>) - 8000c7a: 2101 movs r1, #1 - 8000c7c: 438a bics r2, r1 - 8000c7e: 635a str r2, [r3, #52] ; 0x34 - - /* Get Start Tick */ - tickstart = HAL_GetTick(); - 8000c80: f7ff fb28 bl 80002d4 <HAL_GetTick> - 8000c84: 0003 movs r3, r0 - 8000c86: 61bb str r3, [r7, #24] - - /* Wait till HSI is ready */ - while(__HAL_RCC_GET_FLAG(RCC_FLAG_HSI14RDY) != RESET) - 8000c88: e008 b.n 8000c9c <HAL_RCC_OscConfig+0x4dc> - { - if((HAL_GetTick() - tickstart) > HSI14_TIMEOUT_VALUE) - 8000c8a: f7ff fb23 bl 80002d4 <HAL_GetTick> - 8000c8e: 0002 movs r2, r0 - 8000c90: 69bb ldr r3, [r7, #24] - 8000c92: 1ad3 subs r3, r2, r3 - 8000c94: 2b02 cmp r3, #2 - 8000c96: d901 bls.n 8000c9c <HAL_RCC_OscConfig+0x4dc> - { - return HAL_TIMEOUT; - 8000c98: 2303 movs r3, #3 - 8000c9a: e111 b.n 8000ec0 <HAL_RCC_OscConfig+0x700> - while(__HAL_RCC_GET_FLAG(RCC_FLAG_HSI14RDY) != RESET) - 8000c9c: 4b67 ldr r3, [pc, #412] ; (8000e3c <HAL_RCC_OscConfig+0x67c>) - 8000c9e: 6b5b ldr r3, [r3, #52] ; 0x34 - 8000ca0: 2202 movs r2, #2 - 8000ca2: 4013 ands r3, r2 - 8000ca4: d1f1 bne.n 8000c8a <HAL_RCC_OscConfig+0x4ca> - } - } - -#if defined(RCC_HSI48_SUPPORT) - /*----------------------------- HSI48 Configuration --------------------------*/ - if(((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_HSI48) == RCC_OSCILLATORTYPE_HSI48) - 8000ca6: 687b ldr r3, [r7, #4] - 8000ca8: 681b ldr r3, [r3, #0] - 8000caa: 2220 movs r2, #32 - 8000cac: 4013 ands r3, r2 - 8000cae: d05c beq.n 8000d6a <HAL_RCC_OscConfig+0x5aa> - { - /* Check the parameters */ - assert_param(IS_RCC_HSI48(RCC_OscInitStruct->HSI48State)); - - /* When the HSI48 is used as system clock it is not allowed to be disabled */ - if((__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_SYSCLKSOURCE_STATUS_HSI48) || - 8000cb0: 4b62 ldr r3, [pc, #392] ; (8000e3c <HAL_RCC_OscConfig+0x67c>) - 8000cb2: 685b ldr r3, [r3, #4] - 8000cb4: 220c movs r2, #12 - 8000cb6: 4013 ands r3, r2 - 8000cb8: 2b0c cmp r3, #12 - 8000cba: d00e beq.n 8000cda <HAL_RCC_OscConfig+0x51a> - ((__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_SYSCLKSOURCE_STATUS_PLLCLK) && (__HAL_RCC_GET_PLL_OSCSOURCE() == RCC_PLLSOURCE_HSI48))) - 8000cbc: 4b5f ldr r3, [pc, #380] ; (8000e3c <HAL_RCC_OscConfig+0x67c>) - 8000cbe: 685b ldr r3, [r3, #4] - 8000cc0: 220c movs r2, #12 - 8000cc2: 4013 ands r3, r2 - if((__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_SYSCLKSOURCE_STATUS_HSI48) || - 8000cc4: 2b08 cmp r3, #8 - 8000cc6: d114 bne.n 8000cf2 <HAL_RCC_OscConfig+0x532> - ((__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_SYSCLKSOURCE_STATUS_PLLCLK) && (__HAL_RCC_GET_PLL_OSCSOURCE() == RCC_PLLSOURCE_HSI48))) - 8000cc8: 4b5c ldr r3, [pc, #368] ; (8000e3c <HAL_RCC_OscConfig+0x67c>) - 8000cca: 685a ldr r2, [r3, #4] - 8000ccc: 23c0 movs r3, #192 ; 0xc0 - 8000cce: 025b lsls r3, r3, #9 - 8000cd0: 401a ands r2, r3 - 8000cd2: 23c0 movs r3, #192 ; 0xc0 - 8000cd4: 025b lsls r3, r3, #9 - 8000cd6: 429a cmp r2, r3 - 8000cd8: d10b bne.n 8000cf2 <HAL_RCC_OscConfig+0x532> - { - if((__HAL_RCC_GET_FLAG(RCC_FLAG_HSI48RDY) != RESET) && (RCC_OscInitStruct->HSI48State != RCC_HSI48_ON)) - 8000cda: 4b58 ldr r3, [pc, #352] ; (8000e3c <HAL_RCC_OscConfig+0x67c>) - 8000cdc: 6b5a ldr r2, [r3, #52] ; 0x34 - 8000cde: 2380 movs r3, #128 ; 0x80 - 8000ce0: 025b lsls r3, r3, #9 - 8000ce2: 4013 ands r3, r2 - 8000ce4: d040 beq.n 8000d68 <HAL_RCC_OscConfig+0x5a8> - 8000ce6: 687b ldr r3, [r7, #4] - 8000ce8: 6a1b ldr r3, [r3, #32] - 8000cea: 2b01 cmp r3, #1 - 8000cec: d03c beq.n 8000d68 <HAL_RCC_OscConfig+0x5a8> - { - return HAL_ERROR; - 8000cee: 2301 movs r3, #1 - 8000cf0: e0e6 b.n 8000ec0 <HAL_RCC_OscConfig+0x700> - } - } - else - { - /* Check the HSI48 State */ - if(RCC_OscInitStruct->HSI48State != RCC_HSI48_OFF) - 8000cf2: 687b ldr r3, [r7, #4] - 8000cf4: 6a1b ldr r3, [r3, #32] - 8000cf6: 2b00 cmp r3, #0 - 8000cf8: d01b beq.n 8000d32 <HAL_RCC_OscConfig+0x572> - { - /* Enable the Internal High Speed oscillator (HSI48). */ - __HAL_RCC_HSI48_ENABLE(); - 8000cfa: 4b50 ldr r3, [pc, #320] ; (8000e3c <HAL_RCC_OscConfig+0x67c>) - 8000cfc: 6b5a ldr r2, [r3, #52] ; 0x34 - 8000cfe: 4b4f ldr r3, [pc, #316] ; (8000e3c <HAL_RCC_OscConfig+0x67c>) - 8000d00: 2180 movs r1, #128 ; 0x80 - 8000d02: 0249 lsls r1, r1, #9 - 8000d04: 430a orrs r2, r1 - 8000d06: 635a str r2, [r3, #52] ; 0x34 - - /* Get Start Tick */ - tickstart = HAL_GetTick(); - 8000d08: f7ff fae4 bl 80002d4 <HAL_GetTick> - 8000d0c: 0003 movs r3, r0 - 8000d0e: 61bb str r3, [r7, #24] - - /* Wait till HSI48 is ready */ - while(__HAL_RCC_GET_FLAG(RCC_FLAG_HSI48RDY) == RESET) - 8000d10: e008 b.n 8000d24 <HAL_RCC_OscConfig+0x564> - { - if((HAL_GetTick() - tickstart) > HSI48_TIMEOUT_VALUE) - 8000d12: f7ff fadf bl 80002d4 <HAL_GetTick> - 8000d16: 0002 movs r2, r0 - 8000d18: 69bb ldr r3, [r7, #24] - 8000d1a: 1ad3 subs r3, r2, r3 - 8000d1c: 2b02 cmp r3, #2 - 8000d1e: d901 bls.n 8000d24 <HAL_RCC_OscConfig+0x564> - { - return HAL_TIMEOUT; - 8000d20: 2303 movs r3, #3 - 8000d22: e0cd b.n 8000ec0 <HAL_RCC_OscConfig+0x700> - while(__HAL_RCC_GET_FLAG(RCC_FLAG_HSI48RDY) == RESET) - 8000d24: 4b45 ldr r3, [pc, #276] ; (8000e3c <HAL_RCC_OscConfig+0x67c>) - 8000d26: 6b5a ldr r2, [r3, #52] ; 0x34 - 8000d28: 2380 movs r3, #128 ; 0x80 - 8000d2a: 025b lsls r3, r3, #9 - 8000d2c: 4013 ands r3, r2 - 8000d2e: d0f0 beq.n 8000d12 <HAL_RCC_OscConfig+0x552> - 8000d30: e01b b.n 8000d6a <HAL_RCC_OscConfig+0x5aa> - } - } - else - { - /* Disable the Internal High Speed oscillator (HSI48). */ - __HAL_RCC_HSI48_DISABLE(); - 8000d32: 4b42 ldr r3, [pc, #264] ; (8000e3c <HAL_RCC_OscConfig+0x67c>) - 8000d34: 6b5a ldr r2, [r3, #52] ; 0x34 - 8000d36: 4b41 ldr r3, [pc, #260] ; (8000e3c <HAL_RCC_OscConfig+0x67c>) - 8000d38: 4943 ldr r1, [pc, #268] ; (8000e48 <HAL_RCC_OscConfig+0x688>) - 8000d3a: 400a ands r2, r1 - 8000d3c: 635a str r2, [r3, #52] ; 0x34 - - /* Get Start Tick */ - tickstart = HAL_GetTick(); - 8000d3e: f7ff fac9 bl 80002d4 <HAL_GetTick> - 8000d42: 0003 movs r3, r0 - 8000d44: 61bb str r3, [r7, #24] - - /* Wait till HSI48 is ready */ - while(__HAL_RCC_GET_FLAG(RCC_FLAG_HSI48RDY) != RESET) - 8000d46: e008 b.n 8000d5a <HAL_RCC_OscConfig+0x59a> - { - if((HAL_GetTick() - tickstart) > HSI48_TIMEOUT_VALUE) - 8000d48: f7ff fac4 bl 80002d4 <HAL_GetTick> - 8000d4c: 0002 movs r2, r0 - 8000d4e: 69bb ldr r3, [r7, #24] - 8000d50: 1ad3 subs r3, r2, r3 - 8000d52: 2b02 cmp r3, #2 - 8000d54: d901 bls.n 8000d5a <HAL_RCC_OscConfig+0x59a> - { - return HAL_TIMEOUT; - 8000d56: 2303 movs r3, #3 - 8000d58: e0b2 b.n 8000ec0 <HAL_RCC_OscConfig+0x700> - while(__HAL_RCC_GET_FLAG(RCC_FLAG_HSI48RDY) != RESET) - 8000d5a: 4b38 ldr r3, [pc, #224] ; (8000e3c <HAL_RCC_OscConfig+0x67c>) - 8000d5c: 6b5a ldr r2, [r3, #52] ; 0x34 - 8000d5e: 2380 movs r3, #128 ; 0x80 - 8000d60: 025b lsls r3, r3, #9 - 8000d62: 4013 ands r3, r2 - 8000d64: d1f0 bne.n 8000d48 <HAL_RCC_OscConfig+0x588> - 8000d66: e000 b.n 8000d6a <HAL_RCC_OscConfig+0x5aa> - if((__HAL_RCC_GET_FLAG(RCC_FLAG_HSI48RDY) != RESET) && (RCC_OscInitStruct->HSI48State != RCC_HSI48_ON)) - 8000d68: 46c0 nop ; (mov r8, r8) -#endif /* RCC_HSI48_SUPPORT */ - - /*-------------------------------- PLL Configuration -----------------------*/ - /* Check the parameters */ - assert_param(IS_RCC_PLL(RCC_OscInitStruct->PLL.PLLState)); - if ((RCC_OscInitStruct->PLL.PLLState) != RCC_PLL_NONE) - 8000d6a: 687b ldr r3, [r7, #4] - 8000d6c: 6a5b ldr r3, [r3, #36] ; 0x24 - 8000d6e: 2b00 cmp r3, #0 - 8000d70: d100 bne.n 8000d74 <HAL_RCC_OscConfig+0x5b4> - 8000d72: e0a4 b.n 8000ebe <HAL_RCC_OscConfig+0x6fe> - { - /* Check if the PLL is used as system clock or not */ - if(__HAL_RCC_GET_SYSCLK_SOURCE() != RCC_SYSCLKSOURCE_STATUS_PLLCLK) - 8000d74: 4b31 ldr r3, [pc, #196] ; (8000e3c <HAL_RCC_OscConfig+0x67c>) - 8000d76: 685b ldr r3, [r3, #4] - 8000d78: 220c movs r2, #12 - 8000d7a: 4013 ands r3, r2 - 8000d7c: 2b08 cmp r3, #8 - 8000d7e: d100 bne.n 8000d82 <HAL_RCC_OscConfig+0x5c2> - 8000d80: e078 b.n 8000e74 <HAL_RCC_OscConfig+0x6b4> - { - if((RCC_OscInitStruct->PLL.PLLState) == RCC_PLL_ON) - 8000d82: 687b ldr r3, [r7, #4] - 8000d84: 6a5b ldr r3, [r3, #36] ; 0x24 - 8000d86: 2b02 cmp r3, #2 - 8000d88: d14c bne.n 8000e24 <HAL_RCC_OscConfig+0x664> - assert_param(IS_RCC_PLLSOURCE(RCC_OscInitStruct->PLL.PLLSource)); - assert_param(IS_RCC_PLL_MUL(RCC_OscInitStruct->PLL.PLLMUL)); - assert_param(IS_RCC_PREDIV(RCC_OscInitStruct->PLL.PREDIV)); - - /* Disable the main PLL. */ - __HAL_RCC_PLL_DISABLE(); - 8000d8a: 4b2c ldr r3, [pc, #176] ; (8000e3c <HAL_RCC_OscConfig+0x67c>) - 8000d8c: 681a ldr r2, [r3, #0] - 8000d8e: 4b2b ldr r3, [pc, #172] ; (8000e3c <HAL_RCC_OscConfig+0x67c>) - 8000d90: 492e ldr r1, [pc, #184] ; (8000e4c <HAL_RCC_OscConfig+0x68c>) - 8000d92: 400a ands r2, r1 - 8000d94: 601a str r2, [r3, #0] - - /* Get Start Tick */ - tickstart = HAL_GetTick(); - 8000d96: f7ff fa9d bl 80002d4 <HAL_GetTick> - 8000d9a: 0003 movs r3, r0 - 8000d9c: 61bb str r3, [r7, #24] - - /* Wait till PLL is disabled */ - while(__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != RESET) - 8000d9e: e008 b.n 8000db2 <HAL_RCC_OscConfig+0x5f2> - { - if((HAL_GetTick() - tickstart ) > PLL_TIMEOUT_VALUE) - 8000da0: f7ff fa98 bl 80002d4 <HAL_GetTick> - 8000da4: 0002 movs r2, r0 - 8000da6: 69bb ldr r3, [r7, #24] - 8000da8: 1ad3 subs r3, r2, r3 - 8000daa: 2b02 cmp r3, #2 - 8000dac: d901 bls.n 8000db2 <HAL_RCC_OscConfig+0x5f2> - { - return HAL_TIMEOUT; - 8000dae: 2303 movs r3, #3 - 8000db0: e086 b.n 8000ec0 <HAL_RCC_OscConfig+0x700> - while(__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != RESET) - 8000db2: 4b22 ldr r3, [pc, #136] ; (8000e3c <HAL_RCC_OscConfig+0x67c>) - 8000db4: 681a ldr r2, [r3, #0] - 8000db6: 2380 movs r3, #128 ; 0x80 - 8000db8: 049b lsls r3, r3, #18 - 8000dba: 4013 ands r3, r2 - 8000dbc: d1f0 bne.n 8000da0 <HAL_RCC_OscConfig+0x5e0> - } - } - - /* Configure the main PLL clock source, predivider and multiplication factor. */ - __HAL_RCC_PLL_CONFIG(RCC_OscInitStruct->PLL.PLLSource, - 8000dbe: 4b1f ldr r3, [pc, #124] ; (8000e3c <HAL_RCC_OscConfig+0x67c>) - 8000dc0: 6adb ldr r3, [r3, #44] ; 0x2c - 8000dc2: 220f movs r2, #15 - 8000dc4: 4393 bics r3, r2 - 8000dc6: 0019 movs r1, r3 - 8000dc8: 687b ldr r3, [r7, #4] - 8000dca: 6b1a ldr r2, [r3, #48] ; 0x30 - 8000dcc: 4b1b ldr r3, [pc, #108] ; (8000e3c <HAL_RCC_OscConfig+0x67c>) - 8000dce: 430a orrs r2, r1 - 8000dd0: 62da str r2, [r3, #44] ; 0x2c - 8000dd2: 4b1a ldr r3, [pc, #104] ; (8000e3c <HAL_RCC_OscConfig+0x67c>) - 8000dd4: 685b ldr r3, [r3, #4] - 8000dd6: 4a1e ldr r2, [pc, #120] ; (8000e50 <HAL_RCC_OscConfig+0x690>) - 8000dd8: 4013 ands r3, r2 - 8000dda: 0019 movs r1, r3 - 8000ddc: 687b ldr r3, [r7, #4] - 8000dde: 6ada ldr r2, [r3, #44] ; 0x2c - 8000de0: 687b ldr r3, [r7, #4] - 8000de2: 6a9b ldr r3, [r3, #40] ; 0x28 - 8000de4: 431a orrs r2, r3 - 8000de6: 4b15 ldr r3, [pc, #84] ; (8000e3c <HAL_RCC_OscConfig+0x67c>) - 8000de8: 430a orrs r2, r1 - 8000dea: 605a str r2, [r3, #4] - RCC_OscInitStruct->PLL.PREDIV, - RCC_OscInitStruct->PLL.PLLMUL); - /* Enable the main PLL. */ - __HAL_RCC_PLL_ENABLE(); - 8000dec: 4b13 ldr r3, [pc, #76] ; (8000e3c <HAL_RCC_OscConfig+0x67c>) - 8000dee: 681a ldr r2, [r3, #0] - 8000df0: 4b12 ldr r3, [pc, #72] ; (8000e3c <HAL_RCC_OscConfig+0x67c>) - 8000df2: 2180 movs r1, #128 ; 0x80 - 8000df4: 0449 lsls r1, r1, #17 - 8000df6: 430a orrs r2, r1 - 8000df8: 601a str r2, [r3, #0] - - /* Get Start Tick */ - tickstart = HAL_GetTick(); - 8000dfa: f7ff fa6b bl 80002d4 <HAL_GetTick> - 8000dfe: 0003 movs r3, r0 - 8000e00: 61bb str r3, [r7, #24] - - /* Wait till PLL is ready */ - while(__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) == RESET) - 8000e02: e008 b.n 8000e16 <HAL_RCC_OscConfig+0x656> - { - if((HAL_GetTick() - tickstart ) > PLL_TIMEOUT_VALUE) - 8000e04: f7ff fa66 bl 80002d4 <HAL_GetTick> - 8000e08: 0002 movs r2, r0 - 8000e0a: 69bb ldr r3, [r7, #24] - 8000e0c: 1ad3 subs r3, r2, r3 - 8000e0e: 2b02 cmp r3, #2 - 8000e10: d901 bls.n 8000e16 <HAL_RCC_OscConfig+0x656> - { - return HAL_TIMEOUT; - 8000e12: 2303 movs r3, #3 - 8000e14: e054 b.n 8000ec0 <HAL_RCC_OscConfig+0x700> - while(__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) == RESET) - 8000e16: 4b09 ldr r3, [pc, #36] ; (8000e3c <HAL_RCC_OscConfig+0x67c>) - 8000e18: 681a ldr r2, [r3, #0] - 8000e1a: 2380 movs r3, #128 ; 0x80 - 8000e1c: 049b lsls r3, r3, #18 - 8000e1e: 4013 ands r3, r2 - 8000e20: d0f0 beq.n 8000e04 <HAL_RCC_OscConfig+0x644> - 8000e22: e04c b.n 8000ebe <HAL_RCC_OscConfig+0x6fe> - } - } - else - { - /* Disable the main PLL. */ - __HAL_RCC_PLL_DISABLE(); - 8000e24: 4b05 ldr r3, [pc, #20] ; (8000e3c <HAL_RCC_OscConfig+0x67c>) - 8000e26: 681a ldr r2, [r3, #0] - 8000e28: 4b04 ldr r3, [pc, #16] ; (8000e3c <HAL_RCC_OscConfig+0x67c>) - 8000e2a: 4908 ldr r1, [pc, #32] ; (8000e4c <HAL_RCC_OscConfig+0x68c>) - 8000e2c: 400a ands r2, r1 - 8000e2e: 601a str r2, [r3, #0] - - /* Get Start Tick */ - tickstart = HAL_GetTick(); - 8000e30: f7ff fa50 bl 80002d4 <HAL_GetTick> - 8000e34: 0003 movs r3, r0 - 8000e36: 61bb str r3, [r7, #24] - - /* Wait till PLL is disabled */ - while(__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != RESET) - 8000e38: e015 b.n 8000e66 <HAL_RCC_OscConfig+0x6a6> - 8000e3a: 46c0 nop ; (mov r8, r8) - 8000e3c: 40021000 .word 0x40021000 - 8000e40: 00001388 .word 0x00001388 - 8000e44: efffffff .word 0xefffffff - 8000e48: fffeffff .word 0xfffeffff - 8000e4c: feffffff .word 0xfeffffff - 8000e50: ffc27fff .word 0xffc27fff - { - if((HAL_GetTick() - tickstart ) > PLL_TIMEOUT_VALUE) - 8000e54: f7ff fa3e bl 80002d4 <HAL_GetTick> - 8000e58: 0002 movs r2, r0 - 8000e5a: 69bb ldr r3, [r7, #24] - 8000e5c: 1ad3 subs r3, r2, r3 - 8000e5e: 2b02 cmp r3, #2 - 8000e60: d901 bls.n 8000e66 <HAL_RCC_OscConfig+0x6a6> - { - return HAL_TIMEOUT; - 8000e62: 2303 movs r3, #3 - 8000e64: e02c b.n 8000ec0 <HAL_RCC_OscConfig+0x700> - while(__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != RESET) - 8000e66: 4b18 ldr r3, [pc, #96] ; (8000ec8 <HAL_RCC_OscConfig+0x708>) - 8000e68: 681a ldr r2, [r3, #0] - 8000e6a: 2380 movs r3, #128 ; 0x80 - 8000e6c: 049b lsls r3, r3, #18 - 8000e6e: 4013 ands r3, r2 - 8000e70: d1f0 bne.n 8000e54 <HAL_RCC_OscConfig+0x694> - 8000e72: e024 b.n 8000ebe <HAL_RCC_OscConfig+0x6fe> - } - } - else - { - /* Check if there is a request to disable the PLL used as System clock source */ - if((RCC_OscInitStruct->PLL.PLLState) == RCC_PLL_OFF) - 8000e74: 687b ldr r3, [r7, #4] - 8000e76: 6a5b ldr r3, [r3, #36] ; 0x24 - 8000e78: 2b01 cmp r3, #1 - 8000e7a: d101 bne.n 8000e80 <HAL_RCC_OscConfig+0x6c0> - { - return HAL_ERROR; - 8000e7c: 2301 movs r3, #1 - 8000e7e: e01f b.n 8000ec0 <HAL_RCC_OscConfig+0x700> - } - else - { - /* Do not return HAL_ERROR if request repeats the current configuration */ - pll_config = RCC->CFGR; - 8000e80: 4b11 ldr r3, [pc, #68] ; (8000ec8 <HAL_RCC_OscConfig+0x708>) - 8000e82: 685b ldr r3, [r3, #4] - 8000e84: 617b str r3, [r7, #20] - pll_config2 = RCC->CFGR2; - 8000e86: 4b10 ldr r3, [pc, #64] ; (8000ec8 <HAL_RCC_OscConfig+0x708>) - 8000e88: 6adb ldr r3, [r3, #44] ; 0x2c - 8000e8a: 613b str r3, [r7, #16] - if((READ_BIT(pll_config, RCC_CFGR_PLLSRC) != RCC_OscInitStruct->PLL.PLLSource) || - 8000e8c: 697a ldr r2, [r7, #20] - 8000e8e: 23c0 movs r3, #192 ; 0xc0 - 8000e90: 025b lsls r3, r3, #9 - 8000e92: 401a ands r2, r3 - 8000e94: 687b ldr r3, [r7, #4] - 8000e96: 6a9b ldr r3, [r3, #40] ; 0x28 - 8000e98: 429a cmp r2, r3 - 8000e9a: d10e bne.n 8000eba <HAL_RCC_OscConfig+0x6fa> - (READ_BIT(pll_config2, RCC_CFGR2_PREDIV) != RCC_OscInitStruct->PLL.PREDIV) || - 8000e9c: 693b ldr r3, [r7, #16] - 8000e9e: 220f movs r2, #15 - 8000ea0: 401a ands r2, r3 - 8000ea2: 687b ldr r3, [r7, #4] - 8000ea4: 6b1b ldr r3, [r3, #48] ; 0x30 - if((READ_BIT(pll_config, RCC_CFGR_PLLSRC) != RCC_OscInitStruct->PLL.PLLSource) || - 8000ea6: 429a cmp r2, r3 - 8000ea8: d107 bne.n 8000eba <HAL_RCC_OscConfig+0x6fa> - (READ_BIT(pll_config, RCC_CFGR_PLLMUL) != RCC_OscInitStruct->PLL.PLLMUL)) - 8000eaa: 697a ldr r2, [r7, #20] - 8000eac: 23f0 movs r3, #240 ; 0xf0 - 8000eae: 039b lsls r3, r3, #14 - 8000eb0: 401a ands r2, r3 - 8000eb2: 687b ldr r3, [r7, #4] - 8000eb4: 6adb ldr r3, [r3, #44] ; 0x2c - (READ_BIT(pll_config2, RCC_CFGR2_PREDIV) != RCC_OscInitStruct->PLL.PREDIV) || - 8000eb6: 429a cmp r2, r3 - 8000eb8: d001 beq.n 8000ebe <HAL_RCC_OscConfig+0x6fe> - { - return HAL_ERROR; - 8000eba: 2301 movs r3, #1 - 8000ebc: e000 b.n 8000ec0 <HAL_RCC_OscConfig+0x700> - } - } - } - } - - return HAL_OK; - 8000ebe: 2300 movs r3, #0 -} - 8000ec0: 0018 movs r0, r3 - 8000ec2: 46bd mov sp, r7 - 8000ec4: b008 add sp, #32 - 8000ec6: bd80 pop {r7, pc} - 8000ec8: 40021000 .word 0x40021000 - -08000ecc <HAL_RCC_ClockConfig>: - * 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) -{ - 8000ecc: b580 push {r7, lr} - 8000ece: b084 sub sp, #16 - 8000ed0: af00 add r7, sp, #0 - 8000ed2: 6078 str r0, [r7, #4] - 8000ed4: 6039 str r1, [r7, #0] - uint32_t tickstart; - - /* Check Null pointer */ - if(RCC_ClkInitStruct == NULL) - 8000ed6: 687b ldr r3, [r7, #4] - 8000ed8: 2b00 cmp r3, #0 - 8000eda: d101 bne.n 8000ee0 <HAL_RCC_ClockConfig+0x14> - { - return HAL_ERROR; - 8000edc: 2301 movs r3, #1 - 8000ede: e0bf b.n 8001060 <HAL_RCC_ClockConfig+0x194> - /* To correctly read data from FLASH memory, the number of wait states (LATENCY) - must be correctly programmed according to the frequency of the CPU clock - (HCLK) of the device. */ - - /* Increasing the number of wait states because of higher CPU frequency */ - if(FLatency > __HAL_FLASH_GET_LATENCY()) - 8000ee0: 4b61 ldr r3, [pc, #388] ; (8001068 <HAL_RCC_ClockConfig+0x19c>) - 8000ee2: 681b ldr r3, [r3, #0] - 8000ee4: 2201 movs r2, #1 - 8000ee6: 4013 ands r3, r2 - 8000ee8: 683a ldr r2, [r7, #0] - 8000eea: 429a cmp r2, r3 - 8000eec: d911 bls.n 8000f12 <HAL_RCC_ClockConfig+0x46> - { - /* Program the new number of wait states to the LATENCY bits in the FLASH_ACR register */ - __HAL_FLASH_SET_LATENCY(FLatency); - 8000eee: 4b5e ldr r3, [pc, #376] ; (8001068 <HAL_RCC_ClockConfig+0x19c>) - 8000ef0: 681b ldr r3, [r3, #0] - 8000ef2: 2201 movs r2, #1 - 8000ef4: 4393 bics r3, r2 - 8000ef6: 0019 movs r1, r3 - 8000ef8: 4b5b ldr r3, [pc, #364] ; (8001068 <HAL_RCC_ClockConfig+0x19c>) - 8000efa: 683a ldr r2, [r7, #0] - 8000efc: 430a orrs r2, r1 - 8000efe: 601a str r2, [r3, #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) - 8000f00: 4b59 ldr r3, [pc, #356] ; (8001068 <HAL_RCC_ClockConfig+0x19c>) - 8000f02: 681b ldr r3, [r3, #0] - 8000f04: 2201 movs r2, #1 - 8000f06: 4013 ands r3, r2 - 8000f08: 683a ldr r2, [r7, #0] - 8000f0a: 429a cmp r2, r3 - 8000f0c: d001 beq.n 8000f12 <HAL_RCC_ClockConfig+0x46> - { - return HAL_ERROR; - 8000f0e: 2301 movs r3, #1 - 8000f10: e0a6 b.n 8001060 <HAL_RCC_ClockConfig+0x194> - } - } - - /*-------------------------- HCLK Configuration --------------------------*/ - if(((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_HCLK) == RCC_CLOCKTYPE_HCLK) - 8000f12: 687b ldr r3, [r7, #4] - 8000f14: 681b ldr r3, [r3, #0] - 8000f16: 2202 movs r2, #2 - 8000f18: 4013 ands r3, r2 - 8000f1a: d015 beq.n 8000f48 <HAL_RCC_ClockConfig+0x7c> - { - /* Set the highest APB divider 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) - 8000f1c: 687b ldr r3, [r7, #4] - 8000f1e: 681b ldr r3, [r3, #0] - 8000f20: 2204 movs r2, #4 - 8000f22: 4013 ands r3, r2 - 8000f24: d006 beq.n 8000f34 <HAL_RCC_ClockConfig+0x68> - { - MODIFY_REG(RCC->CFGR, RCC_CFGR_PPRE, RCC_HCLK_DIV16); - 8000f26: 4b51 ldr r3, [pc, #324] ; (800106c <HAL_RCC_ClockConfig+0x1a0>) - 8000f28: 685a ldr r2, [r3, #4] - 8000f2a: 4b50 ldr r3, [pc, #320] ; (800106c <HAL_RCC_ClockConfig+0x1a0>) - 8000f2c: 21e0 movs r1, #224 ; 0xe0 - 8000f2e: 00c9 lsls r1, r1, #3 - 8000f30: 430a orrs r2, r1 - 8000f32: 605a str r2, [r3, #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); - 8000f34: 4b4d ldr r3, [pc, #308] ; (800106c <HAL_RCC_ClockConfig+0x1a0>) - 8000f36: 685b ldr r3, [r3, #4] - 8000f38: 22f0 movs r2, #240 ; 0xf0 - 8000f3a: 4393 bics r3, r2 - 8000f3c: 0019 movs r1, r3 - 8000f3e: 687b ldr r3, [r7, #4] - 8000f40: 689a ldr r2, [r3, #8] - 8000f42: 4b4a ldr r3, [pc, #296] ; (800106c <HAL_RCC_ClockConfig+0x1a0>) - 8000f44: 430a orrs r2, r1 - 8000f46: 605a str r2, [r3, #4] - } - - /*------------------------- SYSCLK Configuration ---------------------------*/ - if(((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_SYSCLK) == RCC_CLOCKTYPE_SYSCLK) - 8000f48: 687b ldr r3, [r7, #4] - 8000f4a: 681b ldr r3, [r3, #0] - 8000f4c: 2201 movs r2, #1 - 8000f4e: 4013 ands r3, r2 - 8000f50: d04c beq.n 8000fec <HAL_RCC_ClockConfig+0x120> - { - assert_param(IS_RCC_SYSCLKSOURCE(RCC_ClkInitStruct->SYSCLKSource)); - - /* HSE is selected as System Clock Source */ - if(RCC_ClkInitStruct->SYSCLKSource == RCC_SYSCLKSOURCE_HSE) - 8000f52: 687b ldr r3, [r7, #4] - 8000f54: 685b ldr r3, [r3, #4] - 8000f56: 2b01 cmp r3, #1 - 8000f58: d107 bne.n 8000f6a <HAL_RCC_ClockConfig+0x9e> - { - /* Check the HSE ready flag */ - if(__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) == RESET) - 8000f5a: 4b44 ldr r3, [pc, #272] ; (800106c <HAL_RCC_ClockConfig+0x1a0>) - 8000f5c: 681a ldr r2, [r3, #0] - 8000f5e: 2380 movs r3, #128 ; 0x80 - 8000f60: 029b lsls r3, r3, #10 - 8000f62: 4013 ands r3, r2 - 8000f64: d120 bne.n 8000fa8 <HAL_RCC_ClockConfig+0xdc> - { - return HAL_ERROR; - 8000f66: 2301 movs r3, #1 - 8000f68: e07a b.n 8001060 <HAL_RCC_ClockConfig+0x194> - } - } - /* PLL is selected as System Clock Source */ - else if(RCC_ClkInitStruct->SYSCLKSource == RCC_SYSCLKSOURCE_PLLCLK) - 8000f6a: 687b ldr r3, [r7, #4] - 8000f6c: 685b ldr r3, [r3, #4] - 8000f6e: 2b02 cmp r3, #2 - 8000f70: d107 bne.n 8000f82 <HAL_RCC_ClockConfig+0xb6> - { - /* Check the PLL ready flag */ - if(__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) == RESET) - 8000f72: 4b3e ldr r3, [pc, #248] ; (800106c <HAL_RCC_ClockConfig+0x1a0>) - 8000f74: 681a ldr r2, [r3, #0] - 8000f76: 2380 movs r3, #128 ; 0x80 - 8000f78: 049b lsls r3, r3, #18 - 8000f7a: 4013 ands r3, r2 - 8000f7c: d114 bne.n 8000fa8 <HAL_RCC_ClockConfig+0xdc> - { - return HAL_ERROR; - 8000f7e: 2301 movs r3, #1 - 8000f80: e06e b.n 8001060 <HAL_RCC_ClockConfig+0x194> - } - } -#if defined(RCC_CFGR_SWS_HSI48) - /* HSI48 is selected as System Clock Source */ - else if(RCC_ClkInitStruct->SYSCLKSource == RCC_SYSCLKSOURCE_HSI48) - 8000f82: 687b ldr r3, [r7, #4] - 8000f84: 685b ldr r3, [r3, #4] - 8000f86: 2b03 cmp r3, #3 - 8000f88: d107 bne.n 8000f9a <HAL_RCC_ClockConfig+0xce> - { - /* Check the HSI48 ready flag */ - if(__HAL_RCC_GET_FLAG(RCC_FLAG_HSI48RDY) == RESET) - 8000f8a: 4b38 ldr r3, [pc, #224] ; (800106c <HAL_RCC_ClockConfig+0x1a0>) - 8000f8c: 6b5a ldr r2, [r3, #52] ; 0x34 - 8000f8e: 2380 movs r3, #128 ; 0x80 - 8000f90: 025b lsls r3, r3, #9 - 8000f92: 4013 ands r3, r2 - 8000f94: d108 bne.n 8000fa8 <HAL_RCC_ClockConfig+0xdc> - { - return HAL_ERROR; - 8000f96: 2301 movs r3, #1 - 8000f98: e062 b.n 8001060 <HAL_RCC_ClockConfig+0x194> -#endif /* RCC_CFGR_SWS_HSI48 */ - /* HSI is selected as System Clock Source */ - else - { - /* Check the HSI ready flag */ - if(__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) == RESET) - 8000f9a: 4b34 ldr r3, [pc, #208] ; (800106c <HAL_RCC_ClockConfig+0x1a0>) - 8000f9c: 681b ldr r3, [r3, #0] - 8000f9e: 2202 movs r2, #2 - 8000fa0: 4013 ands r3, r2 - 8000fa2: d101 bne.n 8000fa8 <HAL_RCC_ClockConfig+0xdc> - { - return HAL_ERROR; - 8000fa4: 2301 movs r3, #1 - 8000fa6: e05b b.n 8001060 <HAL_RCC_ClockConfig+0x194> - } - } - __HAL_RCC_SYSCLK_CONFIG(RCC_ClkInitStruct->SYSCLKSource); - 8000fa8: 4b30 ldr r3, [pc, #192] ; (800106c <HAL_RCC_ClockConfig+0x1a0>) - 8000faa: 685b ldr r3, [r3, #4] - 8000fac: 2203 movs r2, #3 - 8000fae: 4393 bics r3, r2 - 8000fb0: 0019 movs r1, r3 - 8000fb2: 687b ldr r3, [r7, #4] - 8000fb4: 685a ldr r2, [r3, #4] - 8000fb6: 4b2d ldr r3, [pc, #180] ; (800106c <HAL_RCC_ClockConfig+0x1a0>) - 8000fb8: 430a orrs r2, r1 - 8000fba: 605a str r2, [r3, #4] - - /* Get Start Tick */ - tickstart = HAL_GetTick(); - 8000fbc: f7ff f98a bl 80002d4 <HAL_GetTick> - 8000fc0: 0003 movs r3, r0 - 8000fc2: 60fb str r3, [r7, #12] - - while (__HAL_RCC_GET_SYSCLK_SOURCE() != (RCC_ClkInitStruct->SYSCLKSource << RCC_CFGR_SWS_Pos)) - 8000fc4: e009 b.n 8000fda <HAL_RCC_ClockConfig+0x10e> - { - if((HAL_GetTick() - tickstart ) > CLOCKSWITCH_TIMEOUT_VALUE) - 8000fc6: f7ff f985 bl 80002d4 <HAL_GetTick> - 8000fca: 0002 movs r2, r0 - 8000fcc: 68fb ldr r3, [r7, #12] - 8000fce: 1ad3 subs r3, r2, r3 - 8000fd0: 4a27 ldr r2, [pc, #156] ; (8001070 <HAL_RCC_ClockConfig+0x1a4>) - 8000fd2: 4293 cmp r3, r2 - 8000fd4: d901 bls.n 8000fda <HAL_RCC_ClockConfig+0x10e> - { - return HAL_TIMEOUT; - 8000fd6: 2303 movs r3, #3 - 8000fd8: e042 b.n 8001060 <HAL_RCC_ClockConfig+0x194> - while (__HAL_RCC_GET_SYSCLK_SOURCE() != (RCC_ClkInitStruct->SYSCLKSource << RCC_CFGR_SWS_Pos)) - 8000fda: 4b24 ldr r3, [pc, #144] ; (800106c <HAL_RCC_ClockConfig+0x1a0>) - 8000fdc: 685b ldr r3, [r3, #4] - 8000fde: 220c movs r2, #12 - 8000fe0: 401a ands r2, r3 - 8000fe2: 687b ldr r3, [r7, #4] - 8000fe4: 685b ldr r3, [r3, #4] - 8000fe6: 009b lsls r3, r3, #2 - 8000fe8: 429a cmp r2, r3 - 8000fea: d1ec bne.n 8000fc6 <HAL_RCC_ClockConfig+0xfa> - } - } - } - - /* Decreasing the number of wait states because of lower CPU frequency */ - if(FLatency < __HAL_FLASH_GET_LATENCY()) - 8000fec: 4b1e ldr r3, [pc, #120] ; (8001068 <HAL_RCC_ClockConfig+0x19c>) - 8000fee: 681b ldr r3, [r3, #0] - 8000ff0: 2201 movs r2, #1 - 8000ff2: 4013 ands r3, r2 - 8000ff4: 683a ldr r2, [r7, #0] - 8000ff6: 429a cmp r2, r3 - 8000ff8: d211 bcs.n 800101e <HAL_RCC_ClockConfig+0x152> - { - /* Program the new number of wait states to the LATENCY bits in the FLASH_ACR register */ - __HAL_FLASH_SET_LATENCY(FLatency); - 8000ffa: 4b1b ldr r3, [pc, #108] ; (8001068 <HAL_RCC_ClockConfig+0x19c>) - 8000ffc: 681b ldr r3, [r3, #0] - 8000ffe: 2201 movs r2, #1 - 8001000: 4393 bics r3, r2 - 8001002: 0019 movs r1, r3 - 8001004: 4b18 ldr r3, [pc, #96] ; (8001068 <HAL_RCC_ClockConfig+0x19c>) - 8001006: 683a ldr r2, [r7, #0] - 8001008: 430a orrs r2, r1 - 800100a: 601a str r2, [r3, #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) - 800100c: 4b16 ldr r3, [pc, #88] ; (8001068 <HAL_RCC_ClockConfig+0x19c>) - 800100e: 681b ldr r3, [r3, #0] - 8001010: 2201 movs r2, #1 - 8001012: 4013 ands r3, r2 - 8001014: 683a ldr r2, [r7, #0] - 8001016: 429a cmp r2, r3 - 8001018: d001 beq.n 800101e <HAL_RCC_ClockConfig+0x152> - { - return HAL_ERROR; - 800101a: 2301 movs r3, #1 - 800101c: e020 b.n 8001060 <HAL_RCC_ClockConfig+0x194> - } - } - - /*-------------------------- PCLK1 Configuration ---------------------------*/ - if(((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_PCLK1) == RCC_CLOCKTYPE_PCLK1) - 800101e: 687b ldr r3, [r7, #4] - 8001020: 681b ldr r3, [r3, #0] - 8001022: 2204 movs r2, #4 - 8001024: 4013 ands r3, r2 - 8001026: d009 beq.n 800103c <HAL_RCC_ClockConfig+0x170> - { - assert_param(IS_RCC_PCLK(RCC_ClkInitStruct->APB1CLKDivider)); - MODIFY_REG(RCC->CFGR, RCC_CFGR_PPRE, RCC_ClkInitStruct->APB1CLKDivider); - 8001028: 4b10 ldr r3, [pc, #64] ; (800106c <HAL_RCC_ClockConfig+0x1a0>) - 800102a: 685b ldr r3, [r3, #4] - 800102c: 4a11 ldr r2, [pc, #68] ; (8001074 <HAL_RCC_ClockConfig+0x1a8>) - 800102e: 4013 ands r3, r2 - 8001030: 0019 movs r1, r3 - 8001032: 687b ldr r3, [r7, #4] - 8001034: 68da ldr r2, [r3, #12] - 8001036: 4b0d ldr r3, [pc, #52] ; (800106c <HAL_RCC_ClockConfig+0x1a0>) - 8001038: 430a orrs r2, r1 - 800103a: 605a str r2, [r3, #4] - } - - /* Update the SystemCoreClock global variable */ - SystemCoreClock = HAL_RCC_GetSysClockFreq() >> AHBPrescTable[(RCC->CFGR & RCC_CFGR_HPRE)>> RCC_CFGR_HPRE_BITNUMBER]; - 800103c: f000 f820 bl 8001080 <HAL_RCC_GetSysClockFreq> - 8001040: 0001 movs r1, r0 - 8001042: 4b0a ldr r3, [pc, #40] ; (800106c <HAL_RCC_ClockConfig+0x1a0>) - 8001044: 685b ldr r3, [r3, #4] - 8001046: 091b lsrs r3, r3, #4 - 8001048: 220f movs r2, #15 - 800104a: 4013 ands r3, r2 - 800104c: 4a0a ldr r2, [pc, #40] ; (8001078 <HAL_RCC_ClockConfig+0x1ac>) - 800104e: 5cd3 ldrb r3, [r2, r3] - 8001050: 000a movs r2, r1 - 8001052: 40da lsrs r2, r3 - 8001054: 4b09 ldr r3, [pc, #36] ; (800107c <HAL_RCC_ClockConfig+0x1b0>) - 8001056: 601a str r2, [r3, #0] - - /* Configure the source of time base considering new system clocks settings*/ - HAL_InitTick (TICK_INT_PRIORITY); - 8001058: 2000 movs r0, #0 - 800105a: f7ff f8f5 bl 8000248 <HAL_InitTick> - - return HAL_OK; - 800105e: 2300 movs r3, #0 -} - 8001060: 0018 movs r0, r3 - 8001062: 46bd mov sp, r7 - 8001064: b004 add sp, #16 - 8001066: bd80 pop {r7, pc} - 8001068: 40022000 .word 0x40022000 - 800106c: 40021000 .word 0x40021000 - 8001070: 00001388 .word 0x00001388 - 8001074: fffff8ff .word 0xfffff8ff - 8001078: 08001438 .word 0x08001438 - 800107c: 20000008 .word 0x20000008 - -08001080 <HAL_RCC_GetSysClockFreq>: - * right SYSCLK value. Otherwise, any configuration based on this function will be incorrect. - * - * @retval SYSCLK frequency - */ -uint32_t HAL_RCC_GetSysClockFreq(void) -{ - 8001080: b590 push {r4, r7, lr} - 8001082: b08f sub sp, #60 ; 0x3c - 8001084: af00 add r7, sp, #0 - const uint8_t aPLLMULFactorTable[16] = { 2U, 3U, 4U, 5U, 6U, 7U, 8U, 9U, - 8001086: 2314 movs r3, #20 - 8001088: 18fb adds r3, r7, r3 - 800108a: 4a37 ldr r2, [pc, #220] ; (8001168 <HAL_RCC_GetSysClockFreq+0xe8>) - 800108c: ca13 ldmia r2!, {r0, r1, r4} - 800108e: c313 stmia r3!, {r0, r1, r4} - 8001090: 6812 ldr r2, [r2, #0] - 8001092: 601a str r2, [r3, #0] - 10U, 11U, 12U, 13U, 14U, 15U, 16U, 16U}; - const uint8_t aPredivFactorTable[16] = { 1U, 2U, 3U, 4U, 5U, 6U, 7U, 8U, - 8001094: 1d3b adds r3, r7, #4 - 8001096: 4a35 ldr r2, [pc, #212] ; (800116c <HAL_RCC_GetSysClockFreq+0xec>) - 8001098: ca13 ldmia r2!, {r0, r1, r4} - 800109a: c313 stmia r3!, {r0, r1, r4} - 800109c: 6812 ldr r2, [r2, #0] - 800109e: 601a str r2, [r3, #0] - 9U,10U, 11U, 12U, 13U, 14U, 15U, 16U}; - - uint32_t tmpreg = 0U, prediv = 0U, pllclk = 0U, pllmul = 0U; - 80010a0: 2300 movs r3, #0 - 80010a2: 62fb str r3, [r7, #44] ; 0x2c - 80010a4: 2300 movs r3, #0 - 80010a6: 62bb str r3, [r7, #40] ; 0x28 - 80010a8: 2300 movs r3, #0 - 80010aa: 637b str r3, [r7, #52] ; 0x34 - 80010ac: 2300 movs r3, #0 - 80010ae: 627b str r3, [r7, #36] ; 0x24 - uint32_t sysclockfreq = 0U; - 80010b0: 2300 movs r3, #0 - 80010b2: 633b str r3, [r7, #48] ; 0x30 - - tmpreg = RCC->CFGR; - 80010b4: 4b2e ldr r3, [pc, #184] ; (8001170 <HAL_RCC_GetSysClockFreq+0xf0>) - 80010b6: 685b ldr r3, [r3, #4] - 80010b8: 62fb str r3, [r7, #44] ; 0x2c - - /* Get SYSCLK source -------------------------------------------------------*/ - switch (tmpreg & RCC_CFGR_SWS) - 80010ba: 6afb ldr r3, [r7, #44] ; 0x2c - 80010bc: 220c movs r2, #12 - 80010be: 4013 ands r3, r2 - 80010c0: 2b08 cmp r3, #8 - 80010c2: d006 beq.n 80010d2 <HAL_RCC_GetSysClockFreq+0x52> - 80010c4: 2b0c cmp r3, #12 - 80010c6: d043 beq.n 8001150 <HAL_RCC_GetSysClockFreq+0xd0> - 80010c8: 2b04 cmp r3, #4 - 80010ca: d144 bne.n 8001156 <HAL_RCC_GetSysClockFreq+0xd6> - { - case RCC_SYSCLKSOURCE_STATUS_HSE: /* HSE used as system clock */ - { - sysclockfreq = HSE_VALUE; - 80010cc: 4b29 ldr r3, [pc, #164] ; (8001174 <HAL_RCC_GetSysClockFreq+0xf4>) - 80010ce: 633b str r3, [r7, #48] ; 0x30 - break; - 80010d0: e044 b.n 800115c <HAL_RCC_GetSysClockFreq+0xdc> - } - case RCC_SYSCLKSOURCE_STATUS_PLLCLK: /* PLL used as system clock */ - { - pllmul = aPLLMULFactorTable[(uint32_t)(tmpreg & RCC_CFGR_PLLMUL) >> RCC_CFGR_PLLMUL_BITNUMBER]; - 80010d2: 6afb ldr r3, [r7, #44] ; 0x2c - 80010d4: 0c9b lsrs r3, r3, #18 - 80010d6: 220f movs r2, #15 - 80010d8: 4013 ands r3, r2 - 80010da: 2214 movs r2, #20 - 80010dc: 18ba adds r2, r7, r2 - 80010de: 5cd3 ldrb r3, [r2, r3] - 80010e0: 627b str r3, [r7, #36] ; 0x24 - prediv = aPredivFactorTable[(uint32_t)(RCC->CFGR2 & RCC_CFGR2_PREDIV) >> RCC_CFGR2_PREDIV_BITNUMBER]; - 80010e2: 4b23 ldr r3, [pc, #140] ; (8001170 <HAL_RCC_GetSysClockFreq+0xf0>) - 80010e4: 6adb ldr r3, [r3, #44] ; 0x2c - 80010e6: 220f movs r2, #15 - 80010e8: 4013 ands r3, r2 - 80010ea: 1d3a adds r2, r7, #4 - 80010ec: 5cd3 ldrb r3, [r2, r3] - 80010ee: 62bb str r3, [r7, #40] ; 0x28 - if ((tmpreg & RCC_CFGR_PLLSRC) == RCC_PLLSOURCE_HSE) - 80010f0: 6afa ldr r2, [r7, #44] ; 0x2c - 80010f2: 23c0 movs r3, #192 ; 0xc0 - 80010f4: 025b lsls r3, r3, #9 - 80010f6: 401a ands r2, r3 - 80010f8: 2380 movs r3, #128 ; 0x80 - 80010fa: 025b lsls r3, r3, #9 - 80010fc: 429a cmp r2, r3 - 80010fe: d109 bne.n 8001114 <HAL_RCC_GetSysClockFreq+0x94> - { - /* HSE used as PLL clock source : PLLCLK = HSE/PREDIV * PLLMUL */ - pllclk = (uint32_t)((uint64_t) HSE_VALUE / (uint64_t) (prediv)) * ((uint64_t) pllmul); - 8001100: 6ab9 ldr r1, [r7, #40] ; 0x28 - 8001102: 481c ldr r0, [pc, #112] ; (8001174 <HAL_RCC_GetSysClockFreq+0xf4>) - 8001104: f7ff f800 bl 8000108 <__udivsi3> - 8001108: 0003 movs r3, r0 - 800110a: 001a movs r2, r3 - 800110c: 6a7b ldr r3, [r7, #36] ; 0x24 - 800110e: 4353 muls r3, r2 - 8001110: 637b str r3, [r7, #52] ; 0x34 - 8001112: e01a b.n 800114a <HAL_RCC_GetSysClockFreq+0xca> - } -#if defined(RCC_CFGR_PLLSRC_HSI48_PREDIV) - else if ((tmpreg & RCC_CFGR_PLLSRC) == RCC_PLLSOURCE_HSI48) - 8001114: 6afa ldr r2, [r7, #44] ; 0x2c - 8001116: 23c0 movs r3, #192 ; 0xc0 - 8001118: 025b lsls r3, r3, #9 - 800111a: 401a ands r2, r3 - 800111c: 23c0 movs r3, #192 ; 0xc0 - 800111e: 025b lsls r3, r3, #9 - 8001120: 429a cmp r2, r3 - 8001122: d109 bne.n 8001138 <HAL_RCC_GetSysClockFreq+0xb8> - { - /* HSI48 used as PLL clock source : PLLCLK = HSI48/PREDIV * PLLMUL */ - pllclk = (uint32_t)((uint64_t) HSI48_VALUE / (uint64_t) (prediv)) * ((uint64_t) pllmul); - 8001124: 6ab9 ldr r1, [r7, #40] ; 0x28 - 8001126: 4814 ldr r0, [pc, #80] ; (8001178 <HAL_RCC_GetSysClockFreq+0xf8>) - 8001128: f7fe ffee bl 8000108 <__udivsi3> - 800112c: 0003 movs r3, r0 - 800112e: 001a movs r2, r3 - 8001130: 6a7b ldr r3, [r7, #36] ; 0x24 - 8001132: 4353 muls r3, r2 - 8001134: 637b str r3, [r7, #52] ; 0x34 - 8001136: e008 b.n 800114a <HAL_RCC_GetSysClockFreq+0xca> -#endif /* RCC_CFGR_PLLSRC_HSI48_PREDIV */ - else - { -#if (defined(STM32F042x6) || defined(STM32F048xx) || defined(STM32F070x6) || defined(STM32F071xB) || defined(STM32F072xB) || defined(STM32F078xx) || defined(STM32F070xB) || defined(STM32F091xC) || defined(STM32F098xx) || defined(STM32F030xC)) - /* HSI used as PLL clock source : PLLCLK = HSI/PREDIV * PLLMUL */ - pllclk = (uint32_t)((uint64_t) HSI_VALUE / (uint64_t) (prediv)) * ((uint64_t) pllmul); - 8001138: 6ab9 ldr r1, [r7, #40] ; 0x28 - 800113a: 480e ldr r0, [pc, #56] ; (8001174 <HAL_RCC_GetSysClockFreq+0xf4>) - 800113c: f7fe ffe4 bl 8000108 <__udivsi3> - 8001140: 0003 movs r3, r0 - 8001142: 001a movs r2, r3 - 8001144: 6a7b ldr r3, [r7, #36] ; 0x24 - 8001146: 4353 muls r3, r2 - 8001148: 637b str r3, [r7, #52] ; 0x34 -#else - /* HSI used as PLL clock source : PLLCLK = HSI/2 * PLLMUL */ - pllclk = (uint32_t)((uint64_t) (HSI_VALUE >> 1U) * ((uint64_t) pllmul)); -#endif - } - sysclockfreq = pllclk; - 800114a: 6b7b ldr r3, [r7, #52] ; 0x34 - 800114c: 633b str r3, [r7, #48] ; 0x30 - break; - 800114e: e005 b.n 800115c <HAL_RCC_GetSysClockFreq+0xdc> - } -#if defined(RCC_CFGR_SWS_HSI48) - case RCC_SYSCLKSOURCE_STATUS_HSI48: /* HSI48 used as system clock source */ - { - sysclockfreq = HSI48_VALUE; - 8001150: 4b09 ldr r3, [pc, #36] ; (8001178 <HAL_RCC_GetSysClockFreq+0xf8>) - 8001152: 633b str r3, [r7, #48] ; 0x30 - break; - 8001154: e002 b.n 800115c <HAL_RCC_GetSysClockFreq+0xdc> - } -#endif /* RCC_CFGR_SWS_HSI48 */ - case RCC_SYSCLKSOURCE_STATUS_HSI: /* HSI used as system clock source */ - default: /* HSI used as system clock */ - { - sysclockfreq = HSI_VALUE; - 8001156: 4b07 ldr r3, [pc, #28] ; (8001174 <HAL_RCC_GetSysClockFreq+0xf4>) - 8001158: 633b str r3, [r7, #48] ; 0x30 - break; - 800115a: 46c0 nop ; (mov r8, r8) - } - } - return sysclockfreq; - 800115c: 6b3b ldr r3, [r7, #48] ; 0x30 -} - 800115e: 0018 movs r0, r3 - 8001160: 46bd mov sp, r7 - 8001162: b00f add sp, #60 ; 0x3c - 8001164: bd90 pop {r4, r7, pc} - 8001166: 46c0 nop ; (mov r8, r8) - 8001168: 08001418 .word 0x08001418 - 800116c: 08001428 .word 0x08001428 - 8001170: 40021000 .word 0x40021000 - 8001174: 007a1200 .word 0x007a1200 - 8001178: 02dc6c00 .word 0x02dc6c00 - -0800117c <main>: -/** - * @brief The application entry point. - * @retval int - */ -int main(void) -{ - 800117c: b580 push {r7, lr} - 800117e: af00 add r7, sp, #0 - - - /* MCU Configuration--------------------------------------------------------*/ - - /* Reset of all peripherals, Initializes the Flash interface and the Systick. */ - HAL_Init(); - 8001180: f7ff f84e bl 8000220 <HAL_Init> - /* USER CODE BEGIN Init */ - - /* USER CODE END Init */ - - /* Configure the system clock */ - SystemClock_Config(); - 8001184: f000 f816 bl 80011b4 <SystemClock_Config> - /* USER CODE BEGIN SysInit */ - - /* USER CODE END SysInit */ - - /* Initialize all configured peripherals */ - MX_GPIO_Init(); - 8001188: f000 f854 bl 8001234 <MX_GPIO_Init> - /* Infinite loop */ - /* USER CODE BEGIN WHILE */ - while (1) - { - /* USER CODE END WHILE */ - HAL_GPIO_WritePin(POINT_TEST_GPIO_Port, POINT_TEST_Pin, GPIO_PIN_SET); - 800118c: 4b08 ldr r3, [pc, #32] ; (80011b0 <main+0x34>) - 800118e: 2201 movs r2, #1 - 8001190: 2104 movs r1, #4 - 8001192: 0018 movs r0, r3 - 8001194: f7ff faf6 bl 8000784 <HAL_GPIO_WritePin> - HAL_Delay(1000); - 8001198: 23fa movs r3, #250 ; 0xfa - 800119a: 009b lsls r3, r3, #2 - 800119c: 0018 movs r0, r3 - 800119e: f7ff f8a3 bl 80002e8 <HAL_Delay> - HAL_GPIO_WritePin(POINT_TEST_GPIO_Port, POINT_TEST_Pin, GPIO_PIN_RESET); - 80011a2: 4b03 ldr r3, [pc, #12] ; (80011b0 <main+0x34>) - 80011a4: 2200 movs r2, #0 - 80011a6: 2104 movs r1, #4 - 80011a8: 0018 movs r0, r3 - 80011aa: f7ff faeb bl 8000784 <HAL_GPIO_WritePin> - HAL_GPIO_WritePin(POINT_TEST_GPIO_Port, POINT_TEST_Pin, GPIO_PIN_SET); - 80011ae: e7ed b.n 800118c <main+0x10> - 80011b0: 48001000 .word 0x48001000 - -080011b4 <SystemClock_Config>: -/** - * @brief System Clock Configuration - * @retval None - */ -void SystemClock_Config(void) -{ - 80011b4: b590 push {r4, r7, lr} - 80011b6: b093 sub sp, #76 ; 0x4c - 80011b8: af00 add r7, sp, #0 - RCC_OscInitTypeDef RCC_OscInitStruct = {0}; - 80011ba: 2414 movs r4, #20 - 80011bc: 193b adds r3, r7, r4 - 80011be: 0018 movs r0, r3 - 80011c0: 2334 movs r3, #52 ; 0x34 - 80011c2: 001a movs r2, r3 - 80011c4: 2100 movs r1, #0 - 80011c6: f000 f913 bl 80013f0 <memset> - RCC_ClkInitTypeDef RCC_ClkInitStruct = {0}; - 80011ca: 1d3b adds r3, r7, #4 - 80011cc: 0018 movs r0, r3 - 80011ce: 2310 movs r3, #16 - 80011d0: 001a movs r2, r3 - 80011d2: 2100 movs r1, #0 - 80011d4: f000 f90c bl 80013f0 <memset> - - /** Initializes the CPU, AHB and APB busses clocks - */ - RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_HSI; - 80011d8: 0021 movs r1, r4 - 80011da: 187b adds r3, r7, r1 - 80011dc: 2202 movs r2, #2 - 80011de: 601a str r2, [r3, #0] - RCC_OscInitStruct.HSIState = RCC_HSI_ON; - 80011e0: 187b adds r3, r7, r1 - 80011e2: 2201 movs r2, #1 - 80011e4: 60da str r2, [r3, #12] - RCC_OscInitStruct.HSICalibrationValue = RCC_HSICALIBRATION_DEFAULT; - 80011e6: 187b adds r3, r7, r1 - 80011e8: 2210 movs r2, #16 - 80011ea: 611a str r2, [r3, #16] - RCC_OscInitStruct.PLL.PLLState = RCC_PLL_NONE; - 80011ec: 187b adds r3, r7, r1 - 80011ee: 2200 movs r2, #0 - 80011f0: 625a str r2, [r3, #36] ; 0x24 - if (HAL_RCC_OscConfig(&RCC_OscInitStruct) != HAL_OK) - 80011f2: 187b adds r3, r7, r1 - 80011f4: 0018 movs r0, r3 - 80011f6: f7ff fae3 bl 80007c0 <HAL_RCC_OscConfig> - 80011fa: 1e03 subs r3, r0, #0 - 80011fc: d001 beq.n 8001202 <SystemClock_Config+0x4e> - { - Error_Handler(); - 80011fe: f000 f861 bl 80012c4 <Error_Handler> - } - /** Initializes the CPU, AHB and APB busses clocks - */ - RCC_ClkInitStruct.ClockType = RCC_CLOCKTYPE_HCLK|RCC_CLOCKTYPE_SYSCLK - 8001202: 1d3b adds r3, r7, #4 - 8001204: 2207 movs r2, #7 - 8001206: 601a str r2, [r3, #0] - |RCC_CLOCKTYPE_PCLK1; - RCC_ClkInitStruct.SYSCLKSource = RCC_SYSCLKSOURCE_HSI; - 8001208: 1d3b adds r3, r7, #4 - 800120a: 2200 movs r2, #0 - 800120c: 605a str r2, [r3, #4] - RCC_ClkInitStruct.AHBCLKDivider = RCC_SYSCLK_DIV1; - 800120e: 1d3b adds r3, r7, #4 - 8001210: 2200 movs r2, #0 - 8001212: 609a str r2, [r3, #8] - RCC_ClkInitStruct.APB1CLKDivider = RCC_HCLK_DIV1; - 8001214: 1d3b adds r3, r7, #4 - 8001216: 2200 movs r2, #0 - 8001218: 60da str r2, [r3, #12] - - if (HAL_RCC_ClockConfig(&RCC_ClkInitStruct, FLASH_LATENCY_0) != HAL_OK) - 800121a: 1d3b adds r3, r7, #4 - 800121c: 2100 movs r1, #0 - 800121e: 0018 movs r0, r3 - 8001220: f7ff fe54 bl 8000ecc <HAL_RCC_ClockConfig> - 8001224: 1e03 subs r3, r0, #0 - 8001226: d001 beq.n 800122c <SystemClock_Config+0x78> - { - Error_Handler(); - 8001228: f000 f84c bl 80012c4 <Error_Handler> - } -} - 800122c: 46c0 nop ; (mov r8, r8) - 800122e: 46bd mov sp, r7 - 8001230: b013 add sp, #76 ; 0x4c - 8001232: bd90 pop {r4, r7, pc} - -08001234 <MX_GPIO_Init>: - * @brief GPIO Initialization Function - * @param None - * @retval None - */ -static void MX_GPIO_Init(void) -{ - 8001234: b590 push {r4, r7, lr} - 8001236: b089 sub sp, #36 ; 0x24 - 8001238: af00 add r7, sp, #0 - GPIO_InitTypeDef GPIO_InitStruct = {0}; - 800123a: 240c movs r4, #12 - 800123c: 193b adds r3, r7, r4 - 800123e: 0018 movs r0, r3 - 8001240: 2314 movs r3, #20 - 8001242: 001a movs r2, r3 - 8001244: 2100 movs r1, #0 - 8001246: f000 f8d3 bl 80013f0 <memset> - - /* GPIO Ports Clock Enable */ - __HAL_RCC_GPIOE_CLK_ENABLE(); - 800124a: 4b1c ldr r3, [pc, #112] ; (80012bc <MX_GPIO_Init+0x88>) - 800124c: 695a ldr r2, [r3, #20] - 800124e: 4b1b ldr r3, [pc, #108] ; (80012bc <MX_GPIO_Init+0x88>) - 8001250: 2180 movs r1, #128 ; 0x80 - 8001252: 0389 lsls r1, r1, #14 - 8001254: 430a orrs r2, r1 - 8001256: 615a str r2, [r3, #20] - 8001258: 4b18 ldr r3, [pc, #96] ; (80012bc <MX_GPIO_Init+0x88>) - 800125a: 695a ldr r2, [r3, #20] - 800125c: 2380 movs r3, #128 ; 0x80 - 800125e: 039b lsls r3, r3, #14 - 8001260: 4013 ands r3, r2 - 8001262: 60bb str r3, [r7, #8] - 8001264: 68bb ldr r3, [r7, #8] - __HAL_RCC_GPIOA_CLK_ENABLE(); - 8001266: 4b15 ldr r3, [pc, #84] ; (80012bc <MX_GPIO_Init+0x88>) - 8001268: 695a ldr r2, [r3, #20] - 800126a: 4b14 ldr r3, [pc, #80] ; (80012bc <MX_GPIO_Init+0x88>) - 800126c: 2180 movs r1, #128 ; 0x80 - 800126e: 0289 lsls r1, r1, #10 - 8001270: 430a orrs r2, r1 - 8001272: 615a str r2, [r3, #20] - 8001274: 4b11 ldr r3, [pc, #68] ; (80012bc <MX_GPIO_Init+0x88>) - 8001276: 695a ldr r2, [r3, #20] - 8001278: 2380 movs r3, #128 ; 0x80 - 800127a: 029b lsls r3, r3, #10 - 800127c: 4013 ands r3, r2 - 800127e: 607b str r3, [r7, #4] - 8001280: 687b ldr r3, [r7, #4] - - /*Configure GPIO pin Output Level */ - HAL_GPIO_WritePin(POINT_TEST_GPIO_Port, POINT_TEST_Pin, GPIO_PIN_RESET); - 8001282: 4b0f ldr r3, [pc, #60] ; (80012c0 <MX_GPIO_Init+0x8c>) - 8001284: 2200 movs r2, #0 - 8001286: 2104 movs r1, #4 - 8001288: 0018 movs r0, r3 - 800128a: f7ff fa7b bl 8000784 <HAL_GPIO_WritePin> - - /*Configure GPIO pin : POINT_TEST_Pin */ - GPIO_InitStruct.Pin = POINT_TEST_Pin; - 800128e: 0021 movs r1, r4 - 8001290: 187b adds r3, r7, r1 - 8001292: 2204 movs r2, #4 - 8001294: 601a str r2, [r3, #0] - GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP; - 8001296: 187b adds r3, r7, r1 - 8001298: 2201 movs r2, #1 - 800129a: 605a str r2, [r3, #4] - GPIO_InitStruct.Pull = GPIO_NOPULL; - 800129c: 187b adds r3, r7, r1 - 800129e: 2200 movs r2, #0 - 80012a0: 609a str r2, [r3, #8] - GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW; - 80012a2: 187b adds r3, r7, r1 - 80012a4: 2200 movs r2, #0 - 80012a6: 60da str r2, [r3, #12] - HAL_GPIO_Init(POINT_TEST_GPIO_Port, &GPIO_InitStruct); - 80012a8: 187b adds r3, r7, r1 - 80012aa: 4a05 ldr r2, [pc, #20] ; (80012c0 <MX_GPIO_Init+0x8c>) - 80012ac: 0019 movs r1, r3 - 80012ae: 0010 movs r0, r2 - 80012b0: f7ff f8f0 bl 8000494 <HAL_GPIO_Init> - -} - 80012b4: 46c0 nop ; (mov r8, r8) - 80012b6: 46bd mov sp, r7 - 80012b8: b009 add sp, #36 ; 0x24 - 80012ba: bd90 pop {r4, r7, pc} - 80012bc: 40021000 .word 0x40021000 - 80012c0: 48001000 .word 0x48001000 - -080012c4 <Error_Handler>: -/** - * @brief This function is executed in case of error occurrence. - * @retval None - */ -void Error_Handler(void) -{ - 80012c4: b580 push {r7, lr} - 80012c6: af00 add r7, sp, #0 - /* USER CODE BEGIN Error_Handler_Debug */ - /* User can add his own implementation to report the HAL error return state */ - - /* USER CODE END Error_Handler_Debug */ -} - 80012c8: 46c0 nop ; (mov r8, r8) - 80012ca: 46bd mov sp, r7 - 80012cc: bd80 pop {r7, pc} - ... - -080012d0 <HAL_MspInit>: -/* USER CODE END 0 */ -/** - * Initializes the Global MSP. - */ -void HAL_MspInit(void) -{ - 80012d0: b580 push {r7, lr} - 80012d2: b082 sub sp, #8 - 80012d4: af00 add r7, sp, #0 - /* USER CODE BEGIN MspInit 0 */ - - /* USER CODE END MspInit 0 */ - - __HAL_RCC_SYSCFG_CLK_ENABLE(); - 80012d6: 4b0f ldr r3, [pc, #60] ; (8001314 <HAL_MspInit+0x44>) - 80012d8: 699a ldr r2, [r3, #24] - 80012da: 4b0e ldr r3, [pc, #56] ; (8001314 <HAL_MspInit+0x44>) - 80012dc: 2101 movs r1, #1 - 80012de: 430a orrs r2, r1 - 80012e0: 619a str r2, [r3, #24] - 80012e2: 4b0c ldr r3, [pc, #48] ; (8001314 <HAL_MspInit+0x44>) - 80012e4: 699b ldr r3, [r3, #24] - 80012e6: 2201 movs r2, #1 - 80012e8: 4013 ands r3, r2 - 80012ea: 607b str r3, [r7, #4] - 80012ec: 687b ldr r3, [r7, #4] - __HAL_RCC_PWR_CLK_ENABLE(); - 80012ee: 4b09 ldr r3, [pc, #36] ; (8001314 <HAL_MspInit+0x44>) - 80012f0: 69da ldr r2, [r3, #28] - 80012f2: 4b08 ldr r3, [pc, #32] ; (8001314 <HAL_MspInit+0x44>) - 80012f4: 2180 movs r1, #128 ; 0x80 - 80012f6: 0549 lsls r1, r1, #21 - 80012f8: 430a orrs r2, r1 - 80012fa: 61da str r2, [r3, #28] - 80012fc: 4b05 ldr r3, [pc, #20] ; (8001314 <HAL_MspInit+0x44>) - 80012fe: 69da ldr r2, [r3, #28] - 8001300: 2380 movs r3, #128 ; 0x80 - 8001302: 055b lsls r3, r3, #21 - 8001304: 4013 ands r3, r2 - 8001306: 603b str r3, [r7, #0] - 8001308: 683b ldr r3, [r7, #0] - /* System interrupt init*/ - - /* USER CODE BEGIN MspInit 1 */ - - /* USER CODE END MspInit 1 */ -} - 800130a: 46c0 nop ; (mov r8, r8) - 800130c: 46bd mov sp, r7 - 800130e: b002 add sp, #8 - 8001310: bd80 pop {r7, pc} - 8001312: 46c0 nop ; (mov r8, r8) - 8001314: 40021000 .word 0x40021000 - -08001318 <NMI_Handler>: -/******************************************************************************/ -/** - * @brief This function handles Non maskable interrupt. - */ -void NMI_Handler(void) -{ - 8001318: b580 push {r7, lr} - 800131a: af00 add r7, sp, #0 - - /* USER CODE END NonMaskableInt_IRQn 0 */ - /* USER CODE BEGIN NonMaskableInt_IRQn 1 */ - - /* USER CODE END NonMaskableInt_IRQn 1 */ -} - 800131c: 46c0 nop ; (mov r8, r8) - 800131e: 46bd mov sp, r7 - 8001320: bd80 pop {r7, pc} - -08001322 <HardFault_Handler>: - -/** - * @brief This function handles Hard fault interrupt. - */ -void HardFault_Handler(void) -{ - 8001322: b580 push {r7, lr} - 8001324: af00 add r7, sp, #0 - /* USER CODE BEGIN HardFault_IRQn 0 */ - - /* USER CODE END HardFault_IRQn 0 */ - while (1) - 8001326: e7fe b.n 8001326 <HardFault_Handler+0x4> - -08001328 <SVC_Handler>: - -/** - * @brief This function handles System service call via SWI instruction. - */ -void SVC_Handler(void) -{ - 8001328: b580 push {r7, lr} - 800132a: af00 add r7, sp, #0 - - /* USER CODE END SVC_IRQn 0 */ - /* USER CODE BEGIN SVC_IRQn 1 */ - - /* USER CODE END SVC_IRQn 1 */ -} - 800132c: 46c0 nop ; (mov r8, r8) - 800132e: 46bd mov sp, r7 - 8001330: bd80 pop {r7, pc} - -08001332 <PendSV_Handler>: - -/** - * @brief This function handles Pendable request for system service. - */ -void PendSV_Handler(void) -{ - 8001332: b580 push {r7, lr} - 8001334: af00 add r7, sp, #0 - - /* USER CODE END PendSV_IRQn 0 */ - /* USER CODE BEGIN PendSV_IRQn 1 */ - - /* USER CODE END PendSV_IRQn 1 */ -} - 8001336: 46c0 nop ; (mov r8, r8) - 8001338: 46bd mov sp, r7 - 800133a: bd80 pop {r7, pc} - -0800133c <SysTick_Handler>: - -/** - * @brief This function handles System tick timer. - */ -void SysTick_Handler(void) -{ - 800133c: b580 push {r7, lr} - 800133e: af00 add r7, sp, #0 - /* USER CODE BEGIN SysTick_IRQn 0 */ - - /* USER CODE END SysTick_IRQn 0 */ - HAL_IncTick(); - 8001340: f7fe ffb6 bl 80002b0 <HAL_IncTick> - /* USER CODE BEGIN SysTick_IRQn 1 */ - - /* USER CODE END SysTick_IRQn 1 */ -} - 8001344: 46c0 nop ; (mov r8, r8) - 8001346: 46bd mov sp, r7 - 8001348: bd80 pop {r7, pc} - -0800134a <SystemInit>: - * @brief Setup the microcontroller system. - * @param None - * @retval None - */ -void SystemInit(void) -{ - 800134a: b580 push {r7, lr} - 800134c: af00 add r7, sp, #0 - before branch to main program. This call is made inside - the "startup_stm32f0xx.s" file. - User can setups the default system clock (System clock source, PLL Multiplier - and Divider factors, AHB/APBx prescalers and Flash settings). - */ -} - 800134e: 46c0 nop ; (mov r8, r8) - 8001350: 46bd mov sp, r7 - 8001352: bd80 pop {r7, pc} - -08001354 <Reset_Handler>: - - .section .text.Reset_Handler - .weak Reset_Handler - .type Reset_Handler, %function -Reset_Handler: - ldr r0, =_estack - 8001354: 480d ldr r0, [pc, #52] ; (800138c <LoopForever+0x2>) - mov sp, r0 /* set stack pointer */ - 8001356: 4685 mov sp, r0 - -/* Copy the data segment initializers from flash to SRAM */ - ldr r0, =_sdata - 8001358: 480d ldr r0, [pc, #52] ; (8001390 <LoopForever+0x6>) - ldr r1, =_edata - 800135a: 490e ldr r1, [pc, #56] ; (8001394 <LoopForever+0xa>) - ldr r2, =_sidata - 800135c: 4a0e ldr r2, [pc, #56] ; (8001398 <LoopForever+0xe>) - movs r3, #0 - 800135e: 2300 movs r3, #0 - b LoopCopyDataInit - 8001360: e002 b.n 8001368 <LoopCopyDataInit> - -08001362 <CopyDataInit>: - -CopyDataInit: - ldr r4, [r2, r3] - 8001362: 58d4 ldr r4, [r2, r3] - str r4, [r0, r3] - 8001364: 50c4 str r4, [r0, r3] - adds r3, r3, #4 - 8001366: 3304 adds r3, #4 - -08001368 <LoopCopyDataInit>: - -LoopCopyDataInit: - adds r4, r0, r3 - 8001368: 18c4 adds r4, r0, r3 - cmp r4, r1 - 800136a: 428c cmp r4, r1 - bcc CopyDataInit - 800136c: d3f9 bcc.n 8001362 <CopyDataInit> - -/* Zero fill the bss segment. */ - ldr r2, =_sbss - 800136e: 4a0b ldr r2, [pc, #44] ; (800139c <LoopForever+0x12>) - ldr r4, =_ebss - 8001370: 4c0b ldr r4, [pc, #44] ; (80013a0 <LoopForever+0x16>) - movs r3, #0 - 8001372: 2300 movs r3, #0 - b LoopFillZerobss - 8001374: e001 b.n 800137a <LoopFillZerobss> - -08001376 <FillZerobss>: - -FillZerobss: - str r3, [r2] - 8001376: 6013 str r3, [r2, #0] - adds r2, r2, #4 - 8001378: 3204 adds r2, #4 - -0800137a <LoopFillZerobss>: - -LoopFillZerobss: - cmp r2, r4 - 800137a: 42a2 cmp r2, r4 - bcc FillZerobss - 800137c: d3fb bcc.n 8001376 <FillZerobss> - -/* Call the clock system intitialization function.*/ - bl SystemInit - 800137e: f7ff ffe4 bl 800134a <SystemInit> -/* Call static constructors */ - bl __libc_init_array - 8001382: f000 f811 bl 80013a8 <__libc_init_array> -/* Call the application's entry point.*/ - bl main - 8001386: f7ff fef9 bl 800117c <main> - -0800138a <LoopForever>: - -LoopForever: - b LoopForever - 800138a: e7fe b.n 800138a <LoopForever> - ldr r0, =_estack - 800138c: 20004000 .word 0x20004000 - ldr r0, =_sdata - 8001390: 20000000 .word 0x20000000 - ldr r1, =_edata - 8001394: 2000000c .word 0x2000000c - ldr r2, =_sidata - 8001398: 08001450 .word 0x08001450 - ldr r2, =_sbss - 800139c: 2000000c .word 0x2000000c - ldr r4, =_ebss - 80013a0: 2000002c .word 0x2000002c - -080013a4 <ADC1_COMP_IRQHandler>: - * @retval : None -*/ - .section .text.Default_Handler,"ax",%progbits -Default_Handler: -Infinite_Loop: - b Infinite_Loop - 80013a4: e7fe b.n 80013a4 <ADC1_COMP_IRQHandler> - ... - -080013a8 <__libc_init_array>: - 80013a8: b570 push {r4, r5, r6, lr} - 80013aa: 2600 movs r6, #0 - 80013ac: 4d0c ldr r5, [pc, #48] ; (80013e0 <__libc_init_array+0x38>) - 80013ae: 4c0d ldr r4, [pc, #52] ; (80013e4 <__libc_init_array+0x3c>) - 80013b0: 1b64 subs r4, r4, r5 - 80013b2: 10a4 asrs r4, r4, #2 - 80013b4: 42a6 cmp r6, r4 - 80013b6: d109 bne.n 80013cc <__libc_init_array+0x24> - 80013b8: 2600 movs r6, #0 - 80013ba: f000 f821 bl 8001400 <_init> - 80013be: 4d0a ldr r5, [pc, #40] ; (80013e8 <__libc_init_array+0x40>) - 80013c0: 4c0a ldr r4, [pc, #40] ; (80013ec <__libc_init_array+0x44>) - 80013c2: 1b64 subs r4, r4, r5 - 80013c4: 10a4 asrs r4, r4, #2 - 80013c6: 42a6 cmp r6, r4 - 80013c8: d105 bne.n 80013d6 <__libc_init_array+0x2e> - 80013ca: bd70 pop {r4, r5, r6, pc} - 80013cc: 00b3 lsls r3, r6, #2 - 80013ce: 58eb ldr r3, [r5, r3] - 80013d0: 4798 blx r3 - 80013d2: 3601 adds r6, #1 - 80013d4: e7ee b.n 80013b4 <__libc_init_array+0xc> - 80013d6: 00b3 lsls r3, r6, #2 - 80013d8: 58eb ldr r3, [r5, r3] - 80013da: 4798 blx r3 - 80013dc: 3601 adds r6, #1 - 80013de: e7f2 b.n 80013c6 <__libc_init_array+0x1e> - 80013e0: 08001448 .word 0x08001448 - 80013e4: 08001448 .word 0x08001448 - 80013e8: 08001448 .word 0x08001448 - 80013ec: 0800144c .word 0x0800144c - -080013f0 <memset>: - 80013f0: 0003 movs r3, r0 - 80013f2: 1812 adds r2, r2, r0 - 80013f4: 4293 cmp r3, r2 - 80013f6: d100 bne.n 80013fa <memset+0xa> - 80013f8: 4770 bx lr - 80013fa: 7019 strb r1, [r3, #0] - 80013fc: 3301 adds r3, #1 - 80013fe: e7f9 b.n 80013f4 <memset+0x4> - -08001400 <_init>: - 8001400: b5f8 push {r3, r4, r5, r6, r7, lr} - 8001402: 46c0 nop ; (mov r8, r8) - 8001404: bcf8 pop {r3, r4, r5, r6, r7} - 8001406: bc08 pop {r3} - 8001408: 469e mov lr, r3 - 800140a: 4770 bx lr - -0800140c <_fini>: - 800140c: b5f8 push {r3, r4, r5, r6, r7, lr} - 800140e: 46c0 nop ; (mov r8, r8) - 8001410: bcf8 pop {r3, r4, r5, r6, r7} - 8001412: bc08 pop {r3} - 8001414: 469e mov lr, r3 - 8001416: 4770 bx lr diff --git a/Logiciel/Test_hardware_basique/Debug/makefile b/Logiciel/Test_hardware_basique/Debug/makefile deleted file mode 100644 index ab87316ded8f82b1c3f1b21237f2b917270c04f2..0000000000000000000000000000000000000000 --- a/Logiciel/Test_hardware_basique/Debug/makefile +++ /dev/null @@ -1,73 +0,0 @@ -################################################################################ -# Automatically-generated file. Do not edit! -################################################################################ - --include ../makefile.init - -RM := rm -rf - -# All of the sources participating in the build are defined here --include sources.mk --include Startup/subdir.mk --include Src/subdir.mk --include Drivers/STM32F0xx_HAL_Driver/Src/subdir.mk --include subdir.mk --include objects.mk - -ifneq ($(MAKECMDGOALS),clean) -ifneq ($(strip $(C_DEPS)),) --include $(C_DEPS) -endif -endif - --include ../makefile.defs - -# Add inputs and outputs from these tool invocations to the build variables -EXECUTABLES += \ -Test_hardware_basique.elf \ - -SIZE_OUTPUT += \ -default.size.stdout \ - -OBJDUMP_LIST += \ -Test_hardware_basique.list \ - -OBJCOPY_BIN += \ -Test_hardware_basique.bin \ - - -# All Target -all: Test_hardware_basique.elf secondary-outputs - -# Tool invocations -Test_hardware_basique.elf: $(OBJS) $(USER_OBJS) ../STM32F071V8TX_FLASH.ld - arm-none-eabi-gcc -o "Test_hardware_basique.elf" @"objects.list" $(USER_OBJS) $(LIBS) -mcpu=cortex-m0 -T"../STM32F071V8TX_FLASH.ld" --specs=nosys.specs -Wl,-Map="Test_hardware_basique.map" -Wl,--gc-sections -static --specs=nano.specs -mfloat-abi=soft -mthumb -Wl,--start-group -lc -lm -Wl,--end-group - @echo 'Finished building target: $@' - @echo ' ' - -default.size.stdout: $(EXECUTABLES) - arm-none-eabi-size $(EXECUTABLES) - @echo 'Finished building: $@' - @echo ' ' - -Test_hardware_basique.list: $(EXECUTABLES) - arm-none-eabi-objdump -h -S $(EXECUTABLES) > "Test_hardware_basique.list" - @echo 'Finished building: $@' - @echo ' ' - -Test_hardware_basique.bin: $(EXECUTABLES) - arm-none-eabi-objcopy -O binary $(EXECUTABLES) "Test_hardware_basique.bin" - @echo 'Finished building: $@' - @echo ' ' - -# Other Targets -clean: - -$(RM) * - -@echo ' ' - -secondary-outputs: $(SIZE_OUTPUT) $(OBJDUMP_LIST) $(OBJCOPY_BIN) - -.PHONY: all clean dependents -.SECONDARY: - --include ../makefile.targets diff --git a/Logiciel/Test_hardware_basique/Debug/objects.list b/Logiciel/Test_hardware_basique/Debug/objects.list deleted file mode 100644 index 0f6ae0bd90dd250849e1c97cf22408e6edebc105..0000000000000000000000000000000000000000 --- a/Logiciel/Test_hardware_basique/Debug/objects.list +++ /dev/null @@ -1,22 +0,0 @@ -"Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.o" -"Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.o" -"Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.o" -"Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_exti.o" -"Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.o" -"Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.o" -"Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.o" -"Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.o" -"Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.o" -"Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.o" -"Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.o" -"Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.o" -"Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.o" -"Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.o" -"Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.o" -"Src/main.o" -"Src/stm32f0xx_hal_msp.o" -"Src/stm32f0xx_it.o" -"Src/syscalls.o" -"Src/sysmem.o" -"Src/system_stm32f0xx.o" -"Startup/startup_stm32f071v8tx.o" diff --git a/Logiciel/Test_hardware_basique/Debug/objects.mk b/Logiciel/Test_hardware_basique/Debug/objects.mk deleted file mode 100644 index 742c2da043f4f5d93c414dca3a725ab2204d9817..0000000000000000000000000000000000000000 --- a/Logiciel/Test_hardware_basique/Debug/objects.mk +++ /dev/null @@ -1,8 +0,0 @@ -################################################################################ -# Automatically-generated file. Do not edit! -################################################################################ - -USER_OBJS := - -LIBS := - diff --git a/Logiciel/Test_hardware_basique/Debug/sources.mk b/Logiciel/Test_hardware_basique/Debug/sources.mk deleted file mode 100644 index af870ff9582bae9dac61d5136e17ad7b251cd48b..0000000000000000000000000000000000000000 --- a/Logiciel/Test_hardware_basique/Debug/sources.mk +++ /dev/null @@ -1,23 +0,0 @@ -################################################################################ -# Automatically-generated file. Do not edit! -################################################################################ - -ELF_SRCS := -OBJ_SRCS := -S_SRCS := -C_SRCS := -S_UPPER_SRCS := -O_SRCS := -SIZE_OUTPUT := -OBJDUMP_LIST := -EXECUTABLES := -OBJS := -C_DEPS := -OBJCOPY_BIN := - -# Every subdirectory with source files must be described here -SUBDIRS := \ -Drivers/STM32F0xx_HAL_Driver/Src \ -Src \ -Startup \ -