Skip to content

Commit

Permalink
Add WEAK attribute to main functions of standard app
Browse files Browse the repository at this point in the history
(cherry picked from commit 8cb7abc)
(cherry picked from commit b8df925)
  • Loading branch information
fbeutin-ledger committed Jun 11, 2024
1 parent 128b53f commit 76a2119
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib_standard_app/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ WEAK void __attribute__((noreturn)) app_exit(void)
os_sched_exit(-1);
}

static void common_app_init(void)
WEAK void common_app_init(void)
{
UX_INIT();

Expand All @@ -55,7 +55,7 @@ static void common_app_init(void)
#endif // HAVE_BLE
}

static void standalone_app_main(void)
WEAK void standalone_app_main(void)
{
#ifdef HAVE_SWAP
G_called_from_swap = false;
Expand Down Expand Up @@ -102,7 +102,7 @@ static void standalone_app_main(void)
}

#ifdef HAVE_SWAP
static void library_app_main(libargs_t *args)
WEAK void library_app_main(libargs_t *args)
{
BEGIN_TRY
{
Expand Down Expand Up @@ -152,7 +152,7 @@ static void library_app_main(libargs_t *args)
}
#endif // HAVE_SWAP

__attribute__((section(".boot"))) int main(int arg0)
WEAK __attribute__((section(".boot"))) int main(int arg0)
{
// exit critical section
__asm volatile("cpsie i");
Expand Down

0 comments on commit 76a2119

Please sign in to comment.