diff options
author | Jeff Hatch <jhatch@multitech.com> | 2020-11-16 15:56:21 -0600 |
---|---|---|
committer | John Klug <john.klug@multitech.com> | 2020-11-23 14:22:34 -0600 |
commit | febfbaa141125c24d3a40e17034261c5354a0973 (patch) | |
tree | d16d84058fb005e0e5262b1a0bd16d63cd6c08f1 /io-module/mts-io.c | |
parent | e8af5a62cb51f9bca1900c17b021cf5bc240c029 (diff) | |
download | mts-io-febfbaa141125c24d3a40e17034261c5354a0973.tar.gz mts-io-febfbaa141125c24d3a40e17034261c5354a0973.tar.bz2 mts-io-febfbaa141125c24d3a40e17034261c5354a0973.zip |
Add supercap_worker to handle supercap gpio and signal supercap-monitor
Diffstat (limited to 'io-module/mts-io.c')
-rw-r--r-- | io-module/mts-io.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/io-module/mts-io.c b/io-module/mts-io.c index 069e84b..83c3ddf 100644 --- a/io-module/mts-io.c +++ b/io-module/mts-io.c @@ -45,6 +45,7 @@ #include "mts_io_module.h" #include "mts_io.h" #include "buttons.h" +#include "mts_supercap.h" #define PLATFORM_NAME "mts-io" @@ -1217,6 +1218,11 @@ static int __init mts_io_init(void) // start general buttons processing init_buttons(); + //start supercap monitor worker if SUPERCAP CAPA is true + if(DEVICE_CAPA(id_eeprom.capa, CAPA_SUPERCAP)) { + init_supercap_worker(); + } + /* init timers */ #if LINUX_VERSION_CODE >= KERNEL_VERSION(4,15,0) timer_setup(&radio_reset_timer, radio_reset_timer_callback, 0); |