feat: implement port find/probe and add platform description

Implement cel_serial_find_elrs_port() which enumerates serial ports
and matches descriptions against ELRS-related keywords (CP210, CH340,
FTDI, etc.). Implement cel_serial_open_probe() to try multiple baud
rates in order.

Add cel_serial_platform_get_description() for Windows (SetupAPI)
and POSIX (sysfs fallback). Wire setupapi into the Windows build.
Update serial tests with CMock expectations for the new functions.
This commit is contained in:
2026-06-14 21:39:18 +02:00
parent 4f0c62d41a
commit eaaaf710a2
8 changed files with 194 additions and 148 deletions
+7
View File
@@ -0,0 +1,7 @@
:cmock:
:mock_prefix: Mock
:when_no_prototypes: nothing
:weak: __attribute__((weak))
:plugins:
- :ignore_arg
- :expect_any_args