A feature complete driver for the ISL1208 real time clock from Intersil.

Dependents:   ISL1208_HelloWorld

Files at this revision

API Documentation at this revision

Comitter:
neilt6
Date:
Tue Nov 12 21:42:44 2013 +0000
Parent:
4:42dc07f9ffb3
Child:
6:c0635401a37f
Commit message:
Minor C++ syntax improvements

Changed in this revision

ISL1208.cpp Show annotated file Show diff for this revision Revisions of this file
ISL1208.h Show annotated file Show diff for this revision Revisions of this file
--- a/ISL1208.cpp	Tue Nov 12 17:15:20 2013 +0000
+++ b/ISL1208.cpp	Tue Nov 12 21:42:44 2013 +0000
@@ -16,6 +16,8 @@
 
 #include "ISL1208.h"
 
+const int ISL1208::m_ADDR = (0x6F << 1);
+
 ISL1208::ISL1208(PinName sda, PinName scl) : m_I2C(sda, scl)
 {
     //Set the I2C bus frequency to 400kHz
--- a/ISL1208.h	Tue Nov 12 17:15:20 2013 +0000
+++ b/ISL1208.h	Tue Nov 12 21:42:44 2013 +0000
@@ -338,7 +338,7 @@
     };
 
     //Member constants
-    static const int m_ADDR = (0x6F << 1);
+    static const int m_ADDR;
 
     //Member variables
     I2C m_I2C;