代码搜索结果
找到约 10,000 项符合
UART 的代码
uart.cmd
/****************************************************************
* Filename: uart.cmd *
* Function: Software UART example command file using 5410 EVM *
* Author: Robert J. DeNardo *
*
uart.asm
*****************************************************************
* Filename: uart.asm *
* Function: Software UART *
* Author: Robert J. DeNardo *
* Texas Instruments, Inc *
uart.h
#ifndef __UART_H__
#define __UART_H__
void Test_Uart0(void);
void Test_Uart0Fifo(void);
void Test_Uart1(void);
void Test_Uart1Fifo(void);
void Test_Uart0Range(void);
void Test_Uart1Max(void);
uart.c
#include
#include
#include "..\inc\44b.h"
#include "..\inc\44blib.h"
#include "..\inc\def.h"
#include "..\inc\rtc.h"
#define KEY_BUFLEN 100
#define AFC_BUFLEN 0x100
#de
uart.cmd
-w
-stack 400h
-heap 100
-l rts.lib
MEMORY
{
PAGE 0:
VECT : o=80h,l=80h
PRAM : o=100h,l=1f00h
PAGE 1:
DRAM : o=2000h,l=1000h
}
SECTIONS
{
.text : {}> PRAM
uart.pjt
; Code Composer Project File, Version 2.0 (do not modify or remove this line)
[Project Settings]
ProjectDir="c:\icetek-vc5416-edulab\lab0308-UART\"
ProjectType=Executable
CPUFamily=TMS320C54XX
uart.c
/////////////////////////////////////////////////
// Example For ICETEK-VC5416-EDU //
// CTR Version : V4 //
// Filename: Uart.c
uart.h
#include "inc/macro.h"
//void Uart_SendByten(int,U8);
void Uart_SendByten(int Uartnum, U8 data);
char Uart_Getchn(char* Revdata, int Uartnum, int timeout);
uart.c
#define TRUE 1
#define FALSE 0
#define rUTRSTAT0 (*(volatile unsigned *)0x50000010)
#define rUTRSTAT1 (*(volatile unsigned *)0x50004010)
#define WrUTXH0(ch) (*(volatile unsigned char *)0x5000002