WIFI_API_20150524e
WIFI_Driver/nordic/spi_flash.h@0:a2de37bf5f3d, 2015-06-09 (annotated)
- Committer:
- Marcomissyou
- Date:
- Tue Jun 09 06:04:13 2015 +0000
- Revision:
- 0:a2de37bf5f3d
update to WIFI_API_20150524e
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Marcomissyou | 0:a2de37bf5f3d | 1 | /* |
Marcomissyou | 0:a2de37bf5f3d | 2 | * Generated for windbond flash |
Marcomissyou | 0:a2de37bf5f3d | 3 | */ |
Marcomissyou | 0:a2de37bf5f3d | 4 | |
Marcomissyou | 0:a2de37bf5f3d | 5 | #ifndef SPI_FLASH_H |
Marcomissyou | 0:a2de37bf5f3d | 6 | #define SPI_FLASH_H |
Marcomissyou | 0:a2de37bf5f3d | 7 | |
Marcomissyou | 0:a2de37bf5f3d | 8 | #include <stdbool.h> |
Marcomissyou | 0:a2de37bf5f3d | 9 | #include <stdint.h> |
Marcomissyou | 0:a2de37bf5f3d | 10 | |
Marcomissyou | 0:a2de37bf5f3d | 11 | |
Marcomissyou | 0:a2de37bf5f3d | 12 | #if 1 //marcus |
Marcomissyou | 0:a2de37bf5f3d | 13 | |
Marcomissyou | 0:a2de37bf5f3d | 14 | //#if !defined(TARGET_DELTA_DFCM_NNN40) |
Marcomissyou | 0:a2de37bf5f3d | 15 | bool spi_flash_init(void); |
Marcomissyou | 0:a2de37bf5f3d | 16 | bool spi_flash_powerDown(void); |
Marcomissyou | 0:a2de37bf5f3d | 17 | //#endif |
Marcomissyou | 0:a2de37bf5f3d | 18 | |
Marcomissyou | 0:a2de37bf5f3d | 19 | void spi_flash_erase(void); |
Marcomissyou | 0:a2de37bf5f3d | 20 | void spi_flash_readpage(uint32_t address, uint8_t *data, uint16_t len); |
Marcomissyou | 0:a2de37bf5f3d | 21 | void spi_flash_write(void); |
Marcomissyou | 0:a2de37bf5f3d | 22 | |
Marcomissyou | 0:a2de37bf5f3d | 23 | void spi_flash_eraseCmd(uint8_t command, uint32_t address); |
Marcomissyou | 0:a2de37bf5f3d | 24 | void spi_flash_writePage(uint32_t address, const uint8_t *data, uint16_t len); |
Marcomissyou | 0:a2de37bf5f3d | 25 | |
Marcomissyou | 0:a2de37bf5f3d | 26 | bool spi_flash_waitBusy(void); |
Marcomissyou | 0:a2de37bf5f3d | 27 | void spi_flash_setWEL(void); |
Marcomissyou | 0:a2de37bf5f3d | 28 | |
Marcomissyou | 0:a2de37bf5f3d | 29 | // added by Tsungta |
Marcomissyou | 0:a2de37bf5f3d | 30 | void spi_flash_read_uniqueID(uint8_t *data); |
Marcomissyou | 0:a2de37bf5f3d | 31 | void spi_flash_erase_security(uint32_t address); |
Marcomissyou | 0:a2de37bf5f3d | 32 | void spi_flash_writePage_security(uint32_t address, const uint8_t *data, uint16_t len); |
Marcomissyou | 0:a2de37bf5f3d | 33 | void spi_flash_read_security(uint32_t address, uint8_t *data, uint16_t len); |
Marcomissyou | 0:a2de37bf5f3d | 34 | #endif |
Marcomissyou | 0:a2de37bf5f3d | 35 | #endif /* SPI_MASTER_H */ |