static void scm_init(void) { /* * Enable on-chip modules to access internal SRAM */ MCF_SCM_RAMBAR = (0 | MCF_SCM_RAMBAR_BA(RAMBAR_ADDRESS) | MCF_SCM_RAMBAR_BDE); }
void mcf5225x_scm_init(void) { /* * Enable on-chip modules to access internal SRAM */ MCF_SCM_RAMBAR = (0 | MCF_SCM_RAMBAR_BA(SRAM_ADDRESS) | MCF_SCM_RAMBAR_BDE); }
"add.l #0x1,%d0 \n" "move.l %d0,0x40000000 " ); /* Initialize FLASHBAR (0x00) */ asm volatile( "move.l #0x00,%d0 \n" "andi.l #0xFFF80000,%d0 \n" "add.l #0x41,%d0 \n" "movec %d0,%FLASHBAR " ); portDISABLE_INTERRUPTS(); /* RAMBAR. */ MCF_SCM_RAMBAR = MCF_SCM_RAMBAR_BA( RAMBAR_ADDRESS ) | MCF_SCM_RAMBAR_BDE; /* Multiply 25MHz crystal by 12 to get 60MHz clock. */ MCF_CLOCK_SYNCR = MCF_CLOCK_SYNCR_MFD(4) | MCF_CLOCK_SYNCR_CLKSRC| MCF_CLOCK_SYNCR_PLLMODE | MCF_CLOCK_SYNCR_PLLEN ; while (!(MCF_CLOCK_SYNSR & MCF_CLOCK_SYNSR_LOCK)) { } /* Setup the port used to toggle LEDs. */ vParTestInitialise(); } /*-----------------------------------------------------------*/ void vApplicationStackOverflowHook( xTaskHandle *pxTask, signed portCHAR *pcTaskName ) { /* This will get called if a stack overflow is detected during the context