]> rtime.felk.cvut.cz Git - jenkicar/rpp-simulink.git/commitdiff
Added old initialization calls to RPP library. This should be fixed because is not...
authorCarlos Jenkins <carlos@jenkins.co.cr>
Thu, 30 May 2013 13:03:07 +0000 (15:03 +0200)
committerCarlos Jenkins <carlos@jenkins.co.cr>
Thu, 30 May 2013 13:03:07 +0000 (15:03 +0200)
rpp/lib/rpp/src/rpp/rpp.c
rpp/rpp/rpp_srmain.tlc

index 9eae45cdfa8be4becfb0798af19d8a98ec3e14ea..598e1f95f2cddf2b23238c5304dab4f10cb2d5e7 100644 (file)
 
 #include "rpp/rpp.h"
 
+#if rppCONFIG_DRV == 1
+#include "drv/drv.h"
+#endif
+
 boolean_t initialized = FALSE;
 
 int8_t rpp_init() {
@@ -37,6 +41,20 @@ int8_t rpp_init() {
     }
     initialized = TRUE;
 
+    // FIXME This is horrible
+       #if rppCONFIG_DRV == 1
+    dmmInit();
+    gioInit();
+    hetInit();
+    sciInit();
+    canInit();
+    adcInit();
+    linInit();
+    emif_SDRAMInit();
+    spi_tms570_init();
+    _enable_IRQ();
+       #endif
+
 #if rppCONFIG_INCLUDE_DIN == 1
     rpp_din_init();
 #endif
index 2aebc90dc4bee6df129271df424d436d93139263..0761ffe0019e675666acf29c8120a40d177ae419 100644 (file)
     {
         /* Initialize model */
         %<LibCallModelInitialize()>\
-        _enable_IRQ();
 
         /* Create and lock semaphore */
         vSemaphoreCreateBinary(step_signal);