Workaround for some compilers configured to treat warnings as errors causing compilation failure.

Added $PORTS command for listing serial ports, later I will update all drivers to provide the optional information.
Potential fix for polar kinematics not handling axes > 3 correctly, needs testing. Ref. issue #820.
This commit is contained in:
Terje Io
2025-10-04 20:17:22 +02:00
parent 7db744f04a
commit 132159a6b6
11 changed files with 163 additions and 36 deletions
+11
View File
@@ -308,13 +308,22 @@ typedef struct {
vfs_file_t *file; //!< File handle, non-null if streaming from a file.
} io_stream_t;
typedef struct {
io_stream_state_t state; //!< Optional status flags such as connected status.
io_stream_flags_t flags; //!< Handler for getting stream connected status.
uint32_t baud_rate;
serial_format_t format;
} io_stream_status_t;
typedef const io_stream_t *(*stream_claim_ptr)(uint32_t baud_rate);
typedef const io_stream_status_t *(*stream_get_status_ptr)(uint8_t instance);
typedef struct {
stream_type_t type; //!< Type of stream.
uint8_t instance; //!< Instance of stream type, starts from 0.
io_stream_flags_t flags;
stream_claim_ptr claim;
stream_get_status_ptr get_status; //!< Optional handler for getting stream status, for UART streams only
} io_stream_properties_t;
typedef bool (*stream_enumerate_callback_ptr)(io_stream_properties_t const *properties);
@@ -411,6 +420,8 @@ const io_stream_t *stream_get_base (void);
io_stream_flags_t stream_get_flags (io_stream_t stream);
const io_stream_status_t *stream_get_uart_status (uint8_t instance);
const io_stream_t *stream_null_init (uint32_t baud_rate);
io_stream_t const *stream_open_instance (uint8_t instance, uint32_t baud_rate, stream_write_char_ptr rx_handler, const char *description);