precision-converters-firmware
runner
work
precision-converters-firmware
precision-converters-firmware
projects
ad7124_temperature-measure
app
app_config.h
Go to the documentation of this file.
1
/***************************************************************************/
/*
2
* @file app_config.h
3
* @brief Configuration file of AD7124 firmware example program
4
* @details
5
******************************************************************************
6
* Copyright (c) 2021-22 Analog Devices, Inc. All Rights Reserved.
7
*
8
* This software is proprietary to Analog Devices, Inc. and its licensors.
9
* By using this software you agree to the terms of the associated
10
* Analog Devices Software License Agreement.
11
******************************************************************************/
12
13
#ifndef APP_CONFIG_H_
14
#define APP_CONFIG_H_
15
16
/******************************************************************************/
17
/***************************** Include Files **********************************/
18
/******************************************************************************/
19
20
#include <stdint.h>
21
#include <PinNames.h>
22
23
/******************************************************************************/
24
/********************** Macros and Constants Definition ***********************/
25
/******************************************************************************/
26
27
/* Supported AD7124 devices (One selected at a time, default is AD7124-4) */
28
#define AD7124_4
29
//#define AD7124_8
30
31
#if defined(AD7124_4)
32
#define ACTIVE_DEVICE "AD7124-4"
33
#elif defined(AD7124_8)
34
#define ACTIVE_DEVICE "AD7124-8"
35
#else
36
#define ACTIVE_DEVICE "AD7124-8"
37
#warning "No active device selected. AD7124-8 is assumed as default"
38
#endif
39
46
//#define SDP_120
47
48
// Pin mapping of AD7124 w.r.t SDP_120/Arduino
49
#ifdef SDP_120
50
#define SPI_SS SDP_SPI_CS_A
// PB_9
51
#define SPI_MISO SDP_SPI_MISO
// PF_8
52
#define SPI_MOSI SDP_SPI_MOSI
// PF_9
53
#define SPI_SCK SDP_SPI_SCK
// PH_6
54
#else
55
#define SPI_SS ARDUINO_UNO_D10
// SPI_CS
56
#define SPI_MOSI ARDUINO_UNO_D11
// SPI_MOSI
57
#define SPI_MISO ARDUINO_UNO_D12
// SPI_MISO
58
#define SPI_SCK ARDUINO_UNO_D13
// SPI_SCK
59
#endif
60
61
/******************************************************************************/
62
/********************** Public/Extern Declarations ****************************/
63
/******************************************************************************/
64
65
#endif
/* APP_CONFIG_H_ */
Generated by
1.9.1