benpicco
86d72c7b85
Merge pull request #18940 from krzysztof-cabaj/nucleo-l496zg-ADC
...
boards/nucleo-l496zg: add ADC support
2022-11-23 20:34:08 +01:00
Marian Buschsieweke
74bafdf840
Merge pull request #18951 from maribu/sys/net/gnrc/netapi/fix-wild-pointer-freeing
...
sys/net/grnc/netreg: avoid freeing wild pointers
2022-11-23 18:59:33 +01:00
Marian Buschsieweke
cefef8fd1e
Merge pull request #18953 from jue89/fix/nrf5x-timer-lowpower
...
cpu/nrf5x/timer: fix high current consumption in powered off state
2022-11-23 17:03:33 +01:00
a87a066762
Merge pull request #18952 from maribu/tests/pkg_utensor
...
tests/pkg_utensor: increase main threads stack size
2022-11-23 14:54:34 +01:00
Benjamin Valentin
07b3ccbc6a
boards/samd21-xpro: fix style of PWM config
2022-11-23 14:06:30 +01:00
Benjamin Valentin
90b0607f18
boards/same54-xpro: fix style of PWM config
2022-11-23 13:53:46 +01:00
Benjamin Valentin
58e37a7c58
boards/saml21-xpro: fix style of PWM config
2022-11-23 13:53:32 +01:00
Benjamin Valentin
f878f11193
boards/samr21-xpro: fix style of PWM config
2022-11-23 13:53:14 +01:00
ad5f02d119
Merge pull request #18955 from maribu/core/mbox/fix-race
...
core/mbox: fix race condition
2022-11-23 13:09:13 +01:00
Marian Buschsieweke
232c70ba53
Merge pull request #18948 from maribu/boards/common/nrf52
...
boards/common/nrf52: fix timer config
2022-11-23 10:47:26 +01:00
Marian Buschsieweke
42b9334784
core/mbox: fix race condition
...
The mbox code contains a race condition in `mbox_put()`: When it
waits for a slot in the queue to become available, it is woken up with
IRQs enabled. It disables IRQs again as first thing, but by then
another thread may already have preempted the running thread and filled
the queue back up. In this case, a message in the queue would be
silently overwritten.
2022-11-22 22:35:13 +01:00
Jue
3da1faca90
cpu/nrf5x/uart: run STOPTX task after finished tx
...
This reduces power consumption for UARTs that are configured in tx-only mode.
2022-11-22 21:33:14 +01:00
Jue
a7e2182bb0
cpu/nrf5x/timer: run task SHUTDOWN instead of STOP
...
This is a workaround for errata 78 that causes increased current consumption even in the stopped state.
2022-11-22 19:15:31 +01:00
Marian Buschsieweke
22f882d335
tests/pkg_utensor: increase main threads stack size
...
The MPU based stack guard is very unpleased by the stack overflow
happening during the test. The increase in stack size makes the MPU
stack guard happy again.
2022-11-22 18:55:19 +01:00
Juergen Fitschen
97bc8252d9
Merge pull request #18920 from jue89/fix/sam0_rtt_rtc
...
sam0/rtc_rtt: optimizations to get around the painful long syncwaits
2022-11-22 18:12:06 +01:00
Marian Buschsieweke
747ee9d56f
sys/net/grnc/netreg: avoid freeing wild pointers
...
When freeing any stale pktsnips from stale messages in the mbox, make
sure that the messages actually contains a pktsnip before freeing.
2022-11-22 17:57:44 +01:00
Juergen Fitschen
ab86198112
boards/xg23-pk6068a: add ADC lines
2022-11-22 14:44:56 +01:00
Juergen Fitschen
18e9167c73
cpu/efm32/adc: add support for Gecko Series 2
...
Series 2 features IADCs instead of ADCs.
2022-11-22 14:44:56 +01:00
Juergen Fitschen
35a84d29b2
Merge pull request #18946 from jue89/feature/efm32-uart-mode
...
cpu/efm32: add periph_uart_modecfg support for Gecko Series 2
2022-11-22 14:40:48 +01:00
Marian Buschsieweke
b533fcf543
cpu/nrf5x_common: improve doc on timer_conf_t::channels
2022-11-22 13:43:05 +01:00
Karl Fessel
d301de4365
shell/cmds: add missing includes for ARRAY_SIZE
2022-11-22 13:39:35 +01:00
Karl Fessel
d46b56933d
drivers/sht1x: add missing include for ARRAY_SIZE
2022-11-22 13:39:35 +01:00
Karl Fessel
54ada3685a
tests: add missing includes
2022-11-22 13:39:35 +01:00
Karl Fessel
af8589059e
sys/includes: replace kernel_defines.h
2022-11-22 13:39:35 +01:00
Karl Fessel
dd9c3ba362
includes/net: replace "kernel_defines.h"
2022-11-22 13:39:35 +01:00
Karl Fessel
b70d6c7fd7
gnrc/include: replace kernel_defines.h
2022-11-22 13:39:35 +01:00
Karl Fessel
768451bf09
sys/include: remove kernel_defines.h where not needed
2022-11-22 13:39:35 +01:00
Marian Buschsieweke
51b6379dee
boards/common/nrf52: fix timer config
...
The `channels` member should not be set to the number of hardware
channels *n*, but to *n* - 1 instead. The last channel is implicitly
used in `timer_read()`. Hence out of *n* hardware channels, only *n* - 1
are available to the application.
This fixes a bug introduced by 4d02e15247
which incorrectly set the channel number to *n* rather than to
*n* - 1.
2022-11-22 13:20:53 +01:00
benpicco
0621150bf0
Merge pull request #18884 from kfessel/p-macro-maybe-unused
...
core/lib: define MAYBE_UNUSED
2022-11-22 12:54:36 +01:00
benpicco
2be0276cd3
Merge pull request #18943 from maribu/tests/pbkdf2
...
tests/pbkdf2: remove unused #include
2022-11-22 12:53:52 +01:00
Benjamin Valentin
8a11ca2f87
nanocoap: don't hide coap_request_ctx_t content
2022-11-22 10:41:32 +01:00
Benjamin Valentin
fd42f72b20
tests/nanocoap_cli: provide coap_request_ctx_t
2022-11-22 10:41:32 +01:00
Marian Buschsieweke
54b0100c44
Merge pull request #18945 from dylad/pr/vscode_import_riot_styles
...
.vscode: import initial RIOT-OS style
2022-11-22 07:02:33 +01:00
Jue
8d6d6f2bbc
ztimer: add benchmarking tool
2022-11-22 00:25:34 +01:00
Jue
2b53f35a28
ztimer: warn users when calling ztimer_now() on inactive clocks
2022-11-22 00:25:34 +01:00
Jue
96b7988511
ztimer/periodic: acquire resp. release used ztimer clock
2022-11-22 00:25:34 +01:00
Jue
bf5dd34deb
ztimer/overhead: acquire and release clocks
...
The start/stop overhead that might by introduced by ztimer_acquire() and ztimer_release() called during ztimer_set() resp. ztimer_handler() should not be mesured here. It has its own adjustment field.
Furthermore, the overhead mesaurement uses ztimer_now(). It is allowed to called it only after the clock has been acquired.
2022-11-22 00:25:34 +01:00
Juergen Fitschen
88a9f4b8f9
ztimer: add on_demand_strict
...
Enforce ztimer_clock_t to be active (i.e. clock->users > 0) before ztimer_now() can be called.
2022-11-22 00:25:34 +01:00
Juergen Fitschen
a1ee7a5e05
ztimer/periph_rtt: add start() and stop() ops
2022-11-22 00:25:34 +01:00
Juergen Fitschen
d22e078118
ztimer/periph_rtc: add start() and stop() ops
2022-11-22 00:25:34 +01:00
Jue
5818e5e452
ztimer/periph_timer: add start() and stop() ops
2022-11-22 00:25:34 +01:00
Juergen Fitschen
90b2f3158c
ztimer/convert: pass-thru start/stop ops to lower timer
2022-11-22 00:25:34 +01:00
Jue
9fbb4d3391
ztimer/convert: only extend the clocks if ztimer_ondemand isn't used
2022-11-22 00:25:34 +01:00
Jue
4013dff1fd
ztimer: acquire and release clock for running timers
2022-11-22 00:25:34 +01:00
Jue
a228ca7548
ztimer: introduce ztimer_acquire() and ztimer_release()
2022-11-22 00:25:34 +01:00
Jue
2a81a2ab5c
cpu/efm32: provide periph_uart_modecfg feature for every board
2022-11-21 23:20:19 +01:00
Jue
80b491d7dd
cpu/efm32/uart: add modecfg support for Gecko Series 2
2022-11-21 23:17:52 +01:00
Dylan Laduranty
d99885496b
.vscode/settings.json: import initial RIOT-OS style
...
Signed-off-by: Dylan Laduranty <dylan.laduranty@mesotic.com>
2022-11-21 21:31:12 +01:00
Dylan Laduranty
069ad929c2
.gitignore: ignore all files within .vscode/ except user's settings
...
Signed-off-by: Dylan Laduranty <dylan.laduranty@mesotic.com>
2022-11-21 21:30:28 +01:00
Marian Buschsieweke
b1da8168b5
tests/pbkdf2: remove unused #include
2022-11-21 16:42:00 +01:00