MAX32680 Peripheral Driver API
Peripheral Driver API for the MAX32680
Toggle main menu visibility
Main Page
Modules
Data Structures
Data Structures
Data Structure Index
Data Fields
All
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
z
Variables
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
z
•
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Modules
mxc_assert.h
1
6
/******************************************************************************
7
*
8
* Copyright (C) 2022-2023 Maxim Integrated Products, Inc. (now owned by
9
* Analog Devices, Inc.),
10
* Copyright (C) 2023-2024 Analog Devices, Inc.
11
*
12
* Licensed under the Apache License, Version 2.0 (the "License");
13
* you may not use this file except in compliance with the License.
14
* You may obtain a copy of the License at
15
*
16
* http://www.apache.org/licenses/LICENSE-2.0
17
*
18
* Unless required by applicable law or agreed to in writing, software
19
* distributed under the License is distributed on an "AS IS" BASIS,
20
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
21
* See the License for the specific language governing permissions and
22
* limitations under the License.
23
*
24
******************************************************************************/
25
26
/* Define to prevent redundant inclusion */
27
#ifndef LIBRARIES_PERIPHDRIVERS_INCLUDE_MAX32680_MXC_ASSERT_H_
28
#define LIBRARIES_PERIPHDRIVERS_INCLUDE_MAX32680_MXC_ASSERT_H_
29
30
/* **** Includes **** */
31
32
#ifdef __cplusplus
33
extern
"C"
{
34
#endif
35
42
/* **** Definitions **** */
48
#ifdef MXC_ASSERT_ENABLE
54
#define MXC_ASSERT(expr) \
55
if (!(expr)) { \
56
mxc_assert(#expr, __FILE__, __LINE__); \
57
}
63
#define MXC_ASSERT_FAIL() mxc_assert("FAIL"
, __FILE__, __LINE__);
64
#else
65
#define MXC_ASSERT(expr)
66
#define MXC_ASSERT_FAIL()
67
#endif
69
/* **** Globals **** */
70
71
/* **** Function Prototypes **** */
72
86
void
mxc_assert
(
const
char
*expr,
const
char
*file,
int
line);
87
90
#ifdef __cplusplus
91
}
92
#endif
93
94
#endif
// LIBRARIES_PERIPHDRIVERS_INCLUDE_MAX32680_MXC_ASSERT_H_
mxc_assert
void mxc_assert(const char *expr, const char *file, int line)
Assert an error when the given expression fails during debugging.
Include
MAX32680
mxc_assert.h
Generated on Fri Oct 25 2024 14:39:38 for MAX32680 Peripheral Driver API by
1.9.4