Blame view

RIOT/cpu/cc430/include/cc430-rtc.h 1.07 KB
fb11e647   vrobic   reseau statique a...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
  /*
   * 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.
   */
  
  #ifndef CC430_RTC_H
  #define CC430_RTC_H
  #include "periph/rtc.h"
  #include "time.h"
  
  #ifdef __cplusplus
  extern "C" {
  #endif
  
  /**
   * @ingroup     cc430
   */
  
  /**
   * @file
   * @brief   CC430 Real Time Clock
   *
   * @author  Freie Universitรคt Berlin, Computer Systems & Telematics, RIOT
   * @version $Revision $
   */
  
  /**
   * @brief   Mask for RTC alarms
   * @see     ::rtc_set_alarm
   */
  typedef enum {
      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
  } rtc_alarm_mask_t;
  
  /**
   * @brief   Resets any set alarm
   */
  void rtc_remove_alarm(void);
  
  #ifdef __cplusplus
  }
  #endif
  
  #endif