add semc and extern sram test for ok-1052
This commit is contained in:
@@ -2,12 +2,18 @@
|
||||
#include <stdint.h>
|
||||
|
||||
/* parameters for sram peripheral */
|
||||
/* stm32f4 Bank3:0X68000000 */
|
||||
#define SRAM_BANK_ADDR ((uint32_t)0X68000000)
|
||||
// /* stm32f4 Bank3:0X68000000 */
|
||||
// #define SRAM_BANK_ADDR ((uint32_t)0X68000000)
|
||||
|
||||
/* OK-1052 semc:0X80000000 */
|
||||
#define SRAM_BANK_ADDR ((uint32_t)0X80000000)
|
||||
/* data width: 8, 16, 32 */
|
||||
#define SRAM_DATA_WIDTH 16
|
||||
|
||||
// /* sram size */
|
||||
// #define SRAM_SIZE ((uint32_t)0x00100000)
|
||||
/* sram size */
|
||||
#define SRAM_SIZE ((uint32_t)0x00100000)
|
||||
#define SRAM_SIZE ((uint32_t)0x008000)
|
||||
|
||||
int sram_test(void)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user