Skip to content

Commit 737c98f

Browse files
committed
PSOC6: simplify the mbed_sdk_init sequence
1 parent c98f91e commit 737c98f

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed

targets/TARGET_Cypress/TARGET_PSOC6/mbed_overrides.c

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,6 @@ void mailbox_init(void);
3434
*******************************************************************************/
3535
void mbed_sdk_init(void)
3636
{
37-
#if !defined(COMPONENT_SPM_MAILBOX)
38-
/* Disable global interrupts */
39-
__disable_irq();
40-
#endif
41-
4237
/* Initialize shared resource manager */
4338
cy_srm_initialize();
4439

@@ -50,16 +45,11 @@ void mbed_sdk_init(void)
5045
mailbox_init();
5146
#endif
5247

53-
#if (CY_CPU_CORTEX_M0P)
54-
#if !defined(COMPONENT_SPM_MAILBOX)
55-
/* Enable global interrupts */
56-
__enable_irq();
57-
#endif
58-
#else
48+
#if (!CY_CPU_CORTEX_M0P)
5949
/* Set up the device based on configurator selections */
6050
init_cycfg_all();
6151

62-
/* Enable global interrupts */
52+
/* Enable global interrupts (disabled in CM4 startup assembly) */
6353
__enable_irq();
6454
#endif
6555
}

0 commit comments

Comments
 (0)