代码搜索结果
找到约 10,000 项符合
RTC 的代码
rtc.h
/*
* (C) Copyright 2001
* Wolfgang Denk, DENX Software Engineering, wd@denx.de.
*
* See file CREDITS for list of people who contributed to this
* project.
*
* This program is free software; you
rtc.c
/* rtc not implemented yet */
int cma_rtc_not_implemented = 1;
rtc.h
/* rtc not implemented yet */
extern int cma_rtc_not_implemented;
rtc.c
/****************************************************************************
*
* SciTech OS Portability Manager Library
*
* ========================================================
rtc.c
/*
* (C) Copyright 2002
* Wolfgang Denk, DENX Software Engineering, wd@denx.de.
*
* See file CREDITS for list of people who contributed to this
* project.
*
* This program is free software; you
rtc.d
..\out\rtc.o: ..\source\Driver\RTC\RTC.c
..\out\rtc.o: ..\source\Driver\RTC\RTC.h
..\out\rtc.o: d:\Keil\ARM\RV31\INC\stdlib.h
..\out\rtc.o: d:\Keil\ARM\RV31\INC\string.h
..\out\rtc.o: d:\Keil\ARM\
rtc.h
#ifndef _RTC_H_
#define _RTC_H_
#include
#include
#include
#define RTC_BCD2INT(X) (((((X) & 0xF0) >> 4) * 10) + ((X) & 0xF))
#define RTC_INT2BCD(X) ((((X) / 1
rtc.c
#include "RTC.h"
void RTC_Init()
{
RTCCON = 0;
}
void RTC_Get(TIME_T * pstTime)
{
pstTime->nYear = RTC_BCD2INT(BCDYEAR) + 2000;
pstTime->nMon = RTC_BCD2INT(BCDMON);
pstTime->nDay =