0
0
Fork 0

Implement UART I/O protocol

This commit is contained in:
Jannik Beyerstedt 2026-07-20 11:58:44 +02:00
commit 4d7bef58a1
11 changed files with 610 additions and 36 deletions

View file

@ -34,11 +34,11 @@ esp = [
std = ["c-its-parser/std"]
# enable L67K GNSS module
gnss = ["dep:embassy_gps"]
gnss = ["_gnss", "dep:embassy_gps"]
# echo CAM data on serial
cam = ["c-its-parser/cam"]
# send CAM autonomously
cam_tx = ["c-its-parser/cam", "gnss"]
cam_tx = ["c-its-parser/cam"]
# echo DENM events on serial and BLE
denm = ["c-its-parser/denm"]
# evaluate SPAT information
@ -47,9 +47,13 @@ spat = ["c-its-parser/spatem", "c-its-parser/mapem"]
spat_debug = []
# enable ST7789 based display
screen = ["dep:mipidsi", "dep:embedded-graphics", "dep:embedded-hal-bus", "dep:profont"]
# enable I/O via UART
uart = ["_uart", "_gnss", "dep:prost"]
# internal feature, that any UART I/O is enabled
_uart = []
# internal feature, that any GNSS source is enabled
_gnss = []
[dependencies]
esp-hal = { version = "~1.1.0", optional = true, features = ["esp32c5", "log-04", "unstable"] }
@ -102,7 +106,7 @@ geo-types = { version = "0.7.19", default-features = false }
mipidsi = { version = "0.10.0", optional = true }
num-traits = { version = "0.2.19", default-features = false, features = ["libm"] }
profont = { version = "0.7.0", optional = true }
prost = { version = "0.14", default-features = false, features = ["derive"] }
prost = { version = "0.14", optional = true, default-features = false, features = ["derive"] }
[dev-dependencies]
assert_float_eq = "1.2.0"