]> git.sur5r.net Git - freertos/blob - FreeRTOS/Demo/CORTEX_A9_Zynq_ZC702/RTOSDemo_bsp/ps7_cortexa9_0/libsrc/standalone_v6_6/src/xil_printf.h
Update Zynq, MPSoc Cortex-A53 and MPSoc Cortex-R5 demo projects to build with the...
[freertos] / FreeRTOS / Demo / CORTEX_A9_Zynq_ZC702 / RTOSDemo_bsp / ps7_cortexa9_0 / libsrc / standalone_v6_6 / src / 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 "xil_types.h"
12 #include "xparameters.h"
13 #include "bspconfig.h"
14 #if HYP_GUEST && EL1_NONSECURE && XEN_USE_PV_CONSOLE
15 #include "xen_console.h"
16 #endif
17
18 /*----------------------------------------------------*/
19 /* Use the following parameter passing structure to   */
20 /* make xil_printf re-entrant.                        */
21 /*----------------------------------------------------*/
22
23 struct params_s;
24
25
26 /*---------------------------------------------------*/
27 /* The purpose of this routine is to output data the */
28 /* same as the standard printf function without the  */
29 /* overhead most run-time libraries involve. Usually */
30 /* the printf brings in many kilobytes of code and   */
31 /* that is unacceptable in most embedded systems.    */
32 /*---------------------------------------------------*/
33
34 typedef char8* charptr;
35 typedef s32 (*func_ptr)(int c);
36
37 /*                                                   */
38
39 void xil_printf( const char8 *ctrl1, ...);
40 void print( const char8 *ptr);
41 extern void outbyte (char8 c);
42 extern char8 inbyte(void);
43
44 #ifdef __cplusplus
45 }
46 #endif
47
48 #endif  /* end of protection macro */