Keil Logo Arm Logo

_ttywrch()

_ttywrch()

Defined in rt_sys.h, this function writes a character to the console. The console might have been redirected. You can use this function as a last resort error handling routine.

Show/hideSyntax

void __ttywrch(int ch);

Show/hideUsage

The default implementation of this function uses semihosting.

You can redefine this function, or __raise(), even if there is no other input/output. For example, it might write an error message to a log kept in nonvolatile memory.

Show/hideSee also

Concepts

Developing Software for ARM Processors:

Reference

Using ARM C and C++ Libraries and Floating-Point Support:

Copyright © 2011-2012 ARM. All rights reserved.ARM DUI 0589B
Non-ConfidentialID062912

Keil logo

Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.