Kevin Peng | 62a8711 | 2020-07-07 15:07:46 +0800 | [diff] [blame] | 1 | /* |
Raef Coles | 8b0a791 | 2022-01-07 11:10:33 +0000 | [diff] [blame] | 2 | * Copyright (c) 2017-2022, Arm Limited. All rights reserved. |
Kevin Peng | 62a8711 | 2020-07-07 15:07:46 +0800 | [diff] [blame] | 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> |
Kevin Peng | 62a8711 | 2020-07-07 15:07:46 +0800 | [diff] [blame] | 12 | #include "test_framework.h" |
| 13 | |
| 14 | #ifdef __cplusplus |
| 15 | extern "C" { |
| 16 | #endif |
| 17 | |
| 18 | enum serial_color_t { |
Raef Coles | e1a8c9f | 2021-06-09 14:11:34 +0100 | [diff] [blame] | 19 | DEFAULT = 0, |
| 20 | BLACK = 30, |
| 21 | RED = 31, |
| 22 | GREEN = 32, |
| 23 | YELLOW = 33, |
| 24 | BLUE = 34, |
| 25 | MAGENDA = 35, |
| 26 | CYAN = 36, |
| 27 | WHITE = 37, |
Kevin Peng | 62a8711 | 2020-07-07 15:07:46 +0800 | [diff] [blame] | 28 | }; |
| 29 | |
| 30 | /** |
Kevin Peng | 62a8711 | 2020-07-07 15:07:46 +0800 | [diff] [blame] | 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__ */ |