From 9db58da40cfcb6643412bfae25aefc0cd1077f9d Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Mon, 27 May 2024 20:45:46 +0200 Subject: MHR-23: Improve project structure, make it better. Signed-off-by: Amlal El Mahrouss --- SDK/Libraries/CorePEFRuntime/.gitkeep | 0 SDK/Libraries/CorePEFRuntime/Private.xml | 3 +++ SDK/Libraries/CorePEFRuntime/Sources/PEFStart.c | 23 +++++++++++++++++++++++ 3 files changed, 26 insertions(+) create mode 100644 SDK/Libraries/CorePEFRuntime/.gitkeep create mode 100644 SDK/Libraries/CorePEFRuntime/Private.xml create mode 100644 SDK/Libraries/CorePEFRuntime/Sources/PEFStart.c (limited to 'SDK/Libraries/CorePEFRuntime') diff --git a/SDK/Libraries/CorePEFRuntime/.gitkeep b/SDK/Libraries/CorePEFRuntime/.gitkeep new file mode 100644 index 00000000..e69de29b diff --git a/SDK/Libraries/CorePEFRuntime/Private.xml b/SDK/Libraries/CorePEFRuntime/Private.xml new file mode 100644 index 00000000..7ee426c0 --- /dev/null +++ b/SDK/Libraries/CorePEFRuntime/Private.xml @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/SDK/Libraries/CorePEFRuntime/Sources/PEFStart.c b/SDK/Libraries/CorePEFRuntime/Sources/PEFStart.c new file mode 100644 index 00000000..e9a45f09 --- /dev/null +++ b/SDK/Libraries/CorePEFRuntime/Sources/PEFStart.c @@ -0,0 +1,23 @@ +/* ------------------------------------------- + + Copyright SoftwareLabs + +------------------------------------------- */ + +#include + +/// @brief Application entrypoint. +/// @param void +/// @return void +CS_EXTERN_C VoidType AppMain(VoidType); + +/// @brief Process entrypoint. +/// @param void +/// @return void +CS_EXTERN_C VoidType __ImageStart(VoidType) +{ + kSharedApplication = RtGetAppPointer(); + CS_MUST_PASS(kSharedApplication); + + AppMain(); +} -- cgit v1.2.3