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

Configure and initialise the USCI in UART (universal async receiver transmitter) mode, principally for the purposes of debugging. More...

#include <string.h>
#include "uart.h"

Functions

void uart_init (void)
 Set up the UCSI for UART operation at 9600 baud. More...
 
static void _uart_tx (char *string)
 Takes a char pointer, transmit data over the UART until we find a null character. 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

Configure and initialise the USCI in UART (universal async receiver transmitter) mode, principally for the purposes of debugging.

We also provide functionality for transmitting a C-string (null terminated) over the UART to facilitate easy debugging.

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