2012-08-20 15:38:09 -03:00
|
|
|
|
|
|
|
#ifndef __AP_HAL_AVR_GPIO_H__
|
|
|
|
#define __AP_HAL_AVR_GPIO_H__
|
|
|
|
|
|
|
|
#include <AP_HAL.h>
|
2012-08-21 18:11:24 -03:00
|
|
|
#include "AP_HAL_AVR_Namespace.h"
|
2012-08-20 15:38:09 -03:00
|
|
|
|
2012-08-21 18:11:24 -03:00
|
|
|
class AP_HAL_AVR::ArduinoGPIO : public AP_HAL::GPIO {
|
2012-08-20 15:38:09 -03:00
|
|
|
public:
|
2012-08-23 19:22:24 -03:00
|
|
|
ArduinoGPIO() {}
|
|
|
|
void init() {}
|
|
|
|
void pinMode(uint8_t pin, uint8_t output);
|
|
|
|
uint8_t read(uint8_t pin);
|
|
|
|
void write(uint8_t pin, uint8_t value);
|
2012-08-20 15:38:09 -03:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // __AP_HAL_AVR_GPIO_H__
|
|
|
|
|