testport.h

来自「这是一个基于nec78f8024的led驱动程序」· C头文件 代码 · 共 48 行

H
48
字号
/*
*******************************************************************************
**  COPYRIGHT (C) NEC Electronics Corporation 2008
**  NEC ELECTRONICS CONFIDENTIAL AND PROPRIETARY
**  All rights reserved by NEC Electronics Corporation.
**  Use of copyright notice does not evidence publication.
**
**  Filename :	port.h
**  Abstract :	This file implements the definition that rerates to the PORT module.
**
**  Device :	uPD78F8024
**
**  Compiler :	NEC/CC78K0
**
*******************************************************************************
*/
#ifndef	_MDPORT_
#define	_MDPORT_
/*
*******************************************************************************
**  MacroDefine
*******************************************************************************
*/
/* set value definition of port */
#define	PORT_PM0	0b11111101
#define	PORT_PU0	0b00000010
#define	PORT_P0		0b00000000
#define	PORT_PM1	0b00011111
#define	PORT_PU1	0b00000000
#define	PORT_P1		0b00000000
#define	PORT_PM2	0b11111111
#define	PORT_P2		0b00000000
#define	PORT_PM3	0b11110111
#define	PORT_PU3	0b00000000
#define	PORT_P3		0b00000000
#define	PORT_PM6	0b11111111
#define	PORT_P6		0b00000000
#define	PORT_PM12	0b11111111
#define	PORT_PU12	0b00000000
#define	PORT_P12	0b00000000
#define	PORT_ADPC	0b00000000

/* function prototypes */
void PORT_Init( void );

#endif

⌨️ 快捷键说明

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