nodejs: Add isr support to node.js
authorBrendan Le Foll <brendan.le.foll@intel.com>
Wed, 18 Feb 2015 14:27:50 +0000 (14:27 +0000)
committerBrendan Le Foll <brendan.le.foll@intel.com>
Wed, 18 Feb 2015 16:41:01 +0000 (16:41 +0000)
commit008184c305cb58f88b2a5fac53ef83eb09e75f5a
treef8549c3877649ef0f585ad81981f937456d3f507
parentffe40033d4b03d8ceb227aa092142fc08be16ae8
nodejs: Add isr support to node.js

This commit adds isr support to node.js mraa module, it also forces
SWIGJAVASCRIPT to be set at compile time by cmake (SWIG uses SWIGJAVASCRIPT and
not SWIGNODE in it's preprocessor). This uses libuv uv_queue_work to call v8isr
and is all done at a C++ level unlike the python isr, so this reuses the
mraa_gpio_isr call. This closes #110

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
api/mraa/gpio.hpp
src/javascript/CMakeLists.txt
src/javascript/binding.gyp.cmake
src/javascript/mraajs.i
src/mraa.i