Contiki 3.x
Main Page
Related Pages
Modules
Data Structures
Files
Examples
File List
Globals
cpu
x86
drivers
legacy_pc
rtc.h
1
/*
2
* Copyright (C) 2015, Intel Corporation. All rights reserved.
3
*
4
* Redistribution and use in source and binary forms, with or without
5
* modification, are permitted provided that the following conditions
6
* are met:
7
* 1. Redistributions of source code must retain the above copyright
8
* notice, this list of conditions and the following disclaimer.
9
* 2. Redistributions in binary form must reproduce the above copyright
10
* notice, this list of conditions and the following disclaimer in the
11
* documentation and/or other materials provided with the distribution.
12
*
13
* 3. Neither the name of the copyright holder nor the names of its
14
* contributors may be used to endorse or promote products derived
15
* from this software without specific prior written permission.
16
*
17
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
18
* ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
19
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
20
* FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
21
* COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
22
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
23
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
24
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
25
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
26
* STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
27
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
28
* OF THE POSSIBILITY OF SUCH DAMAGE.
29
*/
30
31
#ifndef RTC_H
32
#define RTC_H
33
34
typedef
enum
{
35
RTC_8192_HZ = 2,
36
RTC_4096_HZ = 3,
37
RTC_2048_HZ = 4,
38
RTC_1024_HZ = 5,
39
RTC_512_HZ = 6,
40
RTC_256_HZ = 7,
41
RTC_128_HZ = 8,
42
RTC_64_HZ = 9,
43
RTC_32_HZ = 10,
44
RTC_16_HZ = 11,
45
RTC_8_HZ = 12,
46
RTC_4_HZ = 13,
47
RTC_2_HZ = 14,
48
} rtc_frequency_t;
49
50
void
rtc_init(rtc_frequency_t frequency,
void
(*callback)(
void
));
51
52
#endif
/* RTC_H */
Generated on Thu Jul 6 2017 20:52:49 for Contiki 3.x by
1.8.6