Example program for EVAL-AD4130
Dependencies: tempsensors sdp_k1_sdram
sdram_sdpk1.c
00001 /***************************************************************************//** 00002 * @file sdram_sdpk1.c 00003 * @brief SDP-K1 SDRAM interafaces 00004 ******************************************************************************** 00005 * Copyright (c) 2022 Analog Devices, Inc. 00006 * All rights reserved. 00007 * 00008 * This software is proprietary to Analog Devices, Inc. and its licensors. 00009 * By using this software you agree to the terms of the associated 00010 * Analog Devices Software License Agreement. 00011 *******************************************************************************/ 00012 00013 /******************************************************************************/ 00014 /***************************** Include Files **********************************/ 00015 /******************************************************************************/ 00016 00017 #include "sdp_k1_sdram.h" 00018 #include "no_os_error.h" 00019 00020 /******************************************************************************/ 00021 /************************ Functions Definitions *******************************/ 00022 /******************************************************************************/ 00023 00024 /** 00025 * @brief Initialize the SDP-K1 SDRAM 00026 * @return 0 in case of success, negative error code otherwise 00027 */ 00028 int32_t sdram_init(void) 00029 { 00030 if (SDP_SDRAM_Init() != SDRAM_OK) { 00031 return -EIO; 00032 } 00033 00034 return 0; 00035 }
Generated on Wed Jul 20 2022 12:42:25 by 1.7.2