fix(trainer): SBUS trainer context ownership (#7699)

Co-authored-by: raphaelcoeffic <1050031+raphaelcoeffic@users.noreply.github.com>
This commit is contained in:
Raphael Coeffic
2026-08-26 13:06:17 +10:00
committed by GitHub
co-authored by raphaelcoeffic
parent fcd4b8d2e4
commit 878f414975
8 changed files with 152 additions and 44 deletions
+9
View File
@@ -45,6 +45,15 @@ void initSerialPorts();
void serialInit(uint8_t port_nr, int mode);
void serialStop(uint8_t port_nr);
#if !defined(BOOT)
// Serial port configured as SBUS trainer input (inverted or not), or -1
int serialGetSbusTrainerPort();
// Fetch the driver instance backing a serial port. False if not initialised.
bool serialGetPortCtx(uint8_t port_nr, void** ctx,
const etx_serial_driver_t** drv);
#endif
//
// Functions used by debug.h
//