Re: __ASSERT - transfer to error handler


kristoffer.skoien@...
 

Thanks for your reply Paul.

Perhaps something simliar to this:

#if defined(CONFIG_ARCH_POSIX)
extern void posix_exit(int exit_code);
#define __ASSERT_POST posix_exit(1)
#elif defined(CONFIG_ASSERT_ERR_HANDLER)
#define __ASSERT_POST _SysFatalErrorHandler(?,?)
#else
#define __ASSERT_POST             \
for (;;) {                \
/* spin thread */ \
}
#endif

Join devel@lists.zephyrproject.org to automatically receive all group messages.