Mistake on this page?
Report an issue in GitHub or email us
unity_config.h
1 
2 /** \addtogroup frameworks */
3 /** @{*/
4 /****************************************************************************
5  * Copyright (c) 2015, ARM Limited, All Rights Reserved
6  * SPDX-License-Identifier: Apache-2.0
7  *
8  * Licensed under the Apache License, Version 2.0 (the "License"); you may
9  * not use this file except in compliance with the License.
10  * You may obtain a copy of the License at
11  *
12  * http://www.apache.org/licenses/LICENSE-2.0
13  *
14  * Unless required by applicable law or agreed to in writing, software
15  * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
16  * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17  * See the License for the specific language governing permissions and
18  * limitations under the License.
19  ****************************************************************************
20  */
21 
22 #ifndef UNITY_CONFIG_H
23 #define UNITY_CONFIG_H
24 
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:
28 
29  #ifndef UNITY_OUTPUT_CHAR
30  #include <stdio.h>
31  #define UNITY_OUTPUT_CHAR(a) (void)putchar(a)
32  #endif
33 
34  To make this safe we can define our own version of UNITY_OUTPUT_CHAR and make sure it is
35  thread safe.
36 */
37 #ifndef UNITY_OUTPUT_CHAR
38 #define UNITY_OUTPUT_CHAR(a) utest_safe_putc(a)
39 #endif //UNITY_OUTPUT_CHAR
40 
41 #endif // UNITY_CONFIG_H
42 
43 /** @}*/
Important Information for this Arm website

This site uses cookies to store information on your computer. 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 Cookie Policy to learn how they can be disabled. By disabling cookies, some features of the site will not work.