代码搜索结果
找到约 10,000 项符合
UART 的代码
uart.h
#ifndef __UART_H__
#define __UART_H__
typedef struct
{
unsigned char TxBuf[1024];
int TxCnt;
int TxLen;
}
TX_DATA;
void Uart0_Init(int mclk,int baud);
void Uart0_Send(TX_DATA *pTx);
uart.c
#include
#include "44b.h"
#include "UART.H"
static void __irq Uart0_RxInt() //串口接受中断服务程序
{
unsigned char i;
unsigned char data[16];
unsigned char DataCount=0;
memset(data
uart.h
/**************************************************************************************
*
* Project Name : S3C6400 Validation
*
* Copyright 2006 by Samsung Electronics, Inc.
* All rights reserve
uart.c
/**************************************************************************************
*
* Project Name : S3C6400 Validation
*
* Copyright 2006 by Samsung Electronics, Inc.
* All rights res
uart_if.bsf
/*
WARNING: Do NOT edit the input and output ports in this file in a text
editor if you plan to continue editing the block that represents it in
the Block Editor! File corruption is VERY likely to
uart.v
/******************************************************************************
*
* File Name: uart.v
* Version: 1.1
* Date: January 22, 2000
* Model: Uart Chip
* Depe
uart_if.v
`timescale 1 ns / 1 ns
module uart_if(clk,rst_n,txd,rxd,data_out,data_in);
input clk,rst_n,rxd;
input[7:0] data_in;
output txd;
output[7:0] data_out;
reg [7:0] data_out;
reg [7
uart.c
/*
* Purpose: Initialize ColdFire 5307
*
*/
#define IMMaddr 0x10000000
#define SDRAMaddr 0x00000000
#define SDRAMsize 0x00800000 //8M
#define SRAMaddr 0x00800000
#define SRAMsize (4 *
uart.h
#ifndef _UART_H
#define _UART_H
void UartSetBaud(U32 ch, U32 baud);
char UartGetch(U32 ch);
char UartGetkey(U32 ch);
void UartPutch(U32 ch, U32 data);
void UartPuts(U32 ch, char *pt);
void Ua