* mraa-gpio-din: add iot2050 board
This patch adds iot2050 board in possible list of boards.
Signed-off-by: zengchao <chao.zeng@siemens.com>
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Ivan Mikhaylov <ivan.mikhaylov@siemens.com>
* mraa-gpio-din: add cleanup on close
Required as nodejs will only lazily delete the node objects, and we may
race with the next user requesting the resources. ISR thread release.
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Ivan Mikhaylov <ivan.mikhaylov@siemens.com>
* mraa-gpio-din: extend GPIO lines
Signed-off-by: zengchao <chao.zeng@siemens.com>
Signed-off-by: Ivan Mikhaylov <ivan.mikhaylov@siemens.com>
* mraa-gpio-din: add configurable GPIO mode for DIN
GPIO mode wasn't set correctly, it was set from Pinmuxes modes instead
of GPIO. Add way to control GPIO modes on DINs from Node-RED with
possible values from mraa : Strong, Hiz, Pull-down, Pull-up.
Signed-off-by: Ivan Mikhaylov <ivan.mikhaylov@siemens.com>
* mraa-gpio-din: add support for initial message from digital input
This allows to send out an initial message with the current digital pin
state on startup, simplifying initializations of certain flows.
Based on siemens/meta-iot2000@5fc2bbe patch 0003.
Signed-off-by: Ivan Mikhaylov <ivan.mikhaylov@siemens.com>