From 31d9d2ef4ace9d3e3ca014d25525af3b99e86a66 Mon Sep 17 00:00:00 2001 From: Christophe Favergeon Date: Fri, 20 Jan 2023 08:59:53 +0100 Subject: [PATCH] Missing file in pack. Small correction for compute graph. --- ComputeGraph/cg/src/cg_status.h | 1 + Scripts/git/gen_pack.sh | 1 + cmsisdsp/cg/scheduler/templates/codeSwitch.cpp | 5 ++++- 3 files changed, 6 insertions(+), 1 deletion(-) 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)