Skip to content

Commit a455683

Browse files
committed
[update] format code.
1 parent cbebcf7 commit a455683

File tree

4 files changed

+6
-11
lines changed

4 files changed

+6
-11
lines changed

components/fal/Kconfig

+3-8
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,11 @@
11

22
# Kconfig file for package fal
3-
menuconfig PKG_USING_FAL
3+
menuconfig RT_USING_FAL
44
bool "fal: Flash Abstraction Layer implement. Manage flash device and partition."
5-
select RT_USING_LIBC if (PKG_FAL_VER_NUM <= 0x00300 && RT_VER_NUM < 0x40100)
5+
select RT_USING_LIBC
66
default n
77

8-
if PKG_USING_FAL
9-
10-
config PKG_FAL_PATH
11-
string
12-
default "/packages/system/fal"
13-
8+
if RT_USING_FAL
149
config FAL_DEBUG_CONFIG
1510
bool "Enable debug log output"
1611
default y

components/fal/inc/fal_def.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ struct fal_flash_dev
115115
int (*erase)(long offset, size_t size);
116116
} ops;
117117

118-
/* write minimum granularity, unit: bit.
118+
/* write minimum granularity, unit: bit.
119119
1(nor flash)/ 8(stm32f2/f4)/ 32(stm32f1)/ 64(stm32l4)
120120
0 will not take effect. */
121121
size_t write_gran;

components/fal/src/fal.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ int fal_init(void)
5353

5454
/**
5555
* Check if the FAL is initialized successfully
56-
*
56+
*
5757
* @return 0: not init or init failed; 1: init success
5858
*/
5959
int fal_init_check(void)

components/fal/src/fal_rtt.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ static rt_err_t mtd_nor_dev_erase(struct rt_mtd_nor_device* device, rt_off_t off
274274
}
275275
}
276276

277-
static const struct rt_mtd_nor_driver_ops _ops =
277+
static const struct rt_mtd_nor_driver_ops _ops =
278278
{
279279
RT_NULL,
280280
mtd_nor_dev_read,

0 commit comments

Comments
 (0)