Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: sdp_k1_sdram
Diff: app/sdram_sdpk1.c
- Revision:
- 2:007533849deb
diff -r e8361ea27191 -r 007533849deb app/sdram_sdpk1.c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/app/sdram_sdpk1.c Thu Jul 21 16:45:24 2022 +0530
@@ -0,0 +1,35 @@
+/***************************************************************************//**
+ * @file sdram_sdpk1.c
+ * @brief SDP-K1 SDRAM interfaces
+********************************************************************************
+ * Copyright (c) 2022 Analog Devices, Inc.
+ * All rights reserved.
+ *
+ * This software is proprietary to Analog Devices, Inc. and its licensors.
+ * By using this software you agree to the terms of the associated
+ * Analog Devices Software License Agreement.
+*******************************************************************************/
+
+/******************************************************************************/
+/***************************** Include Files **********************************/
+/******************************************************************************/
+
+#include "sdp_k1_sdram.h"
+#include "no_os_error.h"
+
+/******************************************************************************/
+/************************ Functions Definitions *******************************/
+/******************************************************************************/
+
+/**
+ * @brief Initialize the SDP-K1 SDRAM
+ * @return 0 in case of success, negative error code otherwise
+ */
+int32_t sdram_init(void)
+{
+ if (SDP_SDRAM_Init() != SDRAM_OK) {
+ return -EIO;
+ }
+
+ return 0;
+}