代码搜索结果
找到约 10,000 项符合
USART 的代码
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
#include "includes.h"
#define USART_C
int usart_putchar(char c)
{
if (c == '\n')
usart_putchar('\r');
while(UCSRA & (1
usart.h
#if !defined(USART_H)
#define USART_H
#if defined UCART_C
int usart_putchar(char c);
void init_usart(void);
#else
extern int usart_putchar(char c);
extern void init_usart(void);
#endif
#endif
usart.c
/*
********************************************************
* 文件: usart.c
* 功能: 用于单片机与计算机串口通讯
* 工具: (WINAVR-GCC)
* 作者: cht
* 日期: 2/5/2007
* 版本: 0.1
* 声明:
**
usart.vhd
-- TOP MODULE :USART:
library ieee;
use ieee.std_logic_1164.all;
use work.components.all;
entity usart is
port( dmp_pin : inout std_logic_vector(7 downto 0);
reset_pin : in std_l
usart.h
volatile recive_buf[5];
volatile recive_length=0;
/*************************************
功能:初始化串口0
参数:无
返回值:无
编写人:王志辉
时间:2007年6月4日
*************************************/
void USART0_int(void)
usart.h
#define read_IO_ini PORTB|=(1
usart.c
/*************************************** Copyright (c) *************************************************
*
* POLAR STAR
* 北天星国际有限公司
* http://www.po-star.com
*
*文 件 名: u
usart.c
#include "includes.h"
#define USART_C
int usart_putchar(char c)
{
if (c == '\n')
usart_putchar('\r');
while(UCSRA & (1