ether2ser 0.1.0
Ethernet <-> synchronous V.24 bridge firmware for RP2040 + W5500
Loading...
Searching...
No Matches
app_context.h File Reference
#include <inttypes.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "pico/stdio.h"
#include "pico/time.h"
#include "drivers/pio_tx_rx_driver.h"
#include "drivers/tx_queue.h"
#include "drivers/w5500_driver.h"
#include "platform/pinmap.h"
#include "protocol/hdlc_common.h"
#include "protocol/hdlc_decoder.h"
#include "protocol/hdlc_sync.h"
#include "system/baudrate_monitor.h"
#include "system/cli_commands.h"
#include "system/cli_usb_cdc.h"
#include "system/common.h"
#include "system/event_queue.h"
#include "system/persistent_config.h"
Include dependency graph for app_context.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  payload_statistics_t
 Runtime pipeline statistics and counters. More...
 
struct  app_ctx_t
 Global application context shared across modules. More...
 

Functions

void init_app (app_ctx_t *app, const config_t *persistent_config)
 Initialize application context from persistent/default configuration.
 
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.
 

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()