fix(trainer): SBUS trainer context ownership (#7699)
Co-authored-by: raphaelcoeffic <1050031+raphaelcoeffic@users.noreply.github.com>
This commit is contained in:
co-authored by
raphaelcoeffic
parent
fcd4b8d2e4
commit
878f414975
@@ -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
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user