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

15 Commits

Author SHA1 Message Date
Benjamin Valentin
fe4efcacfb tests/mtd_flashpage: make use of mtd_flashpage_t 2022-02-08 17:14:56 +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
d98d6c1e7c tests/mtd_flashpage: remove native from blacklist 2021-02-18 14:22:11 +01:00
Benjamin Valentin
4291df0305 tests/mtd_flashpage: make use of FLASHPAGE_ERASE_STATE 2021-02-16 21:51:41 +01:00
Francisco Molina
227cd98050
tests/mtd_flashpage: blacklist native
https://github.com/RIOT-OS/RIOT/pull/15859 exposed a bug in the
handling of FEATURES_REQUIRED_ANY, so https://github.com/RIOT-OS/RIOT/pull/15935
did not run this test, native is currently failing, so blacklist while this
is still the case
2021-02-16 18:18:22 +01:00
Leandro Lanzieri
d2ca66e476
tests: add common Kconfig configuration for sync 2021-01-20 17:36:14 +01:00
Leandro Lanzieri
20c5552920
tests: add Kconfig configuration files for multiple driver tests
Configurations for the following applications have been added:

l3g4200d
lc709203f
lis2dh12
lis3dh
lis3mdl
lpd8808
lpsxxx
lsm303dlhc
lsm6dsl
ltc4150
mag3110
mhz19
mma7660
mma8x5x
motor_driver
mpl3115a2
mpu9x50
mq3
nvram_spi
mtd_flashpage
mtd_mapper
2021-01-18 10:44:30 +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
2c85ba2af2 test/mtd_flashpage: extend test to erase multiple sectors in one go 2020-11-03 12:35:36 +01:00
Leandro Lanzieri
4d65bc8e0a
cpu: Rename CPU_ARCH to CPU_CORE 2020-06-16 12:05:40 +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
e9af310159
tests: use check_unittests func from testrunner 2020-03-19 10:39:34 +01:00
Francisco Molina
1abeb21bce tests/mtd_flashpage: adapt test for msp430
- msp430 holds the ISR vector in the last page, avoid
  erasing that page during test.
2019-11-24 13:19:20 +01:00
fjmolinas
f0bbcef987 drivers/mtd_flashpage: add 16bit compatibility 2019-11-24 13:19:19 +01:00
Vincent Dupont
a05f7c7cac unittests: add mtd_flashpage unittests 2019-09-10 13:26:27 +02:00