EmbeddedEtcher
Functions
printf.c File Reference
#include <stdio.h>
#include <stdarg.h>
#include <string.h>
#include "stm32f10x.h"
#include "helpers.h"
#include "printf.h"
#include "../platform/usart.h"
#include "ossettings.h"
#include "error.h"
Include dependency graph for printf.c:

Functions

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

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).