mirror of
https://github.com/justinian/edmfd_firmware.git
synced 2025-12-09 16:24:31 -08:00
Initial WIP for TFT (not working yet)
This commit is contained in:
17
src/edmfd/spi.hh
Normal file
17
src/edmfd/spi.hh
Normal file
@@ -0,0 +1,17 @@
|
||||
#pragma once
|
||||
|
||||
namespace spi {
|
||||
|
||||
void init(unsigned baud);
|
||||
|
||||
// RAII chip select
|
||||
class cs
|
||||
{
|
||||
public:
|
||||
cs(unsigned pin);
|
||||
~cs();
|
||||
private:
|
||||
unsigned pin;
|
||||
};
|
||||
|
||||
} // namespace spi
|
||||
Reference in New Issue
Block a user