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 33e38cc commit 311d38bCopy full SHA for 311d38b
TESTS/mbedmicro-rtos-mbed/rtostimer/main.cpp
@@ -36,6 +36,19 @@ void timer_callback(void const *arg)
36
sem->release();
37
}
38
39
+/* In order to successfully run this test suite when compiled with --profile=debug
40
+ * error() has to be redefined as noop.
41
+ *
42
+ * RtosTimer calls RTX API which uses Event Recorder functionality. When compiled
43
+ * with MBED_TRAP_ERRORS_ENABLED=1 (set in debug profile) EvrRtxTimerError() calls error()
44
+ * which aborts test program.
45
+ */
46
+#if defined(MBED_TRAP_ERRORS_ENABLED) && MBED_TRAP_ERRORS_ENABLED
47
+void error(const char* format, ...) {
48
+ (void) format;
49
+}
50
+#endif
51
+
52
/** Test one-shot not restarted when elapsed
53
*
54
* Given a one-shot timer
0 commit comments