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
Add send/receive example to VS2019 examples solution.
2020-02-07
Martin Ling
A
dd send/receive e
x
ample to VS2019
e
x
a
mp
l
es solution
.
commit
|
commitdiff
|
tree
2020-02-07
Martin
Ling
window
s
: Ignore fParity f
l
ag
w
h
i
ch
i
s al
w
a
y
s 0 after
.
.
.
commit
|
commitdiff
|
tree
2020-02-07
Martin Ling
R
EAD
M
E: Remove
n
ote about old MinGW, i
t
actually works
.
.
.
commit
|
commitdiff
|
tree
2020-02-07
Ma
r
t
in L
i
ng
conf
i
gure
.
ac: rem
o
ve broken
handli
n
g f
o
r
cygwin as
.
.
.
commit
|
commitdiff
|
tree
2020-02-07
Ma
r
ti
n
Ling
Ad
d
remaining example
s
to
e
xamples/R
E
A
D
ME
.
commit
|
commitdiff
|
tree
2020-02-07
Martin Lin
g
Form
a
t
tin
g
fix f
o
r example descri
p
tions
.
commit
|
commitdiff
|
tree
2020-02-07
Ma
r
t
i
n Li
n
g
Add example of sending and r
e
ceiving data
.
commit
|
commitdiff
|
tree
2020-02-02
Martin Ling
unix: Fix
c
alculation
of
p
o
ll() timeout i
n
sp_wait()
.
commit
|
commitdiff
|
tree
2020-01-26
M
artin Ling
REA
D
ME: A
d
d no
t
e on building for MSYS2/Cygwin
.
commit
|
commitdiff
|
tree
2020-01-26
Mart
i
n Ling
Relax ti
m
i
n
g test in t
h
e
other d
i
r
e
ction
.
commit
|
commitdiff
|
tree
2020-01-26
Martin Ling
Fix buil
d
ing on
Cygwin
.
commit
|
commitdiff
|
tree
2020-01-26
M
ar
t
in Ling
Relax timi
n
g
test b
e
cause
i
t's to
o
tight
for Windows
.
commit
|
commitdiff
|
tree
2020-01-26
M
artin Ling
README: update i
n
str
u
ctions for bui
l
ding with MSYS2
.
commit
|
commitdiff
|
tree
2020-01-26
Martin Li
n
g
README: update
b
uild instruct
i
ons with VS
2
019/MS
B
u
ild
.
.
.
commit
|
commitdiff
|
tree
2020-01-26
M
a
rtin Ling
Add Vis
u
al
Studio proje
c
ts
a
n
d
solution to build e
x
a
m
ple
.
.
.
commit
|
commitdiff
|
tree
2020-01-26
M
a
rtin Ling
Fix u
s
e of
v
a
r
iab
l
e
le
n
gth local
array
in aw
a
it_eve
n
ts
.
.
.
commit
|
commitdiff
|
tree
2020-01-26
Martin Ling
window
s
: F
i
x anoth
e
r Cr
e
ateFile usag
e
.
commit
|
commitdiff
|
tree
2020-01-26
M
art
i
n Ling
windows:
F
ix
a
warning on size_t
t
o USHO
R
T conver
s
i
o
n
.
commit
|
commitdiff
|
tree
2020-01-26
Martin Ling
windows:
Fix
a
warning on
c
onversion to unsigned
i
nt
.
commit
|
commitdiff
|
tree
2020-01-26
Martin Li
n
g
windows:
F
i
x warnings for conv
e
rsions in tim
e
_as_timeval()
.
commit
|
commitdiff
|
tree
2020-01-24
Martin Ling
wi
n
dow
s
: Avoid leak of write bu
f
fer on r
e
alloc failure
.
commit
|
commitdiff
|
tree
2020-01-24
M
a
rtin
Li
n
g
wi
n
d
o
ws: Use correct variant of
FormatMess
a
g
e
.
commit
|
commitdiff
|
tree
2020-01-24
Martin Ling
windows: Use correct
variant of C
r
eateFile
.
commit
|
commitdiff
|
tree
2020-01-24
Mar
t
i
n Li
n
g
Fix some warnings for
s
ize_t,
DWORD and i
n
t
conver
s
i
o
n
s
.
commit
|
commitdiff
|
tree
2020-01-24
M
a
rtin Ling
R
eplace some usages
of int wi
t
h size_t to fi
x
overflow
.
.
.
commit
|
commitdiff
|
tree
2020-01-24
Martin Ling
Ad
d
project
files f
o
r Visual Studio 2019
.
commit
|
commitdiff
|
tree
2020-01-24
M
a
rtin L
i
ng
A
djust h
e
ad
e
r
s and
i
n
clude or
d
ering for MSVC
support
.
commit
|
commitdiff
|
tree
2020-01-23
Martin
Ling
Add example of waiti
n
g f
o
r events
.
commit
|
commitdiff
|
tree
2020-01-23
M
artin
Ling
Add
a
n
example of proper error
hand
l
ing
.
commit
|
commitdiff
|
tree
2020-01-23
Martin Ling
Add s
o
m
e
m
o
r
e narrati
v
e docs o
n
t
h
e
configura
t
io
n
AP
I
.
commit
|
commitdiff
|
tree
2020-01-23
Ma
r
tin Ling
Add e
x
ample of how to co
n
fig
u
re
a port
.
commit
|
commitdiff
|
tree
2020-01-23
Mart
i
n Ling
Use SP_A
P
I p
r
e
fix fo
r
func
t
ions in li
b
se
r
ialport
.
h
.
commit
|
commitdiff
|
tree
2020-01-23
Martin Ling
Use a static hea
d
er file, not depende
n
t o
n
autoconf
.
commit
|
commitdiff
|
tree
2020-01-23
Martin
L
in
g
windows: w
c
_to_utf8: use
s
ome
c
l
earer variable
n
ames
.
commit
|
commitdiff
|
tree
2020-01-23
Martin Ling
windows: Don't try to inc
l
ude <u
n
istd
.
h>
.
commit
|
commitdiff
|
tree
2020-01-23
M
art
i
n
L
ing
wi
n
dows: wc_to_utf8: Elimina
t
e variable-length array
.
commit
|
commitdiff
|
tree
2020-01-23
Martin Li
n
g
wi
n
d
o
ws: Us
e
a fixed worst-case WRITEFILE_MA
X
_SIZE
.
commit
|
commitdiff
|
tree
2020-01-23
Martin Ling
windows: Hand
l
e
the case where t
h
ere a
r
e n
o
seria
l
.
.
.
commit
|
commitdiff
|
tree
2020-01-23
Mart
i
n Lin
g
windows: Handle regist
r
y lookup
fai
l
ures
correct
l
y
.
commit
|
commitdiff
|
tree
2020-01-23
Martin Ling
wi
n
dows:
L
oop over
W
rite
F
i
l
e() if
writ
e
size excee
d
s
.
.
.
commit
|
commitdiff
|
tree
2020-01-23
Mart
i
n Ling
Add test pro
g
ra
m
for timing fun
c
t
ions
.
commit
|
commitdiff
|
tree
2020-01-20
Martin Li
n
g
Move t
i
ming routine
s
to
separate fi
l
e
.
commit
|
commitdiff
|
tree
2020-01-20
Mart
i
n
Li
n
g
M
o
ve commonly
u
sed start flag into timeout h
e
lpers
.
commit
|
commitdiff
|
tree
2020-01-20
Martin Ling
Move special
c
a
s
e for poll()
timeo
u
t t
o
ca
l
l
site
.
commit
|
commitdiff
|
tree
2020-01-20
M
artin Ling
Suppor
t
timing h
e
lpers on Win
d
ows
.
commit
|
commitdiff
|
tree
2020-01-20
Martin Ling
M
o
re gen
e
ric solut
i
on for lim
i
ting
p
e
r
-call timeout
.
commit
|
commitdiff
|
tree
2020-01-20
M
a
rtin L
i
ng
Move repetitive timeout code
i
nto
h
elp
e
r fun
c
tions
.
commit
|
commitdiff
|
tree
2020-01-20
Martin Ling
Abst
r
act all tim
e
handling
operatio
n
s
.
commit
|
commitdiff
|
tree
2020-01-05
Mart
i
n Ling
Update Doxyfil
e
for doxygen
1
.
8
.
16
.
commit
|
commitdiff
|
tree
2020-01-05
Martin Ling
R
elease examples as
p
ubl
i
c
doma
i
n
.
commit
|
commitdiff
|
tree
2020-01-05
Martin
L
ing
Add so
m
e add
i
tional
f
ormatt
i
ng hints
t
o Doxygen comment
s
.
commit
|
commitdiff
|
tree
2020-01-05
M
a
rtin L
i
ng
Int
e
grate examples into
D
oxygen
.
commit
|
commitdiff
|
tree
2020-01-05
Martin
L
in
g
Add examples
di
r
ectory with two e
x
am
p
le programs
.
commit
|
commitdiff
|
tree
2020-01-04
Martin
L
ing
android: F
i
x b
u
ild co
m
patibilit
y
wit
h
N
D
K
pl
a
tform
.
.
.
commit
|
commitdiff
|
tree
2020-01-04
Martin Ling
De
f
i
n
e _POSIX_C_SOURCE to 1993
0
9L to
g
et clo
c
k_ge
t
time()
.
commit
|
commitdiff
|
tree
2020-01-04
M
artin
L
ing
li
n
ux:
F
ix com
p
ile war
n
ing on g
c
c
6
+ for r
e
adli
n
k(
.
.
.
commit
|
commitdiff
|
tree
2019-12-28
Martin Ling
Fall back to CLOCK
_
REALTIME if CLOCK
_
MON
O
TONIC no
t
.
.
.
commit
|
commitdiff
|
tree
2019-12-28
Mar
t
in Ling
Use mac
h
_absol
u
te
_
time() on OSX without clock_gettime()
.
commit
|
commitdiff
|
tree
2019-12-28
Martin
L
i
ng
Use
cloc
k
_gettim
e
(CLOCK
_
MONOT
O
N
I
C) if available
.
commit
|
commitdiff
|
tree
2019-12-28
Martin Ling
co
n
figu
r
e
: Check wheth
e
r clock_gettime
i
s
a
vai
l
able
.
commit
|
commitdiff
|
tree
2019-12-28
Martin Lin
g
Move all ge
t
timeofday()
c
alls into a wrappe
r
function
.
commit
|
commitdiff
|
tree
2019-12-28
M
a
rtin Lin
g
w
i
ndows
:
Use arc
h
ite
c
ture-specif
i
c
s
ize limit f
o
r W
r
it
e
File
.
.
.
commit
|
commitdiff
|
tree
2019-12-28
M
ar
t
in Li
n
g
windows: Use an a
d
apt
i
vel
y
sized buffer
fo
r
nonbloc
k
ing
.
.
.
commit
|
commitdiff
|
tree
2019-12-28
Martin Ling
windows: Await
c
omp
l
etion of previous write before
.
.
.
commit
|
commitdiff
|
tree
2019-12-28
M
a
rtin Lin
g
unix: Fix handling of
E
AGAIN in sp_nonblocking_
w
r
i
te()
.
commit
|
commitdiff
|
tree
2017-09-13
Martin Ling
window
s
: Break out he
l
per function
for awaiti
n
g pre
v
i
o
us
.
.
.
commit
|
commitdiff
|
tree
2017-03-19
Martin Ling
Linux: fix
for alpha
w
here BO
T
H
E
R
i
s
no
t
d
efined
.
commit
|
commitdiff
|
tree
2015-12-29
Martin Ling
Change de
b
u
g me
s
sage to "
P
ort not open" when a close
d
.
.
.
commit
|
commitdiff
|
tree
2015-12-09
Martin
Ling
windows:
H
a
n
d
l
e
ERROR_IO_PEN
D
I
N
G fr
o
m ReadFile in sp_nonbloc
.
.
.
commit
|
commitdiff
|
tree
2015-10-13
Martin L
i
ng
sp_wait: Avoid overflow
o
f
t
im
e
o
u
t parameter to
p
oll()
.
commit
|
commitdiff
|
tree
2015-05-31
Ma
r
ti
n
L
i
n
g
Update copyright n
o
tic
e
s
.
commit
|
commitdiff
|
tree
2015-05-31
Martin Ling
Updat
e
A
U
THORS fil
e
.
commit
|
commitdiff
|
tree
2015-05-30
Martin Ling
doc: Provided chann
e
l is bin
a
r
y, not necessarily 8
.
.
.
commit
|
commitdiff
|
tree
2015-05-30
Marti
n
Ling
Fix p
o
ssibl
e
use
o
f
uninitialised variable in poll
.
.
.
commit
|
commitdiff
|
tree
2015-05-30
M
a
rtin Lin
g
doc:
A
dditional in
t
r
o
d
u
ctory te
x
t
.
commit
|
commitdiff
|
tree
2015-05-27
M
art
i
n Lin
g
d
oc:
E
xpanded introd
u
ctory text
.
commit
|
commitdiff
|
tree
2015-05-27
Martin Lin
g
doc:
A
dd
i
ti
o
nal
n
otes on sp_last_error_{code,
m
es
s
age}
.
commit
|
commitdiff
|
tree
2015-05-27
Martin L
i
ng
Add n
e
w sp_blocking
_
read_ne
x
t() function
.
commit
|
commitdiff
|
tree
2015-05-27
M
a
rtin
Ling
win
d
o
ws: Always check and set
R
e
adTot
a
lTimeoutMu
l
tiplier
.
commit
|
commitdiff
|
tree
2015-05-27
Mar
t
in
Ling
posix
:
Mak
e
sure bloc
k
ing operations
c
an't
time out
.
.
.
commit
|
commitdiff
|
tree
2015-05-27
Mart
i
n L
i
n
g
posix: Consis
t
en
t
d
e
bu
g
outpu
t
when blocking
o
perations
.
.
.
commit
|
commitdiff
|
tree
2015-05-27
Martin Ling
posix: Move
F
D_ZERO() and FD_SET() calls outside loops
.
commit
|
commitdiff
|
tree
2015-05-27
Mart
i
n
Li
n
g
windows: Alw
a
ys check return
v
alue
o
f GetOverla
p
p
e
dR
e
sult()
.
commit
|
commitdiff
|
tree
2015-05-27
Martin
L
in
g
wi
n
do
w
s: Restructure if/else blocks wit
h
unnecessary
.
.
.
commit
|
commitdiff
|
tree
2015-05-27
Martin Ling
windo
w
s: restart_wait_if_needed(
)
:
Inli
n
e r
e
ceive buffer
.
.
.
commit
|
commitdiff
|
tree
2015-05-27
Martin Ling
window
s
:
restar
t
_wait_if_n
e
ed
e
d
(): Skip buffer che
c
k
.
.
.
commit
|
commitdiff
|
tree
2015-05-27
Martin Lin
g
windows: Refact
o
r duplicate
d
c
ode
into
a
static
f
unction
.
commit
|
commitdiff
|
tree
2015-05-27
Martin Ling
win
d
ows: Avo
i
d unnec
e
ssary ca
l
ls to SetCommTimeou
t
s()
.
commit
|
commitdiff
|
tree
2015-05-27
Mart
i
n Ling
wind
o
ws: Str
i
p CR/LF from en
d
o
f
system er
r
or mes
s
age
s
.
commit
|
commitdiff
|
tree
2015-05-06
Martin Ling
doc:
c
orrec
t
stru
c
tu
r
e
n
a
m
e i
n
s
p
_g
e
t
_
por
t
_handle(
.
.
.
commit
|
commitdiff
|
tree
2015-04-03
Martin Lin
g
Clar
i
fy sp_
l
i
s
t_ports(
)
c
ode
.
commit
|
commitdiff
|
tree
2015-03-29
M
artin
L
ing
w
i
ndows: S
e
t fAbortOnError=FALSE
.
commit
|
commitdiff
|
tree
2015-03-29
Mart
i
n
Ling
win
d
ows:
Revise m
a
n
a
gemen
t
of
Wa
i
t
C
o
mmEve
n
t() operations
.
commit
|
commitdiff
|
tree
2015-03-24
Martin Lin
g
Gen
e
rate a con
f
ig
.
h rather tha
n
p
a
ssing
d
efines
o
n
.
.
.
commit
|
commitdiff
|
tree
2015-02-15
Martin Ling
wi
n
dows: Fix restar
t
of R
X
/
e
rror wai
t
op
e
rat
i
on after
.
.
.
commit
|
commitdiff
|
tree
2014-11-01
Mart
i
n Ling
linux: C
h
eck
for BOTH
E
R macro
a
t configure ti
m
e
.
commit
|
commitdiff
|
tree
2014-09-25
Mar
t
in Ling
windows: Fix com
p
ile issues w
i
th mult
i
ply or not de
f
ined
.
.
.
commit
|
commitdiff
|
tree
2014-08-24
Martin Ling
l
inux: Fix war
n
i
ng by marki
n
g
vid, pid
v
ariables unsigned
.
commit
|
commitdiff
|
tree
2014-08-24
Mar
t
in Ling
Compi
l
e with -pedantic
.
commit
|
commitdiff
|
tree
2014-08-24
Mart
i
n L
i
ng
l
i
n
u
x: Define
f
e
ature macros to get r
e
quired fun
c
tions
.
commit
|
commitdiff
|
tree
next