*
* @file drv.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 "hal/hal.h"
-#ifdef TARGET_RM48_HDK
+#if defined(TARGET_RM48_HDK)
#include "drv/_rm48_hdk/adc.h"
-#endif /* TARGET_RM48_HDK */
-#ifdef TARGET_TMS570_HDK
+#elif defined(TARGET_TMS570_HDK)
#include "drv/_tms570_hdk/adc.h"
-#endif /* TARGET_TMS570_HDK */
+#elif defined(TARGET_TMS570_HYDCTR)
+#include "drv/_tms570_hydctr/adc.h"
+#else
+#error No supported target specified!
+#endif /* TARGET */
+
#include "drv/sci.h"
#endif /* __DRV_H */
*
* @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 */
*
* @file rpp.h
*
- * @copyright Copyright (C) 2013, 2014 Czech Technical University in Prague
+ * @copyright Copyright (C) 2013, 2014, 2015 Czech Technical University in Prague
*
* @author Carlos Jenkins <carlos@jenkins.co.cr>
*/
#include "base.h"
/* Include modules */
-#ifdef FREERTOS_POSIX
+#if defined(TARGET_POSIX)
#include "rpp/_rm48_hdk/adc.h"
#include "rpp/can.h"
#include "rpp/sci.h"
#include "rpp/sci_posix.h"
-#endif
-
-#ifdef TARGET_RM48_HDK
+#elif defined(TARGET_RM48_HDK)
#include "rpp/_rm48_hdk/adc.h"
#include "rpp/can.h"
#include "rpp/sci.h"
#include "rpp/gio.h"
-#endif /* TARGET_RM48_HDK */
-
-#ifdef TARGET_TMS570_HDK
+#elif defined(TARGET_TMS570_HDK) || defined(TARGET_TMS570_HYDCTR)
#include "rpp/_tms570_hdk/adc.h"
#include "rpp/can.h"
#include "rpp/sci.h"
#include "rpp/gio.h"
+#else
+#error No supported target specified!
#endif /* TARGET_TMS570_HDK */