stm32f10x_rtc.lst
上传用户:louzj00
上传日期:2021-08-24
资源大小:325k
文件大小:15k
- C:TDDownloadSoftproject_pressprojectRIDESTM3210E-EVALstm32f10x_rtc.o: file format elf32-littlearm
- C:TDDownloadSoftproject_pressprojectRIDESTM3210E-EVALstm32f10x_rtc.o
- Disassembly of section .text.RTC_ITConfig:
- 00000000 <RTC_ITConfig>:
- RTC_ITConfig():
- C:TDDownloadSoftproject_presslibrarysrc/stm32f10x_rtc.c:51
- {
- /* Check the parameters */
- assert_param(IS_RTC_IT(RTC_IT));
- assert_param(IS_FUNCTIONAL_STATE(NewState));
-
- if (NewState != DISABLE)
- 0: b129 cbz r1, e <RTC_ITConfig+0xe>
- C:TDDownloadSoftproject_presslibrarysrc/stm32f10x_rtc.c:53
- {
- RTC->CRH |= RTC_IT;
- 2: 4a06 ldr r2, [pc, #24] (1c <RTC_ITConfig+0x1c>)
- 4: 8813 ldrh r3, [r2, #0]
- 6: b29b uxth r3, r3
- 8: ea40 0303 orr.w r3, r0, r3
- c: e004 b.n 18 <RTC_ITConfig+0x18>
- C:TDDownloadSoftproject_presslibrarysrc/stm32f10x_rtc.c:57
- }
- else
- {
- RTC->CRH &= (u16)~RTC_IT;
- e: 4a03 ldr r2, [pc, #12] (1c <RTC_ITConfig+0x1c>)
- 10: 8813 ldrh r3, [r2, #0]
- 12: b29b uxth r3, r3
- 14: ea23 0300 bic.w r3, r3, r0
- 18: 8013 strh r3, [r2, #0]
- C:TDDownloadSoftproject_presslibrarysrc/stm32f10x_rtc.c:59
- }
- }
- 1a: 4770 bx lr
- 1c: 40002800 .word 0x40002800
- Disassembly of section .text.RTC_EnterConfigMode:
- 00000000 <RTC_EnterConfigMode>:
- RTC_EnterConfigMode():
- C:TDDownloadSoftproject_presslibrarysrc/stm32f10x_rtc.c:71
- * Return : None
- *******************************************************************************/
- void RTC_EnterConfigMode(void)
- {
- /* Set the CNF flag to enter in the Configuration Mode */
- RTC->CRL |= CRL_CNF_Set;
- 0: 4a03 ldr r2, [pc, #12] (10 <RTC_EnterConfigMode+0x10>)
- 2: 8893 ldrh r3, [r2, #4]
- 4: b29b uxth r3, r3
- 6: f043 0310 orr.w r3, r3, #16 ; 0x10
- a: 8093 strh r3, [r2, #4]
- C:TDDownloadSoftproject_presslibrarysrc/stm32f10x_rtc.c:72
- }
- c: 4770 bx lr
- e: 46c0 nop (mov r8, r8)
- 10: 40002800 .word 0x40002800
- Disassembly of section .text.RTC_ExitConfigMode:
- 00000000 <RTC_ExitConfigMode>:
- RTC_ExitConfigMode():
- C:TDDownloadSoftproject_presslibrarysrc/stm32f10x_rtc.c:84
- * Return : None
- *******************************************************************************/
- void RTC_ExitConfigMode(void)
- {
- /* Reset the CNF flag to exit from the Configuration Mode */
- RTC->CRL &= CRL_CNF_Reset;
- 0: 4a03 ldr r2, [pc, #12] (10 <RTC_ExitConfigMode+0x10>)
- 2: 8893 ldrh r3, [r2, #4]
- 4: f023 0310 bic.w r3, r3, #16 ; 0x10
- 8: 041b lsls r3, r3, #16
- a: 0c1b lsrs r3, r3, #16
- c: 8093 strh r3, [r2, #4]
- C:TDDownloadSoftproject_presslibrarysrc/stm32f10x_rtc.c:85
- }
- e: 4770 bx lr
- 10: 40002800 .word 0x40002800
- Disassembly of section .text.RTC_GetCounter:
- 00000000 <RTC_GetCounter>:
- RTC_GetCounter():
- C:TDDownloadSoftproject_presslibrarysrc/stm32f10x_rtc.c:97
- * Return : RTC counter value.
- *******************************************************************************/
- u32 RTC_GetCounter(void)
- {
- u16 tmp = 0;
- tmp = RTC->CNTL;
- 0: 4b03 ldr r3, [pc, #12] (10 <RTC_GetCounter+0x10>)
- 2: 8b98 ldrh r0, [r3, #28]
- C:TDDownloadSoftproject_presslibrarysrc/stm32f10x_rtc.c:99
- return (((u32)RTC->CNTH << 16 ) | tmp) ;
- 4: 8b1b ldrh r3, [r3, #24]
- C:TDDownloadSoftproject_presslibrarysrc/stm32f10x_rtc.c:97
- * Return : RTC counter value.
- *******************************************************************************/
- u32 RTC_GetCounter(void)
- {
- u16 tmp = 0;
- tmp = RTC->CNTL;
- 6: b280 uxth r0, r0
- C:TDDownloadSoftproject_presslibrarysrc/stm32f10x_rtc.c:100
- return (((u32)RTC->CNTH << 16 ) | tmp) ;
- }
- 8: ea40 4003 orr.w r0, r0, r3, lsl #16
- c: 4770 bx lr
- e: 46c0 nop (mov r8, r8)
- 10: 40002800 .word 0x40002800
- Disassembly of section .text.RTC_SetCounter:
- 00000000 <RTC_SetCounter>:
- RTC_SetCounter():
- C:TDDownloadSoftproject_presslibrarysrc/stm32f10x_rtc.c:110
- * Input : - CounterValue: RTC counter new value.
- * Output : None
- * Return : None
- *******************************************************************************/
- void RTC_SetCounter(u32 CounterValue)
- {
- 0: b510 push {r4, lr}
- 2: 4604 mov r4, r0
- C:TDDownloadSoftproject_presslibrarysrc/stm32f10x_rtc.c:111
- RTC_EnterConfigMode();
- 4: f7ff fffe bl 0 <RTC_SetCounter>
- C:TDDownloadSoftproject_presslibrarysrc/stm32f10x_rtc.c:114
- /* Set RTC COUNTER MSB word */
- RTC->CNTH = CounterValue >> 16;
- 8: 4a03 ldr r2, [pc, #12] (18 <RTC_SetCounter+0x18>)
- a: 0c23 lsrs r3, r4, #16
- C:TDDownloadSoftproject_presslibrarysrc/stm32f10x_rtc.c:116
- /* Set RTC COUNTER LSB word */
- RTC->CNTL = (CounterValue & RTC_LSB_Mask);
- c: b2a4 uxth r4, r4
- C:TDDownloadSoftproject_presslibrarysrc/stm32f10x_rtc.c:114
- void RTC_SetCounter(u32 CounterValue)
- {
- RTC_EnterConfigMode();
- /* Set RTC COUNTER MSB word */
- RTC->CNTH = CounterValue >> 16;
- e: 8313 strh r3, [r2, #24]
- C:TDDownloadSoftproject_presslibrarysrc/stm32f10x_rtc.c:116
- /* Set RTC COUNTER LSB word */
- RTC->CNTL = (CounterValue & RTC_LSB_Mask);
- 10: 8394 strh r4, [r2, #28]
- C:TDDownloadSoftproject_presslibrarysrc/stm32f10x_rtc.c:118
- RTC_ExitConfigMode();
- 12: f7ff fffe bl 0 <RTC_SetCounter>
- C:TDDownloadSoftproject_presslibrarysrc/stm32f10x_rtc.c:119
- }
- 16: bd10 pop {r4, pc}
- 18: 40002800 .word 0x40002800
- Disassembly of section .text.RTC_SetPrescaler:
- 00000000 <RTC_SetPrescaler>:
- RTC_SetPrescaler():
- C:TDDownloadSoftproject_presslibrarysrc/stm32f10x_rtc.c:129
- * Input : - PrescalerValue: RTC prescaler new value.
- * Output : None
- * Return : None
- *******************************************************************************/
- void RTC_SetPrescaler(u32 PrescalerValue)
- {
- 0: b510 push {r4, lr}
- 2: 4604 mov r4, r0
- C:TDDownloadSoftproject_presslibrarysrc/stm32f10x_rtc.c:133
- /* Check the parameters */
- assert_param(IS_RTC_PRESCALER(PrescalerValue));
-
- RTC_EnterConfigMode();
- 4: f7ff fffe bl 0 <RTC_SetPrescaler>
- C:TDDownloadSoftproject_presslibrarysrc/stm32f10x_rtc.c:136
- /* Set RTC PRESCALER MSB word */
- RTC->PRLH = (PrescalerValue & PRLH_MSB_Mask) >> 16;
- 8: 4a04 ldr r2, [pc, #16] (1c <RTC_SetPrescaler+0x1c>)
- a: f3c4 4303 ubfx r3, r4, #16, #4
- C:TDDownloadSoftproject_presslibrarysrc/stm32f10x_rtc.c:138
- /* Set RTC PRESCALER LSB word */
- RTC->PRLL = (PrescalerValue & RTC_LSB_Mask);
- e: b2a4 uxth r4, r4
- C:TDDownloadSoftproject_presslibrarysrc/stm32f10x_rtc.c:136
- assert_param(IS_RTC_PRESCALER(PrescalerValue));
-
- RTC_EnterConfigMode();
- /* Set RTC PRESCALER MSB word */
- RTC->PRLH = (PrescalerValue & PRLH_MSB_Mask) >> 16;
- 10: 8113 strh r3, [r2, #8]
- C:TDDownloadSoftproject_presslibrarysrc/stm32f10x_rtc.c:138
- /* Set RTC PRESCALER LSB word */
- RTC->PRLL = (PrescalerValue & RTC_LSB_Mask);
- 12: 8194 strh r4, [r2, #12]
- C:TDDownloadSoftproject_presslibrarysrc/stm32f10x_rtc.c:140
- RTC_ExitConfigMode();
- 14: f7ff fffe bl 0 <RTC_SetPrescaler>
- C:TDDownloadSoftproject_presslibrarysrc/stm32f10x_rtc.c:141
- }
- 18: bd10 pop {r4, pc}
- 1a: 46c0 nop (mov r8, r8)
- 1c: 40002800 .word 0x40002800
- Disassembly of section .text.RTC_SetAlarm:
- 00000000 <RTC_SetAlarm>:
- RTC_SetAlarm():
- C:TDDownloadSoftproject_presslibrarysrc/stm32f10x_rtc.c:151
- * Input : - AlarmValue: RTC alarm new value.
- * Output : None
- * Return : None
- *******************************************************************************/
- void RTC_SetAlarm(u32 AlarmValue)
- {
- 0: b510 push {r4, lr}
- 2: 4604 mov r4, r0
- C:TDDownloadSoftproject_presslibrarysrc/stm32f10x_rtc.c:152
- RTC_EnterConfigMode();
- 4: f7ff fffe bl 0 <RTC_SetAlarm>
- C:TDDownloadSoftproject_presslibrarysrc/stm32f10x_rtc.c:155
- /* Set the ALARM MSB word */
- RTC->ALRH = AlarmValue >> 16;
- 8: 4a03 ldr r2, [pc, #12] (18 <RTC_SetAlarm+0x18>)
- a: 0c23 lsrs r3, r4, #16
- C:TDDownloadSoftproject_presslibrarysrc/stm32f10x_rtc.c:157
- /* Set the ALARM LSB word */
- RTC->ALRL = (AlarmValue & RTC_LSB_Mask);
- c: b2a4 uxth r4, r4
- C:TDDownloadSoftproject_presslibrarysrc/stm32f10x_rtc.c:155
- void RTC_SetAlarm(u32 AlarmValue)
- {
- RTC_EnterConfigMode();
- /* Set the ALARM MSB word */
- RTC->ALRH = AlarmValue >> 16;
- e: 8413 strh r3, [r2, #32]
- C:TDDownloadSoftproject_presslibrarysrc/stm32f10x_rtc.c:157
- /* Set the ALARM LSB word */
- RTC->ALRL = (AlarmValue & RTC_LSB_Mask);
- 10: 8494 strh r4, [r2, #36]
- C:TDDownloadSoftproject_presslibrarysrc/stm32f10x_rtc.c:159
- RTC_ExitConfigMode();
- 12: f7ff fffe bl 0 <RTC_SetAlarm>
- C:TDDownloadSoftproject_presslibrarysrc/stm32f10x_rtc.c:160
- }
- 16: bd10 pop {r4, pc}
- 18: 40002800 .word 0x40002800
- Disassembly of section .text.RTC_GetDivider:
- 00000000 <RTC_GetDivider>:
- RTC_GetDivider():
- C:TDDownloadSoftproject_presslibrarysrc/stm32f10x_rtc.c:173
- *******************************************************************************/
- u32 RTC_GetDivider(void)
- {
- u32 tmp = 0x00;
- tmp = ((u32)RTC->DIVH & (u32)0x000F) << 16;
- 0: 4a04 ldr r2, [pc, #16] (14 <RTC_GetDivider+0x14>)
- 2: 8a13 ldrh r3, [r2, #16]
- C:TDDownloadSoftproject_presslibrarysrc/stm32f10x_rtc.c:174
- tmp |= RTC->DIVL;
- 4: 8a90 ldrh r0, [r2, #20]
- C:TDDownloadSoftproject_presslibrarysrc/stm32f10x_rtc.c:173
- *******************************************************************************/
- u32 RTC_GetDivider(void)
- {
- u32 tmp = 0x00;
- tmp = ((u32)RTC->DIVH & (u32)0x000F) << 16;
- 6: f003 030f and.w r3, r3, #15 ; 0xf
- C:TDDownloadSoftproject_presslibrarysrc/stm32f10x_rtc.c:174
- tmp |= RTC->DIVL;
- a: b280 uxth r0, r0
- C:TDDownloadSoftproject_presslibrarysrc/stm32f10x_rtc.c:177
- return tmp;
- }
- c: ea40 4003 orr.w r0, r0, r3, lsl #16
- 10: 4770 bx lr
- 12: 46c0 nop (mov r8, r8)
- 14: 40002800 .word 0x40002800
- Disassembly of section .text.RTC_WaitForLastTask:
- 00000000 <RTC_WaitForLastTask>:
- RTC_WaitForLastTask():
- C:TDDownloadSoftproject_presslibrarysrc/stm32f10x_rtc.c:190
- * Return : None
- *******************************************************************************/
- void RTC_WaitForLastTask(void)
- {
- /* Loop until RTOFF flag is set */
- while ((RTC->CRL & RTC_FLAG_RTOFF) == (u16)RESET)
- 0: 4b02 ldr r3, [pc, #8] (c <RTC_WaitForLastTask+0xc>)
- 2: 889b ldrh r3, [r3, #4]
- 4: f013 0f20 tst.w r3, #32 ; 0x20
- 8: d0fa beq.n 0 <RTC_WaitForLastTask>
- C:TDDownloadSoftproject_presslibrarysrc/stm32f10x_rtc.c:193
- {
- }
- }
- a: 4770 bx lr
- c: 40002800 .word 0x40002800
- Disassembly of section .text.RTC_WaitForSynchro:
- 00000000 <RTC_WaitForSynchro>:
- RTC_WaitForSynchro():
- C:TDDownloadSoftproject_presslibrarysrc/stm32f10x_rtc.c:208
- * Return : None
- *******************************************************************************/
- void RTC_WaitForSynchro(void)
- {
- /* Clear RSF flag */
- RTC->CRL &= (u16)~RTC_FLAG_RSF;
- 0: 4a06 ldr r2, [pc, #24] (1c <RTC_WaitForSynchro+0x1c>)
- 2: 8893 ldrh r3, [r2, #4]
- 4: f023 0308 bic.w r3, r3, #8 ; 0x8
- 8: 041b lsls r3, r3, #16
- a: 0c1b lsrs r3, r3, #16
- c: 8093 strh r3, [r2, #4]
- C:TDDownloadSoftproject_presslibrarysrc/stm32f10x_rtc.c:211
- /* Loop until RSF flag is set */
- while ((RTC->CRL & RTC_FLAG_RSF) == (u16)RESET)
- e: 4b03 ldr r3, [pc, #12] (1c <RTC_WaitForSynchro+0x1c>)
- 10: 889b ldrh r3, [r3, #4]
- 12: f013 0f08 tst.w r3, #8 ; 0x8
- 16: d0fa beq.n e <RTC_WaitForSynchro+0xe>
- C:TDDownloadSoftproject_presslibrarysrc/stm32f10x_rtc.c:214
- {
- }
- }
- 18: 4770 bx lr
- 1a: 46c0 nop (mov r8, r8)
- 1c: 40002800 .word 0x40002800
- Disassembly of section .text.RTC_GetFlagStatus:
- 00000000 <RTC_GetFlagStatus>:
- RTC_GetFlagStatus():
- C:TDDownloadSoftproject_presslibrarysrc/stm32f10x_rtc.c:236
- FlagStatus bitstatus = RESET;
-
- /* Check the parameters */
- assert_param(IS_RTC_GET_FLAG(RTC_FLAG));
-
- if ((RTC->CRL & RTC_FLAG) != (u16)RESET)
- 0: 4b03 ldr r3, [pc, #12] (10 <RTC_GetFlagStatus+0x10>)
- 2: 889b ldrh r3, [r3, #4]
- 4: 4218 tst r0, r3
- C:TDDownloadSoftproject_presslibrarysrc/stm32f10x_rtc.c:245
- else
- {
- bitstatus = RESET;
- }
- return bitstatus;
- }
- 6: bf0c ite eq
- 8: 2000 moveq r0, #0
- a: 2001 movne r0, #1
- c: 4770 bx lr
- e: 46c0 nop (mov r8, r8)
- 10: 40002800 .word 0x40002800
- Disassembly of section .text.RTC_ClearFlag:
- 00000000 <RTC_ClearFlag>:
- RTC_ClearFlag():
- C:TDDownloadSoftproject_presslibrarysrc/stm32f10x_rtc.c:266
- {
- /* Check the parameters */
- assert_param(IS_RTC_CLEAR_FLAG(RTC_FLAG));
-
- /* Clear the coressponding RTC flag */
- RTC->CRL &= (u16)~RTC_FLAG;
- 0: 4a03 ldr r2, [pc, #12] (10 <RTC_ClearFlag+0x10>)
- 2: 8893 ldrh r3, [r2, #4]
- 4: b29b uxth r3, r3
- 6: ea23 0300 bic.w r3, r3, r0
- a: 8093 strh r3, [r2, #4]
- C:TDDownloadSoftproject_presslibrarysrc/stm32f10x_rtc.c:267
- }
- c: 4770 bx lr
- e: 46c0 nop (mov r8, r8)
- 10: 40002800 .word 0x40002800
- Disassembly of section .text.RTC_GetITStatus:
- 00000000 <RTC_GetITStatus>:
- RTC_GetITStatus():
- C:TDDownloadSoftproject_presslibrarysrc/stm32f10x_rtc.c:287
- ITStatus bitstatus = RESET;
- /* Check the parameters */
- assert_param(IS_RTC_GET_IT(RTC_IT));
-
- bitstatus = (ITStatus)(RTC->CRL & RTC_IT);
- 0: 4a07 ldr r2, [pc, #28] (20 <RTC_GetITStatus+0x20>)
- 2: 8893 ldrh r3, [r2, #4]
- 4: b299 uxth r1, r3
- C:TDDownloadSoftproject_presslibrarysrc/stm32f10x_rtc.c:289
- if (((RTC->CRH & RTC_IT) != (u16)RESET) && (bitstatus != (u16)RESET))
- 6: 8813 ldrh r3, [r2, #0]
- 8: 4003 ands r3, r0
- a: d101 bne.n 10 <RTC_GetITStatus+0x10>
- c: 4618 mov r0, r3
- e: e006 b.n 1e <RTC_GetITStatus+0x1e>
- C:TDDownloadSoftproject_presslibrarysrc/stm32f10x_rtc.c:287
- ITStatus bitstatus = RESET;
- /* Check the parameters */
- assert_param(IS_RTC_GET_IT(RTC_IT));
-
- bitstatus = (ITStatus)(RTC->CRL & RTC_IT);
- 10: ea00 0301 and.w r3, r0, r1
- 14: f013 0fff tst.w r3, #255 ; 0xff
- 18: bf0c ite eq
- 1a: 2000 moveq r0, #0
- 1c: 2001 movne r0, #1
- C:TDDownloadSoftproject_presslibrarysrc/stm32f10x_rtc.c:298
- else
- {
- bitstatus = RESET;
- }
- return bitstatus;
- }
- 1e: 4770 bx lr
- 20: 40002800 .word 0x40002800
- Disassembly of section .text.RTC_ClearITPendingBit:
- 00000000 <RTC_ClearITPendingBit>:
- RTC_ClearITPendingBit():
- C:TDDownloadSoftproject_presslibrarysrc/stm32f10x_rtc.c:317
- {
- /* Check the parameters */
- assert_param(IS_RTC_IT(RTC_IT));
-
- /* Clear the coressponding RTC pending bit */
- RTC->CRL &= (u16)~RTC_IT;
- 0: 4a03 ldr r2, [pc, #12] (10 <RTC_ClearITPendingBit+0x10>)
- 2: 8893 ldrh r3, [r2, #4]
- 4: b29b uxth r3, r3
- 6: ea23 0300 bic.w r3, r3, r0
- a: 8093 strh r3, [r2, #4]
- C:TDDownloadSoftproject_presslibrarysrc/stm32f10x_rtc.c:318
- }
- c: 4770 bx lr
- e: 46c0 nop (mov r8, r8)
- 10: 40002800 .word 0x40002800