|
|
|
@ -90,21 +90,44 @@
|
|
|
|
|
#define DS1337_ALARM_DT_DOW true
|
|
|
|
|
#define DS1337_ALARM_DT_DATE false
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Alarm 1: Every second
|
|
|
|
|
* Alarm 2: Every minute (at 00s)
|
|
|
|
|
**/
|
|
|
|
|
#define DS1337_ALARM_PERA B00001111
|
|
|
|
|
#define DS1337_ALARM_PER_SEC DS1337_ALARM_PERA /* Used for alarm 1 only*/
|
|
|
|
|
#define DS1337_ALARM_PER_MIN DS1337_ALARM_PERA /* Used for alarm 2 only*/
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Alarm 1: Match second
|
|
|
|
|
* Alarm 2: Match minute
|
|
|
|
|
**/
|
|
|
|
|
#define DS1337_ALARM_MCH_SEC B00001110 /* Used for alarm 1 only */
|
|
|
|
|
#define DS1337_ALARM_MCH_MIN B00001100 /* Used for alarm 2 only */
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Alarm 1: Match minutes and seconds
|
|
|
|
|
* Alarm 2: Match hours and minutes
|
|
|
|
|
**/
|
|
|
|
|
#define DS1337_ALARM_MCH_MINSEC B00001100 /* Used for alarm 1 only */
|
|
|
|
|
#define DS1337_ALARM_MCH_HRMIN B00001000 /* Used for alarm 2 only */
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Alarm 1: Match hour, minute and second
|
|
|
|
|
**/
|
|
|
|
|
#define DS1337_ALARM_MCH_HRMINSEC B00001000 /* Used for alarm 1 only */
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Alarm 1: Match date, hour, minute, second
|
|
|
|
|
* Alarm 2: Match da,te hour, minute
|
|
|
|
|
**/
|
|
|
|
|
#define DS1337_ALARM_MCH_DATEHRMINSEC B00000000 /* Used for alarm 1 only */
|
|
|
|
|
#define DS1337_ALARM_MCH_DATEHRMIN B00000000 /* Used for alarm 2 only */
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Alarm 1: Match day of the week, hour, minute, second
|
|
|
|
|
* Alarm 2: Match day of the week, hour, minute
|
|
|
|
|
**/
|
|
|
|
|
#define DS1337_ALARM_MCH_DOWHRMINSEC B10000000 /* Used for alarm 1 only */
|
|
|
|
|
#define DS1337_ALARM_MCH_DOWHRMIN B10000000 /* Used for alarm 2 only */
|
|
|
|
|
|
|
|
|
|