SWM320_sdram.h 588 B

1234567891011121314151617181920212223
  1. #ifndef __SWM320_SDRAM_H__
  2. #define __SWM320_SDRAM_H__
  3. typedef struct
  4. {
  5. uint8_t DataWidth; // 16、32
  6. uint8_t CellSize; // SDRAM颗粒的容量
  7. uint8_t CellBank; // SDRAM颗粒有几个bank
  8. uint8_t CellWidth; // SDRAM颗粒的位宽 16、32
  9. } SDRAM_InitStructure;
  10. #define SDRAM_CELLSIZE_16Mb 3
  11. #define SDRAM_CELLSIZE_64Mb 0
  12. #define SDRAM_CELLSIZE_128Mb 1
  13. #define SDRAM_CELLSIZE_256Mb 2
  14. #define SDRAM_CELLBANK_2 0
  15. #define SDRAM_CELLBANK_4 1
  16. void SDRAM_Init(SDRAM_InitStructure *initStruct);
  17. #endif //__SWM320_SDRAM_H__