mirror of https://github.com/ArduPilot/ardupilot
HAL_Linux: added uartH
This commit is contained in:
parent
4e560a4ae5
commit
019f441b2f
|
@ -66,6 +66,7 @@ static UARTDriver uartDDriver(false);
|
||||||
static UARTDriver uartEDriver(false);
|
static UARTDriver uartEDriver(false);
|
||||||
static UARTDriver uartFDriver(false);
|
static UARTDriver uartFDriver(false);
|
||||||
static UARTDriver uartGDriver(false);
|
static UARTDriver uartGDriver(false);
|
||||||
|
static UARTDriver uartHDriver(false);
|
||||||
|
|
||||||
static I2CDeviceManager i2c_mgr_instance;
|
static I2CDeviceManager i2c_mgr_instance;
|
||||||
static SPIDeviceManager spi_mgr_instance;
|
static SPIDeviceManager spi_mgr_instance;
|
||||||
|
@ -220,6 +221,7 @@ HAL_Linux::HAL_Linux() :
|
||||||
&uartEDriver,
|
&uartEDriver,
|
||||||
&uartFDriver,
|
&uartFDriver,
|
||||||
&uartGDriver,
|
&uartGDriver,
|
||||||
|
&uartHDriver,
|
||||||
&i2c_mgr_instance,
|
&i2c_mgr_instance,
|
||||||
&spi_mgr_instance,
|
&spi_mgr_instance,
|
||||||
&analogIn,
|
&analogIn,
|
||||||
|
@ -237,7 +239,7 @@ HAL_Linux::HAL_Linux() :
|
||||||
|
|
||||||
void _usage(void)
|
void _usage(void)
|
||||||
{
|
{
|
||||||
printf("Usage: -A uartAPath -B uartBPath -C uartCPath -D uartDPath -E uartEPath -F uartFPath -G uartGpath\n");
|
printf("Usage: -A uartAPath -B uartBPath -C uartCPath -D uartDPath -E uartEPath -F uartFPath -G uartGpath -H uartHpath\n");
|
||||||
printf("Options:\n");
|
printf("Options:\n");
|
||||||
printf("\tserial:\n");
|
printf("\tserial:\n");
|
||||||
printf(" -A /dev/ttyO4\n");
|
printf(" -A /dev/ttyO4\n");
|
||||||
|
@ -279,6 +281,7 @@ void HAL_Linux::run(int argc, char* const argv[], Callbacks* callbacks) const
|
||||||
{"uartE", true, 0, 'E'},
|
{"uartE", true, 0, 'E'},
|
||||||
{"uartF", true, 0, 'F'},
|
{"uartF", true, 0, 'F'},
|
||||||
{"uartG", true, 0, 'G'},
|
{"uartG", true, 0, 'G'},
|
||||||
|
{"uartH", true, 0, 'H'},
|
||||||
{"log-directory", true, 0, 'l'},
|
{"log-directory", true, 0, 'l'},
|
||||||
{"terrain-directory", true, 0, 't'},
|
{"terrain-directory", true, 0, 't'},
|
||||||
{"storage-directory", true, 0, 's'},
|
{"storage-directory", true, 0, 's'},
|
||||||
|
@ -316,6 +319,9 @@ void HAL_Linux::run(int argc, char* const argv[], Callbacks* callbacks) const
|
||||||
case 'G':
|
case 'G':
|
||||||
uartGDriver.set_device_path(gopt.optarg);
|
uartGDriver.set_device_path(gopt.optarg);
|
||||||
break;
|
break;
|
||||||
|
case 'H':
|
||||||
|
uartHDriver.set_device_path(gopt.optarg);
|
||||||
|
break;
|
||||||
case 'l':
|
case 'l':
|
||||||
utilInstance.set_custom_log_directory(gopt.optarg);
|
utilInstance.set_custom_log_directory(gopt.optarg);
|
||||||
break;
|
break;
|
||||||
|
@ -349,6 +355,7 @@ void HAL_Linux::run(int argc, char* const argv[], Callbacks* callbacks) const
|
||||||
uartE->begin(115200);
|
uartE->begin(115200);
|
||||||
uartF->begin(115200);
|
uartF->begin(115200);
|
||||||
uartG->begin(115200);
|
uartG->begin(115200);
|
||||||
|
uartH->begin(115200);
|
||||||
analogin->init();
|
analogin->init();
|
||||||
utilInstance.init(argc+gopt.optind-1, &argv[gopt.optind-1]);
|
utilInstance.init(argc+gopt.optind-1, &argv[gopt.optind-1]);
|
||||||
|
|
||||||
|
|
|
@ -264,6 +264,7 @@ void Scheduler::_run_uarts()
|
||||||
hal.uartE->_timer_tick();
|
hal.uartE->_timer_tick();
|
||||||
hal.uartF->_timer_tick();
|
hal.uartF->_timer_tick();
|
||||||
hal.uartG->_timer_tick();
|
hal.uartG->_timer_tick();
|
||||||
|
hal.uartH->_timer_tick();
|
||||||
}
|
}
|
||||||
|
|
||||||
void Scheduler::_rcin_task()
|
void Scheduler::_rcin_task()
|
||||||
|
|
Loading…
Reference in New Issue