Skip to content

Commit 34c4600

Browse files
committed
middleware: fatfs: update to R0.13c version
Signed-off-by: Watson Zeng <[email protected]>
1 parent 911ff5a commit 34c4600

File tree

180 files changed

+25756
-42612
lines changed

Some content is hidden

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

180 files changed

+25756
-42612
lines changed

example/baremetal/bootloader/main.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ int main(void)
194194
EMBARC_PRINTF("%s open error. use default bootloader\r\n", BOOT_CFG_FILE_NAME);
195195
default_bt_flag = 1;
196196
} else {
197-
res = f_read(&file, boot_json, file.fsize, &cnt);
197+
res = f_read(&file, boot_json, f_size(&file), &cnt);
198198

199199
if (res) {
200200
EMBARC_PRINTF("read boot cfg file error\r\n");
@@ -301,10 +301,10 @@ int main(void)
301301
boot_flag = 0;
302302
} else {
303303
ram = (void *)boot_cfg.ram_startaddress;
304-
res = f_read(&file, ram, file.fsize, &cnt);
304+
res = f_read(&file, ram, f_size(&file), &cnt);
305305
f_close(&file);
306306

307-
if (res || ((uint32_t)cnt != file.fsize)) {
307+
if (res || ((uint32_t)cnt != f_size(&file))) {
308308
EMBARC_PRINTF("%s read error\r\n", boot_cfg.boot_file);
309309
boot_flag = 0;
310310
}

middleware/fatfs/LICENSE.txt

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
FatFs License
2+
3+
FatFs has being developped as a personal project of the author, ChaN. It is free from the code anyone else wrote at current release. Following code block shows a copy of the FatFs license document that heading the source files.
4+
5+
/*----------------------------------------------------------------------------/
6+
/ FatFs - Generic FAT Filesystem Module Rx.xx /
7+
/-----------------------------------------------------------------------------/
8+
/
9+
/ Copyright (C) 20xx, ChaN, all right reserved.
10+
/
11+
/ FatFs module is an open source software. Redistribution and use of FatFs in
12+
/ source and binary forms, with or without modification, are permitted provided
13+
/ that the following condition is met:
14+
/
15+
/ 1. Redistributions of source code must retain the above copyright notice,
16+
/ this condition and the following disclaimer.
17+
/
18+
/ This software is provided by the copyright holder and contributors "AS IS"
19+
/ and any warranties related to this software are DISCLAIMED.
20+
/ The copyright owner or contributors be NOT LIABLE for any damages caused
21+
/ by use of this software.
22+
/----------------------------------------------------------------------------*/
23+
24+
Therefore FatFs license is one of the BSD-style licenses but there is a significant feature. FatFs is mainly intended for embedded systems. In order to extend the usability for commercial products, the redistributions of FatFs in binary form, such as embedded code, binary library and any forms without source code, does not need to include about FatFs in the documentations. This is equivalent to the 1-clause BSD license. Of course FatFs is compatible with the most of open source software licenses including GNU GPL. When you redistribute the FatFs source code with any changes or create a fork, the license can also be changed to GNU GPL, BSD-style license or any open source software license that not conflict with FatFs license.

middleware/fatfs/doc/00index_e.html

Lines changed: 0 additions & 143 deletions
This file was deleted.

0 commit comments

Comments
 (0)