-
Notifications
You must be signed in to change notification settings - Fork 0
/
wr_console.h
49 lines (42 loc) · 1.28 KB
/
wr_console.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
//*****************************************************************************
//
// wr_console.h - Walking Robot's Console
//
//*****************************************************************************
#ifndef __WR_CONSOLE_H__
#define __WR_CONSOLE_H__
//*****************************************************************************
//
// If building with a C++ compiler, make all of the definitions in this header
// have a C binding.
//
//*****************************************************************************
#ifdef __cplusplus
extern "C"
{
#endif
#include "wobot.h"
//
// Constant form utils/cmdline.h
//
#define CMDLINE_BAD_CMD (-1)
#define CMDLINE_TOO_MANY_ARGS (-2)
//
// WRotbot constants
//
#define CMDLINE_WRONG_ARGS (-3)
#define CMDLINE_COMMAND_FAIL (-4)
#define CMDLINE_COMMAND_OK (0)
extern void WRConsoleInit(void);
void WRConsoleCharPut(unsigned long ulBase, unsigned char ucData);
void WRConsoleHandler();
void WRSendDistance(int);
//*****************************************************************************
//
// Mark the end of the C bindings section for C++ compilers.
//
//*****************************************************************************
#ifdef __cplusplus
}
#endif
#endif // __WR_CONSOLE_H__