EVAL-AD593x Mbed Project.

Dependencies:   platform_drivers

Committer:
Kjansen
Date:
Wed Oct 13 11:14:40 2021 +0100
Revision:
5:98a5beab11cc
No-OS Adoption Changes:
Update the .lib files for adoption of no-OS repository as-is.
Replaced platform_drivers.h with required header files.
Updated the copyright year

Mbed OS update changes:
1) Added the mbed_app.json file with custom parameters.
2) Updated the mbed-os version to 6.8.0

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Kjansen 5:98a5beab11cc 1 /*************************************************************************//**
Kjansen 5:98a5beab11cc 2 * @file app_config.h
Kjansen 5:98a5beab11cc 3 * @brief Configuration file of AD5686 firmware example program
Kjansen 5:98a5beab11cc 4 * @author ssmith (sean.smith@analog.com)
Kjansen 5:98a5beab11cc 5 ******************************************************************************
Kjansen 5:98a5beab11cc 6 * Copyright (c) 2019 Analog Devices, Inc.
Kjansen 5:98a5beab11cc 7 *
Kjansen 5:98a5beab11cc 8 * All rights reserved.
Kjansen 5:98a5beab11cc 9 *
Kjansen 5:98a5beab11cc 10 * Redistribution and use in source and binary forms, with or without
Kjansen 5:98a5beab11cc 11 * modification, are permitted provided that the following conditions are met:
Kjansen 5:98a5beab11cc 12 * - Redistributions of source code must retain the above copyright notice,
Kjansen 5:98a5beab11cc 13 * this list of conditions and the following disclaimer.
Kjansen 5:98a5beab11cc 14 * - Redistributions in binary form must reproduce the above copyright notice,
Kjansen 5:98a5beab11cc 15 * this list of conditions and the following disclaimer in the documentation
Kjansen 5:98a5beab11cc 16 * and/or other materials provided with the distribution.
Kjansen 5:98a5beab11cc 17 * - Modified versions of the software must be conspicuously marked as such.
Kjansen 5:98a5beab11cc 18 * - This software is licensed solely and exclusively for use with
Kjansen 5:98a5beab11cc 19 * processors/products manufactured by or for Analog Devices, Inc.
Kjansen 5:98a5beab11cc 20 * - This software may not be combined or merged with other code in any manner
Kjansen 5:98a5beab11cc 21 * that would cause the software to become subject to terms and
Kjansen 5:98a5beab11cc 22 * conditions which differ from those listed here.
Kjansen 5:98a5beab11cc 23 * - Neither the name of Analog Devices, Inc. nor the names of its
Kjansen 5:98a5beab11cc 24 * contributors may be used to endorse or promote products derived
Kjansen 5:98a5beab11cc 25 * from this software without specific prior written permission.
Kjansen 5:98a5beab11cc 26 * - The use of this software may or may not infringe the patent rights
Kjansen 5:98a5beab11cc 27 * of one or more patent holders. This license does not release you from
Kjansen 5:98a5beab11cc 28 * the requirement that you obtain separate licenses from these patent
Kjansen 5:98a5beab11cc 29 * holders to use this software.
Kjansen 5:98a5beab11cc 30 *
Kjansen 5:98a5beab11cc 31 * THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES, INC. AND CONTRIBUTORS "AS IS"
Kjansen 5:98a5beab11cc 32 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
Kjansen 5:98a5beab11cc 33 * NON-INFRINGEMENT, TITLE, MERCHANTABILITY AND FITNESS FOR A
Kjansen 5:98a5beab11cc 34 * PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL ANALOG DEVICES,
Kjansen 5:98a5beab11cc 35 * INC. OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
Kjansen 5:98a5beab11cc 36 * SPECIAL, EXEMPLARY, PUNITIVE OR CONSEQUENTIAL DAMAGES
Kjansen 5:98a5beab11cc 37 * (INCLUDING, BUT NOT LIMITED TO, DAMAGES ARISING OUT OF CLAIMS OF
Kjansen 5:98a5beab11cc 38 * INTELLECTUAL PROPERTY RIGHTS INFRINGEMENT; PROCUREMENT OF SUBSTITUTE
Kjansen 5:98a5beab11cc 39 * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
Kjansen 5:98a5beab11cc 40 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
Kjansen 5:98a5beab11cc 41 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
Kjansen 5:98a5beab11cc 42 * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
Kjansen 5:98a5beab11cc 43 * POSSIBILITY OF SUCH DAMAGE.
Kjansen 5:98a5beab11cc 44 *
Kjansen 5:98a5beab11cc 45 * 20180927-7CBSD SLA
Kjansen 5:98a5beab11cc 46 *****************************************************************************/
Kjansen 5:98a5beab11cc 47
Kjansen 5:98a5beab11cc 48 #ifndef _APP_CONFIG_H_
Kjansen 5:98a5beab11cc 49 #define _APP_CONFIG_H_
Kjansen 5:98a5beab11cc 50
Kjansen 5:98a5beab11cc 51 #include <stdint.h>
Kjansen 5:98a5beab11cc 52
Kjansen 5:98a5beab11cc 53 #ifdef __cplusplus
Kjansen 5:98a5beab11cc 54 extern "C"
Kjansen 5:98a5beab11cc 55 {
Kjansen 5:98a5beab11cc 56 #endif
Kjansen 5:98a5beab11cc 57 #ifdef __cplusplus
Kjansen 5:98a5beab11cc 58 #include "ad5933.h"
Kjansen 5:98a5beab11cc 59 }
Kjansen 5:98a5beab11cc 60 #endif
Kjansen 5:98a5beab11cc 61
Kjansen 5:98a5beab11cc 62
Kjansen 5:98a5beab11cc 63 //#define ARDUINO
Kjansen 5:98a5beab11cc 64
Kjansen 5:98a5beab11cc 65
Kjansen 5:98a5beab11cc 66 /**
Kjansen 5:98a5beab11cc 67 The ADI SDP_K1 can be used with both arduino headers
Kjansen 5:98a5beab11cc 68 or the 120-pin SDP connector found on ADI evaluation
Kjansen 5:98a5beab11cc 69 boards. The default is the SDP connector
Kjansen 5:98a5beab11cc 70
Kjansen 5:98a5beab11cc 71 Uncomment the ARDUINO #define above to enable the ARDUINO connector
Kjansen 5:98a5beab11cc 72
Kjansen 5:98a5beab11cc 73 */
Kjansen 5:98a5beab11cc 74 //#warning check this
Kjansen 5:98a5beab11cc 75 #ifdef ARDUINO
Kjansen 5:98a5beab11cc 76 #define I2C_SCL D15
Kjansen 5:98a5beab11cc 77 #define I2C_SDA D14
Kjansen 5:98a5beab11cc 78
Kjansen 5:98a5beab11cc 79 #define SPI_CS D10
Kjansen 5:98a5beab11cc 80 #define SPI_MISO D12
Kjansen 5:98a5beab11cc 81 #define SPI_MOSI D11
Kjansen 5:98a5beab11cc 82 #define SPI_SCK D13
Kjansen 5:98a5beab11cc 83
Kjansen 5:98a5beab11cc 84 #define GAIN_PIN D8
Kjansen 5:98a5beab11cc 85 #define RESET_PIN D9
Kjansen 5:98a5beab11cc 86 #define LDAC_PIN D7
Kjansen 5:98a5beab11cc 87 #define ADDR0_PIN D6
Kjansen 5:98a5beab11cc 88 #else
Kjansen 5:98a5beab11cc 89
Kjansen 5:98a5beab11cc 90 #define I2C_SCL SDP_I2C_SCL
Kjansen 5:98a5beab11cc 91 #define I2C_SDA SDP_I2C_SDA
Kjansen 5:98a5beab11cc 92
Kjansen 5:98a5beab11cc 93 #define SPI_CS SDP_SPI_CS_A
Kjansen 5:98a5beab11cc 94 #define SPI_MISO SDP_SPI_MISO
Kjansen 5:98a5beab11cc 95 #define SPI_MOSI SDP_SPI_MOSI
Kjansen 5:98a5beab11cc 96 #define SPI_SCK SDP_SPI_SCK
Kjansen 5:98a5beab11cc 97
Kjansen 5:98a5beab11cc 98 #define GAIN_PIN SDP_GPIO_0
Kjansen 5:98a5beab11cc 99 #define RESET_PIN SDP_GPIO_2
Kjansen 5:98a5beab11cc 100 #define LDAC_PIN SDP_GPIO_3
Kjansen 5:98a5beab11cc 101 #define ADDR0_PIN SDP_GPIO_4
Kjansen 5:98a5beab11cc 102 #endif
Kjansen 5:98a5beab11cc 103
Kjansen 5:98a5beab11cc 104 #endif //_APP_CONFIG_H_