Home |
RTTarget-32 Programming Manual Running Win32 Programs without Win32 Running a Program on the Target Running Demos with Command Line Tools Running Demos in Microsoft Visual Studio Running Demos in the Borland Delphi IDE Using a Standard PC as a Target Using a Standard PC as a Target for GUI Demos Using the AMD Élan SC400 Evaluation Board Using the AMD Élan SC520 Evaluation Board Using the RTOS32Win Virtual Target Using the Real-Time Hypervisor Target Program SerDemo Compiling and Linking with On Time RTOS-32 |
Program SerDemoSerDemo shows how to use RTTarget-32's serial port I/O support. It initializes the target's COM2 for 9600 baud, 8 data bits, 1 stop bit, no parity, and RTS/CTS hardware handshake. All data received is displayed on the screen and echoed to the same port. If transmission errors are detected, corresponding error messages are displayed on the screen. Each time a carriage return character is received, a complete line of text is echoed to the sender. The program can be terminated by entering any character on the target's keyboard. Please refer to the RTTarget-32 Reference Manual, section Serial Port I/O for more information about RTTarget-32's serial I/O support. RTKernel-32 should not use module RTTCom for serial I/O; instead, use module RTCom as demonstrated in demo program COMDemo.
|