repo.or.cz
/
libserialport.git
/
search
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
first
·
prev
·
next
change type of result variables to ssize_t
2020-02-07
M
a
rtin
L
i
n
g
Fix use of
va
r
ia
b
le length array in send
_
rece
i
ve
example
.
.
.
commit
|
commitdiff
|
tree
2020-02-07
Martin Ling
A
d
d
send/receive
e
x
ample to V
S
201
9
e
xam
p
les soluti
o
n
.
commit
|
commitdiff
|
tree
2020-02-07
M
artin Ling
w
i
ndo
w
s:
Ignore fParity flag
w
h
i
ch is alway
s
0 after
.
.
.
commit
|
commitdiff
|
tree
2020-02-07
Martin Ling
READM
E
:
Remove note about old MinGW
,
it
a
ct
u
ally works
.
.
.
commit
|
commitdiff
|
tree
2020-02-07
Martin Ling
configu
r
e
.
ac
:
remove broken han
d
ling
f
or
c
y
gwin as
.
.
.
commit
|
commitdiff
|
tree
2020-02-07
Martin
L
i
ng
Add remaining examples to
e
x
amples/README
.
commit
|
commitdiff
|
tree
2020-02-07
Ma
r
ti
n
Ling
F
o
rmat
t
ing fix for ex
a
m
ple descriptions
.
commit
|
commitdiff
|
tree
2020-02-07
Ma
r
tin Ling
Add examp
l
e of send
i
n
g
and receiving data
.
commit
|
commitdiff
|
tree
2020-02-02
Mart
i
n Ling
un
i
x: Fix cal
c
ul
a
t
i
on of poll()
t
imeout
i
n
s
p_wait()
.
commit
|
commitdiff
|
tree
2020-01-26
M
a
rtin L
i
ng
README
:
Add note
o
n building for M
S
Y
S
2/Cygwin
.
commit
|
commitdiff
|
tree
2020-01-26
Martin Ling
Relax timi
n
g test
i
n
the ot
h
er direction
.
commit
|
commitdiff
|
tree
2020-01-26
Martin Ling
Fix building on Cygw
i
n
.
commit
|
commitdiff
|
tree
2020-01-26
Martin Lin
g
Relax ti
m
ing t
e
st be
c
a
u
se it's too tight fo
r
Wind
o
w
s
.
commit
|
commitdiff
|
tree
2020-01-26
M
a
rtin
L
ing
README: update instructions for building with MSYS2
.
commit
|
commitdiff
|
tree
2020-01-26
Martin Ling
R
EADME: update build inst
r
uctions with VS2019/MSBuil
d
.
.
.
commit
|
commitdiff
|
tree
2020-01-26
Marti
n
L
i
n
g
A
dd V
i
sua
l
Studio projec
t
s and
s
olution to build
exam
p
le
.
.
.
commit
|
commitdiff
|
tree
2020-01-26
Martin Ling
Fi
x
use of
v
ariable
l
e
n
gth
l
ocal
a
rray in
await_events
.
.
.
commit
|
commitdiff
|
tree
2020-01-26
Martin Ling
wind
o
ws: Fix anoth
e
r C
r
eateFile u
s
age
.
commit
|
commitdiff
|
tree
2020-01-26
M
artin Lin
g
windows:
Fix a warning on s
i
ze_t
to USHO
R
T co
n
version
.
commit
|
commitdiff
|
tree
2020-01-26
M
a
rtin Ling
windows:
F
ix
a war
n
in
g
on
c
onv
e
r
si
o
n to uns
i
gned
i
n
t
.
commit
|
commitdiff
|
tree
2020-01-26
M
a
rtin Ling
w
i
ndows: F
i
x warnings for conversi
o
n
s i
n
time_as_timeval()
.
commit
|
commitdiff
|
tree
2020-01-24
Mar
t
in Ling
wi
n
d
o
ws: Avoid leak o
f
w
r
it
e
buf
f
er on rea
l
l
o
c failu
r
e
.
commit
|
commitdiff
|
tree
2020-01-24
Martin Ling
windows: Use cor
r
ect variant
o
f For
m
a
t
Me
s
sage
.
commit
|
commitdiff
|
tree
2020-01-24
Martin Ling
wi
n
dows: Use corre
c
t
v
a
riant o
f
CreateFile
.
commit
|
commitdiff
|
tree
2020-01-24
Marti
n
Ling
Fix some warnings f
o
r
s
i
ze_
t
,
D
W
O
RD and int conversions
.
commit
|
commitdiff
|
tree
2020-01-24
Martin Ling
Replace some us
a
ges of in
t
with size_t
t
o fix overflow
.
.
.
commit
|
commitdiff
|
tree
2020-01-24
Marti
n
Ling
Add
p
roje
c
t files fo
r
Visual Stu
d
io 2019
.
commit
|
commitdiff
|
tree
2020-01-24
M
artin Ling
Adju
s
t
headers
a
n
d
include ordering for MSVC support
.
commit
|
commitdiff
|
tree
2020-01-23
Martin Lin
g
A
dd example
o
f
w
aiting
for events
.
commit
|
commitdiff
|
tree
2020-01-23
Martin Lin
g
Add an
e
xample
of proper error handling
.
commit
|
commitdiff
|
tree
2020-01-23
Martin Ling
Add some more
n
arrative
d
ocs
o
n the
configuration API
.
commit
|
commitdiff
|
tree
2020-01-23
Marti
n
Ling
Add example of h
o
w
t
o configure
a
port
.
commit
|
commitdiff
|
tree
2020-01-23
Mar
t
in Ling
Use SP_API prefix for
functions in
libse
r
ialport
.
h
.
commit
|
commitdiff
|
tree
2020-01-23
Martin Lin
g
Us
e
a sta
t
ic header
file,
not dependent on autoc
o
n
f
.
commit
|
commitdiff
|
tree
2020-01-23
M
a
rti
n
L
ing
windows
:
wc_to_utf
8
:
use s
o
me clear
e
r varia
b
l
e
names
.
commit
|
commitdiff
|
tree
2020-01-23
M
artin Lin
g
w
i
ndows
:
D
o
n't try to include <u
n
istd
.
h>
.
commit
|
commitdiff
|
tree
2020-01-23
Martin Li
n
g
windows: wc_to_utf8: Eliminate variable-len
g
t
h array
.
commit
|
commitdiff
|
tree
2020-01-23
Martin L
i
ng
windows: Use
a fi
x
ed
w
orst-case WRITEFILE_MAX_
S
IZE
.
commit
|
commitdiff
|
tree
2020-01-23
Martin
L
ing
wi
n
dows: Ha
n
dl
e
the case
where there are n
o
serial
.
.
.
commit
|
commitdiff
|
tree
2020-01-23
Mart
i
n Ling
wi
n
dows:
Handle registry looku
p
fail
u
res corre
c
tly
.
commit
|
commitdiff
|
tree
2020-01-23
M
art
i
n
L
ing
windows: Loop
over WriteFile() i
f
w
rite size exceeds
.
.
.
commit
|
commitdiff
|
tree
2020-01-23
Martin Li
n
g
A
d
d test program for timi
n
g
fun
c
tions
.
commit
|
commitdiff
|
tree
2020-01-20
Martin Ling
Move ti
m
ing routines
to separate
file
.
commit
|
commitdiff
|
tree
2020-01-20
Martin
L
in
g
Move com
m
only use
d
start flag int
o
timeout he
l
pers
.
commit
|
commitdiff
|
tree
2020-01-20
Ma
r
ti
n
Ling
Move
special
c
a
se for poll() timeout to call site
.
commit
|
commitdiff
|
tree
2020-01-20
Martin L
i
ng
S
u
pport timing h
e
lpe
r
s on Windows
.
commit
|
commitdiff
|
tree
2020-01-20
Martin Ling
Mor
e
generic solu
t
ion for li
m
iting
p
er
-
call
t
imeout
.
commit
|
commitdiff
|
tree
2020-01-20
Martin Lin
g
M
ov
e
repetitive timeout code into helper
funct
i
on
s
.
commit
|
commitdiff
|
tree
2020-01-20
Mart
i
n L
i
ng
Abstract
all ti
m
e
hand
l
ing operations
.
commit
|
commitdiff
|
tree
2020-01-05
Martin Li
n
g
Update Doxyfile for doxygen 1
.
8
.
16
.
commit
|
commitdiff
|
tree
2020-01-05
Martin Ling
Release example
s
as public domain
.
commit
|
commitdiff
|
tree
2020-01-05
Martin Ling
Add som
e
a
d
ditional f
o
rmatting
hints to Doxygen
comments
.
commit
|
commitdiff
|
tree
2020-01-05
Mar
t
in
Li
n
g
Integrate exa
m
ples into Doxygen
.
commit
|
commitdiff
|
tree
2020-01-05
Martin Ling
A
d
d examples
direc
t
o
r
y
with two examp
l
e progr
a
ms
.
commit
|
commitdiff
|
tree
2020-01-04
Marti
n
Ling
android: Fix bui
l
d compatibili
t
y with ND
K
platform
.
.
.
commit
|
commitdiff
|
tree
2020-01-04
Martin Ling
D
e
fine _POS
I
X_C_S
O
UR
C
E to
199309
L
to get clock_gettime()
.
commit
|
commitdiff
|
tree
2020-01-04
Marti
n
Ling
linu
x
: Fix
compi
l
e warni
n
g on g
c
c 6+ for rea
d
link(
.
.
.
commit
|
commitdiff
|
tree
2019-12-28
Martin Li
n
g
Fall back to CLOCK_
R
EALTIME if CLOCK_
M
ONO
T
ONIC no
t
.
.
.
commit
|
commitdiff
|
tree
2019-12-28
Martin
L
ing
Us
e
mach_absolut
e
_
t
ime()
o
n
OSX
w
ithout cl
o
ck_
g
e
tt
i
m
e
()
.
commit
|
commitdiff
|
tree
2019-12-28
Mar
t
in Ling
Use clock_
g
etti
m
e(CLOCK_M
O
NOTONI
C
) if available
.
commit
|
commitdiff
|
tree
2019-12-28
Mar
t
in L
i
ng
c
onfi
g
ure: Che
c
k whether clock
_
gett
i
me i
s
a
v
aila
b
le
.
commit
|
commitdiff
|
tree
2019-12-28
Martin
Ling
Move all
g
ettimeofday() calls into a wrapper function
.
commit
|
commitdiff
|
tree
2019-12-28
M
a
r
t
i
n Ling
windows: Use architecture-specif
i
c si
z
e limi
t
for
W
r
i
te
F
ile
.
.
.
commit
|
commitdiff
|
tree
2019-12-28
Martin Ling
windows: Use an
adap
t
ively siz
e
d buffer for nonblocking
.
.
.
commit
|
commitdiff
|
tree
2019-12-28
Martin
L
i
n
g
wind
o
ws: Await completion of previous write before
.
.
.
commit
|
commitdiff
|
tree
2019-12-28
Martin
L
i
n
g
unix: Fix handling of EAGAIN in sp_nonblo
c
king_write()
.
commit
|
commitdiff
|
tree
2017-09-13
Ma
r
tin
Ling
window
s
:
B
r
eak
o
ut helpe
r
f
u
nct
i
on f
o
r
awaiting previous
.
.
.
commit
|
commitdiff
|
tree
2017-03-19
Martin Ling
Lin
u
x: fix for alpha
where BO
T
HER is not defined
.
commit
|
commitdiff
|
tree
2015-12-29
Martin Li
n
g
Cha
n
g
e debug message t
o
"Port not open" when
a closed
.
.
.
commit
|
commitdiff
|
tree
2015-12-09
Martin Ling
window
s
: Handle
E
RROR_I
O
_PENDIN
G
f
rom ReadFile in sp_nonbloc
.
.
.
commit
|
commitdiff
|
tree
2015-10-13
M
artin Li
n
g
sp_wait: Avoid ove
r
f
low of timeout parameter to
p
oll()
.
commit
|
commitdiff
|
tree
2015-05-31
Martin Ling
Updat
e
copyright notice
s
.
commit
|
commitdiff
|
tree
2015-05-31
Martin Lin
g
Updat
e
AUTHORS
f
ile
.
commit
|
commitdiff
|
tree
2015-05-30
Martin L
i
ng
doc: Provided channel is binary
,
n
ot neces
s
arily
8
.
.
.
commit
|
commitdiff
|
tree
2015-05-30
Martin
L
i
n
g
Fi
x
pos
s
ible use of uninitialised variable in poll
.
.
.
commit
|
commitdiff
|
tree
2015-05-30
Martin
L
ing
doc: Add
i
tion
a
l in
t
ro
d
uct
o
ry text
.
commit
|
commitdiff
|
tree
2015-05-27
Martin Ling
d
oc: E
x
panded introductor
y
tex
t
.
commit
|
commitdiff
|
tree
2015-05-27
Mart
i
n
Ling
d
o
c:
A
dditional notes
o
n
sp_last_e
r
ror_{code
,
mess
a
ge}
.
commit
|
commitdiff
|
tree
2015-05-27
Martin Ling
Add
n
ew sp_blo
c
k
i
ng_rea
d
_next()
function
.
commit
|
commitdiff
|
tree
2015-05-27
Ma
r
tin Ling
windows: Always ch
e
ck a
n
d set ReadTotalTime
o
utMultipli
e
r
.
commit
|
commitdiff
|
tree
2015-05-27
M
artin Ling
pos
i
x: Make s
u
r
e
blocking
operations can't time
out
.
.
.
commit
|
commitdiff
|
tree
2015-05-27
Martin Li
n
g
pos
i
x: Consistent d
e
bug output
w
hen
b
loc
k
i
n
g operations
.
.
.
commit
|
commitdiff
|
tree
2015-05-27
Martin Ling
posix: Move FD_
Z
ERO(
)
and F
D
_SET() call
s
outsid
e
loops
.
commit
|
commitdiff
|
tree
2015-05-27
M
a
rtin
Ling
windows: Always check
return value
of GetOv
e
r
lap
p
edRe
s
ult(
)
.
commit
|
commitdiff
|
tree
2015-05-27
M
a
rt
i
n Lin
g
windo
w
s: Rest
r
uctur
e
i
f/else blocks w
i
t
h
unn
e
ce
s
sar
y
.
.
.
commit
|
commitdiff
|
tree
2015-05-27
Martin Li
n
g
wi
n
dow
s
: r
e
start_wait
_
if_needed():
I
nline receive buffer
.
.
.
commit
|
commitdiff
|
tree
2015-05-27
M
a
rtin Ling
windows: restart_wait_if_needed():
Ski
p
b
uffer
check
.
.
.
commit
|
commitdiff
|
tree
2015-05-27
Martin Lin
g
win
d
ows:
R
efactor duplic
a
t
e
d
code into a
static f
u
n
ction
.
commit
|
commitdiff
|
tree
2015-05-27
Martin Ling
windows: Avoid un
n
e
c
e
s
sary calls to SetCommT
i
meouts()
.
commit
|
commitdiff
|
tree
2015-05-27
Martin Ling
windows
:
Strip CR/LF from end of system e
r
ror mes
s
ages
.
commit
|
commitdiff
|
tree
2015-05-06
M
arti
n
Ling
doc: c
o
rrect structur
e
name in sp_
g
et_po
r
t
_
h
a
ndle(
.
.
.
commit
|
commitdiff
|
tree
2015-04-03
Martin
Ling
C
l
a
rify sp_list_ports()
cod
e
.
commit
|
commitdiff
|
tree
2015-03-29
Martin Ling
windows: Set fAb
o
rtOnErr
o
r
=
FALSE
.
commit
|
commitdiff
|
tree
2015-03-29
M
a
r
t
in Ling
windo
w
s
:
R
evise ma
n
agement of WaitCom
m
Event() o
p
era
t
ions
.
commit
|
commitdiff
|
tree
2015-03-24
M
artin Ling
Gene
r
ate a config
.
h
rather t
h
a
n
pass
i
ng defines on
.
.
.
commit
|
commitdiff
|
tree
2015-02-15
Martin Ling
wind
o
ws: Fix restart of RX/error
w
ait
o
peration after
.
.
.
commit
|
commitdiff
|
tree
2014-11-01
Marti
n
Ling
l
inux: Check
f
or BOTHER macro at c
o
nfigure t
i
me
.
commit
|
commitdiff
|
tree
2014-09-25
Mar
t
in Ling
windows: Fix compil
e
issues
w
i
th mul
t
i
ply or not defined
.
.
.
commit
|
commitdiff
|
tree
2014-08-24
Martin Ling
lin
u
x: Fix warni
n
g by marki
n
g
vi
d
, p
i
d
variables
u
n
signed
.
commit
|
commitdiff
|
tree
2014-08-24
Marti
n
Li
n
g
Compile w
i
t
h
-
pedan
t
ic
.
commit
|
commitdiff
|
tree
next