diff --git a/drivers/bl702_driver/hal_drv/inc/hal_flash.h b/drivers/bl702_driver/hal_drv/inc/hal_flash.h index a2b8bdf4..812f570c 100644 --- a/drivers/bl702_driver/hal_drv/inc/hal_flash.h +++ b/drivers/bl702_driver/hal_drv/inc/hal_flash.h @@ -24,9 +24,9 @@ #define __HAL_FLASH__H__ #include "drv_device.h" -#include "bl702_sflash.h" -#define FLASH_NOT_DETECT 0x10 +#define FLASH_NOT_DETECT 0x10 +#define BL_FLASH_XIP_BASE BL702_FLASH_XIP_BASE int flash_init(void); int flash_read_jedec_id(uint8_t *data); @@ -36,6 +36,4 @@ BL_Err_Type flash_write(uint32_t addr, uint8_t *data, uint32_t len); BL_Err_Type flash_erase(uint32_t startaddr, uint32_t len); BL_Err_Type flash_set_cache(uint8_t cont_read, uint8_t cache_enable, uint8_t cache_way_disable, uint32_t flash_offset); -#define BL_FLASH_XIP_BASE BL702_FLASH_XIP_BASE - #endif