forked from nneves/MBED-NXP-LPC1768-LWIP
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmonitor.h
36 lines (29 loc) · 881 Bytes
/
monitor.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
/*-----------------------------------------------------*/
/* Universal string handler for user console interface */
/* (C)ChaN, 2010 */
/*-----------------------------------------------------*/
#ifndef _STRFUNC
#define _STRFUNC
#define _USE_XFUNC_IN 1
#define _USE_XFUNC_OUT 1
#define _CR_CRLF 1
#define _USE_XSTRFUNC 1
#if _USE_XFUNC_OUT
extern void (*xfunc_out)(unsigned char);
void xputc (char);
void xputs (const char*);
void xprintf (const char*, ...);
void put_dump (const void*, unsigned long, int);
#endif
#if _USE_XFUNC_IN
extern unsigned char (*xfunc_in)(void);
int get_line (char*, int);
int xatoi (char**, long*);
#endif
#if _USE_XSTRFUNC
int xstrlen (const char*);
char *xstrcpy (char*, const char*);
void *xmemset (void*, int, int);
char *xstrchr (/*const*/ char*, int);
#endif
#endif