Other Parts Discussed in Thread: C2000WARE
Tool/software: Code Composer Studio
Hi, I have down load C2000Ware_3_01_00_00 from TI web to learn TI's DSP programing. and in the example named "gpio_ex2_toggle", there was some codes in file "device.c" I could not fully understand.
#ifdef _FLASH
//
// Copy time critical code and flash setup code to RAM. This includes the
// following functions: InitFlash();
//
// The RamfuncsLoadStart, RamfuncsLoadSize, and RamfuncsRunStart symbols
// are created by the linker. Refer to the device .cmd file.
//
memcpy(&RamfuncsRunStart, &RamfuncsLoadStart, (size_t)&RamfuncsLoadSize);
//
// Call Flash Initialization to setup flash waitstates. This function must
// reside in RAM.
//
Flash_initModule(FLASH0CTRL_BASE, FLASH0ECC_BASE, DEVICE_FLASH_WAITSTATES);
#endif
where is _FLASH?
thank you very much!