Milos RTOS v0.3.4a
Real Time Operating System
io.c
Go to the documentation of this file.
00001 /***************************************************************************
00002  * io.c
00003  * (C) 2011 Ivan Meleca
00004  * www.milos.it
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 2 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, write to the Free Software
00018 #   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
00019 
00020 ***************************************************************************/
00021 
00022 #include "io.h"
00023 
00024 #if __CONFIG_COMPILE_IO || defined(__DOXYGEN__)
00025 
00049 __BOOL __ioPinConfig(u32 port, u32 pin, u32 mode)
00050 {
00051     return __cpuIoPinConfig(port, pin, mode);
00052 }
00053 
00060 __BOOL __ioPinRead(u32 port, u32 pin)
00061 {
00062     return __cpuIoPinRead(port, pin);
00063 }
00064 
00072 __VOID __ioPinWrite(u32 port, u32 pin, __BOOL val)
00073 {
00074     __cpuIoPinWrite(port, pin, val);
00075 }
00076 
00083 __BOOL __ioADConfig(u32 port, u32 pin)
00084 {
00085     return __cpuIoADConfig(port, pin);
00086 }
00087 
00094 u32 __ioADRead(u32 port, u32 pin)
00095 {
00096     return __cpuIoADRead(port, pin);
00097 }
00098 
00104 __BOOL __ioLedConfig(u32 led)
00105 {
00106     return __cpuIoLedConfig(led);
00107 }
00108 
00115 __BOOL __ioLedSet(u32 led, __BOOL val)
00116 {
00117     return __cpuIoLedSet(led, val);
00118 }
00119 
00125 __BOOL __ioKeyConfig(u32 key)
00126 {
00127     return __cpuIoKeyConfig(key);
00128 }
00129 
00135 __BOOL __ioKeyRead(u32 key)
00136 {
00137     return __cpuIoKeyRead(key);
00138 }
00139 
00148 #endif /* __CONFIG_COMPILE_IO */
 All Data Structures Files Functions Variables Typedefs Defines