mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-06-04 05:42:49 +08:00
[mcu_periph] gpio helper functions
also removed the old gpio1 that was used on lpc and fixedwing firmware
This commit is contained in:
@@ -30,7 +30,7 @@
|
||||
|
||||
#include "subsystems/actuators.h"
|
||||
#include "actuators_ardrone2_raw.h"
|
||||
#include "gpio.h"
|
||||
#include "gpio_ardrone.h"
|
||||
|
||||
#include <stdio.h> /* Standard input/output definitions */
|
||||
#include <string.h> /* String function definitions */
|
||||
|
||||
@@ -18,13 +18,13 @@
|
||||
*/
|
||||
|
||||
/**
|
||||
* @file boards/ardrone/gpio.c
|
||||
* @file boards/ardrone/gpio_ardrone.c
|
||||
* ardrone GPIO driver
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include "gpio.h"
|
||||
#include "gpio_ardrone.h"
|
||||
|
||||
//val=0 -> set gpio output lo
|
||||
//val=1 -> set gpio output hi
|
||||
@@ -18,16 +18,16 @@
|
||||
*/
|
||||
|
||||
/**
|
||||
* @file boards/ardrone/gpio.h
|
||||
* @file boards/ardrone/gpio_ardrone.h
|
||||
* ardrone GPIO driver
|
||||
*/
|
||||
|
||||
#ifndef GPIO_H
|
||||
#define GPIO_H
|
||||
#ifndef GPIO_ARDRONE_H
|
||||
#define GPIO_ARDRONE_H
|
||||
|
||||
//val=0 -> set gpio output lo
|
||||
//val=1 -> set gpio output hi
|
||||
//val=-1 -> set gpio as input (output hi-Z)
|
||||
int gpio_set(int nr,int val);
|
||||
|
||||
#endif /* GPIO_H */
|
||||
#endif /* GPIO_ARDRONE_H */
|
||||
Reference in New Issue
Block a user