mirror of
https://github.com/tio/tio.git
synced 2026-05-01 14:57:59 +02:00
Simplify arbitrary baudrate code
This commit is contained in:
parent
ac859f41b9
commit
a23be7f2c2
4 changed files with 32 additions and 36 deletions
|
|
@ -13,7 +13,8 @@ tio_sources = [
|
|||
'print.c',
|
||||
'configfile.c',
|
||||
'signals.c',
|
||||
'socket.c'
|
||||
'socket.c',
|
||||
'setspeed.c'
|
||||
]
|
||||
|
||||
tio_dep = dependency('inih', required: true,
|
||||
|
|
@ -23,12 +24,10 @@ tio_dep = dependency('inih', required: true,
|
|||
tio_c_args = ['-Wno-unused-result']
|
||||
|
||||
if enable_setspeed2
|
||||
tio_sources += 'setspeed2.c'
|
||||
tio_c_args += '-DHAVE_TERMIOS2'
|
||||
endif
|
||||
|
||||
if enable_iossiospeed
|
||||
tio_sources += 'iossiospeed.c'
|
||||
tio_c_args += '-DHAVE_IOSSIOSPEED'
|
||||
endif
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue