Bug Report in lpcopen_2_06_keil_iar_manley_11u68 rtc_11u6x.h

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Bug Report in lpcopen_2_06_keil_iar_manley_11u68 rtc_11u6x.h

238件の閲覧回数
lpcware
NXP Employee
NXP Employee
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
ラベル(1)
0 件の賞賛
0 返答(返信)