Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
W
wr2rf-vme
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
5
Issues
5
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
wr2rf-vme
Commits
9fcd41a8
Commit
9fcd41a8
authored
May 09, 2023
by
Tristan Gingold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wr2rf.c: allow interrupts in vuart command
parent
8dddcb61
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
wr2rf.c
software/libwr2rf/wr2rf.c
+3
-4
No files found.
software/libwr2rf/wr2rf.c
View file @
9fcd41a8
...
...
@@ -1120,9 +1120,8 @@ vuart (struct libwr2rf_dev *dev, int argc, char **argv)
new_tios
.
c_iflag
&=
~
(
IGNBRK
|
BRKINT
|
PARMRK
|
ISTRIP
|
INLCR
|
IGNCR
|
ICRNL
|
IXON
);
new_tios
.
c_oflag
&=
~
OPOST
;
new_tios
.
c_lflag
&=
~
(
ECHO
|
ECHONL
|
ICANON
|
ISIG
|
IEXTEN
);
new_tios
.
c_cflag
&=
~
(
CSIZE
|
PARENB
);
new_tios
.
c_cflag
|=
CS8
|
ISIG
;
new_tios
.
c_lflag
&=
~
(
ECHO
|
ECHONL
|
ICANON
|
IEXTEN
);
new_tios
.
c_lflag
|=
ISIG
;
/* Keep C-c, C-z */
tcflush
(
0
,
TCIFLUSH
);
tcsetattr
(
0
,
TCSANOW
,
&
new_tios
);
...
...
@@ -1152,7 +1151,7 @@ vuart (struct libwr2rf_dev *dev, int argc, char **argv)
/* Print all the incoming charactes */
while
(
1
)
{
int
r
;
rx
=
wr_vuart_rx
(
dev
);
if
(
rx
==
-
1
)
break
;
...
...
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