roneos
Operating System for the r-one robot
Main Page
Modules
Data Structures
Files
File List
Globals
All
Data Structures
Files
Functions
Variables
Typedefs
Groups
serial.h
Go to the documentation of this file.
1
9
#ifndef SERIAL_H_
10
#define SERIAL_H_
11
12
/******** Defines ********/
13
14
//NOTE SERIAL_BUFFER_SIZE must be a power of 2 for the FIFO buffer pointers to work
15
#define SERIAL_BUFFER_SIZE (128)
16
#define SERIAL_BAUDRATE (230400)
17
//#define SERIAL_BAUDRATE (460800)
18
//#define SERIAL_BAUDRATE (921600)
19
20
/******** Globals ********/
21
22
/* The remote control variables for the serial port. */
23
extern
uint8 rcMode;
24
extern
uint16 rcTimer;
25
#define RC_MODE_OFF 0
26
#define RC_MODE_ON 1
27
#define RC_TIMEOUT 350
28
29
/******** Functions ********/
30
41
void
serial_init(
void
);
42
43
51
void
sputchar(
char
c);
52
53
//TODO: These seem like the user shouldn't see them.
54
void
sputcharFlush(
void
);
55
void
sputcharTickHook(
void
);
56
62
int
sgetchar(
void
);
63
64
//void serial_send_string(const char* string);
65
66
#endif
/* SERIAL_H_ */
SerialIO
serial.h
Generated on Tue Jun 11 2013 14:40:45 for roneos by
1.8.4