Pratyush Mallick / Mbed OS EVAL-AD5770R

Dependencies:   adi_console_menu platform_drivers

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers app_config.h Source File

app_config.h

00001 /*****************************************************************************
00002  *   @file   app_config.h
00003  *
00004  *   @brief  Configuration file of AD5770R firmware example program
00005 ******************************************************************************
00006  *
00007 Copyright (c) 2020-2021 Analog Devices, Inc. All Rights Reserved.
00008 
00009 This software is proprietary to Analog Devices, Inc. and its licensors.
00010 By using this software you agree to the terms of the associated
00011 Analog Devices Software License Agreement.
00012  ******************************************************************************/
00013 
00014 #ifndef APP_CONFIG_H_
00015 #define APP_CONFIG_H_
00016 
00017 // #includes
00018 #include <stdint.h>
00019 #include <PinNames.h>
00020 
00021 // #defines
00022 
00023 /**
00024   The ADI SDP_K1 can be used with either arduino headers
00025   or the 120-pin SDP connector found on ADI evaluation
00026   boards. The default is the SDP connector.
00027 
00028   Uncomment the ARDUINO #define to enable the ARDUINO connector
00029 */
00030 
00031 //#define  ARDUINO
00032 
00033 // Pin mapping of AD5770R with SDP-K1/Arduino
00034 #ifdef ARDUINO
00035 #define SPI_SS      D10     // SPI_CS
00036 #define SPI_MISO    D12     // SPI_MOSI
00037 #define SPI_MOSI    D11     // SPI_MISO
00038 #define SPI_SCK     D13     // SPI_SCK
00039 #define HW_LDACB        D2
00040 #else
00041 #define SPI_SS          SDP_SPI_CS_A    // PB_9
00042 #define SPI_MISO    SDP_SPI_MISO    // PF_8
00043 #define SPI_MOSI    SDP_SPI_MOSI    // PF_9
00044 #define SPI_SCK     SDP_SPI_SCK // PH_6
00045 #define HW_LDACB        SDP_GPIO_0      // PJ_0
00046 #endif
00047 
00048 // Global Variables
00049 
00050 // Function Prototypes
00051 
00052 #endif /* APP_CONFIG_H_ */