代码搜索结果
找到约 10,000 项符合
UART 的代码
uart.vhd
--------------------------------------------------------------------------------
-- Company:
-- Engineer:
--
-- Create Date: 17:37:27 03/13/09
-- Design Name:
-- Module Name: uart - B
uart.h
extern void InitUART( unsigned char baudrate );
extern unsigned char ReceiveByte( void );
extern void TransmitByte( unsigned char data );
extern unsigned char DataInReceiveBuffer( void );
uart.c
#include "Motor.h"
#include "UART.h"
void DumpBuffer(WORD iNum, short *pBuf, short iNumCol)
{
SendUARTShort( 0xFFAA ); // tag
SendUARTShort( iNumCol );
while( iNum-- )
uart.h
void DumpBuffer(WORD iNum, short *pBuf, short iNumCol);
void ResetUART(void);
void SetupUART(void);
void SetupUARTFast(void);
void SendUARTShort( short s );
void SendUARTByte( BYTE b );
uart.lst
C51 COMPILER V8.02 UART 03/14/2009 16:22:21 PAGE 1
C51 COMPILER V8.02, COMPILATION OF MODULE UART
OBJECT MODULE PLACED IN UA
uart.c
#include
#include"intrins.h"
#include"UART.h"
/*************************************************************************
使用一部外设时一定要设置交叉开关和通用口,将外设映射到通用口,如UART
*********************
uart.h
#ifndef _UART_H_
#define _UART_H_
#include"Macro.h"
#define XTLVLD (OSCXCN&0X80)
void delay_us(unsigned int us);
void delay(uint8 ms);
void vTxByte(uint8 u8Data);
void PORT_Init(void);
voi
uart.c
#include "..\inc\WOPTIONS.H"
#include "..\ucos\includes.h"
#include "isr.h"
#include "uart.h"
OS_EVENT *Uart0_Rev_mbox=NULL; //Uart0 receive mail box
OS_EVENT *Uart1_Rev_mbo