Resets the WINC SoC by setting CHIP_EN and RESET_N signals low, then after an appropriate delay, this function will put CHIP_EN high then RESET_N high, for more details on the timing between signals please check the WINC data-sheet.
Functions | |
void | nm_bsp_reset (void) |
Reset NMC1500 SoC by setting CHIP_EN and RESET_N signals low, CHIP_EN high then RESET_N high. More... | |
void nm_bsp_reset | ( | void | ) |
Reset NMC1500 SoC by setting CHIP_EN and RESET_N signals low, CHIP_EN high then RESET_N high.
Performs a hardware reset to the WINC board.
The nm_bsp_reset is used to perform a hard reset on the WINC board by setting CHIP_EN and RESET_N signals low, then after an appropriate delay this function puts CHIP_EN high then RESET_N high, for more details on the timing between signals please check the WINC data-sheet. After a successful call, the WINC board firmware will kick off to load and start the WINC firmware. This function should be called to reset the WINC firmware after the BSP is initialized and before the start of any communication with WINC board. Calling this function at any other time will result in losing the state and connections saved in the WINC board and starting again from the initial state. The host driver will need to be de-initialized before calling nm_bsp_reset and initialized again, which can be achieved by use of m2m_wifi_init and m2m_wifi_deinit.
References CONF_WINC_PIN_CHIP_ENABLE, CONF_WINC_PIN_RESET, nm_bsp_sleep(), and port_pin_set_output_level().
Referenced by nm_bus_init().