diff options
Diffstat (limited to 'applications/driver_unit_tests')
-rw-r--r-- | applications/driver_unit_tests/command_stream.cpp | 4 | ||||
-rw-r--r-- | applications/driver_unit_tests/conv.cpp | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/applications/driver_unit_tests/command_stream.cpp b/applications/driver_unit_tests/command_stream.cpp index 6ec8cba..d2e62ce 100644 --- a/applications/driver_unit_tests/command_stream.cpp +++ b/applications/driver_unit_tests/command_stream.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021-2022 Arm Limited. All rights reserved. + * SPDX-FileCopyrightText: Copyright 2021-2023 Arm Limited and/or its affiliates <open-source-office@arm.com> * * SPDX-License-Identifier: Apache-2.0 * @@ -66,7 +66,7 @@ Pmu::Pmu(ethosu_driver *_drv, const PmuEvents &_config) : drv(_drv), config(_con // Configure event types for (size_t i = 0; i < config.size(); i++) { ETHOSU_PMU_Set_EVTYPER(drv, i, config[i]); - ETHOSU_PMU_CNTR_Enable(drv, 1 << i); + ETHOSU_PMU_CNTR_Enable(drv, 1u << i); } } diff --git a/applications/driver_unit_tests/conv.cpp b/applications/driver_unit_tests/conv.cpp index 9e3dcc9..4a29db8 100644 --- a/applications/driver_unit_tests/conv.cpp +++ b/applications/driver_unit_tests/conv.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021-2022 Arm Limited. + * SPDX-FileCopyrightText: Copyright 2021-2023 Arm Limited and/or its affiliates <open-source-office@arm.com> * * SPDX-License-Identifier: Apache-2.0 * @@ -288,7 +288,7 @@ int main() { // Expected output data DataPointer expectedPointer(expected0, sizeof(expected0)); - printf("Running %d iterations using sync API...\n", repeat); + printf("Running %u iterations using sync API...\n", repeat); // Clear PMU cs.getPmu().clear(); @@ -312,7 +312,7 @@ int main() { printf("\n"); // Test using the async API - printf("Running %d iterations using async API...\n", repeat); + printf("Running %u iterations using async API...\n", repeat); // Clear PMU cs.getPmu().clear(); |