rfLPC
A low level library for using NXP's LPC17xx SoC. Config is given for MBED prototyping board
printf.h
Go to the documentation of this file.
1 /* This file is part of rflpc. Copyright 2010-2011 Michael Hauspie
2  *
3  * rflpc is free software: you can redistribute it and/or modify
4  * it under the terms of the GNU General Public License as published by
5  * the Free Software Foundation, either version 3 of the License, or
6  * (at your option) any later version.
7  *
8  * rflpc is distributed in the hope that it will be useful,
9  * but WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11  * GNU General Public License for more details.
12  *
13  * You should have received a copy of the GNU General Public License
14  * along with rflpc. If not, see <http://www.gnu.org/licenses/>.
15  */
16 
17 #ifndef __RFLPC_PRINTF_H__
18 #define __RFLPC_PRINTF_H__
19 /*
20  Author: Michael Hauspie <michael.hauspie@univ-lille1.fr>
21  Created:
22  Time-stamp: <2012-03-21 09:14:56 (hauspie)>
23 */
28 #ifdef RFLPC_CONFIG_ENABLE_PRINTF
29 
55 extern int printf(const char *format,...);
56 
57 
62 extern void rflpc_printf_set_putchar(int (*putchar_func)(int c));
63 
66 #endif /* ENABLE_PRINTF */
67 
68 #endif
void rflpc_printf_set_putchar(int(*putchar_func)(int c))
Sets the internal function pointer that is used by printf to output a character.
int printf(const char *format,...)
Formated output function.