diff options
author | kibak.yoon <kibak.yoon@samsung.com> | 2017-09-22 20:30:15 +0900 |
---|---|---|
committer | Kibak Yoon <kibak.yoon@samsung.com> | 2017-09-26 02:37:04 +0000 |
commit | 303d7c027b689191868b5c87e4fc7dbaf2990f9a (patch) | |
tree | 0706a3ec85d088b6d98640e428d0adb2178c170a | |
parent | 266fe968be8d3f6cf2b270b63183df9ab17954c1 (diff) | |
download | thing-toggler-tizen_5.5.tar.gz thing-toggler-tizen_5.5.tar.bz2 thing-toggler-tizen_5.5.zip |
Change peripheral io GPIO APItizen_6.0.m2_releasetizen_5.5.m2_releasesubmit/tizen_6.0_hotfix/20201103.114801submit/tizen_6.0_hotfix/20201102.192501submit/tizen_6.0/20201029.205101submit/tizen_5.5_wearable_hotfix/20201026.184301submit/tizen_5.5_mobile_hotfix/20201026.185101submit/tizen_5.5/20191031.000001submit/tizen_5.0/20181101.000001submit/tizen/20170926.023501accepted/tizen/unified/20170926.165636accepted/tizen/6.0/unified/hotfix/20201103.051156accepted/tizen/6.0/unified/20201030.122902accepted/tizen/5.5/unified/wearable/hotfix/20201027.122825accepted/tizen/5.5/unified/mobile/hotfix/20201027.081407accepted/tizen/5.5/unified/20191031.014716accepted/tizen/5.0/unified/20181102.011834tizen_6.0_hotfixtizen_6.0tizen_5.5_wearable_hotfixtizen_5.5_tvtizen_5.5_mobile_hotfixtizen_5.5tizen_5.0tizenaccepted/tizen_unifiedaccepted/tizen_6.0_unified_hotfixaccepted/tizen_6.0_unifiedaccepted/tizen_5.5_unified_wearable_hotfixaccepted/tizen_5.5_unified_mobile_hotfixaccepted/tizen_5.5_unifiedaccepted/tizen_5.0_unified
- change PERIPHERAL_GPIO_DIRECTION_OUT to PERIPHERAL_GPIO_DIRECTION_OUT_INITIALLY_LOW
Change-Id: I321007b313e305af1ccf0e4cffddf1fae5b91e20
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
-rw-r--r-- | src/thing_toggler.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/thing_toggler.c b/src/thing_toggler.c index f45a1f9..6442f33 100644 --- a/src/thing_toggler.c +++ b/src/thing_toggler.c @@ -40,14 +40,14 @@ bool service_app_create(void *data) app_data *ad = (app_data *)data; int ret = 0; - // Todo: add your code here. + // Todo: add your code here. peripheral_gpio_open(GPIO_NUM, &ad->gpio); if (!ad->gpio) { dlog_print(DLOG_ERROR, LOG_TAG, "The return value of peripheral_gpio_open is null."); return false; } - ret = peripheral_gpio_set_direction(ad->gpio, PERIPHERAL_GPIO_DIRECTION_OUT); + ret = peripheral_gpio_set_direction(ad->gpio, PERIPHERAL_GPIO_DIRECTION_OUT_INITIALLY_LOW); if (ret != 0) { dlog_print(DLOG_ERROR, LOG_TAG, "Cannot set direction error."); return false; @@ -60,13 +60,13 @@ bool service_app_create(void *data) return false; } - return true; + return true; } void service_app_terminate(void *data) { app_data *ad = (app_data *)data; - // Todo: add your code here. + // Todo: add your code here. ecore_timer_del(ad->on_off_timer); peripheral_gpio_close(ad->gpio); @@ -75,7 +75,7 @@ void service_app_terminate(void *data) void service_app_control(app_control_h app_control, void *data) { - // Todo: add your code here. + // Todo: add your code here. } static void service_app_lang_changed(app_event_info_h event_info, void *user_data) |