代码搜索结果

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

usart.h

/*This file has been prepared for Doxygen automatic documentation generation.*/ /*! \file ********************************************************************* * * \brief USART driver library. * *

usart.c

/*This file has been prepared for Doxygen automatic documentation generation.*/ /*! \file ********************************************************************* * * \brief USART driver library. * *

usart.h

//波特率9600/9个数据位/1个停止位/奇校验/收发开启/接收中断 void usart_init(void) { UCSRA=0x01; UCSRB=0x9C; UCSRC=0xB6; UBRRH=0x00; UBRRL=0x2f; PORTD&=~0x08; //MAX485平时工作在接收状态 DDRD|=0x08; } //------

usart.h

#define BAUDRATE 9600 //波特率 #define F_CPU 7327800 //波特率9600/9个数据位/1个停止位/奇校验/收发开启/接收中断 void usart_init(void) { UCSRA=0x01;//多机通讯模式(MPCM=1) UCSRB=0x9C; UCSRC=0xB6; UBRRL=

usart._h

#define BAUDRATE 9600 //波特率 #define F_CPU 7327800 unsigned char send[amount]; //发件箱 unsigned char inbox[amount]; //收件箱 unsigned char n=0; //记忆中断次数 unsigned char flag_me=0; unsig

usart.h

//波特率9600/9个数据位/1个停止位/奇校验/收发开启/接收中断 void usart_init(void) { UCSRA=0x01; UCSRB=0x9C; UCSRC=0xB6; UBRRH=0x00; UBRRL=0x2f; PORTD&=~0x08; //MAX485平时工作在接收状态 DDRD|=0x08; } //------

usart.c

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

usart.opt

### uVision2 Project, (C) Keil Software ### Do not modify ! cExt (*.c) aExt (*.s*; *.src; *.a*) oExt (*.obj) lExt (*.lib) tExt (*.txt; *.h; *.inc) pExt (*.plm) CppX (*.cpp) DaveTm {

usart.c

/*---------------------------------------------------------------------------- * Name: Usart.c * Purpose: USART usage for STM32 * Version: V1.00 *-------------------------------------------

usart.h

//波特率9600/9个数据位/1个停止位/奇校验/收发开启/接收中断 void usart_init(void) { UCSRA=0x01; UCSRB=0x9C; UCSRC=0xB6; UBRRH=0x00; UBRRL=0x2f; PORTD&=~0x08; //MAX485平时工作在接收状态 DDRD|=0x08; } //------