gearmulator

Emulation of classic VA synths of the late 90s/2000s that are based on Motorola 56300 family DSPs
Log | Files | Refs | Submodules | README | LICENSE

xtFlash.h (537B)


      1 #pragma once
      2 
      3 #include "hardwareLib/am29f.h"
      4 
      5 namespace xt
      6 {
      7 	// XT uses two times AM29F010 which is 128k * 8.
      8 	// However, they are connected in interleaved mode, forming one 256k * 8
      9 	// For this to work, we invent a 2mbit flash without boot block that can do sector erases in 16k blocks as
     10 	// that is what is used in the XT
     11 	class Flash final : public hwLib::Am29f
     12 	{
     13 	public:
     14 		explicit Flash(uint8_t* _buffer, size_t _size, bool _useWriteEnable, bool _bitreversedCmdAddr);
     15 
     16 		bool eraseSector(uint32_t _addr) const override;
     17 	};
     18 }