]> rtime.felk.cvut.cz Git - pes-rpp/rpp-lib.git/blobdiff - rpp/include/hal/hal.h
Signal compilation error when no known is defined
[pes-rpp/rpp-lib.git] / rpp / include / hal / hal.h
index 365148cdbb2a69fff36038a1e59a7e136d3780e9..211ec36bddef3480ec7b9a73ed87bd0fad4688cc 100644 (file)
@@ -3,7 +3,7 @@
  *
  * @file hal.h
  *
- * @copyright Copyright (C) 2013 Czech Technical University in Prague
+ * @copyright Copyright (C) 2013, 2015 Czech Technical University in Prague
  *
  * @author Carlos Jenkins <carlos@jenkins.co.cr>
  */
 
 #include "sys/sys.h"
 
-#ifdef FREERTOS_POSIX
+#if defined(TARGET_POSIX)
 #include "hal/_rm48_hdk/gpio_def.h"
 #include "hal/_rm48_hdk/port_def.h"
-#include "hal/gpio.h"
-#include "hal/port_gpio.h"
-#endif /* FREERTOS_POSIX */
-
-#ifdef TARGET_RM48_HDK
+#elif defined(TARGET_RM48_HDK)
 #include "hal/_rm48_hdk/gpio_def.h"
 #include "hal/_rm48_hdk/port_def.h"
-#include "hal/gpio.h"
-#include "hal/port_gpio.h"
-#endif /* TARGET_RM48_HDK */
-
-#ifdef TARGET_TMS570_HDK
+#elif defined(TARGET_TMS570_HDK)
 #include "hal/_tms570_hdk/gpio_def.h"
 #include "hal/_tms570_hdk/port_def.h"
+#elif defined(TARGET_TMS570_HYDCTR)
+#include "hal/_tms570_hydctr/gpio_def.h"
+#include "hal/_tms570_hydctr/port_def.h"
+#else
+#error No supported target specified!
+#endif
+
 #include "hal/gpio.h"
 #include "hal/port_gpio.h"
-#endif /* TARGET_TMS570_HDK */
 
 #endif /* __HAL_H */