drivers: spi: esp32: add basic SPI master support

Include SPI master support for blocking and asynchronous calls.

Signed-off-by: Glauber Maroto Ferreira <glauber.ferreira@espressif.com>
This commit is contained in:
Glauber Maroto Ferreira 2020-12-16 08:50:24 -03:00 committed by Anas Nashif
commit 74922049ba
10 changed files with 616 additions and 0 deletions

20
drivers/spi/Kconfig.esp32 Normal file
View file

@ -0,0 +1,20 @@
# ESP32 SPI configuration
# Copyright (c) 2020 Espressif Systems (Shanghai) Co., Ltd.
# SPDX-License-Identifier: Apache-2.0
menuconfig ESP32_SPIM
bool "ESP32 SPI Master driver"
depends on SOC_ESP32
default y
help
Enables support for ESP32 SPI Master driver.
if ESP32_SPIM
config SPI_ESP32_INTERRUPT
bool "ESP32 SPI interrupt mode"
help
Enables interrupt support for ESP32 SPI driver.
endif # ESP32_SPIM