You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

21 lines
422 B

#ifndef __AP_HAL_GPIO_H__
#define __AP_HAL_GPIO_H__
#include <stdint.h>
#include "AP_HAL_Namespace.h"
#define GPIO_INPUT 0
#define GPIO_OUTPUT 1
class AP_HAL::GPIO {
public:
GPIO() {}
virtual void init() = 0;
virtual void pinMode(uint8_t pin, uint8_t output) = 0;
virtual uint8_t read(uint8_t pin) = 0;
virtual void write(uint8_t pin, uint8_t value) = 0;
};
#endif // __AP_HAL_GPIO_H__