ether2ser 0.1.0
Ethernet <-> synchronous V.24 bridge firmware for RP2040 + W5500
Loading...
Searching...
No Matches
app_init.c File Reference
#include "app_context.h"
#include <stdbool.h>
#include <string.h>
#include "drivers/pio_tx_rx_driver.h"
#include "drivers/v24_config.h"
#include "drivers/w5500_driver.h"
#include "protocol/hdlc_common.h"
#include "protocol/hdlc_sync.h"
#include "system/common.h"
#include "system/persistent_config.h"
Include dependency graph for app_init.c:

Go to the source code of this file.

Functions

app_ctx_tget_app_ctx (void)
 Get access to the app context. This context is owned by main, app_init just takes hold of a pointer to it.
 
void init_app (app_ctx_t *app, const config_t *persistent_config)
 Initialize application context from persistent/default configuration.
 

Variables

app_ctx_tapp_ctx = NULL
 

Function Documentation

◆ get_app_ctx()

app_ctx_t * get_app_ctx ( void  )

Get access to the app context. This context is owned by main, app_init just takes hold of a pointer to it.

Returns
Pointer to the app context.

Definition at line 34 of file app_init.c.

References app_ctx.

◆ init_app()

Variable Documentation

◆ app_ctx

app_ctx_t* app_ctx = NULL

Definition at line 32 of file app_init.c.

Referenced by get_app_ctx(), and init_app().