时间触发嵌入式系统设计模式:使用8051系列微控制器开发可靠应用

源代码在线查看: port.h

软件大小: 35052 K
上传用户: jjdgtsd80ux
关键词: 8051 时间触发 嵌入式系统 微控制器
下载地址: 免注册下载 普通下载 VIP

相关代码

				/*------------------------------------------------------------------*-
				
				   Port.H (v1.00)
				
				  ------------------------------------------------------------------
				
				  'Port Header' (see Chap 10) for the project 2_06_10i (see Chap 14)
				
				
				   COPYRIGHT
				   ---------
				
				   This code is from the book:
				
				   PATTERNS FOR TIME-TRIGGERED EMBEDDED SYSTEMS by Michael J. Pont 
				   [Pearson Education, 2001; ISBN: 0-201-33138-1].
				
				   This code is copyright (c) 2001 by Michael J. Pont.
				 
				   See book for copyright details and other information.
				
				-*------------------------------------------------------------------*/
				
				// ------ Sch51.C ----------------------------------------
				
				// Comment this line out if error reporting is NOT required
				#define SCH_REPORT_ERRORS
				
				#ifdef SCH_REPORT_ERRORS
				// The port on which error codes will be displayed
				// ONLY USED IF ERRORS ARE REPORTED
				#define Error_port P1
				
				#endif
				
				// ------ LED_Flas.C -----------------------------------------------
				
				// Connect LED from +5V (etc) to this pin, via appropriate resistor
				// [see Chapter 7 for details]
				sbit LED_pin = P1^5;
				
				
				/*------------------------------------------------------------------*-
				  ---- END OF FILE -------------------------------------------------
				-*------------------------------------------------------------------*/
				
				
				
							

相关资源