diff -r 003cc3c63855 -r f49e5a6b7804 doc/doxygen/html/portsaccess_8h-source.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/doc/doxygen/html/portsaccess_8h-source.html Fri Jun 08 09:23:56 2007 +0200 @@ -0,0 +1,75 @@ + + +CanFestival: include/hcs12/asm-m68hc12/portsaccess.h Source File + + + + +
+
+
+
+ +

portsaccess.h

Go to the documentation of this file.
00001 /*
+00002 This file is part of CanFestival, a library implementing CanOpen Stack. 
+00003 
+00004 Copyright (C): Edouard TISSERANT and Francis DUPIN
+00005 
+00006 See COPYING file for copyrights details.
+00007 
+00008 This library is free software; you can redistribute it and/or
+00009 modify it under the terms of the GNU Lesser General Public
+00010 License as published by the Free Software Foundation; either
+00011 version 2.1 of the License, or (at your option) any later version.
+00012 
+00013 This library is distributed in the hope that it will be useful,
+00014 but WITHOUT ANY WARRANTY; without even the implied warranty of
+00015 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+00016 Lesser General Public License for more details.
+00017 
+00018 You should have received a copy of the GNU Lesser General Public
+00019 License along with this library; if not, write to the Free Software
+00020 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+00021 */
+00022 /*
+00023 Variables to access to the io_ports
+00024 */
+00025 
+00026 
+00027 #ifndef __PORTS_ACCESS__
+00028 #define __PORTS_ACCESS__
+00029 
+00030 /*
+00031 By default the address is 0X0000 on HCS12.
+00032 But the ports can be remaped. See the file ports.h
+00033 */
+00034 
+00035 
+00036 extern volatile unsigned char _io_ports[];
+00037 
+00038 /* To use for a 8 bits access */
+00039 #define IO_PORTS_8(adr) \
+00040 _io_ports[adr]
+00041 
+00042 /* To use for a 16 bits access */
+00043 /* Example : IO_PORTS_16(CAN0IDAR1)= 0xABCD;
+00044 will put AB at @CAN0IDAR1 and CD at  @CAN0IDAR1 + 1
+00045 */
+00046 #define IO_PORTS_16(adr) \
+00047 *((unsigned volatile short*) (_io_ports + (adr)))
+00048 
+00049 #endif
+

Generated on Fri Jun 8 08:51:39 2007 for CanFestival by  + +doxygen 1.5.1
+ +