Official mbed Real Time Operating System based on the RTX implementation of the CMSIS-RTOS API open standard.
Dependents: Assignment_3__Embedded_Software
Fork of mbed-rtos by
Revision 113:d9366c711a75, committed 2016-05-05
- Comitter:
- mbed_official
- Date:
- Thu May 05 22:00:15 2016 +0100
- Parent:
- 112:53ace74b190c
- Child:
- 114:031a41d65add
- Commit message:
- Synchronized with git revision 84fc61c94068d277a18b9e868e3e3cad4e876c28
Full URL: https://github.com/mbedmicro/mbed/commit/84fc61c94068d277a18b9e868e3e3cad4e876c28/
[RTOS] Improved Error Functions
Changed in this revision
| rtx/TARGET_CORTEX_M/RTX_Conf_CM.c | Show annotated file Show diff for this revision Revisions of this file |
--- a/rtx/TARGET_CORTEX_M/RTX_Conf_CM.c Thu May 05 20:45:13 2016 +0100
+++ b/rtx/TARGET_CORTEX_M/RTX_Conf_CM.c Thu May 05 22:00:15 2016 +0100
@@ -357,18 +357,17 @@
extern void error(const char* format, ...);
extern osThreadId svcThreadGetId (void);
-#include "stdio.h"
-
void os_error (uint32_t err_code) {
/* This function is called when a runtime error is detected. Parameter */
/* 'err_code' holds the runtime error code (defined in RTX_Config.h). */
osThreadId err_task = svcThreadGetId();
- error("CMSIS RTX error code: 0x%08X, task ID: 0x%08X\n", err_code, (uint32_t)err_task);
+ error("RTX error code: 0x%08X, task ID: 0x%08X\n", err_code, err_task);
}
void sysThreadError(osStatus status) {
if (status != osOK) {
- mbed_die();
+ osThreadId err_task = svcThreadGetId();
+ error("CMSIS-RTOS error status: 0x%08X, task ID: 0x%08X\n", status, err_task);
}
}
