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

📄 clock.h

📁 MANTIS是由科罗拉多大学开发的传感器网络嵌入式操作系统。 这是mantis的0.9.5版本的源码。
💻 H
字号:
#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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -