precision-converters-firmware
All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
app_config.h
Go to the documentation of this file.
1/*****************************************************************************
2 * @file app_config.h
3 *
4 * @brief Configuration file of AD5770R firmware example program
5******************************************************************************
6 *
7Copyright (c) 2020-2022 Analog Devices, Inc. All Rights Reserved.
8
9This software is proprietary to Analog Devices, Inc. and its licensors.
10By using this software you agree to the terms of the associated
11Analog Devices Software License Agreement.
12 ******************************************************************************/
13
14#ifndef APP_CONFIG_H_
15#define APP_CONFIG_H_
16
17/******************************************************************************/
18/***************************** Include Files **********************************/
19/******************************************************************************/
20
21#include <stdint.h>
22#include <PinNames.h>
23
24/******************************************************************************/
25/********************** Macros and Constants Definitions **********************/
26/******************************************************************************/
27
36//#define ARDUINO
37
38// Pin mapping of AD5770R with SDP-K1/Arduino
39#ifdef ARDUINO
40#define SPI_CSB ARDUINO_UNO_D10
41#define SPI_HOST_SDO ARDUINO_UNO_D11
42#define SPI_HOST_SDI ARDUINO_UNO_D12
43#define SPI_SCK ARDUINO_UNO_D13
44#define HW_LDACB ARDUINO_UNO_D2
45#else
46#define SPI_CSB SDP_SPI_CS_A // PB_9
47#define SPI_HOST_SDO SDP_SPI_MOSI // PF_9
48#define SPI_HOST_SDI SDP_SPI_MISO // PF_8
49#define SPI_SCK SDP_SPI_SCK // PH_6
50#define HW_LDACB SDP_GPIO_0 // PJ_0
51#endif
52
53#endif /* APP_CONFIG_H_ */