代码搜索结果

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

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

/************************************************************** ** 精英STM32开发板 ** 版本:V1.0 ** 功能: 不断查询串口状态,看串口是否收到数据 串口1配置如下 115200,8,N,1 本串口程序是接收到什么字符就返回什么字符 使用我提供的串口调试工具,选择【串口超级终

usart.h

#ifndef _SERIAL_H_ #define _SERIAL_H_ #define BAUD 9600 #define FOSC 4000000L #define NINE 0 /* Use 9bit communication? FALSE=8bit */ #define DIVIDER ((int)(FOSC/(16UL * BAUD) -1))

usart.c

#include #include #include "usart.h" void putch(unsigned char byte) { /* output one byte */ while(!TXIF) /* set when register is empty */ continue; TXREG = byte; }

usart.c

//----------------------------------------------------------------- // 名称: 串口程序 //----------------------------------------------------------------- #define _XTAL_FREQ 4000000UL #define INT8U un

usart.c

//----------------------------------------------------------------- // 名称: 串口程序 //----------------------------------------------------------------- #include #include "USART.h" //-------

usart.h

//----------------------------------------------------------------- // 名称: 串口程序头文件 //----------------------------------------------------------------- #include #define INT8U unsigned c

usart.h

#ifndef __USART_H #define __USART_H #include #include "stdio.h" ////////////////////////////////////////////////////////////////////////////////// //本程序只供学习使用,未经作者许可,不得用于其它任

usart.c

#include "sys.h" #include "usart.h" ////////////////////////////////////////////////////////////////////////////////// //本程序只供学习使用,未经作者许可,不得用于其它任何用途 //Mini STM32开发板 //串口1初始化 //正点原子@ALIENT