📄 printf.h
字号:
// This file is part of MANTIS OS, Operating System// See http://mantis.cs.colorado.edu///// Copyright (C) 2003,2004,2005 University of Colorado, Boulder//// This program is free software; you can redistribute it and/or// modify it under the terms of the mos license (see file LICENSE)/** @file printf.h * @author Adam Torgerson * @brief printf (subset) implementation for the node. * @date 12/12/2003 * * * This is a subset of printf used for debugging on the node. * Minimum field width and zero-padding are available for numeric types. * * Note: There are a few stipulations with using our version of * printf over the normal system printf. * * use \%C for 8-bit numbers \n * use \%d for 16-bit numbers \n * use \%l for 32-bit numbers \n * use \%c for characters \n * use \%s for strings \n * use \%b for binary \n * use \%h for hexadecimal */#ifndef PLATFORM_LINUX#ifdef ARCH_AVR#include <avr/pgmspace.h>#endifvoid printf_init(void);#ifdef printf#undef printf#endif// This masks the printf_P function provided by libc, just like our printf// masks the libc printf. Change the name to something else if you want the// old printf_P.#ifdef printf_P#undef printf_P#endif#ifdef puts#undef puts#endif#ifdef putchar#undef putchar#endifint puts(const char *msg);int putchar(int character);int16_t printf(const char *format, ...);#ifdef ARCH_AVRint16_t printf_P(const prog_char *format, ...);#endif#else#include <stdio.h>#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -