代码搜索结果

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

uart.h

#ifndef _uart_h_ #define _uart_h_ void Putch (char ch) ; char Getch(void) ; void puts (const char *Name2) ; void UART_Init(char baud); char * itoa(int i); char * uitoa(unsigned int i); char

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

typedef union UART_GCTL1 //全局控制寄存器 { struct GCTL1_Bits { unsigned UCEN1 : 1; //使能UART时钟,即启动UART unsigned IREN1 : 1; //使能IrDA模式 unsigned TPOLC1 : 1; //IrDA TX 极性变换 unsigned RPOLC1 :

uart.h

typedef union UART_GCTL1 //全局控制寄存器 { struct GCTL1_Bits { unsigned UCEN1 : 1; //使能UART时钟,即启动UART unsigned IREN1 : 1; //使能IrDA模式 unsigned TPOLC1 : 1; //IrDA TX 极性变换 unsigned RPOLC1 :

uart.h

#include "config.h" void UART0_Ini(void); void UART0_SendByte(uint8 data); void UART0_SendStr(uint8 *str);

uart.c

#include "uart.h" #define UART_BPS 57600 /* 定义通讯波特率 */ /**************************************************************************** * 名称:UART0_Ini() * 功能:初始化串口0。设置为8位数据位,1位停止位,无奇偶校验,波特率为11

uart.c

////////////////////////////////////////uart.c////////////////////////////// /////////////////////////////////file name :okiml674000//////////////////// ////////////////////////////////data:2005nia\

uart.h

#ifndef __UART_H__ #define __UART_H__ void Test_Uart0(void); void Test_Uart0Fifo(void); void Test_Uart1(void); void Test_Uart1Fifo(void); void Test_Uart0Range(void); void Test_Uart1Max(void);