|
ether2ser 0.1.0
Ethernet <-> synchronous V.24 bridge firmware for RP2040 + W5500
|
#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"
Go to the source code of this file.
Functions | |
| 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. | |
| void | init_app (app_ctx_t *app, const config_t *persistent_config) |
| Initialize application context from persistent/default configuration. | |
Variables | |
| app_ctx_t * | app_ctx = NULL |
| 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.
Definition at line 34 of file app_init.c.
References app_ctx.
Initialize application context from persistent/default configuration.
| app | Application context to initialize. |
| persistent_config | Source configuration (used when marked valid). |
Definition at line 39 of file app_init.c.
References app_ctx_t::accumulator, app_ctx, V24_CONFIG_T::baudrate, NETWORK_CONFIG_T::broadcast_address, app_ctx_t::config_valid, DEFAULT_IP_ADDR, DEFAULT_UDP_PORT, app_ctx_t::destination_config, V24_CONFIG_T::external_clock, HDLC_FLAG_BYTE, hdlc_sync_acc_init(), init_v24_config(), UDP_CONFIG_T::ip_address, UDP_FRAME_T::length, app_ctx_t::local_config, config_t::local_config, config_t::log_level, LOG_LEVEL_DEBUG, app_ctx_t::need_prompt, app_ctx_t::net_config, config_t::net_config, UDP_FRAME_T::payload, HDLC_FRAME_T::payload, app_ctx_t::persistent_config, UDP_CONFIG_T::port, app_ctx_t::reconstructed_frame, app_ctx_t::reconstructed_frame_buffer, reinit_v24_config(), config_t::remote_config, app_ctx_t::rx_frame_buffer, app_ctx_t::rx_frame_buffer_data, set_loglevel(), app_ctx_t::stats, app_ctx_t::tx_frame_buffer, app_ctx_t::tx_frame_buffer_data, V24_BAUD_9600, app_ctx_t::v24_config, config_t::v24_config, w5500_set_network(), and w5500_set_network_defaults().
Referenced by main().


| app_ctx_t* app_ctx = NULL |
Definition at line 32 of file app_init.c.
Referenced by get_app_ctx(), and init_app().