mirror of
https://github.com/justinian/edmfd_firmware.git
synced 2025-12-09 16:24:31 -08:00
18 lines
180 B
C++
18 lines
180 B
C++
#pragma once
|
|
|
|
namespace spi {
|
|
|
|
void init(unsigned baud);
|
|
|
|
// RAII chip select
|
|
class cs
|
|
{
|
|
public:
|
|
cs(unsigned pin);
|
|
~cs();
|
|
private:
|
|
unsigned pin;
|
|
};
|
|
|
|
} // namespace spi
|