2014-10-18 12:33:48 +01:00
|
|
|
#ifndef __SPIRAM_H__
|
|
|
|
#define __SPIRAM_H__
|
|
|
|
|
2014-10-21 19:41:44 +01:00
|
|
|
class spiram: public Memory::Device {
|
2014-10-18 12:33:48 +01:00
|
|
|
public:
|
2018-08-13 14:41:23 +01:00
|
|
|
virtual void operator= (uint8_t c);
|
|
|
|
virtual operator uint8_t ();
|
2014-10-18 12:33:48 +01:00
|
|
|
|
2014-10-20 19:19:02 +01:00
|
|
|
virtual void checkpoint(Stream &s);
|
|
|
|
virtual void restore(Stream &s);
|
2014-10-18 12:33:48 +01:00
|
|
|
|
2014-10-20 19:19:02 +01:00
|
|
|
spiram(int bytes): Memory::Device(bytes) {}
|
2018-08-13 14:41:23 +01:00
|
|
|
void begin(uint8_t cs, int module);
|
2014-10-18 12:33:48 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|