Exemplo n.º 1
0
/* initialization routine for Multicore examples */
static void prvSetupHardware(void)
{
	SystemCoreClockUpdate();

	/* Initialize the IPC Queue */
	IPCEX_Init();

	NVIC_EnableIRQ(M4_IRQn);
}
Exemplo n.º 2
0
/* initialization routine for Multicore examples */
static void prvSetupHardware(void)
{
	SystemCoreClockUpdate();
	Board_Init();

	/* Time to Start M0APP */
	if (M0Image_Boot(CPUID_M0APP, (uint32_t) BASE_ADDRESS_M0APP) < 0) {
		DEBUGSTR("Unable to BOOT M0APP Core!");
	}

#ifdef BASE_ADDRESS_M0SUB
	if (M0Image_Boot(CPUID_M0SUB, (uint32_t) BASE_ADDRESS_M0SUB) < 0) {
		DEBUGSTR("Unable to BOOT M0SUB Core!");
	}
#endif

	/* Initialize the IPC Queue */
	IPCEX_Init();

	/* Start the tick timer */
	SysTick_Config(SystemCoreClock / 1000);
}