Skip to content

Commit 5766745

Browse files
KishorSilabspull[bot]
authored andcommitted
Added Board specific condition for MG12_917NCP Build (#29345)
1 parent 2f3c3c7 commit 5766745

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

examples/platform/silabs/efr32/rs911x/hal/sl_board_configuration.h

+8-5
Original file line numberDiff line numberDiff line change
@@ -28,19 +28,22 @@ typedef struct
2828
(sl_pin_t) { .port = gpioPort##port_id, .pin = pin_id }
2929

3030
#define PACKET_PENDING_INT_PRI 3
31-
32-
#if defined(EFR32MG24_BRD4186C) || defined(BRD4186C)
31+
#if defined(EFR32MG12_BRD4161A) || defined(BRD4161A) || defined(EFR32MG12_BRD4162A) || defined(BRD4162A) || \
32+
defined(EFR32MG12_BRD4163A) || defined(BRD4163A) || defined(EFR32MG12_BRD4164A) || defined(BRD4164A) || \
33+
defined(EFR32MG12_BRD4170A) || defined(BRD4170A)
34+
// BRD4161-63-64 are pin to pin compatible for SPI
35+
#include "brd4161a.h"
36+
#elif defined(EFR32MG24_BRD4186C) || defined(BRD4186C)
3337
#include "brd4186c.h"
3438
#elif defined(EFR32MG24_BRD4187C) || defined(BRD4187C)
3539
#include "brd4187c.h"
3640
#else
3741
#error "Need SPI Pins"
38-
#endif /* EFR32MG12_BRD4161A */
39-
#if EXP_BOARD && (defined(EFR32MG24_BRD4187C) || defined(BRD4187C) || defined(EFR32MG24_BRD4186C) || defined(BRD4186C))
42+
#endif
43+
#if EXP_BOARD
4044
#define RESET_PIN PIN(A, 6)
4145
#define INTERRUPT_PIN PIN(A, 7)
4246
#define SLEEP_CONFIRM_PIN PIN(A, 5) /* Exp hdr 7 */
43-
#define SL_WFX_HOST_PINOUT_SPI_IRQ 5
4447
#endif
4548

4649
#define NETWORK_INTERFACE_VALID(x) (x == SL_NET_DEFAULT_WIFI_CLIENT_INTERFACE) || (x == SL_NET_DEFAULT_WIFI_AP_INTERFACE)

0 commit comments

Comments
 (0)