EV Logger
A MSP430 based datalogger for an electric vehicle
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
uart.h File Reference

UART header. More...

#include <msp430.h>
#include "typedefs.h"

Go to the source code of this file.

Macros

#define SPI_SIMO   BIT1
 
#define SPI_SOMI   BIT2
 
#define SPI_CLK   BIT3
 
#define SD_CS   BIT7
 
#define SPI_SEL   P4SEL
 
#define SPI_DIR   P4DIR
 
#define SPI_OUT   P4OUT
 
#define SPI_REN   P4REN
 
#define SD_CS_SEL   P3SEL
 
#define SD_CS_OUT   P3OUT
 
#define SD_CS_DIR   P3DIR
 
#define UART_BUF_LEN   50
 Length of the temporary buffer we will use for containing strings to be written out over the UART. More...
 

Functions

void uart_init (void)
 Set up the UCSI for UART operation at 9600 baud. More...
 
void uart_debug (char *string)
 Send a CRLF terminated string to the debug output (to avoid storing the terminators in RAM all the time). More...
 

Detailed Description

UART header.

Author
Jon Sowman, University of Southampton j.sow.nosp@m.man@.nosp@m.soton.nosp@m..ac..nosp@m.uk