Solaris Software
Loading...
Searching...
No Matches
app.c File Reference

Solaris application initialization and execution. More...

#include "app.h"
#include "spp/services/fsm/fsm.h"
#include "spp/ports/hal/esp32/halEsp32.h"
#include "custom.h"
#include <stdio.h>
Include dependency graph for app.c:

Go to the source code of this file.

Functions

static void BootError ()
 Boot error handler.
void APP_initHal (void)
 Initialize the HAL (Hardware Abstraction Layer).
void APP_initFsm (void)
 Initialize the FSM (Finite State Machine).
void APP_fsmLoop (void)
 Main loop for the FSM (executes the state machine indefinitely).

Detailed Description

Solaris application initialization and execution.

Initializes the hardware abstraction layer and the FSM, registers application-specific transitions, and runs the main execution loop. Handles fatal boot errors.

Definition in file app.c.

Function Documentation

◆ BootError()

void BootError ( )
inlinestatic

Boot error handler.

Definition at line 79 of file app.c.

References BootError().

Referenced by APP_initFsm(), APP_initHal(), and BootError().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ APP_initHal()

void APP_initHal ( void )

Initialize the HAL (Hardware Abstraction Layer).

Definition at line 31 of file app.c.

References APP_initHal(), BootError(), K_SPP_OK, SPP_HAL_init(), and SPP_PORTS_ESP32S3_getHalPorts().

Referenced by APP_initHal(), and app_main().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ APP_initFsm()

void APP_initFsm ( void )

Initialize the FSM (Finite State Machine).

Definition at line 45 of file app.c.

References APP_initFsm(), BootError(), CUSTOM_getFsmTable(), FSM_addTable(), FSM_init(), K_CUSTOM_FSM_TABLE_SIZE, and K_SPP_OK.

Referenced by APP_initFsm(), and app_main().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ APP_fsmLoop()

void APP_fsmLoop ( void )

Main loop for the FSM (executes the state machine indefinitely).

Definition at line 67 of file app.c.

References APP_fsmLoop(), and FSM_tick().

Referenced by APP_fsmLoop(), and app_main().

Here is the call graph for this function:
Here is the caller graph for this function: