precision-converters-firmware
Toggle main menu visibility
Main Page
Related Pages
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
v
w
~
Functions
c
l
n
p
t
~
Variables
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
v
w
Files
File List
File Members
All
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
z
Functions
a
b
c
d
e
g
h
i
l
m
n
p
r
s
t
u
Variables
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
Typedefs
Enumerations
a
c
f
i
l
p
r
s
v
Enumerator
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
z
Macros
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
•
All
Classes
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
Loading...
Searching...
No Matches
runner
work
precision-converters-firmware
precision-converters-firmware
projects
ad7124_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
#include "mbed_gpio.h"
25
26
/******************************************************************************/
27
/********************** Macros and Constants Definition ***********************/
28
/******************************************************************************/
29
30
//#define ARDUINO
31
32
#ifdef ARDUINO
33
/* SPI Pins on SDP-K1-Arduino Interface */
34
#define SPI_CSB ARDUINO_UNO_D10
// SPI_CS
35
#define SPI_HOST_SDO ARDUINO_UNO_D11
// SPI_MOSI
36
#define SPI_HOST_SDI ARDUINO_UNO_D12
// SPI_MISO
37
#define SPI_SCK ARDUINO_UNO_D13
// SPI_SCK
38
#define I2C_SCL ARDUINO_UNO_D15
39
#define I2C_SDA ARDUINO_UNO_D14
40
#else
// Default- SDP_120 Interface
41
/* SPI Pins on SDP-K1-SDP-120 Interface */
42
#define SPI_CSB SDP_SPI_CS_A
43
#define SPI_HOST_SDI SDP_SPI_MISO
44
#define SPI_HOST_SDO SDP_SPI_MOSI
45
#define SPI_SCK SDP_SPI_SCK
46
47
#define I2C_SCL SDP_I2C_SCL
48
#define I2C_SDA SDP_I2C_SDA
49
#endif
// ARDUINO
50
51
/* Common pin mappings */
52
#define LED_GREEN LED3
53
54
/* Max SPI Clock SPEED */
55
#define MAX_SPI_CLK 5625000
56
57
/* Unused macros */
58
#define SPI_DEVICE_ID 0
// Unused macro
59
#define LED_PORT 0
// Unused macro
60
#define UART_IRQ_ID 0
// Unused macro
61
62
/* platform ops */
63
#define spi_ops mbed_spi_ops
64
#define gpio_ops mbed_gpio_ops
65
66
/******************************************************************************/
67
/********************** Public/Extern Declarations ****************************/
68
/******************************************************************************/
69
70
extern
struct
mbed_spi_init_param
mbed_spi_extra_init_params
;
71
72
#endif
// APP_CONFIG_MBED_H_
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