代码搜索结果
找到约 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
#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.h
//usart.h
//*----------------------------------------------------------------------------
//* File Name : usart.h
//* Object : declare the extern functions in lcodu_msg.c
//
usart.c
//usart.c for lc ODU
#include
#include "usart.h"
#include "AT91SAM7S128.h"
#include "crc.h"
#include "vars.h"
#include "cmdrun.h"
#include
#define AT91C_MASTER_CLOCK 48
usart.txt
#include "p18f4520.h"
unsigned k;
unsigned aa;
void usart_init(void);
void InterruptHandlerHigh(void);
//高优先级中断向量
#pragma code InterruptVectorHigh=0x08
void InterruptVectorHigh (void)
{
_as
usart.h
#ifndef __USART_H
#define __USART_H
/* PIC18 USART peripheral libraries. */
/* There are three library modules, corresponding to register names:
* USART1 (TXSTA1, RCSTA1, etc.)
* USA
usart.sdb
[p GLOBOPT AUTOSTATIC PIC14 PICMIDHI PICLOMID CANREADCODE ]
"17 C:\HT-PIC\INCLUDE\pic1687x.h
[v _INDF `Vuc 1 s 1 @0 ]
"18
[v _TMR0 `Vuc 1 s 1 @1 ]
"19
[v _PCL `Vuc 1 s 1 @2 ]
"20
[v _STATUS