1 //
2 // Copyright (c) 2010-2018 Antmicro
3 // Copyright (c) 2011-2015 Realtime Embedded
4 //
5 // This file is licensed under the MIT License.
6 // Full license text is available in 'licenses/MIT.txt'.
7 //
8 using System;
9 using Antmicro.Renode.Logging;
10 
11 namespace Antmicro.Renode.Peripherals.MTD
12 {
13     public class DummySPIFlash: ISPIFlash
14     {
15         #region IPeripheral implementation
16 
Reset()17         public void Reset()
18         {
19         }
20 
21         #endregion
22 
23         #region ISPIFlash implementation
24 
WriteEnable()25         public void WriteEnable()
26         {
27             throw new NotImplementedException();
28         }
29 
WriteDisable()30         public void WriteDisable()
31         {
32             throw new NotImplementedException();
33         }
34 
WriteStatusRegister(uint registerNumber, uint value)35         public void WriteStatusRegister(uint registerNumber, uint value)
36         {
37             throw new NotImplementedException();
38         }
39 
ReadStatusRegister(uint registerNumber)40         public uint ReadStatusRegister(uint registerNumber)
41         {
42             throw new NotImplementedException();
43         }
44 
ReadID()45         public uint ReadID()
46         {
47             this.Log(LogLevel.Warning,"Reading ID");
48             return 0xffffffff;
49         }
50 
51         #endregion
52 
DummySPIFlash()53         public DummySPIFlash()
54         {
55         }
56     }
57 }
58 
59