port.h

来自「NEC 的无线通讯方案」· C头文件 代码 · 共 103 行

H
103
字号
/*
* $Id: port.h,v 1.8 2007/08/17 06:21:52 sunny Exp $
*/
/*
*******************************************************************************
**
**  This device driver was created by Applilet for the 78K0/KB2, 78K0/KC2,
**  78K0/KD2, 78K0/KE2 and 78K0/KF2 8-Bit Single-Chip Microcontrollers.
**
**  Copyright(C) NEC Electronics Corporation 2002 - 2005
**  All rights reserved by NEC Electronics Corporation.
**
**  This program should be used on your own responsibility.
**  NEC Electronics Corporation assumes no responsibility for any losses
**  incurred by customers or third parties arising from the use of this file.
**
**  Filename :	port.h
**  Abstract :	This file implements device driver for PORT module.
**  APIlib :	NEC78K0KX2.lib V1.01 [09 Aug. 2005]
**
**  Device :	uPD78F0537, uPD78F0514
**
**  Compiler :	NEC/CC78K0
**
*******************************************************************************
*/
#ifndef	_MDPORT_
#define	_MDPORT_
/*
*******************************************************************************
**  MacroDefine
*******************************************************************************
*/
#if defined( uPD78F0514_48 ) || defined( uPD78F0525_52 )
#define	PORT_PM0	0xfc
#define	PORT_PU0	0x0
#define	PORT_P0	0x3
#define	PORT_PM1	0xff
#define	PORT_PU1	0x0
#define	PORT_P1	0x0
#define	PORT_PM2	0xff
#define	PORT_P2	0x0
#define	PORT_PM3	0xff
#define	PORT_PU3	0x0
#define	PORT_P3	0x0
#define	PORT_PM4	0xfc
#define	PORT_PU4	0x0
#define	PORT_P4	0x3
#define	PORT_PM6	0xff
#define	PORT_P6	0x0
#define	PORT_PM7	0xff
#define	PORT_PU7	0x0
#define	PORT_P7	0x0
#define	PORT_PM12	0xff
#define	PORT_PU12	0x0
#define	PORT_P12	0x0
#define	PORT_P13	0x0
#define	PORT_PM14	0xfe
#define	PORT_PU14	0x0
#define	PORT_P14	0x0
#define	PORT_ADPC	0x0

#elif defined( uPD78F0537_64 ) || defined( uPD78F0547_80 )
#define	PORT_PM0	0xbf
#define	PORT_PU0	0x0
#define	PORT_P0	0x0
#define	PORT_PM1	0xff
#define	PORT_PU1	0x0
#define	PORT_P1	0x0
#define	PORT_PM2	0xff
#define	PORT_P2	0x0
#define	PORT_PM3	0xff
#define	PORT_PU3	0x0
#define	PORT_P3	0x0
#define	PORT_PM4	0xf0
#define	PORT_PU4	0x0
#define	PORT_P4	0xf
#define	PORT_PM5	0xfd
#define	PORT_PU5	0x0
#define	PORT_P5	0x0
#define	PORT_PM6	0xff
#define	PORT_P6	0x0
#define	PORT_PM7	0xff
#define	PORT_PU7	0x0
#define	PORT_P7	0x0
#define	PORT_PM12	0xff
#define	PORT_PU12	0x0
#define	PORT_P12	0x0
#define	PORT_P13	0x0
#define	PORT_PM14	0xff
#define	PORT_PU14	0x0
#define	PORT_P14	0x0
#define	PORT_ADPC	0x0

#else
        #error "Unknown MCU type defined."
#endif // #ifdef uPD78F0514_48


void PORT_Init( void );

#endif

⌨️ 快捷键说明

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