PDL for FM0+  Version1.0
Peripheral Driverl Library for FM0+
C:/pdl_v10/library/utility/printf/uart_printf.c File Reference
#include "uart_printf.h"
#include "mfs\mfs.h"
#include "gpio\gpio.h"
Include dependency graph for uart_printf.c:

Go to the source code of this file.

Defines

#define InitPrintfIo()   {SetPinFunc_SIN0_0();SetPinFunc_SOT0_0();}

Functions

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

Variables

volatile stc_mfsn_uart_tUartCh = &UART0

Detailed Description

The file re-targets the "putchar" function. The printf can be output via UART with this function.

A detailed description is available at Uart Printf Module description

History:

  • 2014-02-14 1.0 Edison Zhang First version.

Definition in file uart_printf.c.


Define Documentation

Definition at line 62 of file uart_printf.c.

Referenced by Uart_Printf_Init().


Variable Documentation

Definition at line 66 of file uart_printf.c.

Referenced by putchar(), and Uart_Printf_Init().