CDC Badge OS
Firmware for the CDC Badge v1.0 hardware security key
Loading...
Searching...
No Matches
SpiBus.cpp File Reference
#include "cdc_hal/ISpiBus.h"
#include "cdc_hal/hw_config.h"
#include "cdc_log.h"
#include <atomic>

Go to the source code of this file.

Namespaces

namespace  cdc
namespace  cdc::hal

Functions

spi_host_device_t cdc::hal::getSharedSpiHost ()
 Returns shared SPI host identifier.
esp_err_t cdc::hal::initSharedSpiBus ()
 Initializes shared SPI bus once for all SPI peripherals.

Variables

static const char * TAG = "SpiBus"
static constexpr spi_host_device_t cdc::hal::SPI_BUS_HOST = SPI2_HOST
 Shared SPI host selection for ESP32-S3 user peripherals.
static constexpr uint32_t cdc::hal::SPI_DMA_CHAN = SPI_DMA_CH_AUTO
static std::atomic< bool > cdc::hal::g_spiInitialized {false}

Variable Documentation

◆ TAG

const char* TAG = "SpiBus"
static

Shared SPI Bus for Display + TROPIC01 Both devices share SPI2_HOST with manual chip-select control

Definition at line 11 of file SpiBus.cpp.