ardupilot/libraries/AP_HAL_Linux/ToneAlarm_Raspilot.h
Lucas De Marchi c1623c21cc AP_HAL_Linux: rename ToneAlarmDriver to follow other names
We don't add "Driver" to the name of the files anymore.
2016-03-18 21:51:37 -03:00

21 lines
396 B
C++

#pragma once
#include "AP_HAL_Linux.h"
#include "ToneAlarm.h"
class Linux::ToneAlarm_Raspilot : public Linux::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;
};