feat support ext sdram for xishutong-arm32 board

This commit is contained in:
Liu_Weichao
2023-12-08 14:17:57 +08:00
parent 093f362387
commit 9a97e9dd94
9 changed files with 609 additions and 0 deletions
@@ -0,0 +1,37 @@
/*
* Copyright (c) 2020 AIIT XUOS Lab
* XiUOS is licensed under Mulan PSL v2.
* You can use this software according to the terms and conditions of the Mulan PSL v2.
* You may obtain a copy of Mulan PSL v2 at:
* http://license.coscl.org.cn/MulanPSL2
* THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
* EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
* MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
* See the Mulan PSL v2 for more details.
*/
/**
* @file connect_sdram.h
* @brief define xishutong-arm32-board sdram function and struct
* @version 2.0
* @author AIIT XUOS Lab
* @date 2023-02-09
*/
#include <device.h>
#include <hc32_ll_fcg.h>
#include <hc32_ll_gpio.h>
#include <hc32_ll_dmc.h>
#include <hc32_ll_clk.h>
#ifdef __cplusplus
extern "C" {
#endif
int ExtSdramInit(void);
#ifdef __cplusplus
}
#endif