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

33418 Commits

Author SHA1 Message Date
Marian Buschsieweke
d382bd6565
sys/xtimer: No tick conversion if xtimer_on_ztimer
When `xtimer_on_ztimer` is used, `xtimer` does not need to perform any clock
conversion. Especially undefined macros of `XTIMER_HZ` and `XTIMER_SHIFT` should
no longer result in compilation issues, as they are not used internally anyway.
2020-08-19 09:48:23 +02:00
Marian Buschsieweke
67a024ee3b
Makefile.dep: include ztimer Makefile.dep for %ztimer modules as well
The module `xtimer_on_ztimer` should also pull in ztimer deps.
2020-08-19 09:47:16 +02:00
Francisco Molina
1b68c384a3
tests/periph_rtt_min: add test to figure out RTT_MIN_OFFSET 2020-08-19 09:28:24 +02:00
Leandro Lanzieri
99f0b86768
boards/common/atmega: define board_init as weak 2020-08-19 09:18:02 +02:00
Leandro Lanzieri
26dae7a198
boards/common/arduino-atmega: define led_init as weak 2020-08-19 09:17:50 +02:00
Marian Buschsieweke
527c429f5f
sys/ztimer: Fix compilation without ztimer_extend
`ztimer_init_extend()` should only be defined when module `ztimer_extend` is
used, as otherwise the `struct` member `clock->max_value` is not available.
2020-08-19 07:02:19 +02:00
benpicco
4a2d867339
Merge pull request #14749 from bergzand/pr/stm32/dynamic_spi_freqs
stm32: Add support for arbitrary SPI clock rates
2020-08-18 17:57:30 +02:00
Benjamin Valentin
4d41d7f069 tests/pkg_fatfs_vfs: blacklist nucleo-l031k6 2020-08-18 17:26:15 +02:00
Benjamin Valentin
02f37b998a drivers/at24cxxx: export page-wise write function
Export the _write_page() function so it can be used by the MTD subsystem.
2020-08-18 17:25:40 +02:00
Benjamin Valentin
277452807b cpu/esp_common: flash: implement write_page() 2020-08-18 17:25:40 +02:00
Benjamin Valentin
f3500257b1 pkg/littlefs: use page-addressed MTD operations 2020-08-18 17:25:40 +02:00
Benjamin Valentin
7c8fe862ce drivers/at25xxx: export page-wise write function
Export the _write_page() function so it can be used by the MTD subsystem.
2020-08-18 17:25:40 +02:00
Benjamin Valentin
c2492209d8 pkg/littlefs2: use page-addressed MTD operations 2020-08-18 17:25:40 +02:00
Benjamin Valentin
68a47b63e3 drivers/mtd_spi_nor: implement mtd_spi_nor_write_page() 2020-08-18 17:25:39 +02:00
Benjamin Valentin
c436c39ea8 pkg/fatfs: use page-wise read() and write()
The FAT file system operates on sectors (pages), so use the new
mtd_write_page() and mtd_read_page() functions.

This also avoids the wrap-around after reading/writing past 4 GiB.
2020-08-18 17:25:39 +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
Benjamin Valentin
4034f96169 mtd: add page addressed operations
Currently read(), write() and erase() all use 32 bit addressing.
This is a problem when writing to media > 4 GiB, e.g. SD cards.

The current implementation would wrap around after 4 GiB and corrupt data.

To avoid this, add functions to the MTD subsystem that allow for page-wise
addressing. This is how most of the underling storage drivers and the
file-systems above work anyway.

In the future we should then deprecate the 32-bit functions if all drivers
are converted.
2020-08-18 17:25:39 +02:00
2f3f1e0da2
p-l496g-cell02: remove obsolete spi_divtable include 2020-08-18 16:55:12 +02:00
742aa4ecde
nucleo-l496zg: remove obsolete spi_divtable include 2020-08-18 16:55:12 +02:00
f487b14adf
nucleo-l476rg: remove obsolete spi_divtable include 2020-08-18 16:55:11 +02:00
bcfa11e39d
nucleo-l433rc: remove obsolete spi_divtable include 2020-08-18 16:55:11 +02:00
1091850607
nucleo-l432kc: remove obsolete spi_divtable include 2020-08-18 16:55:11 +02:00
8db457867a
nucleo-l412kb: remove obsolete spi_divtable include 2020-08-18 16:55:11 +02:00
2aa7914879
b-l475e-iot01a: remove obsolete spi_divtable include 2020-08-18 16:55:11 +02:00
ef82cebdd0
common/stm32: remove obsolete spi_divtable config 2020-08-18 16:55:11 +02:00
01d7d55a6f
weact-f411ce: remove obsolete spi_divtable 2020-08-18 16:55:10 +02:00
23d5e9202d
ublox-c030-u201: remove obsolete spi_divtable 2020-08-18 16:55:10 +02:00
01737936f1
stm32l0538-disco: remove obsolete spi_divtable 2020-08-18 16:55:10 +02:00
1fe7f3d028
stm32f723e-disco: remove obsolete spi_divtable 2020-08-18 16:55:10 +02:00
dc890c4505
stm32f4discovery: remove obsolete spi_divtable 2020-08-18 16:55:10 +02:00
b478202702
stm32f429i-disc1: remove obsolete spi_divtable include 2020-08-18 16:55:10 +02:00
89f422f370
stm32f3discovery: remove obsolete spi_divtable 2020-08-18 16:55:10 +02:00
f53983e5fa
stm32f0discovery: remove obsolete spi_divtable 2020-08-18 16:55:09 +02:00
ca7f50c169
stm32f030f4-demo: remove obsolete spi_divtable 2020-08-18 16:55:09 +02:00
f2c4a14d64
spark-core: remove obsolete spi_divtable 2020-08-18 16:55:09 +02:00
540501fe12
pyboard: remove obsolete spi_divtable 2020-08-18 16:55:09 +02:00
16271f253b
p-nucleo-wb55: remove obsolete spi_divtable 2020-08-18 16:55:09 +02:00
d02fc52a0e
olimexino-stm32: remove obsolete spi_divtable 2020-08-18 16:55:09 +02:00
f77c4f8068
nz32-sc151: remove obsolete spi_divtable 2020-08-18 16:55:08 +02:00
c04429838c
nucleo-l4r5zi: remove obsolete spi_divtable 2020-08-18 16:55:08 +02:00
b99d486602
nucleo-l452re: remove obsolete spi_divtable 2020-08-18 16:55:08 +02:00
c5f471fe44
nucleo-l152re: remove obsolete spi_divtable 2020-08-18 16:55:08 +02:00
80c4d39f63
nucleo-l073rz: remove obsolete spi_divtable 2020-08-18 16:55:08 +02:00
75fdaba0ad
nucleo-l053r8: remove obsolete spi_divtable 2020-08-18 16:55:08 +02:00
fcc19960b9
nucleo-l031k6: remove obsolete spi_divtable 2020-08-18 16:55:08 +02:00
7f5fdf250e
nucleo-g474re: remove obsolete spi_divtable 2020-08-18 16:55:07 +02:00
92e9a312ee
nucleo-g070rb: remove obsolete spi_divtable 2020-08-18 16:55:07 +02:00
2fad084504
nucleo-f767zi: remove obsolete spi_divtable include 2020-08-18 16:55:07 +02:00
37606a86e9
nucleo-f446ze: remove obsolete spi_divtable include 2020-08-18 16:55:07 +02:00
6dceb16971
nucleo-f446re: remove obsolete spi_divtable include 2020-08-18 16:55:07 +02:00