Commit graph

13 commits

Author SHA1 Message Date
Chih-hung Hsieh
96c7903501 Merge "Fix misc-macro-parentheses warnings in context-hub.h." am: 81a5640cf9 am: 9d2f461264
am: ff72d357d4

Change-Id: I935e32cd73ae3d29d6886dc4701f02db52bc7987
2016-08-27 00:54:08 +00:00
Chih-Hung Hsieh
dc57369f96 Fix misc-macro-parentheses warnings in context-hub.h.
* Add parentheses around macro parameters.
Bug: 28705665
Test: build with WITH_TIDY=1

Change-Id: Ib1f4a99b331a844d50271a795b1582ce034a4f0c
2016-08-26 16:08:07 -07:00
Alexey Polyudov
966a9f3f78 context hub: add reboot command/response and reboot notification
Change-Id: I20447c0b20eb2d6c4019f8038cb19749fee0126b
2016-07-11 09:34:55 -07:00
Alexey Polyudov
d6c2deb560 Merge "nanohub HAL: define magic value for nanoapp" into nyc-dev 2016-05-02 20:49:58 +00:00
destradaa
20f473c1e1 Add definition of an event send from a nano app to host.
Bug: 28273520
Change-Id: I4d5f7a6a844d542078a69155f166b0a7b0bc814c
2016-04-28 18:43:14 -07:00
Alexey Polyudov
83d5aa2658 nanohub HAL: define magic value for nanoapp
Bug: 28265099
Change-Id: Ifd8082aa7a72af9a02e9ad6bc66100e465f46ec0
Signed-off-by: Alexey Polyudov <apolyudov@google.com>
2016-04-28 16:09:54 -07:00
Alexey Polyudov
ed7197e358 nanohub: Fix error in HAL definition
HAL info structure can not have pointers
Ideally this would become variable sized array,
but JNI is expecting fixed-size array here,
so, define reasonable size (2), which fits all the
known cases.

Change-Id: I1752d5bef9db60570b03a8dc8e54da2277aca95a
Signed-off-by: Alexey Polyudov <apolyudov@google.com>
2016-04-15 12:09:24 -07:00
Ashutosh Joshi
0675b44089 Clarify Context hub implementation.
Document message format.
Document nanoApp format.

Change-Id: Ibfa231c98249f2b3759c84af50c3e5e722553c3c
2016-04-12 11:27:06 -07:00
Alexey Polyudov
da38a70141 contexthub: redefine hub_app_name
also define some helper macros to simpify app id definitions

Bug: 28086503
Change-Id: Ib04069889b24d057db5fcd3a408c845951cafeea
Signed-off-by: Alexey Polyudov <apolyudov@google.com>
2016-04-11 11:27:09 -07:00
Greg Kaiser
5600a6a14c context_hub: Fix version defines
We're defining the version of a hardware module (hw_module_t), not
a hardware device (hw_device_t).  Thus, we only have 16 bits for
our version number, instead of 32, and need to use the
HARDWARE_DEVICE_API_VERSION macro.

Additionally, for the CONTEXT_HUB_DEVICE_API_VERSION_1_0 define,
which has 1 and 0 hard-coded in the name itself, we hard code 1 and 0
within its definition.

We create CONTEXT_HUB_DEVICE_API_VERSION which will change as we update
the major and minor version numbers in this header.

Bug: 27798362
Change-Id: I58b9751dfb1989fd6bb7fbfc01329494cd88130c
2016-03-28 09:06:56 -07:00
Greg Kaiser
e78619bb68 context_hub: Fix typo in field name.
Change-Id: I25bb98bfb9ebd0f550db47cef39a08411772c578
2016-03-03 11:40:03 -08:00
Dmitry Grinberg
90e914078a contexthub_hal: fix comment
Change-Id: I98c88fce7414145a493778ca349438fd0ab36b2b
2016-02-05 00:44:15 +00:00
Ashutosh Joshi
8c3c46da69 Context hub HAL
Adding a new HAL to support Context hubs on devices.
A context hubs is a low power compute domain with access
to sensors and the potential to download code on the device.

Change-Id: Id2f8d6a0ac9bbfe18a64432c867a8869c0db91fe
2016-01-26 15:57:26 -08:00