FlexBook / Mbed 2 deprecated FlexBook171204a

Dependencies:   SDFileSystem app epson mbed msp430 pl tests

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers plat-gpio.h Source File

plat-gpio.h

00001 /*
00002   Plastic Logic EPD project on MSP430
00003 
00004   Copyright (C) 2014 Plastic Logic Limited
00005 
00006   This program is free software: you can redistribute it and/or modify
00007   it under the terms of the GNU General Public License as published by
00008   the Free Software Foundation, either version 3 of the License, or
00009   (at your option) any later version.
00010 
00011   This program is distributed in the hope that it will be useful,
00012   but WITHOUT ANY WARRANTY; without even the implied warranty of
00013   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014   GNU General Public License for more details.
00015 
00016   You should have received a copy of the GNU General Public License
00017   along with this program.  If not, see <http://www.gnu.org/licenses/>.
00018 */
00019 /*
00020  * msp430/plat-gpio.h -- MSP430 optimised GPIO API
00021  *
00022  * Authors:
00023  *   Guillaume Tucker <guillaume.tucker@plasticlogic.com>
00024  *
00025  */
00026 
00027 #ifndef INCLUDE_MSP430_PLAT_GPIO_H
00028 #define INCLUDE_MSP430_PLAT_GPIO_H 1
00029 
00030 extern int msp430_gpio_get(unsigned gpio);
00031 extern void msp430_gpio_set(unsigned gpio, int value);
00032 
00033 #define pl_gpio_get(_p, _gpio) msp430_gpio_get((_gpio))
00034 #define pl_gpio_set(_p, _gpio, _value) msp430_gpio_set((_gpio), (_value))
00035 
00036 #endif /* INCLUDE_MSP430_PLAT_GPIO_H */