2014-08-27 18:47:31 +02:00
|
|
|
/*
|
|
|
|
* Copyright 2010, Freie Universitaet Berlin (FUB). All rights reserved.
|
|
|
|
*
|
|
|
|
* This file is subject to the terms and conditions of the GNU Lesser
|
|
|
|
* General Public License v2.1. See the file LICENSE in the top level
|
|
|
|
* directory for more details.
|
|
|
|
*/
|
2010-12-13 01:29:46 +01:00
|
|
|
|
|
|
|
#ifndef CC430_RTC_H
|
|
|
|
#define CC430_RTC_H
|
2014-11-20 17:55:28 +01:00
|
|
|
#include "periph/rtc.h"
|
2013-12-16 17:54:58 +01:00
|
|
|
#include "time.h"
|
2010-12-13 01:29:46 +01:00
|
|
|
|
2014-10-13 10:53:20 +02:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2010-12-13 01:29:46 +01:00
|
|
|
/**
|
2018-06-01 12:25:00 +02:00
|
|
|
* @ingroup cpu_cc430
|
2010-12-13 01:29:46 +01:00
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
2015-05-22 07:34:41 +02:00
|
|
|
* @file
|
2010-12-13 01:29:46 +01:00
|
|
|
* @brief CC430 Real Time Clock
|
|
|
|
*
|
2013-03-07 20:51:26 +01:00
|
|
|
* @author Freie Universität Berlin, Computer Systems & Telematics, RIOT
|
2010-12-13 01:29:46 +01:00
|
|
|
* @version $Revision $
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
2014-07-31 20:46:28 +02:00
|
|
|
* @brief Mask for RTC alarms
|
|
|
|
* @see ::rtc_set_alarm
|
2010-12-13 01:29:46 +01:00
|
|
|
*/
|
|
|
|
typedef enum {
|
2018-02-05 11:39:41 +01:00
|
|
|
RTC_ALARM_DISABLED = 0x00, /**< Alarm disables */
|
|
|
|
RTC_ALARM_MIN = 0x01, /**< Alarm mask for Minutes */
|
|
|
|
RTC_ALARM_HOUR = 0x02, /**< Alarm mask for Hours */
|
|
|
|
RTC_ALARM_DOW = 0x04, /**< Alarm mask for Day of Week */
|
|
|
|
RTC_ALARM_DOM = 0x08 /**< Alarm mask for Day of Month */
|
2010-12-13 01:29:46 +01:00
|
|
|
} rtc_alarm_mask_t;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief Resets any set alarm
|
|
|
|
*/
|
|
|
|
void rtc_remove_alarm(void);
|
|
|
|
|
2014-10-13 10:53:20 +02:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
2010-12-13 01:29:46 +01:00
|
|
|
|
2017-05-23 18:19:52 +02:00
|
|
|
#endif /* CC430_RTC_H */
|