added arduino, modified build
This commit is contained in:
59
arduino/libraries/GSM/src/GSM3IO.h
Normal file
59
arduino/libraries/GSM/src/GSM3IO.h
Normal file
@@ -0,0 +1,59 @@
|
||||
/*
|
||||
This file is part of the GSM3 communications library for Arduino
|
||||
-- Multi-transport communications platform
|
||||
-- Fully asynchronous
|
||||
-- Includes code for the Arduino-Telefonica GSM/GPRS Shield V1
|
||||
-- Voice calls
|
||||
-- SMS
|
||||
-- TCP/IP connections
|
||||
-- HTTP basic clients
|
||||
|
||||
This library has been developed by Telefónica Digital - PDI -
|
||||
- Physical Internet Lab, as part as its collaboration with
|
||||
Arduino and the Open Hardware Community.
|
||||
|
||||
September-December 2012
|
||||
|
||||
This library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Lesser General Public
|
||||
License as published by the Free Software Foundation; either
|
||||
version 2.1 of the License, or (at your option) any later version.
|
||||
|
||||
This library is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
Lesser General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public
|
||||
License along with this library; if not, write to the Free Software
|
||||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
|
||||
The latest version of this library can always be found at
|
||||
https://github.com/BlueVia/Official-Arduino
|
||||
*/
|
||||
#ifdef TTOPEN_V1
|
||||
#define __POWERPIN__ 5
|
||||
#define __RESETPIN__ 6
|
||||
#else
|
||||
#define __RESETPIN__ 7
|
||||
#endif
|
||||
|
||||
#if defined(__AVR_ATmega328P__)
|
||||
#ifdef TTOPEN_V1
|
||||
#define __TXPIN__ 3
|
||||
#define __RXPIN__ 4
|
||||
#define __RXINT__ 3
|
||||
#else
|
||||
#define __TXPIN__ 3
|
||||
#define __RXPIN__ 2
|
||||
#define __RXINT__ 3
|
||||
#endif
|
||||
#elif defined(__AVR_ATmega2560__) || defined(__AVR_ATmega1280__)
|
||||
#define __TXPIN__ 3
|
||||
#define __RXPIN__ 10
|
||||
#define __RXINT__ 4
|
||||
#elif defined(__AVR_ATmega32U4__)
|
||||
#define __TXPIN__ 3
|
||||
#define __RXPIN__ 8
|
||||
#define __RXINT__ 3
|
||||
#endif
|
||||
Reference in New Issue
Block a user