Skip to content

Commit d6cb9c1

Browse files
Donatien Garniermprse
authored andcommitted
And again more DEVICE_SPI guards
1 parent 23fc8c6 commit d6cb9c1

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG/PeripheralPins.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ MBED_WEAK const PinMap PinMap_PWM[] = {
8383
};
8484

8585
/*************SPI**************/
86+
#if DEVICE_SPI
8687
MBED_WEAK const PinMap PinMap_SPI_MOSI[] = {
8788
#ifdef USART0_BASE
8889
/* USART0 */
@@ -153,6 +154,7 @@ MBED_WEAK const PinMap PinMap_SPI_CS[] = {
153154
/* Not connected */
154155
{NC , NC , NC}
155156
};
157+
#endif
156158

157159
/************UART**************/
158160
MBED_WEAK const PinMap PinMap_UART_TX[] = {

targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG/PeripheralPins.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ MBED_WEAK const PinMap PinMap_PWM[] = {
8080
};
8181

8282
/*************SPI**************/
83+
#if DEVICE_SPI
8384
MBED_WEAK const PinMap PinMap_SPI_MOSI[] = {
8485
#ifdef USART1_BASE
8586
/* USART1 */
@@ -119,6 +120,7 @@ MBED_WEAK const PinMap PinMap_SPI_CS[] = {
119120
/* Not connected */
120121
{NC , NC , NC}
121122
};
123+
#endif
122124

123125
/************UART**************/
124126
MBED_WEAK const PinMap PinMap_UART_TX[] = {

0 commit comments

Comments
 (0)