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

📄 ports.h

📁 矿工定位系统单端
💻 H
字号:
//ports.h - code recommendation for C header file
/***********************************************************************
MODULE:    Ports
VERSION:   1.00
CONTAINS:  Routines for initializing the ports on the Philips P89LPC932
COPYRIGHT: Embedded Systems Academy, Inc. - www.esacademy.com
LICENSE:   May be freely used in commercial and non-commercial code
           without royalties provided this copyright notice remains
           in this file and unaltered
WARNING:   IF THIS FILE IS REGENERATED BY CODE ARCHITECT ANY CHANGES
           MADE WILL BE LOST. WHERE POSSIBLE USE ONLY CODE ARCHITECT
           TO CHANGE THE CONTENTS OF THIS FILE
GENERATED: On "Feb 24 2004" at "11:16:39" by Code Architect 2.03
***********************************************************************/

#ifndef _PORTSH_
#define _PORTSH_

// define pin names
sbit ISP = P0 ^ 0;
sbit KEY = P0 ^ 1;
sbit TX_EN = P0 ^ 2;
sbit PWR = P0 ^ 3;
sbit p04 = P0 ^ 4;
sbit p05 = P0 ^ 5;
sbit p06 = P0 ^ 6;
sbit p07 = P0 ^ 7;
sbit p10 = P1 ^ 0;
sbit p11 = P1 ^ 1;
sbit CS = P1 ^ 2;
sbit LED = P1 ^ 3;
sbit p14 = P1 ^ 4;
sbit p15 = P1 ^ 5;
sbit p16 = P1 ^ 6;
sbit p17 = P1 ^ 7;

/***********************************************************************
DESC:    Initializes the ports
RETURNS: Nothing
CAUTION: Call before the initialization functions of other peripherals
************************************************************************/
void ports_init
  (
  void
  );

#endif // _PORTSH_

⌨️ 快捷键说明

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