代码搜索结果
找到约 10,000 项符合
UART 的代码
uart.c
/*****************************************
Copyright (c) 2002-2004
Sigma Designs, Inc. All Rights Reserved
Proprietary and Confidential
*****************************************/
/* This file is
uart.h
/****************************************************************************************************
* 文件名: UART.h *
* Copyright (c) 2008 *********武汉理工大学信息工程学院电信系 *
*
uart.c
/****************************************************************************************************
* 文件名: UART.c *
* Copyright (c) 2008 *********武汉理工大学信息工程学院电信系 *
*
uart.act
[MCU]
Ver=V2.1.0
mcutype=3
Fosc=10
[UART0]
Uart0_use=1
Uart0_baud=5
Ubrr0=
Parity=0
Byte_len=3
U2x=0
Stop2=1
Rx_en=1
Tx_en=1
Multi=0
Synchro=0
Rising=0
Rx_int=0
Tx_int=0
Data_int=0
uart.c
////////////////////////////////////////uart.c//////////////////////////////
/////////////////////////////////file name :okiml674000////////////////////
////////////////////////////////data:2005nia\
uart.h
/** @file uart.h
* @brief 串口部分API程序
* @Author Mars.zhu 2007-11-19 10:10
* @欢迎测试使用, 如有问题请发邮件至 Mars.zhu@hotmail.com , 谢谢!
*/
#ifndef __UART_H
#define __UART_H
#define Uart_Monitor_NO 0
/** @func ope
uart.h
void SetBaud(uint baud);
void SendData0(void);
uchar LeapYear(uchar yea);
uint PastDays(uint year, uchar month, uchar day);
uint TimeDiffer(uchar year0, uchar month0, uchar day0, uchar year1, uc
uart.c
#include "includes.h"
#include "uart.h"
/*设置波特率子函数*/
void SetBaud(uint baud)
{
TH1 = 256 - OSC / baud / 32 / 12;
TL1 = TH1;
}
void SendData0(void)
{
SendBuf[0] = 'B';
Sen