diff options
Diffstat (limited to 'applications/driver_unit_tests/command_stream.hpp')
-rw-r--r-- | applications/driver_unit_tests/command_stream.hpp | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/applications/driver_unit_tests/command_stream.hpp b/applications/driver_unit_tests/command_stream.hpp index ec55d5e..4a0b602 100644 --- a/applications/driver_unit_tests/command_stream.hpp +++ b/applications/driver_unit_tests/command_stream.hpp @@ -24,9 +24,9 @@ ****************************************************************************/ #include <array> -#include <stddef.h> #include <ethosu_driver.h> #include <pmu_ethosu.h> +#include <stddef.h> /**************************************************************************** * Types @@ -80,7 +80,7 @@ class CommandStream { public: CommandStream(const DataPointer &_commandStream, const BasePointers &_pointers = {}, - const PmuEvents &_pmuEvents = {}); + const PmuEvents &_pmuEvents = {}); virtual ~CommandStream(); int run(size_t repeat = 1); @@ -96,17 +96,13 @@ private: Pmu pmu; }; -#define DRIVER_ACTION_MAGIC() \ - 'C', 'O', 'P', '1', +#define DRIVER_ACTION_MAGIC() 'C', 'O', 'P', '1', -#define DRIVER_ACTION_COMMAND_STREAM(length) \ - 0x02, (length >> 16) & 0xff, length & 0xff, (length >> 8) & 0xff, +#define DRIVER_ACTION_COMMAND_STREAM(length) 0x02, (length >> 16) & 0xff, length & 0xff, (length >> 8) & 0xff, -#define DRIVER_ACTION_NOP() \ - 0x05, 0x00, 0x00, 0x00, +#define DRIVER_ACTION_NOP() 0x05, 0x00, 0x00, 0x00, -#define NPU_OP_STOP(mask) \ - (mask >> 8) && 0xff, mask & 0xff, 0x08, 0x00, +#define NPU_OP_STOP(mask) (mask >> 8) && 0xff, mask & 0xff, 0x08, 0x00, }; // namespace CommandStream }; // namespace EthosU |