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

📄 timer.h

📁 阿根廷教授编写的嵌入式internet的实验教程的高质量代码
💻 H
字号:
/******************************************************************************************
   Timer.h (v1.0)
-------------------------------------------------------------------------------------
This code is from the book:
"Embedded Internet: TCP/IP Basics, Implementation and Applications" by Sergio Scaglia
[Pearson Education, 2006 - ISBN: 0-32-130638-4]

This code is copyright (c) 2006 by Sergio Scaglia, and it may only be used for educational
purposes.  For commercial use, please contact me at sscaglia@intramarket.com.ar
For more information and updates, please visit www.embeddedinternet.org
******************************************************************************************/

#ifndef __timer_H
#define __timer_H

#include "hardware.h"

#define NumberOfTimers	         5
#define ledtimer		 0
#define ledapptimer		 1
#define apptimer		 2
#define buttontimer		 3
#ifdef ETHERNET
  #define arptimer		 4
#endif




void INTERRUPTSinit(void);
void timer_init(void);
void timer_start(char timerID, unsigned int timeout);
void timer_stop(char timerID);
unsigned int timer_expired(char timerID);

#endif

⌨️ 快捷键说明

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