spi/spi.hpp

32 lines
381 B
C++

#pragma once
#include "config.hpp"
#include "hardware.hpp"
#include "../io/io.hpp"
namespace spi {
template <class Driver>
class Spi {
public:
static void init()
{
Driver::init();
}
static uint8_t transfer(uint8_t ui8Data)
{
return Driver::transfer(ui8Data);
}
static void select(bool bSelect)
{
Driver::select(bSelect);
}
private:
};
} // namespace spi