📄 simple_rtc.c
字号:
/***********************************************************************
* $Workfile: simple_RTC.c $
* $Revision: 1.0 $
* $Author: WellsK $
* $Date: Sep 22 2002 11:00:10 $
*
* Project: Simple RTC driver
*
* Description:
* See the simple_rtc.h header file for a description of this package.
*
* Revision History:
* $Log: //smaicnt2/pvcs/VM/CDROM/archives/KEV7A400/Software/Examples/rtcdemo/simple_RTC.c-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
**********************************************************************/
#include "simple_rtc.h"
//**********************************************************************
// Functions
//**********************************************************************
/***********************************************************************
*
* Function: RTC_Enable
*
* Purpose:
* Enable the RTC.
*
* Processing:
* None (this is a really simple enable function)
*
* Parameters:
* None
*
* Outputs:
* None
*
* Returns:
* Nothing
*
* Notes:
* None
*
**********************************************************************/
void RTC_Enable (void)
{
;
}
/***********************************************************************
*
* Function: RTC_Get_Count
*
* Purpose:
* Return the present RTC count.
*
* Processing:
* See function.
*
* Parameters:
* None
*
* Outputs:
* None
*
* Returns:
* The 32-bit count value from the RTC.
*
* Notes:
* None
*
**********************************************************************/
UNS_32 RTC_Get_Count (void)
{
return * (UNS_32 *) RTC_COUNT;
}
/***********************************************************************
*
* Function: RTC_Set_Count
*
* Purpose:
* Set the present RTC count.
*
* Processing:
* See function.
*
* Parameters:
* count: value to set to the RTC to
*
* Outputs:
* None
*
* Returns:
* Nothing
*
* Notes:
* None
*
**********************************************************************/
void RTC_Set_Count (UNS_32 count)
{
* (UNS_32 *) RTC_LOAD = count;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -