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

37279 Commits

Author SHA1 Message Date
Leandro Lanzieri
703e66b4c1
sys/ztimer/kconfig: change entry point 2021-11-09 15:32:34 +01:00
Leandro Lanzieri
3837286750
sys/{x,z}timer/Kconfig: fix compatibility modules 2021-11-09 15:32:33 +01:00
Marian Buschsieweke
d52077207e
Merge pull request #17151 from maribu/pkg/littlefs2
pkg/littlefs{,2}: fix compilation with -Wcast-align
2021-11-09 15:24:07 +01:00
Benjamin Valentin
6c1481b6ee drivers/dose: enable standby pin
Some CAN transceivers have a standby pin that has to be pulled low
in order to use it.
If the interface is disabled we can set it to high again to save some
power.
2021-11-09 15:19:35 +01:00
Marian Buschsieweke
4148af742b
LOSTANDFOUND.md: add details about removal of libcoap 2021-11-09 13:51:27 +01:00
55d5cdea04 tests/pkg_relic: update for bumped upstream 2021-11-09 13:48:49 +01:00
Marian Buschsieweke
d83d08f099
pkg/libcoap: remove
The pkg has not been updated in ages and upstream libcoap provides means
to build with RIOT. Users are better served using the upstream libcoap
approach to use RIOT + libcoap rather than this outdated pkg.
2021-11-09 13:47:11 +01:00
Martine Lenders
4b2ca7a702
Merge pull request #16986 from benpicco/uhcp-debug
sys/net/uhcp: use LOG_DEBUG instead of LOG_INFO
2021-11-09 12:58:16 +01:00
7151992b5c pkg/relic: bump to current master (e3f82e36 from 08.11.21) 2021-11-08 23:18:30 +01:00
Francisco Molina
15b22f83c1 dist/tools/doccheck/exclude_patterns: add lora-e5-dev 2021-11-08 20:01:52 +01:00
Francisco Molina
002df1c5c2 boards/lora-e5-dev: set tx_pa_mode to HPA 2021-11-08 18:42:34 +01:00
Francisco Molina
e17e3254e1 drivers/sx126x: add tx_pa_mode
BOARDs with RF switch might only support one of the TX modes, and
on init the BOARD needs to be configured accordingly and the correct
mode selected on TX.
2021-11-08 18:42:05 +01:00
Marian Buschsieweke
78810d736c
pkg/littlefs2/fs: fix compilation with -Wcast-align 2021-11-08 14:24:32 +01:00
Marian Buschsieweke
3a5a13e343
pkg/littlefs/fs: fix compilation with -Wcast-align 2021-11-08 14:24:18 +01:00
Francisco
70744a7a92
Merge pull request #17158 from fjmolinas/pr_lora_e5_dev_power_outpur
boards/lora-e5-dev: enable 3.3V and 5V output by default
2021-11-08 12:49:29 +01:00
Marian Buschsieweke
73fc2c215a
Merge pull request #17150 from maribu/cpu/esp_common/periph_flashpage
cpu/esp_common: fix unaligned access in periph_flashpage
2021-11-08 10:49:40 +01:00
Francisco Molina
c208300f2b boards/lora-e5-dev: add lm75a to saul default 2021-11-08 09:37:51 +01:00
Francisco Molina
c393efd360 boards/lora-e5-dev: enable 3.3V and 5V output by default 2021-11-08 09:37:51 +01:00
Marian Buschsieweke
cb6525b033
cpu/esp_common: fix unaligned access in periph_flashpage 2021-11-07 22:06:27 +01:00
benpicco
358abcf133
Merge pull request #17156 from maribu/drivers/encx24j600
drivers/encx24j600: fix unaligned memory access
2021-11-07 18:55:58 +01:00
Marian Buschsieweke
4c22716001
drivers/encx24j600: make cppcheck happy
Rename cmd buffer to cmd_buf to avoid shadowing outer function.
2021-11-07 08:46:06 +01:00
Marian Buschsieweke
f7bed004ff
Merge pull request #17153 from maribu/sys/net/dns
sys/net/dns: mark dns_hdr_t as packed
2021-11-07 07:52:16 +01:00
Marian Buschsieweke
6a7ace798e
Merge pull request #17149 from maribu/drivers/lis3dh
drivers/lis3dh: fix unaligned memory access
2021-11-07 07:48:20 +01:00
830dbe6156
Merge pull request #17146 from kaspar030/murdock_redis_host
murdock: allow specifying redis host
2021-11-06 21:03:58 +01:00
Marian Buschsieweke
9f1cece6ee
drivers/encx24j600: fix unaligned memory access 2021-11-06 20:33:43 +01:00
Marian Buschsieweke
09b8387df4
cpu/native: align stack in thread_stack_init()
Unaligned accesses on x86(_64) are allowed, but slow. However, some host systems
might not be that forgiving. Aligning the stack to sizeof(uintptr_t) should be
a pretty safe safety measure.

And with this done, all casts of the stack pointer that increase alignment
requirements are now intermediately casted to `uintptr_t` to silence
warnings from -Wcast-align - after all the stacks are now manually aligned.
2021-11-06 20:22:10 +01:00
Marian Buschsieweke
825a598ca7
cpu/stm32/periph/usbdev: fix alignment issues
Make sure in `_usbdev_new_ep()` that `usbdev_ep_t::buf` is always aligned to 4
bytes. With this in mind, add intermediate casts to `uintptr_t` before casting
`usbdev_ep_t::buf` to `uint32_t *` to silence `-Wcast-align`, as we now manually
enforced correct alignment.
2021-11-06 20:19:39 +01:00
Marian Buschsieweke
2e6eca1918
sys/net/dns: mark dns_hdr_t as packed
This structure is used to parse data from unaligned buffers, so make
sure the compiler issues instructions suitable for unaligned memory
access.
2021-11-06 20:16:56 +01:00
Marian Buschsieweke
5e75047a2b
drivers/lis3dh: fix unaligned memory access
The bogus packed attribute added to lis3dh_data_t resulted in the
structure being aligned two 1 byte. It was later casted to an
uint16_t pointer (which is aligned two 2 bytes). By dropping the
packed attribute the alignment mismatch is fixed.
2021-11-06 20:05:05 +01:00
Martine Lenders
3677a93d96
Merge pull request #17145 from yarrick/core_lock
tests/lwip_sock: Take lock before calling etharp
2021-11-06 13:53:39 +01:00
benpicco
1f11780c02
Merge pull request #17119 from spectraphilic/sdi12-remote
pkg/arduino_sdi_12: support the remote-revb board
2021-11-06 11:32:54 +01:00
benpicco
2b43675ded
Merge pull request #17148 from benpicco/index_of
core/include/kernel_defines.h: Fix index_of()
2021-11-06 11:32:43 +01:00
Benjamin Valentin
e2639cb53a core/include/kernel_defines.h: Fix index_of()
Calculate the size of the element based on the array given, not based
on the element pointer.

The element might as well be given as a `void *` via a callback.
In that case, if the user forgets to cast the `void *` to the array
element type, the calculation returns false values.

Disarm this foot gun by basing the element size off the given array.
2021-11-06 00:35:39 +01:00
benpicco
4c61a99125
Merge pull request #17127 from benpicco/riscv-none-embed
makefiles: RISC-V: prefer target triple from riotdocker
2021-11-05 23:20:12 +01:00
benpicco
cf8ec62b94
Merge pull request #17007 from dylad/pr/sam0/call_disabled_irq
cpu/sam0: prevent disabled irq from being called
2021-11-05 23:19:52 +01:00
benpicco
321918ce02
Merge pull request #17142 from benpicco/index_of
core/include/kernel_defines.h: add index_of() macro
2021-11-05 23:19:37 +01:00
d67a3d567f murdock: allow specifying redis host 2021-11-05 23:15:57 +01:00
Erik Ekman
91be3adac8 tests/lwip_sock: Take lock before calling etharp
Fixes #17144
2021-11-05 18:45:04 +01:00
dylad
8842377e93 cpu/sam0: prevent disabled irq from being called
Reported-by: biboc <bapclenet@gmail.com>
Signed-off-by: dylad <dylan.laduranty@mesotic.com>
2021-11-05 18:21:21 +01:00
7c3bade90d
examples/paho-mqtt: migrate to ztimer 2021-11-05 16:50:53 +01:00
52edeb3c09
pkg/paho-mqtt: migrate to ztimer 2021-11-05 16:50:46 +01:00
Benjamin Valentin
a803cab439 tests/unittests: add test for index_of() 2021-11-05 16:42:38 +01:00
Benjamin Valentin
01a49d3d19 core/include/kernel_defines.h: add index_of() macro 2021-11-05 16:42:38 +01:00
26346188b9
Merge pull request #17105 from aabadie/pr/drivers/ata8520e_ztimer
drivers/ata8520e: migrate to ztimer
2021-11-05 16:22:59 +01:00
Francisco
2947a8c669
Merge pull request #17108 from MrKevinWeiss/pr/stk3200/spi
boards/stk3200: Fix spi config
2021-11-05 15:08:24 +01:00
baa1ed38cc
drivers/ata8520e: migrate to ztimer 2021-11-05 12:49:37 +01:00
benpicco
bfb8d1d3fd
Merge pull request #17014 from benpicco/periph/gpio-cb_not_NULL
drivers/periph/gpio: state that interrupt callback must not be NULL
2021-11-05 12:47:16 +01:00
Karl Fessel
314bc00902 driver/at30tse75x: cleanup for static tests 2021-11-05 12:19:35 +01:00
Karl Fessel
fc8e6f01bd driver/at30tse75x: port to ztimer_usec 2021-11-05 12:19:35 +01:00
Francisco
c739516ac4
Merge pull request #17132 from miri64/core/enh/activate-SCHED_TEST_STACK
core: make SCHED_TEST_STACK boolean and default to 1 with DEVELHELP
2021-11-05 11:11:36 +01:00