Arch GPRS V2 HW Library Created from the Arch GPRS HW DEMO

Dependents:   roam_v2 finalV1 finalV1 finalv2 ... more

Committer:
labishrestha
Date:
Tue Dec 02 07:28:27 2014 +0000
Revision:
0:d3d48514a2aa
Arch GPRS V2 HW library created from Arch GPRS HW Demo

Who changed what in which revision?

UserRevisionLine numberNew contents of line
labishrestha 0:d3d48514a2aa 1 /*
labishrestha 0:d3d48514a2aa 2 IOT_hw_dfs.h
labishrestha 0:d3d48514a2aa 3 2013 Copyright (c) Seeed Technology Inc. All right reserved.
labishrestha 0:d3d48514a2aa 4
labishrestha 0:d3d48514a2aa 5 Author:Loovee
labishrestha 0:d3d48514a2aa 6 2013-7-21
labishrestha 0:d3d48514a2aa 7
labishrestha 0:d3d48514a2aa 8 This library is free software; you can redistribute it and/or
labishrestha 0:d3d48514a2aa 9 modify it under the terms of the GNU Lesser General Public
labishrestha 0:d3d48514a2aa 10 License as published by the Free Software Foundation; either
labishrestha 0:d3d48514a2aa 11 version 2.1 of the License, or (at your option) any later version.
labishrestha 0:d3d48514a2aa 12
labishrestha 0:d3d48514a2aa 13 This library is distributed in the hope that it will be useful,
labishrestha 0:d3d48514a2aa 14 but WITHOUT ANY WARRANTY; without even the implied warranty of
labishrestha 0:d3d48514a2aa 15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
labishrestha 0:d3d48514a2aa 16 Lesser General Public License for more details.
labishrestha 0:d3d48514a2aa 17
labishrestha 0:d3d48514a2aa 18 You should have received a copy of the GNU Lesser General Public
labishrestha 0:d3d48514a2aa 19 License along with this library; if not, write to the Free Software
labishrestha 0:d3d48514a2aa 20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
labishrestha 0:d3d48514a2aa 21 */
labishrestha 0:d3d48514a2aa 22
labishrestha 0:d3d48514a2aa 23 #ifndef __ARCH_GPRS_V2_HW_DFS_H__
labishrestha 0:d3d48514a2aa 24 #define __ARCH_GPRS_V2_HW_DFS_H__
labishrestha 0:d3d48514a2aa 25
labishrestha 0:d3d48514a2aa 26 // pin define
labishrestha 0:d3d48514a2aa 27 #define PINPWR P1_2 // SIM900 power supply switch, low enable
labishrestha 0:d3d48514a2aa 28 #define PINONOFF P1_7 // SIM900 power On/Off switch, low enable, low for 2s to turn on SIM900
labishrestha 0:d3d48514a2aa 29 #define PINTX P1_27 // SIM900 TX
labishrestha 0:d3d48514a2aa 30 #define PINRX P1_26 // SIM900 RX
labishrestha 0:d3d48514a2aa 31
labishrestha 0:d3d48514a2aa 32 // grove pin
labishrestha 0:d3d48514a2aa 33 #define GROVE_I2C_SCL P0_4 // grove i2c pin
labishrestha 0:d3d48514a2aa 34 #define GROVE_I2C_SDA P0_5 // grove i2c sda
labishrestha 0:d3d48514a2aa 35
labishrestha 0:d3d48514a2aa 36 #define GROVE_UART_RX P0_14 // grove uart rx
labishrestha 0:d3d48514a2aa 37 #define GROVE_UART_TX P0_13 // grove uart tx
labishrestha 0:d3d48514a2aa 38
labishrestha 0:d3d48514a2aa 39 #define GROVE_ADC_1 P0_12 // grove ADC, the outside one
labishrestha 0:d3d48514a2aa 40 #define GROVE_ADC_2 P0_11 // grove ADC, the other one
labishrestha 0:d3d48514a2aa 41
labishrestha 0:d3d48514a2aa 42 #define GROVE_PWR P1_3 // control all grove power, low enable
labishrestha 0:d3d48514a2aa 43
labishrestha 0:d3d48514a2aa 44 // charge circuit
labishrestha 0:d3d48514a2aa 45 #define PIN_CHRGING P1_1 // charging, low enable
labishrestha 0:d3d48514a2aa 46 #define PIN_CHRGDONE P1_0 // charge done
labishrestha 0:d3d48514a2aa 47 #define PIN_READBAT P0_23 // battery voltage in, the value should x2
labishrestha 0:d3d48514a2aa 48
labishrestha 0:d3d48514a2aa 49 // led pin
labishrestha 0:d3d48514a2aa 50 #define PINLED1 P1_8
labishrestha 0:d3d48514a2aa 51 #define PINLED2 P1_9
labishrestha 0:d3d48514a2aa 52 #define PINLED3 P1_10
labishrestha 0:d3d48514a2aa 53 #define PINLED4 P1_11
labishrestha 0:d3d48514a2aa 54
labishrestha 0:d3d48514a2aa 55 // charge state
labishrestha 0:d3d48514a2aa 56 #define CHRGING 1
labishrestha 0:d3d48514a2aa 57 #define CHRGDONE 2
labishrestha 0:d3d48514a2aa 58 #define NOCHRG 3
labishrestha 0:d3d48514a2aa 59
labishrestha 0:d3d48514a2aa 60 #endif
labishrestha 0:d3d48514a2aa 61
labishrestha 0:d3d48514a2aa 62 /*********************************************************************************************************
labishrestha 0:d3d48514a2aa 63 END FILE
labishrestha 0:d3d48514a2aa 64 *********************************************************************************************************/