precision-converters-firmware
Loading...
Searching...
No Matches
runner
work
precision-converters-firmware
precision-converters-firmware
projects
ad590_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
/******************************************************************************/
28
37
//#define SDP_120
38
39
#ifdef SDP_120
40
41
#define SPI_SS SDP_SPI_CS_A
42
#define SPI_MISO SDP_SPI_MISO
43
#define SPI_MOSI SDP_SPI_MOSI
44
#define SPI_SCK SDP_SPI_SCK
45
46
#else
// ARDUINO
47
48
#define SPI_SS ARDUINO_UNO_D10
49
#define SPI_MOSI ARDUINO_UNO_D11
50
#define SPI_MISO ARDUINO_UNO_D12
51
#define SPI_SCK ARDUINO_UNO_D13
52
53
#endif
54
55
/* Max SPI Clk Speed */
56
#define MAX_SPI_CLK 2000000
57
58
// Unused macros
59
#define SPI_DEVICE_ID 0
// Unused macro
60
#define UART_IRQ_ID 0
// Unused macro
61
62
/* platform ops */
63
#define spi_ops mbed_spi_ops
64
65
/******************************************************************************/
66
/********************** Public/Extern Declarations ****************************/
67
/******************************************************************************/
68
69
extern
struct
mbed_spi_init_param
mbed_spi_extra_init_params
;
70
71
#endif
// APP_CONFIG_MBED_H_
72
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