Delta / NNN50_WIFI_API

Dependents:   NNN50_CE_Test_UDP NNN50_linux_firmware NNN50_SoftAP_HelloWorld NNN50_BLEWIFISensor ... more

Embed: (wiki syntax)

« Back to documentation index

nm_bsp_init

nm_bsp_init
[Function]

Initialization for BSP (Board Support Package) such as Reset and Chip Enable Pins for WINC, delays, register ISR, enable/disable IRQ for WINC, ...etc. More...

Functions

sint8 nm_bsp_init (void)
 This function is used to initialize the Board Support Package (BSP) in order to prepare the WINC before it start working.

Detailed Description

Initialization for BSP (Board Support Package) such as Reset and Chip Enable Pins for WINC, delays, register ISR, enable/disable IRQ for WINC, ...etc.

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


Function Documentation

sint8 nm_bsp_init ( void   )

This function is used to initialize the Board Support Package (BSP) in order to prepare the WINC before it start working.

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 user can use any of the WINC API functions again. After the function initialize the WINC. Hard reset must be applied to start the WINC board.

Note:
Implementation of this function is host dependent.
Warning:
inappropriate use of 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.