kasper
02d86c2a25
drivers/mtd_flashpage: fix comperror when compiling without asserts
...
the variable cpu_flash_base is only used in asserts. This gives errors if you compile without them.
2024-03-19 14:36:01 +00:00
Benjamin Valentin
e3819ca960
drivers/mtd_flashpage: define mtd_flash_aux_slot device
2024-02-28 11:49:05 +01:00
Frederik Haxel
3feb1a369b
drivers: 64 bit compatibility
...
Fixed compilation errors for pointer casting.
2024-01-17 16:05:12 +01:00
Fabian Hüßler
37c39d0ee0
drivers/mtd_flashpage: improve _write_page
2023-12-31 00:26:40 +01:00
Benjamin Valentin
d8ab11b51f
drivers/mtd_flashpage: drop legacy API
2023-02-16 15:50:52 +01:00
Benjamin Valentin
5d5d88b271
drivers/mtd_flashpage: implement pagewise API
2023-02-16 15:50:52 +01:00
Francisco Molina
14ef09b8b4
drivers/mtd: fix Kconfig dependencies
...
Currently implementations of the MTD api are selecting the module,
this makes it easy for default backends to be selected. But the
correct modeling is simply selecting the MTD api and then selecting
a backend. BOARDs providing one of the backends can expose this and
then that backend can be selected by default.
There is also currently nothing preventing from using the MTD api
with no backend since a mock backend can easily be provided as is
done in all mtd tests.
2021-09-22 09:22:51 +02:00
Benjamin Valentin
127b46eea3
drivers/mtd_flashpage: require read source & destination alignment
2021-02-23 10:59:17 +01:00
Benjamin Valentin
0b79ae3524
drivers/mtd_flashpage: require the write source buffer to be aligned
2021-02-22 11:27:07 +01:00
Benjamin Valentin
177f73c789
drivers/mtd_flashpage: make use of uword_t
2021-02-18 14:22:11 +01:00
Benjamin Valentin
1ca93e0171
drivers/mtd_flashpage: narrow down FLASHPAGE_WRITE_BLOCK_ALIGNMENT check
...
Only check the *write* block alignment, not the *read* or *source* alignment.
2021-02-17 11:18:14 +01:00
Leandro Lanzieri
105001a977
drivers/mtd_flashpage: add module to Kconfig
2021-01-18 10:42:34 +01:00
3aa5203bc5
mtd_flashpage: only depend on periph_flashpage
...
The features in flashpage_raw are now default in flashpage and do not
have to be included as a separate dependency
2020-11-11 23:16:43 +01:00
Juergen Fitschen
a15d50dffe
drivers/mtd_flashpage: fix erasure of multiple sectors
2020-11-03 12:35:43 +01:00
304bce3724
drivers: configure per driver dependency resolution
2020-07-20 14:32:16 +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
fjmolinas
f0bbcef987
drivers/mtd_flashpage: add 16bit compatibility
2019-11-24 13:19:19 +01:00
Vincent Dupont
f3d2f53287
drivers: add mtd_flashpage driver
...
This is a MTD wrapper for flashpage internal flash
2019-09-10 13:26:05 +02:00