File tree Expand file tree Collapse file tree 10 files changed +19
-3
lines changed
TARGET_Silicon_Labs/TARGET_EFM32 Expand file tree Collapse file tree 10 files changed +19
-3
lines changed Original file line number Diff line number Diff line change 22
22
#include "spi_api.h"
23
23
#include "pinmap.h"
24
24
25
- #if DEVICE_ANALOGIN
25
+ #if DEVICE_ANALOGIN && DEVICE_SPI
26
26
27
27
/*
28
28
* Channel Address for the next acquisition:
Original file line number Diff line number Diff line change 19
19
* available on the MPS2 Adapter for Arduino shields.
20
20
*/
21
21
22
+ #if DEVICE_ANALOGIN && DEVICE_SPI
23
+
22
24
#include "analogin_api.h"
23
25
#include "gpio_api.h"
24
26
#include "spi_api.h"
@@ -151,3 +153,5 @@ float analogin_read(analogin_t *obj)
151
153
152
154
return (result * (1. / MAXIMUM_VALUE_12_BITS ));
153
155
}
156
+
157
+ #endif
Original file line number Diff line number Diff line change @@ -117,6 +117,7 @@ MBED_WEAK const PinMap PinMap_PWM[] = {
117
117
};
118
118
119
119
/*************SPI**************/
120
+ #if SPI_DEVICE
120
121
MBED_WEAK const PinMap PinMap_SPI_MOSI [] = {
121
122
#ifdef USART0_BASE
122
123
/* USART0 */
@@ -204,6 +205,7 @@ MBED_WEAK const PinMap PinMap_SPI_CS[] = {
204
205
/* Not connected */
205
206
{NC , NC , NC }
206
207
};
208
+ #endif
207
209
208
210
/************UART**************/
209
211
MBED_WEAK const PinMap PinMap_UART_TX [] = {
Original file line number Diff line number Diff line change @@ -117,6 +117,7 @@ MBED_WEAK const PinMap PinMap_PWM[] = {
117
117
};
118
118
119
119
/*************SPI**************/
120
+ #if DEVICE_SPI
120
121
MBED_WEAK const PinMap PinMap_SPI_MOSI [] = {
121
122
#ifdef USART0_BASE
122
123
/* USART0 */
@@ -204,6 +205,7 @@ MBED_WEAK const PinMap PinMap_SPI_CS[] = {
204
205
/* Not connected */
205
206
{NC , NC , NC }
206
207
};
208
+ #endif
207
209
208
210
/************UART**************/
209
211
MBED_WEAK const PinMap PinMap_UART_TX [] = {
Original file line number Diff line number Diff line change @@ -198,6 +198,7 @@ MBED_WEAK const PinMap PinMap_PWM[] = {
198
198
};
199
199
200
200
/*************SPI**************/
201
+ #if SPI_DEVICE
201
202
MBED_WEAK const PinMap PinMap_SPI_MOSI [] = {
202
203
#ifdef USART0_BASE
203
204
/* USART0 */
@@ -368,6 +369,7 @@ MBED_WEAK const PinMap PinMap_SPI_CS[] = {
368
369
#endif
369
370
{NC , NC , NC }
370
371
};
372
+ #endif
371
373
372
374
/************UART**************/
373
375
MBED_WEAK const PinMap PinMap_UART_TX [] = {
Original file line number Diff line number Diff line change @@ -262,6 +262,7 @@ MBED_WEAK const PinMap PinMap_PWM[] = {
262
262
};
263
263
264
264
/*************SPI**************/
265
+ #if DEVICE_SPI
265
266
MBED_WEAK const PinMap PinMap_SPI_MOSI [] = {
266
267
#ifdef USART0_BASE
267
268
/* USART0 */
@@ -584,6 +585,7 @@ MBED_WEAK const PinMap PinMap_SPI_CS[] = {
584
585
#endif
585
586
{NC , NC , NC }
586
587
};
588
+ #endif
587
589
588
590
/************UART**************/
589
591
MBED_WEAK const PinMap PinMap_UART_TX [] = {
Original file line number Diff line number Diff line change @@ -117,6 +117,7 @@ MBED_WEAK const PinMap PinMap_PWM[] = {
117
117
};
118
118
119
119
/*************SPI**************/
120
+ #if DEVICE_SPI
120
121
MBED_WEAK const PinMap PinMap_SPI_MOSI [] = {
121
122
#ifdef USART0_BASE
122
123
/* USART0 */
@@ -204,6 +205,7 @@ MBED_WEAK const PinMap PinMap_SPI_CS[] = {
204
205
/* Not connected */
205
206
{NC , NC , NC }
206
207
};
208
+ #endif
207
209
208
210
/************UART**************/
209
211
MBED_WEAK const PinMap PinMap_UART_TX [] = {
Original file line number Diff line number Diff line change @@ -198,6 +198,7 @@ MBED_WEAK const PinMap PinMap_PWM[] = {
198
198
};
199
199
200
200
/*************SPI**************/
201
+ #if DEVICE_SPI
201
202
MBED_WEAK const PinMap PinMap_SPI_MOSI [] = {
202
203
#ifdef USART0_BASE
203
204
/* USART0 */
@@ -368,6 +369,7 @@ MBED_WEAK const PinMap PinMap_SPI_CS[] = {
368
369
#endif
369
370
{NC , NC , NC }
370
371
};
372
+ #endif
371
373
372
374
/************UART**************/
373
375
MBED_WEAK const PinMap PinMap_UART_TX [] = {
Original file line number Diff line number Diff line change @@ -265,6 +265,7 @@ MBED_WEAK const PinMap PinMap_PWM[] = {
265
265
};
266
266
267
267
/*************SPI**************/
268
+ #if DEVICE_SPI
268
269
MBED_WEAK const PinMap PinMap_SPI_MOSI [] = {
269
270
#ifdef USART0_BASE
270
271
/* USART0 */
@@ -587,6 +588,7 @@ MBED_WEAK const PinMap PinMap_SPI_CS[] = {
587
588
#endif
588
589
{NC , NC , NC }
589
590
};
591
+ #endif
590
592
591
593
/************UART**************/
592
594
MBED_WEAK const PinMap PinMap_UART_TX [] = {
Original file line number Diff line number Diff line change 1408
1408
"inherits" : [" K64F" ],
1409
1409
"extra_labels_add" : [" K64F" ],
1410
1410
"extra_labels_remove" : [" FRDM" ],
1411
- "components_remove" : [" SD" ],
1412
1411
"supported_form_factors" : [],
1413
1412
"detect_code" : [" 3105" ]
1414
1413
},
1712
1711
"UBRIDGE" : {
1713
1712
"inherits" : [" K82F" ],
1714
1713
"extra_labels_remove" : [" FRDM" ],
1715
- "components_remove" : [" SPIF" ],
1716
1714
"device_has_remove" : [" QSPI" ],
1717
1715
"supported_form_factors" : []
1718
1716
},
You can’t perform that action at this time.
0 commit comments