Name

board_stdout — sets the output device

Synopsis

#include <board.h>   
void board_stdout (dev); 
board_stdout_t dev;
 

Arguments

dev

the output device

Description

Sets the device to be used when the stdio functions like printf are invoked to write to stdout. The available devices are NULL_STDOUT, LCD_STDOUT and SERIAL_STDOUT. For example, if all the output should go to the LCD, set LCD_STDOUT as the stdout as shown below.

Example


   board_stdout(LCD_STDOUT); // Set LCD as stdout device.
   printf(Hello World);    // Message goes to the LCD.