repo.or.cz
/
libserialport
/
gsi.git
/
search
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
first
·
prev
·
next
Fix use of variable length array in send_receive example, for MSVC.
2020-02-07
Marti
n
Lin
g
F
ix
u
se of variable length array in
s
e
n
d_receive exam
p
le
.
.
.
commit
|
commitdiff
|
tree
2020-02-07
Martin Ling
Add sen
d
/receive
example
t
o
VS
2
019 examples solution
.
commit
|
commitdiff
|
tree
2020-02-07
Martin Ling
windows: Ignore fParity flag whi
c
h is
alwa
y
s
0 after
.
.
.
commit
|
commitdiff
|
tree
2020-02-07
M
a
rtin
Ling
README:
Remove note abou
t
old MinGW
,
i
t actually wor
k
s
.
.
.
commit
|
commitdiff
|
tree
2020-02-07
Martin Ling
configure
.
a
c
: remove broken handling for cy
g
win as
.
.
.
commit
|
commitdiff
|
tree
2020-02-07
Martin Lin
g
Add remain
i
n
g ex
a
mples to exa
m
ples/README
.
commit
|
commitdiff
|
tree
2020-02-07
Martin Lin
g
For
m
att
i
ng f
i
x
for e
x
ample descriptions
.
commit
|
commitdiff
|
tree
2020-02-07
Marti
n
L
i
ng
A
dd
e
x
a
mp
l
e
of sendi
n
g and receiving d
a
ta
.
commit
|
commitdiff
|
tree
2020-02-02
Martin Ling
u
n
ix:
Fix c
a
lcu
l
ation of
poll() timeout in sp_wait()
.
commit
|
commitdiff
|
tree
2020-01-24
Martin
L
i
n
g
w
i
ndow
s
: A
v
oid le
a
k of wri
t
e buffer
on
realloc failure
.
commit
|
commitdiff
|
tree
2020-01-24
Martin L
i
ng
window
s
: Use
correct variant of FormatMessage
.
commit
|
commitdiff
|
tree
2020-01-24
Ma
r
tin Ling
windows:
Use correct varian
t
o
f
Create
F
ile
.
commit
|
commitdiff
|
tree
2020-01-24
Martin Ling
Fix some wa
r
nin
g
s for size_
t
,
D
WORD and int conv
e
r
s
ions
.
commit
|
commitdiff
|
tree
2020-01-24
Ma
r
tin Ling
Replace some u
s
ages of int with si
z
e_t
to fix
o
v
erflow
.
.
.
commit
|
commitdiff
|
tree
2020-01-24
Mar
t
i
n
Ling
Add pr
o
jec
t
f
i
les
f
or
Visual Stud
i
o 201
9
.
commit
|
commitdiff
|
tree
2020-01-24
Martin Li
n
g
Adjust headers and inc
l
ude ordering for MSVC support
.
commit
|
commitdiff
|
tree
2020-01-23
Marti
n
Ling
Add example
o
f waiting
f
or events
.
commit
|
commitdiff
|
tree
2020-01-23
Martin L
i
ng
Ad
d
an example of
proper erro
r
hand
l
in
g
.
commit
|
commitdiff
|
tree
2020-01-23
Martin Ling
Add some mo
r
e narrati
v
e
d
o
cs on the c
o
n
figu
r
ation API
.
commit
|
commitdiff
|
tree
2020-01-23
Martin Ling
Ad
d
example of how
t
o co
n
figure a port
.
commit
|
commitdiff
|
tree
2020-01-23
Martin Ling
U
s
e SP_
A
PI prefix
for functio
n
s in libs
e
rialport
.
h
.
commit
|
commitdiff
|
tree
2020-01-23
Martin Li
n
g
Use
a
static heade
r
f
i
l
e,
not dep
e
n
dent on
autoconf
.
commit
|
commitdiff
|
tree
2020-01-23
Marti
n
Ling
windows: wc_to_
u
tf8:
u
se
s
o
me clear
e
r variable
n
ames
.
commit
|
commitdiff
|
tree
2020-01-23
Ma
r
t
in Ling
window
s
: Don't try to
i
nclude <unistd
.
h
>
.
commit
|
commitdiff
|
tree
2020-01-23
Martin
Ling
windows
:
w
c
_to_utf8: Eliminate variable-len
g
th array
.
commit
|
commitdiff
|
tree
2020-01-23
Ma
r
tin Ling
wind
o
ws: Use a fi
x
ed worst-case WRITEF
I
LE_MAX_S
I
ZE
.
commit
|
commitdiff
|
tree
2020-01-23
M
a
rtin Ling
wi
n
d
o
ws: Handle the case whe
r
e there a
r
e no serial
.
.
.
commit
|
commitdiff
|
tree
2020-01-23
M
artin Ling
win
d
o
ws: Handle regist
r
y lookup
f
ailures cor
r
ectly
.
commit
|
commitdiff
|
tree
2020-01-23
Martin Lin
g
windows: Loop ove
r
W
riteFile() if write size exceeds
.
.
.
commit
|
commitdiff
|
tree
2020-01-23
Martin Ling
A
dd test pr
o
gr
a
m for timing functions
.
commit
|
commitdiff
|
tree
2020-01-20
Martin Ling
Move timi
n
g
ro
u
tines to separate f
i
le
.
commit
|
commitdiff
|
tree
2020-01-20
Ma
r
tin L
i
ng
Move
c
omm
o
n
ly used start flag
i
nto timeout helpers
.
commit
|
commitdiff
|
tree
2020-01-20
Martin Ling
Mov
e
special
c
ase for poll() timeout to
c
all site
.
commit
|
commitdiff
|
tree
2020-01-20
M
artin Ling
S
u
pport t
i
ming hel
p
ers on Windows
.
commit
|
commitdiff
|
tree
2020-01-20
M
a
rti
n
Ling
Mor
e
generic so
l
ution for lim
i
ting
per-call ti
m
eout
.
commit
|
commitdiff
|
tree
2020-01-20
Martin L
i
ng
Move repetit
i
v
e
timeout code in
t
o helper functions
.
commit
|
commitdiff
|
tree
2020-01-20
M
artin Ling
Abstract all time handling operations
.
commit
|
commitdiff
|
tree
2020-01-05
Martin Ling
Ad
d
some
a
dditio
n
al formatti
n
g
h
i
nts to Doxygen
c
o
mments
.
commit
|
commitdiff
|
tree
2020-01-05
Mar
t
in Ling
In
t
egrate exa
m
p
les into Do
x
ygen
.
commit
|
commitdiff
|
tree
2020-01-05
Martin Ling
Add exa
m
ples directory with
two exam
p
le programs
.
commit
|
commitdiff
|
tree
2020-01-04
M
art
i
n Ling
a
ndroid: Fix bu
i
ld compatibility with NDK
platform
.
.
.
commit
|
commitdiff
|
tree
2019-12-28
M
a
rti
n
Ling
F
a
ll back to CLOCK_R
E
A
L
TI
M
E if CLOCK_MONOTONIC
n
ot
.
.
.
commit
|
commitdiff
|
tree
2019-12-28
Martin
Ling
Use
m
ach_absolute_
t
ime
(
)
on OS
X
withou
t
cl
o
ck_gettime()
.
commit
|
commitdiff
|
tree
2019-12-28
Martin Ling
Use clock_gettime(CLOCK_MONOTONIC)
if availa
b
le
.
commit
|
commitdiff
|
tree
2019-12-28
M
a
r
t
in
L
ing
configure: C
h
e
c
k whether cl
o
ck_ge
t
tim
e
is available
.
commit
|
commitdiff
|
tree
2019-12-28
Martin
L
ing
Mo
v
e al
l
gett
i
meofday() call
s
into
a
wra
p
per function
.
commit
|
commitdiff
|
tree
2017-03-19
M
a
rti
n
Ling
Linux: fix
f
or alpha where BOTHER is not defined
.
commit
|
commitdiff
|
tree
2016-01-06
Martino Facchin
window
s
: Fix iSerial
for composite
devi
c
es
.
commit
|
commitdiff
|
tree
2016-01-06
M
artin
o
Facchin
mac
o
sx:
F
ix port lis
t
ing on ElCap
i
tan
.
commit
|
commitdiff
|
tree
2015-10-13
Ma
r
t
i
n Ling
sp_wait: Avoid overflow of timeout
p
a
rameter
t
o pol
l
()
.
commit
|
commitdiff
|
tree
2015-05-30
Mart
i
n Ling
d
oc:
P
rovided cha
n
n
e
l
i
s
binary
,
not
necessarily 8
.
.
.
commit
|
commitdiff
|
tree
2015-05-06
M
artin Ling
doc: co
r
rect structure name in sp_get
_
port_handle(
.
.
.
commit
|
commitdiff
|
tree
2015-03-24
M
artin Ling
G
enerate a conf
i
g
.
h rather than passing defines on
.
.
.
commit
|
commitdiff
|
tree
2014-08-24
Mar
t
in Li
n
g
linux: F
i
x warning by mar
k
i
ng vid, pid variables unsigne
d
.
commit
|
commitdiff
|
tree
2014-08-24
Martin Ling
Compile with -pedantic
.
commit
|
commitdiff
|
tree
2014-08-24
Martin L
i
ng
linux: Define feature macros
to get required functions
.
commit
|
commitdiff
|
tree
2014-08-24
Martin Ling
Revise debug m
a
cros to work in strict C99
.
commit
|
commitdiff
|
tree
2014-08-24
Martin Ling
Sp
e
cial
i
se RETU
R
N_VALUE
m
acro into
RETURN_{INT,STRING
.
.
.
commit
|
commitdiff
|
tree
2014-08-24
Antti Nykanen
lib
s
eri
a
lport
.
h
.
in:
remove
t
railing commas
in enum
.
.
.
commit
|
commitdiff
|
tree
2014-06-14
Martin Ling
Fix buil
d
f
o
r platform
s
without
enu
m
erat
i
on & port
.
.
.
commit
|
commitdiff
|
tree
2014-06-11
M
a
rtin
L
i
n
g
Tidy up and sp
l
it mos
t
OS
-
specific code to
separate
.
.
.
commit
|
commitdiff
|
tree
2014-01-03
Mar
t
i
n Ling
linux_t
e
rmi
o
s
.
c
:
fi
x
check for termios spee
d
fie
l
ds
.
commit
|
commitdiff
|
tree
2014-01-03
Mar
t
in Lin
g
linux: Spe
e
d fie
l
ds
m
ay not b
e
present in kernel termios
.
.
.
commit
|
commitdiff
|
tree
2014-01-03
Martin Ling
Remove
n
eed
t
o include linux_termios
.
h o
n
non-Linux
.
commit
|
commitdiff
|
tree
2014-01-03
Martin Ling
O
nly b
u
ild linux_termios
.
c on
L
inux
.
commit
|
commitdiff
|
tree
2013-12-20
Martin Ling
A
d
d API for
w
aiting on
por
t
e
v
ents
.
commit
|
commitdiff
|
tree
2013-12-18
Martin
Li
n
g
Remove
v
a
r
ious unused co
d
e in co
n
figure
.
ac
.
commit
|
commitdiff
|
tree
2013-12-17
M
a
rtin Ling
Windows: clear errors a
f
t
e
r port open
.
commit
|
commitdiff
|
tree
2013-12-08
Martin Lin
g
R
emove obsolet
e
c
o
mment
.
commit
|
commitdiff
|
tree
2013-12-07
Martin
L
i
ng
Remove st
r
ay p
e
riods
f
r
o
m d
e
bug messages
.
commit
|
commitdiff
|
tree
2013-12-07
Martin Ling
W
indows nonb
l
ocking wr
i
te:
D
ont'
t
r
e
turn if async I
.
.
.
commit
|
commitdiff
|
tree
2013-12-07
Martin Ling
Che
c
k return value of GetOverlappedResult()
.
commit
|
commitdiff
|
tree
2013-12-07
Ma
r
tin Ling
Make RETURN
_
VALUE macro side effect saf
e
.
commit
|
commitdiff
|
tree
2013-12-05
M
ar
t
in Ling
F
ix bu
i
ldi
n
g
for Andro
i
d
.
commit
|
commitdiff
|
tree
2013-12-05
Martin Ling
Make lib
u
dev
o
ptional
.
commit
|
commitdiff
|
tree
2013-11-27
M
a
rt
i
n
Ling
Handle EINTR from tcdrain()
in sp_dra
i
n(
)
.
commit
|
commitdiff
|
tree
2013-11-27
Martin L
i
ng
Clarify
doc
u
me
n
tation regardi
n
g signa
l
s and EINTR
.
commit
|
commitdiff
|
tree
2013-11-27
M
a
rtin Ling
Fix
e
rror
i
n docume
n
tat
i
on
.
commit
|
commitdiff
|
tree
2013-11-27
Martin Ling
Docu
m
en
t
EINTR han
d
ling
.
commit
|
commitdiff
|
tree
2013-11-27
M
artin Ling
Handle EINTR by rep
e
ating the call
.
commit
|
commitdiff
|
tree
2013-11-27
Martin Ling
Fi
x
conversi
o
n of timeou
t
to struct timeval
.
commit
|
commitdiff
|
tree
2013-11-27
Mar
t
in Li
n
g
Add sp_input_waitin
g
() an
d
sp_output_waiting(
)
f
u
n
ctions
.
commit
|
commitdiff
|
tree
2013-11-27
Martin Lin
g
New API
and implementation for blo
c
king a
n
d
non-blockin
g
.
.
.
commit
|
commitdiff
|
tree
2013-11-27
Martin Ling
Set VMIN = 1, not zero which
fo
r
ces non-block
i
ng reads
.
commit
|
commitdiff
|
tree
2013-11-26
Mart
i
n Ling
Return SP_ERR_SUPP on
a
t
t
empt to s
e
t mark/space parity
.
.
.
commit
|
commitdiff
|
tree
2013-11-25
Martin Ling
Set some san
e
defa
u
lts in s
p
_open() on Windows to
o
.
commit
|
commitdiff
|
tree
2013-11-25
Ma
r
tin Ling
Apply t
e
rmi
o
s setting ch
a
n
ges immedi
a
tely
.
commit
|
commitdiff
|
tree
2013-11-25
Martin
L
ing
Support mark/space pari
t
y setting
s
.
commit
|
commitdiff
|
tree
2013-11-25
M
a
rtin Ling
Turn off all the fancy termios features
.
commit
|
commitdiff
|
tree
2013-11-25
Martin L
i
ng
Wi
n
dows n
o
nblocking write: 1 by
t
e at
a
ti
m
e t
o
know
.
.
.
commit
|
commitdiff
|
tree
2013-11-25
Martin Lin
g
Implement non-blo
c
king I/O o
n
Windo
w
s
.
commit
|
commitdiff
|
tree
2013-11-25
Martin Ling
Fi
x
S
E
T_FA
I
L mac
r
o
.
commit
|
commitdiff
|
tree
2013-11-25
Marti
n
Ling
Handle -
E
AGAIN in non-blocking reads
o
n
Unix,
a
n
d re
t
urn
.
.
.
commit
|
commitdiff
|
tree
2013-11-23
Martin Ling
Fix bug in debu
g
message generation in sp_flush()
.
commit
|
commitdiff
|
tree
2013-11-23
Martin Ling
Initiali
s
e st
r
u
ct
u
re in sp_n
e
w_config()
.
commit
|
commitdiff
|
tree
2013-11-23
Martin Ling
Add generator pr
o
g
ram
f
or configuration ac
c
essor header
s
.
commit
|
commitdiff
|
tree
2013-11-23
Ma
r
tin Ling
Make
c
onfigura
t
i
o
n
structure opaque
.
commit
|
commitdiff
|
tree
2013-11-23
Martin Ling
C
larify documenta
t
ion
.
commit
|
commitdiff
|
tree
2013-11-23
Mar
t
in L
i
n
g
Ad
d
sp_get_p
o
rt_ha
n
dle() function
.
commit
|
commitdiff
|
tree
2013-11-23
Marti
n
Ling
Ma
k
e port structure opaqu
e
.
commit
|
commitdiff
|
tree
next