ardupilot/libraries/AP_HAL_Linux/ToneAlarm_Raspilot.h
Lucas De Marchi f36e8d9c05 AP_HAL_Linux: remove AP_HAL_Linux_Namespace header
This centralized namespace header encourages centralizing things on
umbrella headers that are a pain to maintain. Force each part of
AP_HAL_Linux to include what is used.

While at it, do some whitespace cleanups and minor changes to adhere to
coding style.
2016-07-29 20:25:03 -03:00

25 lines
404 B
C++

#pragma once
#include "AP_HAL_Linux.h"
#include "ToneAlarm.h"
namespace Linux {
class ToneAlarm_Raspilot : public ToneAlarm {
public:
ToneAlarm_Raspilot();
bool init() override;
void stop() override;
bool play() override;
private:
void _set_pwm0_period(uint32_t time_us);
void _set_pwm0_duty(uint8_t percent);
volatile uint32_t *_pwm;
volatile uint32_t *_clk;
};
}