Edge AI Add-on API 2.2.0
Loading...
Searching...
No Matches
nrf_edgeai_debug.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2026 Nordic Semiconductor ASA
3 *
4 * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5 */
13#ifndef _NRF_EDGEAI_DEBUG_H_
14#define _NRF_EDGEAI_DEBUG_H_
15
17
22#ifndef NRF_EDGEAI_LOG_ENABLE
23#define NRF_EDGEAI_LOG_ENABLE 0
24#endif
25
26#if NRF_EDGEAI_LOG_ENABLE == 1
27#include <stdio.h>
28#define NRF_EDGEAI_LOG(...) printf(__VA_ARGS__)
29#else
30#define NRF_EDGEAI_LOG(...)
31#endif // NRF_DSP_LOG_ENABLE
32
37#ifndef NRF_EDGEAI_ASSERT_ENABLE
38#define NRF_EDGEAI_ASSERT_ENABLE 0
39#endif
40
41#if NRF_EDGEAI_ASSERT_ENABLE == 1
42#include <assert.h>
43#define nrf_edgeai_assert(x) assert(x)
44#else
45#define nrf_edgeai_assert(x) ((void)(x))
46#endif // NRF_EDGEAI_ASSERT_ENABLE
47
48#endif /* _NRF_EDGEAI_DEBUG_H_ */
49