precision-converters-firmware
Loading...
Searching...
No Matches
runner
work
precision-converters-firmware
precision-converters-firmware
projects
ad717x_console
app
app_config_mbed.h
Go to the documentation of this file.
1
/***************************************************************************/
13
#ifndef APP_CONFIG_MBED_H_
14
#define APP_CONFIG_MBED_H_
15
16
/******************************************************************************/
17
/***************************** Include Files **********************************/
18
/******************************************************************************/
19
20
#include <stdint.h>
21
#include <PinNames.h>
22
#include "mbed_spi.h"
23
#include "mbed_platform_support.h"
24
25
/******************************************************************************/
26
/********************** Macros and Constants Definition ***********************/
27
/******************************************************************************/
37
/* NOTE: Only EVAL-AD4114SDZ, EVAL-AD4115SDZ and EVAL-AD4116ASDZ support Arduino and SDP_120
38
* interface. The other EVAL Boards (EVAL-AD4111SDZ, EVAL-AD4112SDZ,
39
* EVAL-AD7172-4SDZ, EVAL-AD7172-2SDZ , EVAL-AD7173-8SDZ, EVAL-AD7175-2SDZ,
40
* EVAL-AD7175-8SDZ, EVAL-AD7176-2SDZ, EVAL-AD7177-2SDZ) support only the
41
* SDP-120 interface.
42
*/
43
44
//#define ARDUINO
45
46
#ifdef ARDUINO
47
/* SPI Pins on SDP-K1-Arduino Interface */
48
#define SPI_CSB ARDUINO_UNO_D10
// SPI_CS
49
#define SPI_HOST_SDO ARDUINO_UNO_D11
// SPI_MOSI
50
#define SPI_HOST_SDI ARDUINO_UNO_D12
// SPI_MISO
51
#define SPI_SCK ARDUINO_UNO_D13
// SPI_SCK
52
#define I2C_SCL ARDUINO_UNO_D15
53
#define I2C_SDA ARDUINO_UNO_D14
54
#else
// Default- SDP_120 Interface
55
/* SPI Pins on SDP-K1-SDP-120 Interface */
56
#define SPI_CSB SDP_SPI_CS_A
57
#define SPI_HOST_SDI SDP_SPI_MISO
58
#define SPI_HOST_SDO SDP_SPI_MOSI
59
#define SPI_SCK SDP_SPI_SCK
60
61
#define I2C_SCL SDP_I2C_SCL
62
#define I2C_SDA SDP_I2C_SDA
63
#endif
// ARDUINO
64
65
/* Max SPI CLK SPEED */
66
#define MAX_SPI_CLK 2500000
67
68
/* Common pin mappings */
69
#define LED_GREEN LED3
70
71
// Unused macros
72
#define SPI_DEVICE_ID 0
// Unused macro
73
#define UART_IRQ_ID 0
// Unused macro
74
75
/* platform ops */
76
#define spi_ops mbed_spi_ops
77
78
/******************************************************************************/
79
/********************** Public/Extern Declarations ****************************/
80
/******************************************************************************/
81
82
extern
struct
mbed_spi_init_param
mbed_spi_extra_init_params
;
83
84
#endif
// APP_CONFIG_MBED_H_
85
mbed_spi_extra_init_params
struct mbed_spi_init_param mbed_spi_extra_init_params
Definition
app_config_mbed.c:54
Generated by
1.9.8