Skip to content

Commit

Permalink
PSOC6: simplify the mbed_sdk_init sequence
Browse files Browse the repository at this point in the history
  • Loading branch information
vmedcy committed May 3, 2019
1 parent c98f91e commit 737c98f
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions targets/TARGET_Cypress/TARGET_PSOC6/mbed_overrides.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,6 @@ void mailbox_init(void);
*******************************************************************************/
void mbed_sdk_init(void)
{
#if !defined(COMPONENT_SPM_MAILBOX)
/* Disable global interrupts */
__disable_irq();
#endif

/* Initialize shared resource manager */
cy_srm_initialize();

Expand All @@ -50,16 +45,11 @@ void mbed_sdk_init(void)
mailbox_init();
#endif

#if (CY_CPU_CORTEX_M0P)
#if !defined(COMPONENT_SPM_MAILBOX)
/* Enable global interrupts */
__enable_irq();
#endif
#else
#if (!CY_CPU_CORTEX_M0P)
/* Set up the device based on configurator selections */
init_cycfg_all();

/* Enable global interrupts */
/* Enable global interrupts (disabled in CM4 startup assembly) */
__enable_irq();
#endif
}

0 comments on commit 737c98f

Please sign in to comment.