代码搜索结果
找到约 10,000 项符合
Serial 的代码
serial.h
#ifndef SERIAL_H
#define SERIAL_H
#include
#include
#define TIMEOUT_SECS 20
#define DEFAULT_BAUD_RATE 38400;
#define CR 0x0D
#define LF 0x0A
class Serial
{
serial.cpp
#include "stdio.h"
#include "serial.h"
DWORD Serial::m_dwTimeOut=TIMEOUT_SECS;
Serial *Serial::OpenSerial(TCHAR *strPort,int nRate,BOOL bSoftHandshake)
{
Serial *pSerial=new Serial(strPort,n
serial.mak
/************* Code Composer V1 Project Data ********************
The following section contains data generated by Code Composer
to store project information like build options, source filenames
serial.cmd
/**********************************************************************/
/* File Name: leds.cmd */
/* Target System: C24xx Evaluation Board
serial.pjt
; Code Composer Project File, Version 2.0 (do not modify or remove this line)
[Project Settings]
ProjectDir="C:\ICETEK-LF2407-AE\lab0308-Sci\"
ProjectType=Executable
CPUFamily=TMS320C24XX
Tool=
serial.c
/* 2407A板:将JP11和JP14短接到2-3;
使用直连的串口通信电缆;
启动串口调试助手.exe;
PC机发送一个"."为结束标志
*/
#include "2407c.h"
void wait(int nWait);
char cString[17]={ "Hello PC!,Over|" },cReceive,cBu