代码搜索结果
找到约 10,000 项符合
UART 的代码
uart.h
extern void uart_init(void);
extern void uart_putchar(unsigned char ch);
//extern void putchar(unsigned char ch);
extern void putstr(char ch[]);
//unsigned char TERMIO_GetChar(void);
void printp( char
uart.c
/*
ICC-AVR application builder : 2008-01-24 15:51:26
Target : s12dg128b
Crystal: 16Mhz
Designed by Chiu Sir
E-mail:chiusir@yahoo.cn
*/
#include
#include
#include
uart.h
unsigned char ser_getc (void);
void uart_putc(unsigned char);
void uart_puts (char *);
void uart_ini (void);
uart.c
#include
#include "uart.h"
//#define UART_BAUD_RATE 9600L
//#define UART_BAUD_CALC(UART_BAUD_RATE,F_CPU) ((F_CPU)/((UART_BAUD_RATE)*16L)-1)
#define RBUFFLEN 150
volatile
uart.c
#include
char *welcome="\n welcome to use this system!\n copyright sun yi jie \n 2004.11.26\n";
//发送单个字符用单引号 如:send_char_com('j');
//表示发送 j 到串口
//发送多个字符用双单引号 如: send_string_c
uart.c
#include "ccblkfn.h"
#include "sysreg.h"
#include
#include
#define pCtrlReg1 (volatile unsigned char *)0x20220000
#define pCtrlReg2 (volatile unsigned ch
uart.mak
# Generated by the VisualDSP++ IDDE
# Note: Any changes made to this Makefile will be lost the next time the
# matching project file is loaded into the IDDE. If you wish to preserve
# changes,
uart.c
#include
#include "Tl16C752B.h"
static UartDelay(Uint32 Val)
{
Uint32 i;
for(i=0;i