Marian Buschsieweke
787884aa95
cpu/atmega_common/periph_timer: fix spurious IRQs
2022-11-25 14:46:16 +01:00
Jose Alamos
5a865c3a6b
drivers/at86rf2xx: add HAVE_RETRIES_REG macro
2022-11-25 14:01:44 +01:00
Jose Alamos
22c6d0242a
drivers/at86rf2xx: add HAVE_ED_REGISTER macro
2022-11-25 14:01:44 +01:00
Jose Alamos
82d3324e63
drivers/at86rf2xx: add HAVE_SUBGHZ macro
2022-11-25 14:01:44 +01:00
Jose Alamos
58ce0743c6
drivers/at86rf2xx: add TX_START macro
2022-11-25 14:01:43 +01:00
Jose Alamos
b6b8dc1958
drivers/at86rf2xx: add AT86RF2XX_IS_PERIPH macro
2022-11-25 14:01:39 +01:00
Marian Buschsieweke
496abf0a4e
tests/periph_timer: also test for spurious IRQs
...
Previously the test only checked if IRQs fired when expected. This
extends the test to also check that IRQs do not fire when not expected.
2022-11-25 12:33:54 +01:00
Marian Buschsieweke
e7ee53e6ed
tests/periph_timer: fix style and use of volatile
...
To synchronize communication via shared memory between ISR context and
thread context it is a common misconception that `volatile` is
sufficient. This is however is not the cause and the cause of many
subtle data race bugs. This fixes the issue.
2022-11-25 12:33:54 +01:00
f1a8e1f636
Merge pull request #18970 from maribu/cpu/nrf5x_common/periph_timer/fix_spurious_irqs
...
cpu/nrf5x_common/periph_timer: fix spurious IRQs
2022-11-25 08:23:34 +01:00
Marian Buschsieweke
c89c75dbc9
Merge pull request #18971 from maribu/cpu/esp
...
cpu/esp{32,8266}/periph_timer: allow changing callback or freq
2022-11-25 08:22:26 +01:00
Marian Buschsieweke
cf93e9e0e3
Merge pull request #18969 from maribu/cpu/stm32/periph_timer/fix_spurious_irqs
...
cpu/stm32/periph_timer: fix spurious IRQs and race conditions
2022-11-25 08:11:37 +01:00
Marian Buschsieweke
03b7fe8f0c
cpu/esp8266/periph_timer: allow changing callback or freq
...
Allow multiple calls to timer_init(), as this is the only way to
change the timer frequency or the callback function.
2022-11-24 22:39:49 +01:00
Marian Buschsieweke
e8fd65566a
cpu/esp32/periph_timer: allow changing callback or freq
...
Allow multiple calls to timer_init(), as this is the only way to
change the timer frequency or the callback function.
2022-11-24 22:38:15 +01:00
Marian Buschsieweke
fbd7b77331
cpu/nrf5x_common/periph_timer: fix spurious IRQs
2022-11-24 22:36:42 +01:00
Marian Buschsieweke
20fc71dd65
cpu/stm32/periph_timer: fix spurious IRQs
2022-11-24 22:34:10 +01:00
Marian Buschsieweke
93c5755649
cpu/stm32/periph_timer: fix race conditions
...
Allow two threads to share the same timer - provided they use distinct
sets of timer channels - without occasionally corrupting registers or
state flags.
2022-11-24 22:34:03 +01:00
Benjamin Valentin
59a3e613fe
cpu/cortexm_common: measure time spent with IRQ disabled
2022-11-24 21:27:20 +01:00
Benjamin Valentin
8145c42955
debug_irq_disable: add module to debug time spent in irq_disable
2022-11-24 21:27:20 +01:00
Marian Buschsieweke
26d5b7ca0b
Merge pull request #18839 from chrysn-pull-requests/rust-use-stable
...
rust: Use stable Rust
2022-11-24 20:41:51 +01:00
Juergen Fitschen
6aa00b84a1
Merge pull request #18966 from jue89/fix/typos
...
treewide: fix typos found by recent codespell
2022-11-24 16:21:44 +01:00
Juergen Fitschen
d9cde14669
treewide: fix typos found by recent codespell
2022-11-24 14:53:48 +01:00
Marian Buschsieweke
020c6ff69c
Merge pull request #18954 from jue89/fix/nrf5x-uart-lowpower
...
cpu/nrf5x/uart: run STOPTX task after finished tx
2022-11-24 14:20:58 +01:00
956472fb44
CI: implement quick build logic
2022-11-24 11:58:21 +01:00
Juergen Fitschen
a6ff838a4b
Merge pull request #18933 from jue89/feature/cpu_efm32_series_2_adc
...
cpu/efm32: add periph_adc support for Gecko Series 2
2022-11-24 11:32:56 +01:00
chrysn
75836268e6
doc/rust: Nightly is not needed any more
2022-11-24 11:07:45 +01:00
chrysn
05b4749ae7
rust: Run all examples on stable
...
This is possible starting with Rust 1.65.
2022-11-24 11:07:45 +01:00
Marian Buschsieweke
778f566210
Merge pull request #18958 from benpicco/boards/pwm-style
...
boards/sam*-xpro: fix style of PWM config
2022-11-24 07:32:40 +01:00
Erik Ekman
d2b134a0be
pkg/lwip: Force loglevel when using log module
...
lwIP has already used its own log level when deciding what to print.
If we reach the LWIP_PLATFORM_DIAG message no further filtering should
happen, so set the log level to match the macro used.
This fixes the missing IP addresses from ifconfig. Before:
> ifconfig
Iface ET0 HWaddr: 24:0a:c4:e6:0e:9f Link: up State: up
Link type: wired
inet addr: mask: gw:
inet6 addr: scope: link state: valid preferred
inet6 addr: scope: global state: valid preferred
Iface ET1 HWaddr: 24:0a:c4:e6:0e:9c Link: up State: up
Link type: wireless
inet addr: mask: gw:
inet6 addr: scope: link state: valid preferred
inet6 addr: scope: global state: valid preferred
>
With this change:
> ifconfig
Iface ET0 HWaddr: 24:0a:c4:e6:0e:9f Link: up State: up
Link type: wired
inet addr: 10.4.4.81 mask: 255.255.254.0 gw: 10.4.4.1
inet6 addr: fe80:0:0:0:260a:c4ff:fee6:e9f scope: link state: valid preferred
inet6 addr: 2001:db8:0:0:260a:c4ff:fee6:e9f scope: global state: valid preferred
Iface ET1 HWaddr: 24:0a:c4:e6:0e:9c Link: up State: up
Link type: wireless
inet addr: 10.4.4.86 mask: 255.255.254.0 gw: 10.4.4.1
inet6 addr: fe80:0:0:0:260a:c4ff:fee6:e9c scope: link state: valid preferred
inet6 addr: 2001:db8:0:0:260a:c4ff:fee6:e9c scope: global state: valid preferred
>
2022-11-23 23:04:14 +01:00
benpicco
ab342d02a2
Merge pull request #17870 from HendrikVE/pr/examples/gcoap/replace_by_sock_udp_name2ep
...
examples/gcoap: replace _parse_endpoint by sock_udp_name2ep
2022-11-23 20:37:30 +01:00
benpicco
e6284ec244
Merge pull request #18816 from benpicco/nanocoap_handle_req-ctx
...
nanocoap: add request context to coap_handle_req()
2022-11-23 20:36:50 +01:00
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