ardupilot/libraries/AP_HAL_Linux/HAL_Linux_Class.h

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

26 lines
463 B
C
Raw Normal View History

#pragma once
2013-09-22 03:01:24 -03:00
#include <AP_HAL/AP_HAL.h>
2013-09-22 03:01:24 -03:00
#include <signal.h>
2013-09-22 03:01:24 -03:00
class HAL_Linux : public AP_HAL::HAL {
public:
HAL_Linux();
void run(int argc, char* const* argv, Callbacks* callbacks) const override;
void setup_signal_handlers() const;
static void exit_signal_handler(int);
protected:
volatile sig_atomic_t _should_exit = false;
2013-09-22 03:01:24 -03:00
};
#if HAL_NUM_CAN_IFACES
namespace Linux {
class CANIface;
}
typedef Linux::CANIface HAL_CANIface;
#endif