Takumi Odashima / ArduinoUsbHostShield

Dependents:   USBHOST_PS5

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers avrpins.h Source File

avrpins.h

00001 /* Copyright (C) 2011 Circuits At Home, LTD. All rights reserved.
00002 
00003 This program is free software; you can redistribute it and/or modify
00004 it under the terms of the GNU General Public License as published by
00005 the Free Software Foundation; either version 2 of the License, or
00006 (at your option) any later version.
00007 
00008 This program is distributed in the hope that it will be useful,
00009 but WITHOUT ANY WARRANTY; without even the implied warranty of
00010 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00011 GNU General Public License for more details.
00012 
00013 You should have received a copy of the GNU General Public License
00014 along with this program; if not, write to the Free Software
00015 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00016 
00017 Contact information
00018 -------------------
00019 
00020 Circuits At Home, LTD
00021 Web      :  http://www.circuitsathome.com
00022 e-mail   :  support@circuitsathome.com
00023  */
00024 
00025 /* derived from Konstantin Chizhov's AVR port templates */
00026 
00027 /*
00028 warning
00029 #define _usb_h_
00030 #define MBED_H
00031 */
00032 
00033 #if !defined(_usb_h_) || defined(_avrpins_h_)
00034 #error "Never include avrpins.h directly; include Usb.h instead"
00035 #else
00036 #define _avrpins_h_
00037 
00038 #if defined(MBED_H)
00039 // for mbed 
00040 // pointers are 32 bits on ARM
00041 #define pgm_read_pointer(p) pgm_read_dword(p)
00042 
00043 #endif
00044 
00045 #endif //_avrpins_h_