Microchip® Advanced Software Framework

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
nm_bsp_register_isr

Register ISR (Interrupt Service Routine) in the initialization of HIF (Host Interface) Layer.

Functions

void nm_bsp_register_isr (tpfNmBspIsr pfIsr)
 

void nm_bsp_register_isr ( tpfNmBspIsr  pfIsr)
Parameters
[in]pfIsrPointer to ISR handler in HIF
Warning
Make sure that ISR for IRQ pin for WILC is disabled by default in your implementation.
Note
Implementation of this function is host dependent and called by HIF layer.
See Also
tpfNmBspIsr
Returns
None

References chip_isr(), CONF_WILC_SPI_INT_MASK, CONF_WILC_SPI_INT_PIN, CONF_WILC_SPI_INT_PIO, CONF_WILC_SPI_INT_PIO_ID, CONF_WILC_SPI_INT_PRIORITY, gpfIsr, pio_configure_pin(), pio_enable_interrupt(), pio_get_interrupt_status(), pio_handler_set_pin(), pio_handler_set_priority(), PIO_IT_LOW_LEVEL, pio_pull_up(), PIO_PULLUP, PIO_TYPE_PIO_INPUT, and sysclk_enable_peripheral_clock().

Referenced by hif_init().