summaryrefslogtreecommitdiff
path: root/decoders
diff options
context:
space:
mode:
authorVesa-Pekka Palmu <vpalmu@depili.fi>2018-10-17 15:53:35 +0300
committerUwe Hermann <uwe@hermann-uwe.de>2018-10-21 17:37:04 +0200
commit51a91ed0e544e1e5c214040b714b5263846700c0 (patch)
treef205ea80fdc8966504c2f5a5a30cb146b8692585 /decoders
parent0a1661caef534aeac73dbf2cf6d0e0778bb9865c (diff)
downloadlibsigrokdecode-51a91ed0e544e1e5c214040b714b5263846700c0.tar.gz
libsigrokdecode-51a91ed0e544e1e5c214040b714b5263846700c0.zip
spiflash: Handle chip erase
Minimal implementation of chip erase 0x60 and 0xc7 command handling
Diffstat (limited to 'decoders')
-rw-r--r--decoders/spiflash/pd.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/decoders/spiflash/pd.py b/decoders/spiflash/pd.py
index 1263cd8..536b55c 100644
--- a/decoders/spiflash/pd.py
+++ b/decoders/spiflash/pd.py
@@ -387,11 +387,13 @@ class Decoder(srd.Decoder):
def handle_be(self, mosi, miso):
pass # TODO
+ # TODO: Warn if WREN was not seen before.
def handle_ce(self, mosi, miso):
- pass # TODO
+ self.putx([Ann.CE, self.cmd_ann_list()])
+ # TODO: Warn if WREN was not seen before.
def handle_ce2(self, mosi, miso):
- pass # TODO
+ self.putx([Ann.CE2, self.cmd_ann_list()])
def handle_pp(self, mosi, miso):
# Page program: Master asserts CS#, sends PP command, sends 3-byte