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:
parent
db91be6ef8
commit
8e767373fb
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user