This is an forked repository to push changes related to no-OS repository adoption

Dependencies:   adi_console_menu platform_drivers

Committer:
pmallick
Date:
Mon Aug 02 11:50:39 2021 +0530
Revision:
4:242c10fbdbb8
Parent:
1:e84d8d51cd51
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

Updated the readme file.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
EndaKilgarriff 1:e84d8d51cd51 1 /*!
EndaKilgarriff 1:e84d8d51cd51 2 *****************************************************************************
EndaKilgarriff 1:e84d8d51cd51 3 @file: app_config.h
EndaKilgarriff 1:e84d8d51cd51 4 @brief: AD5592R/AD5593R device selection. Pin mappings.
EndaKilgarriff 1:e84d8d51cd51 5 @details:
EndaKilgarriff 1:e84d8d51cd51 6 -----------------------------------------------------------------------------
EndaKilgarriff 1:e84d8d51cd51 7 Copyright (c) 2020 Analog Devices, Inc.
EndaKilgarriff 1:e84d8d51cd51 8 All rights reserved.
EndaKilgarriff 1:e84d8d51cd51 9
EndaKilgarriff 1:e84d8d51cd51 10 This software is proprietary to Analog Devices, Inc. and its licensors.
EndaKilgarriff 1:e84d8d51cd51 11 By using this software you agree to the terms of the associated
EndaKilgarriff 1:e84d8d51cd51 12 Analog Devices Software License Agreement.
EndaKilgarriff 1:e84d8d51cd51 13 *****************************************************************************/
EndaKilgarriff 1:e84d8d51cd51 14
EndaKilgarriff 1:e84d8d51cd51 15 /******************************************************************************/
EndaKilgarriff 1:e84d8d51cd51 16 /***************************** Include Files **********************************/
EndaKilgarriff 1:e84d8d51cd51 17 /******************************************************************************/
EndaKilgarriff 1:e84d8d51cd51 18 #ifndef _APP_CONFIG_H_
EndaKilgarriff 1:e84d8d51cd51 19 #define _APP_CONFIG_H_
EndaKilgarriff 1:e84d8d51cd51 20
EndaKilgarriff 1:e84d8d51cd51 21 #include <stdint.h>
EndaKilgarriff 1:e84d8d51cd51 22 #include <PinNames.h>
EndaKilgarriff 1:e84d8d51cd51 23
EndaKilgarriff 1:e84d8d51cd51 24 /******************************************************************************/
EndaKilgarriff 1:e84d8d51cd51 25 /************************* Macros & Constant Definitions ***************************/
EndaKilgarriff 1:e84d8d51cd51 26 /******************************************************************************/
EndaKilgarriff 1:e84d8d51cd51 27 // Supported Devices
EndaKilgarriff 1:e84d8d51cd51 28 #define ID_AD5592R 0
EndaKilgarriff 1:e84d8d51cd51 29 #define ID_AD5593R 1
EndaKilgarriff 1:e84d8d51cd51 30
EndaKilgarriff 1:e84d8d51cd51 31 #define AD5593R_A0_STATE 0
EndaKilgarriff 1:e84d8d51cd51 32
EndaKilgarriff 1:e84d8d51cd51 33 // **** Note for User: ACTIVE_DEVICE selection ****
EndaKilgarriff 1:e84d8d51cd51 34 // Define the device type here from the list of below device type defines
EndaKilgarriff 1:e84d8d51cd51 35 // e.g. #define ACTIVE_DEVICE ID_AD5593R -> This will set AD5593R as an ACTIVE_DEVICE.
EndaKilgarriff 1:e84d8d51cd51 36 // The ACTIVE_DEVICE is default set to AD5592R, if device type is not defined.
EndaKilgarriff 1:e84d8d51cd51 37
EndaKilgarriff 1:e84d8d51cd51 38 #ifndef ACTIVE_DEVICE
EndaKilgarriff 1:e84d8d51cd51 39 #define ACTIVE_DEVICE ID_AD5592R
EndaKilgarriff 1:e84d8d51cd51 40 //#define ACTIVE_DEVICE ID_AD5593R
EndaKilgarriff 1:e84d8d51cd51 41 #endif
EndaKilgarriff 1:e84d8d51cd51 42
EndaKilgarriff 1:e84d8d51cd51 43 #define NUM_CHANNELS 8
EndaKilgarriff 1:e84d8d51cd51 44
EndaKilgarriff 1:e84d8d51cd51 45 #define AD5593R_I2C (0x10 | (AD5593R_A0_STATE & 0x01))
EndaKilgarriff 1:e84d8d51cd51 46
EndaKilgarriff 1:e84d8d51cd51 47 // Using Arduino header
EndaKilgarriff 1:e84d8d51cd51 48 #define I2C_SCL D15 // (PB_8)
EndaKilgarriff 1:e84d8d51cd51 49 #define I2C_SDA D14 // (PB_7)
EndaKilgarriff 1:e84d8d51cd51 50
EndaKilgarriff 1:e84d8d51cd51 51 // Using 120 Pin SDP connector
EndaKilgarriff 1:e84d8d51cd51 52 #define SPI_SS_A SDP_SPI_CS_A // (PB_9) 0x19
EndaKilgarriff 1:e84d8d51cd51 53 #define SPI_SS_B SDP_SPI_CS_B // (PC_6) 0x26
EndaKilgarriff 1:e84d8d51cd51 54 #define SPI_SS_C SDP_SPI_CS_C // (PC_7) 0x27
EndaKilgarriff 1:e84d8d51cd51 55 #define SPI_MOSI SDP_SPI_MOSI // (PF_9) 0x58
EndaKilgarriff 1:e84d8d51cd51 56 #define SPI_MISO SDP_SPI_MISO // (PF_8) 0x59
EndaKilgarriff 1:e84d8d51cd51 57 #define SPI_SCK SDP_SPI_SCK // (PH_6) 0x76
EndaKilgarriff 1:e84d8d51cd51 58
EndaKilgarriff 1:e84d8d51cd51 59 #endif //_APP_CONFIG_H_