testuart6.h
来自「这是一个基于nec78f8024的led驱动程序」· C头文件 代码 · 共 45 行
H
45 行
/*
*******************************************************************************
** 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 : UART6.h
** Abstract : This file implements the definition that relates to the UART6 communication
** not influenced by the setting in the GUI application.
**
** Device : uPD78F8024
**
** Compiler : NEC/CC78K0
**
*******************************************************************************
*/
#ifndef _MDUART6_
#define _MDUART6_
/* Mnemonic of register that relates to port used by UART6 communication */
#define PORT_TXD6 P1.3
#define PORT_MODE_TXD6 PM1.3
#define PORT_RXD6 P1.4
#define PORT_MODE_RXD6 PM1.4
/* mnemonic of register related to UART6 communication control */
#define POWER6 ASIM6.7
#ifndef _MDUART0_
/* constant definition related to UART6 communication */
#define SEND_DATA_LENGTH_BINARY 1
#define SEND_DATA_LENGTH_ASCII 5
#define UART_ERROR_CHECK_VALUE 0b00000111
#endif
/* function prototypes */
void UART6_init(void);
short UART6_getValue( unsigned char ucChannel );
void calibrateBaudrate( unsigned char uc1BitWidth );
#endif
z
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?