Microchip® Advanced Software Framework

nmdrv.c File Reference

This module contains NMC1000 M2M driver APIs implementation.

Copyright (c) 2016-2018 Microchip Technology Inc. and its subsidiaries.

Functions

sint8 nm_drv_deinit (void *arg)
 
sint8 nm_drv_init (void *arg)
 
sint8 nm_drv_init_download_mode (void)
 
sint8 nm_drv_init_hold (void)
 
sint8 nm_drv_init_start (void *arg)
 
sint8 nm_get_firmware_full_info (tstrM2mRev *pstrRev)
 Get Firmware version info. More...
 
sint8 nm_get_firmware_info (tstrM2mRev *M2mRev)
 Get Firmware version info. More...
 
sint8 nm_get_ota_firmware_info (tstrM2mRev *pstrRev)
 Get Firmware version info. More...
 

sint8 nm_drv_init ( void *  arg)
sint8 nm_drv_init_download_mode ( void  )

TODO:reset the chip and halt the cpu in case of no wait efuse is set (add the no wait effuse check)

References chip_reset_and_cpu_halt(), GET_CHIPID, ISNMC3000, M2M_ERR, M2M_INFO, M2M_SUCCESS, nm_bus_iface_init(), nm_spi_init(), nm_write_reg(), nmi_get_chipid(), and NULL.

Referenced by m2m_wifi_download_mode().