1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

boards/esp32-ethernet-kit: add SPI pin config

For when JTAG is not used.
This commit is contained in:
Erik Ekman 2020-07-12 13:34:30 +02:00
parent db91be6ef8
commit 8e767373fb
2 changed files with 21 additions and 0 deletions

View File

@ -8,6 +8,10 @@ FEATURES_PROVIDED += periph_adc
FEATURES_PROVIDED += periph_i2c
FEATURES_PROVIDED += periph_pwm
ifeq (,$(filter esp_jtag,$(USEMODULE)))
FEATURES_PROVIDED += periph_spi
endif
# unique features provided by the board
FEATURES_PROVIDED += esp_jtag
FEATURES_PROVIDED += esp_spi_ram

View File

@ -93,6 +93,23 @@
#endif
/** @} */
/**
* @name SPI configuration
*
* SPI configuration depends on configured/connected components.
*
* HSPI is only available when all JTAG pins are disabled.
*
* @{
*/
#ifndef MODULE_ESP_JTAG
#define SPI0_CTRL HSPI /**< HSPI is used as SPI_DEV(0) */
#define SPI0_SCK GPIO14 /**< HSPI SCK */
#define SPI0_MISO GPIO12 /**< HSPI MISO */
#define SPI0_MOSI GPIO13 /**< HSPI MOSI */
#define SPI0_CS0 GPIO15 /**< HSPI CS0 */
#endif /* MODULE_ESP_JTAG not defined */
/** @} */
/**
* @name UART configuration