Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
IoT
Open IoT SDK
examples
total-solutions
Commits
99d8b33c
Verified
Commit
99d8b33c
authored
May 06, 2022
by
Saheer Babu
Committed by
Vincent Coubard
May 25, 2022
Browse files
pre-commit: enable cppcheck
Signed-off-by:
Vincent Coubard
<
vincent.coubard@arm.com
>
parent
b17eb735
Changes
3
Hide whitespace changes
Inline
Side-by-side
.pre-commit-config.yaml
View file @
99d8b33c
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
exclude
:
>
(?x)^(
bsp/aws_configs/|
bsp/aws_libraries/|
bsp/freertos-platform/|
bsp/freertos-config/|
bsp/default_credentials/|
bsp/tf_m_targets/|
kws/ota/
)
repos
:
-
repo
:
https://github.com/pre-commit/pre-commit-hooks
rev
:
v3.2.0
...
...
@@ -11,13 +21,8 @@ repos:
rev
:
v13.0.0
hooks
:
-
id
:
clang-format
exclude
:
>
(?x)^(
bsp/aws_configs/|
bsp/aws_libraries/|
bsp/freertos-platform/|
bsp/freertos-config/|
bsp/default_credentials/|
bsp/tf_m_targets/|
kws/ota/
)
-
repo
:
https://git.gitlab.oss.arm.com/engineering/iot-m-sw/open-iot-sdk/tools/developer-tools.git
rev
:
5fecffb086eb00767e9763f242c91dda5020a4cf
hooks
:
-
id
:
cppcheck
-
id
:
banned-api
blinky/main.c
View file @
99d8b33c
...
...
@@ -36,7 +36,7 @@ int main()
uint32_t
ret
=
tfm_ns_interface_init
();
if
(
ret
!=
0
)
{
printf
(
"tfm_ns_interface_init() failed: %
d
\r\n
"
,
ret
);
printf
(
"tfm_ns_interface_init() failed: %
u
\r\n
"
,
ret
);
return
EXIT_FAILURE
;
}
...
...
kws/source/ml_interface.cc
View file @
99d8b33c
...
...
@@ -633,10 +633,9 @@ GetFeatureCalculator(audio::DsCnnMFCC &mfcc, TfLiteTensor *inputTensor, size_t c
}
}
else
{
mfccFeatureCalc
=
mfccFeatureCalc
=
FeatureCalc
<
float
>
(
inputTensor
,
cacheSize
,
[
&
mfcc
](
std
::
vector
<
int16_t
>
&
audioDataWindow
)
{
return
mfcc
.
MfccCompute
(
audioDataWindow
);
});
mfccFeatureCalc
=
FeatureCalc
<
float
>
(
inputTensor
,
cacheSize
,
[
&
mfcc
](
std
::
vector
<
int16_t
>
&
audioDataWindow
)
{
return
mfcc
.
MfccCompute
(
audioDataWindow
);
});
}
return
mfccFeatureCalc
;
}
...
...
@@ -741,6 +740,7 @@ static int arm_npu_init(void)
/* If the platform has timing adapter blocks along with Ethos-U55 core
* block, initialise them here. */
// cppcheck-suppress knownConditionTrueFalse
if
(
0
!=
(
err
=
_arm_npu_timing_adapter_init
()))
{
return
err
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment