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_ */
0 commit comments