chrysn
47148642f9
drivers/mtd_{mci,sdcard}: Pages need to be written at once
...
See-Also: https://github.com/RIOT-OS/RIOT/pull/17683#issuecomment-1084245744
2022-03-31 10:58:52 +02:00
Benjamin Valentin
c3543b7a69
drivers/mtd_sdcard: drop printf()
...
Only print errors when debug is enabled.
2022-03-25 17:21:15 +01:00
Benjamin Valentin
91ca757b9a
drivers/mtd_sdcard: implement erase_sector()
2022-02-07 11:40:27 +01:00
Benjamin Valentin
ac9de922c5
drivers/mtd_sdcard: support unaligned reads & writes
2022-02-07 11:36:07 +01:00
Benjamin Valentin
c569d9a1d9
drivers: add MTD_DRIVER_FLAG_DIRECT_WRITE to mtd drivers
...
- EEPROMs don't need read-modify-write cylce
- SD cards will handle read-modify-write internally
2021-01-28 11:51:28 +01:00
Bas Stottelaar
92b1dfc703
drivers/*: realign ENABLE_DEBUG
2020-10-23 01:26:09 +02:00
Benjamin Valentin
7d291b5707
drivers/mtd_sdard: implement page-wise read() and write()
...
SD cards are usually larger than 4 GiB, so using 32 bit addressing will
break once they are filled to a certain extend.
Implement read_page() and write_page() which at a page size of 512
should work for SD cards of up to 2 TiB.
The read() and write() functions will ignore any offset that is not aligned
with the page boundary, so do the same for the new functions, but at least
report an error.
2020-08-18 17:25: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
Akshai M
854145c884
drivers/mtd_sdard : Add MACRO and CONFIG_
...
Replace MTD_SDCARD_SKIP_ERASE with MTD_SDCARD_ERASE
Add CONFIG_ Prefix to MTD_SDCARD_ERASE
Model CONFIG_MTD_SDCARD_ERASE as bool
2020-05-04 22:12:13 +05:30
Martine Lenders
81bad0d6e8
mtd_sdcard: fix printf format strings
2018-08-06 12:19:44 +02:00
MichelRottleuthner
e5baef3810
Merge pull request #7324 from MichelRottleuthner/sdcard_mtd
...
sdcard_spi: integrate to mtd interface
2017-08-09 11:30:41 +02:00