Microchip® Advanced Software Framework

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

Initialization for BSP (<strong>B</strong>oard <strong>S</strong>upport <strong>P</strong>ackage)
such as Reset and Chip Enable Pins for WINC, delays, register ISR, enable/disable IRQ for WINC, etc.

You must use this function at the head of your application to enable WINC and Host Driver to communicate with each other.

Functions

sint8 nm_bsp_init (void)
 This function is used to initialize the Board Support Package (BSP) in order to prepare the WINC before any WINC API calls. More...
 

sint8 nm_bsp_init ( void  )

This function is used to initialize the Board Support Package (BSP) in order to prepare the WINC before any WINC API calls.

The nm_bsp_init function is the first function that should be called at the beginning of every application to initialize the BSP and the WINC board. Otherwise, the rest of the BSP function calls will return with failure. This function should also be called after the WINC has been switched off with a successful call to nm_bsp_deinit in order to reinitialize the BSP before the Application can use any of the WINC APIs again. After the function initializes the WINC, a hard reset must be applied to start the WINC board by calling nm_bsp_reset.

Note
Implementation of this function is host dependent.
Warning
Omitting this function will lead to unavailability of host-chip communication.
See Also
nm_bsp_deinit, nm_bsp_reset
Returns
The function returns M2M_SUCCESS for successful operations and a negative value otherwise.

References delay_init, gpfIsr, init_chip_pins(), nm_bsp_reset(), and NULL.

Referenced by main().