esp32c3-usb_serial/components/bsp_flash/include/bsp_flash.h

29 lines
656 B
C

#ifndef __BSP_FLASH_H
#define __BSP_FLASH_H
#pragma once
#include <stdio.h>
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "esp_log.h"
#include <stdio.h>
#include <stdint.h>
#include "esp_check.h"
#include <stdbool.h>
#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