Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
proview
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Esteban Blanc
proview
Commits
fd083649
Commit
fd083649
authored
May 13, 2011
by
Claes Sjofors
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of claes@pwrcvs:/data1/git/pwr
parents
21b9b2fd
7f50707d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
3 deletions
+21
-3
src/lib/rt/src/rt_io_bus.c
src/lib/rt/src/rt_io_bus.c
+21
-3
No files found.
src/lib/rt/src/rt_io_bus.c
View file @
fd083649
...
...
@@ -196,9 +196,6 @@ pwr_tStatus io_bus_card_init( io_tCtx ctx,
for
(
i
=
0
;
i
<
cp
->
ChanListSize
;
i
++
)
{
io_sChannel
*
chanp
=
&
cp
->
chanlist
[
i
];
if
(
!
chanp
->
sop
)
continue
;
switch
(
chanp
->
ChanClass
)
{
case
pwr_cClass_ChanDi
:
{
...
...
@@ -207,6 +204,9 @@ pwr_tStatus io_bus_card_init( io_tCtx ctx,
*
input_area_offset
+=
*
input_area_chansize
;
*
input_area_chansize
=
GetChanSize
(
chan_di
->
Representation
);
}
if
(
!
chanp
->
sop
)
continue
;
chanp
->
offset
=
*
input_area_offset
;
chanp
->
mask
=
1
<<
chan_di
->
Number
;
if
(
byte_order
==
pwr_eByteOrderingEnum_BigEndian
)
{
...
...
@@ -222,6 +222,9 @@ pwr_tStatus io_bus_card_init( io_tCtx ctx,
pwr_sClass_ChanAi
*
chan_ai
=
(
pwr_sClass_ChanAi
*
)
chanp
->
cop
;
*
input_area_offset
+=
*
input_area_chansize
;
*
input_area_chansize
=
GetChanSize
(
chan_ai
->
Representation
);
if
(
!
chanp
->
sop
)
continue
;
chanp
->
offset
=
*
input_area_offset
;
chanp
->
size
=
*
input_area_chansize
;
chanp
->
mask
=
0
;
...
...
@@ -233,6 +236,9 @@ pwr_tStatus io_bus_card_init( io_tCtx ctx,
pwr_sClass_ChanAit
*
chan_ai
=
(
pwr_sClass_ChanAit
*
)
chanp
->
cop
;
*
input_area_offset
+=
*
input_area_chansize
;
*
input_area_chansize
=
GetChanSize
(
chan_ai
->
Representation
);
if
(
!
chanp
->
sop
)
continue
;
chanp
->
offset
=
*
input_area_offset
;
chanp
->
size
=
*
input_area_chansize
;
chanp
->
mask
=
0
;
...
...
@@ -244,6 +250,9 @@ pwr_tStatus io_bus_card_init( io_tCtx ctx,
pwr_sClass_ChanIi
*
chan_ii
=
(
pwr_sClass_ChanIi
*
)
chanp
->
cop
;
*
input_area_offset
+=
*
input_area_chansize
;
*
input_area_chansize
=
GetChanSize
(
chan_ii
->
Representation
);
if
(
!
chanp
->
sop
)
continue
;
chanp
->
offset
=
*
input_area_offset
;
chanp
->
size
=
*
input_area_chansize
;
chanp
->
mask
=
0
;
...
...
@@ -256,6 +265,9 @@ pwr_tStatus io_bus_card_init( io_tCtx ctx,
*
output_area_offset
+=
*
output_area_chansize
;
*
output_area_chansize
=
GetChanSize
(
chan_do
->
Representation
);
}
if
(
!
chanp
->
sop
)
continue
;
chanp
->
offset
=
*
output_area_offset
;
chanp
->
mask
=
1
<<
chan_do
->
Number
;
if
(
byte_order
==
pwr_eByteOrderingEnum_BigEndian
)
{
...
...
@@ -271,6 +283,9 @@ pwr_tStatus io_bus_card_init( io_tCtx ctx,
pwr_sClass_ChanAo
*
chan_ao
=
(
pwr_sClass_ChanAo
*
)
chanp
->
cop
;
*
output_area_offset
+=
*
output_area_chansize
;
*
output_area_chansize
=
GetChanSize
(
chan_ao
->
Representation
);
if
(
!
chanp
->
sop
)
continue
;
chanp
->
offset
=
*
output_area_offset
;
chanp
->
size
=
*
output_area_chansize
;
chanp
->
mask
=
0
;
...
...
@@ -282,6 +297,9 @@ pwr_tStatus io_bus_card_init( io_tCtx ctx,
pwr_sClass_ChanIo
*
chan_io
=
(
pwr_sClass_ChanIo
*
)
chanp
->
cop
;
*
output_area_offset
+=
*
output_area_chansize
;
*
output_area_chansize
=
GetChanSize
(
chan_io
->
Representation
);
if
(
!
chanp
->
sop
)
continue
;
chanp
->
offset
=
*
output_area_offset
;
chanp
->
size
=
*
output_area_chansize
;
chanp
->
mask
=
0
;
...
...
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