TM STM32F4xx Libraries  v1.0.0
Libraries for STM32F4xx devices from Tilen Majerle
tm_stm32f4_stdio.h
1 
30 #ifndef TM_STDIO_H
31 #define TM_STDIO_H 100
32 
33 /* C++ detection */
34 #ifdef __cplusplus
35 extern C {
36 #endif
37 
86 #include "stm32f4xx.h"
87 #include "defines.h"
88 #include "attributes.h"
89 #include "stdio.h"
90 
100 struct __FILE {
101  int (*outputFuncPointer)(int, FILE *);
102  int (*inputFuncPointer)(FILE *);
103 };
104 
121 void TM_STDIO_SetOutputFunction(FILE* f, int (*outputFuncPointer)(int, FILE *));
122 
129 void TM_STDIO_SetInputFunction(FILE* f, int (*inputFuncPointer)(FILE *));
130 
142 int TM_STDIO_StdoutHandler(int c, FILE* f);
143 
153 int TM_STDIO_StdinHandler(FILE* f);
154 
167 /* C++ detection */
168 #ifdef __cplusplus
169 }
170 #endif
171 
172 #endif
void TM_STDIO_SetInputFunction(FILE *f, int(*inputFuncPointer)(FILE *))
Links file input stream with input get character function.
int TM_STDIO_StdinHandler(FILE *f)
Default input handler for standard input (stdin)
File structure for stdio stream output.
Definition: tm_stm32f4_stdio.h:100
void TM_STDIO_SetOutputFunction(FILE *f, int(*outputFuncPointer)(int, FILE *))
Links file output stream with output put character function.
int(* inputFuncPointer)(FILE *)
Definition: tm_stm32f4_stdio.h:102
int TM_STDIO_StdoutHandler(int c, FILE *f)
Default output handler for standard output (stdout)
int(* outputFuncPointer)(int, FILE *)
Definition: tm_stm32f4_stdio.h:101