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

📄 io.c

📁 基于LPC2136的线阵CCD采集系统的源代码
💻 C
字号:
/****************************************Copyright (c)**************************************************
**                               Guangzou ZLG-MCU Development Co.,LTD.
**                                      graduate school
**                                 http://www.zlgmcu.com
**
**--------------File Info-------------------------------------------------------------------------------
** File name:			main.c
** Last modified Date:  2004-09-16
** Last Version:		1.0
** Descriptions:		The main() function example template
**
**------------------------------------------------------------------------------------------------------
** Created by:			Chenmingji
** Created date:		2004-09-16
** Version:				1.0
** Descriptions:		The original version
**
**------------------------------------------------------------------------------------------------------
** Modified by: 		linwensen
** Modified date:		2007-09-25
** Version:				1.01
** Descriptions: 		Renewed the template, added codes to surport more compilers 
**
********************************************************************************************************/
#include "config.h"
#define DATA_FIRST  (1<<0)
#define DATA_BUS  8
/*********************************************************************************************************
** 函数名称 :ioinit()
** 函数功能 :io口初始化(P0.0-P0.7)
** 入口参数 :无。
** 出口参数 :无。
*********************************************************************************************************
*/
void ioinit (void)
{
	PINSEL0=0x00000000;					// P0.0-P0.7连接
	//PINSEL1 = 0x00000001;				// P0.16连接EINT0
	IO0DIR  = (0<<0)|(0<<1)|(0<<2)|(0<<3)|	// P0.0-P0.7为输入
			  (0<<4)| (0<<5)|(0<<6)|(0<<7);

	// 初始化
	
}
/*********************************************************************************************************
**                            End Of File
********************************************************************************************************/

⌨️ 快捷键说明

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