1 /*
2  * Copyright (c) 2017-2022, Arm Limited. All rights reserved.
3  *
4  * SPDX-License-Identifier: BSD-3-Clause
5  *
6  */
7 
8 #ifndef __TEST_FRAMEWORK_HELPERS_H__
9 #define __TEST_FRAMEWORK_HELPERS_H__
10 
11 #include <stdint.h>
12 #include "test_framework.h"
13 
14 #ifdef __cplusplus
15 extern "C" {
16 #endif
17 
18 enum serial_color_t {
19     DEFAULT = 0,
20     BLACK   = 30,
21     RED     = 31,
22     GREEN   = 32,
23     YELLOW  = 33,
24     BLUE    = 34,
25     MAGENTA = 35,
26     CYAN    = 36,
27     WHITE   = 37,
28 };
29 
30 /**
31  * \brief Sets the the text color in the serial port.
32  *
33  * \param[in] color_id  Serial foreground color.
34  *
35  * \return 0 if the message is send successfully, 1 otherwise.
36  */
37 void printf_set_color(enum serial_color_t color_id);
38 
39 #ifdef __cplusplus
40 }
41 #endif
42 
43 #endif /* __TEST_FRAMEWORK_HELPERS_H__ */
44