diff options
author | Kshitij Sisodia <kshitij.sisodia@arm.com> | 2022-04-08 09:54:53 +0100 |
---|---|---|
committer | Kshitij Sisodia <kshitij.sisodia@arm.com> | 2022-04-08 12:30:28 +0100 |
commit | 4cc4021d356c174f780be2b7ef96910e36c8dd7b (patch) | |
tree | c2a790b914577873a368982a07a9491f6743443e /source/use_case/asr/src/MainLoop.cc | |
parent | 11b75cc7dc140119dee490f425e25a004122703b (diff) | |
download | ml-embedded-evaluation-kit-4cc4021d356c174f780be2b7ef96910e36c8dd7b.tar.gz |
MLECO-3070: Further HAL cleanup.
Cleaning up HAL sources by removing unnecessary redirections
with function pointers. The "platform packages" under HAL are
now streamlined enough to not need any major HAL wrapping (as
was the case before).
This allows us to have a very thin HAL layer that sits on top
of the platform and compnent packs. Also helps in getting rid
of "hal platform" pointer being passed around in the code to
use any HAL functionality.
Change-Id: I04b2057f972aad7a5cfb4a396bcdf147c9f9ef1c
Signed-off-by: Kshitij Sisodia <kshitij.sisodia@arm.com>
Diffstat (limited to 'source/use_case/asr/src/MainLoop.cc')
-rw-r--r-- | source/use_case/asr/src/MainLoop.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/source/use_case/asr/src/MainLoop.cc b/source/use_case/asr/src/MainLoop.cc index 058211a..51b0b18 100644 --- a/source/use_case/asr/src/MainLoop.cc +++ b/source/use_case/asr/src/MainLoop.cc @@ -65,7 +65,7 @@ static uint32_t GetOutputContextLen(const arm::app::Model& model, static uint32_t GetOutputInnerLen(const arm::app::Model& model, uint32_t outputCtxLen); -void main_loop(hal_platform& platform) +void main_loop() { arm::app::Wav2LetterModel model; /* Model wrapper object. */ @@ -99,9 +99,8 @@ void main_loop(hal_platform& platform) GetLabelsVector(labels); arm::app::AsrClassifier classifier; /* Classifier wrapper object. */ - arm::app::Profiler profiler{&platform, "asr"}; + arm::app::Profiler profiler{"asr"}; caseContext.Set<arm::app::Profiler&>("profiler", profiler); - caseContext.Set<hal_platform&>("platform", platform); caseContext.Set<arm::app::Model&>("model", model); caseContext.Set<uint32_t>("clipIndex", 0); caseContext.Set<uint32_t>("frameLength", g_FrameLength); |