port.h
来自「< C语言嵌入式系统开发>>一书配套源代码,C51代码,对于5」· C头文件 代码 · 共 42 行
H
42 行
/*------------------------------------------------------------------*-
Port.H (v1.00)
------------------------------------------------------------------
'Port Header' for project GOATS2 (see Chap 5)
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.
-*------------------------------------------------------------------*/
#ifndef _PORT_H
#define _PORT_H
// ------ Switch_Wait.C -----------------------------------------------
// Connect switch to this pin
sbit Switch_pin = P1^0;
// ------ Display_count.C -----------------------------------------------
// Display count (binary) on this port
#define Count_port P3
#endif
/*------------------------------------------------------------------*-
---- END OF FILE -------------------------------------------------
-*------------------------------------------------------------------*/
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?