#ifndef __BSP_FLASH_H #define __BSP_FLASH_H #pragma once #include #include "freertos/FreeRTOS.h" #include "freertos/task.h" #include "esp_log.h" #include #include #include "esp_check.h" #include #include "driver/gpio.h" #include "driver/uart.h" #include "esp_partition.h" extern void test_partiton(void); extern void ESPFlash_Init(void); extern uint32_t Read_ESPFlash(uint8_t SubType,uint32_t addr,uint8_t* buf,uint32_t len); extern uint32_t IRAM_ATTR Write_ESPFlash(uint8_t SubType,uint32_t addr,uint8_t* buf,uint32_t len); extern uint32_t IRAM_ATTR Erase_ESPFlash(uint8_t SubType,uint32_t addr); #endif