AnsweredAssumed Answered

JN5169:slave 2-wire serial interface

Question asked by zhou er on Oct 18, 2018

The function  vAHI_SiRegisterCallback(PR_HWINT_APPCALLBACK prSiCallback)  in  "JN516x Integrated Peripherals API User Guide Revision 1.5" registers a user-defined callback function that will be called when a Serial Interface interrupt is triggered on an SI master or on an SI slave.

If RAM is powered off during sleep and interrupts are required, the callback function must be re-registered before calling u32AHI_Init() on waking.

In sample JN-AN-1216,the u32AHI_Init() is not called.

PUBLIC void APP_vSetUpHardware(void)
{
#if (JENNIC_CHIP_FAMILY == JN517x)
vAHI_Uart0RegisterCallback(APP_isrUart);
u32AHI_Init();
vAHI_InterruptSetPriority(MICRO_ISR_MASK_BBC, NVIC_INT_PRIO_LEVEL_BBC);
vAHI_InterruptSetPriority(MICRO_ISR_MASK_UART0, NVIC_INT_PRIO_LEVEL_UART0);
#else
TARGET_INITIALISE();
/* clear interrupt priority level */
SET_IPL(0);
portENABLE_INTERRUPTS();
#endif
}

My device is JN5169.JENNIC_CHIP_FAMILY=JN516X

I register the serial interface isr callback function APP_isrIIC like the APP_isrUart in the irq_JN516x.S file.

void APP_isrIIC(void)

{

      The type of slave serial interface interrupt????

}

question:

1. How can I get the interrupt type of the serial interface???

2. How to clear interrupt source???

3. Is there the sample about the slave interface interrupt of JN5169???

Outcomes