mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-04 23:18:28 -04:00
e9c5f07db2
* actually, tested the output only... gotta do input next
19 lines
387 B
C++
19 lines
387 B
C++
|
|
#ifndef __AP_HAL_AVR_GPIO_H__
|
|
#define __AP_HAL_AVR_GPIO_H__
|
|
|
|
#include <AP_HAL.h>
|
|
#include "AP_HAL_AVR_Namespace.h"
|
|
|
|
class AP_HAL_AVR::ArduinoGPIO : public AP_HAL::GPIO {
|
|
public:
|
|
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);
|
|
};
|
|
|
|
#endif // __AP_HAL_AVR_GPIO_H__
|
|
|