AnsweredAssumed Answered

Bug: Chip_SCT_ClearEventFlag() clears ANY pending event

Question asked by Rolf Eigenheer on Jan 10, 2017
Latest reply on Jan 13, 2017 by Rolf Eigenheer

I found that Chip_SCT_ClearEventFlag in sct15xx.h clears all pending events. 

 

STATIC INLINE void Chip_SCT_ClearEventFlag(LPC_SCT_T *pSCT, CHIP_SCT_EVENT_T evt)
{
pSCT->EVFLAG |= evt;
}

 

 

UM10736: 

SCT event flag register
This register records events. Writing ones to this register clears the corresponding flags
and negates the SCT interrupt request if all enabled Flag bits are zero.

 

 

OR-ing will clear the evt as well as all events which read as '1'.

Outcomes