代码搜索结果

找到约 10,000 项符合 UART 的代码

uart.h

/* 定义串口模式设置数据结构 */ typedef struct UartMode { uint8 datab; // 字长度,5/6/7/8 uint8 stopb; // 停止位,1/2 uint8 parity; // 奇偶校验位,0为无校验,1奇数校验,2为偶数校验 }UARTMODE

uart.c

#include "config.h" #include "uart.h" uint8 rcv_buf[8]; // UART0数据接收缓冲区 volatile uint8 rcv_new; // 接收新数据标志 /* ********************************************************************

uart.h

#ifndef __UART_H__ #define __UART_H__ #include "../inc/macro.h" #include "../ucos-ii/ucos_ii.h" #define UART_REVBUFFER_SIZE 1024 typedef struct{ U8 Buffer[UART_REVBUFFER_SIZE]; OS_EVEN

uart.c

/***************************************************************************\ Copyright (c) 2004-2007 threewater@up-tech.com, All rights reserved. by threewter 2004.4.26 \************************

uart.h

#ifndef __UART_H__ #define __UART_H__ #include "../inc/macro.h" #include "../ucos-ii/ucos_ii.h" #define UART_REVBUFFER_SIZE 1024 typedef struct{ U8 Buffer[UART_REVBUFFER_SIZE]; OS_EVEN

uart.c

/***************************************************************************\ Copyright (c) 2004-2007 threewater@up-tech.com, All rights reserved. by threewter 2004.4.26 \************************

uart.h

/* uart.h */ #ifndef UART_H #define UART_H #ifdef __cplusplus extern "C" { #endif // 奇偶校验标识 #define UART_BIT_9_H 0xA5 #define UART_BIT_9_L 0x5A

uart.c

#include "uart.h" #include "hal.h" #include "code_upgrade.h" #ifdef DTSD // 数据桢指针 // 数据桢buffer void ext_io(unsigned short io) // @ "BOOTCODE" { int k; unsigned short shf; shf