fix(ota): Fix OTA copy buffer is not align

Using globle macro "ROM_FLASH_BUF_DECLARE" to declare a block of buffer not "uint8_t".
This commit is contained in:
Dong Heng
2019-01-25 11:45:24 +08:00
parent 4c4fab3950
commit 7aebcee21c
2 changed files with 15 additions and 3 deletions

View File

@ -4,6 +4,8 @@
#include <stdint.h>
#include <stdarg.h>
#define ROM_FLASH_BUF_DECLARE(__name, __size) uint8_t __name[__size] __attribute__((aligned(4)))
typedef struct esp_spi_flash_chip {
uint32_t deviceId;
uint32_t chip_size; // chip size in byte