blob: c10d82fc12c1a24af4fd1d1fd09ddd81e421aea3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#ifndef __SWM320_SDRAM_H__
#define __SWM320_SDRAM_H__
typedef struct
{
uint8_t DataWidth; // 16��32
uint8_t CellSize; // SDRAM����������
uint8_t CellBank; // SDRAM�������bank
uint8_t CellWidth; // SDRAM������� 16��32
} SDRAM_InitStructure;
#define SDRAM_CELLSIZE_16Mb 3
#define SDRAM_CELLSIZE_64Mb 0
#define SDRAM_CELLSIZE_128Mb 1
#define SDRAM_CELLSIZE_256Mb 2
#define SDRAM_CELLBANK_2 0
#define SDRAM_CELLBANK_4 1
void SDRAM_Init(SDRAM_InitStructure *initStruct);
#endif //__SWM320_SDRAM_H__
|