1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
Commit Graph

8 Commits

Author SHA1 Message Date
adb46b9ee7
Merge pull request #14006 from benpicco/sdcard_fixes
pkg/fs: initialize MTD device before accessing it's properties
2020-05-12 11:31:39 +02:00
fabian18
a3a1c160ee mtd: Change API to return 0 on success
Returning the number of bytes written/read could return a negative integer
because a uint32_t is expected for the length in read()/write() operations.
2020-05-06 20:24:27 +02:00
Benjamin Valentin
348b45f600 pkg/spiffs: init MTD device before accessing it's parameters
The parameters of the MTD device (`sector_count`, `page_size`)
are only known after the device has been initialized.

Init the device before using it to avoid reading all 0 on e.g. SD cards.
2020-05-05 13:48:18 +02:00
70407a1a3e pkg*: fix doxygen grouping 2018-06-11 19:12:02 +02:00
Samantha Wojtowicz
ced65bbf5b pkg/spiffs: add multi-partitions support
Two new fileds added in spiffs descriptor:
 - base_addr: base address of the partition
 - part_block_count: number of sectors in the partition
If part_block_count is 0, the whole underlying MTD is used
2018-03-02 13:45:17 +01:00
Vincent Dupont
054e6c2215 pkg/spiffs: implement format from vfs 2018-02-09 14:29:45 +01:00
Vincent Dupont
5a89d1aefc pkg/spiffs: add statvfs fs ops 2017-07-10 15:57:03 +02:00
Vincent Dupont
f0bd96b690 spiffs: add SPIFFS as a package
This implements basic features with the VFS interface
2017-03-31 17:17:41 +02:00