3.2 WINC Host Driver Initialization

The WINC host driver is initialized by calling the m2m_wifi_init API. The host driver initialization routine performs the following steps:

  • Initializes the bus wrapper and SPI peripheral. The compilation flag CONF_WINC_USE_SPI must be enabled in conf_winc.h (bus interfaces CONF_WINC_USE_UART and CONF_WINC_USE_I2C are currently not supported).
  • Registers an application-defined Wi-Fi event handler.
  • Initializes the driver and ensures compatibility between the WINC firmware version and the driver version.
  • Initializes the host interface and the Wi-Fi layer and registers the BSP Interrupt.
Note: A Wi-Fi event handler is required for the correct operation of any WINC application.