2023-12-19 16:40:30 -04:00
|
|
|
#pragma once
|
|
|
|
|
2025-02-20 13:09:37 -04:00
|
|
|
#if AP_PERIPH_SERIAL_OPTIONS_ENABLED
|
2023-12-19 16:40:30 -04:00
|
|
|
|
|
|
|
#ifndef HAL_UART_NUM_SERIAL_PORTS
|
|
|
|
#define HAL_UART_NUM_SERIAL_PORTS AP_HAL::HAL::num_serial
|
|
|
|
#endif
|
|
|
|
|
|
|
|
class SerialOptionsDev {
|
|
|
|
public:
|
|
|
|
SerialOptionsDev(void);
|
|
|
|
static const struct AP_Param::GroupInfo var_info[];
|
|
|
|
AP_Int32 options;
|
|
|
|
AP_Int8 rtscts;
|
|
|
|
};
|
|
|
|
|
|
|
|
class SerialOptions {
|
|
|
|
public:
|
|
|
|
friend class AP_Periph_FW;
|
|
|
|
SerialOptions(void);
|
|
|
|
void init(void);
|
|
|
|
|
|
|
|
static const struct AP_Param::GroupInfo var_info[];
|
|
|
|
|
|
|
|
private:
|
|
|
|
SerialOptionsDev devs[HAL_UART_NUM_SERIAL_PORTS];
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2025-02-20 13:09:37 -04:00
|
|
|
#endif // AP_PERIPH_SERIAL_OPTIONS_ENABLED
|