Microchip® Advanced Software Framework

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

Initialize BSP.

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)
 Initialization for bsp (Board Support Package) such as Reset and Chip Enable Pins for WILC, delays, register ISR, enable/disable IRQ for WILC, ...etc.
You must use this function in the head of your application to enable WILC and Host Driver communicate each other. More...
 

sint8 nm_bsp_init ( void  )

Initialization for bsp (Board Support Package) such as Reset and Chip Enable Pins for WILC, delays, register ISR, enable/disable IRQ for WILC, ...etc.
You must use this function in the head of your application to enable WILC and Host Driver communicate each other.

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

Initialize BSP.

Warning
Missing use will lead to unavailability of host communication.
Note
Implementation of this function is host dependent.
Returns
The function returns M2M_SUCCESS for successful operations and a negative value otherwise.
0 in case of success and -1 in case of failure
Author
M. Abdelmawla
Date
11 July 2012
Version
1.0

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.
0 in case of success and -1 in case of failure
Version
1.0