0.4.0: builds on Zephyr 4.5 as well as 4.4

Zephyr 4.5 made uart_irq_update() return void, and the receive
interrupt used it as its loop condition, so 0.3.0 does not compile on
4.5. It is now called at the top of each pass, as Zephyr's own samples
do.

From 4.5 the ring buffer is header-only, and CONFIG_RING_BUFFER brings
back the deprecated legacy implementation. CONFIG_RB9704 selects it only
when KERNELVERSION is below 4.5. The rig bridge reads its ring with
ring_buf_peek() and ring_buf_get() in place of the claim API, and gates
the option the same way in a Kconfig of its own.

Tested on v4.4.0 and v4.5.0: 37 pass and 2 skip against the fake on
native_sim, and the sample, rigs and bridges build for every board.

Also in this release, from main since 0.3.0: rbtest in the shell sample,
rb9704_send_fill, and the Stamp-C3 overnight run. The README has a
section on the Zephyr versions; the standalone manifest pins v4.5.0;
the Python tools are 0.4.0.
This commit is contained in:
scottp committed 2026-11-26 16:21:03 +11:00
1 parent 144efe683e
commit acd4263a06
11 files changed
+96 -14

No files matched your search

+11 -1
View File
@@ -6,7 +6,7 @@ menuconfig RB9704
default y
depends on DT_HAS_ROCK7_ROCKBLOCK_9704_ENABLED
depends on SERIAL
select RING_BUFFER
select RING_BUFFER if RB9704_ZEPHYR_BEFORE_4_5
select UART_INTERRUPT_DRIVEN
help
Ground Control's RockBLOCK 9704 (Iridium Certus, IMT messages) on the
@@ -16,6 +16,16 @@ menuconfig RB9704
if RB9704
# Zephyr 4.5 made the ring buffer header-only, and CONFIG_RING_BUFFER there
# brings back the deprecated legacy implementation. Before 4.5 it is what
# builds the ring buffer at all. KERNELVERSION is 0xMMmmpp00.
config RB9704_KERNEL_VERSION
hex
default "$(KERNELVERSION)"
config RB9704_ZEPHYR_BEFORE_4_5
def_bool RB9704_KERNEL_VERSION < 0x4050000
config RB9704_MESSAGE_MAX
int "Largest message in either direction (bytes)"
default 2048