rtc.h

来自「这个是单片机4200的ui程序」· C头文件 代码 · 共 32 行

H
32
字号
/******************************************************************************
*         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 + =
减小字号Ctrl + -
显示快捷键?