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
1d491e3e
Commit
1d491e3e
authored
Sep 05, 2011
by
Claes Sjofors
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PSS9000 stall for ao card in remote rack added
parent
f4ee98c5
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
5 deletions
+15
-5
ssabox/lib/rt/src/os_linux/rt_io_bfbeth.c
ssabox/lib/rt/src/os_linux/rt_io_bfbeth.c
+9
-1
ssabox/lib/rt/src/os_linux/rt_io_m_ssab_aoup.c
ssabox/lib/rt/src/os_linux/rt_io_m_ssab_aoup.c
+4
-2
ssabox/lib/rt/src/os_linux/rt_io_m_ssab_do.c
ssabox/lib/rt/src/os_linux/rt_io_m_ssab_do.c
+2
-2
No files found.
ssabox/lib/rt/src/os_linux/rt_io_bfbeth.c
View file @
1d491e3e
...
...
@@ -39,10 +39,18 @@ pwr_tUInt16 bfbeth_get_data(io_sRackLocal *r, pwr_tUInt16 address, int *sts) {
return
0
;
}
/*
Return status from last write request.
Status is
0 if address not found in request.
1 if ok status.
-1 if error status.
*/
void
bfbeth_get_write_status
(
io_sRackLocal
*
r
,
pwr_tUInt16
address
,
int
*
sts
)
{
int
i
;
*
sts
=
1
;
*
sts
=
0
;
for
(
i
=
0
;
i
<
350
;
i
++
)
{
if
(
(
0x8000
|
r
->
write_area
.
item
[
i
].
address
)
==
address
)
{
*
sts
=
0x8000
&
r
->
write_area
.
item
[
i
].
address
?
1
:
-
1
;
...
...
ssabox/lib/rt/src/os_linux/rt_io_m_ssab_aoup.c
View file @
1d491e3e
...
...
@@ -275,7 +275,7 @@ static pwr_tStatus IoCardWrite (
}
else
{
/* Ethernet I/O, Request a write to current address */
sts
=
1
;
sts
=
0
;
if
(
!
local
->
FirstScan
)
bfbeth_get_write_status
(
r_local
,
(
pwr_tUInt16
)
(
local
->
Address
+
2
*
i
),
&
sts
);
...
...
@@ -301,7 +301,7 @@ static pwr_tStatus IoCardWrite (
}
if
(
sts
==
-
1
)
continue
;
}
else
{
else
if
(
sts
==
1
)
{
op
->
ErrorCount
=
0
;
}
}
...
...
@@ -349,6 +349,8 @@ static pwr_tStatus IoCardWrite (
}
if
(
local
->
WriteFirst
)
local
->
WriteFirst
--
;
if
(
local
->
FirstScan
)
local
->
FirstScan
=
0
;
return
1
;
}
...
...
ssabox/lib/rt/src/os_linux/rt_io_m_ssab_do.c
View file @
1d491e3e
...
...
@@ -231,7 +231,7 @@ static pwr_tStatus IoCardWrite (
}
else
{
/* Ethernet I/O, Request a write to current address */
sts
=
1
;
sts
=
0
;
if
(
!
local
->
FirstScan
)
bfbeth_get_write_status
(
r_local
,
(
pwr_tUInt16
)
local
->
Address
[
i
],
&
sts
);
...
...
@@ -257,7 +257,7 @@ static pwr_tStatus IoCardWrite (
}
if
(
sts
==
-
1
)
continue
;
}
else
{
else
if
(
sts
==
1
)
{
op
->
ErrorCount
=
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