Commit Graph

7 Commits

Author SHA1 Message Date
Gaurav-Aggarwal-AWS
c25ae5f70c Correct default definition of a config macro (#30)
The check for defining the default value of
ffconfigUNICODE_UTF16_SUPPORT was #if( ffconfigUNICODE_UTF16_SUPPORT == 0 )
which resulted in macro redefinition warnings if the application defined
the macro to 0. This commit changes the check to
 #if !defined( ffconfigUNICODE_UTF16_SUPPORT ) to ensure that default
value if only defined when the application does not define the macro and
hence, no warning is generated even when the application defines
ffconfigUNICODE_UTF16_SUPPORT to 0.

Signed-off-by: Gaurav Aggarwal <aggarg@amazon.com>
2022-06-07 21:26:44 +05:30
Archit Gupta
d21f242c11 Ensure null-termination of filenames copied by strncpy (#28)
Prior use of strncpy passed the buffer length for n; when the string to copy is
length n or longer, this results in the buffer not containing a null byte. This
is problematic as the buffers are assumed to contain a null byte elsewhere.

Reported here: https://forums.freertos.org/t/freertos-fat-compiler-warnings/14843
2022-04-29 12:18:29 -07:00
Hein Tibosch
097fcab1d8 FAT: Changes for 64-bit platforms and solved compiler warnings (#21)
* Changes for 64-bit platforms

* Treated a few more compiler warnings.

Co-authored-by: Hein Tibosch <hein@htibosch.net>
Co-authored-by: Aniruddha Kanhere <60444055+AniruddhaKanhere@users.noreply.github.com>
2021-10-26 21:40:06 -07:00
Hein Tibosch
50ea2f2568 Formatted sources using Uncrustify, updated copyright notices. (#16)
* Formatted sources using Uncrustify, updated copyright notices.

* Adding the uncrustify configuration file.

* Changed the copyright notices.

Co-authored-by: Hein Tibosch <hein@htibosch.net>
2021-05-10 11:12:02 -07:00
John Grenard
d725a4c14a Add support to format disks that have a sector size other than 512-bytes. (#5)
* changes to support UTF16 and LFN

* FF_Format - Replace hardcoded sector-size with existing parameter

* Revert minor formatting changes

* Update ffconfigOPTIMISE_UNALIGNED_ACCESS documentation.

* Update FF utilities for sectors larger than 512

Co-authored-by: Arpita <arpita.yagnik@renesas.com>
Co-authored-by: Kristine Jassmann <kristine.jassmann@renesas.com>
2021-03-15 10:31:05 -07:00
Yuhui Zheng
f90428e298 Sync with the distribution in FreeRTOS-Labs at commit 1ad51506443ab5550fbdde9c27a84b5879dd2a73. 2020-02-27 17:29:06 -08:00
Yuhui Zheng
7daf0485d8 Initial commit: FreeRTOS-Plus-FAT-160919a-MIT as-is. 2019-11-19 17:57:06 -08:00