31 lines
665 B
C
31 lines
665 B
C
/*
|
|
* Copyright (c) 2021-2022 Amlogic, Inc. All rights reserved.
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*/
|
|
|
|
#ifndef __RTC_H__
|
|
#define __RTC_H__
|
|
|
|
/* RTC enbale bit */
|
|
#define RTC_CTRL_EN BIT(12)
|
|
/* RTC alarm enbale bit */
|
|
#define RTC_CTRL_ALM0_EN BIT(0)
|
|
/* RTC alarm mask bit */
|
|
#define RTC_CTRL_ALM0_MASK BIT(0)
|
|
/* RTC INT alarm0 irq status bit */
|
|
#define RTC_INT_ALM0_IRQ BIT(0)
|
|
/* RTC INT clear alarm0 irq bit */
|
|
#define RTC_INT_CLR_ALM0_IRQ BIT(0)
|
|
|
|
/* REBOOT_MODE */
|
|
#define COLD_REBOOT (0)
|
|
|
|
void *MboxGetRTC(void *msg);
|
|
void *MboxSetRTC(void *msg);
|
|
void vRtcInit(void);
|
|
void vStoreRtc(void);
|
|
void vRtcEnableIrq(void);
|
|
void vRtcDisableIrq(void);
|
|
#endif //__RTC_H__
|