1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/cpu/atmega2560/periph/gpio.c
2014-10-18 07:40:27 +02:00

76 lines
1.1 KiB
C

/*
* Copyright (C) 2014 Freie Universität Berlin, Hinnerk van Bruinehsen
*
* This file is subject to the terms and conditions of the GNU Lesser
* General Public License v2.1. See the file LICENSE in the top level
* directory for more details.
*/
/**
* @ingroup driver_periph
* @{
*
* @file gpio.c
* @brief Low-level GPIO driver implementation
*
* @author Hauke Petersen <mail@haukepetersen.de>
*
* @}
*/
/*
* TODO: Implement GPIO interface
*/
#include "cpu.h"
#include "periph/gpio.h"
#include "periph_conf.h"
#if GPIO_NUMOF
typedef struct {
void (*cb)(void);
} gpio_state_t;
/*static gpio_state_t config[GPIO_NUMOF]; */
int gpio_init_out(gpio_t dev, gpio_pp_t pushpull)
{
return -1;
}
int gpio_init_in(gpio_t dev, gpio_pp_t pushpull)
{
return -1;
}
int gpio_init_int(gpio_t dev, gpio_pp_t pushpull, gpio_flank_t flank, gpio_cb_t cb, void *arg)
{
return -1;
}
int gpio_read(gpio_t dev)
{
return -1;
}
void gpio_set(gpio_t dev)
{
}
void gpio_clear(gpio_t dev)
{
}
void gpio_toggle(gpio_t dev)
{
}
void gpio_write(gpio_t dev, int value)
{
}
#endif /* GPIO_NUMOF */