*
* @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 */