Project 7  3-Axis Accelerometer Sensor Module
Neff Site
Functions
console.h File Reference

Connect stdio with the USB-USART gateway. More...

#include <stdio.h>

Go to the source code of this file.

Functions

void console_init (void)
 Connect stdio with the USB-USART gateway. More...
 
void console_clear (void)
 Clear screen. More...
 

Detailed Description

Connect stdio with the USB-USART gateway.

This module connects stdio with the USB-USART gateway (USARTC0) so that the standard input/output functions such as getchar, putchar, gets, puts, printf and scanf can be used with the console (PuTTY or KiTTY).

Author
Wolfgang Neff
Version
1.3
Date
2017-12-10
History
Created: 2013-07-20
Modified: 2014-10-17
Modified: 2017-11-26
Modified: 2017-12-10
Note
USART parameters: 115200 8N1

Function Documentation

◆ console_clear()

void console_clear ( void  )

Clear screen.

This routine erases the screen with the background color and moves the cursor to its home position. This routine requires an ANSI/VT100 compatible terminal.

◆ console_init()

void console_init ( void  )

Connect stdio with the USB-USART gateway.

This routine initializes the USB-USART gateway (USARTC0) and links it with stdio.

Contact