summaryrefslogtreecommitdiff
path: root/source/application/main/Main.cc
diff options
context:
space:
mode:
authorKshitij Sisodia <kshitij.sisodia@arm.com>2022-04-08 09:54:53 +0100
committerKshitij Sisodia <kshitij.sisodia@arm.com>2022-04-08 12:30:28 +0100
commit4cc4021d356c174f780be2b7ef96910e36c8dd7b (patch)
treec2a790b914577873a368982a07a9491f6743443e /source/application/main/Main.cc
parent11b75cc7dc140119dee490f425e25a004122703b (diff)
downloadml-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/application/main/Main.cc')
-rw-r--r--source/application/main/Main.cc14
1 files changed, 4 insertions, 10 deletions
diff --git a/source/application/main/Main.cc b/source/application/main/Main.cc
index e27d5b5..4b1f8f4 100644
--- a/source/application/main/Main.cc
+++ b/source/application/main/Main.cc
@@ -25,7 +25,7 @@
#include <cstdio>
-extern void main_loop(hal_platform& platform);
+extern void main_loop();
#if defined(__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050)
__ASM(" .global __ARM_use_no_argv\n");
@@ -41,13 +41,7 @@ static void print_application_intro()
int main ()
{
- hal_platform platform;
- platform_timer timer;
-
- /* Initialise the HAL and platform. */
- hal_init(&platform, &timer);
-
- if (0 == hal_platform_init(&platform)) {
+ if (hal_platform_init()) {
/* Application information, UART should have been initialised. */
print_application_intro();
@@ -55,13 +49,13 @@ int main ()
PrintTensorFlowVersion();
/* Run the application. */
- main_loop(platform);
+ main_loop();
}
/* This is unreachable without errors. */
info("program terminating...\n");
/* Release platform. */
- hal_platform_release(&platform);
+ hal_platform_release();
return 0;
}