]> rtime.felk.cvut.cz Git - pes-rpp/rpp-lib.git/blobdiff - rpp/src/rpp/dac.c
RPP Library initalization rewritten.
[pes-rpp/rpp-lib.git] / rpp / src / rpp / dac.c
index 32ffec6d676ac304f19bfb73c22744d30563f148..d91d699b9ae8f4bef856bfa23036946eed358e02 100644 (file)
@@ -20,8 +20,6 @@
 
 #include "rpp/rpp.h"
 
-#if rppCONFIG_INCLUDE_DAC == 1
-
 #if rppCONFIG_DRV == 1
 #include "drv/dac.h"
 #endif
@@ -34,6 +32,7 @@ int8_t rpp_dac_init()
         return FAILURE;
     }
     initialized = TRUE;
+    spi_tms570_init();
 
     // Configure board
     // FIXME find out why board has default output of ~3.8V
@@ -166,7 +165,3 @@ int8_t rpp_dac_update()
 
     return SUCCESS;
 }
-
-
-#endif /* rppCONFIG_INCLUDE_DAC */
-