Embedded SDK
Embedded SDK
Loading...
Searching...
No Matches
Functions | Variables
main.c File Reference
#include <stdint.h>
#include <string.h>
#include "app_storage_internal.h"
#include "os.h"
#include "io.h"
#include "ledger_assert.h"
#include "swap.h"
#include "swap_error_code_helpers.h"
Include dependency graph for main.c:

Go to the source code of this file.

Functions

WEAK NORETURN void app_exit (void)
 
WEAK void common_app_init (void)
 
WEAK void standalone_app_main (void)
 
WEAK void library_app_main (libargs_t *args)
 
WEAK BOOT_SECTION int main (int arg0)
 

Variables

ux_state_t G_ux
 Global UX state instance — see ux_state_s.
 
bolos_ux_params_t G_ux_params
 UX command parameters passed to the OS via os_ux()
 

Function Documentation

◆ app_exit()

WEAK NORETURN void app_exit ( void  )

Exit the application and go back to the dashboard.

Definition at line 40 of file main.c.

◆ common_app_init()

WEAK void common_app_init ( void  )

Common init of the App.

  • UX
  • io
  • USB
  • BLE

Definition at line 48 of file main.c.

◆ library_app_main()

WEAK void library_app_main ( libargs_t args)

Definition at line 113 of file main.c.

◆ main()

WEAK BOOT_SECTION int main ( int  arg0)

Definition at line 167 of file main.c.

◆ standalone_app_main()

WEAK void standalone_app_main ( void  )

Main entry point of the App, in standalone mode. It calls (inside a try/catch):

  • common_app_init
  • app_main (should be defined in the App)

Definition at line 59 of file main.c.

Variable Documentation

◆ G_ux

ux_state_t G_ux

Global UX state instance — see ux_state_s.

Definition at line 34 of file main.c.

◆ G_ux_params

bolos_ux_params_t G_ux_params

UX command parameters passed to the OS via os_ux()

Definition at line 35 of file main.c.