timer.h

来自「可用来自做的AVR-USB-ISP的源码,内符电路图,用AVR M8来模拟USB」· C头文件 代码 · 共 22 行

H
22
字号
/************************************************************************************************ * Project: generic * Author: Christian Ulrich
 * Contact: christian at ullihome dot de
 * * Creation Date: 2007-03-22 * Copyright: (c) 2007 by Christian Ulrich * License: GPLv2 ***********************************************************************************************/
#ifndef __timer_h_included__#define __timer_h_included__
#define TIMER_overflowed() TIMER_timeout==0

extern volatile uint8_t TIMER_timeout;

void TIMER_start(uint8_t timeout);void TIMER_delay(uint8_t timeout);

#endif

⌨️ 快捷键说明

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