mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-15 08:30:02 +00:00
emulation: spinor: implement erasesector4byte
Implement this command, which is used by the system for bulk erases. Signed-off-by: Sean Cross <sean@xobs.io>
This commit is contained in:
parent
0c52a7a3ff
commit
779cc61c56
1 changed files with 7 additions and 0 deletions
|
|
@ -276,6 +276,13 @@ namespace Antmicro.Renode.Peripherals.SPI.Betrusted
|
|||
enable.Value = false;
|
||||
return; //return to prevent further logging
|
||||
|
||||
case (byte)Commands.SectorErase4byte:
|
||||
currentOperation.Operation = DecodedOperation.OperationType.Erase;
|
||||
currentOperation.EraseSize = DecodedOperation.OperationEraseSize.Sector;
|
||||
currentOperation.AddressLength = 4;
|
||||
currentOperation.State = DecodedOperation.OperationState.AccumulateNoDataCommandAddressBytes;
|
||||
break;
|
||||
|
||||
case (byte)Commands.SubsectorErase4byte4kb:
|
||||
currentOperation.Operation = DecodedOperation.OperationType.Erase;
|
||||
currentOperation.EraseSize = DecodedOperation.OperationEraseSize.Subsector4K;
|
||||
|
|
|
|||
Loading…
Reference in a new issue