WINC1500 SPI Flash.
This file describe SPI flash APIs, how to use it and limitations with each one.
Copyright (c) 2016-2018 Microchip Technology Inc. and its subsidiaries.
This example illustrates a complete guide of how to use these APIs.
#include "common/include/nm_common.h"
#include "bus_wrapper/include/nm_bus_wrapper.h"
#include "driver/source/nmbus.h"
#include "driver/source/nmasic.h"
Macros | |
#define | FLASH_SECTOR_SZ (4 * 1024UL) |
Functions | |
sint8 | spi_flash_enable (uint8 enable) |
sint8 | spi_flash_erase (uint32 u32Offset, uint32 u32Sz) |
Erase a specified portion of SPI Flash. . More... | |
uint32 | spi_flash_get_size (void) |
Get size of SPI Flash. More... | |
sint8 | spi_flash_read (uint8 *pu8Buf, uint32 u32Addr, uint32 u32Sz) |
Read a specified portion of data from SPI Flash. . More... | |
sint8 | spi_flash_write (uint8 *pu8Buf, uint32 u32Offset, uint32 u32Sz) |
Write a specified portion of data to SPI Flash. . More... | |
#define FLASH_SECTOR_SZ (4 * 1024UL) |
Sector Size in Flash Memory
Referenced by m2m_ota_host_file_read_spi(), spi_flexible_flash_find_section(), and WriteTlsCertificate().
References M2M_SUCCESS, nm_read_reg_with_ret(), nm_write_reg(), nmi_get_chipid(), REV, REV_3A0, spi_flash_enter_low_power_mode(), and spi_flash_leave_low_power_mode().
Referenced by nm_drv_deinit().