?? main.c
字號:
/*------------------------------------------------------------------*-
Main.C (v1.00)
------------------------------------------------------------------
Testing timeout loops.
COPYRIGHT
---------
This code is associated with the book:
EMBEDDED C by Michael J. Pont
[Pearson Education, 2002: ISBN: 0-201-79523-X].
This code is copyright (c) 2001 by Michael J. Pont.
See book for copyright details and other information.
-*------------------------------------------------------------------*/
#include <reg52.H>
#include "TimeoutL.H"
// Typedefs (see Chap 5)
typedef unsigned char tByte;
typedef unsigned int tWord;
typedef unsigned long tLong;
// Function prototypes
void Test_Timeout(void);
/*------------------------------------------------------------------*/
void main(void)
{
while(1)
{
Test_Timeout();
}
}
/*------------------------------------------------------------------*/
void Test_Timeout(void)
{
tWord Timeout_loop = LOOP_TIMEOUT_INIT_010ms;
// Simple loop timeout...
while (++Timeout_loop != 1);
}
/*------------------------------------------------------------------*-
---- END OF FILE -------------------------------------------------
-*------------------------------------------------------------------*/
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -