/*********************************/
/* C header for the ALARM module */
/*********************************/

#define ALARM_LOADED

/***** The ALARM_TIME_TYPE type and its copy function *****/

typedef struct {int hours;
                int minutes;
                int mode12h;} ALARM_TIME_TYPE;

#define _ALARM_TIME_TYPE(X,Y) (*(X)=(Y))

/***** The ALARM_TIME_POSITION type and its copy function *****/

typedef int ALARM_TIME_POSITION;

#define _ALARM_TIME_POSITION(X,Y) (*(X)=(Y))

/***** The INITIAL_ALARM_TIME_POSITION constant *****/

#define INITIAL_ALARM_TIME_POSITION 0

/***** The ALARM_DURATION constant *****/

#ifdef SIMUL

#define ALARM_DURATION 3

#else

#define ALARM_DURATION 30

#endif

/***** The ALARM_BEEP_VALUE constant *****/

#ifdef LOAD_BEEP

#ifndef BEEP_LOADED
#include "beep.h"
#endif

#define ALARM_BEEP_VALUE FOUR_BEEPS

#endif

/****** Loading the WATCH.h definitions *****/

#ifndef WATCH_LOADED

#include "watch.h"

#endif
