Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
U
uniset2
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
UniSet project repositories
uniset2
Commits
2b03ad1d
Commit
2b03ad1d
authored
Feb 10, 2012
by
Pavel Vainerman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(IOControl): добавил поддержку плат 'Grayhill'
parent
c62a3a94
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
2 deletions
+18
-2
ComediInterface.cc
extensions/IOControl/ComediInterface.cc
+6
-0
ComediInterface.h
extensions/IOControl/ComediInterface.h
+2
-1
IOControl.cc
extensions/IOControl/IOControl.cc
+10
-1
No files found.
extensions/IOControl/ComediInterface.cc
View file @
2b03ad1d
...
...
@@ -177,6 +177,9 @@ std::string ComediInterface::type2str( ComediInterface::SubdevType t )
case
TBI16_8
:
return
"TBI16_8"
;
case
GRAYHILL
:
return
"GRAYHILL"
;
default
:
break
;
}
...
...
@@ -194,6 +197,9 @@ ComediInterface::SubdevType ComediInterface::str2type( const std::string s )
if
(
s
==
"TBI16_8"
)
return
TBI16_8
;
if
(
s
==
"GRAYHILL"
)
return
GRAYHILL
;
return
Unknown
;
}
...
...
extensions/IOControl/ComediInterface.h
View file @
2b03ad1d
...
...
@@ -40,7 +40,8 @@ class ComediInterface
Unknown
=
0
,
TBI24_0
=
1
,
TBI0_24
=
2
,
TBI16_8
=
3
TBI16_8
=
3
,
GRAYHILL
=
4
};
static
std
::
string
type2str
(
SubdevType
t
);
...
...
extensions/IOControl/IOControl.cc
View file @
2b03ad1d
...
...
@@ -1691,7 +1691,7 @@ void IOControl::buildCardsList()
}
ComediInterface
::
SubdevType
st
=
ComediInterface
::
str2type
(
subdev_name
);
if
(
st
==
ComediInterface
::
Unknown
)
if
(
st
==
ComediInterface
::
Unknown
)
{
ostringstream
err
;
err
<<
"(buildCardsList): card="
<<
it
.
getProp
(
"card"
)
<<
"("
<<
cname
...
...
@@ -1699,6 +1699,15 @@ void IOControl::buildCardsList()
throw
SystemError
(
err
.
str
());
}
if
(
st
==
ComediInterface
::
GRAYHILL
)
{
// для Grayhill конфигурирование не требуется
dlog
[
Debug
::
INFO
]
<<
myname
<<
"(buildCardsList): card="
<<
it
.
getProp
(
"card"
)
<<
"("
<<
cname
<<
")"
<<
" subdev"
<<
i
<<
" is 'GRAYHILL'"
<<
endl
;
return
;
}
dlog
[
Debug
::
INFO
]
<<
myname
<<
"(buildCardsList): card="
<<
it
.
getProp
(
"card"
)
<<
"("
<<
cname
<<
")"
<<
" init subdev"
<<
i
<<
" "
<<
it
.
getProp
(
s
.
str
())
<<
endl
;
...
...
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