代码搜索结果
找到约 10,000 项符合
UART 的代码
uart.h
#ifndef __UART_H__
#define __UART_H__
void uart0_init(void);
void uart0_release(void);
char getchar(void);
void putchar(char);
void putstr(char*);
#endif
uart.c
/*************************************************************************/
/* */
/* FILE NAME
uart.h
/*******************************************************************************
*
* UART.H
*
* This module allows to use the UARTs of chipset 1.5 in interrupt mode.
* The driver calls a user's f
uart.c
/*******************************************************************************
*
* UART.C
*
* This module allows to use the UARTs of chipset 1.5 in interrupt mode for
* the Receive side and in
uart.c
/*************************************************************************/
/* */
/* FILE NAME
uart.h
#ifndef INC_EUART
#define INC_EUART
#include "../Include/type.h"
#define UART_PORT 1
#if (UART_PORT==1)
#define UART_BASE 0x206000
#else
#define UART_BASE 0x207000
#endif
#defin
uart.c
#include "uart.h"
#include "../Include/mx1.h"
void EUARTinit()
{
// config I/O pins for UART 2
_reg_PT_GIUS &= PORT_MASK;
_reg_PT_GPR &= PORT_MASK;
// config UART 2
_reg_UCR1 = 5;
_reg_UCR2 =
uart.c
#include
#include "Uart.h"
#include "queue.h"
unsigned char Init_Uart1( unsigned int Baudrate )
{
}
#endif