代码搜索:如何学习 UART?
找到约 10,000 项符合「如何学习 UART?」的源代码
代码结果 10,000
www.eeworm.com/read/266612/11216914
c uart.c
#include "2410addr.h"
#include "uart.h"
void uart_send(char *wrbuf)
{int i;
char *p;
p=wrbuf;
while(*p!='\0')
{while(!(rUTRSTAT0&0x02));
rUTXH0=*(p++);
for(i=0;i
www.eeworm.com/read/411835/11224694
h uart.h
void SendChar(char c);//发送字符子程序
void SendString(char *str);//发送字符串子程序
char GetChar(void);
www.eeworm.com/read/411835/11224711
lst uart.lst
1 .file "uart.c"
2 .arch atmega64
3 __SREG__ = 0x3f
4 __SP_H__ = 0x3e
5 __SP_L__ = 0x3d
6
www.eeworm.com/read/411835/11224716
c uart.c
#include "includes.h"
void SendChar(char c)//发送一个字符
{
while(!(UCSR0A & (1
www.eeworm.com/read/411835/11224723
o uart.o
www.eeworm.com/read/266422/11226772
o uart.o
www.eeworm.com/read/411727/11231025
h uart.h
#ifndef __UART_H
#define __UART_H
#ifndef IN_UART
#ifdef __cplusplus
extern "C" {
#endif
extern int UART_Select(uint8 no);
extern void UART_Init(void);
www.eeworm.com/read/411727/11231034
c uart.c
#define IN_UART
#include "config.h"
// 串口选择 (为0时表示串口0,否则为串口1)
static uint8 g_uart_sel = 0;
int UART_Select(uint8 no)
{
int ret;
ret = g_uart_sel;
g_uart_sel = no;
retur
www.eeworm.com/read/411727/11231046
h uart.h
/****************************************Copyright (c)**************************************************
** Guangzhou ZHIYUAN electronics Co.,LTD.
**
www.eeworm.com/read/411727/11231056
c uart.c
/****************************************Copyright (c)**************************************************
** Guangzhou ZHIYUAN electronics Co.,LTD.
**