mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-22 16:48:29 -04:00
HAL_Linux: added missing Util.cpp
This commit is contained in:
parent
eac4b1ec96
commit
a273951f70
23
libraries/AP_HAL_Linux/Util.cpp
Normal file
23
libraries/AP_HAL_Linux/Util.cpp
Normal file
@ -0,0 +1,23 @@
|
||||
#include <AP_HAL.h>
|
||||
#if CONFIG_HAL_BOARD == HAL_BOARD_LINUX
|
||||
#include <stdio.h>
|
||||
#include <stdarg.h>
|
||||
#include <unistd.h>
|
||||
#include <stdlib.h>
|
||||
#include <errno.h>
|
||||
|
||||
extern const AP_HAL::HAL& hal;
|
||||
|
||||
#include "Util.h"
|
||||
using namespace Linux;
|
||||
|
||||
/**
|
||||
return commandline arguments, if available
|
||||
*/
|
||||
void LinuxUtil::commandline_arguments(uint8_t &argc, char * const *&argv)
|
||||
{
|
||||
argc = saved_argc;
|
||||
argv = saved_argv;
|
||||
}
|
||||
|
||||
#endif // CONFIG_HAL_BOARD == HAL_BOARD_LINUX
|
Loading…
Reference in New Issue
Block a user