summaryrefslogtreecommitdiff
path: root/src/resource/resource_led.c
diff options
context:
space:
mode:
authorkibak.yoon <kibak.yoon@samsung.com>2017-09-25 14:13:51 +0900
committerkibak.yoon <kibak.yoon@samsung.com>2017-09-25 22:57:35 +0900
commitdbf5629ae2ca0e05759003b6844be701520b893a (patch)
treedfefa60eae19f8d599058d765e6e2c0442d4dbec /src/resource/resource_led.c
parente56711738b1d4c62319a00fc7058c057d8101f43 (diff)
downloadposition-finder-server-dbf5629ae2ca0e05759003b6844be701520b893a.tar.gz
position-finder-server-dbf5629ae2ca0e05759003b6844be701520b893a.tar.bz2
position-finder-server-dbf5629ae2ca0e05759003b6844be701520b893a.zip
- change parameter type from int to uint32_t in peripheral_gpio_read() - change gpio interrupt-related API Change-Id: Iec4794ef19ab299879d531b7f1615a402a4162de Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
Diffstat (limited to 'src/resource/resource_led.c')
-rw-r--r--src/resource/resource_led.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/resource/resource_led.c b/src/resource/resource_led.c
index aa5e170..19361f5 100644
--- a/src/resource/resource_led.c
+++ b/src/resource/resource_led.c
@@ -43,7 +43,7 @@ int resource_write_led(int pin_num, int write_value)
ret = peripheral_gpio_open(pin_num, &resource_get_info(pin_num)->sensor_h);
retv_if(!resource_get_info(pin_num)->sensor_h, -1);
- ret = peripheral_gpio_set_direction(resource_get_info(pin_num)->sensor_h, PERIPHERAL_GPIO_DIRECTION_OUT);
+ ret = peripheral_gpio_set_direction(resource_get_info(pin_num)->sensor_h, PERIPHERAL_GPIO_DIRECTION_OUT_INITIALLY_LOW);
retv_if(ret != 0, -1);
resource_get_info(pin_num)->opened = 1;