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 3d031ce commit 383b8f9Copy full SHA for 383b8f9
targets/TARGET_Cypress/TARGET_PSOC6/mbed_overrides.c
@@ -22,6 +22,7 @@
22
#include "cybsp.h"
23
#include "cy_mbed_post_init.h"
24
#include "mbed_power_mgmt.h"
25
+#include "mbed_error.h"
26
#if MBED_CONF_RTOS_PRESENT
27
#include "rtos_idle.h"
28
#endif // MBED_CONF_RTOS_PRESENT
@@ -75,7 +76,9 @@ void mbed_sdk_init(void)
75
76
SystemInit();
77
78
/* Set up the device based on configurator selections */
- cybsp_init();
79
+ if (CY_RSLT_SUCCESS != cybsp_init()) {
80
+ MBED_ERROR(MBED_MAKE_ERROR(MBED_MODULE_DRIVER, MBED_ERROR_CODE_FAILED_OPERATION), "cybsp_init");
81
+ }
82
83
cy_mbed_post_bsp_init_hook();
84
0 commit comments