handle: move duplicate header files to peripheral_handle_common.h 22/161422/4
authorSegwon <segwon.han@samsung.com>
Thu, 23 Nov 2017 09:16:35 +0000 (18:16 +0900)
committerSegwon Han <segwon.han@samsung.com>
Fri, 24 Nov 2017 04:43:42 +0000 (04:43 +0000)
Change-Id: Ie2fa4143030b743ee85f4a15ed89c77d826098d5
Signed-off-by: Segwon <segwon.han@samsung.com>
include/handle/peripheral_handle_common.h
src/handle/peripheral_handle_gpio.c
src/handle/peripheral_handle_i2c.c
src/handle/peripheral_handle_pwm.c
src/handle/peripheral_handle_spi.c
src/handle/peripheral_handle_uart.c

index 9d0c3bf94edef53b3a25cf84887088d4d7293a17..20742ac5dfc056307077d92cc37e2693d585044b 100644 (file)
 #ifndef __PERIPHERAL_HANDLE_COMMON_H__
 #define __PERIPHERAL_HANDLE_COMMON_H__
 
+#include <stdio.h>
+#include <stdlib.h>
 #include <gio/gio.h>
+#include <peripheral_io.h>
 
 #include "peripheral_handle.h"
 #include "peripheral_log.h"
index 8833e66fed54cf89ca6af4333e51f2e2251351d3..e075f9e28bc7abec5a51533614fa99b5d32e2a4f 100644 (file)
  * limitations under the License.
  */
 
-#include <stdio.h>
-#include <stdlib.h>
-#include <gio/gio.h>
-#include <peripheral_io.h>
-
 #include "peripheral_interface_gpio.h"
 #include "peripheral_handle_common.h"
 
@@ -141,4 +136,4 @@ int peripheral_handle_gpio_create(int pin, peripheral_h *handle, gpointer user_d
 out:
        peripheral_handle_gpio_destroy(gpio_handle);
        return ret;
-}
\ No newline at end of file
+}
index 8ed154b1168c617b084cd733edb0c1cfaebdd892..075cfe4e70ab282a344ea408b4cd79c27028c2d8 100644 (file)
  * limitations under the License.
  */
 
-#include <stdio.h>
-#include <stdlib.h>
-#include <gio/gio.h>
-
-#include <peripheral_io.h>
-
 #include "peripheral_interface_i2c.h"
 #include "peripheral_handle_common.h"
 
@@ -112,4 +106,4 @@ int peripheral_handle_i2c_create(int bus, int address, peripheral_h *handle, gpo
 out:
        peripheral_handle_i2c_destroy(i2c_handle);
        return ret;
-}
\ No newline at end of file
+}
index 2dc0a37e2174ae47532e8881a23012e192cc8f3c..605682ac43916d58179eca27723890b17b528d68 100644 (file)
  * limitations under the License.
  */
 
-#include <stdio.h>
-#include <stdlib.h>
-#include <gio/gio.h>
-
-#include <peripheral_io.h>
-
 #include "peripheral_interface_pwm.h"
 #include "peripheral_handle_common.h"
 
@@ -156,4 +150,4 @@ int peripheral_handle_pwm_create(int chip, int pin, peripheral_h *handle, gpoint
 out:
        peripheral_handle_pwm_destroy(pwm_handle);
        return ret;
-}
\ No newline at end of file
+}
index 730d949ac06b2305cc83d1ec86e2bbfde9200c77..5d5e2ccc36b2adeaada3ebfdbed404e761c78ae2 100644 (file)
  * limitations under the License.
  */
 
-#include <stdio.h>
-#include <stdlib.h>
-#include <gio/gio.h>
-
-#include <peripheral_io.h>
-
 #include "peripheral_interface_spi.h"
 #include "peripheral_handle_common.h"
 
@@ -112,4 +106,4 @@ int peripheral_handle_spi_create(int bus, int cs, peripheral_h *handle, gpointer
 out:
        peripheral_handle_spi_destroy(spi_handle);
        return ret;
-}
\ No newline at end of file
+}
index f05d9edd57c847413f6b0f3f2b24b3df80db7300..985764c3e331e7cf48b7255ba48cdb995ebcb48e 100644 (file)
  * limitations under the License.
  */
 
-#include <stdio.h>
-#include <stdlib.h>
-#include <gio/gio.h>
-
-#include <peripheral_io.h>
-
 #include "peripheral_interface_uart.h"
 #include "peripheral_handle_common.h"
 
@@ -110,4 +104,4 @@ int peripheral_handle_uart_create(int port, peripheral_h *handle, gpointer user_
 out:
        peripheral_handle_uart_destroy(uart_handle);
        return ret;
-}
\ No newline at end of file
+}