Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
M
Mock Turtle
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
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
Mock Turtle
Commits
a699abfc
Commit
a699abfc
authored
Jul 15, 2015
by
Federico Vaga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wrtd:rt: fix typo bug in trig disable
Signed-off-by:
Federico Vaga
<
federico.vaga@cern.ch
>
parent
6b648bfa
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
libwrtd-output.c
applications/wrtd/lib/libwrtd-output.c
+2
-1
rt-fd.c
applications/wrtd/rt/fd/rt-fd.c
+2
-2
No files found.
applications/wrtd/lib/libwrtd-output.c
View file @
a699abfc
...
...
@@ -115,7 +115,7 @@ static int __wrtd_out_trig_get(struct wrtd_desc *wrtd, uint32_t output,
trigger
->
latency_worst_us
=
(
latency_worst
+
124
)
/
125
;
trigger
->
enabled
=
(
state
&
HASH_ENT_DISABLED
)
?
0
:
1
;
trigger
->
enabled
=
!
(
state
&
HASH_ENT_DISABLED
)
;
if
(
wrnc_msg_check_error
(
msg
))
{
errno
=
EWRTD_INVALID_ANSWER_STATE
;
...
...
@@ -365,6 +365,7 @@ int wrtd_out_trig_get_all(struct wrtd_node *dev, unsigned int output,
{
int
err
,
count
=
0
;
struct
wrtd_trigger_handle
handle
=
{
0
,
0
,
output
};
/* Set ptr to 0 so that we get the first available */
if
(
output
>
FD_NUM_CHANNELS
)
{
errno
=
EWRTD_INVALID_CHANNEL
;
...
...
applications/wrtd/rt/fd/rt-fd.c
View file @
a699abfc
...
...
@@ -902,10 +902,10 @@ static inline void ctl_chan_enable_trigger (uint32_t seq, struct wrnc_msg *ibuf)
wrnc_msg_uint32
(
ibuf
,
(
uint32_t
*
)
&
ent
);
struct
lrt_output_rule
*
rule
=
&
ent
->
ocfg
[
ch
];
if
(
enable
)
if
(
enable
)
rule
->
state
&=
~
HASH_ENT_DISABLED
;
else
rule
->
state
|=
~
HASH_ENT_DISABLED
;
rule
->
state
|=
HASH_ENT_DISABLED
;
// fixme: purge pending pulses conditional pulses from the queue
ctl_ack
(
seq
);
...
...
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