stm32f10x_rtc.lst
上传用户:louzj00
上传日期:2021-08-24
资源大小:325k
文件大小:15k
源码类别:

驱动编程

开发平台:

C/C++

  1. C:TDDownloadSoftproject_pressprojectRIDESTM3210E-EVALstm32f10x_rtc.o:     file format elf32-littlearm
  2. C:TDDownloadSoftproject_pressprojectRIDESTM3210E-EVALstm32f10x_rtc.o
  3. Disassembly of section .text.RTC_ITConfig:
  4. 00000000 <RTC_ITConfig>:
  5. RTC_ITConfig():
  6. C:TDDownloadSoftproject_presslibrarysrc/stm32f10x_rtc.c:51
  7. {
  8.   /* Check the parameters */
  9.   assert_param(IS_RTC_IT(RTC_IT));  
  10.   assert_param(IS_FUNCTIONAL_STATE(NewState));
  11.   
  12.   if (NewState != DISABLE)
  13.    0: b129       cbz r1, e <RTC_ITConfig+0xe>
  14. C:TDDownloadSoftproject_presslibrarysrc/stm32f10x_rtc.c:53
  15.   {
  16.     RTC->CRH |= RTC_IT;
  17.    2: 4a06       ldr r2, [pc, #24] (1c <RTC_ITConfig+0x1c>)
  18.    4: 8813       ldrh r3, [r2, #0]
  19.    6: b29b       uxth r3, r3
  20.    8: ea40 0303  orr.w r3, r0, r3
  21.    c: e004       b.n 18 <RTC_ITConfig+0x18>
  22. C:TDDownloadSoftproject_presslibrarysrc/stm32f10x_rtc.c:57
  23.   }
  24.   else
  25.   {
  26.     RTC->CRH &= (u16)~RTC_IT;
  27.    e: 4a03       ldr r2, [pc, #12] (1c <RTC_ITConfig+0x1c>)
  28.   10: 8813       ldrh r3, [r2, #0]
  29.   12: b29b       uxth r3, r3
  30.   14: ea23 0300  bic.w r3, r3, r0
  31.   18: 8013       strh r3, [r2, #0]
  32. C:TDDownloadSoftproject_presslibrarysrc/stm32f10x_rtc.c:59
  33.   }
  34. }
  35.   1a: 4770       bx lr
  36.   1c: 40002800  .word 0x40002800
  37. Disassembly of section .text.RTC_EnterConfigMode:
  38. 00000000 <RTC_EnterConfigMode>:
  39. RTC_EnterConfigMode():
  40. C:TDDownloadSoftproject_presslibrarysrc/stm32f10x_rtc.c:71
  41. * Return         : None
  42. *******************************************************************************/
  43. void RTC_EnterConfigMode(void)
  44. {
  45.   /* Set the CNF flag to enter in the Configuration Mode */
  46.   RTC->CRL |= CRL_CNF_Set;
  47.    0: 4a03       ldr r2, [pc, #12] (10 <RTC_EnterConfigMode+0x10>)
  48.    2: 8893       ldrh r3, [r2, #4]
  49.    4: b29b       uxth r3, r3
  50.    6: f043 0310  orr.w r3, r3, #16 ; 0x10
  51.    a: 8093       strh r3, [r2, #4]
  52. C:TDDownloadSoftproject_presslibrarysrc/stm32f10x_rtc.c:72
  53. }
  54.    c: 4770       bx lr
  55.    e: 46c0       nop (mov r8, r8)
  56.   10: 40002800  .word 0x40002800
  57. Disassembly of section .text.RTC_ExitConfigMode:
  58. 00000000 <RTC_ExitConfigMode>:
  59. RTC_ExitConfigMode():
  60. C:TDDownloadSoftproject_presslibrarysrc/stm32f10x_rtc.c:84
  61. * Return         : None
  62. *******************************************************************************/
  63. void RTC_ExitConfigMode(void)
  64. {
  65.   /* Reset the CNF flag to exit from the Configuration Mode */
  66.   RTC->CRL &= CRL_CNF_Reset;
  67.    0: 4a03       ldr r2, [pc, #12] (10 <RTC_ExitConfigMode+0x10>)
  68.    2: 8893       ldrh r3, [r2, #4]
  69.    4: f023 0310  bic.w r3, r3, #16 ; 0x10
  70.    8: 041b       lsls r3, r3, #16
  71.    a: 0c1b       lsrs r3, r3, #16
  72.    c: 8093       strh r3, [r2, #4]
  73. C:TDDownloadSoftproject_presslibrarysrc/stm32f10x_rtc.c:85
  74. }
  75.    e: 4770       bx lr
  76.   10: 40002800  .word 0x40002800
  77. Disassembly of section .text.RTC_GetCounter:
  78. 00000000 <RTC_GetCounter>:
  79. RTC_GetCounter():
  80. C:TDDownloadSoftproject_presslibrarysrc/stm32f10x_rtc.c:97
  81. * Return         : RTC counter value.
  82. *******************************************************************************/
  83. u32 RTC_GetCounter(void)
  84. {
  85.   u16 tmp = 0;
  86.   tmp = RTC->CNTL;
  87.    0: 4b03       ldr r3, [pc, #12] (10 <RTC_GetCounter+0x10>)
  88.    2: 8b98       ldrh r0, [r3, #28]
  89. C:TDDownloadSoftproject_presslibrarysrc/stm32f10x_rtc.c:99
  90.   return (((u32)RTC->CNTH << 16 ) | tmp) ;
  91.    4: 8b1b       ldrh r3, [r3, #24]
  92. C:TDDownloadSoftproject_presslibrarysrc/stm32f10x_rtc.c:97
  93. * Return         : RTC counter value.
  94. *******************************************************************************/
  95. u32 RTC_GetCounter(void)
  96. {
  97.   u16 tmp = 0;
  98.   tmp = RTC->CNTL;
  99.    6: b280       uxth r0, r0
  100. C:TDDownloadSoftproject_presslibrarysrc/stm32f10x_rtc.c:100
  101.   return (((u32)RTC->CNTH << 16 ) | tmp) ;
  102. }
  103.    8: ea40 4003  orr.w r0, r0, r3, lsl #16
  104.    c: 4770       bx lr
  105.    e: 46c0       nop (mov r8, r8)
  106.   10: 40002800  .word 0x40002800
  107. Disassembly of section .text.RTC_SetCounter:
  108. 00000000 <RTC_SetCounter>:
  109. RTC_SetCounter():
  110. C:TDDownloadSoftproject_presslibrarysrc/stm32f10x_rtc.c:110
  111. * Input          : - CounterValue: RTC counter new value.
  112. * Output         : None
  113. * Return         : None
  114. *******************************************************************************/
  115. void RTC_SetCounter(u32 CounterValue)
  116.    0: b510       push {r4, lr}
  117.    2: 4604       mov r4, r0
  118. C:TDDownloadSoftproject_presslibrarysrc/stm32f10x_rtc.c:111
  119.   RTC_EnterConfigMode();
  120.    4: f7ff fffe  bl 0 <RTC_SetCounter>
  121. C:TDDownloadSoftproject_presslibrarysrc/stm32f10x_rtc.c:114
  122.   /* Set RTC COUNTER MSB word */
  123.   RTC->CNTH = CounterValue >> 16;
  124.    8: 4a03       ldr r2, [pc, #12] (18 <RTC_SetCounter+0x18>)
  125.    a: 0c23       lsrs r3, r4, #16
  126. C:TDDownloadSoftproject_presslibrarysrc/stm32f10x_rtc.c:116
  127.   /* Set RTC COUNTER LSB word */
  128.   RTC->CNTL = (CounterValue & RTC_LSB_Mask);
  129.    c: b2a4       uxth r4, r4
  130. C:TDDownloadSoftproject_presslibrarysrc/stm32f10x_rtc.c:114
  131. void RTC_SetCounter(u32 CounterValue)
  132.   RTC_EnterConfigMode();
  133.   /* Set RTC COUNTER MSB word */
  134.   RTC->CNTH = CounterValue >> 16;
  135.    e: 8313       strh r3, [r2, #24]
  136. C:TDDownloadSoftproject_presslibrarysrc/stm32f10x_rtc.c:116
  137.   /* Set RTC COUNTER LSB word */
  138.   RTC->CNTL = (CounterValue & RTC_LSB_Mask);
  139.   10: 8394       strh r4, [r2, #28]
  140. C:TDDownloadSoftproject_presslibrarysrc/stm32f10x_rtc.c:118
  141.   RTC_ExitConfigMode();
  142.   12: f7ff fffe  bl 0 <RTC_SetCounter>
  143. C:TDDownloadSoftproject_presslibrarysrc/stm32f10x_rtc.c:119
  144. }
  145.   16: bd10       pop {r4, pc}
  146.   18: 40002800  .word 0x40002800
  147. Disassembly of section .text.RTC_SetPrescaler:
  148. 00000000 <RTC_SetPrescaler>:
  149. RTC_SetPrescaler():
  150. C:TDDownloadSoftproject_presslibrarysrc/stm32f10x_rtc.c:129
  151. * Input          : - PrescalerValue: RTC prescaler new value.
  152. * Output         : None
  153. * Return         : None
  154. *******************************************************************************/
  155. void RTC_SetPrescaler(u32 PrescalerValue)
  156. {
  157.    0: b510       push {r4, lr}
  158.    2: 4604       mov r4, r0
  159. C:TDDownloadSoftproject_presslibrarysrc/stm32f10x_rtc.c:133
  160.   /* Check the parameters */
  161.   assert_param(IS_RTC_PRESCALER(PrescalerValue));
  162.   
  163.   RTC_EnterConfigMode();
  164.    4: f7ff fffe  bl 0 <RTC_SetPrescaler>
  165. C:TDDownloadSoftproject_presslibrarysrc/stm32f10x_rtc.c:136
  166.   /* Set RTC PRESCALER MSB word */
  167.   RTC->PRLH = (PrescalerValue & PRLH_MSB_Mask) >> 16;
  168.    8: 4a04       ldr r2, [pc, #16] (1c <RTC_SetPrescaler+0x1c>)
  169.    a: f3c4 4303  ubfx r3, r4, #16, #4
  170. C:TDDownloadSoftproject_presslibrarysrc/stm32f10x_rtc.c:138
  171.   /* Set RTC PRESCALER LSB word */
  172.   RTC->PRLL = (PrescalerValue & RTC_LSB_Mask);
  173.    e: b2a4       uxth r4, r4
  174. C:TDDownloadSoftproject_presslibrarysrc/stm32f10x_rtc.c:136
  175.   assert_param(IS_RTC_PRESCALER(PrescalerValue));
  176.   
  177.   RTC_EnterConfigMode();
  178.   /* Set RTC PRESCALER MSB word */
  179.   RTC->PRLH = (PrescalerValue & PRLH_MSB_Mask) >> 16;
  180.   10: 8113       strh r3, [r2, #8]
  181. C:TDDownloadSoftproject_presslibrarysrc/stm32f10x_rtc.c:138
  182.   /* Set RTC PRESCALER LSB word */
  183.   RTC->PRLL = (PrescalerValue & RTC_LSB_Mask);
  184.   12: 8194       strh r4, [r2, #12]
  185. C:TDDownloadSoftproject_presslibrarysrc/stm32f10x_rtc.c:140
  186.   RTC_ExitConfigMode();
  187.   14: f7ff fffe  bl 0 <RTC_SetPrescaler>
  188. C:TDDownloadSoftproject_presslibrarysrc/stm32f10x_rtc.c:141
  189. }
  190.   18: bd10       pop {r4, pc}
  191.   1a: 46c0       nop (mov r8, r8)
  192.   1c: 40002800  .word 0x40002800
  193. Disassembly of section .text.RTC_SetAlarm:
  194. 00000000 <RTC_SetAlarm>:
  195. RTC_SetAlarm():
  196. C:TDDownloadSoftproject_presslibrarysrc/stm32f10x_rtc.c:151
  197. * Input          : - AlarmValue: RTC alarm new value.
  198. * Output         : None
  199. * Return         : None
  200. *******************************************************************************/
  201. void RTC_SetAlarm(u32 AlarmValue)
  202. {  
  203.    0: b510       push {r4, lr}
  204.    2: 4604       mov r4, r0
  205. C:TDDownloadSoftproject_presslibrarysrc/stm32f10x_rtc.c:152
  206.   RTC_EnterConfigMode();
  207.    4: f7ff fffe  bl 0 <RTC_SetAlarm>
  208. C:TDDownloadSoftproject_presslibrarysrc/stm32f10x_rtc.c:155
  209.   /* Set the ALARM MSB word */
  210.   RTC->ALRH = AlarmValue >> 16;
  211.    8: 4a03       ldr r2, [pc, #12] (18 <RTC_SetAlarm+0x18>)
  212.    a: 0c23       lsrs r3, r4, #16
  213. C:TDDownloadSoftproject_presslibrarysrc/stm32f10x_rtc.c:157
  214.   /* Set the ALARM LSB word */
  215.   RTC->ALRL = (AlarmValue & RTC_LSB_Mask);
  216.    c: b2a4       uxth r4, r4
  217. C:TDDownloadSoftproject_presslibrarysrc/stm32f10x_rtc.c:155
  218. void RTC_SetAlarm(u32 AlarmValue)
  219. {  
  220.   RTC_EnterConfigMode();
  221.   /* Set the ALARM MSB word */
  222.   RTC->ALRH = AlarmValue >> 16;
  223.    e: 8413       strh r3, [r2, #32]
  224. C:TDDownloadSoftproject_presslibrarysrc/stm32f10x_rtc.c:157
  225.   /* Set the ALARM LSB word */
  226.   RTC->ALRL = (AlarmValue & RTC_LSB_Mask);
  227.   10: 8494       strh r4, [r2, #36]
  228. C:TDDownloadSoftproject_presslibrarysrc/stm32f10x_rtc.c:159
  229.   RTC_ExitConfigMode();
  230.   12: f7ff fffe  bl 0 <RTC_SetAlarm>
  231. C:TDDownloadSoftproject_presslibrarysrc/stm32f10x_rtc.c:160
  232. }
  233.   16: bd10       pop {r4, pc}
  234.   18: 40002800  .word 0x40002800
  235. Disassembly of section .text.RTC_GetDivider:
  236. 00000000 <RTC_GetDivider>:
  237. RTC_GetDivider():
  238. C:TDDownloadSoftproject_presslibrarysrc/stm32f10x_rtc.c:173
  239. *******************************************************************************/
  240. u32 RTC_GetDivider(void)
  241. {
  242.   u32 tmp = 0x00;
  243.   tmp = ((u32)RTC->DIVH & (u32)0x000F) << 16;
  244.    0: 4a04       ldr r2, [pc, #16] (14 <RTC_GetDivider+0x14>)
  245.    2: 8a13       ldrh r3, [r2, #16]
  246. C:TDDownloadSoftproject_presslibrarysrc/stm32f10x_rtc.c:174
  247.   tmp |= RTC->DIVL;
  248.    4: 8a90       ldrh r0, [r2, #20]
  249. C:TDDownloadSoftproject_presslibrarysrc/stm32f10x_rtc.c:173
  250. *******************************************************************************/
  251. u32 RTC_GetDivider(void)
  252. {
  253.   u32 tmp = 0x00;
  254.   tmp = ((u32)RTC->DIVH & (u32)0x000F) << 16;
  255.    6: f003 030f  and.w r3, r3, #15 ; 0xf
  256. C:TDDownloadSoftproject_presslibrarysrc/stm32f10x_rtc.c:174
  257.   tmp |= RTC->DIVL;
  258.    a: b280       uxth r0, r0
  259. C:TDDownloadSoftproject_presslibrarysrc/stm32f10x_rtc.c:177
  260.   return tmp;
  261. }
  262.    c: ea40 4003  orr.w r0, r0, r3, lsl #16
  263.   10: 4770       bx lr
  264.   12: 46c0       nop (mov r8, r8)
  265.   14: 40002800  .word 0x40002800
  266. Disassembly of section .text.RTC_WaitForLastTask:
  267. 00000000 <RTC_WaitForLastTask>:
  268. RTC_WaitForLastTask():
  269. C:TDDownloadSoftproject_presslibrarysrc/stm32f10x_rtc.c:190
  270. * Return         : None
  271. *******************************************************************************/
  272. void RTC_WaitForLastTask(void)
  273. {
  274.   /* Loop until RTOFF flag is set */
  275.   while ((RTC->CRL & RTC_FLAG_RTOFF) == (u16)RESET)
  276.    0: 4b02       ldr r3, [pc, #8] (c <RTC_WaitForLastTask+0xc>)
  277.    2: 889b       ldrh r3, [r3, #4]
  278.    4: f013 0f20  tst.w r3, #32 ; 0x20
  279.    8: d0fa       beq.n 0 <RTC_WaitForLastTask>
  280. C:TDDownloadSoftproject_presslibrarysrc/stm32f10x_rtc.c:193
  281.   {
  282.   }
  283. }
  284.    a: 4770       bx lr
  285.    c: 40002800  .word 0x40002800
  286. Disassembly of section .text.RTC_WaitForSynchro:
  287. 00000000 <RTC_WaitForSynchro>:
  288. RTC_WaitForSynchro():
  289. C:TDDownloadSoftproject_presslibrarysrc/stm32f10x_rtc.c:208
  290. * Return         : None
  291. *******************************************************************************/
  292. void RTC_WaitForSynchro(void)
  293. {
  294.   /* Clear RSF flag */
  295.   RTC->CRL &= (u16)~RTC_FLAG_RSF;
  296.    0: 4a06       ldr r2, [pc, #24] (1c <RTC_WaitForSynchro+0x1c>)
  297.    2: 8893       ldrh r3, [r2, #4]
  298.    4: f023 0308  bic.w r3, r3, #8 ; 0x8
  299.    8: 041b       lsls r3, r3, #16
  300.    a: 0c1b       lsrs r3, r3, #16
  301.    c: 8093       strh r3, [r2, #4]
  302. C:TDDownloadSoftproject_presslibrarysrc/stm32f10x_rtc.c:211
  303.   /* Loop until RSF flag is set */
  304.   while ((RTC->CRL & RTC_FLAG_RSF) == (u16)RESET)
  305.    e: 4b03       ldr r3, [pc, #12] (1c <RTC_WaitForSynchro+0x1c>)
  306.   10: 889b       ldrh r3, [r3, #4]
  307.   12: f013 0f08  tst.w r3, #8 ; 0x8
  308.   16: d0fa       beq.n e <RTC_WaitForSynchro+0xe>
  309. C:TDDownloadSoftproject_presslibrarysrc/stm32f10x_rtc.c:214
  310.   {
  311.   }
  312. }
  313.   18: 4770       bx lr
  314.   1a: 46c0       nop (mov r8, r8)
  315.   1c: 40002800  .word 0x40002800
  316. Disassembly of section .text.RTC_GetFlagStatus:
  317. 00000000 <RTC_GetFlagStatus>:
  318. RTC_GetFlagStatus():
  319. C:TDDownloadSoftproject_presslibrarysrc/stm32f10x_rtc.c:236
  320.   FlagStatus bitstatus = RESET;
  321.   
  322.   /* Check the parameters */
  323.   assert_param(IS_RTC_GET_FLAG(RTC_FLAG)); 
  324.   
  325.   if ((RTC->CRL & RTC_FLAG) != (u16)RESET)
  326.    0: 4b03       ldr r3, [pc, #12] (10 <RTC_GetFlagStatus+0x10>)
  327.    2: 889b       ldrh r3, [r3, #4]
  328.    4: 4218       tst r0, r3
  329. C:TDDownloadSoftproject_presslibrarysrc/stm32f10x_rtc.c:245
  330.   else
  331.   {
  332.     bitstatus = RESET;
  333.   }
  334.   return bitstatus;
  335. }
  336.    6: bf0c       ite eq
  337.    8: 2000       moveq r0, #0
  338.    a: 2001       movne r0, #1
  339.    c: 4770       bx lr
  340.    e: 46c0       nop (mov r8, r8)
  341.   10: 40002800  .word 0x40002800
  342. Disassembly of section .text.RTC_ClearFlag:
  343. 00000000 <RTC_ClearFlag>:
  344. RTC_ClearFlag():
  345. C:TDDownloadSoftproject_presslibrarysrc/stm32f10x_rtc.c:266
  346. {
  347.   /* Check the parameters */
  348.   assert_param(IS_RTC_CLEAR_FLAG(RTC_FLAG)); 
  349.     
  350.   /* Clear the coressponding RTC flag */
  351.   RTC->CRL &= (u16)~RTC_FLAG;
  352.    0: 4a03       ldr r2, [pc, #12] (10 <RTC_ClearFlag+0x10>)
  353.    2: 8893       ldrh r3, [r2, #4]
  354.    4: b29b       uxth r3, r3
  355.    6: ea23 0300  bic.w r3, r3, r0
  356.    a: 8093       strh r3, [r2, #4]
  357. C:TDDownloadSoftproject_presslibrarysrc/stm32f10x_rtc.c:267
  358. }
  359.    c: 4770       bx lr
  360.    e: 46c0       nop (mov r8, r8)
  361.   10: 40002800  .word 0x40002800
  362. Disassembly of section .text.RTC_GetITStatus:
  363. 00000000 <RTC_GetITStatus>:
  364. RTC_GetITStatus():
  365. C:TDDownloadSoftproject_presslibrarysrc/stm32f10x_rtc.c:287
  366.   ITStatus bitstatus = RESET;
  367.   /* Check the parameters */
  368.   assert_param(IS_RTC_GET_IT(RTC_IT)); 
  369.   
  370.   bitstatus = (ITStatus)(RTC->CRL & RTC_IT);
  371.    0: 4a07       ldr r2, [pc, #28] (20 <RTC_GetITStatus+0x20>)
  372.    2: 8893       ldrh r3, [r2, #4]
  373.    4: b299       uxth r1, r3
  374. C:TDDownloadSoftproject_presslibrarysrc/stm32f10x_rtc.c:289
  375.   if (((RTC->CRH & RTC_IT) != (u16)RESET) && (bitstatus != (u16)RESET))
  376.    6: 8813       ldrh r3, [r2, #0]
  377.    8: 4003       ands r3, r0
  378.    a: d101       bne.n 10 <RTC_GetITStatus+0x10>
  379.    c: 4618       mov r0, r3
  380.    e: e006       b.n 1e <RTC_GetITStatus+0x1e>
  381. C:TDDownloadSoftproject_presslibrarysrc/stm32f10x_rtc.c:287
  382.   ITStatus bitstatus = RESET;
  383.   /* Check the parameters */
  384.   assert_param(IS_RTC_GET_IT(RTC_IT)); 
  385.   
  386.   bitstatus = (ITStatus)(RTC->CRL & RTC_IT);
  387.   10: ea00 0301  and.w r3, r0, r1
  388.   14: f013 0fff  tst.w r3, #255 ; 0xff
  389.   18: bf0c       ite eq
  390.   1a: 2000       moveq r0, #0
  391.   1c: 2001       movne r0, #1
  392. C:TDDownloadSoftproject_presslibrarysrc/stm32f10x_rtc.c:298
  393.   else
  394.   {
  395.     bitstatus = RESET;
  396.   }
  397.   return bitstatus;
  398. }
  399.   1e: 4770       bx lr
  400.   20: 40002800  .word 0x40002800
  401. Disassembly of section .text.RTC_ClearITPendingBit:
  402. 00000000 <RTC_ClearITPendingBit>:
  403. RTC_ClearITPendingBit():
  404. C:TDDownloadSoftproject_presslibrarysrc/stm32f10x_rtc.c:317
  405. {
  406.   /* Check the parameters */
  407.   assert_param(IS_RTC_IT(RTC_IT));  
  408.   
  409.   /* Clear the coressponding RTC pending bit */
  410.   RTC->CRL &= (u16)~RTC_IT;
  411.    0: 4a03       ldr r2, [pc, #12] (10 <RTC_ClearITPendingBit+0x10>)
  412.    2: 8893       ldrh r3, [r2, #4]
  413.    4: b29b       uxth r3, r3
  414.    6: ea23 0300  bic.w r3, r3, r0
  415.    a: 8093       strh r3, [r2, #4]
  416. C:TDDownloadSoftproject_presslibrarysrc/stm32f10x_rtc.c:318
  417. }
  418.    c: 4770       bx lr
  419.    e: 46c0       nop (mov r8, r8)
  420.   10: 40002800  .word 0x40002800