blob: 6a9906721ec98a7454a1194046e115862432b0ad [file] [log] [blame]
/*
* Copyright (c) 2017-2020, Arm Limited. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*
*/
#ifndef __TEST_FRAMEWORK_HELPERS_H__
#define __TEST_FRAMEWORK_HELPERS_H__
#include <stdint.h>
#include "psa/protected_storage.h"
#include "test_framework.h"
#ifdef __cplusplus
extern "C" {
#endif
enum serial_color_t {
BLACK = 0,
RED = 1,
GREEN = 2,
YELLOW = 3,
BLUE = 4,
MAGENDA = 5,
CYAN = 6,
WHITE = 7,
};
/**
* \brief Translates asset permissions into a string.
*
* \param[in] permissions Asset permissions value.
*
* \return asset permissions as string.
*/
const char *asset_perms_to_str(uint8_t permissions);
/**
* \brief Sets the the text color in the serial port.
*
* \param[in] color_id Serial foreground color.
*
* \return 0 if the message is send successfully, 1 otherwise.
*/
void printf_set_color(enum serial_color_t color_id);
#ifdef __cplusplus
}
#endif
#endif /* __TEST_FRAMEWORK_HELPERS_H__ */