Arch GPRS V2 HW Library Created from the Arch GPRS HW DEMO
Dependents: roam_v2 finalV1 finalV1 finalv2 ... more
ARCH_GPRS_V2_HW_DFS.h
00001 /* 00002 IOT_hw_dfs.h 00003 2013 Copyright (c) Seeed Technology Inc. All right reserved. 00004 00005 Author:Loovee 00006 2013-7-21 00007 00008 This library is free software; you can redistribute it and/or 00009 modify it under the terms of the GNU Lesser General Public 00010 License as published by the Free Software Foundation; either 00011 version 2.1 of the License, or (at your option) any later version. 00012 00013 This library is distributed in the hope that it will be useful, 00014 but WITHOUT ANY WARRANTY; without even the implied warranty of 00015 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00016 Lesser General Public License for more details. 00017 00018 You should have received a copy of the GNU Lesser General Public 00019 License along with this library; if not, write to the Free Software 00020 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 00021 */ 00022 00023 #ifndef __ARCH_GPRS_V2_HW_DFS_H__ 00024 #define __ARCH_GPRS_V2_HW_DFS_H__ 00025 00026 // pin define 00027 #define PINPWR P1_2 // SIM900 power supply switch, low enable 00028 #define PINONOFF P1_7 // SIM900 power On/Off switch, low enable, low for 2s to turn on SIM900 00029 #define PINTX P1_27 // SIM900 TX 00030 #define PINRX P1_26 // SIM900 RX 00031 00032 // grove pin 00033 #define GROVE_I2C_SCL P0_4 // grove i2c pin 00034 #define GROVE_I2C_SDA P0_5 // grove i2c sda 00035 00036 #define GROVE_UART_RX P0_14 // grove uart rx 00037 #define GROVE_UART_TX P0_13 // grove uart tx 00038 00039 #define GROVE_ADC_1 P0_12 // grove ADC, the outside one 00040 #define GROVE_ADC_2 P0_11 // grove ADC, the other one 00041 00042 #define GROVE_PWR P1_3 // control all grove power, low enable 00043 00044 // charge circuit 00045 #define PIN_CHRGING P1_1 // charging, low enable 00046 #define PIN_CHRGDONE P1_0 // charge done 00047 #define PIN_READBAT P0_23 // battery voltage in, the value should x2 00048 00049 // led pin 00050 #define PINLED1 P1_8 00051 #define PINLED2 P1_9 00052 #define PINLED3 P1_10 00053 #define PINLED4 P1_11 00054 00055 // charge state 00056 #define CHRGING 1 00057 #define CHRGDONE 2 00058 #define NOCHRG 3 00059 00060 #endif 00061 00062 /********************************************************************************************************* 00063 END FILE 00064 *********************************************************************************************************/
Generated on Sun Jul 17 2022 01:45:45 by 1.7.2