Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: HelloWorld_CCA01M1 HelloWorld_CCA02M1 CI-data-logger-server HelloWorld_CCA02M1 ... more
This is a fork of the events subdirectory of https://github.com/ARMmbed/mbed-os.
Note, you must import this library with import name: events!!!
Diff: hal/common/retarget.cpp
- Revision:
- 6336:a0ee59c4aa27
- Parent:
- 6335:6fbbee1c9fd1
- Child:
- 6337:760e146953ef
--- a/hal/common/retarget.cpp Thu Jun 09 18:18:55 2016 +0100
+++ b/hal/common/retarget.cpp Thu Jun 09 18:20:29 2016 +0100
@@ -413,6 +413,10 @@
#endif
#if defined(TOOLCHAIN_GCC)
+#ifdef FEATURE_UVISOR
+#include "uvisor-lib/uvisor-lib.h"
+#endif/* FEATURE_UVISOR */
+
extern "C" WEAK void software_init_hook_rtos(void)
{
// Do nothing by default.
@@ -420,6 +424,15 @@
extern "C" void software_init_hook(void)
{
+#ifdef FEATURE_UVISOR
+ int return_code;
+
+ return_code = uvisor_lib_init();
+ if (return_code) {
+ mbed_die();
+ }
+#endif/* FEATURE_UVISOR */
+
software_init_hook_rtos();
}
#endif