Marian Buschsieweke
7f27e6cc7f
boards/gd32vf103c-start: new board
...
This adds support for the GD32VF103C-START, the official "starter board"
for the GD32VF103C MCU by the MCU vendor.
2024-01-19 23:17:35 +01:00
Marian Buschsieweke
9fbb23b167
boards/common/gd32v: make common OpenOCD config opt-in
...
Let boards explicitly use the common OpenOCD config if it works for
them, rather than having boards with specific needs opt out.
2024-01-19 23:17:35 +01:00
Marian Buschsieweke
8b1c43afb0
cpu/gd32v: Allow configuration of SWJ_CFG
...
Expose the compile time configuration knob `CONFIG_AFIO_PCF0_SWJ_CFG`
to allow freeing some/all JTAG pins and use them as GPIOs.
As default, PB4 is remapped from NJTRST to be usable as regular GPIO.
This still allows using the JTAG interface for debugging/flashing,
but makes an GPIO exposed by some boards available.
2024-01-19 23:17:35 +01:00
Marian Buschsieweke
3b5ed6d390
cpu/gd32v: Fix periph_pwm
...
The API doc clearly states that arbitrary high PWM frequencies can
be requested and the driver should reduce the frequency while keeping
the resolution, when required. So change the code to just do that
rather than blowing assertions.
2024-01-17 21:58:56 +01:00
Marian Buschsieweke
93aa9e1e0d
makefiles/tools/serial.inc.mk: Improve MOST_RECENT_PORT=1 handling
...
When `stdio_cdc_acm` is used, prefer selecting the USB devices with
vendor `RIOT-os.org` and model `$(BOARD)` and only fall back
to `$(TTY_BOARD_FILTER)` if no such TTY was found.
This makes it possible to add a TTY board filter matching only an
integrated USB to UART bridge, but still do the right thing when
the user explicitly uses `stdio_cdc_acm` instead of the default
`stdio_uart`.
2024-01-17 21:58:56 +01:00
Marian Buschsieweke
f22fc0080b
boards/common/gd32v: Allow overwriting OPENOCD_TRANSPORT
2024-01-17 09:16:26 +01:00
Marian Buschsieweke
d674b3a80c
makefiles/tools/openocd.inc.mk: Improve transport handling
...
Allow setting `OPENOCD_TRANSPORT` to `default` for when a transport to
not explicitly set the transport. This is useful when the target or
interface script already specify the transport.
2024-01-17 09:14:38 +01:00
mguetschow
084dedcca7
Merge pull request #20116 from bergzand/pr/sha256/no_static
...
hashes/sha2{24,56}: Remove static variables from sha256
2024-01-16 16:01:56 +00:00
benpicco
c1ae2ecb9f
Merge pull request #20259 from fabian18/pr/gnrc/ipv6/nib_rejoin_ip6_mcast
...
gnrc/ipv6/nib: rejoin ipv6_addr_all_nodes_link_local on interface up
2024-01-16 15:11:53 +00:00
434e5647d0
hashes/sha224: Remove static variables from sha224
2024-01-16 16:00:44 +01:00
bac3f48dc9
hashes/sha256: Remove static variables from sha256
...
This removes the static (thread-unsafe) variables from sha256 and
hmac_sha256 to remove a potential footgun. The static variable is only
used when the caller does not supply a pointer to store the digest and
it is returned via the (undocumented) return value.
This commit removes this option and makes the digest argument mandatory.
2024-01-16 16:00:39 +01:00
Fabian Hüßler
ab3f77e673
gnrc/ipv6/nib: rejoin ipv6_addr_all_nodes_link_local on interface up
2024-01-16 12:34:37 +01:00
fbae38b416
Merge pull request #20260 from maribu/dist/tools/zsh-completion
...
dist/tools/zsh-completion: fix typo
2024-01-16 07:43:53 +00:00
Marian Buschsieweke
c823412f31
dist/tools/zsh-completion: fix typo
...
This fixes a typo in a description.
2024-01-16 08:01:11 +01:00
Marian Buschsieweke
6c66d6b554
Merge pull request #20256 from fzi-haxel/pr/tests-fib-fix
...
unittests/tests-fib: Fix array size types
2024-01-15 20:25:11 +00:00
Marian Buschsieweke
0eabef740a
Merge pull request #20258 from benpicco/use_busy_wait
...
drivers: make use of busy_wait()
2024-01-15 14:08:34 +00:00
Benjamin Valentin
1e1244042e
drivers/mtd_spi_nor: make use of busy_wait()
2024-01-15 14:56:35 +01:00
Benjamin Valentin
9d70fbf2e1
cpu/sam0_common: SDHC: make use of busy_wait()
2024-01-15 14:30:56 +01:00
benpicco
8ba210e6f6
Merge pull request #20250 from maribu/dist/tools/zsh-completion
...
dist/tools/zsh-completion: add completion for flash
2024-01-15 12:10:29 +00:00
Frederik Haxel
64c551a714
unittests/tests-fib: Fix array size types
...
Reverts the type changes for the array size variables, as `size_t` is needed
in the function calls `fib_get_next_hop` and `fib_get_destination_set`.
Fixes 475a55136a
2024-01-15 11:26:36 +01:00
Marian Buschsieweke
8008bb435d
dist/tools/zsh-completion: add completion for flash
...
Also complete and explain `PROGRAMMER=`, `OPENOCD_DEBUG_ADAPTER=`, and
`OPENOCD_RESET_USE_CONNECT_ASSERT_SRST=` when using zsh.
Co-authored-by: benpicco <benpicco@googlemail.com>
2024-01-14 17:49:33 +01:00
benpicco
f7d018c355
Merge pull request #20252 from maribu/tools/openocd-rtt/debug
...
tools/openocd-rtt: also open GDB port
2024-01-13 21:05:09 +00:00
benpicco
57994daa46
Merge pull request #20251 from maribu/boards/e180-zg120b-tb/openocd
...
boards/e180-zg120b-tb: add support for OpenOCD
2024-01-13 20:41:50 +00:00
Marian Buschsieweke
4fc7700a0f
tools/openocd-rtt: also open GDB port
...
When using OpenOCD RTT (real-time transfer) for stdio with
`USEMODULE=stdio_rtt make ...`, it is no longer possible to debug
while being connected to stdio. By also opening gdb at RIOT's default
GDB port, `make debug-client` can be used to connect from GDB to the
OpenOCD instance providing stdio via RTT.
2024-01-13 12:47:37 +01:00
Marian Buschsieweke
f5a9e084c9
boards/e180-zg120b-tb: add support for OpenOCD
2024-01-13 12:03:15 +01:00
benpicco
c7dc3050db
Merge pull request #20249 from fzi-haxel/pr/size_t_format_fixes
...
print: Missing size_t print format specifiers
2024-01-13 08:51:14 +00:00
Frederik Haxel
291c89f1e7
sys/net/gnrc: Fixed wrong PRIuSIZE format specifier
2024-01-12 17:17:33 +01:00
Frederik Haxel
a6a6e31699
tests/unittests/tests-uri_parser: Added PRIuSIZE
2024-01-12 17:17:33 +01:00
Frederik Haxel
381cae6eb1
drivers: Added PRIuSIZE print format specifier
2024-01-12 17:17:33 +01:00
benpicco
ca1c09e382
Merge pull request #20248 from fzi-haxel/pr/bump_ccn_lite
...
pkg/ccn-lite: Bump version
2024-01-12 12:12:29 +00:00
benpicco
31da90ea7f
Merge pull request #20246 from benpicco/microkernel
...
doc/mainpage: don't claim to be a microkernel
2024-01-12 08:37:49 +00:00
benpicco
47b5eebf84
Merge pull request #20247 from benpicco/cpu/avr8-pm_layered
...
cpu/avr8_common: allow to build with !periph_pm
2024-01-11 21:02:28 +00:00
Benjamin Valentin
ce36ca50ab
core/panic: fix build with !periph_pm
2024-01-11 21:21:30 +01:00
Benjamin Valentin
7add6c2fcc
cpu/avr8_common: make pm_layered a DEFAULT_MODULE
...
This lets us disable it.
2024-01-11 21:14:43 +01:00
benpicco
0c80553534
Merge pull request #20244 from benpicco/sys/shell/cmds-version
...
sys/shell: add firmware version to version cmd
2024-01-11 17:56:40 +00:00
Benjamin Valentin
ca97f8ab2b
doc/mainpage: don't claim to be a microkernel
...
We are clearly not and this just sets wrong expectations.
2024-01-11 16:59:50 +01:00
Frederik Haxel
53c4a16b58
pkg/ccn-lite: Bump version
2024-01-11 16:09:45 +01:00
Benjamin Valentin
235d3f059c
boards/samd2x-xpro: enable riotboot
2024-01-11 14:38:35 +01:00
Benjamin Valentin
f932552b99
sys/shell: add firmware version to version cmd
2024-01-11 14:38:15 +01:00
benpicco
714958ad3c
Merge pull request #20241 from benpicco/busy_wait
...
sys/busy_wait: add busy wait helper
2024-01-11 12:19:31 +00:00
Benjamin Valentin
9cf1c47e86
tests/sys/busy_wait: add test for busy wait
2024-01-11 13:02:56 +01:00
benpicco
bb4c4ddf20
Merge pull request #20243 from benpicco/gnrc_ipv6_nib_pl_set-relax
...
gnrc/nib: allow prefix to be on-link without being used for address
2024-01-10 22:19:03 +00:00
Benjamin Valentin
fff9ff14da
cpu/esp32: add busy loop cycles for all sub-arches
2024-01-10 22:43:31 +01:00
Benjamin Valentin
8bcfe7b7b6
cpu/esp8266: ESP8266 needs 5 cycles per busy loop
2024-01-10 22:43:31 +01:00
Benjamin Valentin
5dc43bd62d
cpu/avr8_common: AVR-8 needs 7 cycles per busy loop
2024-01-10 22:43:31 +01:00
Benjamin Valentin
433438c924
gnrc/nib: allow prefix to be on-link without being used for address
2024-01-10 14:49:03 +01:00
Marian Buschsieweke
5fa94b5745
Merge pull request #20238 from benpicco/nanocoap_sock_fetch
...
nanocoap_sock: implement FETCH methods
2024-01-10 08:04:27 +00:00
benpicco
2e3037c3aa
Merge pull request #20240 from benpicco/cpu/atmega-no_thread
...
cpu/avr8_common: fix build with !core_thread
2024-01-09 22:13:30 +00:00
Benjamin Valentin
cb76cc17e9
cpu/native: fix build with !core_thread
2024-01-09 23:02:01 +01:00
Benjamin Valentin
79b51efc15
cpu/cortexm_common: Cortex M0/M23 needs 4 cycles/busy loop
2024-01-09 19:03:15 +01:00