summaryrefslogtreecommitdiff
path: root/components/drivers/rtc/rtc_dm.h
blob: a04d1f3116a0d29f3bf1d0e3444b6f8a4ba41835 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/*
 * Copyright (c) 2006-2022, RT-Thread Development Team
 *
 * SPDX-License-Identifier: Apache-2.0
 *
 * Change Logs:
 * Date           Author       Notes
 * 2022-12-06     GuEe-GUI     first version
 */

#ifndef __RTC_DM_H__
#define __RTC_DM_H__

#include <rthw.h>
#include <rtthread.h>
#include <rtdevice.h>

#include <sys/time.h>

int rtc_dev_set_name(struct rt_device *rtc_dev);
time_t rtc_wkalarm_to_timestamp(struct rt_rtc_wkalarm *alarm);
void rtc_timestamp_to_wkalarm(time_t timestamp, struct rt_rtc_wkalarm *alarm);

#endif /* __RTC_DM_H__ */