From: Vesa-Pekka Palmu Date: Wed, 17 Oct 2018 12:53:35 +0000 (+0300) Subject: spiflash: Handle chip erase X-Git-Url: https://sigrok.org/gitweb/?a=commitdiff_plain;h=51a91ed0e544e1e5c214040b714b5263846700c0;p=libsigrokdecode.git spiflash: Handle chip erase Minimal implementation of chip erase 0x60 and 0xc7 command handling --- 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