2019-03-27 16:49:26 +08:00
|
|
|
/*
|
2019-03-29 10:50:01 +08:00
|
|
|
* Copyright (c) 2019 Winner Microelectronics Co., Ltd.
|
2019-03-27 16:49:26 +08:00
|
|
|
*
|
|
|
|
* 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
|
2024-08-24 06:15:09 +08:00
|
|
|
#include "drivers/dev_alarm.h"
|
2019-03-27 16:49:26 +08:00
|
|
|
#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
|