PDL for FM0+  Version1.0
Peripheral Driverl Library for FM0+
Uart Pirntf Function

Functions

void Uart_Printf_Init (void)
 UART initialization for printf usage.
int putchar (int ch)
 Re-target putchar function.

Detailed Description

Provided functions of UartPrintfGroup module:

To enable the pirntf via UART0 funciton, Uart_Printf_Init() must be called to initialize UART0.

In the IAR environment, putchar() will be called in printf() to output one byte via UART0. And in the Keil environment, fputc() will be called in printf() to output one byte via UART0.


Function Documentation

int putchar ( int  ch)

Re-target putchar function.

Definition at line 109 of file uart_printf.c.

References Mfs_Uart_GetStatus(), Mfs_Uart_SendData(), TRUE, UartCh, and UartTxEmpty.

Here is the call graph for this function: