% RPP_GET_BLOCKS  Returns a 'list' of blocks supported by currecntly configured target.

% Copyright (C) 2013-2015 Czech Technical University in Prague
%
% Authors:
%     - Michal Sojka <sojkam1@fel.cvut.cz>
%
% This document contains proprietary information belonging to Czech
% Technical University in Prague. Passing on and copying of this
% document, and communication of its contents is not permitted
% without prior written authorization.
%

function blocks = rpp_get_blocks()
    target = rpp_get_target();
    if strcmp(target, 'rm48_hdk') || strcmp(target, 'tms570_hdk') || 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'
                 };
    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
