代码搜索结果
找到约 10,000 项符合
Serial 的代码
serial.c
#include
#include "serial.h"
void SendStr(unsigned char* buffer,int count) reentrant
{
if (count > 0)
{
pc_send.buffer=buffer;
pc_send.count=count;
pc_send.ptr=0;
serial.c
/*
File: Serial.c
To provide UART interrupt callback and char I/O functions.
*/
#include "serial.h"
static unsigned char rxbuff[RXBUFF_SIZE]; // Receive buffer
static unsigned
serial.h
/*
File: Serial.h
*/
#ifndef __SERIAL_H__
#define __SERIAL_H__
#define RXBUFF_SIZE 20 /* Size of receive buffer */
#define TXBUFF_SIZE 20 /* Size of transmit buffer */
#include "l
serial.h
/***************************************************************************\
Copyright (c) 2004-2007 threewater@up-tech.com, All rights reserved.
by threewter 2004.4.26
\************************
serial.h
/***************************************************************************\
Copyright (c) 2004-2007 threewater@up-tech.com, All rights reserved.
by threewter 2004.4.26
\************************
serial.h
/***************************************************************************\
Copyright (c) 2004-2007 threewater@up-tech.com, All rights reserved.
by threewter 2004.4.26
\************************
serial.h
/***************************************************************************\
Copyright (c) 2004-2007 threewater@up-tech.com, All rights reserved.
by threewter 2004.4.26
\************************
serial.h
#ifndef _SERIAL_
#define _SERIAL_
#define BAUDRATE0 115200 // 用户定义的UART0 波特率
#define DB_SENDMAXSIZE 0x80
#define DB_RECMAXSIZE 0x80
void init_serial(void);
void OpenComm(void);
void SendC
serial.c
//-----------------------------------------------------------------------------
// Copyright (c) 2002 Jim Brady
// Do not use commercially without author's permission
// Last revised August 2002
/
serial.c
#include "def.h"
#include "44b.h"
#include "option.h"
#include "utils.h"
static U16 SerialPortSel;
U16 SerialSwitch(U16 port)
{
#ifdef SERIAL_PORTS_SWITCH
// U16 old_sel = SerialPortSel;