]> 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 e0a0e7c8db55a1d91878cf83bd0a68c6eb778af2..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,5 +27,45 @@ 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',
+                'rpp_can_rx',
+                'rpp_can_setup',
+                'rpp_can_tx',
+                'rpp_din_cfg',
+                'rpp_din',
+                'rpp_dout',
+                'rpp_fr_cfg',
+                'rpp_fr_rx',
+                'rpp_fr_tx',
+                'rpp_gio_in',
+                'rpp_gio_out',
+                'rpp_hbr',
+                'rpp_ircin',
+                'rpp_log',
+                'rpp_overrun',
+                'rpp_power',
+                'rpp_rpp_ain',
+                'rpp_sci_cfg',
+                'rpp_sci_printf',
+                'rpp_sci_rx',
+                'rpp_sci_tx'
+                 };
     end
 end