⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ioport.h

📁 一款车载DVD的车机源程序(正在生成中的哦)
💻 H
字号:
/**************************************************************************
Project  :  Car two ting dvd System
Compiler :  ST7 HiCross C (HiWARE)
Module   :  autos.c 
Version  :  V 1.0
Created  :  24 11, 2005
Author   :  tomi / SA
Description
         -  Define the IO port's function.  
Modified
		 - tomi
***************************************************************************/

/*****************************************************
Define the PA port
*****************************************************/
#define	PLL_CL				0			/*PA0*/
#define	PLL_DO				1			/*PA1*/
#define	PLL_DI				2			/*PA2*/
#define	PLL_CE				3			/*PA3*/
#define	TFT_POWER_ON		4			/*PA4*/
#define	POWER_ON			5			/*PA5*/
#define	SDA					6			/*PA6*/
#define	SCL					7			/*PA7*/
/*****************************************************
Define the PB port
*****************************************************/
#define	TOU_IRQ				0			/*PB0*/
#define	TOU_DO					1			/*PB1*/
#define	TOU_CLK				2			/*PB2*/
#define	DVD_SW					3			/*PB3*/
#define	CDC_BUS				4			/*PB4*/
#define	DVD_CLK				5			/*PB5*/
#define	DVD_DATA_OUT			6			/*PB6*/
#define	Disc_in_rom				7			/*PB7*/
/*****************************************************
Define the PC port
*****************************************************/
#define	TFT_KEY_AD2			0			/*PC0*/
#define	TFT_KEY_AD1			1			/*PC1*/
#define	DVD_POWER_ON		2			/*PC2*/
#define	TUN_ON				3			/*PC3*/
#define	SPI_SO				4			/*PC4*/
#define	SPI_SI				5			/*PC5*/
#define	SPI_CLK				6			/*PC6*/
#define	SPI_CS				7			/*PC7*/
/*****************************************************
Define the PD port
*****************************************************/
#define	TUN_SM					0			/*PD0*/
#define	KEY_AD					1			/*PD1*/
#define	SW1					2			/*PD2*/
#define	SW2					3			/*PD3*/
#define	BRAKE_CHCK			4			/*PD4*/
#define	MOTOR_OPEN			5			/*PD5*/
#define	MOTOR_CLOSE			6			/*PD6*/
#define	TV_ON					7			/*PD7*/
/*****************************************************
Define the PE port
*****************************************************/
#define	HI_CON				0			/*PE0*/
#define	TV_MUTE				1			/*PE1*/
#define	TUN_SSTOP			2			/*PE2*/
#define	TUN_SD				3			/*PE3*/
#define	BACK_CON_MUTE			4			/*PE4*/
#define	TEL_MUTE			5			/*PE5*/
#define	MUTE				6			/*PE6*/
#define	TOU_DI				7			/*PE7*/
/*****************************************************
Define the PF port
*****************************************************/
#define	IR					0			/*PF0*/
#define	BELL				1			/*PF1*/
#define	ACC_ID				2			/*PF2*/
#define	VIDEO_ID			3			/*PF3*/
#define	DVD_IR				4			/*PF4*/
#define	BACK_CAR			5			/*PF5*/
#define	SEL_2533_2			6			/*PF6*/
#define	SEL_2533_1			7			/*PF7*/








⌨️ 快捷键说明

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