⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 rtc.h

📁 基于c的电动机保护程序
💻 H
字号:
/*************************************************************************************
*	Copyright (c) 2005 by National ASIC System Engineering Research Center.
*	PROPRIETARY RIGHTS of ASIC are involved in the subject matter of this 
*	material.  All manufacturing, reproduction, use, and sales rights 
*	pertaining to this subject matter are governed by the license agreement.
*	The recipient of this software implicitly accepts the terms of the license.
*
*	File Name: rtc.h
*
*	File Description:
*			The file define some macro definition used in rtc.c file.
*		
*	Created by Michael <yuyu_zh@seu.edu.cn>, 2005-03-22
**************************************************************************************/

#ifndef RTC_H
#define RTC_H

#include "def.h"
#include "ex_rtc.h"



/* definitin of rtc and watchdog enable configure */
#define	RTCENABLE		0X00
#define WATCHDOG		0X03
#define	RTC_WATCHDOG	0X02

/* definition of map of interrupt enable */
#define	REN			1<<5
#define	WIE			1<<4
#define	AIE			1<<3
#define	MIE			1<<2
#define	SIE			1<<1
#define	SAE			1

/* declaration of function */
STATUS set_ymd(U32 year, U32 month, U32 day);
STATUS set_hms(U32 hour, U32 minute, U32 second);
STATUS set_alarm(U32 hour, U32 minute);
void get_ymd(U32* year, U32 * month, U32* day);
void get_hms(U32* hour, U32* minute, U32* second);
STATUS ModuleRtc(void);

void run_rtc(void);
void rtc_handler(void);
void minute_server(void);
void alarm_server(void);

void set_time(_SystemSetting *time);
void SynTime_Form_EXRTC(void);
void RTC_Int_Inital(void);
void RTC_Int_LISR(int vecter);
extern void RTC_HISR_ENTRY(UNSIGNED argc, VOID *argv);
void EX_read_time(_SystemSetting *time);


#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -