ardupilot/libraries/AP_HAL_AVR/RCOutput_APM1.cpp

66 lines
1.2 KiB
C++

#include <avr/interrupt.h>
#include <AP_HAL.h>
#include <AP_HAL_AVR.h>
#include "RCOutput.h"
using namespace AP_HAL;
using namespace AP_HAL_AVR;
extern const HAL& hal;
/* No init argument required */
void APM1RCOutput::init(void* machtnicht) {
}
/* Output freq (1/period) control */
void APM1RCOutput::set_freq(uint32_t chmask, uint16_t freq_hz) {
}
uint16_t APM1RCOutput::get_freq(uint8_t ch) {
}
/* Output active/highZ control, either by single channel at a time
* or a mask of channels */
void APM1RCOutput::enable_ch(uint8_t ch) {
enable_mask(1 << ch);
}
void APM1RCOutput::enable_mask(uint32_t chmask) {
}
void APM1RCOutput::disable_ch(uint8_t ch) {
disable_mask(1 << ch);
}
void APM1RCOutput::disable_mask(uint32_t chmask) {
}
/* Output, either single channel or bulk array of channels */
void APM1RCOutput::write(uint8_t ch, uint16_t period_ms) {
}
void APM1RCOutput::write(uint8_t ch, uint16_t* period_ms, uint8_t len) {
}
/* Read back current output state, as either single channel or
* array of channels. */
uint16_t APM1RCOutput::read(uint8_t ch) {
}
void APM1RCOutput::read(uint16_t* period_ms, uint8_t len) {
}
uint16_t APM1RCOutput::_timer_period(uint16_t speed_hz) {
return 2000000UL / speed_hz;
}