gpio.c: Added ISR thread termination flag
authorAlex Tereschenko <alext.mkrs@gmail.com>
Fri, 2 Oct 2015 21:42:20 +0000 (23:42 +0200)
committerBrendan Le Foll <brendan.le.foll@intel.com>
Tue, 6 Oct 2015 13:40:57 +0000 (14:40 +0100)
commite6c3dd24a6346b9c24bf5e2e6289e04a726ee334
tree4c30f8ce587f680bdb544a61a7a01817e98afe04
parent3059c06fa05c4a5536ec82d00bd991891956704d
gpio.c: Added ISR thread termination flag

Also modified ISR handler logic to account for the flag.

This fixes isrExit() deadlock in Python interactive mode
and prevents a more generic problem of a spurious ISR call
after mraa_gpio_isr_exit() is run.

Closes #268.

Signed-off-by: Alex Tereschenko <alext.mkrs@gmail.com>
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
include/mraa_internal_types.h
src/gpio/gpio.c