25/* When using unity with the mbed RTOS printing to the serial port using the stdlib is not
26 allowed as it causes a hardfault. Unity has the following define to control how failure
27 messages are written:
29 #ifndef UNITY_OUTPUT_CHAR
30 #include <stdio.h>
31 #define UNITY_OUTPUT_CHAR(a) (void)putchar(a)
34 To make this safe we can define our own version of UNITY_OUTPUT_CHAR and make sure it is
35 thread safe.
38#define UNITY_OUTPUT_CHAR(a) utest_safe_putc(a)
41#endif // UNITY_CONFIG_H
Important Information for this Arm website
By continuing to use our site, you consent to our cookies.
If you are not happy with the use of these cookies, please review our
to learn how they can be disabled.
By disabling cookies, some features of the site will not work.