mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-11 10:28:29 -04:00
26 lines
520 B
C++
26 lines
520 B
C++
|
|
#ifndef __AP_HAL_AVR_PWM_OUTPUT_H__
|
|
#define __AP_HAL_AVR_PWM_OUTPUT_H__
|
|
|
|
#include <AP_HAL.h>
|
|
#include "AP_HAL_AVR_Namespace.h"
|
|
|
|
class AP_HAL_AVR::APM1PWMOutput : public AP_HAL::PWMOutput {
|
|
public:
|
|
APM1PWMOutput() : _init(0) {}
|
|
void init(int machtnicht) { _init = 1; }
|
|
private:
|
|
int _init;
|
|
};
|
|
|
|
class AP_HAL_AVR::APM2PWMOutput : public AP_HAL::PWMOutput {
|
|
public:
|
|
APM2PWMOutput() : _init(0) {}
|
|
void init(int machtnicht) { _init = 2; }
|
|
private:
|
|
int _init;
|
|
};
|
|
|
|
#endif // __AP_HAL_AVR_PWM_OUTPUT_H__
|
|
|