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.
[in] | pfIsr | Pointer to ISR handler in the HIF layer. |
References chip_isr(), CONF_WINC_SPI_INT_MASK, CONF_WINC_SPI_INT_PIN, CONF_WINC_SPI_INT_PIO, CONF_WINC_SPI_INT_PIO_ID, CONF_WINC_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().