Barometer program : Data Logger function includes Barometer & temperature (BMP180), Humidity & temp. (RHT03), Sunshine (Cds), RTC(M41T62) data. : Logging data saves into EEPROM (AT24C1024) using ring buffer function.
Dependencies: AT24C1024 RHT03 TextLCD BMP180 M41T62
Fork of mbed_blinky by
Please see https://mbed.org/users/kenjiArai/notebook/mbed-lpc1114fn28-barometer-with-data-logging/#
Diff: mon_hw.cpp
- Revision:
- 16:f164f8912201
- Parent:
- 15:065fbeddc305
- Child:
- 18:b3a27f681171
--- a/mon_hw.cpp Sun Jun 29 06:58:00 2014 +0000 +++ b/mon_hw.cpp Thu Jul 03 22:01:25 2014 +0000 @@ -7,7 +7,7 @@ * http://mbed.org/users/kenjiArai/ * Created: May 15th, 2010 * Spareted: June 25th, 2014 mon() & mon_hw() - * Revised: June 29th, 2014 + * Revised: July 3rd, 2014 * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, * INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE @@ -24,7 +24,7 @@ // Include --------------------------------------------------------------------------------------- #include "mbed.h" -#include "AT24C1024.h" // Own lib. / EEPROM control +#include "AT24C1024.h" // Own lib. / EEPROM control #include "mon_hw_config.h" // Object ---------------------------------------------------------------------------------------- @@ -68,9 +68,9 @@ unsigned char mbhw; } MEMO; -#define DW_CHAR sizeof(char) -#define DW_SHORT sizeof(short) -#define DW_LONG sizeof(long) +#define DW_CHAR sizeof(char) +#define DW_SHORT sizeof(short) +#define DW_LONG sizeof(long) typedef unsigned long DWORD; typedef unsigned short WORD;