gusucode.com > target工具箱matlab源码程序 > target/extensions/processor/tic2000/utils/calcI2CMasterClockFrequencyPrompt.m

    function newPromptString = calcI2CMasterClockFrequencyPrompt(DependencyDelay, curPromptString)
%CALCI2CMASTERCLOCKFREQUENCYPROMPT Summary of this function goes here
%   Detailed explanation goes here

if ischar(DependencyDelay)
    DependencyDelay = str2double(DependencyDelay);
end
twice_delay = ['+' num2str(2 * DependencyDelay)];
newPromptString = regexprep(curPromptString, '\+\s*\d+', twice_delay);