Home
last modified time | relevance | path

Searched refs:u32RegCALM (Results 1 – 2 of 2) sorted by relevance

/trusted-firmware-m-3.4.0/platform/ext/target/nuvoton/m2354/bsp/Library/StdDriver/src/
Drtc.c415 uint32_t u32RegCALM, u32RegTALM; in RTC_SetAlarmDateAndTime() local
442 u32RegCALM = ((sPt->u32Year - (uint32_t)RTC_YEAR2000) / 10UL) << 20; in RTC_SetAlarmDateAndTime()
443 u32RegCALM |= (((sPt->u32Year - (uint32_t)RTC_YEAR2000) % 10UL) << 16); in RTC_SetAlarmDateAndTime()
444 u32RegCALM |= ((sPt->u32Month / 10UL) << 12); in RTC_SetAlarmDateAndTime()
445 u32RegCALM |= ((sPt->u32Month % 10UL) << 8); in RTC_SetAlarmDateAndTime()
446 u32RegCALM |= ((sPt->u32Day / 10UL) << 4); in RTC_SetAlarmDateAndTime()
447 u32RegCALM |= (sPt->u32Day % 10UL); in RTC_SetAlarmDateAndTime()
456 RTC->CALM = (uint32_t)u32RegCALM; in RTC_SetAlarmDateAndTime()
552 uint32_t u32RegCALM; in RTC_SetAlarmDate() local
554 u32RegCALM = ((u32Year - (uint32_t)RTC_YEAR2000) / 10UL) << 20; in RTC_SetAlarmDate()
[all …]
/trusted-firmware-m-3.4.0/platform/ext/target/nuvoton/m2351/bsp/Library/StdDriver/src/
Drtc.c419 uint32_t u32RegCALM, u32RegTALM; in RTC_SetAlarmDateAndTime() local
447 u32RegCALM = ((sPt->u32Year - (uint32_t)RTC_YEAR2000) / 10UL) << 20; in RTC_SetAlarmDateAndTime()
448 u32RegCALM |= (((sPt->u32Year - (uint32_t)RTC_YEAR2000) % 10UL) << 16); in RTC_SetAlarmDateAndTime()
449 u32RegCALM |= ((sPt->u32Month / 10UL) << 12); in RTC_SetAlarmDateAndTime()
450 u32RegCALM |= ((sPt->u32Month % 10UL) << 8); in RTC_SetAlarmDateAndTime()
451 u32RegCALM |= ((sPt->u32Day / 10UL) << 4); in RTC_SetAlarmDateAndTime()
452 u32RegCALM |= (sPt->u32Day % 10UL); in RTC_SetAlarmDateAndTime()
462 RTC->CALM = (uint32_t)u32RegCALM; in RTC_SetAlarmDateAndTime()
562 uint32_t u32RegCALM; in RTC_SetAlarmDate() local
564 u32RegCALM = ((u32Year - (uint32_t)RTC_YEAR2000) / 10UL) << 20; in RTC_SetAlarmDate()
[all …]