Modbus Vault v1.0
Loading...
Searching...
No Matches
system_init.c File Reference

Implementation of the system initialization. More...

#include "system_init.h"
#include "event_bus.h"
#include "logger_service.h"
#include "metrics.h"
#include "nvs_manager.h"
#include "router.h"
#include "slab_pool.h"
#include "system_config.h"
#include "telemetry_pipeline.h"
#include "telemetry_service.h"
#include "wifi_manager.h"
Include dependency graph for system_init.c:

Functions

esp_err_t system_init (void)
 Initialize the system.
 
void system_deinit (void)
 Deinitialize the system.
 

Detailed Description

Implementation of the system initialization.

Author
Abanoub Salah
  • Initialize components in a preset steps returning on success or first error
  • Deinitialize components in reverse order of initialization

Function Documentation

◆ system_deinit()

void system_deinit ( void  )

Deinitialize the system.

Deinitialize the system by calling all deinit functions for all previously initialized or not components of the system

Note
Assumes called deinit functions handles none-initialized state of the component
Here is the call graph for this function:
Here is the caller graph for this function:

◆ system_init()

esp_err_t system_init ( void  )

Initialize the system.

Initialize the system by following a preset order as defined inside the function state machine. If not succeeded calls deinit and returns error code

Returns
esp_err_t Initialize result
Return values
ESP_OKon Initialize success
anyAny error from down layers propagates upward
Here is the call graph for this function:
Here is the caller graph for this function: