Example program for EVAL-AD5770R

Dependencies:   adi_console_menu platform_drivers

Committer:
Kjansen
Date:
Tue Aug 03 17:34:58 2021 +0100
Revision:
5:f3d7cf95cd8f
Parent:
1:63c505e13da4
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.
* Indentation fixes.

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
mbradley 1:63c505e13da4 1 /*****************************************************************************
mbradley 1:63c505e13da4 2 * @file app_config.h
mbradley 1:63c505e13da4 3 *
mbradley 1:63c505e13da4 4 * @brief Configuration file of AD5770R firmware example program
mbradley 1:63c505e13da4 5 ******************************************************************************
mbradley 1:63c505e13da4 6 *
Kjansen 5:f3d7cf95cd8f 7 Copyright (c) 2020-2021 Analog Devices, Inc. All Rights Reserved.
mbradley 1:63c505e13da4 8
mbradley 1:63c505e13da4 9 This software is proprietary to Analog Devices, Inc. and its licensors.
mbradley 1:63c505e13da4 10 By using this software you agree to the terms of the associated
mbradley 1:63c505e13da4 11 Analog Devices Software License Agreement.
mbradley 1:63c505e13da4 12 ******************************************************************************/
mbradley 1:63c505e13da4 13
mbradley 1:63c505e13da4 14 #ifndef APP_CONFIG_H_
mbradley 1:63c505e13da4 15 #define APP_CONFIG_H_
mbradley 1:63c505e13da4 16
mbradley 1:63c505e13da4 17 // #includes
mbradley 1:63c505e13da4 18 #include <stdint.h>
mbradley 1:63c505e13da4 19 #include <PinNames.h>
mbradley 1:63c505e13da4 20
mbradley 1:63c505e13da4 21 // #defines
mbradley 1:63c505e13da4 22
mbradley 1:63c505e13da4 23 /**
mbradley 1:63c505e13da4 24 The ADI SDP_K1 can be used with either arduino headers
mbradley 1:63c505e13da4 25 or the 120-pin SDP connector found on ADI evaluation
mbradley 1:63c505e13da4 26 boards. The default is the SDP connector.
mbradley 1:63c505e13da4 27
mbradley 1:63c505e13da4 28 Uncomment the ARDUINO #define to enable the ARDUINO connector
mbradley 1:63c505e13da4 29 */
mbradley 1:63c505e13da4 30
mbradley 1:63c505e13da4 31 //#define ARDUINO
mbradley 1:63c505e13da4 32
mbradley 1:63c505e13da4 33 // Pin mapping of AD5770R with SDP-K1/Arduino
mbradley 1:63c505e13da4 34 #ifdef ARDUINO
mbradley 1:63c505e13da4 35 #define SPI_SS D10 // SPI_CS
Kjansen 5:f3d7cf95cd8f 36 #define SPI_MISO D12 // SPI_MOSI
Kjansen 5:f3d7cf95cd8f 37 #define SPI_MOSI D11 // SPI_MISO
mbradley 1:63c505e13da4 38 #define SPI_SCK D13 // SPI_SCK
mbradley 1:63c505e13da4 39 #define HW_LDACB D2
mbradley 1:63c505e13da4 40 #else
mbradley 1:63c505e13da4 41 #define SPI_SS SDP_SPI_CS_A // PB_9
mbradley 1:63c505e13da4 42 #define SPI_MISO SDP_SPI_MISO // PF_8
mbradley 1:63c505e13da4 43 #define SPI_MOSI SDP_SPI_MOSI // PF_9
mbradley 1:63c505e13da4 44 #define SPI_SCK SDP_SPI_SCK // PH_6
mbradley 1:63c505e13da4 45 #define HW_LDACB SDP_GPIO_0 // PJ_0
mbradley 1:63c505e13da4 46 #endif
mbradley 1:63c505e13da4 47
mbradley 1:63c505e13da4 48 // Global Variables
mbradley 1:63c505e13da4 49
mbradley 1:63c505e13da4 50 // Function Prototypes
mbradley 1:63c505e13da4 51
mbradley 1:63c505e13da4 52 #endif /* APP_CONFIG_H_ */