⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 rtc.h

📁 这个是单片机4200的ui程序
💻 H
字号:
/******************************************************************************
*         Copyright (c) 2006 Primax Corporation,Ltd. All rights reserved.
*
* Author:            Junny Fu
*
* Description:       
*
* Revision History:
* Date      Author   Description

******************************************************************************/

#ifndef	__RTC
#define	__RTC

#include "standard.h"

#define WRITE_ADR(p,c)  (*((volatile Uint32 *)(p)) = ((Uint32)(c)))
#define READ_ADR(p)     (Uint32)(*(volatile Uint32 *)(p))
#define WRITE_BYTE(p,c) (*(volatile Uint8 *)(p)) = ((Uint8)(c))
#define READ_BYTE(p) (*(volatile Uint8 *)(p))

API_RET	EnableRTCAccess(void);
API_RET	DisableRTCAccess(void);
API_RET	SetRTC_C(Uint32 data);
Uint32	ReadRTC_C(void);
Bool 	IsRTCValid(void);
API_RET	SetRTCValid(void);


#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -