peter@521: /* peter@521: This file is part of CanFestival, a library implementing CanOpen Stack. peter@521: peter@521: Copyright (C): Edouard TISSERANT and Francis DUPIN peter@521: ARM Port: Peter CHRISTEN peter@521: peter@521: See COPYING file for copyrights details. peter@521: peter@521: This library is free software; you can redistribute it and/or peter@521: modify it under the terms of the GNU Lesser General Public peter@521: License as published by the Free Software Foundation; either peter@521: version 2.1 of the License, or (at your option) any later version. peter@521: peter@521: This library is distributed in the hope that it will be useful, peter@521: but WITHOUT ANY WARRANTY; without even the implied warranty of peter@521: MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU peter@521: Lesser General Public License for more details. peter@521: peter@521: You should have received a copy of the GNU Lesser General Public peter@521: License along with this library; if not, write to the Free Software peter@521: Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA peter@521: */ peter@521: peter@521: #ifndef _IO_MACRO peter@521: #define _IO_MACRO peter@521: peter@521: // Macros for set and clear bits in I/O registers peter@521: #define setbit(address,bit) (address |= (1<