]> rtime.felk.cvut.cz Git - jenkicar/rpp-simulink.git/blobdiff - rpp/blocks/rpp_get_blocks.m
Implement HYDCTR board init block
[jenkicar/rpp-simulink.git] / rpp / blocks / rpp_get_blocks.m
index 26b186310b20a717ea2f85b053c7ed741631a263..42778f388e11135e1c57c5e2adc5b41f4bb5c549 100644 (file)
@@ -13,7 +13,7 @@
 
 function blocks = rpp_get_blocks()
     target = rpp_get_target();
-    if strcmp(target, 'rm48_hdk') || strcmp(target, 'tms570_hdk') || strcmp(target, 'tms570_hydctr'),
+    if strcmp(target, 'rm48_hdk') || strcmp(target, 'tms570_hdk'),
         blocks = {
                 'rpp_can_rx',
                 'rpp_can_setup',
@@ -27,6 +27,21 @@ function blocks = rpp_get_blocks()
                 'rpp_sci_rx',
                 'rpp_sci_tx'
                  };
+    elseif strcmp(target, 'tms570_hydctr'),
+        blocks = {
+                'rpp_can_rx',
+                'rpp_can_setup',
+                'rpp_can_tx',
+                'rpp_gio_in',
+                'rpp_gio_out',
+                'rpp_hdk_ain',
+                'rpp_overrun',
+                'rpp_sci_cfg',
+                'rpp_sci_printf',
+                'rpp_sci_rx',
+                'rpp_sci_tx',
+                'rpp_hydctr_init'
+                 };
     elseif strcmp(target, 'tms570_rpp'),
         blocks = {
                 'rpp_aout',