📄 simple_rtc.h
字号:
/***********************************************************************
* $Workfile: simple_RTC.h $
* $Revision: 1.0 $
* $Author: WellsK $
* $Date: Sep 22 2002 11:00:10 $
*
* Project: Simple RTC driver
*
* Description:
* This is a very simple RTC driver (not much is really need to use
* the RTC with the LH7A400).
*
* Revision History:
* $Log: //smaicnt2/pvcs/VM/CDROM/archives/KEV7A400/Software/Examples/rtcdemo/simple_RTC.h-arc $
*
* Rev 1.0 Sep 22 2002 11:00:10 WellsK
* Initial revision.
*
*
* SHARP MICROELECTRONICS OF THE AMERICAS MAKES NO REPRESENTATION
* OR WARRANTIES WITH RESPECT TO THE PERFORMANCE OF THIS SOFTWARE,
* AND SPECIFICALLY DISCLAIMS ANY RESPONSIBILITY FOR ANY DAMAGES,
* SPECIAL OR CONSEQUENTIAL, CONNECTED WITH THE USE OF THIS SOFTWARE.
*
* SHARP MICROELECTRONICS OF THE AMERICAS PROVIDES THIS SOFTWARE SOLELY
* FOR THE PURPOSE OF SOFTWARE DEVELOPMENT INCORPORATING THE USE OF A
* SHARP MICROCONTROLLER OR SYSTEM-ON-CHIP PRODUCT. USE OF THIS SOURCE
* FILE IMPLIES ACCEPTANCE OF THESE CONDITIONS.
*
* COPYRIGHT (C) 2002 SHARP MICROELECTRONICS OF THE AMERICAS, INC.
* CAMAS, WA
**********************************************************************/
#ifndef SIMPLE_RTC_H
#define SIMPLE_RTC_H
#ifdef __cplusplus
#if __cplusplus
extern 'C'
{
#endif // __cplusplus
#endif // __cplusplus
#include "SMA_types.h"
//**********************************************************************
// Defines
//**********************************************************************
// RTC interrupt control register
#define RTC_INT_CONTROL 0x80000D14
#define RTC_COUNT 0x80000D00
#define RTC_LOAD 0x80000D04
//**********************************************************************
// Function prototypes
//**********************************************************************
// Enable the RTC
void RTC_Enable (void);
// Return the present RTC count
UNS_32 RTC_Get_Count (void);
// Set the present RTC count
void RTC_Set_Count (UNS_32 count);
#ifdef __cplusplus
}
#endif
#endif // SIMPLE_RTC_H
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -