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

📄 serial.h

📁 TDK 6521 SOC 芯片 DEMO程序
💻 H
字号:
/***************************************************************************
 * This code and information is provided "as is" without warranty of any   *
 * kind, either expressed or implied, including but not limited to the     *
 * implied warranties of merchantability and/or fitness for a particular   *
 * purpose.                                                                *
 *                                                                         *
 * Copyright (C) 2005 Teridian Semiconductor Corp. All Rights Reserved.    *
 ***************************************************************************/
//**************************************************************************
//  DESCRIPTION: 71M652x - SERIAL0/1 structures, enumerates, and defines.
//
//  AUTHOR:  MTF
//
//  HISTORY: see end of file.
//***************************************************************************
//  File: SERIAL.H
//       
#ifndef _SERIAL
#define _SERIAL

/////////////////////////////////////////////////////////////////////////////
//***************************************************************************
//* Serial 0/1 DEFINITIONS AND DECLARATIONS.
//***************************************************************************
/////////////////////////////////////////////////////////////////////////////

enum SERIAL_RC { S_EMPTY, S_PENDING, S_FULL, S_PARITY_ERR, S_OVERRUN, S_NACK_ERR };
enum SERIAL_SPD { _RATE_300,  _RATE_600,  _RATE_1200,  _RATE_2400,
                  _RATE_4800, _RATE_9600, _RATE_19200, _RATE_38400 };
enum SERIAL_PORT { SERIAL_0, SERIAL_1 };

extern enum eMPU_DIV xdata mpu_speed;
extern uint16_t code bit_rate_tbl[ 10 ];

#define MODEM           SERIAL_0
#define OPTICAL         SERIAL_1
#define MAX_SERIAL_RATE _RATE_38400

/***************************************************************************
 * History                                                                 *
 * $Log: serial.h,v $
 * Revision 1.10  2006/09/27 01:37:14  tvander
 * Spaces for tabs
 *
 * Revision 1.9  2006/09/09 01:15:54  gmikef
 * *** empty log message ***
 *
 * Revision 1.7  2005/09/22 23:45:29  tvander
 * Clean build all models and unit tests, updated copyright to be fore Teridian
 *
 * Revision 1.6  2005/08/31 05:58:40  gmikef
 * First version w/ LAPIE interface.
 *
 * Revision 1.5  2005/08/23 21:09:16  tvander
 * Restored it to fix the build.
 *
 * Revision 1.3  2005/08/22 22:30:56  tvander
 * Clean build of FLAG system
 * No pulse counting.
 * No debug/CLI.
 *
 * Revision 1.2  2005/08/19 01:04:44  gmikef
 * *** empty log message ***
 *
 * Revision 1.1  2005/05/02 18:22:07  gmikef
 * *** empty log message ***
 *
 * Revision 1.6  2005/04/27 21:38:19  gmikef
 * *** empty log message ***
 *
 * Copyright (C) 2005 Teridian Semiconductor Corp. All Rights Reserved.    *
 * this program is fully protected by the United States copyright          *
 * laws and is the property of Teridian Semiconductor Corporation.         *
 ***************************************************************************/
#endif  /* serial.h */

⌨️ 快捷键说明

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