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

📄 com.h

📁 at91rm9200 的rom程序
💻 H
字号:
//*----------------------------------------------------------------------------
//*      ATMEL Microcontroller Software Support  -  ROUSSET  -
//*----------------------------------------------------------------------------
//* The software is delivered "AS IS" without warranty or condition of any
//* kind, either express, implied or statutory. This includes without
//* limitation any warranty or condition with respect to merchantability or
//* fitness for any particular purpose, or against the infringements of
//* intellectual property rights of others.
//*----------------------------------------------------------------------------
//* File Name           : com.h
//* Object              : Prototyping File.
//* 1.0 29/08/00 JPP    : Creation
//*----------------------------------------------------------------------------

#include    "periph/usart2/lib_usart2.h"

//* Data len
#define COM_5_BIT		0x00        /* 5 bits */
#define COM_6_BIT		0x40        /* 6 bits */
#define COM_7_BIT		0x80        /* 7 bits */
#define COM_8_BIT		0xC0        /* 8 bits */

//* Stop bit
#define COM_NBSTOP_1		0x0000      /* 1 Stop Bit */
#define COM_NBSTOP_1_5		0x1000      /* 1.5 Stop Bits */
#define COM_NBSTOP_2		0x2000      /* 2 Stop Bits */

//* Parity
#define COM_PAR_NONE		0x800       /* No Parity */
#define COM_PAR_EVEN		0x00        /* Even Parity */
#define COM_PAR_ODD		0x200       /* Odd Parity */
#define COM_PAR_SPACE		0x400       /* Space Parity to 0 */
#define COM_PAR_MARK		0x600       /* Marked Parity to 1 */

//* Flow Control
#define COM_FLOW_CONTROL_NONE	0x00

/* State */
#define COM_STATE_ENABLE	0x01
#define COM_STATE_DISABLE	0x02

⌨️ 快捷键说明

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