AP_SerialManager: allocate port IDs for scripting serial device ports

This commit is contained in:
Thomas Watson 2024-06-01 16:27:21 -05:00 committed by Peter Barker
parent 0ee787325a
commit 7fb65aece3
1 changed files with 3 additions and 0 deletions

View File

@ -71,6 +71,9 @@
#define AP_SERIALMANAGER_CAN_D1_PORT_1 41 // CAN_D1_UC_S1_*
#define AP_SERIALMANAGER_CAN_D2_PORT_1 51 // CAN_D2_UC_S1_*
// serial device simulation ports registered by AP_Scripting will use IDs starting at 61 for the first port
#define AP_SERIALMANAGER_SCR_PORT_1 61 // SCR_SDEV1_*
// console default baud rates and buffer sizes
#ifdef DEFAULT_SERIAL0_BAUD
#define AP_SERIALMANAGER_CONSOLE_BAUD DEFAULT_SERIAL0_BAUD