Browse Source

add: 添加启用psram的代码,默认禁用,若启用需重新编译sdk

Wendal Chen 4 years ago
parent
commit
1a57da82d9
1 changed files with 8 additions and 0 deletions
  1. 8 0
      platform/arch/xt804/bsp/board_init.c

+ 8 - 0
platform/arch/xt804/bsp/board_init.c

@@ -104,4 +104,12 @@ void board_init(void)
 	uart1Init(115200);
 	set_printf_port(1);	
 #endif
+// 如要使用psram,启用以下代码,并重新编译sdk
+#if 0
+	// 首先, 初始化psram相关引脚
+	wm_psram_config(1);
+	// 然后初始化psram的寄存器
+	psram_init(PSRAM_QPI);
+	//uint8_t* psram_ptr = (uint8_t*)(PSRAM_ADDR_START);
+#endif
 }