1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-25 06:23:53 +01:00

8877 Commits

Author SHA1 Message Date
Marian Buschsieweke
6c0d7fcdbb
cpu/nrf5x_common: fix uart_poweroff()
Previously, uart_poweroff() and uart_poweron() were no-ops. This
replaces them with the logic to indeed power on and power off the UART
device.

Co-authored-by: crasbe <crasbe@gmail.com>
2025-04-28 11:53:21 +02:00
Marian Buschsieweke
8e904a0ccb
cpu/esp32: add workaround for mpaland-printf
When mpaland-printf is used, we do not want to have references to
newlib's stdio in the resulting binary.
2025-04-26 15:28:18 +02:00
Marian Buschsieweke
6290516399
Merge pull request #21360 from maribu/cpu/samd5x/can/expose-config
cpu/samd5x/periph_can: Expose more CAN controller configs
2025-04-17 08:51:47 +00:00
Teufelchen
852895f1ff
Merge pull request #21269 from AnnsAnns/picotool
Tools: Switch from elf2uf2 to modern picotool
2025-04-16 13:53:42 +00:00
AnnsAnn
0ea40d2757 dist/tools, boards/rpi-pico*: replace elf2uf2 with picotool
Replace elf2uf2 usage with picotool, fix compilation when arm g++ is installed, adjust documentation to new workflow, picotool udev warning (thanks to crasbe)
2025-04-16 12:19:17 +02:00
Marian Buschsieweke
4ce7ab2133
tree-wide: fix documentation issues
This should fix compilation with -Wdocumentation on LLVM.
2025-04-10 13:37:13 +02:00
Marian Buschsieweke
9a633436ab
cpu/native: configure FD-CAN loop delay
The native CAN implementation relies on the underlying OS to implement
CAN, so we can leave handling the nitty-gritty details such as the loop
delay to the underlying implementation.
2025-04-09 13:10:06 +02:00
benpicco
623f865ceb
Merge pull request #21144 from gschorcht/dist/tools/esptools/bump_gcc_version_to_14_2
dist/tools/esptools: Upgrade the ESP32 toolchain to GCC v14.2, GDB v14.2 and OpenOCD v0.12
2025-04-08 07:58:06 +00:00
Marian Buschsieweke
5926a7d3ec
cpu/samd5x/periph_can: allow starting in monitor mode
Allowing to configure the CAN controller to start in monitor mode right
away reduces the risk to change traffic (e.g. by sending an ACK)
between initialization and the switch to monitor mode, if intneded to
be a passivle listnener only.
2025-04-08 07:29:00 +02:00
Marian Buschsieweke
0e44951dcb
cpu/samd5x/periph_can: allow specifying initial bitrate
Being able to specify the bitrate from the peripheral config makes
a lot more sense than starting up the CAN with an incorrect bitrate and
letting the app change it later on.
2025-04-08 07:28:59 +02:00
Marian Buschsieweke
3532ceca91
cpu/samd5x/periph_can: Implement monitoring mode
This implements the missing monitoring mode.
2025-04-08 07:28:58 +02:00
Marian Buschsieweke
34c34d9a24
cpu/samd5x/periph_can: Make TXP configurable
Allow the board to configure whether the transmit pause feature of the
CAN controller should be used or not.

The default is to not enable transmit pause feature for consistency with
other CAN controllers. For many use cases enabling the transmit pause is
the better option though, as it will only slightyly decrease the maximum
throughput by inserting a 2 bit time pause between two subsequent
frames to send. The benefit is that it will ensure that nodes on the CAN
bus with a lower priority (according to their CAN ID) will not starve,
effectively prevending the "Babbling Idot Syndrome".
2025-04-08 07:28:58 +02:00
Marian Buschsieweke
cd42e4355b
cpu/samd5x/periph_can: Make DAR configurable
Allow the board to configure whether automatic retransmission is to be
used or disabled.

This also changes the default to enabling automatic retransmission, as
this is the best choice for most use cases.
2025-04-08 07:28:57 +02:00
Gunar Schorcht
0067f69d0b dist/tools/esptools: bump to QEMU version 9.0.0 2025-04-08 07:19:18 +02:00
Karl Fessel
c44f01a4b3
Merge pull request #21173 from kfessel/p-sam-caninit
cpu/samd5x: improve can-initialization
2025-04-05 18:13:31 +00:00
Marian Buschsieweke
c1aee234ee
Merge pull request #21357 from maribu/tree-wide/dox-fixes
tree wide: various doc fixes
2025-04-05 17:57:43 +00:00
Marian Buschsieweke
1ff982a664
tree wide: various doc fixes
This fixes a batch of incorrect Doxygen comments that building with
LLVM/clang and `-Wdocumentation` uncovered.
2025-04-04 11:44:53 +02:00
crasbe
8a76cee6c5
Merge pull request #20971 from crasbe/pr/stm32_adc
cpu/stm32: Make ADC Resolution Definition uniform
2025-04-02 22:30:52 +00:00
crasbe
1d3939d882 cpu/stm32: make ADC resolution uniform 2025-04-02 22:45:35 +02:00
crasbe
596670bdde cpu/stm32f2: fix sampling time for VBat 2025-04-02 21:38:29 +02:00
Marian Buschsieweke
4f676cd318
Merge pull request #21238 from crasbe/pr/fix_stm32wl_adc
cpu/stm32{f3,l4,wb,wl}: Replace ztimer with busy_wait, fix VBat sampling time and {wl only} fix initialization sequence
2025-04-02 16:42:13 +00:00
crasbe
112e542923 cpu/stm32{f3,l4,wb,wl}: increase sampling time for VBat line 2025-04-02 16:53:33 +02:00
crasbe
f1a102bb87 cpu/stm32wl: fix ADC initialization sequence 2025-04-02 16:53:33 +02:00
Marian Buschsieweke
b1932dd1f5
Merge pull request #21230 from crasbe/pr/stm32f0g0c0_adc
cpu/stm32{f0,g0,c0}: fix ADC initialization sequence
2025-04-02 12:56:35 +00:00
benpicco
85dc9be1c9
Merge pull request #20872 from benpicco/stdio_null-frontend
core: add stdio.h to replace stdout functions with stdio_null
2025-04-01 15:30:08 +00:00
Benjamin Valentin
f840d80473 cpu/avr8_common: don't implement perror() with stdio_null 2025-04-01 14:29:28 +02:00
Benjamin Valentin
8c25666267 cpu/native: don't implement stdout functions with stdio_null 2025-04-01 14:29:28 +02:00
Mihai Renea
f6b99603db Revert "cpu/sam0_common: flashpage: don't disable interruipts while writing"
This reverts commit fd49d16cbab8f9046374f07d2008c0fb2d2593ea.
2025-03-26 11:12:01 +01:00
Marian Buschsieweke
9b417c35c1
Merge pull request #21313 from maribu/cpu/native/async_io/missing-include
cpu/native: add missing include
2025-03-21 21:01:38 +00:00
Marian Buschsieweke
56a553f80d
cpu/native: add missing include
`pid_t` is provided e.g. by `<sys/types.h>`. It seems that on glibc,
`<stdlib.h>` will also provide `pid_t`. But this way it should work on
both musl and glibc.
2025-03-21 21:24:24 +01:00
mguetschow
f3dbed405e
Merge pull request #21294 from benpicco/stdio_default
boards: introduce `stdio_default`
2025-03-21 11:46:27 +00:00
Benjamin Valentin
233a62b792 boards: move to stdio_default 2025-03-20 16:10:09 +01:00
Benjamin Valentin
171d5ff315 cpu/arm7tdmi_gba: make use of stdio_default 2025-03-20 16:10:08 +01:00
benpicco
a756dcf1c9
Merge pull request #19213 from benpicco/socket_zep_hal-fix
socket_zep: properly implement the radio HAL
2025-03-20 08:30:12 +00:00
Benjamin Valentin
45c6d786f6 socket_zep: simulate RSSI 2025-03-20 02:04:34 +01:00
Benjamin Valentin
460901aa00 socket_zep: properly implement the radio HAL 2025-03-20 02:04:34 +01:00
Marian Buschsieweke
685acb9a35
Merge pull request #21293 from MrKevinWeiss/pr/fixsplling
Fix spelling found by codespell
2025-03-13 13:07:53 +00:00
MrKevinWeiss
f770f72202
treewide: Fix spelling mistakes 2025-03-13 13:59:07 +01:00
Benjamin Valentin
4889bb57d9 cpu/native: port stdio to new interface 2025-03-13 00:50:46 +01:00
Benjamin Valentin
4232eb35ae cpu/native: async_read: make sure not to close stdin on reboot 2025-03-13 00:24:09 +01:00
Benjamin Valentin
333e1ea97d cpu/native: bump ASYNC_READ_NUMOF 2025-03-13 00:24:07 +01:00
Benjamin Valentin
bfe42ad20a cpu/native: use async read for stdio_read()
The real_read() function will block the thread but won't preempt it.
That means all other thereads on the same (or higher) priority level
are blocked as RIOT still consideres the thread that called stdio_read()
as running.

Use async_read/isrpipe to properly block the thread when reading from
stdin.
2025-03-13 00:23:40 +01:00
benpicco
a042d66e68
Merge pull request #21283 from carl-tud/native-gardening
cpu/native: Gardening/QoL
2025-03-12 17:54:07 +00:00
Marian Buschsieweke
571a87358d
cpu/samd5x/periph_can: fix use of format specifiers
Use correct format specifiers to make clangd happy.
2025-03-12 16:05:41 +01:00
crasbe
05eda72e96 cpu/stm32{f0,g0,c0}: fix ADC initialization sequence 2025-03-12 13:49:45 +01:00
crasbe
768989ca6f cpu/stm32{f3,l4,wb,wl}: replace ztimer w/ busy_wait for uncrit. delay 2025-03-12 13:20:33 +01:00
Marian Buschsieweke
d9ab9585d9
cpu/samd5x: add enable pin to CAN configuration
This extends the `can_conf_t` CAN configuration to allow power
management of the CAN transceiver to be done by the CAN driver.
2025-03-11 21:17:05 +01:00
carl
9cad51126e cpu/native: add missing signal.h import 2025-03-11 16:19:39 +01:00
carl
e95be58fb9 cpu/native: rename native_cpu.c, irq_cpu.c, tramp.S 2025-03-11 16:19:39 +01:00
carl
6e5260c2d5 cpu/native: enable 64-bit thread arguments 2025-03-11 16:19:39 +01:00