SH/M32R T-Engine Home Page
Top
Documents
Download
Tools
T-Monitor
Device Drivers
Middleware
MISC
Applications
FAQ
links
Contact Us
FAQ
< Question >
The simple T-Monitor also has a serial I/O function implemented. What is the difference with a serial I/O driver?
 
< Answer >
Applicable products: SH7727 GCC version T-Monitor, Renesas compiler version T-Monitor, T-Engine/SH7727 device driver (1.00.03)
 

The serial I/O function of the simple T-Monitor is implemented for use of monitor service functions, so that you can use monitor service functions without a serial I/O driver. 
Normally, low-level serial I/Os are implemented as a device driver, and from the monitor service functions of the T-Monitor you use the driver’s service call.

The reason why the simple T-Monitor has a serial I/O function implemented this way is because the method for implementing these monitor service functions of the T-Monitor are not explicitly stipulated in T-Kernel Specifications.
 
(The monitor service functions can be chosen to use their own serial I/O or use a serial I/O driver by altering the USE_CONSOLE_DRIVER value of tmonitor.h. Note also that for a serial I/O driver to be used from the T-Monitor, a driver library (-ldrv) must be added.
 

For the GCC version, correct the Makefile.common file.
     --------------------
     # additional library (for TK/SE)
     LDSYSLIBS = -lstr -ltm -ldrv

     # additional library (for TK)
     #LDSYSLIBS = -lstr -ltm
     --------------------

 
The simple T-Monitor has only tm_putchar and tm_putstring implemented that perform ASCII code transmission. If it is necessary to receive ASCII code or transmit/receive binary data, please be sure to use a serial I/O driver.
 

関連するFAQRelated FAQs
About the simple version of T-Monitor, how much is its function implementation simplified?
 
関連するFAQRelated links
None