UART.h

00001 /*
00002  *  UART.h
00003  *  
00004  *
00005  *  Created by Nicolas Williamson on 3/18/09.
00006  *  Copyright 2009 Cornell University. All rights reserved.
00007  *
00008  */
00009 
00010 #ifndef UART_SETUP
00011 #define UART_SETUP
00012 
00013 /* HARDWARE SETUP: Put into Hardware_Setup.c setup_hardware() function
00014 
00015  // *******************************************************************************
00016  // Initialize UART0 for printf function
00017  // *******************************************************************************
00018  U0LCR=0x83;  // DLAB=1
00019  U0DLL=32;
00020  U0DLM=0;
00021  U0FCR|=1;    // FIFO
00022  U0LCR=0x3;   // DLAB=0
00023  PINSEL0_bit.P0_0 = 1;    // UART0 TXD
00024  PINSEL0_bit.P0_1 = 1;    // UART0 RXD
00025 
00026 */
00027 
00028 //Function Headers
00029 int sendchar (int ch);
00030 int getkey (void);
00031 
00032 
00033 #endif
Generated on Tue Jun 29 16:36:14 2010 by  doxygen 1.6.3