Skip to content
Snippets Groups Projects
Commit 38cbab24 authored by lnx build's avatar lnx build Committed by Gerrit - the friendly Code Review server
Browse files

Merge "dcc_parser: Add offset option for stand alone parser use cases" into...

Merge "dcc_parser: Add offset option for stand alone parser use cases" into opensource-tools.lnx.1.0-dev.1.0
parents 81aa751d 300f2199
No related branches found
No related tags found
No related merge requests found
...@@ -92,6 +92,9 @@ def read_config(config_pt): ...@@ -92,6 +92,9 @@ def read_config(config_pt):
#word size #word size
track_len = 4 track_len = 4
if options.config_offset is not None:
config_pt.seek(options.config_offset, 1)
while True: while True:
word = config_pt.read(4) word = config_pt.read(4)
if len(word) != 4: if len(word) != 4:
...@@ -223,6 +226,8 @@ if __name__ == '__main__': ...@@ -223,6 +226,8 @@ if __name__ == '__main__':
help='chip version') help='chip version')
parser.add_option('--v2', dest='version', action="store_const", const='2', parser.add_option('--v2', dest='version', action="store_const", const='2',
help='DCC driver version 2') help='DCC driver version 2')
parser.add_option('--config-offset', dest='config_offset', type=int,
help='Start offset for DCC configuration')
(options, args) = parser.parse_args() (options, args) = parser.parse_args()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment