PSOC6: simplify the mbed_sdk_init sequence

pull/10483/head
Volodymyr Medvid 2019-05-02 18:26:34 +03:00 committed by Volodymyr Medvid
parent c98f91e375
commit 737c98ff8f
1 changed files with 2 additions and 12 deletions

View File

@ -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();
@ -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
}