📄 timeout.h
字号:
//*----------------------------------------------------------------------------
//* ATMEL Microcontroller Software Support - ROUSSET -
//*----------------------------------------------------------------------------
//* The software is delivered "AS IS" without warranty or condition of any
//* kind, either express, implied or statutory. This includes without
//* limitation any warranty or condition with respect to merchantability or
//* fitness for any particular purpose, or against the infringements of
//* intellectual property rights of others.
//*----------------------------------------------------------------------------
//* File Name : timeout.h
//* Object : 2 simple routines to handle timeout using AT91C_ST_CRTR register
//* Creation : ODi 01/06/2003
//*
//*----------------------------------------------------------------------------
#ifndef AT91_TIMEOUT_H
#define AT91_TIMEOUT_H
typedef struct _AT91S_TIMEOUT {
unsigned int tick;
unsigned int second;
} AT91S_TIMEOUT, *AT91PS_TIMEOUT;
extern void AT91F_InitTimeout(AT91PS_TIMEOUT pTimeout, unsigned int second);
extern int AT91F_TestTimeout(AT91PS_TIMEOUT pTimeout);
#endif // AT91_TIMEOUT_H
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -