clock.h

来自「MANTIS是由科罗拉多大学开发的传感器网络嵌入式操作系统。 这是mantis」· C头文件 代码 · 共 34 行

H
34
字号
#ifndef _CLOCK_H_#define _CLOCK_H_#include "timer.h"// constants/macros/typdefstypedef struct AbsoluteTimerStructure{	        uint16_t mtics; 	uint8_t hours;	uint8_t minutes;	uint8_t seconds;	uint8_t day;	uint8_t month;	uint16_t year;}ATimer;// month days constantsstatic char __attribute__ ((progmem)) MonthDayTable[] = {31,28,31,30,31,30,31,31,30,31,30,31};void clock_init();void clock_service();void clock_set_second(uint8_t sec);void clock_set_minute(uint8_t min);void clock_set_hours(uint8_t h);void clock_set_day(uint8_t d);void clock_set_month(uint8_t mon);void clock_set_years(uint16_t y);void start(void);ATimer* clock_get_time();#endif /* _CLOCK_H_ */

⌨️ 快捷键说明

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