Sming Framework API
()
Toggle main menu visibility
Sming
Libraries
SPI
src
Arch
Esp32
Esp32/spi_arch.h
Go to the documentation of this file.
1
/****
2
* Sming Framework Project - Open Source framework for high efficiency native ESP8266 development.
3
* Created 2015 by Skurydin Alexey
4
* http://github.com/SmingHub/Sming
5
* All files of the Sming Core are provided under the LGPL v3 license.
6
*
7
* spi_arch.h - Esp32
8
*
9
* Based on Arduino-esp32 code
10
*
11
* https://github.com/espressif/arduino-esp32/blob/master/libraries/SPI/src/SPI.h
12
* https://github.com/espressif/arduino-esp32/blob/master/cores/esp32/esp32-hal-spi.h
13
*/
14
15
#pragma once
16
17
#include <soc/soc_caps.h>
18
23
enum class
SpiBus
{
24
INVALID
= 0,
25
MIN
= 1,
26
SPI1
= 1,
27
FSPI
= 1,
// Attached to the flash (can use the same data lines but different SS)
28
SPI2
= 2,
29
HSPI
= 2,
// Normally mapped to pins 12 - 15, but can be matrixed to any pins
30
#if SOC_SPI_PERIPH_NUM > 2
31
SPI3
= 3,
32
VSPI = 3,
// Normally attached to pins 5, 18, 19 and 23, but can be matrixed to any pins
33
#endif
34
MAX
=
SOC_SPI_PERIPH_NUM
,
35
DEFAULT
=
SPI2
,
36
};
SOC_SPI_PERIPH_NUM
static constexpr uint8_t SOC_SPI_PERIPH_NUM
Definition:
Host/spi_arch.h:12
SpiBus
SpiBus
Identifies bus selection.
Definition:
Esp32/spi_arch.h:23
SpiBus::SPI1
@ SPI1
SpiBus::SPI3
@ SPI3
SpiBus::MAX
@ MAX
SpiBus::DEFAULT
@ DEFAULT
SpiBus::SPI2
@ SPI2
SpiBus::INVALID
@ INVALID
SpiBus::MIN
@ MIN
SpiBus::FSPI
@ FSPI
HSPI
Definition:
Common.h:35
Generated by
1.9.1