#include "sdram.h" #include "SWM341.h" // Device header void InitSDRAM(void) { SDRAM_InitStructure SDRAM_InitStruct; SDRAM_InitStruct.Size = SDRAM_SIZE_8MB; SDRAM_InitStruct.ClkDiv = SDRAM_CLKDIV_1; SDRAM_InitStruct.CASLatency = SDRAM_CASLATENCY_2; SDRAM_InitStruct.TimeTRP = SDRAM_TRP_2; SDRAM_InitStruct.TimeTRCD = SDRAM_TRCD_2; SDRAM_InitStruct.TimeTRFC = SDRAM_TRFC_7; SDRAM_Init(&SDRAM_InitStruct); }