mirror of https://github.com/ARMmbed/mbed-os.git
PSOC6: simplify the mbed_sdk_init sequence
parent
c98f91e375
commit
737c98ff8f
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue