MHVLib
20111011
An efficiency oriented runtime library for AVR microcontrollers
|
00001 /* 00002 * Copyright (c) 2011, Make, Hack, Void Inc 00003 * All rights reserved. 00004 * 00005 * Redistribution and use in source and binary forms, with or without 00006 * modification, are permitted provided that the following conditions are met: 00007 * * Redistributions of source code must retain the above copyright 00008 * notice, this list of conditions and the following disclaimer. 00009 * * Redistributions in binary form must reproduce the above copyright 00010 * notice, this list of conditions and the following disclaimer in the 00011 * documentation and/or other materials provided with the distribution. 00012 * * Neither the name of the Make, Hack, Void nor the 00013 * names of its contributors may be used to endorse or promote products 00014 * derived from this software without specific prior written permission. 00015 * 00016 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 00017 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 00018 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 00019 * DISCLAIMED. IN NO EVENT SHALL MAKE, HACK, VOID BE LIABLE FOR ANY 00020 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 00021 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 00022 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 00023 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 00024 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 00025 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 00026 */ 00027 00028 00029 #ifndef MHV_IO_ARDUINO_DIECIMILLA_H_ 00030 #define MHV_IO_ARDUINO_DIECIMILLA_H_ 00031 00032 #include <avr/io.h> 00033 00034 // Dir, Output, Input, Bit,PCINT 00035 #define MHV_ARDUINO_PIN_0 &DDRD, &PORTD, &PIND, 0, 16 00036 #define MHV_ARDUINO_PIN_1 &DDRD, &PORTD, &PIND, 1, 17 00037 #define MHV_ARDUINO_PIN_2 &DDRD, &PORTD, &PIND, 2, 18 00038 #define MHV_ARDUINO_PIN_3 &DDRD, &PORTD, &PIND, 3, 19 00039 #define MHV_ARDUINO_PIN_4 &DDRD, &PORTD, &PIND, 4, 20 00040 #define MHV_ARDUINO_PIN_5 &DDRD, &PORTD, &PIND, 5, 21 00041 #define MHV_ARDUINO_PIN_6 &DDRD, &PORTD, &PIND, 6, 22 00042 #define MHV_ARDUINO_PIN_7 &DDRD, &PORTD, &PIND, 7, 23 00043 #define MHV_ARDUINO_PIN_8 &DDRB, &PORTB, &PINB, 0, 0 00044 #define MHV_ARDUINO_PIN_9 &DDRB, &PORTB, &PINB, 1, 1 00045 #define MHV_ARDUINO_PIN_10 &DDRB, &PORTB, &PINB, 2, 2 00046 #define MHV_ARDUINO_PIN_11 &DDRB, &PORTB, &PINB, 3, 3 00047 #define MHV_ARDUINO_PIN_12 &DDRB, &PORTB, &PINB, 4, 4 00048 #define MHV_ARDUINO_PIN_13 &DDRB, &PORTB, &PINB, 5, 5 00049 #define MHV_ARDUINO_PIN_A0 &DDRC, &PORTC, &PINC, 0, 8 00050 #define MHV_ARDUINO_PIN_A1 &DDRC, &PORTC, &PINC, 1, 9 00051 #define MHV_ARDUINO_PIN_A2 &DDRC, &PORTC, &PINC, 2, 10 00052 #define MHV_ARDUINO_PIN_A3 &DDRC, &PORTC, &PINC, 3, 11 00053 #define MHV_ARDUINO_PIN_A4 &DDRC, &PORTC, &PINC, 4, 12 00054 #define MHV_ARDUINO_PIN_A5 &DDRC, &PORTC, &PINC, 5, 13 00055 00056 #endif /* MHV_IO_ARDUINO_DIECIMILLA_H_ */