SikendeRTOS
RTOS for ARM Cortex M3+ SoCs designed and written from scratch
retarget.h File Reference

Redirects printf to UART. More...

#include <stdio.h>
#include "UART0.h"
Include dependency graph for retarget.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int fputc (int ch, FILE *f)
 
int fgetc (FILE *f)
 
int ferror (FILE *f)
 

Detailed Description

Redirects printf to UART.

Definition in file retarget.h.

Function Documentation

◆ ferror()

int ferror ( FILE *  f)

This function will retarget ferror to UART

Author
Sikender
Parameters
fpointer to file
Date
2/04/2019

Definition at line 42 of file retarget.c.

◆ fgetc()

int fgetc ( FILE *  f)

This function will retarget scanf

Author
Sikender
Parameters
fpointer to file
Date
2/04/2019

Definition at line 30 of file retarget.c.

Here is the call graph for this function:

◆ fputc()

int fputc ( int  ch,
FILE *  f 
)

This function retargets printf

Author
Sikender
Parameters
chcharacter
fpointer to file
Date
2/04/2019

Definition at line 18 of file retarget.c.

Here is the call graph for this function: