[update] add fal component. (#5662)

* [update] add fal component.

* [update] format code.

* [update] change PKG_USING_FAL to RT_USING_FAL

* [update] format code.

* [update] fal

* [update] delete FAL_SW_VERSION
This commit is contained in:
LiuKang
2022-03-15 09:48:05 +08:00
committed by GitHub
parent 3b1445d49c
commit 75a7cb6929
67 changed files with 2775 additions and 93 deletions

View File

@@ -15,7 +15,7 @@
#ifdef BSP_USING_ON_CHIP_FLASH
#include "drv_flash.h"
#if defined(PKG_USING_FAL)
#if defined(RT_USING_FAL)
#include "fal.h"
#endif
@@ -172,7 +172,7 @@ __exit:
return size;
}
#if defined(PKG_USING_FAL)
#if defined(RT_USING_FAL)
static int fal_flash_read(long offset, rt_uint8_t *buf, size_t size);
static int fal_flash_write(long offset, const rt_uint8_t *buf, size_t size);