Add SPI NOR Flash driver, WIP.
This commit is contained in:
28
src/drivers/SpiNorFlash.h
Normal file
28
src/drivers/SpiNorFlash.h
Normal file
@@ -0,0 +1,28 @@
|
||||
#pragma once
|
||||
#include <cstddef>
|
||||
|
||||
namespace Pinetime {
|
||||
namespace Drivers {
|
||||
class Spi;
|
||||
class SpiNorFlash {
|
||||
public:
|
||||
explicit SpiNorFlash(Spi& spi);
|
||||
SpiNorFlash(const SpiNorFlash&) = delete;
|
||||
SpiNorFlash& operator=(const SpiNorFlash&) = delete;
|
||||
SpiNorFlash(SpiNorFlash&&) = delete;
|
||||
SpiNorFlash& operator=(SpiNorFlash&&) = delete;
|
||||
|
||||
void Init();
|
||||
void Uninit();
|
||||
|
||||
|
||||
void Sleep();
|
||||
void Wakeup();
|
||||
private:
|
||||
Spi& spi;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user