SPI flash refactoring.

Extract common spiflash.c into core.
Use spiflash.c in sysparam.
Use memcpy in spiflash.c insted of hand-written version.
Tests for spiflash.c
This commit is contained in:
sheinz 2016-11-28 17:17:59 +02:00
parent 2105d5a5cd
commit e84f47f944
9 changed files with 140 additions and 247 deletions

View file

@ -1,6 +1,6 @@
/*
/*
* copyright (c) Espressif System 2010
*
*
*/
#ifndef __SPI_FLASH_H__
@ -46,12 +46,6 @@ sdk_SpiFlashOpResult sdk_spi_flash_write(uint32_t des_addr, uint32_t *src, uint3
*/
sdk_SpiFlashOpResult sdk_spi_flash_read(uint32_t src_addr, uint32_t *des, uint32_t size);
/* SDK uses this structure internally to account for flash size.
See flashchip.h for more info.
*/
extern sdk_flashchip_t sdk_flashchip;
#ifdef __cplusplus
}
#endif