亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? timer.c

?? MCS-51的一個(gè)Free小型操作系統(tǒng),在KeilC中下編譯工作
?? C
字號(hào):
/**
 * \addtogroup timer
 * @{
 */

/**
 * \file
 * Timer library implementation.
 * \author
 * Adam Dunkels <adam@sics.se>
 */

/*
 * Copyright (c) 2004, Swedish Institute of Computer Science.
 * All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions
 * are met:
 * 1. Redistributions of source code must retain the above copyright
 *    notice, this list of conditions and the following disclaimer.
 * 2. Redistributions in binary form must reproduce the above copyright
 *    notice, this list of conditions and the following disclaimer in the
 *    documentation and/or other materials provided with the distribution.
 * 3. Neither the name of the Institute nor the names of its contributors
 *    may be used to endorse or promote products derived from this software
 *    without specific prior written permission.
 *
 * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND
 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 * ARE DISCLAIMED.  IN NO EVENT SHALL THE INSTITUTE OR CONTRIBUTORS BE LIABLE
 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 * SUCH DAMAGE.
 *
 * This file is part of the uIP TCP/IP stack
 *
 * Author: Adam Dunkels <adam@sics.se>
 *
 * $Id: timer.c,v 1.2 2006/06/12 08:00:30 adam Exp $
 */

#include "clock.h"
#include "timer.h"

/*---------------------------------------------------------------------------*/
/**
 * Set a timer.
 *
 * This function is used to set a timer for a time sometime in the
 * future. The function timer_expired() will evaluate to true after
 * the timer has expired.
 *
 * \param t A pointer to the timer
 * \param interval The interval before the timer expires.
 *
 */
void
timer_set(struct timer *t, clock_time_t interval)
{
  t->interval = interval;
  t->start = clock_time();
}
/*---------------------------------------------------------------------------*/
/**
 * Reset the timer with the same interval.
 *
 * This function resets the timer with the same interval that was
 * given to the timer_set() function. The start point of the interval
 * is the exact time that the timer last expired. Therefore, this
 * function will cause the timer to be stable over time, unlike the
 * timer_rester() function.
 *
 * \param t A pointer to the timer.
 *
 * \sa timer_restart()
 */
void
timer_reset(struct timer *t)
{
  t->start += t->interval;
}
/*---------------------------------------------------------------------------*/
/**
 * Restart the timer from the current point in time
 *
 * This function restarts a timer with the same interval that was
 * given to the timer_set() function. The timer will start at the
 * current time.
 *
 * \note A periodic timer will drift if this function is used to reset
 * it. For preioric timers, use the timer_reset() function instead.
 *
 * \param t A pointer to the timer.
 *
 * \sa timer_reset()
 */
void
timer_restart(struct timer *t)
{
  t->start = clock_time();
}
/*---------------------------------------------------------------------------*/
/**
 * Check if a timer has expired.
 *
 * This function tests if a timer has expired and returns true or
 * false depending on its status.
 *
 * \param t A pointer to the timer
 *
 * \return Non-zero if the timer has expired, zero otherwise.
 *
 */
int
timer_expired(struct timer *t)
{
  return (clock_time_t)(clock_time() - t->start) >= (clock_time_t)t->interval;
}
/*---------------------------------------------------------------------------*/

/** @} */

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
美女精品自拍一二三四| 欧美日韩免费电影| 国产一区二区网址| 激情丁香综合五月| 久久精品国产久精国产| 国内精品写真在线观看 | 成人免费观看男女羞羞视频| 激情五月激情综合网| 极品少妇xxxx精品少妇| 国产麻豆精品一区二区| 国产精品1024| 成人18视频日本| av影院午夜一区| 综合av第一页| 午夜伊人狠狠久久| 亚洲精品国产视频| 一区二区三区四区在线播放| 亚洲欧美区自拍先锋| 亚洲激情综合网| 亚洲第一搞黄网站| 久久9热精品视频| 波多野结衣亚洲| 捆绑紧缚一区二区三区视频 | 有坂深雪av一区二区精品| 综合自拍亚洲综合图不卡区| 亚洲免费av高清| 午夜精品成人在线视频| 久久精品国产亚洲5555| 成人黄色大片在线观看| 日本高清不卡视频| 91精品国产综合久久精品麻豆| 精品日韩在线一区| 国产精品久久久久一区 | 国产夫妻精品视频| 99re免费视频精品全部| 欧美另类一区二区三区| 国产亚洲欧美日韩俺去了| 亚洲日本va在线观看| 水野朝阳av一区二区三区| 国产乱码一区二区三区| 色婷婷综合视频在线观看| 日韩欧美成人一区| 亚洲欧美日韩中文播放| 奇米精品一区二区三区四区| 国产成人精品亚洲777人妖| 欧美无乱码久久久免费午夜一区 | 亚洲欧洲成人av每日更新| 午夜精品福利久久久| 国产成人精品免费一区二区| 欧洲一区二区三区在线| 亚洲精品一线二线三线| 亚洲黄网站在线观看| 国内精品久久久久影院一蜜桃| 色综合中文字幕国产| 日韩三区在线观看| 亚洲精品国产精品乱码不99 | 99久久精品国产麻豆演员表| 337p亚洲精品色噜噜噜| 中文字幕一区二区三区不卡在线| 免费在线欧美视频| 91福利国产精品| 国产丝袜美腿一区二区三区| 天天影视网天天综合色在线播放| 国产不卡视频在线观看| 欧美一区二区三区思思人| 亚洲欧美综合另类在线卡通| 91黄色激情网站| 国产日韩v精品一区二区| 日韩av在线发布| 在线国产电影不卡| 国产精品三级av| 精品一区二区三区香蕉蜜桃| 在线观看视频一区| 1024成人网色www| 国产一区二区三区综合 | 亚洲成人一区二区在线观看| 成人app在线观看| 日韩欧美aaaaaa| 天天综合日日夜夜精品| 欧美综合亚洲图片综合区| 国产精品精品国产色婷婷| 黄色日韩三级电影| 欧美一级在线免费| 午夜精品久久久久久久久久| 91久久国产综合久久| 综合久久综合久久| 成人av一区二区三区| 国产欧美精品一区| 精品一区二区三区免费观看| 69堂亚洲精品首页| 舔着乳尖日韩一区| 欧美日本韩国一区二区三区视频| 一区二区三区精品久久久| 91免费在线播放| 亚洲欧洲韩国日本视频| 成人av网站在线| 国产精品天美传媒| 成人免费视频视频| 中文字幕va一区二区三区| 国产精品99久久不卡二区| 久久婷婷综合激情| 国产乱码精品一区二区三区av | 国产精品成人网| 成人激情校园春色| 国产精品久久久久三级| 波多野结衣中文一区| 中文字幕在线一区二区三区| 91亚洲大成网污www| 亚洲精品福利视频网站| 欧洲一区在线电影| 亚洲电影中文字幕在线观看| 欧美视频一区二区在线观看| 亚洲大片精品永久免费| 欧美精品在线观看播放| 日本v片在线高清不卡在线观看| 日韩一区二区在线观看视频| 美女尤物国产一区| 亚洲一级在线观看| 欧美精品在欧美一区二区少妇| 天堂久久一区二区三区| 日韩欧美一二三四区| 极品少妇xxxx精品少妇| 国产精品美女久久久久久久久久久 | 中文字幕亚洲区| 91亚洲精品久久久蜜桃网站 | 亚洲3atv精品一区二区三区| 欧美精品v国产精品v日韩精品| 日本特黄久久久高潮| 久久伊99综合婷婷久久伊| gogogo免费视频观看亚洲一| 一区二区三区丝袜| 91精品国产福利| 丁香亚洲综合激情啪啪综合| 亚洲欧美日韩国产成人精品影院 | 欧美日韩视频在线一区二区| 秋霞电影一区二区| 亚洲国产成人私人影院tom| 在线亚洲免费视频| 国产制服丝袜一区| 亚洲欧美视频在线观看视频| 欧美日韩国产成人在线91 | 精品91自产拍在线观看一区| 成人av网站大全| 日本 国产 欧美色综合| 国产精品色眯眯| 91精品国产综合久久香蕉麻豆| 国产乱色国产精品免费视频| 一区二区三区蜜桃| 精品va天堂亚洲国产| 一本色道久久加勒比精品| 久久国产剧场电影| 亚洲人妖av一区二区| 欧美人xxxx| 成人av中文字幕| 日本在线观看不卡视频| 亚洲色图欧美偷拍| 欧美成人午夜电影| 欧洲在线/亚洲| 国产成人精品一区二区三区四区| 一区二区成人在线| 国产婷婷一区二区| 91精品婷婷国产综合久久竹菊| 成人永久aaa| 美女视频黄免费的久久| 日韩毛片精品高清免费| 日韩一区二区三区视频| 91蝌蚪porny九色| 国产乱对白刺激视频不卡| 亚洲高清在线精品| 国产精品久久久爽爽爽麻豆色哟哟 | 在线综合亚洲欧美在线视频| av一二三不卡影片| 韩国av一区二区三区在线观看| 亚洲午夜精品17c| 国产精品色眯眯| 2021久久国产精品不只是精品| 欧美日韩视频在线第一区| 91日韩在线专区| 国产成人亚洲综合a∨婷婷| 日本va欧美va瓶| 亚洲成人免费在线| 亚洲精品ww久久久久久p站| 欧美激情在线看| 久久看人人爽人人| 欧美一区二区三区四区高清| 欧美日韩不卡视频| 91免费观看国产| 成人av影院在线| 懂色av中文字幕一区二区三区| 国产精品伊人色| 国产一区二区91| 精品在线观看视频| 麻豆专区一区二区三区四区五区| 国产乱码精品1区2区3区| 久久99精品久久久久久久久久久久| 亚洲成a人片综合在线| 亚洲高清在线精品| 亚洲1区2区3区视频| 亚洲bt欧美bt精品777| 亚洲第四色夜色|