/** * \brief Performs the low-level initialization of the chip. */ extern WEAK void LowLevelInit(void) { SystemInit(); #ifndef MPU_EXAMPLE_FEATURE _SetupMemoryRegion(); #endif #if defined(FFT_DEMO) && (defined(__GNUC__) || defined(__CC_ARM)) /* Enabling the FPU */ SCB->CPACR |= 0x00F00000; __DSB(); __ISB(); #endif #if defined(ENABLE_TCM) && defined(__GNUC__) volatile char *dst = &_sitcm; volatile char *src = &_itcm_lma; /* copy code_TCM from flash to ITCM */ while (dst < &_eitcm) *dst++ = *src++; #endif }
/** * \brief Performs the low-level initialization of the chip. */ extern WEAK void LowLevelInit( void ) { SystemInit(); #ifndef MPU_EXAMPLE_FEATURE _SetupMemoryRegion(); #endif #if defined(ENABLE_TCM) && defined(__GNUC__) volatile char *dst = &_sitcm; volatile char *src = &_itcm_lma; /* copy code_TCM from flash to ITCM */ while(dst < &_eitcm){ *dst++ = *src++; } #endif }