Hi @kerryzhou
在我的code裡面我需要同時使用IBI及 CCC
但是在IBI 的IRQ設定中,會影響到CCC無法正常發出
請問最後面的I3C_MasterEnableInterrupts中kMasterIrqFlags 是哪個設定讓CCC 無法正常,是否能修改kMasterIrqFlags的內容?
謝謝!
void I3C_MasterTransferCreateHandle(I3C_Type *base,
i3c_master_handle_t *handle,
const i3c_master_transfer_callback_t *callback,
void *userData)
{
uint32_t instance;
assert(NULL != handle);
/* Clear out the handle. */
(void)memset(handle, 0, sizeof(*handle));
/* Look up instance number */
instance = I3C_GetInstance(base);
/* Save base and instance. */
handle->callback = *callback;
handle->userData = userData;
/* Save this handle for IRQ use. */
s_i3cMasterHandle[instance] = handle;
/* Set irq handler. */
s_i3cMasterIsr = I3C_MasterTransferHandleIRQ;
/* Clear all flags. */
I3C_MasterClearErrorStatusFlags(base, (uint32_t)kMasterErrorFlags);
I3C_MasterClearStatusFlags(base, (uint32_t)kMasterClearFlags);
/* Reset fifos. These flags clear automatically. */
base->MDATACTRL |= I3C_MDATACTRL_FLUSHTB_MASK | I3C_MDATACTRL_FLUSHFB_MASK;
/* Enable NVIC IRQ, this only enables the IRQ directly connected to the NVIC.
In some cases the I3C IRQ is configured through INTMUX, user needs to enable
INTMUX IRQ in application code. */
(void)EnableIRQ(kI3cIrqs[instance]);
/* Clear internal IRQ enables and enable NVIC IRQ. */
I3C_MasterEnableInterrupts(base, (uint32_t)kMasterIrqFlags);
}
static inline void I3C_MasterEnableInterrupts(I3C_Type *base, uint32_t interruptMask)
{
base->MINTSET |= interruptMask;
}
Hi @AlicePXLin ,
Thank you for your interest in NXP Semiconductor products and for the opportunity to serve you.
Actually, I'm not very clear with your question, so I was wondering if you can clarify it again, further reupload the waveform.
Looking forward to your reply.
Have a great day,
TIC
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!
- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
------------------------------------------------------------------------------