mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-16 13:48:29 -04:00
3b697fe299
* I'd love to build a proper abstraction for logging, but I don't have the time to do so right now. * The dataflash libs need to be pushed into the AP_HAL_AVR anyway, so I'll do that now and replace the interface with a better logging driver later.
26 lines
517 B
C++
26 lines
517 B
C++
|
|
#ifndef __AP_HAL_AVR_DATAFLASH_H__
|
|
#define __AP_HAL_AVR_DATAFLASH_H__
|
|
|
|
#include <AP_HAL.h>
|
|
#include "AP_HAL_AVR_Namespace.h"
|
|
|
|
class AP_HAL_AVR::APM1Dataflash : public AP_HAL::Dataflash {
|
|
public:
|
|
APM1Dataflash() : _init(0) {}
|
|
void init(int machtnicht) { _init = 1; }
|
|
private:
|
|
int _init;
|
|
};
|
|
|
|
class AP_HAL_AVR::APM2Dataflash : public AP_HAL::Dataflash {
|
|
public:
|
|
APM2Dataflash() : _init(0) {}
|
|
void init(int machtnicht) { _init = 2; }
|
|
private:
|
|
int _init;
|
|
};
|
|
|
|
#endif // __AP_HAL_AVR_DATAFLASH_H__
|
|
|