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

📄 pinset.h

📁 LPC2103的绝大部分驱动
💻 H
字号:
#ifndef PINSET_H
#define PINSET_H

#define PIN_FUNCTION1			0X000000
#define PIN_FUNCTION2			0X000001
#define PIN_FUNCTION3			0X000002
#define PIN_FUNCTION4			0X000003

#define PIN_TXD0				0
#define PIN_RXD0				1
#define PIN_0_2					2
//#define PIN_Voice_CE			3
#define PIN_SCK0				4
#define PIN_MISO0				5
#define PIN_MOSI0				6
#define PIN_FLASH_CS			22			
#define PIN_TXD1				8
#define PIN_RXD1				9
#define PIN_MotoON_OFF			10
#define PIN_Voice_PD			11     //对牢
#define PIN_Lock				12
#define PIN_Alarm				13
#define PIN_0_14				14
#define PIN_CurrentDetect		15
#define PIN_DoorOpened			16
#define PIN_DoorClosed			17
#define PIN_Voice_EOM			18     //
#define PIN_Voice_A0			19      //对牢
#define PIN_MotoDIR				20
#define PIN_0_21				21
#define PIN_AI0					24
#define PIN_AI1					25      //不对
#define PIN_485send_EN			26
#define PIN_0_27				27
#define PIN_0_28				28
#define PIN_0_29				29
#define PIN_0_30				30
#define PIN_0_31				31

#define PIN_MASK(PinNo)			0x00000001<<PinNo

void PinFuncSelct(unit8 PinNo, unit32 Function);
void GPIODirSet(unit8 PinNo, unit8 bDirOut);

#endif


⌨️ 快捷键说明

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