代码搜索结果
找到约 10,000 项符合
USART 的代码
usart.h
/****************************************************************************
* Copyright (C), 2009-2010, www.armfly.com
*
* 文件名: usart_printf.h
* 内容简述: 头文件
*
* 文件历史:
* 版本号 日期 作者 说明
usart.c
#include "stm32f10x.h"
#include
#include "usart.h"
void PrintfLogo(char *strName, char *strDate)
{
printf("*************************************************************\n\r");
pr
usart.h
#ifndef __USART_H
#define __USART_H
#include "stm32f10x.h"
#include
extern u8 RxData,flag;
void uart_inint(u32 bound);//串口初始化
void USART1_IRQHandler(void);//中断接受
void uart_put
usart.c
#include "usart.h"
u8 RxData,flag=0;
//重定义fputc函数
int fputc(int ch, FILE *f)
{
while((USART1->SR&0X40)==0);//循环发送,直到发送完毕
USART1->DR = (u8) ch;
return ch;
}
void
usart.h
#ifndef __USART_H
#define __USART_H
#include
#include "stdio.h"
//////////////////////////////////////////////////////////////////////////////////
//本程序只供学习使用,未经作者许可,不得用于其它任
usart.c
#include "sys.h"
#include "usart.h"
//////////////////////////////////////////////////////////////////////////////////
//本程序只供学习使用,未经作者许可,不得用于其它任何用途
//Mini STM32开发板
//串口1初始化
//正点原子@ALIENT
usart.h
#ifndef USART_H
#define USART_H
#include
#include "stm32f10x.h"
/*定义测试状态的枚举*/
typedef enum {FAILED = 0, PASSED = !FAILED} TestStatus;
void USART_Configuration(void);
/*自定义的数据长
usart.c
#include "usart.h"
#ifdef __GNUC__
/* With GCC/RAISONANCE, small printf (option LD Linker->Libraries->Small printf
set to 'Yes') calls __io_putchar() */
#define PUTCHAR_PROTOTYPE int __
usart.lst
C51 COMPILER V9.00 USART 07/23/2012 10:24:24 PAGE 1
C51 COMPILER V9.00, COMPILATION OF MODULE USART
OBJECT MODULE PLACED IN U