|
ether2ser 0.1.0
Ethernet <-> synchronous V.24 bridge firmware for RP2040 + W5500
|
#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"

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

