/**
* @briefClears latched RTC statuses
* @parampRTC: The base address of RTC block
* @paramstsMask: OR'ed status bits to clear
* @returnNothing
* @noteUse and OR'ed stsMask value of RTC_CTRL_OFD, RTC_CTRL_ALARM1HZ,
*and RTC_CTRL_WAKE1KHZ to clear specific RTC states.
*/
STATIC INLINE void Chip_RTC_ClearStatus(LPC_RTC_T *pRTC, uint32_t stsMask)
{
pRTC->CTRL = stsMask | (pRTC->CTRL & 0xf0);
} |