projects
/
pinmux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
708d9a3
)
remove if brackets
author
Luke Kenneth Casson Leighton
<lkcl@lkcl.net>
Fri, 23 Mar 2018 05:44:25 +0000
(
05:44
+0000)
committer
Luke Kenneth Casson Leighton
<lkcl@lkcl.net>
Fri, 23 Mar 2018 05:44:25 +0000
(
05:44
+0000)
src/parse.py
patch
|
blob
|
history
diff --git
a/src/parse.py
b/src/parse.py
index a11e45dff5081091884082dbf30eee6b018c929d..b7bd22118f3bd20a45251978c7d5f8664b0a28d3 100644
(file)
--- a/
src/parse.py
+++ b/
src/parse.py
@@
-19,13
+19,13
@@
class Parse(object):
# Generating the number of bits for memory map #
lower_offset = 0
# Generating the number of bits for memory map #
lower_offset = 0
- if
(Addressing == 'BYTE')
:
+ if
Addressing == 'BYTE'
:
lower_offset = 0
lower_offset = 0
- elif
(Addressing == 'HWORD')
:
+ elif
Addressing == 'HWORD'
:
lower_offset = 1
lower_offset = 1
- elif
(Addressing == 'WORD')
:
+ elif
Addressing == 'WORD'
:
lower_offset = 2
lower_offset = 2
- elif
(Addressing == 'DWORD')
:
+ elif
Addressing == 'DWORD'
:
lower_offset = 3
else:
print('ERROR: Addressing should be one of: BYTE, HWORD, WORD, DWORD')
lower_offset = 3
else:
print('ERROR: Addressing should be one of: BYTE, HWORD, WORD, DWORD')
@@
-75,7
+75,7
@@
class Parse(object):
if(count > 1):
print("ERROR: Multiple assignment for pin: " + str(each))
duplicate = True
if(count > 1):
print("ERROR: Multiple assignment for pin: " + str(each))
duplicate = True
- if
(duplicate)
:
+ if
duplicate
:
exit(1)
# Check-2: confirm if N_* matches the instances in the pinmap
exit(1)
# Check-2: confirm if N_* matches the instances in the pinmap