Last change
on this file since 440 was 389, checked in by coas-nagasima, 5 years ago |
ビルドが通るよう更新
|
-
Property svn:eol-style
set to
native
-
Property svn:mime-type
set to
text/x-chdr;charset=UTF-8
|
File size:
1.4 KB
|
Rev | Line | |
---|
[388] | 1 |
|
---|
| 2 | /** \addtogroup hal */
|
---|
| 3 | /** @{*/
|
---|
| 4 | /* mbed Microcontroller Library
|
---|
| 5 | * Copyright (c) 2006-2013 ARM Limited
|
---|
| 6 | *
|
---|
| 7 | * Licensed under the Apache License, Version 2.0 (the "License");
|
---|
| 8 | * you may not use this file except in compliance with the License.
|
---|
| 9 | * You may obtain a copy of the License at
|
---|
| 10 | *
|
---|
| 11 | * http://www.apache.org/licenses/LICENSE-2.0
|
---|
| 12 | *
|
---|
| 13 | * Unless required by applicable law or agreed to in writing, software
|
---|
| 14 | * distributed under the License is distributed on an "AS IS" BASIS,
|
---|
| 15 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
---|
| 16 | * See the License for the specific language governing permissions and
|
---|
| 17 | * limitations under the License.
|
---|
| 18 | */
|
---|
| 19 | #ifndef MBED_RTC_API_H
|
---|
| 20 | #define MBED_RTC_API_H
|
---|
| 21 |
|
---|
| 22 | #include "device.h"
|
---|
| 23 |
|
---|
| 24 | #if DEVICE_RTC
|
---|
| 25 |
|
---|
| 26 | #include <time.h>
|
---|
| 27 |
|
---|
| 28 | #ifdef __cplusplus
|
---|
| 29 | extern "C" {
|
---|
| 30 | #endif
|
---|
| 31 |
|
---|
| 32 | /**
|
---|
| 33 | * \defgroup hal_rtc RTC hal functions
|
---|
| 34 | * @{
|
---|
| 35 | */
|
---|
| 36 |
|
---|
| 37 | /** Initialize the RTC peripheral
|
---|
| 38 | *
|
---|
| 39 | */
|
---|
| 40 | void rtc_init(void);
|
---|
| 41 |
|
---|
| 42 | /** Deinitialize RTC
|
---|
| 43 | *
|
---|
| 44 | * TODO: The function is not used by rtc api in mbed-drivers.
|
---|
| 45 | */
|
---|
| 46 | void rtc_free(void);
|
---|
| 47 |
|
---|
| 48 | /** Get the RTC enable status
|
---|
| 49 | *
|
---|
| 50 | * @retval 0 disabled
|
---|
| 51 | * @retval 1 enabled
|
---|
| 52 | */
|
---|
| 53 | int rtc_isenabled(void);
|
---|
| 54 |
|
---|
| 55 | /** Get the current time from the RTC peripheral
|
---|
| 56 | *
|
---|
| 57 | * @return The current time
|
---|
| 58 | */
|
---|
| 59 | time_t rtc_read(void);
|
---|
| 60 |
|
---|
| 61 | /** Set the current time to the RTC peripheral
|
---|
| 62 | *
|
---|
| 63 | * @param t The current time to be set
|
---|
| 64 | */
|
---|
| 65 | void rtc_write(time_t t);
|
---|
| 66 |
|
---|
| 67 | /**@}*/
|
---|
| 68 |
|
---|
| 69 | #ifdef __cplusplus
|
---|
| 70 | }
|
---|
| 71 | #endif
|
---|
| 72 |
|
---|
| 73 | #endif
|
---|
| 74 |
|
---|
| 75 | #endif
|
---|
| 76 |
|
---|
| 77 | /** @}*/
|
---|
Note:
See
TracBrowser
for help on using the repository browser.