Skip to content

Commit 75a7cb6

Browse files
authored
[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
1 parent 3b1445d commit 75a7cb6

File tree

67 files changed

+2775
-93
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

67 files changed

+2775
-93
lines changed

bsp/at32/Libraries/rt_drivers/drv_flash.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
#ifdef BSP_USING_ON_CHIP_FLASH
1515
#include "drv_flash.h"
1616

17-
#if defined(PKG_USING_FAL)
17+
#if defined(RT_USING_FAL)
1818
#include "fal.h"
1919
#endif
2020

@@ -171,7 +171,7 @@ int at32_flash_erase(rt_uint32_t addr, size_t size)
171171
return size;
172172
}
173173

174-
#if defined(PKG_USING_FAL)
174+
#if defined(RT_USING_FAL)
175175

176176
static int fal_flash_read(long offset, rt_uint8_t *buf, size_t size);
177177
static int fal_flash_write(long offset, const rt_uint8_t *buf, size_t size);

bsp/bluetrum/libraries/hal_drivers/drv_flash.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@
1313

1414
#ifdef BSP_USING_ON_CHIP_FLASH
1515

16-
#if defined(PKG_USING_FAL)
16+
#if defined(RT_USING_FAL)
1717
#include "fal.h"
1818
#endif
1919

2020
//#define DRV_DEBUG
2121
#define LOG_TAG "drv.flash"
2222
#include <drv_log.h>
2323

24-
#if defined(PKG_USING_FAL)
24+
#if defined(RT_USING_FAL)
2525

2626
#define AB32_FLASH_START_ADDRESS 0x00000000
2727
#define AB32_FLASH_SIZE (1024 * 1024)

bsp/maxim/MAX32660_EVSYS/board/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ menu "On-chip Peripheral Drivers"
6363
endif
6464
endif
6565
config BSP_USING_ON_CHIP_FLASH
66-
select PKG_USING_FAL
66+
select RT_USING_FAL
6767
bool "Enable on-chip FLASH"
6868
default n
6969
config BSP_USING_I2C

bsp/mm32f327x/drivers/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ menu "Hardware Drivers Config"
2525
config OCFLASH_USE_FAL
2626
bool "Enable On Chip Flash FAL Driver"
2727
depends on BSP_USING_OCFLASH
28-
select PKG_USING_FAL
28+
select RT_USING_FAL
2929
default n
3030
config OCFLASH_USE_LFS
3131
bool "Enable On Chip Flash DFS Driver"

bsp/n32g452xx/Libraries/rt_drivers/drv_flash.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
#ifdef BSP_USING_ON_CHIP_FLASH
1616
#include "drv_flash.h"
1717

18-
#if defined(PKG_USING_FAL)
18+
#if defined(RT_USING_FAL)
1919
#include "fal.h"
2020
#endif
2121

@@ -172,7 +172,7 @@ int n32_flash_erase(rt_uint32_t addr, size_t size)
172172
return size;
173173
}
174174

175-
#if defined(PKG_USING_FAL)
175+
#if defined(RT_USING_FAL)
176176

177177
static int fal_flash_read(long offset, rt_uint8_t *buf, size_t size);
178178
static int fal_flash_write(long offset, const rt_uint8_t *buf, size_t size);

bsp/nrf5x/libraries/drivers/drv_flash.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
#ifdef BSP_USING_ON_CHIP_FLASH
1616

17-
#if defined(PKG_USING_FAL)
17+
#if defined(RT_USING_FAL)
1818
#include "fal.h"
1919
#endif
2020

@@ -155,7 +155,7 @@ int mcu_flash_erase(rt_uint32_t addr, size_t size)
155155
return size;
156156
}
157157

158-
#if defined(PKG_USING_FAL)
158+
#if defined(RT_USING_FAL)
159159

160160
static int fal_flash_read(long offset, rt_uint8_t *buf, size_t size);
161161
static int fal_flash_write(long offset, const rt_uint8_t *buf, size_t size);

bsp/nrf5x/libraries/drivers/drv_qspi_flash.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
#include <stdint.h>
1212
#include "board.h"
1313
#include "nrfx_qspi.h"
14-
#if defined(PKG_USING_FAL)
14+
#if defined(RT_USING_FAL)
1515
#include <fal.h>
1616

1717
//log

bsp/nrf5x/nrf52832/applications/mnt.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
#ifdef BSP_USING_ON_CHIP_FS
1616

17-
#ifndef PKG_USING_FAL
17+
#ifndef RT_USING_FAL
1818
#error "if you want to use on chip filesystem, you need to enable FAL package()"
1919
#endif
2020

bsp/nrf5x/nrf52832/board/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ menu "On-chip Peripheral Drivers"
338338

339339
endif
340340
config BSP_USING_ON_CHIP_FLASH
341-
select PKG_USING_FAL
341+
select RT_USING_FAL
342342
bool "Enable on-chip FLASH"
343343
default n
344344

bsp/nrf5x/nrf52840/board/Kconfig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ menu "Onboard Peripheral Drivers"
3737

3838

3939
menuconfig BSP_USING_QSPI_FLASH
40-
select PKG_USING_FAL
40+
select RT_USING_FAL
4141
bool "Enable QSPI FLASH(MX25R64 8MB)"
4242
default n
4343
depends on BSP_BOARD_PCA_10056
@@ -378,7 +378,7 @@ menu "On-chip Peripheral Drivers"
378378

379379

380380
config BSP_USING_ON_CHIP_FLASH
381-
select PKG_USING_FAL
381+
select RT_USING_FAL
382382
bool "Enable on-chip FLASH"
383383
default n
384384

0 commit comments

Comments
 (0)