9 changed files with 10 additions and 46 deletions
@ -1,14 +0,0 @@
@@ -1,14 +0,0 @@
|
||||
|
||||
#ifndef __AP_HAL_CONSOLE_H__ |
||||
#define __AP_HAL_CONSOLE_H__ |
||||
|
||||
#include "AP_HAL_Namespace.h" |
||||
|
||||
class AP_HAL::Console { |
||||
public: |
||||
Console() {} |
||||
virtual void init(int machtnicht) = 0; |
||||
}; |
||||
|
||||
#endif // __AP_HAL_CONSOLE_H__
|
||||
|
@ -1,20 +0,0 @@
@@ -1,20 +0,0 @@
|
||||
|
||||
#ifndef __AP_HAL_AVR_CONSOLE_H__ |
||||
#define __AP_HAL_AVR_CONSOLE_H__ |
||||
|
||||
#include <AP_HAL.h> |
||||
#include "AP_HAL_AVR_Namespace.h" |
||||
#include "UARTDriver.h" |
||||
|
||||
class AP_HAL_AVR::AVRUARTConsole : public AP_HAL::Console { |
||||
public: |
||||
AVRUARTConsole( AVRUARTDriver* driver ) : _driver(driver), _init(0) {} |
||||
void init(int machtnicht) { _init = 1; } |
||||
private: |
||||
const AVRUARTDriver* _driver; |
||||
int _init; |
||||
}; |
||||
|
||||
|
||||
#endif // __AP_HAL_AVR_CONSOLE_H__
|
||||
|
Loading…
Reference in new issue