*
* @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>
*/
/* Base includes */
#include "base.h"
+#include "rpp/mutex.h"
+
/* Include modules */
-#include "rpp/din.h"
-#include "rpp/lout.h"
+#if defined(TARGET_POSIX)
+#include "rpp/adc.h"
+#include "rpp/can.h"
+#include "rpp/sci.h"
+#include "rpp/sci_posix.h"
+#include "rpp/eth.h"
+#elif defined(TARGET_RM48_HDK)
#include "rpp/adc.h"
+#include "rpp/can.h"
+#include "rpp/sci.h"
+#include "rpp/gio.h"
+#include "rpp/eth.h"
+#elif defined(TARGET_TMS570_HDK) || defined(TARGET_TMS570_HYDCTR)
+#include "rpp/adc.h"
+#include "rpp/can.h"
+#include "rpp/sci.h"
+#include "rpp/gio.h"
+#include "rpp/eth.h"
+#elif defined(TARGET_TMS570_RPP)
+#include "rpp/adc.h"
+#include "rpp/can.h"
#include "rpp/dac.h"
+#include "rpp/din.h"
+#include "rpp/eth.h"
+#include "rpp/fr.h"
+#include "rpp/gio.h"
#include "rpp/hbr.h"
-#include "rpp/mout.h"
#include "rpp/hout.h"
-#include "rpp/can.h"
+#include "rpp/irc.h"
#include "rpp/lin.h"
+#include "rpp/lout.h"
+#include "rpp/mout.h"
#include "rpp/sci.h"
-#ifndef FREERTOS_POSIX
- #include "rpp/eth.h"
- #include "rpp/fr.h"
-#else
-#include "rpp/sci_posix.h"
-#endif
-
-#include "rpp/sdc.h"
#include "rpp/sdr.h"
-#include "rpp/irc.h"
+#else /* if defined(TARGET_POSIX) */
+#error No supported target specified!
+#endif /* TARGET_TMS570_HDK */
+
+#if defined(TARGET_HAS_SPI)
+#include "rpp/spi.h"
+#endif
/* Library main functions */
/**
* Library initialization function.
*
- * This is a convenience function, which should be called only if all of the peripherals are going to be used by
- * the software.
- *
- * To initialize the selected peripherals only, call the rpp_periph_init() function for each one of them instead
- * of this function.
+ * This is a convenience function, that initializes all peripherals.
+ * If the application does not use all the peripherals it is better to
+ * call directly the rpp_<periph>_init() functions for the used
+ * peripherals as the resulting binary will be smaller.
*
* @return SUCCESS if initialization successful.\n
* FAILURE is library was already initialized.