代码搜索结果
找到约 10,000 项符合
USART 的代码
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.h
//*----------------------------------------------------------------------------
//* ATMEL Microcontroller Software Support - ROUSSET -
//*-------------------------------------------------
usart.h
/*This file is prepared for Doxygen automatic documentation generation.*/
/*! \file *********************************************************************
*
* \brief USART driver for AVR32 UC3.
usart.c
/*This file is prepared for Doxygen automatic documentation generation.*/
/*! \file *********************************************************************
*
* \brief USART driver for AVR32 UC3.
usart.h
/*This file is prepared for Doxygen automatic documentation generation.*/
/*! \file *********************************************************************
*
* \brief USART driver for AVR32 UC3.
usart.c
/*This file is prepared for Doxygen automatic documentation generation.*/
/*! \file *********************************************************************
*
* \brief USART driver for AVR32 UC3.
usart.h
//usart.h
#define BIT0 0x00000001
#define BIT1 0x00000002
#define BIT2 0x00000004
#define BIT3 0x00000008
#define BIT4 0x00000010
#define BIT5
usart.c
//usart.c
#include "usart.h"
#include "AT91SAM7S64.h"
AT91PS_PIO u_pPio = AT91C_BASE_PIOA;
AT91PS_PMC u_pPMC = AT91C_BASE_PMC;
AT91PS_USART u_pUSART0 = AT91C_BASE_US0;
AT91PS_USAR