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