com.h
来自「针对华清远见的FS9200(其内核为at91rm9200)的一个测试程序」· C头文件 代码 · 共 41 行
H
41 行
//*----------------------------------------------------------------------------//* 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 + =
减小字号Ctrl + -
显示快捷键?