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 the HIF (Host Interface) Layer.

When the interrupt is triggered, the BSP layer should call the pfisr function from the interrupt handler.

Functions

void nm_bsp_register_isr (tpfNmBspIsr pfIsr)
 Register the host interface interrupt service routine. More...
 

void nm_bsp_register_isr ( tpfNmBspIsr  pfIsr)

Register the host interface interrupt service routine.

The WINC board uses the SPI interface to communicate with the host. This function registers the SPI interrupt to notify the host whenever there is an outstanding message from the WINC board. This function should be called during the initialization of the host interface. It is an internal driver function and shouldn't be called by the Application.

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

References chip_isr(), CONF_WINC_SPI_INT_EIC, CONF_WINC_SPI_INT_MUX, CONF_WINC_SPI_INT_PIN, extint_chan_conf::detection_criteria, EXTINT_CALLBACK_TYPE_DETECT, extint_chan_enable_callback(), extint_chan_get_config_defaults(), extint_chan_set_config(), EXTINT_DETECT_FALLING, EXTINT_PULL_UP, extint_register_callback(), gpfIsr, extint_chan_conf::gpio_pin, extint_chan_conf::gpio_pin_mux, and extint_chan_conf::gpio_pin_pull.

Referenced by hif_init().