11 #include "xparameters.h"
12 #include "xil_types.h"
14 /*----------------------------------------------------*/
15 /* Use the following parameter passing structure to */
16 /* make xil_printf re-entrant. */
17 /*----------------------------------------------------*/
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 /*---------------------------------------------------*/
30 typedef char* charptr;
31 typedef int (*func_ptr)(int c);
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);
47 #endif /* end of protection macro */