代码搜索结果

找到约 10,000 项符合 Timer 的代码

timer.h

/************************************************************************ * file name: timer.h * description: for test use. * modification history * -------------------- * 2003-5-3 9:21:11,

timer.c

#include #include "44b.h" #include "44blib.h" #include "def.h" void Main(void) { #define Prescaler 0x9600 U32 TCMPB=1000; char sa; Port_Init(); Uart_Init(0

timer.h

/* timer.h -- Timer related definitions * * This code is taken from example code in the Xtensa Microprocessor * Programmer's Guide. * * WARNING: It is highly unlikely that this code works as is

timer.cpp

#include "stdafx.h" #include #include #include "timer.h" /* 缺省构造函数,初始化为系统当前时间 */ timer::timer() { // 取系统当前时间 long now; time( &now ); tm tmnow = *localtime( &now );

timer.h

#ifndef HEADFILE_TIMER // 预编译,检查宏是否已定义,以免重复包含 #define HEADFILE_TIMER // 宏定义 /* timer类: 实现时钟及计时器功能 */ class timer{ int _hour; int _minute; int _second; long _lstart, _lend; // 存储计时

timer.c

/* * $Id: timer.c,v 1.8 2007/10/23 07:52:04 sunny Exp $ */ /* ******************************************************************************* ** ** This device driver was created by Applilet fo

timer.h

/* * $Id: timer.h,v 1.8 2007/08/17 06:21:52 sunny Exp $ */ /* ******************************************************************************* ** ** This device driver was created by Applilet fo

timer.c

#include #include #include int alphanum = 0; int counter = 0; void interrupt far handler(void) { if (++counter == 273) // 15 seconds { alph