Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Ardupilot
GitHub Repository: Ardupilot/ardupilot
Path: blob/master/Tools/AP_Periph/serial_options.h
9594 views
1
#pragma once
2
3
#if AP_PERIPH_SERIAL_OPTIONS_ENABLED
4
5
#ifndef HAL_UART_NUM_SERIAL_PORTS
6
#define HAL_UART_NUM_SERIAL_PORTS AP_HAL::HAL::num_serial
7
#endif
8
9
class SerialOptionsDev {
10
public:
11
SerialOptionsDev(void);
12
static const struct AP_Param::GroupInfo var_info[];
13
AP_Int32 options;
14
AP_Int8 rtscts;
15
};
16
17
class SerialOptions {
18
public:
19
friend class AP_Periph_FW;
20
SerialOptions(void);
21
void init(void);
22
23
static const struct AP_Param::GroupInfo var_info[];
24
25
private:
26
SerialOptionsDev devs[HAL_UART_NUM_SERIAL_PORTS];
27
};
28
29
30
#endif // AP_PERIPH_SERIAL_OPTIONS_ENABLED
31
32