代码搜索结果
找到约 10,000 项符合
RTC 的代码
rtc.h
#ifndef __RTC_H__
#define __RTC_H__
typedef struct{
unsigned short year;
unsigned char month;
unsigned char day;
unsigned char weekday;
unsigned char hour;
unsigned char min;
unsigne
rtc.c
#include "../inc/44b.h"
#include "../inc/rtc.h"
#define RTC_RW_EN() rRTCCON = 1 //|= 1
#define RTC_RW_DS() rRTCCON &= 0xfe
extern int MCLK;
void RtcSetDay(TIME_STRUC *time)
{
RTC_R
rtc.h
#ifndef __RTC_H__
#define __RTC_H__
void Test_Rtc_Tick(void);
void Display_Rtc(void);
void Rtc_Init(void);
#define TESTYEAR (0x03)
#define TESTMONTH (0x9)
#define TESTDAY (0x30)
#define
rtc.h
#ifndef __RTC_H__
#define __RTC_H__
#include "..\inc\def.h"
#define RTC_SECOND_CHANGE 1
#define RTC_MINUTE_CHANGE 2
#define RTC_HOUR_CHANGE 3
#define RTC_DAY_CHANGE 4
#define RTC_MONTH
rtc.h
#ifndef _RTC_INCLUDE_H_
#define _RTC_INCLUDE_H_
#include "Includes.h"
struct RTC
{
unsigned char year;
unsigned char month;
unsigned char day;
unsigned char week;
unsigned char
rtc.cpp
#include "rtc.h"
void GetRTC(struct RTC *pstRTC)
{
rRTCCON = 0x01; //Enable
pstRTC->year = rBCDYEAR;
pstRTC->month = rBCDMON;
pstRTC->day = rBCDDAY;
pstRTC->hour = rBCDHOUR;
pstRT
rtc.c
#include "def.h"
#include "2410addr.h"
#include "rtcapi.h"
#include "2410lib.h"
#define TotSecPerDay 86400
#define TotDaysPerYear 365
#define TotDaysPer4Year 1461
#define TotDaysPer100Year
rtc.h
/*
*********************************************************
// Copyright (c)2003 Ark Pioneer Microelectronics Ltd.,
// All Rights Reserved
//
// Filename:rtc.h
// Version:1.0
// Created:2004.0