| ||||||||||||||||||||||||||||||||||||||||
Technical Support On-Line Manuals CARM User's Guide | Stream I/O Routines
The stream I/O routines are implemented as functions and are prototyped in the stdio.h include file. The stream input and output routines allow you to read and write data to and from a user-defined I/O interface. Characters are read using the _getkey routine and are written using the putchar routine. The default _getkey and putchar functions in the library read and write characters using your device's serial interface. The source code for _getkey and putchar is available in the \KEIL\ARM\LIB folder. You may modify these files and substitute them for the default library routines. The stream functions then perform input and output using your modified _getkey and putchar routines. To use the existing _getkey and putchar routines, you must first initialize the serial port. If the serial port is not properly initialized, the default stream functions do not function. | |||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||