mirror of
https://github.com/MoreTore/openpilot.git
synced 2026-10-01 03:43:51 +08:00
Pigeon abstraction layer (#1977)
* pigeon abstraction layer
* Fix string literals
* more generic pigeon class
* add TTYpigon
* nicer tty error handling
* close tty fd on pigeon delete
* pigeon receive return std::string
* use sizeof
* max receive size to prevent infinite loop
* remove namespace
* add unistd include for usleep
* fix is pigeon
* Handle tty error in opening
* fix printing binary strings with dump.py
* fix pigeon build on macos
* Handle errors seperately
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 502cc665e0
This commit is contained in:
@@ -5,7 +5,7 @@ if SHARED:
|
||||
else:
|
||||
fxn = env.Library
|
||||
|
||||
_common = fxn('common', ['params.cc', 'swaglog.cc', 'util.c', 'cqueue.c'], LIBS="json11")
|
||||
_common = fxn('common', ['params.cc', 'swaglog.cc', 'util.c', 'cqueue.c', 'gpio.cc'], LIBS="json11")
|
||||
_visionipc = fxn('visionipc', ['visionipc.c', 'ipc.c'])
|
||||
|
||||
files = [
|
||||
@@ -42,4 +42,3 @@ else:
|
||||
|
||||
_gpucommon = fxn('gpucommon', files, CPPDEFINES=defines, LIBS=_gpu_libs)
|
||||
Export('_common', '_visionipc', '_gpucommon', '_gpu_libs')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user