#ifndef SHARED_SPI_BUS_H
#define SHARED_SPI_BUS_H

#ifdef __cplusplus
extern "C" {
#endif

// Cross-core SPI bus lock for shared SD/display SPI usage.
void shared_spi_bus_init(void);
void shared_spi_bus_lock(void);
void shared_spi_bus_unlock(void);
void shared_spi_bus_force_recover(void);

#ifdef __cplusplus
}
#endif

#endif // SHARED_SPI_BUS_H
