|
|
|
@ -35,13 +35,19 @@
|
|
|
|
|
|
|
|
|
|
#include <stddef.h>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
|
extern "C" {
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Output a character to a custom device like UART.
|
|
|
|
|
* This function is declared here only. You have to write your custom implementation somewhere.
|
|
|
|
|
* \param character to output
|
|
|
|
|
* \return On success, the character written is returned
|
|
|
|
|
*/
|
|
|
|
|
int _putchar(char character);
|
|
|
|
|
void _putchar(char character);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
@ -73,4 +79,9 @@ int sprintf(char* buffer, const char* format, ...);
|
|
|
|
|
int snprintf(char* buffer, size_t count, const char* format, ...);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
|
}
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#endif // _PRINTF_H_
|
|
|
|
|