Skip to content

Commit 7eb41a1

Browse files
committed
addressing the review comments and adding sl_custom_board.h file
1 parent edc912b commit 7eb41a1

File tree

3 files changed

+76
-2
lines changed

3 files changed

+76
-2
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ typedef struct
3636
#include "brd4187c.h"
3737
#else
3838
#include "sl_custom_board.h"
39-
#warning "SPIDRV USART peripheral not configured correctly"
39+
#warning "Modify sl_custom_board.h configuration file to match your hardware SPIDRV USART peripheral"
4040
#endif /* EFR32MG24_BRD4186C */
4141

4242
#endif /* _RSI_BOARD_CONFIGURATION_H_ */
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
/*
2+
* This file is used to set the pins for the SPI for Custom boards
3+
* The SPI pins are defined in the file
4+
*
5+
* !!!! MODIFY THIS FILE TO THE CORRECT PINS !!!!
6+
*/
7+
8+
#ifndef _CUSTOM_BOARD_H_
9+
#define _CUSTOM_BOARD_H_
10+
11+
#define WAKE_INDICATOR_PIN PIN(D, 2)
12+
#ifdef RS911X_WIFI
13+
// SPI ports and pins
14+
#define EUS1MOSI_PORT gpioPortC
15+
#define EUS1MOSI_PIN 1
16+
#define EUS1MISO_PORT gpioPortC
17+
#define EUS1MISO_PIN 2
18+
#define EUS1SCLK_PORT gpioPortC
19+
#define EUS1SCLK_PIN 3
20+
#define EUS1CS_PORT gpioPortC
21+
#define EUS1CS_PIN 0
22+
23+
24+
#define MY_USART EUSART1
25+
#define MY_USART_CLOCK cmuClock_EUSART1
26+
#define MY_USART_TX_SIGNAL \
27+
dmadrvPeripheralSignal_EUSART1_TXBL
28+
#define MY_USART_RX_SIGNAL \
29+
dmadrvPeripheralSignal_EUSART1_RXDATAV
30+
31+
#define WFX_RESET_PIN PIN(A, 6)
32+
#define WFX_INTERRUPT_PIN PIN(A, 7)
33+
#ifdef EXP_BOARD
34+
#define WFX_SLEEP_CONFIRM_PIN PIN(D, 2) /* Exp hdr 7 */
35+
#else
36+
#define WFX_SLEEP_CONFIRM_PIN PIN(A, 5) /* Exp hdr 7 */
37+
#endif /* EXP_BOARD */
38+
#define SL_WFX_HOST_PINOUT_SPI_IRQ 5
39+
40+
#else /* WF200 */
41+
42+
#define PIN_OUT_SET 1
43+
#define PIN_OUT_CLEAR 0
44+
45+
#define MY_USART USART0
46+
#define MY_USART_CLOCK cmuClock_USART0
47+
#define MY_USART_TX_SIGNAL dmadrvPeripheralSignal_USART0_TXBL
48+
#define MY_USART_RX_SIGNAL dmadrvPeripheralSignal_USART0_RXDATAV
49+
50+
#define SL_WFX_HOST_PINOUT_RESET_PORT gpioPortA
51+
#define SL_WFX_HOST_PINOUT_RESET_PIN 5
52+
#define SL_WFX_HOST_PINOUT_SPI_WIRQ_PORT gpioPortA /* SPI IRQ port*/
53+
#define SL_WFX_HOST_PINOUT_SPI_WIRQ_PIN 8 /* SPI IRQ pin */
54+
#define SL_WFX_HOST_PINOUT_WUP_PORT gpioPortB
55+
#define SL_WFX_HOST_PINOUT_WUP_PIN 5
56+
57+
#define SL_WFX_HOST_PINOUT_SPI_TX_PORT gpioPortC
58+
#define SL_WFX_HOST_PINOUT_SPI_TX_PIN 1
59+
#define SL_WFX_HOST_PINOUT_SPI_TX_LOC 1
60+
61+
#define SL_WFX_HOST_PINOUT_SPI_RX_PORT gpioPortC
62+
#define SL_WFX_HOST_PINOUT_SPI_RX_PIN 2
63+
#define SL_WFX_HOST_PINOUT_SPI_RX_LOC 1
64+
65+
#define SL_WFX_HOST_PINOUT_SPI_CLK_PORT gpioPortC
66+
#define SL_WFX_HOST_PINOUT_SPI_CLK_PIN 3
67+
#define SL_WFX_HOST_PINOUT_SPI_CLK_LOC 1
68+
69+
#define SL_WFX_HOST_PINOUT_SPI_CS_PORT gpioPortC
70+
#define SL_WFX_HOST_PINOUT_SPI_CS_PIN 0
71+
#define SL_WFX_HOST_PINOUT_SPI_CS_LOC 1
72+
73+
#endif /* WF200/9116 */
74+
#endif /* _CUSTOM_BOARD_H_ */

examples/platform/silabs/efr32/wf200/sl_wfx_board.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,6 @@
2626
#include "brd4187c.h"
2727
#else
2828
#include "sl_custom_board.h"
29-
#warning "SPIDRV USART peripheral not configured correctly"
29+
#warning "Modify sl_custom_board.h configuration file to match your hardware SPIDRV USART peripheral"
3030
#endif
3131
#endif /* _SL_WFX_BOARD_H_ */

0 commit comments

Comments
 (0)