代码搜索结果

找到约 10,000 项符合 USART 的代码

usart.h

#ifndef _USART_LXF_H_ #define _USART_LXF_H_ extern void usart_init(unsigned int); extern void usart_transmit(unsigned char); extern unsigned char usart_receive(void); #endif

usart.c

#include #include #include void usart_init(unsigned int baud) { UBRRH = (unsigned char)(baud>>8); UBRRL = (unsigned char)baud; /* 接收器与发送器使能,接收

usart.h

#ifndef __USART_H #define __USART_H /* PIC18 USART peripheral libraries. */ /* There are three library modules, corresponding to register names: * USART1 (TXSTA1, RCSTA1, etc.) * USART2

usart.h

//usart.h // BIT DEFINES #define BIT0 0x00000001 #define BIT1 0x00000002 #define BIT2 0x00000004 #define BIT3 0x00000008 #define BIT4 0x00000010 #

usart.c

//usart.c #include "usart.h" #include "AT91SAM7S64.h" // Pointers AT91PS_PIO u_pPio = AT91C_BASE_PIOA; AT91PS_PMC u_pPMC = AT91C_BASE_PMC; AT91PS_USART u_pUSART0 = AT91C_BASE_US0;

usart.c

#include #include #include #include "main.h" //常量定义 #define BAUDRATE 9600 //波特率 //#define F_CPU 7372800 //这个已经在makefile里面定义了 void in

usart.h

// //Atmel AVR Design Contest 2006 Registration Number AT3221 // void USART_Init(unsigned int baudrate); void USART_Tx(char); char USART_Rx(void); void USART_EOL(char eol); // send one char as read

usart.c

// //Atmel AVR Design Contest 2006 Registration Number AT3221 // //*************************************************************************** // // File........: usart.c // // Author(s)...: ATMEL

usart.c

#define USART_C #include "includes.h" int usart_putchar(char c) { if (c == '\n') usart_putchar('\r'); while(UCSRA&(1

usart.dep

0 Debug $PROJ_DIR$\cfile\main.c