interface: move interface header files to top level include folder. 05/159805/3
authorSegwon <segwon.han@samsung.com>
Mon, 13 Nov 2017 05:31:31 +0000 (14:31 +0900)
committerSegwon Han <segwon.han@samsung.com>
Mon, 13 Nov 2017 08:18:56 +0000 (08:18 +0000)
 - seperated for readability.
 - included interface files when running build.

Signed-off-by: Segwon <segwon.han@samsung.com>
Change-Id: I4847dc8a7cf5f81de098a730c640229dfbc8a560

CMakeLists.txt
include/interface/gpio.h [moved from src/interface/include/gpio.h with 100% similarity]
include/interface/i2c.h [moved from src/interface/include/i2c.h with 100% similarity]
include/interface/pwm.h [moved from src/interface/include/pwm.h with 100% similarity]
include/interface/spi.h [moved from src/interface/include/spi.h with 100% similarity]
include/interface/uart.h [moved from src/interface/include/uart.h with 100% similarity]

index 29d9721..714f3d0 100644 (file)
@@ -27,6 +27,7 @@ EXEC_PROGRAM(${GDBUS_CODEGEN} ARGS
 
 SET(INC_DIR include)
 INCLUDE_DIRECTORIES(${INC_DIR})
+INCLUDE_DIRECTORIES(${INC_DIR}/interface)
 
 INCLUDE(FindPkgConfig)
 pkg_check_modules(${fw_name} REQUIRED ${dependents})
@@ -47,6 +48,11 @@ SET(SOURCES src/peripheral_gpio.c
                        src/peripheral_pwm.c
                        src/peripheral_uart.c
                        src/peripheral_spi.c
+                       src/interface/gpio.c
+                       src/interface/i2c.c
+                       src/interface/pwm.c
+                       src/interface/spi.c
+                       src/interface/uart.c
                        src/peripheral_gdbus_gpio.c
                        src/peripheral_gdbus_i2c.c
                        src/peripheral_gdbus_pwm.c