We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4347746 commit 58082abCopy full SHA for 58082ab
components/fal/inc/fal_def.h
@@ -25,6 +25,13 @@
25
#define FAL_DEBUG 0
26
#endif
27
28
+#if FAL_DEBUG
29
+#ifdef assert
30
+#undef assert
31
+#endif
32
+#define assert(x) RT_ASSERT(x)
33
34
+
35
/* FAL flash and partition device name max length */
36
#ifndef FAL_DEV_NAME_MAX
37
#define FAL_DEV_NAME_MAX 24
components/fal/inc/fal_log.h
@@ -14,15 +14,6 @@
14
#include "fal_def.h"
15
16
#if FAL_DEBUG
17
-#ifdef assert
18
-#undef assert
19
-#endif
20
-#define assert(EXPR) \
21
-if (!(EXPR)) \
22
-{ \
23
- FAL_PRINTF("(%s) has assert failed at %s.\n", #EXPR, __FUNCTION__); \
24
- while (1); \
-}
/* debug level log */
#ifdef log_d
0 commit comments