代码搜索结果
找到约 10,000 项符合
USART 的代码
usart.ewp
1
Debug
AVR
usart.h
#ifndef USART_H
#define USART_H
#ifdef USART_C
void UsartInit(void);
int PutChar(char c);
void SendNbyte(unsigned char *p,unsigned char L);
void PutStr(unsigned char *Str);
#else
extern void U
usart.h
#ifndef USART_H
#define USART_H
#ifdef USART_C
void put_char(unsigned char ch);
void InitSerial(void);
void put_string(unsigned char *sting);
#else
extern void put_char(unsigned char ch);
exte
usart.c
#define USART_C
#include "includes.h"
void put_char(unsigned char ch)
{
/* if(ch == '\n')
{
usart_putchar('\r');
} */
while(!(UCSRA&(1
usart.c
#define USART_C
#include "includes.h"
void put_char(unsigned char ch)
{
/* if(ch == '\n')
{
usart_putchar('\r');
} */
while(!(UCSRA&(1
usart.h
#ifndef USART_H
#define USART_H
#ifdef USART_C
void put_char(unsigned char ch);
void InitSerial(void);
void put_string(unsigned char *sting);
#else
extern void put_char(unsigned char ch);
exte
usart.c
#define USART_C
#include "includes.h"
void UsartInit(void)
{
// 晶振频率 : 4.0MHz
// 通信参数: 8 Data, 1 Stop, No Parity
// 波特率:
// UBRRL= 0x0C 19200;
// UBRRL= 0x19 9600;
usart.h
#ifndef USART_H
#define USART_H
#ifdef USART_C
void UsartInit(void);
int PutChar(char c);
void SendNbyte(unsigned char *p,unsigned char L);
void PutStr(unsigned char *Str);
//int putchar(int c)
usart.c
#define USART_C
#include "includes.h"
void UsartInit(void)
{
// 晶振频率 : 4.0MHz
// 通信参数: 8 Data, 1 Stop, No Parity
// 波特率:
// UBRRL= 0x0C 19200;
// UBRRL= 0x19 9600;
usart.h
#ifndef USART_H
#define USART_H
#ifdef USART_C
void UsartInit(void);
int PutChar(char c);
void SendNbyte(unsigned char *p,unsigned char L);
void PutStr(unsigned char *Str);
//int putchar(int c)