⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 stm32f10x_bkp.lst

📁 stm32+ucos-ii
💻 LST
📖 第 1 页 / 共 2 页
字号:
   \   00000014   7047               BX       LR               ;; return
    193          
    194          /**
    195            * @brief  Sets RTC Clock Calibration value.
    196            * @param  CalibrationValue: specifies the RTC Clock Calibration value.
    197            *   This parameter must be a number between 0 and 0x7F.
    198            * @retval None
    199            */

   \                                 In section .text, align 2, keep-with-next
    200          void BKP_SetRTCCalibrationValue(uint8_t CalibrationValue)
    201          {
    202            uint16_t tmpreg = 0;
   \                     BKP_SetRTCCalibrationValue:
   \   00000000   0021               MOVS     R1,#+0
    203            /* Check the parameters */
    204            assert_param(IS_BKP_CALIBRATION_VALUE(CalibrationValue));
    205            tmpreg = BKP->RTCCR;
   \   00000002   ....               LDR.N    R2,??DataTable10_3  ;; 0x40006c2c
   \   00000004   1288               LDRH     R2,[R2, #+0]
   \   00000006   1100               MOVS     R1,R2
    206            /* Clear CAL[6:0] bits */
    207            tmpreg &= RTCCR_CAL_MASK;
   \   00000008   4FF68072           MOVW     R2,#+65408
   \   0000000C   1140               ANDS     R1,R2,R1
    208            /* Set CAL[6:0] bits according to CalibrationValue value */
    209            tmpreg |= CalibrationValue;
   \   0000000E   C0B2               UXTB     R0,R0            ;; ZeroExt  R0,R0,#+24,#+24
   \   00000010   0143               ORRS     R1,R0,R1
    210            /* Store the new value */
    211            BKP->RTCCR = tmpreg;
   \   00000012   ....               LDR.N    R2,??DataTable10_3  ;; 0x40006c2c
   \   00000014   1180               STRH     R1,[R2, #+0]
    212          }
   \   00000016   7047               BX       LR               ;; return
    213          
    214          /**
    215            * @brief  Writes user data to the specified Data Backup Register.
    216            * @param  BKP_DR: specifies the Data Backup Register.
    217            *   This parameter can be BKP_DRx where x:[1, 42]
    218            * @param  Data: data to write
    219            * @retval None
    220            */

   \                                 In section .text, align 2, keep-with-next
    221          void BKP_WriteBackupRegister(uint16_t BKP_DR, uint16_t Data)
    222          {
   \                     BKP_WriteBackupRegister:
   \   00000000   81B0               SUB      SP,SP,#+4
    223            __IO uint32_t tmp = 0;
   \   00000002   0022               MOVS     R2,#+0
   \   00000004   0092               STR      R2,[SP, #+0]
    224          
    225            /* Check the parameters */
    226            assert_param(IS_BKP_DR(BKP_DR));
    227          
    228            tmp = (uint32_t)BKP_BASE; 
   \   00000006   ....               LDR.N    R2,??DataTable10_4  ;; 0x40006c00
   \   00000008   0092               STR      R2,[SP, #+0]
    229            tmp += BKP_DR;
   \   0000000A   009A               LDR      R2,[SP, #+0]
   \   0000000C   80B2               UXTH     R0,R0            ;; ZeroExt  R0,R0,#+16,#+16
   \   0000000E   8218               ADDS     R2,R0,R2
   \   00000010   0092               STR      R2,[SP, #+0]
    230          
    231            *(__IO uint32_t *) tmp = Data;
   \   00000012   009A               LDR      R2,[SP, #+0]
   \   00000014   89B2               UXTH     R1,R1            ;; ZeroExt  R1,R1,#+16,#+16
   \   00000016   1160               STR      R1,[R2, #+0]
    232          }
   \   00000018   01B0               ADD      SP,SP,#+4
   \   0000001A   7047               BX       LR               ;; return
    233          
    234          /**
    235            * @brief  Reads data from the specified Data Backup Register.
    236            * @param  BKP_DR: specifies the Data Backup Register.
    237            *   This parameter can be BKP_DRx where x:[1, 42]
    238            * @retval The content of the specified Data Backup Register
    239            */

   \                                 In section .text, align 2, keep-with-next
    240          uint16_t BKP_ReadBackupRegister(uint16_t BKP_DR)
    241          {
   \                     BKP_ReadBackupRegister:
   \   00000000   81B0               SUB      SP,SP,#+4
   \   00000002   0100               MOVS     R1,R0
    242            __IO uint32_t tmp = 0;
   \   00000004   0020               MOVS     R0,#+0
   \   00000006   0090               STR      R0,[SP, #+0]
    243          
    244            /* Check the parameters */
    245            assert_param(IS_BKP_DR(BKP_DR));
    246          
    247            tmp = (uint32_t)BKP_BASE; 
   \   00000008   ....               LDR.N    R0,??DataTable10_4  ;; 0x40006c00
   \   0000000A   0090               STR      R0,[SP, #+0]
    248            tmp += BKP_DR;
   \   0000000C   0098               LDR      R0,[SP, #+0]
   \   0000000E   89B2               UXTH     R1,R1            ;; ZeroExt  R1,R1,#+16,#+16
   \   00000010   0818               ADDS     R0,R1,R0
   \   00000012   0090               STR      R0,[SP, #+0]
    249          
    250            return (*(__IO uint16_t *) tmp);
   \   00000014   0098               LDR      R0,[SP, #+0]
   \   00000016   0088               LDRH     R0,[R0, #+0]
   \   00000018   01B0               ADD      SP,SP,#+4
   \   0000001A   7047               BX       LR               ;; return
    251          }
    252          
    253          /**
    254            * @brief  Checks whether the Tamper Pin Event flag is set or not.
    255            * @param  None
    256            * @retval The new state of the Tamper Pin Event flag (SET or RESET).
    257            */

   \                                 In section .text, align 2, keep-with-next
    258          FlagStatus BKP_GetFlagStatus(void)
    259          {
    260            return (FlagStatus)(*(__IO uint32_t *) CSR_TEF_BB);
   \                     BKP_GetFlagStatus:
   \   00000000   ....               LDR.N    R0,??DataTable10_5  ;; 0x420d86a0
   \   00000002   0068               LDR      R0,[R0, #+0]
   \   00000004   C0B2               UXTB     R0,R0            ;; ZeroExt  R0,R0,#+24,#+24
   \   00000006   7047               BX       LR               ;; return
    261          }
    262          
    263          /**
    264            * @brief  Clears Tamper Pin Event pending flag.
    265            * @param  None
    266            * @retval None
    267            */

   \                                 In section .text, align 2, keep-with-next
    268          void BKP_ClearFlag(void)
    269          {
    270            /* Set CTE bit to clear Tamper Pin Event flag */
    271            BKP->CSR |= BKP_CSR_CTE;
   \                     BKP_ClearFlag:
   \   00000000   ....               LDR.N    R0,??DataTable10_6  ;; 0x40006c34
   \   00000002   0088               LDRH     R0,[R0, #+0]
   \   00000004   50F00100           ORRS     R0,R0,#0x1
   \   00000008   ....               LDR.N    R1,??DataTable10_6  ;; 0x40006c34
   \   0000000A   0880               STRH     R0,[R1, #+0]
    272          }
   \   0000000C   7047               BX       LR               ;; return
    273          
    274          /**
    275            * @brief  Checks whether the Tamper Pin Interrupt has occurred or not.
    276            * @param  None
    277            * @retval The new state of the Tamper Pin Interrupt (SET or RESET).
    278            */

   \                                 In section .text, align 2, keep-with-next
    279          ITStatus BKP_GetITStatus(void)
    280          {
    281            return (ITStatus)(*(__IO uint32_t *) CSR_TIF_BB);
   \                     BKP_GetITStatus:
   \   00000000   ....               LDR.N    R0,??DataTable10_7  ;; 0x420d86a4
   \   00000002   0068               LDR      R0,[R0, #+0]
   \   00000004   C0B2               UXTB     R0,R0            ;; ZeroExt  R0,R0,#+24,#+24
   \   00000006   7047               BX       LR               ;; return
    282          }
    283          
    284          /**
    285            * @brief  Clears Tamper Pin Interrupt pending bit.
    286            * @param  None
    287            * @retval None
    288            */

   \                                 In section .text, align 2, keep-with-next
    289          void BKP_ClearITPendingBit(void)
    290          {
    291            /* Set CTI bit to clear Tamper Pin Interrupt pending bit */
    292            BKP->CSR |= BKP_CSR_CTI;
   \                     BKP_ClearITPendingBit:
   \   00000000   ....               LDR.N    R0,??DataTable10_6  ;; 0x40006c34
   \   00000002   0088               LDRH     R0,[R0, #+0]
   \   00000004   50F00200           ORRS     R0,R0,#0x2
   \   00000008   ....               LDR.N    R1,??DataTable10_6  ;; 0x40006c34
   \   0000000A   0880               STRH     R0,[R1, #+0]
    293          }
   \   0000000C   7047               BX       LR               ;; return

   \                                 In section .text, align 4, keep-with-next
   \                     ??DataTable10:
   \   00000000   04860D42           DC32     0x420d8604

   \                                 In section .text, align 4, keep-with-next
   \                     ??DataTable10_1:
   \   00000000   00860D42           DC32     0x420d8600

   \                                 In section .text, align 4, keep-with-next
   \                     ??DataTable10_2:
   \   00000000   88860D42           DC32     0x420d8688

   \                                 In section .text, align 4, keep-with-next
   \                     ??DataTable10_3:
   \   00000000   2C6C0040           DC32     0x40006c2c

   \                                 In section .text, align 4, keep-with-next
   \                     ??DataTable10_4:
   \   00000000   006C0040           DC32     0x40006c00

   \                                 In section .text, align 4, keep-with-next
   \                     ??DataTable10_5:
   \   00000000   A0860D42           DC32     0x420d86a0

   \                                 In section .text, align 4, keep-with-next
   \                     ??DataTable10_6:
   \   00000000   346C0040           DC32     0x40006c34

   \                                 In section .text, align 4, keep-with-next
   \                     ??DataTable10_7:
   \   00000000   A4860D42           DC32     0x420d86a4
    294          
    295          /**
    296            * @}
    297            */
    298          
    299          /**
    300            * @}
    301            */
    302          
    303          /**
    304            * @}
    305            */
    306          
    307          /******************* (C) COPYRIGHT 2010 STMicroelectronics *****END OF FILE****/

   Maximum stack usage in bytes:

     Function                   .cstack
     --------                   -------
     BKP_ClearFlag                   0
     BKP_ClearITPendingBit           0
     BKP_DeInit                      8
     BKP_GetFlagStatus               0
     BKP_GetITStatus                 0
     BKP_ITConfig                    0
     BKP_RTCOutputConfig             0
     BKP_ReadBackupRegister          4
     BKP_SetRTCCalibrationValue      0
     BKP_TamperPinCmd                0
     BKP_TamperPinLevelConfig        0
     BKP_WriteBackupRegister         4


   Section sizes:

     Function/Label             Bytes
     --------------             -----
     BKP_DeInit                   16
     BKP_TamperPinLevelConfig      8
     BKP_TamperPinCmd              8
     BKP_ITConfig                  8
     BKP_RTCOutputConfig          22
     BKP_SetRTCCalibrationValue   24
     BKP_WriteBackupRegister      28
     BKP_ReadBackupRegister       28
     BKP_GetFlagStatus             8
     BKP_ClearFlag                14
     BKP_GetITStatus               8
     BKP_ClearITPendingBit        14
     ??DataTable10                 4
     ??DataTable10_1               4
     ??DataTable10_2               4
     ??DataTable10_3               4
     ??DataTable10_4               4
     ??DataTable10_5               4
     ??DataTable10_6               4
     ??DataTable10_7               4

 
 218 bytes in section .text
 
 218 bytes of CODE memory

Errors: none
Warnings: none

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -