31 lines
480 B
C
31 lines
480 B
C
|
/*
|
||
|
* Copyright (c) 2006-2018, RT-Thread Development Team
|
||
|
*
|
||
|
* SPDX-License-Identifier: Apache-2.0
|
||
|
*
|
||
|
* Change Logs:
|
||
|
* Date Author Notes
|
||
|
* 2018-09-15 flyingcys 1st version
|
||
|
*/
|
||
|
|
||
|
#ifndef DRV_RTC_H__
|
||
|
#define DRV_RTC_H__
|
||
|
|
||
|
#include <rtdevice.h>
|
||
|
|
||
|
#ifdef RT_USING_ALARM
|
||
|
#include <alarm.h>
|
||
|
#endif
|
||
|
|
||
|
struct rt_rtc_device
|
||
|
{
|
||
|
struct rt_device device;
|
||
|
#ifdef RT_USING_ALARM
|
||
|
struct rt_rtc_wkalarm wkalarm;
|
||
|
#endif
|
||
|
};
|
||
|
|
||
|
int wm_hw_rtc_init(void);
|
||
|
|
||
|
#endif
|