Change peripheral io GPIO API 51/151951/3 accepted/tizen_5.0_unified accepted/tizen_5.5_unified accepted/tizen_5.5_unified_mobile_hotfix accepted/tizen_5.5_unified_wearable_hotfix accepted/tizen_6.0_unified accepted/tizen_6.0_unified_hotfix accepted/tizen_unified tizen tizen_5.0 tizen_5.5 tizen_5.5_mobile_hotfix tizen_5.5_tv tizen_5.5_wearable_hotfix tizen_6.0 tizen_6.0_hotfix accepted/tizen/5.0/unified/20181102.011834 accepted/tizen/5.5/unified/20191031.014716 accepted/tizen/5.5/unified/mobile/hotfix/20201027.081407 accepted/tizen/5.5/unified/wearable/hotfix/20201027.122825 accepted/tizen/6.0/unified/20201030.122902 accepted/tizen/6.0/unified/hotfix/20201103.051156 accepted/tizen/unified/20170926.165636 submit/tizen/20170926.023501 submit/tizen_5.0/20181101.000001 submit/tizen_5.5/20191031.000001 submit/tizen_5.5_mobile_hotfix/20201026.185101 submit/tizen_5.5_wearable_hotfix/20201026.184301 submit/tizen_6.0/20201029.205101 submit/tizen_6.0_hotfix/20201102.192501 submit/tizen_6.0_hotfix/20201103.114801 tizen_5.5.m2_release tizen_6.0.m2_release
authorkibak.yoon <kibak.yoon@samsung.com>
Fri, 22 Sep 2017 11:30:15 +0000 (20:30 +0900)
committerKibak Yoon <kibak.yoon@samsung.com>
Tue, 26 Sep 2017 02:37:04 +0000 (02:37 +0000)
- change PERIPHERAL_GPIO_DIRECTION_OUT to PERIPHERAL_GPIO_DIRECTION_OUT_INITIALLY_LOW

Change-Id: I321007b313e305af1ccf0e4cffddf1fae5b91e20
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
src/thing_toggler.c

index f45a1f9..6442f33 100644 (file)
@@ -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)