stm32f4xx_hal_pwr_ex.lst 44 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734
  1. ARM GAS C:\Users\10728\AppData\Local\Temp\cc9i0IP6.s page 1
  2. 1 .cpu cortex-m4
  3. 2 .arch armv7e-m
  4. 3 .fpu fpv4-sp-d16
  5. 4 .eabi_attribute 27, 1
  6. 5 .eabi_attribute 28, 1
  7. 6 .eabi_attribute 20, 1
  8. 7 .eabi_attribute 21, 1
  9. 8 .eabi_attribute 23, 3
  10. 9 .eabi_attribute 24, 1
  11. 10 .eabi_attribute 25, 1
  12. 11 .eabi_attribute 26, 1
  13. 12 .eabi_attribute 30, 6
  14. 13 .eabi_attribute 34, 1
  15. 14 .eabi_attribute 18, 4
  16. 15 .file "stm32f4xx_hal_pwr_ex.c"
  17. 16 .text
  18. 17 .Ltext0:
  19. 18 .cfi_sections .debug_frame
  20. 19 .section .text.HAL_PWREx_EnableBkUpReg,"ax",%progbits
  21. 20 .align 1
  22. 21 .global HAL_PWREx_EnableBkUpReg
  23. 22 .syntax unified
  24. 23 .thumb
  25. 24 .thumb_func
  26. 26 HAL_PWREx_EnableBkUpReg:
  27. 27 .LFB235:
  28. 28 .file 1 "Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c"
  29. 1:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** /**
  30. 2:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** ******************************************************************************
  31. 3:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** * @file stm32f4xx_hal_pwr_ex.c
  32. 4:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** * @author MCD Application Team
  33. 5:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** * @brief Extended PWR HAL module driver.
  34. 6:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** * This file provides firmware functions to manage the following
  35. 7:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** * functionalities of PWR extension peripheral:
  36. 8:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** * + Peripheral Extended features functions
  37. 9:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** *
  38. 10:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** ******************************************************************************
  39. 11:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** * @attention
  40. 12:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** *
  41. 13:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** * Copyright (c) 2017 STMicroelectronics.
  42. 14:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** * All rights reserved.
  43. 15:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** *
  44. 16:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** * This software is licensed under terms that can be found in the LICENSE file in
  45. 17:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** * the root directory of this software component.
  46. 18:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** * If no LICENSE file comes with this software, it is provided AS-IS.
  47. 19:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** ******************************************************************************
  48. 20:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** */
  49. 21:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c ****
  50. 22:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** /* Includes ------------------------------------------------------------------*/
  51. 23:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** #include "stm32f4xx_hal.h"
  52. 24:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c ****
  53. 25:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** /** @addtogroup STM32F4xx_HAL_Driver
  54. 26:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** * @{
  55. 27:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** */
  56. 28:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c ****
  57. 29:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** /** @defgroup PWREx PWREx
  58. 30:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** * @brief PWR HAL module driver
  59. ARM GAS C:\Users\10728\AppData\Local\Temp\cc9i0IP6.s page 2
  60. 31:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** * @{
  61. 32:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** */
  62. 33:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c ****
  63. 34:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** #ifdef HAL_PWR_MODULE_ENABLED
  64. 35:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c ****
  65. 36:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** /* Private typedef -----------------------------------------------------------*/
  66. 37:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** /* Private define ------------------------------------------------------------*/
  67. 38:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** /** @addtogroup PWREx_Private_Constants
  68. 39:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** * @{
  69. 40:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** */
  70. 41:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** #define PWR_OVERDRIVE_TIMEOUT_VALUE 1000U
  71. 42:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** #define PWR_UDERDRIVE_TIMEOUT_VALUE 1000U
  72. 43:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** #define PWR_BKPREG_TIMEOUT_VALUE 1000U
  73. 44:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** #define PWR_VOSRDY_TIMEOUT_VALUE 1000U
  74. 45:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** /**
  75. 46:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** * @}
  76. 47:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** */
  77. 48:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c ****
  78. 49:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c ****
  79. 50:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** /* Private macro -------------------------------------------------------------*/
  80. 51:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** /* Private variables ---------------------------------------------------------*/
  81. 52:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** /* Private function prototypes -----------------------------------------------*/
  82. 53:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** /* Private functions ---------------------------------------------------------*/
  83. 54:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** /** @defgroup PWREx_Exported_Functions PWREx Exported Functions
  84. 55:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** * @{
  85. 56:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** */
  86. 57:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c ****
  87. 58:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** /** @defgroup PWREx_Exported_Functions_Group1 Peripheral Extended features functions
  88. 59:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** * @brief Peripheral Extended features functions
  89. 60:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** *
  90. 61:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** @verbatim
  91. 62:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c ****
  92. 63:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** ===============================================================================
  93. 64:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** ##### Peripheral extended features functions #####
  94. 65:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** ===============================================================================
  95. 66:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c ****
  96. 67:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** *** Main and Backup Regulators configuration ***
  97. 68:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** ================================================
  98. 69:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** [..]
  99. 70:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** (+) The backup domain includes 4 Kbytes of backup SRAM accessible only from
  100. 71:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** the CPU, and address in 32-bit, 16-bit or 8-bit mode. Its content is
  101. 72:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** retained even in Standby or VBAT mode when the low power backup regulator
  102. 73:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** is enabled. It can be considered as an internal EEPROM when VBAT is
  103. 74:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** always present. You can use the HAL_PWREx_EnableBkUpReg() function to
  104. 75:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** enable the low power backup regulator.
  105. 76:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c ****
  106. 77:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** (+) When the backup domain is supplied by VDD (analog switch connected to VDD)
  107. 78:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** the backup SRAM is powered from VDD which replaces the VBAT power supply to
  108. 79:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** save battery life.
  109. 80:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c ****
  110. 81:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** (+) The backup SRAM is not mass erased by a tamper event. It is read
  111. 82:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** protected to prevent confidential data, such as cryptographic private
  112. 83:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** key, from being accessed. The backup SRAM can be erased only through
  113. 84:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** the Flash interface when a protection level change from level 1 to
  114. 85:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** level 0 is requested.
  115. 86:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** -@- Refer to the description of Read protection (RDP) in the Flash
  116. 87:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** programming manual.
  117. ARM GAS C:\Users\10728\AppData\Local\Temp\cc9i0IP6.s page 3
  118. 88:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c ****
  119. 89:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** (+) The main internal regulator can be configured to have a tradeoff between
  120. 90:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** performance and power consumption when the device does not operate at
  121. 91:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** the maximum frequency. This is done through __HAL_PWR_MAINREGULATORMODE_CONFIG()
  122. 92:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** macro which configure VOS bit in PWR_CR register
  123. 93:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c ****
  124. 94:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** Refer to the product datasheets for more details.
  125. 95:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c ****
  126. 96:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** *** FLASH Power Down configuration ****
  127. 97:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** =======================================
  128. 98:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** [..]
  129. 99:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** (+) By setting the FPDS bit in the PWR_CR register by using the
  130. 100:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** HAL_PWREx_EnableFlashPowerDown() function, the Flash memory also enters power
  131. 101:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** down mode when the device enters Stop mode. When the Flash memory
  132. 102:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** is in power down mode, an additional startup delay is incurred when
  133. 103:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** waking up from Stop mode.
  134. 104:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c ****
  135. 105:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** (+) For STM32F42xxx/43xxx/446xx/469xx/479xx Devices, the scale can be modified only when
  136. 106:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** is OFF and the HSI or HSE clock source is selected as system clock.
  137. 107:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** The new value programmed is active only when the PLL is ON.
  138. 108:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** When the PLL is OFF, the voltage scale 3 is automatically selected.
  139. 109:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** Refer to the datasheets for more details.
  140. 110:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c ****
  141. 111:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** *** Over-Drive and Under-Drive configuration ****
  142. 112:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** =================================================
  143. 113:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** [..]
  144. 114:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** (+) For STM32F42xxx/43xxx/446xx/469xx/479xx Devices, in Run mode: the main regulator has
  145. 115:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** 2 operating modes available:
  146. 116:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** (++) Normal mode: The CPU and core logic operate at maximum frequency at a given
  147. 117:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** voltage scaling (scale 1, scale 2 or scale 3)
  148. 118:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** (++) Over-drive mode: This mode allows the CPU and the core logic to operate at a
  149. 119:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** higher frequency than the normal mode for a given voltage scaling (scale 1,
  150. 120:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** scale 2 or scale 3). This mode is enabled through HAL_PWREx_EnableOverDrive() function
  151. 121:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** disabled by HAL_PWREx_DisableOverDrive() function, to enter or exit from Over-drive mod
  152. 122:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** the sequence described in Reference manual.
  153. 123:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c ****
  154. 124:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** (+) For STM32F42xxx/43xxx/446xx/469xx/479xx Devices, in Stop mode: the main regulator or low
  155. 125:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** supplies a low power voltage to the 1.2V domain, thus preserving the content of register
  156. 126:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** and internal SRAM. 2 operating modes are available:
  157. 127:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** (++) Normal mode: the 1.2V domain is preserved in nominal leakage mode. This mode is only
  158. 128:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** available when the main regulator or the low power regulator is used in Scale 3 or
  159. 129:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** low voltage mode.
  160. 130:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** (++) Under-drive mode: the 1.2V domain is preserved in reduced leakage mode. This mode is
  161. 131:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** available when the main regulator or the low power regulator is in low voltage mode.
  162. 132:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c ****
  163. 133:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** @endverbatim
  164. 134:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** * @{
  165. 135:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** */
  166. 136:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c ****
  167. 137:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** /**
  168. 138:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** * @brief Enables the Backup Regulator.
  169. 139:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** * @retval HAL status
  170. 140:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** */
  171. 141:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** HAL_StatusTypeDef HAL_PWREx_EnableBkUpReg(void)
  172. 142:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** {
  173. 29 .loc 1 142 1
  174. 30 .cfi_startproc
  175. ARM GAS C:\Users\10728\AppData\Local\Temp\cc9i0IP6.s page 4
  176. 31 @ args = 0, pretend = 0, frame = 8
  177. 32 @ frame_needed = 1, uses_anonymous_args = 0
  178. 33 0000 80B5 push {r7, lr}
  179. 34 .LCFI0:
  180. 35 .cfi_def_cfa_offset 8
  181. 36 .cfi_offset 7, -8
  182. 37 .cfi_offset 14, -4
  183. 38 0002 82B0 sub sp, sp, #8
  184. 39 .LCFI1:
  185. 40 .cfi_def_cfa_offset 16
  186. 41 0004 00AF add r7, sp, #0
  187. 42 .LCFI2:
  188. 43 .cfi_def_cfa_register 7
  189. 143:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** uint32_t tickstart = 0U;
  190. 44 .loc 1 143 12
  191. 45 0006 0023 movs r3, #0
  192. 46 0008 7B60 str r3, [r7, #4]
  193. 144:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c ****
  194. 145:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** *(__IO uint32_t *) CSR_BRE_BB = (uint32_t)ENABLE;
  195. 47 .loc 1 145 3
  196. 48 000a 0E4B ldr r3, .L5
  197. 49 .loc 1 145 33
  198. 50 000c 0122 movs r2, #1
  199. 51 000e 1A60 str r2, [r3]
  200. 146:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c ****
  201. 147:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** /* Get tick */
  202. 148:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** tickstart = HAL_GetTick();
  203. 52 .loc 1 148 15
  204. 53 0010 FFF7FEFF bl HAL_GetTick
  205. 54 0014 7860 str r0, [r7, #4]
  206. 149:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c ****
  207. 150:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** /* Wait till Backup regulator ready flag is set */
  208. 151:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** while(__HAL_PWR_GET_FLAG(PWR_FLAG_BRR) == RESET)
  209. 55 .loc 1 151 8
  210. 56 0016 09E0 b .L2
  211. 57 .L4:
  212. 152:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** {
  213. 153:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** if((HAL_GetTick() - tickstart ) > PWR_BKPREG_TIMEOUT_VALUE)
  214. 58 .loc 1 153 9
  215. 59 0018 FFF7FEFF bl HAL_GetTick
  216. 60 001c 0246 mov r2, r0
  217. 61 .loc 1 153 23
  218. 62 001e 7B68 ldr r3, [r7, #4]
  219. 63 0020 D31A subs r3, r2, r3
  220. 64 .loc 1 153 7
  221. 65 0022 B3F57A7F cmp r3, #1000
  222. 66 0026 01D9 bls .L2
  223. 154:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** {
  224. 155:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** return HAL_TIMEOUT;
  225. 67 .loc 1 155 14
  226. 68 0028 0323 movs r3, #3
  227. 69 002a 06E0 b .L3
  228. 70 .L2:
  229. 151:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** {
  230. 71 .loc 1 151 9
  231. 72 002c 064B ldr r3, .L5+4
  232. 73 002e 5B68 ldr r3, [r3, #4]
  233. ARM GAS C:\Users\10728\AppData\Local\Temp\cc9i0IP6.s page 5
  234. 74 0030 03F00803 and r3, r3, #8
  235. 151:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** {
  236. 75 .loc 1 151 8
  237. 76 0034 082B cmp r3, #8
  238. 77 0036 EFD1 bne .L4
  239. 156:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** }
  240. 157:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** }
  241. 158:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** return HAL_OK;
  242. 78 .loc 1 158 10
  243. 79 0038 0023 movs r3, #0
  244. 80 .L3:
  245. 159:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** }
  246. 81 .loc 1 159 1
  247. 82 003a 1846 mov r0, r3
  248. 83 003c 0837 adds r7, r7, #8
  249. 84 .LCFI3:
  250. 85 .cfi_def_cfa_offset 8
  251. 86 003e BD46 mov sp, r7
  252. 87 .LCFI4:
  253. 88 .cfi_def_cfa_register 13
  254. 89 @ sp needed
  255. 90 0040 80BD pop {r7, pc}
  256. 91 .L6:
  257. 92 0042 00BF .align 2
  258. 93 .L5:
  259. 94 0044 A4000E42 .word 1108213924
  260. 95 0048 00700040 .word 1073770496
  261. 96 .cfi_endproc
  262. 97 .LFE235:
  263. 99 .section .text.HAL_PWREx_DisableBkUpReg,"ax",%progbits
  264. 100 .align 1
  265. 101 .global HAL_PWREx_DisableBkUpReg
  266. 102 .syntax unified
  267. 103 .thumb
  268. 104 .thumb_func
  269. 106 HAL_PWREx_DisableBkUpReg:
  270. 107 .LFB236:
  271. 160:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c ****
  272. 161:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** /**
  273. 162:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** * @brief Disables the Backup Regulator.
  274. 163:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** * @retval HAL status
  275. 164:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** */
  276. 165:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** HAL_StatusTypeDef HAL_PWREx_DisableBkUpReg(void)
  277. 166:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** {
  278. 108 .loc 1 166 1
  279. 109 .cfi_startproc
  280. 110 @ args = 0, pretend = 0, frame = 8
  281. 111 @ frame_needed = 1, uses_anonymous_args = 0
  282. 112 0000 80B5 push {r7, lr}
  283. 113 .LCFI5:
  284. 114 .cfi_def_cfa_offset 8
  285. 115 .cfi_offset 7, -8
  286. 116 .cfi_offset 14, -4
  287. 117 0002 82B0 sub sp, sp, #8
  288. 118 .LCFI6:
  289. 119 .cfi_def_cfa_offset 16
  290. 120 0004 00AF add r7, sp, #0
  291. ARM GAS C:\Users\10728\AppData\Local\Temp\cc9i0IP6.s page 6
  292. 121 .LCFI7:
  293. 122 .cfi_def_cfa_register 7
  294. 167:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** uint32_t tickstart = 0U;
  295. 123 .loc 1 167 12
  296. 124 0006 0023 movs r3, #0
  297. 125 0008 7B60 str r3, [r7, #4]
  298. 168:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c ****
  299. 169:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** *(__IO uint32_t *) CSR_BRE_BB = (uint32_t)DISABLE;
  300. 126 .loc 1 169 3
  301. 127 000a 0E4B ldr r3, .L11
  302. 128 .loc 1 169 33
  303. 129 000c 0022 movs r2, #0
  304. 130 000e 1A60 str r2, [r3]
  305. 170:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c ****
  306. 171:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** /* Get tick */
  307. 172:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** tickstart = HAL_GetTick();
  308. 131 .loc 1 172 15
  309. 132 0010 FFF7FEFF bl HAL_GetTick
  310. 133 0014 7860 str r0, [r7, #4]
  311. 173:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c ****
  312. 174:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** /* Wait till Backup regulator ready flag is set */
  313. 175:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** while(__HAL_PWR_GET_FLAG(PWR_FLAG_BRR) != RESET)
  314. 134 .loc 1 175 8
  315. 135 0016 09E0 b .L8
  316. 136 .L10:
  317. 176:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** {
  318. 177:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** if((HAL_GetTick() - tickstart ) > PWR_BKPREG_TIMEOUT_VALUE)
  319. 137 .loc 1 177 9
  320. 138 0018 FFF7FEFF bl HAL_GetTick
  321. 139 001c 0246 mov r2, r0
  322. 140 .loc 1 177 23
  323. 141 001e 7B68 ldr r3, [r7, #4]
  324. 142 0020 D31A subs r3, r2, r3
  325. 143 .loc 1 177 7
  326. 144 0022 B3F57A7F cmp r3, #1000
  327. 145 0026 01D9 bls .L8
  328. 178:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** {
  329. 179:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** return HAL_TIMEOUT;
  330. 146 .loc 1 179 14
  331. 147 0028 0323 movs r3, #3
  332. 148 002a 06E0 b .L9
  333. 149 .L8:
  334. 175:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** {
  335. 150 .loc 1 175 9
  336. 151 002c 064B ldr r3, .L11+4
  337. 152 002e 5B68 ldr r3, [r3, #4]
  338. 153 0030 03F00803 and r3, r3, #8
  339. 175:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** {
  340. 154 .loc 1 175 8
  341. 155 0034 082B cmp r3, #8
  342. 156 0036 EFD0 beq .L10
  343. 180:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** }
  344. 181:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** }
  345. 182:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** return HAL_OK;
  346. 157 .loc 1 182 10
  347. 158 0038 0023 movs r3, #0
  348. 159 .L9:
  349. ARM GAS C:\Users\10728\AppData\Local\Temp\cc9i0IP6.s page 7
  350. 183:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** }
  351. 160 .loc 1 183 1
  352. 161 003a 1846 mov r0, r3
  353. 162 003c 0837 adds r7, r7, #8
  354. 163 .LCFI8:
  355. 164 .cfi_def_cfa_offset 8
  356. 165 003e BD46 mov sp, r7
  357. 166 .LCFI9:
  358. 167 .cfi_def_cfa_register 13
  359. 168 @ sp needed
  360. 169 0040 80BD pop {r7, pc}
  361. 170 .L12:
  362. 171 0042 00BF .align 2
  363. 172 .L11:
  364. 173 0044 A4000E42 .word 1108213924
  365. 174 0048 00700040 .word 1073770496
  366. 175 .cfi_endproc
  367. 176 .LFE236:
  368. 178 .section .text.HAL_PWREx_EnableFlashPowerDown,"ax",%progbits
  369. 179 .align 1
  370. 180 .global HAL_PWREx_EnableFlashPowerDown
  371. 181 .syntax unified
  372. 182 .thumb
  373. 183 .thumb_func
  374. 185 HAL_PWREx_EnableFlashPowerDown:
  375. 186 .LFB237:
  376. 184:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c ****
  377. 185:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** /**
  378. 186:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** * @brief Enables the Flash Power Down in Stop mode.
  379. 187:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** * @retval None
  380. 188:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** */
  381. 189:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** void HAL_PWREx_EnableFlashPowerDown(void)
  382. 190:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** {
  383. 187 .loc 1 190 1
  384. 188 .cfi_startproc
  385. 189 @ args = 0, pretend = 0, frame = 0
  386. 190 @ frame_needed = 1, uses_anonymous_args = 0
  387. 191 @ link register save eliminated.
  388. 192 0000 80B4 push {r7}
  389. 193 .LCFI10:
  390. 194 .cfi_def_cfa_offset 4
  391. 195 .cfi_offset 7, -4
  392. 196 0002 00AF add r7, sp, #0
  393. 197 .LCFI11:
  394. 198 .cfi_def_cfa_register 7
  395. 191:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** *(__IO uint32_t *) CR_FPDS_BB = (uint32_t)ENABLE;
  396. 199 .loc 1 191 3
  397. 200 0004 034B ldr r3, .L14
  398. 201 .loc 1 191 33
  399. 202 0006 0122 movs r2, #1
  400. 203 0008 1A60 str r2, [r3]
  401. 192:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** }
  402. 204 .loc 1 192 1
  403. 205 000a 00BF nop
  404. 206 000c BD46 mov sp, r7
  405. 207 .LCFI12:
  406. 208 .cfi_def_cfa_register 13
  407. ARM GAS C:\Users\10728\AppData\Local\Temp\cc9i0IP6.s page 8
  408. 209 @ sp needed
  409. 210 000e 5DF8047B ldr r7, [sp], #4
  410. 211 .LCFI13:
  411. 212 .cfi_restore 7
  412. 213 .cfi_def_cfa_offset 0
  413. 214 0012 7047 bx lr
  414. 215 .L15:
  415. 216 .align 2
  416. 217 .L14:
  417. 218 0014 24000E42 .word 1108213796
  418. 219 .cfi_endproc
  419. 220 .LFE237:
  420. 222 .section .text.HAL_PWREx_DisableFlashPowerDown,"ax",%progbits
  421. 223 .align 1
  422. 224 .global HAL_PWREx_DisableFlashPowerDown
  423. 225 .syntax unified
  424. 226 .thumb
  425. 227 .thumb_func
  426. 229 HAL_PWREx_DisableFlashPowerDown:
  427. 230 .LFB238:
  428. 193:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c ****
  429. 194:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** /**
  430. 195:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** * @brief Disables the Flash Power Down in Stop mode.
  431. 196:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** * @retval None
  432. 197:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** */
  433. 198:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** void HAL_PWREx_DisableFlashPowerDown(void)
  434. 199:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** {
  435. 231 .loc 1 199 1
  436. 232 .cfi_startproc
  437. 233 @ args = 0, pretend = 0, frame = 0
  438. 234 @ frame_needed = 1, uses_anonymous_args = 0
  439. 235 @ link register save eliminated.
  440. 236 0000 80B4 push {r7}
  441. 237 .LCFI14:
  442. 238 .cfi_def_cfa_offset 4
  443. 239 .cfi_offset 7, -4
  444. 240 0002 00AF add r7, sp, #0
  445. 241 .LCFI15:
  446. 242 .cfi_def_cfa_register 7
  447. 200:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** *(__IO uint32_t *) CR_FPDS_BB = (uint32_t)DISABLE;
  448. 243 .loc 1 200 3
  449. 244 0004 034B ldr r3, .L17
  450. 245 .loc 1 200 33
  451. 246 0006 0022 movs r2, #0
  452. 247 0008 1A60 str r2, [r3]
  453. 201:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** }
  454. 248 .loc 1 201 1
  455. 249 000a 00BF nop
  456. 250 000c BD46 mov sp, r7
  457. 251 .LCFI16:
  458. 252 .cfi_def_cfa_register 13
  459. 253 @ sp needed
  460. 254 000e 5DF8047B ldr r7, [sp], #4
  461. 255 .LCFI17:
  462. 256 .cfi_restore 7
  463. 257 .cfi_def_cfa_offset 0
  464. 258 0012 7047 bx lr
  465. ARM GAS C:\Users\10728\AppData\Local\Temp\cc9i0IP6.s page 9
  466. 259 .L18:
  467. 260 .align 2
  468. 261 .L17:
  469. 262 0014 24000E42 .word 1108213796
  470. 263 .cfi_endproc
  471. 264 .LFE238:
  472. 266 .section .text.HAL_PWREx_GetVoltageRange,"ax",%progbits
  473. 267 .align 1
  474. 268 .global HAL_PWREx_GetVoltageRange
  475. 269 .syntax unified
  476. 270 .thumb
  477. 271 .thumb_func
  478. 273 HAL_PWREx_GetVoltageRange:
  479. 274 .LFB239:
  480. 202:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c ****
  481. 203:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** /**
  482. 204:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** * @brief Return Voltage Scaling Range.
  483. 205:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** * @retval The configured scale for the regulator voltage(VOS bit field).
  484. 206:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** * The returned value can be one of the following:
  485. 207:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** * - @arg PWR_REGULATOR_VOLTAGE_SCALE1: Regulator voltage output Scale 1 mode
  486. 208:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** * - @arg PWR_REGULATOR_VOLTAGE_SCALE2: Regulator voltage output Scale 2 mode
  487. 209:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** * - @arg PWR_REGULATOR_VOLTAGE_SCALE3: Regulator voltage output Scale 3 mode
  488. 210:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** */
  489. 211:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** uint32_t HAL_PWREx_GetVoltageRange(void)
  490. 212:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** {
  491. 275 .loc 1 212 1
  492. 276 .cfi_startproc
  493. 277 @ args = 0, pretend = 0, frame = 0
  494. 278 @ frame_needed = 1, uses_anonymous_args = 0
  495. 279 @ link register save eliminated.
  496. 280 0000 80B4 push {r7}
  497. 281 .LCFI18:
  498. 282 .cfi_def_cfa_offset 4
  499. 283 .cfi_offset 7, -4
  500. 284 0002 00AF add r7, sp, #0
  501. 285 .LCFI19:
  502. 286 .cfi_def_cfa_register 7
  503. 213:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** return (PWR->CR & PWR_CR_VOS);
  504. 287 .loc 1 213 14
  505. 288 0004 044B ldr r3, .L21
  506. 289 0006 1B68 ldr r3, [r3]
  507. 290 .loc 1 213 19
  508. 291 0008 03F48043 and r3, r3, #16384
  509. 214:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** }
  510. 292 .loc 1 214 1
  511. 293 000c 1846 mov r0, r3
  512. 294 000e BD46 mov sp, r7
  513. 295 .LCFI20:
  514. 296 .cfi_def_cfa_register 13
  515. 297 @ sp needed
  516. 298 0010 5DF8047B ldr r7, [sp], #4
  517. 299 .LCFI21:
  518. 300 .cfi_restore 7
  519. 301 .cfi_def_cfa_offset 0
  520. 302 0014 7047 bx lr
  521. 303 .L22:
  522. 304 0016 00BF .align 2
  523. ARM GAS C:\Users\10728\AppData\Local\Temp\cc9i0IP6.s page 10
  524. 305 .L21:
  525. 306 0018 00700040 .word 1073770496
  526. 307 .cfi_endproc
  527. 308 .LFE239:
  528. 310 .section .text.HAL_PWREx_ControlVoltageScaling,"ax",%progbits
  529. 311 .align 1
  530. 312 .global HAL_PWREx_ControlVoltageScaling
  531. 313 .syntax unified
  532. 314 .thumb
  533. 315 .thumb_func
  534. 317 HAL_PWREx_ControlVoltageScaling:
  535. 318 .LFB240:
  536. 215:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c ****
  537. 216:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** #if defined(STM32F405xx) || defined(STM32F415xx) || defined(STM32F407xx) || defined(STM32F417xx)
  538. 217:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** /**
  539. 218:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** * @brief Configures the main internal regulator output voltage.
  540. 219:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** * @param VoltageScaling specifies the regulator output voltage to achieve
  541. 220:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** * a tradeoff between performance and power consumption.
  542. 221:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** * This parameter can be one of the following values:
  543. 222:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** * @arg PWR_REGULATOR_VOLTAGE_SCALE1: Regulator voltage output range 1 mode,
  544. 223:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** * the maximum value of fHCLK = 168 MHz.
  545. 224:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** * @arg PWR_REGULATOR_VOLTAGE_SCALE2: Regulator voltage output range 2 mode,
  546. 225:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** * the maximum value of fHCLK = 144 MHz.
  547. 226:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** * @note When moving from Range 1 to Range 2, the system frequency must be decreased to
  548. 227:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** * a value below 144 MHz before calling HAL_PWREx_ConfigVoltageScaling() API.
  549. 228:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** * When moving from Range 2 to Range 1, the system frequency can be increased to
  550. 229:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** * a value up to 168 MHz after calling HAL_PWREx_ConfigVoltageScaling() API.
  551. 230:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** * @retval HAL Status
  552. 231:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** */
  553. 232:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** HAL_StatusTypeDef HAL_PWREx_ControlVoltageScaling(uint32_t VoltageScaling)
  554. 233:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** {
  555. 319 .loc 1 233 1
  556. 320 .cfi_startproc
  557. 321 @ args = 0, pretend = 0, frame = 24
  558. 322 @ frame_needed = 1, uses_anonymous_args = 0
  559. 323 0000 80B5 push {r7, lr}
  560. 324 .LCFI22:
  561. 325 .cfi_def_cfa_offset 8
  562. 326 .cfi_offset 7, -8
  563. 327 .cfi_offset 14, -4
  564. 328 0002 86B0 sub sp, sp, #24
  565. 329 .LCFI23:
  566. 330 .cfi_def_cfa_offset 32
  567. 331 0004 00AF add r7, sp, #0
  568. 332 .LCFI24:
  569. 333 .cfi_def_cfa_register 7
  570. 334 0006 7860 str r0, [r7, #4]
  571. 234:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** uint32_t tickstart = 0U;
  572. 335 .loc 1 234 12
  573. 336 0008 0023 movs r3, #0
  574. 337 000a 7B61 str r3, [r7, #20]
  575. 338 .LBB2:
  576. 235:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c ****
  577. 236:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** assert_param(IS_PWR_VOLTAGE_SCALING_RANGE(VoltageScaling));
  578. 237:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c ****
  579. 238:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** /* Enable PWR RCC Clock Peripheral */
  580. 239:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** __HAL_RCC_PWR_CLK_ENABLE();
  581. ARM GAS C:\Users\10728\AppData\Local\Temp\cc9i0IP6.s page 11
  582. 339 .loc 1 239 3
  583. 340 000c 0023 movs r3, #0
  584. 341 000e 3B61 str r3, [r7, #16]
  585. 342 0010 1A4B ldr r3, .L27
  586. 343 0012 1B6C ldr r3, [r3, #64]
  587. 344 0014 194A ldr r2, .L27
  588. 345 0016 43F08053 orr r3, r3, #268435456
  589. 346 001a 1364 str r3, [r2, #64]
  590. 347 001c 174B ldr r3, .L27
  591. 348 001e 1B6C ldr r3, [r3, #64]
  592. 349 0020 03F08053 and r3, r3, #268435456
  593. 350 0024 3B61 str r3, [r7, #16]
  594. 351 0026 3B69 ldr r3, [r7, #16]
  595. 352 .LBE2:
  596. 353 .LBB3:
  597. 240:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c ****
  598. 241:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** /* Set Range */
  599. 242:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** __HAL_PWR_VOLTAGESCALING_CONFIG(VoltageScaling);
  600. 354 .loc 1 242 3
  601. 355 0028 0023 movs r3, #0
  602. 356 002a FB60 str r3, [r7, #12]
  603. 357 002c 144B ldr r3, .L27+4
  604. 358 002e 1B68 ldr r3, [r3]
  605. 359 0030 23F48042 bic r2, r3, #16384
  606. 360 0034 1249 ldr r1, .L27+4
  607. 361 0036 7B68 ldr r3, [r7, #4]
  608. 362 0038 1343 orrs r3, r3, r2
  609. 363 003a 0B60 str r3, [r1]
  610. 364 003c 104B ldr r3, .L27+4
  611. 365 003e 1B68 ldr r3, [r3]
  612. 366 0040 03F48043 and r3, r3, #16384
  613. 367 0044 FB60 str r3, [r7, #12]
  614. 368 0046 FB68 ldr r3, [r7, #12]
  615. 369 .LBE3:
  616. 243:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c ****
  617. 244:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** /* Get Start Tick*/
  618. 245:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** tickstart = HAL_GetTick();
  619. 370 .loc 1 245 15
  620. 371 0048 FFF7FEFF bl HAL_GetTick
  621. 372 004c 7861 str r0, [r7, #20]
  622. 246:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** while((__HAL_PWR_GET_FLAG(PWR_FLAG_VOSRDY) == RESET))
  623. 373 .loc 1 246 8
  624. 374 004e 09E0 b .L24
  625. 375 .L26:
  626. 247:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** {
  627. 248:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** if((HAL_GetTick() - tickstart ) > PWR_VOSRDY_TIMEOUT_VALUE)
  628. 376 .loc 1 248 9
  629. 377 0050 FFF7FEFF bl HAL_GetTick
  630. 378 0054 0246 mov r2, r0
  631. 379 .loc 1 248 23
  632. 380 0056 7B69 ldr r3, [r7, #20]
  633. 381 0058 D31A subs r3, r2, r3
  634. 382 .loc 1 248 7
  635. 383 005a B3F57A7F cmp r3, #1000
  636. 384 005e 01D9 bls .L24
  637. 249:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** {
  638. 250:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** return HAL_TIMEOUT;
  639. ARM GAS C:\Users\10728\AppData\Local\Temp\cc9i0IP6.s page 12
  640. 385 .loc 1 250 14
  641. 386 0060 0323 movs r3, #3
  642. 387 0062 07E0 b .L25
  643. 388 .L24:
  644. 246:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** {
  645. 389 .loc 1 246 10
  646. 390 0064 064B ldr r3, .L27+4
  647. 391 0066 5B68 ldr r3, [r3, #4]
  648. 392 0068 03F48043 and r3, r3, #16384
  649. 246:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** {
  650. 393 .loc 1 246 8
  651. 394 006c B3F5804F cmp r3, #16384
  652. 395 0070 EED1 bne .L26
  653. 251:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** }
  654. 252:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** }
  655. 253:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c ****
  656. 254:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** return HAL_OK;
  657. 396 .loc 1 254 10
  658. 397 0072 0023 movs r3, #0
  659. 398 .L25:
  660. 255:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c **** }
  661. 399 .loc 1 255 1
  662. 400 0074 1846 mov r0, r3
  663. 401 0076 1837 adds r7, r7, #24
  664. 402 .LCFI25:
  665. 403 .cfi_def_cfa_offset 8
  666. 404 0078 BD46 mov sp, r7
  667. 405 .LCFI26:
  668. 406 .cfi_def_cfa_register 13
  669. 407 @ sp needed
  670. 408 007a 80BD pop {r7, pc}
  671. 409 .L28:
  672. 410 .align 2
  673. 411 .L27:
  674. 412 007c 00380240 .word 1073887232
  675. 413 0080 00700040 .word 1073770496
  676. 414 .cfi_endproc
  677. 415 .LFE240:
  678. 417 .text
  679. 418 .Letext0:
  680. 419 .file 2 "d:\\arm-gcc\\arm-none-eabi\\include\\machine\\_default_types.h"
  681. 420 .file 3 "d:\\arm-gcc\\arm-none-eabi\\include\\sys\\_stdint.h"
  682. 421 .file 4 "Drivers/CMSIS/Device/ST/STM32F4xx/Include/stm32f405xx.h"
  683. 422 .file 5 "Drivers/CMSIS/Device/ST/STM32F4xx/Include/stm32f4xx.h"
  684. 423 .file 6 "Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_def.h"
  685. ARM GAS C:\Users\10728\AppData\Local\Temp\cc9i0IP6.s page 13
  686. DEFINED SYMBOLS
  687. *ABS*:00000000 stm32f4xx_hal_pwr_ex.c
  688. C:\Users\10728\AppData\Local\Temp\cc9i0IP6.s:20 .text.HAL_PWREx_EnableBkUpReg:00000000 $t
  689. C:\Users\10728\AppData\Local\Temp\cc9i0IP6.s:26 .text.HAL_PWREx_EnableBkUpReg:00000000 HAL_PWREx_EnableBkUpReg
  690. C:\Users\10728\AppData\Local\Temp\cc9i0IP6.s:94 .text.HAL_PWREx_EnableBkUpReg:00000044 $d
  691. C:\Users\10728\AppData\Local\Temp\cc9i0IP6.s:100 .text.HAL_PWREx_DisableBkUpReg:00000000 $t
  692. C:\Users\10728\AppData\Local\Temp\cc9i0IP6.s:106 .text.HAL_PWREx_DisableBkUpReg:00000000 HAL_PWREx_DisableBkUpReg
  693. C:\Users\10728\AppData\Local\Temp\cc9i0IP6.s:173 .text.HAL_PWREx_DisableBkUpReg:00000044 $d
  694. C:\Users\10728\AppData\Local\Temp\cc9i0IP6.s:179 .text.HAL_PWREx_EnableFlashPowerDown:00000000 $t
  695. C:\Users\10728\AppData\Local\Temp\cc9i0IP6.s:185 .text.HAL_PWREx_EnableFlashPowerDown:00000000 HAL_PWREx_EnableFlashPowerDown
  696. C:\Users\10728\AppData\Local\Temp\cc9i0IP6.s:218 .text.HAL_PWREx_EnableFlashPowerDown:00000014 $d
  697. C:\Users\10728\AppData\Local\Temp\cc9i0IP6.s:223 .text.HAL_PWREx_DisableFlashPowerDown:00000000 $t
  698. C:\Users\10728\AppData\Local\Temp\cc9i0IP6.s:229 .text.HAL_PWREx_DisableFlashPowerDown:00000000 HAL_PWREx_DisableFlashPowerDown
  699. C:\Users\10728\AppData\Local\Temp\cc9i0IP6.s:262 .text.HAL_PWREx_DisableFlashPowerDown:00000014 $d
  700. C:\Users\10728\AppData\Local\Temp\cc9i0IP6.s:267 .text.HAL_PWREx_GetVoltageRange:00000000 $t
  701. C:\Users\10728\AppData\Local\Temp\cc9i0IP6.s:273 .text.HAL_PWREx_GetVoltageRange:00000000 HAL_PWREx_GetVoltageRange
  702. C:\Users\10728\AppData\Local\Temp\cc9i0IP6.s:306 .text.HAL_PWREx_GetVoltageRange:00000018 $d
  703. C:\Users\10728\AppData\Local\Temp\cc9i0IP6.s:311 .text.HAL_PWREx_ControlVoltageScaling:00000000 $t
  704. C:\Users\10728\AppData\Local\Temp\cc9i0IP6.s:317 .text.HAL_PWREx_ControlVoltageScaling:00000000 HAL_PWREx_ControlVoltageScaling
  705. C:\Users\10728\AppData\Local\Temp\cc9i0IP6.s:412 .text.HAL_PWREx_ControlVoltageScaling:0000007c $d
  706. UNDEFINED SYMBOLS
  707. HAL_GetTick