[mcu_periph] gpio helper functions

also removed the old gpio1 that was used on lpc and fixedwing firmware
This commit is contained in:
Felix Ruess
2013-06-13 00:19:04 +02:00
parent d72934e88c
commit bc64049e04
22 changed files with 277 additions and 209 deletions
@@ -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 */