Example program for EVAL-AD4130

Dependencies:   tempsensors sdp_k1_sdram

app/sdram_sdpk1.c

Committer:
Mahesh Phalke
Date:
22 months ago
Revision:
2:7b2b268ea49c

File content as of revision 2:7b2b268ea49c:

/***************************************************************************//**
 *   @file    sdram_sdpk1.c
 *   @brief   SDP-K1 SDRAM interafaces
********************************************************************************
 * 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;
}