CDC Badge OS
Firmware for the CDC Badge v1.0 hardware security key
Loading...
Searching...
No Matches
ISpiBus.h
Go to the documentation of this file.
1#pragma once
2
3#include "driver/spi_master.h"
4#include "esp_err.h"
5
6namespace cdc::hal {
7
12
13// Get the shared SPI host (initialized by CalEPD or first user)
14spi_host_device_t getSharedSpiHost();
15
16// Initialize shared SPI bus if not already done
17esp_err_t initSharedSpiBus();
18
19} // namespace cdc::hal
esp_err_t initSharedSpiBus()
Initializes shared SPI bus once for all SPI peripherals.
Definition SpiBus.cpp:33
spi_host_device_t getSharedSpiHost()
Returns shared SPI host identifier.
Definition SpiBus.cpp:25