-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Silabs] Fixing the build for the custom boards on NCP (#35055)
* fixing the build for the custom boards on ncp * Restyled by clang-format * applying the restyler * addressing the review comments and adding sl_custom_board.h file * adding the warning message for 917 NCP * Restyled by whitespace * Restyled by clang-format * Apply suggestions from code review Co-authored-by: Yufeng Wang <[email protected]> * Restyled by clang-format --------- Co-authored-by: Restyled.io <[email protected]> Co-authored-by: Junior Martinez <[email protected]> Co-authored-by: Yufeng Wang <[email protected]>
- Loading branch information
1 parent
be0009e
commit a93f4b6
Showing
8 changed files
with
88 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
/* | ||
* This file is used to set the pins for the SPI for Custom boards | ||
* The SPI pins are defined in the file | ||
* | ||
* !!!! MODIFY THIS FILE TO THE CORRECT PINS !!!! | ||
*/ | ||
|
||
#ifndef _CUSTOM_BOARD_H_ | ||
#define _CUSTOM_BOARD_H_ | ||
|
||
#define WAKE_INDICATOR_PIN PIN(D, 2) | ||
#ifdef RS911X_WIFI | ||
// SPI ports and pins | ||
#define EUS1MOSI_PORT gpioPortC | ||
#define EUS1MOSI_PIN 1 | ||
#define EUS1MISO_PORT gpioPortC | ||
#define EUS1MISO_PIN 2 | ||
#define EUS1SCLK_PORT gpioPortC | ||
#define EUS1SCLK_PIN 3 | ||
#define EUS1CS_PORT gpioPortC | ||
#define EUS1CS_PIN 0 | ||
|
||
#define MY_USART EUSART1 | ||
#define MY_USART_CLOCK cmuClock_EUSART1 | ||
#define MY_USART_TX_SIGNAL dmadrvPeripheralSignal_EUSART1_TXBL | ||
#define MY_USART_RX_SIGNAL dmadrvPeripheralSignal_EUSART1_RXDATAV | ||
|
||
#define WFX_RESET_PIN PIN(A, 6) | ||
#define WFX_INTERRUPT_PIN PIN(A, 7) | ||
#ifdef EXP_BOARD | ||
#define WFX_SLEEP_CONFIRM_PIN PIN(D, 2) /* Expansion header pin7 */ | ||
#else | ||
#define WFX_SLEEP_CONFIRM_PIN PIN(A, 5) | ||
#endif /* EXP_BOARD */ | ||
#define SL_WFX_HOST_PINOUT_SPI_IRQ 5 | ||
|
||
#else /* WF200 */ | ||
|
||
#define PIN_OUT_SET 1 | ||
#define PIN_OUT_CLEAR 0 | ||
|
||
#define MY_USART USART0 | ||
#define MY_USART_CLOCK cmuClock_USART0 | ||
#define MY_USART_TX_SIGNAL dmadrvPeripheralSignal_USART0_TXBL | ||
#define MY_USART_RX_SIGNAL dmadrvPeripheralSignal_USART0_RXDATAV | ||
|
||
#define SL_WFX_HOST_PINOUT_RESET_PORT gpioPortA | ||
#define SL_WFX_HOST_PINOUT_RESET_PIN 5 | ||
#define SL_WFX_HOST_PINOUT_SPI_WIRQ_PORT gpioPortA /* SPI IRQ port */ | ||
#define SL_WFX_HOST_PINOUT_SPI_WIRQ_PIN 8 /* SPI IRQ pin */ | ||
#define SL_WFX_HOST_PINOUT_WUP_PORT gpioPortB | ||
#define SL_WFX_HOST_PINOUT_WUP_PIN 5 | ||
|
||
#define SL_WFX_HOST_PINOUT_SPI_TX_PORT gpioPortC | ||
#define SL_WFX_HOST_PINOUT_SPI_TX_PIN 1 | ||
#define SL_WFX_HOST_PINOUT_SPI_TX_LOC 1 | ||
|
||
#define SL_WFX_HOST_PINOUT_SPI_RX_PORT gpioPortC | ||
#define SL_WFX_HOST_PINOUT_SPI_RX_PIN 2 | ||
#define SL_WFX_HOST_PINOUT_SPI_RX_LOC 1 | ||
|
||
#define SL_WFX_HOST_PINOUT_SPI_CLK_PORT gpioPortC | ||
#define SL_WFX_HOST_PINOUT_SPI_CLK_PIN 3 | ||
#define SL_WFX_HOST_PINOUT_SPI_CLK_LOC 1 | ||
|
||
#define SL_WFX_HOST_PINOUT_SPI_CS_PORT gpioPortC | ||
#define SL_WFX_HOST_PINOUT_SPI_CS_PIN 0 | ||
#define SL_WFX_HOST_PINOUT_SPI_CS_LOC 1 | ||
|
||
#endif /* WF200/9116 */ | ||
#endif /* _CUSTOM_BOARD_H_ */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters