MAXREFDES63# Code Documentation  V01.00
8-Channel Digital Output MicroPLC
 All Files Functions Variables Macros Pages
retarget.c File Reference
#include <stdio.h>
#include <rt_misc.h>
#include "stm32f10x.h"
#include "stm32f10x_usart.h"

Go to the source code of this file.

Functions

int sendchar (int c)
 
int getkey (void)
 
int fputc (int c, FILE *f)
 
int fgetc (FILE *f)
 
int ferror (FILE *f)
 
void _ttywrch (int c)
 
void _sys_exit (int return_code)
 

Detailed Description

******************************************************

Project: MAXREFDES63# Filename: retarget.c Description: This file redefines functions used by printf() for outputting characters and getchar() for inputting characters. The printf() function ultimately relies on the fputc() function to operate. The fputc() has been implemented using USART_SendData() Similarly, getchar() relies on the fgetc() function to operate. fgetc() has been implemented using USART_ReceiveData()

Revision History:
04-05-13 Rev 01.00 MTS Initial release.
02-27-14 Rev 02.00 MTS Re-release.


This code follows the following naming conventions:


char ch_pmod_value
char (array) s_pmod_string[16]
float f_pmod_value
int n_pmod_value
int (array) an_pmod_value[16]
u16 u_pmod_value
u16 (array) au_pmod_value[16]
u8 uch_pmod_value
u8 (array) auch_pmod_buffer[16]
unsigned int un_pmod_value
int * pun_pmod_value


Definition in file retarget.c.

Function Documentation

void _sys_exit ( int  return_code)

Definition at line 115 of file retarget.c.

void _ttywrch ( int  c)

Definition at line 108 of file retarget.c.

int ferror ( FILE *  f)

Definition at line 102 of file retarget.c.

int fgetc ( FILE *  f)

Definition at line 91 of file retarget.c.

int fputc ( int  c,
FILE *  f 
)

Definition at line 83 of file retarget.c.

int getkey ( void  )
int sendchar ( int  c)