mu_stdio.h

来自「本程序为ST公司开发的源代码」· C头文件 代码 · 共 56 行

H
56
字号
/****************************************************************** *                                                                * *        Copyright Mentor Graphics Corporation 2006              * *                                                                * *                All Rights Reserved.                            * *                                                                * *    THIS WORK CONTAINS TRADE SECRET AND PROPRIETARY INFORMATION * *  WHICH IS THE PROPERTY OF MENTOR GRAPHICS CORPORATION OR ITS   * *  LICENSORS AND IS SUBJECT TO LICENSE TERMS.                    * *                                                                * ******************************************************************//* * MUSB-MicroSW buffer-overrun-safe micro-stdio library API. * $Revision: 1.3 $ */#ifndef __MUSB_STDIO_H__#define __MUSB_STDIO_H__#include "mu_tools.h"#if (MUSB_DIAG!=0)/** * gets-analogue. * Get a line from whatever is the default input source, * blocking if necessary until one is available. * @param pBuffer buffer to store a NUL-terminated string (without newline) * @param wBufferSize size of line buffer * @return the number of characters stored in pBuffer, not including the NUL */extern uint16_t MUSB_GetLine(char* pBuffer, uint16_t wBufferSize);/** * puts-analogue. * Print a string to whatever is the default output source. * @param pBuffer NUL-terminated ASCII string * @return TRUE on success * @return FALSE on failure */extern uint8_t MUSB_PrintString(const char* pBuffer);/** * Convenience. * Print a string, followed by a newline,  * to whatever is the default output source. * @param pBuffer NUL-terminated ASCII string * @return TRUE on success * @return FALSE on failure */extern uint8_t MUSB_PrintLine(const char* pBuffer);#endif /*MUSB_DIAG*/#endif	/* multiple inclusion protection */

⌨️ 快捷键说明

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