Example program for EVAL-AD4130
Dependencies: tempsensors sdp_k1_sdram
app/sdram_sdpk1.c@2:7b2b268ea49c, 22 months ago (annotated)
- Committer:
- Mahesh Phalke
- Date:
- Wed Jul 20 18:12:00 2022 +0530
- Revision:
- 2:7b2b268ea49c
Initial firmware commit
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Mahesh Phalke |
2:7b2b268ea49c | 1 | /***************************************************************************//** |
Mahesh Phalke |
2:7b2b268ea49c | 2 | * @file sdram_sdpk1.c |
Mahesh Phalke |
2:7b2b268ea49c | 3 | * @brief SDP-K1 SDRAM interafaces |
Mahesh Phalke |
2:7b2b268ea49c | 4 | ******************************************************************************** |
Mahesh Phalke |
2:7b2b268ea49c | 5 | * Copyright (c) 2022 Analog Devices, Inc. |
Mahesh Phalke |
2:7b2b268ea49c | 6 | * All rights reserved. |
Mahesh Phalke |
2:7b2b268ea49c | 7 | * |
Mahesh Phalke |
2:7b2b268ea49c | 8 | * This software is proprietary to Analog Devices, Inc. and its licensors. |
Mahesh Phalke |
2:7b2b268ea49c | 9 | * By using this software you agree to the terms of the associated |
Mahesh Phalke |
2:7b2b268ea49c | 10 | * Analog Devices Software License Agreement. |
Mahesh Phalke |
2:7b2b268ea49c | 11 | *******************************************************************************/ |
Mahesh Phalke |
2:7b2b268ea49c | 12 | |
Mahesh Phalke |
2:7b2b268ea49c | 13 | /******************************************************************************/ |
Mahesh Phalke |
2:7b2b268ea49c | 14 | /***************************** Include Files **********************************/ |
Mahesh Phalke |
2:7b2b268ea49c | 15 | /******************************************************************************/ |
Mahesh Phalke |
2:7b2b268ea49c | 16 | |
Mahesh Phalke |
2:7b2b268ea49c | 17 | #include "sdp_k1_sdram.h" |
Mahesh Phalke |
2:7b2b268ea49c | 18 | #include "no_os_error.h" |
Mahesh Phalke |
2:7b2b268ea49c | 19 | |
Mahesh Phalke |
2:7b2b268ea49c | 20 | /******************************************************************************/ |
Mahesh Phalke |
2:7b2b268ea49c | 21 | /************************ Functions Definitions *******************************/ |
Mahesh Phalke |
2:7b2b268ea49c | 22 | /******************************************************************************/ |
Mahesh Phalke |
2:7b2b268ea49c | 23 | |
Mahesh Phalke |
2:7b2b268ea49c | 24 | /** |
Mahesh Phalke |
2:7b2b268ea49c | 25 | * @brief Initialize the SDP-K1 SDRAM |
Mahesh Phalke |
2:7b2b268ea49c | 26 | * @return 0 in case of success, negative error code otherwise |
Mahesh Phalke |
2:7b2b268ea49c | 27 | */ |
Mahesh Phalke |
2:7b2b268ea49c | 28 | int32_t sdram_init(void) |
Mahesh Phalke |
2:7b2b268ea49c | 29 | { |
Mahesh Phalke |
2:7b2b268ea49c | 30 | if (SDP_SDRAM_Init() != SDRAM_OK) { |
Mahesh Phalke |
2:7b2b268ea49c | 31 | return -EIO; |
Mahesh Phalke |
2:7b2b268ea49c | 32 | } |
Mahesh Phalke |
2:7b2b268ea49c | 33 | |
Mahesh Phalke |
2:7b2b268ea49c | 34 | return 0; |
Mahesh Phalke |
2:7b2b268ea49c | 35 | } |