Browse Source

HAL_Linux: implement new_semaphore()

master
Andrew Tridgell 9 years ago
parent
commit
c77e3c89c5
  1. 4
      libraries/AP_HAL_Linux/Util.h

4
libraries/AP_HAL_Linux/Util.h

@ -7,6 +7,7 @@ @@ -7,6 +7,7 @@
#include "AP_HAL_Linux_Namespace.h"
#include "ToneAlarmDriver.h"
#include "Semaphores.h"
class Linux::Util : public AP_HAL::Util {
public:
@ -61,6 +62,9 @@ public: @@ -61,6 +62,9 @@ public:
void perf_end(perf_counter_t perf) override;
void perf_count(perf_counter_t perf) override;
// create a new semaphore
AP_HAL::Semaphore *new_semaphore(void) override { return new Linux::Semaphore; }
private:
static Linux::ToneAlarm _toneAlarm;
Linux::Heat *_heat;

Loading…
Cancel
Save