sensor: Add threshold trigger support for MCP9808

The MCP9808 supports threshold triggering.  Add support for this feature
in the driver and the sample application.

If triggering is activated, the driver can create its own fiber or use
the system-wide sensor fiber.

Origin: Original
Change-Id: Ie825a22245cb48cbdffba3049011e4d305975d53
Signed-off-by: Vlad Dogaru <vlad.dogaru@intel.com>
This commit is contained in:
Vlad Dogaru 2016-02-23 17:10:20 +02:00 committed by Anas Nashif
commit 49d96d95ab
7 changed files with 350 additions and 11 deletions

View file

@ -3,3 +3,4 @@ ccflags-y +=-I$(srctree)/drivers
obj-$(CONFIG_SENSOR_DELAYED_WORK) += sensor.o
obj-$(CONFIG_MCP9808) += sensor_mcp9808.o
obj-$(CONFIG_MCP9808_TRIGGER) += sensor_mcp9808_trigger.o