Using DHT11 sensor, sdWrite, wdt. Need to sleep more then this.

Dependencies:   DHT GPRSInterface HTTPClient_GPRS SDFileSystem USBDevice mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers ARCH_GPRS_HW_DFS.h Source File

ARCH_GPRS_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_HW_DFS_H__
00024 #define __ARCH_GPRS_HW_DFS_H__
00025 
00026 // pin define
00027 #define PINPWR          P1_2            // power on EG 10, low enable
00028 #define PINONOFF        P1_7            // switch of EG10, low enable, low for 2s to turn on EG10
00029 #define PINTX           P0_18           // EG10 TX
00030 #define PINRX           P0_19           // EG10 RX
00031 #define PINSYSRST       P1_6            // EG10 RST,high enable
00032 #define PINEGSTATE      P1_15           // in and out, read eg10 state, HIGH: on, LOW: off
00033 
00034 
00035 // grove pin
00036 #define GROVE_I2C_SCL   P0_4            // grove i2c pin
00037 #define GROVE_I2C_SDA   P0_5            // grove i2c sda
00038 
00039 #define GROVE_UART_RX   P0_14           // grove uart rx
00040 #define GROVE_UART_TX   P0_13           // grove uart tx
00041 
00042 #define GROVE_ADC_1     P0_12           // grove ADC, the outside one
00043 #define GROVE_ADC_2     P0_11           // grove ADC, the other one
00044 
00045 #define GROVE_PWR       P1_3            // control all grove power, low enable
00046 
00047 // charge circuit
00048 #define PIN_CHRGING     P1_1            // charging, low enable
00049 #define PIN_CHRGDONE    P1_0            // charge done
00050 #define PIN_READBAT     P0_23           // battery voltage in, the value should x2
00051 
00052 // led pin
00053 #define PINLED1         P1_8
00054 #define PINLED2         P1_9
00055 #define PINLED3         P1_10
00056 #define PINLED4         P1_11
00057 
00058 // charge state
00059 #define CHRGING         1
00060 #define CHRGDONE        2
00061 #define NOCHRG          3
00062 
00063 #endif
00064 
00065 /*********************************************************************************************************
00066   END FILE
00067 *********************************************************************************************************/