iicps_v3_0: Added new event for ARB_LOST interrupt.
This patch add new event for Arbitration Lost interrupt in the interrupt handler. Signed-off-by: P L Sai Krishna <lakshmis@xilinx.com>
This commit is contained in:
parent
a8514b175a
commit
d99fbd0592
1 changed files with 9 additions and 2 deletions
|
@ -784,12 +784,19 @@ void XIicPs_MasterInterruptHandler(XIicPs *InstancePtr)
|
|||
StatusEvent |= XIICPS_EVENT_NACK;
|
||||
}
|
||||
|
||||
/*
|
||||
* Arbitration lost interrupt
|
||||
*/
|
||||
if (0U != (IntrStatusReg & XIICPS_IXR_ARB_LOST_MASK)) {
|
||||
StatusEvent |= XIICPS_EVENT_ARB_LOST;
|
||||
}
|
||||
|
||||
/*
|
||||
* All other interrupts are treated as error.
|
||||
*/
|
||||
if (0U != (IntrStatusReg & (XIICPS_IXR_NACK_MASK |
|
||||
XIICPS_IXR_ARB_LOST_MASK | XIICPS_IXR_RX_UNF_MASK |
|
||||
XIICPS_IXR_TX_OVR_MASK | XIICPS_IXR_RX_OVR_MASK))) {
|
||||
XIICPS_IXR_RX_UNF_MASK | XIICPS_IXR_TX_OVR_MASK |
|
||||
XIICPS_IXR_RX_OVR_MASK))) {
|
||||
if ((!(InstancePtr->IsRepeatedStart)) != 0) {
|
||||
XIicPs_WriteReg(BaseAddr, XIICPS_CR_OFFSET,
|
||||
XIicPs_ReadReg(BaseAddr,
|
||||
|
|
Loading…
Add table
Reference in a new issue