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