From 2073b96d82433607bd287e3b6529fd0d3cc428cd Mon Sep 17 00:00:00 2001 From: Dean Camera Date: Sun, 26 Dec 2010 14:25:34 +0000 Subject: Added basic driver example use code to the library documentation. Made the USARTStream global public and documented in the SerialStream module, allowing for the serial USART stream to be accessed via its handle rather than via the implicit stdout and stdin streams. --- Projects/TempDataLogger/Lib/DS1307.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Projects') diff --git a/Projects/TempDataLogger/Lib/DS1307.h b/Projects/TempDataLogger/Lib/DS1307.h index 87c6229f6..f069c2712 100644 --- a/Projects/TempDataLogger/Lib/DS1307.h +++ b/Projects/TempDataLogger/Lib/DS1307.h @@ -96,8 +96,8 @@ #define DS1307_TIMEREG_START 0x00 #define DS1307_DATEREG_START 0x04 - #define DS1307_ADDRESS_READ 0b11010001 - #define DS1307_ADDRESS_WRITE 0b11010000 + #define DS1307_ADDRESS_READ (0xD0 | TWI_ADDRESS_READ) + #define DS1307_ADDRESS_WRITE (0xD0 | TWI_ADDRESS_WRITE) /* Function Prototypes: */ void DS1307_SetDate(const uint8_t Day, -- cgit v1.2.3