CONFIG_SPI_2_OP_MODES

Port 2 supported operation modes (master/slave/both)

Type: int

Help

This sets the supported operation modes at runtime, by the SPI port 2, where: 1 is MASTER mode only (default) 2 is SLAVE mode only 3 is both modes are available.

Direct dependencies

SPI_2 && SPI

(Includes any dependencies from ifs and menus.)

Default

  • 1

Kconfig definition

At drivers/spi/Kconfig:86

Included via Kconfig:8Kconfig.zephyr:40drivers/Kconfig:34

Menu path: (Top) → Device Drivers → SPI hardware bus support → SPI port 2

config SPI_2_OP_MODES
    int "Port 2 supported operation modes (master/slave/both)"
    range 1 3
    default 1
    depends on SPI_2 && SPI
    help
      This sets the supported operation modes at runtime, by the SPI
      port 2, where:
      1 is MASTER mode only (default)
      2 is SLAVE mode only
      3 is both modes are available.

(The ‘depends on’ condition includes propagated dependencies from ifs and menus.)