Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
ezynq
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Elphel
ezynq
Commits
b2b3c812
Commit
b2b3c812
authored
Oct 17, 2013
by
Andrey Filippov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Treating "y" as "1" if integer is expected in include/autoconf.mk
parent
8e46b655
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
ezynq_feature_config.py
ezynq_feature_config.py
+4
-1
test.mk
test.mk
+3
-0
No files found.
ezynq_feature_config.py
View file @
b2b3c812
...
@@ -116,7 +116,10 @@ class EzynqFeatures:
...
@@ -116,7 +116,10 @@ class EzynqFeatures:
try
:
try
:
value
=
int
(
value
,
0
)
value
=
int
(
value
,
0
)
except
:
except
:
raise
Exception
(
self
.
ERRORS
[
'ERR_NOT_AN_INTEGER'
]
+
': '
+
line
[
'VALUE'
]
+
' is not a valid INTEGER value for parameter '
+
conf_name
)
if
value
==
'Y'
:
value
=
1
else
:
raise
Exception
(
self
.
ERRORS
[
'ERR_NOT_AN_INTEGER'
]
+
': '
+
line
[
'VALUE'
]
+
' is not a valid INTEGER value for parameter '
+
conf_name
)
elif
(
feature
[
'TYPE'
]
==
'F'
):
elif
(
feature
[
'TYPE'
]
==
'F'
):
try
:
try
:
value
=
float
(
value
)
value
=
float
(
value
)
...
...
test.mk
View file @
b2b3c812
...
@@ -89,6 +89,9 @@ CONFIG_EZYNQ_MIO_UART_1=48 # 8+4*N
...
@@ -89,6 +89,9 @@ CONFIG_EZYNQ_MIO_UART_1=48 # 8+4*N
#CONFIG_EZYNQ_MIO_TPUI= 2 # TODO
#CONFIG_EZYNQ_MIO_TPUI= 2 # TODO
#the following will be applied after devices above
#the following will be applied after devices above
#CONFIG_EZYNQ_UART_DEBUG_CHANNEL=y # testing "1" transformed to "y"
CONFIG_EZYNQ_UART1_BAUD_RATE=115200 # Default is 115200, so fo 155200 this is not needed
#each of the interfaces above can have "__<pinname>" to mix same pins from different groups
#each of the interfaces above can have "__<pinname>" to mix same pins from different groups
#"__<pinname>=-1" - remove specified pin from the interface (do not use it)
#"__<pinname>=-1" - remove specified pin from the interface (do not use it)
#just for testing
#just for testing
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment