diff options
author | Anton Moberg <anton.moberg@arm.com> | 2021-04-08 09:50:57 +0200 |
---|---|---|
committer | Kristofer Jonsson <kristofer.jonsson@arm.com> | 2021-04-21 11:52:19 +0000 |
commit | 908a07c61db978679a11a0f4ee023dc3c6aabffd (patch) | |
tree | f89e7ac6cea84695813783b579be144862886473 /applications/driver_unit_tests/irq.cpp | |
parent | 2faaf409e57254fc0479695319b05f98a3de4821 (diff) | |
download | ethos-u-core-platform-908a07c61db978679a11a0f4ee023dc3c6aabffd.tar.gz |
Fix formatting
Fixed code formatting
Change-Id: I12df8da14a7100706f20ffb084ca8477928d0005
Diffstat (limited to 'applications/driver_unit_tests/irq.cpp')
-rw-r--r-- | applications/driver_unit_tests/irq.cpp | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/applications/driver_unit_tests/irq.cpp b/applications/driver_unit_tests/irq.cpp index e4b030a..fdd7121 100644 --- a/applications/driver_unit_tests/irq.cpp +++ b/applications/driver_unit_tests/irq.cpp @@ -30,7 +30,7 @@ using namespace EthosU::CommandStream; /**************************************************************************** * Data ****************************************************************************/ - +// clang-format off __attribute__((section(".sram.data"), aligned(16))) char commandStream[] = { DRIVER_ACTION_MAGIC() DRIVER_ACTION_NOP() @@ -38,22 +38,16 @@ __attribute__((section(".sram.data"), aligned(16))) char commandStream[] = { DRIVER_ACTION_COMMAND_STREAM(1) NPU_OP_STOP(0) -}; +}; // clang-format on /**************************************************************************** * Functions ****************************************************************************/ int main() { - CommandStream cs( - DataPointer(commandStream, sizeof(commandStream)), - BasePointers(), - PmuEvents({ - ETHOSU_PMU_CYCLE, - ETHOSU_PMU_NPU_IDLE, - ETHOSU_PMU_NPU_ACTIVE - }) - ); + CommandStream cs(DataPointer(commandStream, sizeof(commandStream)), + BasePointers(), + PmuEvents({ETHOSU_PMU_CYCLE, ETHOSU_PMU_NPU_IDLE, ETHOSU_PMU_NPU_ACTIVE})); const size_t repeat = 1000; @@ -61,7 +55,7 @@ int main() { cs.getPmu().clear(); // Run inference - int ret = cs.run(repeat); + int ret = cs.run(repeat); uint64_t cycleCount = cs.getPmu().getCycleCount(); // Print PMU counters |