Changeset 7 for ds1337

Show
Ignore:
Timestamp:
10/17/07 18:30:26 (15 months ago)
Author:
mlalondesvn
Message:

General:

MODIF - Moved all of the configurations out of the libraries and into the configs

Location:
ds1337
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • ds1337/ds1337.cpp

    r3 r7  
    33} 
    44 
    5 #include "../global.h" 
    6 #include "../configs/RTC/rtcConfig.h" 
    75#include "ds1337.h" 
    86 
  • ds1337/ds1337.h

    r3 r7  
    1010#include "../global.h" 
    1111 
    12 // include types & constants of Wire ic2 lib 
    13 #include <Wire/Wire.h> 
    14  
    15 // Include global RTC configs 
     12#include "../global.h" 
    1613#include "../configs/RTC/rtcConfig.h" 
    17  
    18 // Ucomment this to enable setting the clock from a  
    19 // unix time stamp with gmt and dst correction 
    20 #define DS1337_USE_SET_UTS 
    21  
    22 // Uncomment this enable setting the clock using BCD 
    23 //#define DS1337_USE_BCD_CLOCKSET 
    24  
    25 // Uncomment this if you need to read back unix time stamp (without DTS correction) 
    26 //#define DS1337_USE_GET_UTS 
    27  
    28 // Uncomment this to support alarms 
    29 #define DS1337_USE_ALARMS 
    30  
    31 #ifdef DS1337_USE_ALARMS 
    32 // Uncomment this to allow use external alarm interrupts 
    33 #define DS1337_USE_ALARM_INTERRUPTS 
    34  
    35 // Uncomment this to allow alarm functions callback 
    36 #define DS1337_USE_ALARMS_CALLBACK 
    37 #endif 
    38  
    39 // Uncomment this to use integrity check functions 
    40 //#define DS1337_USE_OSC_INTEGRITY 
    41  
    42 // Uncomment this to support square wave output 
    43 // If this is enabled, alarm 2 will output it's interrupt on INTA 
    44 #define DS1337_USE_SQW_OUTPUT 
     14#include "../configs/ds1337/ds1337.h" 
    4515 
    4616/** 
     
    6939 * Define the DS1337 I2C addresses 
    7040**/ 
     41#ifndef DS1337_WADDR 
    7142#define DS1337_WADDR        0x68 
     43#endif 
    7244#define DS1337_RADDR        DS1337_WADDR | 0x01 
    7345