mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-06-07 00:53:41 +08:00
[ArDrone] Extra Safety
This commit is contained in:
@@ -22,6 +22,8 @@
|
||||
* ardrone GPIO driver
|
||||
*/
|
||||
|
||||
#ifdef ARDRONE2_RAW
|
||||
|
||||
#include <fcntl.h> /* File control definitions */
|
||||
#include <errno.h> /* Error number definitions */
|
||||
#include <sys/ioctl.h>
|
||||
@@ -125,3 +127,5 @@ uint16_t gpio_get(uint32_t port, uint16_t pin)
|
||||
ioctl(gpiofp, GPIO_READ, &data);
|
||||
return data.value;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user