timer_func.h

来自「upsd 3200序列的usb驱动」· C头文件 代码 · 共 29 行

H
29
字号

/*---------------------------------------------------------------------------
Copyright (c) 2002 ST Microelectronics
This example demo code is provided as is and has no warranty,
implied or otherwise.  You are free to use/modify any of the provided
code at your own risk in your applications with the expressed limitation
of liability (see below) so long as your product using the code contains
at least one uPSD products (device).

LIMITATION OF LIABILITY:   NEITHER STMicroelectronics NOR ITS VENDORS OR 
AGENTS SHALL BE LIABLE FOR ANY LOSS OF PROFITS, LOSS OF USE, LOSS OF DATA,
INTERRUPTION OF BUSINESS, NOR FOR INDIRECT, SPECIAL, INCIDENTAL OR
CONSEQUENTIAL DAMAGES OF ANY KIND WHETHER UNDER THIS AGREEMENT OR
OTHERWISE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
--------------------------------------------------------------------------*/

//-- Prototypes----------------------------------------------------------------

void do_timer0(void);	// It will be executed automatically when TIMER 0 overflows.
void delay_ms(uint);	//	measured performance w/16Mhz xtal for Keil timer routines
void delay_1sec(void);
void delay_2sec(void);
void delay_10sec(void);
void delay_0_5sec(void);
void delay_0_1sec(void);
void delay_46us(void);	// Delay of 44.8u sec. measured   
void delay_14us(void); 	// Delay of 14.8u sec. measured 

⌨️ 快捷键说明

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