[posix-app] refine OpenThread POSIX-app API (#4073)

This commit makes it easier to OpenThread POSIX-app as a library.

* Remove ot prefix from non-public platform-specific APIs.
* Avoid main() calls non-public platform APIs.
* Parse arguments outside of POSIX-app library.
* Add option to log to stderr.
* Add LOG_OUTPUT flag
* Delete assert() in RadioSpinel::Receive()
This commit is contained in:
Yakun Xu
2019-08-15 16:24:15 -07:00
committed by Jonathan Hui
parent e1da9f3eee
commit 979e454117
16 changed files with 316 additions and 315 deletions
+1 -1
View File
@@ -78,7 +78,7 @@ class Node:
cmd = './ot-cli-%s' % mode
if 'RADIO_DEVICE' in os.environ:
cmd += ' %s' % os.environ['RADIO_DEVICE']
cmd += ' -v %s' % os.environ['RADIO_DEVICE']
os.environ['NODE_ID'] = str(nodeid)
cmd += ' %d' % nodeid