You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
396 B
20 lines
396 B
#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; |
|
};
|
|
|