]> git.sur5r.net Git - freertos/blob - FreeRTOS/Demo/CORTEX_A9_Zynq_ZC702/RTOSDemo_bsp/ps7_cortexa9_0/include/xil_printf.h
Remove obsolete MPU demos.
[freertos] / FreeRTOS / Demo / CORTEX_A9_Zynq_ZC702 / RTOSDemo_bsp / ps7_cortexa9_0 / include / xil_printf.h
1  #ifndef XIL_PRINTF_H
2  #define XIL_PRINTF_H
3
4 #ifdef __cplusplus
5 extern "C" {
6 #endif
7
8 #include <ctype.h>
9 #include <string.h>
10 #include <stdarg.h>
11 #include "xparameters.h"
12 #include "xil_types.h"
13
14 /*----------------------------------------------------*/
15 /* Use the following parameter passing structure to   */
16 /* make xil_printf re-entrant.                        */
17 /*----------------------------------------------------*/
18
19 struct params_s;
20
21
22 /*---------------------------------------------------*/
23 /* The purpose of this routine is to output data the */
24 /* same as the standard printf function without the  */
25 /* overhead most run-time libraries involve. Usually */
26 /* the printf brings in many kilobytes of code and   */
27 /* that is unacceptable in most embedded systems.    */
28 /*---------------------------------------------------*/
29
30 typedef char* charptr;
31 typedef int (*func_ptr)(int c);
32
33 /*                                                   */
34 void padding( const int l_flag, struct params_s *par);
35 void outs( charptr lp, struct params_s *par);
36 void outnum( const long n, const long base, struct params_s *par);
37 int getnum( charptr* linep);
38 void xil_printf( const char *ctrl1, ...);
39 void print( const char *ptr);
40 void outbyte (char);
41 char inbyte(void);
42
43 #ifdef __cplusplus
44 }
45 #endif
46
47 #endif  /* end of protection macro */