⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 xil_printf.h

📁 自学ZedBoard:使用IP通过ARM PS访问FPGA(源代码)
💻 H
字号:
 #ifndef XIL_PRINTF_H #define XIL_PRINTF_H#ifdef __cplusplusextern "C" {#endif#include <ctype.h>#include <string.h>#include <stdarg.h>#include "xparameters.h"#include "xil_types.h"/*----------------------------------------------------*//* Use the following parameter passing structure to   *//* make xil_printf re-entrant.                        *//*----------------------------------------------------*/typedef struct params_s {    int len;    int num1;    int num2;    char pad_character;    int do_padding;    int left_flag;} params_t;/*---------------------------------------------------*//* The purpose of this routine is to output data the *//* same as the standard printf function without the  *//* overhead most run-time libraries involve. Usually *//* the printf brings in many kilobytes of code and   *//* that is unacceptable in most embedded systems.    *//*---------------------------------------------------*/typedef char* charptr;typedef int (*func_ptr)(int c);/*                                                   */void padding( const int l_flag, params_t *par);void outs( charptr lp, params_t *par);void outnum( const long n, const long base, params_t *par);int getnum( const charptr* linep);void xil_printf( const char *ctrl1, ...);void print( char const *ptr);#ifdef __cplusplus}#endif#endif	/* end of protection macro */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -