00001 /* 00002 * Copyright (C) 2009 Libelium Comunicaciones Distribuidas S.L. 00003 * http://www.libelium.com 00004 * 00005 * This program is free software: you can redistribute it and/or modify 00006 * it under the terms of the GNU Lesser General Public License as published by 00007 * the Free Software Foundation, either version 2.1 of the License, or 00008 * (at your option) any later version. 00009 00010 * This program is distributed in the hope that it will be useful, 00011 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00013 * GNU Lesser General Public License for more details. 00014 00015 * You should have received a copy of the GNU Lesser General Public License 00016 * along with this program. If not, see <http://www.gnu.org/licenses/>. 00017 * 00018 * Version: 0.2 00019 * Design: David Gascón 00020 * Implementation: David Cuartielles, Alberto Bielsa 00021 */ 00022 00023 00024 // strings and math 00025 #include <stdlib.h> 00026 #include <string.h> 00027 #include <stdio.h> 00028 #include <math.h> 00029 00030 // interrupts and sleep 00031 #include <avr/interrupt.h> 00032 #include <avr/signal.h> 00033 #include <avr/sleep.h> 00034 00035 // interrupt core (must be called before Wire) 00036 //#include "WInterrupts.h" 00037 00038 #include <alloca.h> 00039 00040 // I2C libraries 00041 #include "Wire.h" 00042 #include "twi.h" 00043 00044 #include "pins_waspmote.h" 00045 00046 #include "WaspConstants.h" 00047 00048 #ifndef __WASPXBEECONSTANTS_H__ 00049 #include "WaspXBeeConstants.h" 00050 #endif 00051 00052 #include "wiring.h" 00053 00054 // SD 00055 #include "sd_raw_config.h" 00056 #include "sd_raw.h" 00057 #include "partition.h" 00058 #include "fat_config.h" 00059 #include "fat.h" 00060 00061 #ifdef __cplusplus 00062 00063 #include "WaspUtils.h" 00064 #include "HardwareSerial.h" 00065 #include "WaspUSB.h" 00066 #include "WaspXBee.h" 00067 #include "WaspGPS.h" 00068 #include "WaspGPRS.h" 00069 #include "WaspGPRSconstants.h" 00070 #include "Wire.h" 00071 #include "WaspRTC.h" 00072 #include "WaspACC.h" 00073 #include "WaspSD.h" 00074 #include "WaspPWR.h" 00075 #include "WaspXBeeCore.h" 00076 #include "WaspXBee802.h" 00077 #include "WaspXBeeZB.h" 00078 #include "WaspXBeeDM.h" 00079 #include "WaspXBee868.h" 00080 #include "WaspXBeeXSC.h" 00081 #include "WaspSensorAgr.h" 00082 #include "WaspSensorGas.h" 00083 #include "WaspSensorEvent.h" 00084 #include "WaspSensorPrototyping.h" 00085 #include "WaspBT.h" 00086 #include "WaspBTConstants.h" 00087 00088 00089 // random prototypes 00090 long random(long); 00091 long random(long, long); 00092 void randomSeed(unsigned int); 00093 00094 #endif 00095
1.5.6