rtc.h

来自「8051试验程序 基础教材」· C头文件 代码 · 共 28 行

H
28
字号
/*
-02/24/2006: Petre M.
  -this file contains declarations of functions and variables used in rtc.c
*/




//the weekday, day, month and year are represented with their digits
//Year has only 3 digits because the thousand digit cannot be represented on the display
//Because this is a static variable, it is declared only as external
//__no_init __idata struct Date_struct Date @0x21;

__idata unsigned char Fault_Days;

#pragma location = "Data_in_Flash"
__code const char Months[12]={31,28,31,30,31,30, 31,31,30,31,30,31};

  void Setup_RTC(void);
  void Midnight_Management(void);
  void Midnight_Management_PSM1(void);
  void Store_time(char __idata *ptr);
  void Setup_RTC_PSM1(void);
  void Calendar_write(void);
  void Calendar_read(void);


⌨️ 快捷键说明

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