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

37197 Commits

Author SHA1 Message Date
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
J. David Ibáñez
77df3eedbd sys/arduino: millis() expected to have C linkage
This fixes building tests/pkg_arduino_sdi_12 for the hifive1b board.

The problem is, in build/pkg/arduino_api/api/Common.h millis is defined
within an extern "C" block. While in sys/arduino/include/arduino.hpp it
was not.
2021-11-05 10:21:26 +01:00
Martine Lenders
2955288b8b
tests: update Makefile.ci for SCHED_STACK_TEST extension of DEVELHELP 2021-11-05 09:27:01 +01:00
Martine Lenders
098eeb1a2c
cpu/esp_common: suppress cppcheck false positives 2021-11-05 09:27:00 +01:00
Martine Lenders
e27fd3018e
core/thread.h: fix new uncrustify error 2021-11-05 09:27:00 +01:00
Martine Lenders
f08989a3c8
core: make SCHED_TEST_STACK boolean and default to 1 with DEVELHELP 2021-11-05 09:27:00 +01:00
a281499082
Merge pull request #17131 from fjmolinas/pr_openwsn_update_doc
pkg/openwsn: update doc
2021-11-05 09:25:42 +01:00
Francisco Molina
acde16465a dist/tools/coccinelle/force: remove static.cocci
The rule is not behaving as it should and flagging all 'static'
variables based only on initialization (if the variable is initialized
before usage), but fails to recognize if 'static' is used to limit
visibility.
2021-11-05 08:45:55 +01:00
eaa007d412
Merge pull request #17135 from bergzand/pr/usbdev/fix_cppcheck_vera
usb(dev|bus): Fix static-check issues
2021-11-05 08:36:53 +01:00
J. David Ibáñez
98a61d06e1 pkg/arduino_sdi_12: move BOARD_INSUFFICIENT_MEMORY to Makefile.ci 2021-11-05 07:55:16 +01:00
9e853a6a79
Merge pull request #17124 from aabadie/pr/boards/microbit_mineplex
boards/{calliope-mini,microbit*}: factorize common microbit module, use ztimer
2021-11-05 00:39:35 +01:00
7ce5d8a5dd
Merge pull request #17112 from aabadie/pr/drivers/rn2xx3_ztimer
drivers/rn2xx3: migrate to ztimer
2021-11-05 00:38:55 +01:00
Dylan Laduranty
037260a5b3
Merge pull request #17136 from bergzand/pr/usbus_hid/fix_null_dereference
usbus_hid: Fix possible null pointer dereference
2021-11-04 20:02:10 +01:00
233cc0928a
Merge pull request #16887 from aabadie/pr/pkg/elk
pkg: add support for Elk Tiny Javascript engine
2021-11-04 17:52:44 +01:00
Francisco Molina
89da5f0add pkg/openwsn: update doc 2021-11-04 17:25:09 +01:00
03acd1fafc
tests/driver_ads101x: exclude nucleo-l011k4 because of low memory 2021-11-04 16:21:08 +01:00
J. David Ibáñez
d2c9caae2b pkg/arduino_sdi_12: skip nucleo-l011k4 in CI
Because it does not have enough memory.
2021-11-04 16:05:06 +01:00
J. David Ibáñez
c9062c2e23 pkg/arduino_sdi_12: use blacklist instead of whitelist 2021-11-04 16:05:06 +01:00
J. David Ibáñez
1d2ac15396 pkg/arduino_sdi_12: cpp11-compat for all but atmega
Doesn't work.
2021-11-04 16:05:06 +01:00
J. David Ibáñez
3e73c5f6e3 pkg/arduino_sdi_12: support the remote-revb board
Patch the library to use micros() for timing, when sending a command,
for boards not supported by the library.

Use cpp11-compat with the remote-revb board. This fixes the link error
"undefined reference to __dso_handle"
2021-11-04 16:05:06 +01:00
2f44452d78
boards/microbit: migrate to ztimer 2021-11-04 15:39:58 +01:00
Francisco
f08c5da7aa
Merge pull request #17101 from aabadie/pr/drivers/bmp180_ztimer
drivers/bmp180: migrate to ztimer
2021-11-04 15:25:48 +01:00
Karl Fessel
4d552e7e4a driver/at30tse75x: avoid direct use of xtimer_ticks 2021-11-04 14:16:07 +01:00
673fa4bd5b
tests/usbus: resolve vera++ issue 2021-11-04 13:49:35 +01:00
9f510fb1ab
usbus/cdc_acm: resolve vera++ issues 2021-11-04 13:49:35 +01:00
df39337ebf
usbopt: resolve vera++ issues 2021-11-04 13:49:34 +01:00
c918630e5e
usbdev_mock: Uncrustified and fixed static-check issues 2021-11-04 13:49:34 +01:00
d9dd0cc3b1
cpu/sam0_common: Uncrustified and fixed static-check issues 2021-11-04 13:49:34 +01:00
aba81ffa5c
cpu/nrf52: Uncrustified and fixed static-check issues 2021-11-04 13:49:34 +01:00
86aa665cbc
usbus_hid: Fix possible null pointer dereference 2021-11-04 13:45:19 +01:00
benpicco
2f1258f60b
Merge pull request #17130 from kfessel/p-gcoap-example-lwip
example/gcoap: add LWIP make option
2021-11-04 13:36:34 +01:00
f3d2acb1ee
.murdock: add tests/pkg_elk test kconfig group 2021-11-04 12:38:21 +01:00