fixed missing things in resource module
authorJeonghoon Park <jh1979.park@samsung.com>
Fri, 12 Jan 2018 01:57:16 +0000 (10:57 +0900)
committerJeonghoon Park <jh1979.park@samsung.com>
Fri, 12 Jan 2018 01:57:16 +0000 (10:57 +0900)
inc/resource.h
inc/resource/resource_motor_driver_L298N_internal.h
inc/resource_internal.h
src/resource.c

index 49719c1..5aacc4a 100644 (file)
@@ -26,4 +26,6 @@
 #include "resource/resource_motor_driver_L298N.h"
 #include "resource/resource_servo_motor.h"
 
+void resource_close_all(void);
+
 #endif /* __POSITION_FINDER_RESOURCE_H__ */
index fa5beb1..2fb63f7 100644 (file)
@@ -19,6 +19,8 @@
 #ifndef __RESOURCE_MOTOR_DRIVER_L298N_INTERNAL_H__
 #define __RESOURCE_MOTOR_DRIVER_L298N_INTERNAL_H__
 
+#include "resource/resource_motor_driver_L298N.h"
+
 void resource_close_motor_driver_L298N(motor_id_e id);
 void resource_close_motor_driver_L298N_all(void);
 
index 12e318c..fb18904 100644 (file)
@@ -48,6 +48,5 @@ typedef struct _resource_s {
 } resource_s;
 
 extern resource_s *resource_get_info(int pin_num);
-extern void resource_close_all(void);
 
 #endif /* __POSITION_FINDER_RESOURCE_INTERNAL_H__ */
index d16c5be..a27b0fa 100644 (file)
@@ -23,6 +23,8 @@
 
 #include "log.h"
 #include "resource_internal.h"
+#include "resource/resource_motor_driver_L298N_internal.h"
+#include "resource/resource_servo_motor_internal.h"
 
 static resource_s resource_info[PIN_MAX] = { {0, NULL, NULL}, };