EmbeddedEtcher
printf.h File Reference

Lightweight version of GNU printf. More...

#include <stdio.h>
#include <stdarg.h>
#include "stm32f10x.h"
Include dependency graph for printf.h:

Go to the source code of this file.

Functions

int osPrintf (const char *iformat,...)
 

Detailed Description

Lightweight version of GNU printf.

Author
Maximilian Stiefel
Date
8 Jan 2018

Function Documentation

◆ osPrintf()

int osPrintf ( const char *  iformat,
  ... 
)

printf to be used by the OS user. Can be ported to another platform easily by just using another function to transmit one string with the USART.

Parameters
iformatCurrently supported are d integers c single characters s C strings f Floats with 4 decimals %.xf Floats with x decimals
Return values
Returnsthe number of characters printed (SUCCESS) or -1 (FAILURE).