]> rtime.felk.cvut.cz Git - pes-rpp/rpp-lib.git/blobdiff - rpp/include/drv/drv.h
spi: Rework the SPI interface
[pes-rpp/rpp-lib.git] / rpp / include / drv / drv.h
index 76b1027c98fd7f4cae4a930c339f820725abc629..5ee1a2d3541e760dfda31b5cb81cc5f0a75243c8 100644 (file)
 #ifndef __DRV_H
 #define __DRV_H
 
-#include "hal/hal.h"
+#include "drv/adc.h"
+#include "drv/gio.h"
+#include "drv/sci.h"
 
-#if defined(TARGET_RM48_HDK)
-#include "drv/_rm48_hdk/adc.h"
-#elif defined(TARGET_TMS570_HDK)
-#include "drv/_tms570_hdk/adc.h"
-#elif defined(TARGET_TMS570_HYDCTR)
-#include "drv/_tms570_hydctr/adc.h"
-#else
-#error No supported target specified!
-#endif /* TARGET */
+#ifdef TARGET_HAS_SPI
+#include "drv/spi.h"
+#endif
 
-#include "drv/sci.h"
+#ifdef TARGET_TMS570_RPP
+#include "drv/dac.h"
+#include "drv/din.h"
+#include "drv/fray.h"
+#include "drv/fr_tms570.h"
+#include "drv/hbridge.h"
+#include "drv/hout.h"
+#include "drv/lout.h"
+#include "drv/mout.h"
+#endif /* TARGET_TMS570_RPP */
 
 #endif /* __DRV_H */