mirror of
https://github.com/usatiuk/cardboy.git
synced 2025-10-28 23:27:49 +01:00
13 lines
285 B
C++
13 lines
285 B
C++
//
|
|
// Created by Stepan Usatiuk on 02.03.2025.
|
|
//
|
|
|
|
#include "cardboy/backend/esp/spi_global.hpp"
|
|
|
|
SpiGlobal& SpiGlobal::get() {
|
|
static SpiGlobal SpiGlobal;
|
|
return SpiGlobal;
|
|
}
|
|
|
|
SpiGlobal::SpiGlobal() { ESP_ERROR_CHECK(spi_bus_initialize(SPI_BUS, &_buscfg, SPI_DMA_CH_AUTO)); }
|