function serialPortList = serialPortEntriesCallback(varargin)
% SERIALPORTENTRIESCALLBACK Serial port entries callback for serial port
% parameter in PIL and external mode in configuration parameters

% Copyright 2020 The MathWorks, Inc.

serialPortList = cellstr(serialportlist("all"))';
if isempty(serialPortList)
    if nargin == 1 && strcmp(varargin{1}, 'actual')
        serialPortList = {''};
    else
        serialPortList = {message('TIC2000:codegen:NoSerialPortDetected').getString};
    end
end
end