lpcware

Bug Report in lpcopen_2_06_keil_iar_manley_11u68 rtc_11u6x.h

Discussion created by lpcware Employee on Jun 15, 2016
Content originally posted in LPCWare by cappo85 on Thu Jul 16 02:50:03 MST 2015
Hi to all,


in file rtc_11u6x.h this routine have a correct description, but does not have the correct code:

/**
* @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 uint32_t Chip_RTC_ClearStatus(LPC_RTC_T *pRTC, uint32_t stsMask)
{
return pRTC->CTRL;
}

the correct code is:

/**
* @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;
}

Best Regards
Riccardo Capponi

Outcomes