1 /* 2 * Copyright (c) 2018, Xilinx Inc. and Contributors. All rights reserved. 3 * 4 * SPDX-License-Identifier: BSD-3-Clause 5 */ 6 7 /* 8 * @file assert.h 9 * @brief FreeRTOS assertion support. 10 */ 11 #ifndef __METAL_ASSERT__H__ 12 #error "Include metal/assert.h instead of metal/freertos/assert.h" 13 #endif 14 15 #ifndef __METAL_FREERTOS_ASSERT__H__ 16 #define __METAL_FREERTOS_ASSERT__H__ 17 18 #include <assert.h> 19 20 /** 21 * @brief Assertion macro for FreeRTOS applications. 22 * @param cond Condition to evaluate. 23 */ 24 #define metal_sys_assert(cond) assert(cond) 25 26 #endif /* __METAL_FREERTOS_ASSERT__H__ */ 27 28