Edge AI Add-on API 2.2.0
Loading...
Searching...
No Matches
nrf_dsp_platform_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 */
14#ifndef _NRF_DSP_DEBUG_H_
15#define _NRF_DSP_DEBUG_H_
16
18
23#ifndef NRF_DSP_ZERO_DIV_FLAG
24#define NRF_DSP_ZERO_DIV_FLAG 0
25#endif
26
34#ifdef NRF_DSP_ENABLE_RUNTIME_CHECKS
35#define NRF_DSP_RETURN_IF(is_true, ret_val) RETURN_IF(is_true, ret_val)
36#else
37#define NRF_DSP_RETURN_IF(is_true, ret_val) ;
38#endif // NRF_DSP_ENABLE_RUNTIME_CHECKS
39
44#ifndef NRF_DSP_LOG_ENABLE
45#define NRF_DSP_LOG_ENABLE 0
46#endif
47
48#if NRF_DSP_LOG_ENABLE == 1
49#include <stdio.h>
50#define NRF_DSP_LOG(...) printf(__VA_ARGS__)
51#else
52#define NRF_DSP_LOG(...)
53#endif // NRF_DSP_LOG_ENABLE
54
59#ifndef NRF_DSP_ASSERT_ENABLE
60#define NRF_DSP_ASSERT_ENABLE 0
61#endif
62
63#if NRF_DSP_ASSERT_ENABLE == 1
64#include <assert.h>
65#define nrf_dsp_assert(x) assert(x)
66#else
67#define nrf_dsp_assert(x) ;
68#endif // NRF_DSP_ASSERT_ENABLE
69
70#endif /* _NRF_DSP_DEBUG_H_ */
71