diff options
author | Uwe Hermann <uwe@hermann-uwe.de> | 2020-01-01 18:09:51 +0100 |
---|---|---|
committer | Uwe Hermann <uwe@hermann-uwe.de> | 2020-01-10 20:50:15 +0100 |
commit | 44d058f3524e8c34bb72bd2f0c0c02740c190c7a (patch) | |
tree | e4c7673653ea6894c416280cd33e9885c61afdfc /decoders/spiflash/lists.py | |
parent | 927e2ba624b780e8b846ce3cc2b013afac6fa751 (diff) | |
download | libsigrokdecode-44d058f3524e8c34bb72bd2f0c0c02740c190c7a.tar.gz libsigrokdecode-44d058f3524e8c34bb72bd2f0c0c02740c190c7a.zip |
spiflash: Use SrdIntEnum for annotation classes.
Also, automate construction of the Ann SrdIntEnum.
This avoids having to remember to manually keep two lists in sync.
Diffstat (limited to 'decoders/spiflash/lists.py')
-rw-r--r-- | decoders/spiflash/lists.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/decoders/spiflash/lists.py b/decoders/spiflash/lists.py index c6e07bf..80ca27d 100644 --- a/decoders/spiflash/lists.py +++ b/decoders/spiflash/lists.py @@ -1,7 +1,7 @@ ## ## This file is part of the libsigrokdecode project. ## -## Copyright (C) 2015 Uwe Hermann <uwe@hermann-uwe.de> +## Copyright (C) 2015-2020 Uwe Hermann <uwe@hermann-uwe.de> ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published by @@ -21,7 +21,6 @@ from collections import OrderedDict # OrderedDict which maps command IDs to their names and descriptions. # Please keep this sorted by command ID. -# Don't forget to update 'Ann' in pd.py if you add/remove items here. cmds = OrderedDict([ (0x01, ('WRSR', 'Write status register')), (0x02, ('PP', 'Page program')), |