Home
last modified time | relevance | path

Searched refs:RTC (Results 1 – 25 of 976) sorted by relevance

12345678910>>...40

/bsp/hk32/libraries/HK32F0xx_StdPeriph_Driver/src/
A Dhk32f0xx_rtc.c291 RTC->WPR = 0xFF; in RTC_DeInit()
292 RTC->WPR = 0xCA; in RTC_DeInit()
293 RTC->WPR = 0x53; in RTC_DeInit()
332 RTC->WPR = 0xFF; in RTC_DeInit()
358 RTC->WPR = 0xFF; in RTC_Init()
359 RTC->WPR = 0xCA; in RTC_Init()
360 RTC->WPR = 0x53; in RTC_Init()
384 RTC->WPR = 0xFF; in RTC_Init()
574 RTC->WPR = 0xFF; in RTC_RefClockCmd()
575 RTC->WPR = 0xCA; in RTC_RefClockCmd()
[all …]
/bsp/n32/libraries/N32L40x_Firmware_Library/n32l40x_std_periph_driver/src/
A Dn32l40x_rtc.c117 RTC->WRP = 0xCA; in RTC_DeInit()
118 RTC->WRP = 0x53; in RTC_DeInit()
178 RTC->WRP = 0xFF; in RTC_DeInit()
204 RTC->WRP = 0xCA; in RTC_Init()
205 RTC->WRP = 0x53; in RTC_Init()
229 RTC->WRP = 0xFF; in RTC_Init()
357 RTC->WRP = 0xCA; in RTC_WaitForSynchro()
358 RTC->WRP = 0x53; in RTC_WaitForSynchro()
380 RTC->WRP = 0xFF; in RTC_WaitForSynchro()
401 RTC->WRP = 0xCA; in RTC_EnableRefClock()
[all …]
/bsp/n32/libraries/N32L43x_Firmware_Library/n32l43x_std_periph_driver/src/
A Dn32l43x_rtc.c116 RTC->WRP = 0xCA; in RTC_DeInit()
117 RTC->WRP = 0x53; in RTC_DeInit()
169 RTC->WRP = 0xFF; in RTC_DeInit()
193 RTC->WRP = 0xCA; in RTC_Init()
194 RTC->WRP = 0x53; in RTC_Init()
214 RTC->WRP = 0xFF; in RTC_Init()
334 RTC->WRP = 0xCA; in RTC_WaitForSynchro()
335 RTC->WRP = 0x53; in RTC_WaitForSynchro()
353 RTC->WRP = 0xFF; in RTC_WaitForSynchro()
371 RTC->WRP = 0xCA; in RTC_EnableRefClock()
[all …]
/bsp/n32/libraries/N32G43x_Firmware_Library/n32g43x_std_periph_driver/src/
A Dn32g43x_rtc.c117 RTC->WRP = 0xCA; in RTC_DeInit()
118 RTC->WRP = 0x53; in RTC_DeInit()
178 RTC->WRP = 0xFF; in RTC_DeInit()
203 RTC->WRP = 0xCA; in RTC_Init()
204 RTC->WRP = 0x53; in RTC_Init()
224 RTC->WRP = 0xFF; in RTC_Init()
352 RTC->WRP = 0xCA; in RTC_WaitForSynchro()
353 RTC->WRP = 0x53; in RTC_WaitForSynchro()
375 RTC->WRP = 0xFF; in RTC_WaitForSynchro()
396 RTC->WRP = 0xCA; in RTC_EnableRefClock()
[all …]
/bsp/n32/libraries/N32G45x_Firmware_Library/n32g45x_std_periph_driver/src/
A Dn32g45x_rtc.c117 RTC->WRP = 0xCA; in RTC_DeInit()
118 RTC->WRP = 0x53; in RTC_DeInit()
178 RTC->WRP = 0xFF; in RTC_DeInit()
204 RTC->WRP = 0xCA; in RTC_Init()
205 RTC->WRP = 0x53; in RTC_Init()
229 RTC->WRP = 0xFF; in RTC_Init()
357 RTC->WRP = 0xCA; in RTC_WaitForSynchro()
358 RTC->WRP = 0x53; in RTC_WaitForSynchro()
380 RTC->WRP = 0xFF; in RTC_WaitForSynchro()
400 RTC->WRP = 0xCA; in RTC_EnableBypassShadow()
[all …]
/bsp/n32/libraries/N32G4FR_Firmware_Library/n32g4fr_std_periph_driver/src/
A Dn32g4fr_rtc.c118 RTC->WRP = 0xCA; in RTC_DeInit()
119 RTC->WRP = 0x53; in RTC_DeInit()
179 RTC->WRP = 0xFF; in RTC_DeInit()
206 RTC->WRP = 0xCA; in RTC_Init()
207 RTC->WRP = 0x53; in RTC_Init()
231 RTC->WRP = 0xFF; in RTC_Init()
359 RTC->WRP = 0xCA; in RTC_WaitForSynchro()
360 RTC->WRP = 0x53; in RTC_WaitForSynchro()
382 RTC->WRP = 0xFF; in RTC_WaitForSynchro()
402 RTC->WRP = 0xCA; in RTC_EnableBypassShadow()
[all …]
/bsp/n32/libraries/N32WB452_Firmware_Library/n32wb452_std_periph_driver/src/
A Dn32wb452_rtc.c117 RTC->WRP = 0xCA; in RTC_DeInit()
118 RTC->WRP = 0x53; in RTC_DeInit()
178 RTC->WRP = 0xFF; in RTC_DeInit()
204 RTC->WRP = 0xCA; in RTC_Init()
205 RTC->WRP = 0x53; in RTC_Init()
229 RTC->WRP = 0xFF; in RTC_Init()
357 RTC->WRP = 0xCA; in RTC_WaitForSynchro()
358 RTC->WRP = 0x53; in RTC_WaitForSynchro()
380 RTC->WRP = 0xFF; in RTC_WaitForSynchro()
400 RTC->WRP = 0xCA; in RTC_EnableBypassShadow()
[all …]
/bsp/n32g452xx/Libraries/N32_Std_Driver/n32g45x_std_periph_driver/src/
A Dn32g45x_rtc.c117 RTC->WRP = 0xCA; in RTC_DeInit()
118 RTC->WRP = 0x53; in RTC_DeInit()
178 RTC->WRP = 0xFF; in RTC_DeInit()
204 RTC->WRP = 0xCA; in RTC_Init()
205 RTC->WRP = 0x53; in RTC_Init()
229 RTC->WRP = 0xFF; in RTC_Init()
356 RTC->WRP = 0xCA; in RTC_WaitForSynchro()
357 RTC->WRP = 0x53; in RTC_WaitForSynchro()
379 RTC->WRP = 0xFF; in RTC_WaitForSynchro()
399 RTC->WRP = 0xCA; in RTC_EnableBypassShadow()
[all …]
/bsp/apm32/libraries/APM32F0xx_Library/APM32F0xx_StdPeriphDriver/src/
A Dapm32f0xx_rtc.c98 RTC->TACFG = 0x00000000; in RTC_Reset()
164 RTC->WRPROT = 0xFF; in RTC_EnableWriteProtection()
176 RTC->WRPROT = 0xCA; in RTC_DisableWriteProtection()
177 RTC->WRPROT = 0x53; in RTC_DisableWriteProtection()
492 (void)(RTC->DATE); in RTC_ReadSubSecond()
682 RTC->ALRMA = temp; in RTC_ConfigAlarm()
724 day_u = RTC->ALRMA_B.DAYU; in RTC_ReadAlarm()
726 hours_u = RTC->ALRMA_B.HRU; in RTC_ReadAlarm()
969 return (RTC->CTRL_B.BAKP); in RTC_ReadStoreOperation()
1436 RTC->BAKP0 = data; in RTC_WriteBackup()
[all …]
/bsp/apm32/libraries/APM32F4xx_Library/APM32F4xx_StdPeriphDriver/src/
A Dapm32f4xx_rtc.c185 RTC->WRPROT = 0xFF; in RTC_EnableWriteProtection()
197 RTC->WRPROT = 0xCA; in RTC_DisableWriteProtection()
198 RTC->WRPROT = 0x53; in RTC_DisableWriteProtection()
241 RTC->STS_B.INITEN = BIT_RESET; in RTC_DisableInit()
345 RTC->CTRL_B.RCMCFG = BIT_SET; in RTC_EnableBypassShadow()
499 (void)(RTC->DATE); in RTC_ReadSubSecond()
674 RTC->ALRMA = temp; in RTC_ConfigAlarm()
678 RTC->ALRMB = temp; in RTC_ConfigAlarm()
1082 RTC->CTRL_B.BAKP = bit; in RTC_ConfigDayLightSaving()
1339 RTC->CTRL_B.TSEN = BIT_SET; in RTC_EnableTimeStamp()
[all …]
/bsp/ft32/libraries/FT32F0xx/FT32F0xx_Driver/Src/
A Dft32f0xx_rtc.c62 RTC->WPR = 0xCA; in RTC_DeInit()
63 RTC->WPR = 0x53; in RTC_DeInit()
101 RTC->WPR = 0xFF; in RTC_DeInit()
127 RTC->WPR = 0xCA; in RTC_Init()
128 RTC->WPR = 0x53; in RTC_Init()
152 RTC->WPR = 0xFF; in RTC_Init()
344 RTC->WPR = 0xCA; in RTC_RefClockCmd()
345 RTC->WPR = 0x53; in RTC_RefClockCmd()
371 RTC->WPR = 0xFF; in RTC_RefClockCmd()
390 RTC->WPR = 0xCA; in RTC_BypassShadowCmd()
[all …]
/bsp/acm32/acm32f4xx-nucleo/libraries/HAL_Driver/Src/
A DHAL_RTC.c90 RTC->WP = 0xCA53CA53; in HAL_RTC_SetTime()
92 RTC->HOUR = fp_Time->u8_Hours; in HAL_RTC_SetTime()
97 RTC->WP = 0; in HAL_RTC_SetTime()
110 fp_Time->u8_Minutes = RTC->MIN; in HAL_RTC_GetTime()
132 RTC->WP = 0xCA53CA53; in HAL_RTC_SetDate()
134 RTC->YEAR = fp_Date->u8_Year; in HAL_RTC_SetDate()
136 RTC->DATE = fp_Date->u8_Date; in HAL_RTC_SetDate()
140 RTC->WP = 0; in HAL_RTC_SetDate()
206 RTC->IE |= RTC_IE_ALM; in HAL_RTC_AlarmConfig()
225 RTC->CR |= RTC_CR_ALM_EN; in HAL_RTC_AlarmEnable()
[all …]
/bsp/acm32/acm32f0x0-nucleo/libraries/HAL_Driver/Src/
A DHAL_RTC.c90 RTC->WP = 0xCA53CA53; in HAL_RTC_SetTime()
92 RTC->HOUR = fp_Time->u8_Hours; in HAL_RTC_SetTime()
97 RTC->WP = 0; in HAL_RTC_SetTime()
110 fp_Time->u8_Minutes = RTC->MIN; in HAL_RTC_GetTime()
132 RTC->WP = 0xCA53CA53; in HAL_RTC_SetDate()
134 RTC->YEAR = fp_Date->u8_Year; in HAL_RTC_SetDate()
136 RTC->DATE = fp_Date->u8_Date; in HAL_RTC_SetDate()
140 RTC->WP = 0; in HAL_RTC_SetDate()
206 RTC->IE |= RTC_IE_ALM; in HAL_RTC_AlarmConfig()
225 RTC->CR |= RTC_CR_ALM_EN; in HAL_RTC_AlarmEnable()
[all …]
/bsp/Vango/v85xxp/Libraries/VangoV85xxP_standard_peripheral/Source/
A Dlib_rtc.c34 RTC->PWD = RTCPWD_KEY; in RTC_WriteProtection()
40 RTC->PWD = RTCPWD_KEY; in RTC_WriteProtection()
118 tmp = RTC->LOAD; in RTC_ReadRegisters()
173 RTC->TIME = subsec; in RTC_SetTime()
252 tmp = RTC->ALARMCTL; in RTC_SubSecondCmd()
267 RTC->ALARMCTL = tmp; in RTC_SubSecondCmd()
378 tmp = RTC->ALARMCTL; in RTC_AlarmCmd()
662 RTC->ITV = nType; in RTC_WAKE_ITV()
663 RTC->SITV = 0; in RTC_WAKE_ITV()
718 tmp = RTC->PSCA; in RTC_PrescalerConfig()
[all …]
/bsp/essemi/es32f369x/libraries/ES32F36xx_ALD_StdPeriph_Driver/Source/
A Dald_rtchw.c155 temp_calf = (uint16_t)RTC->CALDR; in ald_rtc_hw_auto_cali()
162 RTC->CALDR = temp_calf; in ald_rtc_hw_auto_cali()
166 v = RTC->CALCON & ~0x01F0000F; in ald_rtc_hw_auto_cali()
167 RTC->CALCON = v | (RTCINFO->RTC_CALCR & 0x01F0000F); in ald_rtc_hw_auto_cali()
170 v = RTC->CALCON & ~0x0180000F; in ald_rtc_hw_auto_cali()
171 RTC->CALCON = v | (RTCINFO->RTC_CALCR & 0x0180000F); in ald_rtc_hw_auto_cali()
176 RTC->LTAXR = RTCINFO->RTC_LTAXR + config->offset_ltaxr; in ald_rtc_hw_auto_cali()
177 RTC->HTAXR = RTCINFO->RTC_HTAXR + config->offset_htaxr; in ald_rtc_hw_auto_cali()
178 RTC->LTCAR = RTCINFO->RTC_LTCAR + config->offset_ltcar; in ald_rtc_hw_auto_cali()
179 RTC->LTCBR = RTCINFO->RTC_LTCBR + config->offset_ltcbr; in ald_rtc_hw_auto_cali()
[all …]
/bsp/mm32f327x/Libraries/MM32F327x/HAL_Lib/Src/
A Dhal_rtc.c51 (state == ENABLE) ? (RTC->CR |= it) : (RTC->CR &= (u16)~it); in RTC_ITConfig()
63 RTC->CSR |= RTC_CSR_CNF; in RTC_EnterConfigMode()
73 RTC->CSR &= ~RTC_CSR_CNF; in RTC_ExitConfigMode()
86 return (RTC->CNTL | dat); in RTC_GetCounter()
97 RTC->CNTH = count >> 16; in RTC_SetCounter()
98 RTC->CNTL = count; in RTC_SetCounter()
112 RTC->PRLL = prescaler; in RTC_SetPrescaler()
125 RTC->ALRH = alarm >> 16; in RTC_SetAlarm()
126 RTC->ALRL = alarm; in RTC_SetAlarm()
196 RTC->CSR &= ~flag; in RTC_ClearFlag()
[all …]
/bsp/wch/arm/Libraries/CH32F20x_StdPeriph_Driver/StdPeriph_Driver/src/
A Dch32f20x_rtc.c27 RTC->CTLRH |= RTC_IT; in RTC_ITConfig()
31 RTC->CTLRH &= (uint16_t)~RTC_IT; in RTC_ITConfig()
43 RTC->CTLRL |= RTC_CTLRL_CNF; in RTC_EnterConfigMode()
67 high1 = RTC->CNTH; in RTC_GetCounter()
68 low = RTC->CNTL; in RTC_GetCounter()
69 high2 = RTC->CNTH; in RTC_GetCounter()
90 RTC->CNTH = CounterValue >> 16; in RTC_SetCounter()
118 RTC->ALRMH = AlarmValue >> 16; in RTC_SetAlarm()
133 tmp |= RTC->DIVL; in RTC_GetDivider()
202 RTC->CTLRL &= (uint16_t)~RTC_FLAG; in RTC_ClearFlag()
[all …]
/bsp/wch/risc-v/Libraries/CH32V10x_StdPeriph_Driver/StdPeriph_Driver/src/
A Dch32v10x_rtc.c32 RTC->CTLRH |= RTC_IT; in RTC_ITConfig()
36 RTC->CTLRH &= (uint16_t)~RTC_IT; in RTC_ITConfig()
49 RTC->CTLRL |= RTC_CTLRL_CNF; in RTC_EnterConfigMode()
75 high1 = RTC->CNTH; in RTC_GetCounter()
76 low = RTC->CNTL; in RTC_GetCounter()
77 high2 = RTC->CNTH; in RTC_GetCounter()
101 RTC->CNTH = CounterValue >> 16; in RTC_SetCounter()
135 RTC->ALRMH = AlarmValue >> 16; in RTC_SetAlarm()
151 tmp |= RTC->DIVL; in RTC_GetDivider()
227 RTC->CTLRL &= (uint16_t)~RTC_FLAG; in RTC_ClearFlag()
[all …]
/bsp/Vango/v85xx/Libraries/VangoV85xx_standard_peripheral/Source/
A Dlib_rtc.c119 tmp = RTC->LOAD; in RTC_ReadRegisters()
221 tmp = RTC->INTEN; in RTC_INTConfig()
229 RTC->INTEN = tmp; in RTC_INTConfig()
331 tmp = RTC->ACCTRL; in RTC_AutoCalInit()
345 RTC->ACCTRL = tmp; in RTC_AutoCalInit()
370 tmp = RTC->ACCTRL; in RTC_TrigSourceConfig()
378 RTC->ACCTRL = tmp; in RTC_TrigSourceConfig()
402 tmp = RTC->ACCTRL; in RTC_AutoCalCmd()
420 RTC->ACCTRL = tmp; in RTC_AutoCalCmd()
623 tmp = RTC->PSCA; in RTC_PrescalerConfig()
[all …]
/bsp/airm2m/air105/libraries/HAL_Driver/Src/
A Dcore_rtc.c35 RTC->RTC_INTCLR = 1; in RTC_IrqHandler()
50 if (!RTC->RTC_REF) in RTC_GlobalInit()
112 RTC->RTC_CS |= RTC_CS_CLR; in RTC_SetStamp()
114 RTC->RTC_REF = Stamp; in RTC_SetStamp()
127 RTC->RTC_REF = newTime; in RTC_SetDateTime()
132 curTime = RTC->RTC_TIM; in RTC_SetDateTime()
134 curTime += RTC->RTC_REF; in RTC_SetDateTime()
154 curTime = RTC->RTC_TIM; in RTC_GetUTC()
156 curTime += RTC->RTC_REF; in RTC_GetUTC()
163 RTC->RTC_INTCLR = 1; in RTC_SetAlarm()
[all …]
/bsp/apm32/libraries/APM32E10x_Library/APM32E10x_StdPeriphDriver/src/
A Dapm32e10x_rtc.c49 RTC->CSTS_B.CFGMFLG = BIT_SET; in RTC_EnableConfigMode()
61 RTC->CSTS_B.CFGMFLG = BIT_RESET; in RTC_DisableConfigMode()
74 reg = (RTC->CNTH_B.CNTH) << 16; in RTC_ReadCounter()
75 reg |= (RTC->CNTL_B.CNTL); in RTC_ReadCounter()
89 RTC->CNTH_B.CNTH = value >> 16; in RTC_ConfigCounter()
119 RTC->ALRH_B.ALRH = value >> 16; in RTC_ConfigAlarm()
135 reg |= (RTC->PSCL_B.PSCL); in RTC_ReadDivider()
162 RTC->CSTS_B.RSYNCFLG = BIT_RESET; in RTC_WaitForSynchro()
179 RTC->CTRL |= interrupt; in RTC_EnableInterrupt()
229 RTC->CSTS &= (uint32_t)~flag; in RTC_ClearStatusFlag()
[all …]
/bsp/apm32/libraries/APM32F10x_Library/APM32F10x_StdPeriphDriver/src/
A Dapm32f10x_rtc.c50 RTC->CSTS_B.CFGMFLG = BIT_SET; in RTC_EnableConfigMode()
62 RTC->CSTS_B.CFGMFLG = BIT_RESET; in RTC_DisableConfigMode()
75 reg = (RTC->CNTH_B.CNTH) << 16; in RTC_ReadCounter()
76 reg |= (RTC->CNTL_B.CNTL); in RTC_ReadCounter()
90 RTC->CNTH_B.CNTH = value >> 16; in RTC_ConfigCounter()
120 RTC->ALRH_B.ALRH = value >> 16; in RTC_ConfigAlarm()
136 reg |= (RTC->PSCL_B.PSCL); in RTC_ReadDivider()
163 RTC->CSTS_B.RSYNCFLG = BIT_RESET; in RTC_WaitForSynchro()
178 RTC->CTRL |= interrupt; in RTC_EnableInterrupt()
228 RTC->CSTS &= (uint32_t)~flag; in RTC_ClearStatusFlag()
[all …]
/bsp/apm32/libraries/APM32S10x_Library/APM32S10x_StdPeriphDriver/src/
A Dapm32s10x_rtc.c50 RTC->CSTS_B.CFGMFLG = BIT_SET; in RTC_EnableConfigMode()
62 RTC->CSTS_B.CFGMFLG = BIT_RESET; in RTC_DisableConfigMode()
75 reg = (RTC->CNTH_B.CNTH) << 16; in RTC_ReadCounter()
76 reg |= (RTC->CNTL_B.CNTL); in RTC_ReadCounter()
90 RTC->CNTH_B.CNTH = value >> 16; in RTC_ConfigCounter()
120 RTC->ALRH_B.ALRH = value >> 16; in RTC_ConfigAlarm()
136 reg |= (RTC->PSCL_B.PSCL); in RTC_ReadDivider()
163 RTC->CSTS_B.RSYNCFLG = BIT_RESET; in RTC_WaitForSynchro()
178 RTC->CTRL |= interrupt; in RTC_EnableInterrupt()
228 RTC->CSTS &= (uint32_t)~flag; in RTC_ClearStatusFlag()
[all …]
/bsp/wch/arm/Libraries/CH32F10x_StdPeriph_Driver/StdPeriph_Driver/src/
A Dch32f10x_rtc.c29 RTC->CTLRH |= RTC_IT; in RTC_ITConfig()
33 RTC->CTLRH &= (uint16_t)~RTC_IT; in RTC_ITConfig()
45 RTC->CTLRL |= RTC_CTLRL_CNF; in RTC_EnterConfigMode()
70 tmp = RTC->CNTL; in RTC_GetCounter()
84 RTC->CNTH = CounterValue >> 16; in RTC_SetCounter()
114 RTC->ALRMH = AlarmValue >> 16; in RTC_SetAlarm()
115 RTC->ALRML = (AlarmValue & RTC_LSB_MASK); in RTC_SetAlarm()
130 tmp |= RTC->DIVL; in RTC_GetDivider()
157 RTC->CTLRL &= (uint16_t)~RTC_FLAG_RSF; in RTC_WaitForSynchro()
201 RTC->CTLRL &= (uint16_t)~RTC_FLAG; in RTC_ClearFlag()
[all …]
/bsp/airm2m/air32f103/libraries/AIR32F10xLib/src/
A Dair32f10x_rtc.c73 RTC->CRH |= RTC_IT; in RTC_ITConfig()
77 RTC->CRH &= (uint16_t)~RTC_IT; in RTC_ITConfig()
89 RTC->CRL |= RTC_CRL_CNF; in RTC_EnterConfigMode()
111 tmp = RTC->CNTL; in RTC_GetCounter()
124 RTC->CNTH = CounterValue >> 16; in RTC_SetCounter()
157 RTC->ALRH = AlarmValue >> 16; in RTC_SetAlarm()
159 RTC->ALRL = (AlarmValue & RTC_LSB_MASK); in RTC_SetAlarm()
172 tmp |= RTC->DIVL; in RTC_GetDivider()
201 RTC->CRL &= (uint16_t)~RTC_FLAG_RSF; in RTC_WaitForSynchro()
254 RTC->CRL &= (uint16_t)~RTC_FLAG; in RTC_ClearFlag()
[all …]

Completed in 76 milliseconds

12345678910>>...40