diff --git a/ComputeGraph/cg/src/cg_status.h b/ComputeGraph/cg/src/cg_status.h index 430dc437..995b117b 100644 --- a/ComputeGraph/cg/src/cg_status.h +++ b/ComputeGraph/cg/src/cg_status.h @@ -10,6 +10,7 @@ CG_INIT_FAILURE = -4, /**< Node initialization failure */ CG_SKIP_EXECUTION = -5, /**< Skip node execution (asynchronous mode) */ CG_BUFFER_ERROR = -6, /**< Stop execution due to FIFO overflow or underflow (asynchronous mode for pure function) */ + CG_OS_ERROR = -7 /**< RTOS API error */ } cg_status; diff --git a/Scripts/git/gen_pack.sh b/Scripts/git/gen_pack.sh index a90a967c..30477ec3 100644 --- a/Scripts/git/gen_pack.sh +++ b/Scripts/git/gen_pack.sh @@ -111,6 +111,7 @@ PACK_DIRS=" PACK_BASE_FILES=" LICENSE.txt ComputeGraph/cg/src/GenericNodes.h + ComputeGraph/cg/src/cg_status.h ComputeGraph/cg/nodes/cpp/CFFT.h ComputeGraph/cg/nodes/cpp/ICFFT.h ComputeGraph/cg/nodes/cpp/InterleavedStereoToMono.h diff --git a/cmsisdsp/cg/scheduler/templates/codeSwitch.cpp b/cmsisdsp/cg/scheduler/templates/codeSwitch.cpp index 494e3e78..75c2c280 100644 --- a/cmsisdsp/cg/scheduler/templates/codeSwitch.cpp +++ b/cmsisdsp/cg/scheduler/templates/codeSwitch.cpp @@ -55,7 +55,10 @@ static unsigned int schedule[{{schedLen}}]= } if (cgStaticError == CG_SKIP_EXECUTION_ID_CODE) - continue; + { + cgStaticError = 0; + continue; + } {% if config.eventRecorder -%} if (cgStaticError<0)