EV Logger
A MSP430 based datalogger for an electric vehicle
Main Page
Related Pages
Modules
Data Structures
Files
File List
Globals
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Groups
Pages
src
uart.h
Go to the documentation of this file.
1
11
#ifndef __UART_H__
12
#define __UART_H__
13
14
#include <msp430.h>
15
#include "
typedefs.h
"
16
17
#ifndef F_CPU
18
#error "F_CPU not defined"
19
#endif
20
21
#define SPI_SIMO BIT1
22
#define SPI_SOMI BIT2
23
#define SPI_CLK BIT3
24
#define SD_CS BIT7
25
26
#define SPI_SEL P4SEL
27
#define SPI_DIR P4DIR
28
#define SPI_OUT P4OUT
29
#define SPI_REN P4REN
30
#define SD_CS_SEL P3SEL
31
#define SD_CS_OUT P3OUT
32
#define SD_CS_DIR P3DIR
33
40
#define UART_BUF_LEN 50
41
42
void
uart_init
(
void
);
43
void
uart_debug
(
char
*
string
);
44
45
#endif
/* __UART_H__ */
46
uart_debug
void uart_debug(char *string)
Send a CRLF terminated string to the debug output (to avoid storing the terminators in RAM all the ti...
Definition:
uart.c:66
uart_init
void uart_init(void)
Set up the UCSI for UART operation at 9600 baud.
Definition:
uart.c:23
typedefs.h
Standard data type shorthand defined as with avr-libc.
Generated on Wed Nov 5 2014 10:07:05 for EV Logger by
1.8.6