ardupilot/libraries/AP_HAL_Empty/Console.cpp

43 lines
760 B
C++
Raw Normal View History

2012-12-17 15:54:55 -04:00
#include <stdarg.h>
#include "Console.h"
using namespace Empty;
EmptyConsoleDriver::EmptyConsoleDriver(AP_HAL::BetterStream* delegate) :
_d(delegate)
{}
void EmptyConsoleDriver::init(void* machtnichts)
{}
void EmptyConsoleDriver::backend_open()
{}
void EmptyConsoleDriver::backend_close()
{}
size_t EmptyConsoleDriver::backend_read(uint8_t *data, size_t len) {
return 0;
}
size_t EmptyConsoleDriver::backend_write(const uint8_t *data, size_t len) {
return 0;
}
int16_t EmptyConsoleDriver::available() {
return _d->available();
}
int16_t EmptyConsoleDriver::txspace() {
return _d->txspace();
}
int16_t EmptyConsoleDriver::read() {
return _d->read();
}
size_t EmptyConsoleDriver::write(uint8_t c) {
return _d->write(c);
}