|
ether2ser 0.1.0
Ethernet <-> synchronous V.24 bridge firmware for RP2040 + W5500
|
#include "system/app_context.h"#include <stdbool.h>#include <stdio.h>#include "hardware/gpio.h"#include "hardware/pio.h"#include "hardware/sync.h"#include "hardware/watchdog.h"#include "pico/multicore.h"#include "pico/stdio.h"#include "pico/time.h"#include "drivers/gpio_driver.h"#include "drivers/pio_tx_rx_driver.h"#include "drivers/tx_queue.h"#include "drivers/w5500_driver.h"#include "platform/pinmap.h"#include "system/baudrate_monitor.h"#include "system/common.h"#include "system/error.h"#include "system/event_loop.h"#include "system/event_queue.h"#include "system/persistent_config.h"#include "version.h"
Go to the source code of this file.
Macros | |
| #define | USB_ENUMERATION_DELAY_MS 1500 |
| #define | GLOBAL_WATCHDOG_TIMEOUT_MS 5000 |
| #define | WATCHDOG_DISABLED_FOR_DEBUGGING 1 |
Functions | |
| static void | core1_entry (void) |
| int | main (void) |
|
static |
Definition at line 58 of file main.c.
References log_core1_drain().
Referenced by main().


| int main | ( | void | ) |
Definition at line 70 of file main.c.
References baudrate_estimator_init(), config_is_valid(), config_read(), app_ctx_t::config_valid, core1_entry(), dump_config(), E2S_OK, event_loop(), event_queue_init(), V24_CONFIG_T::external_clock, fatal_panic(), get_loglevel(), GLOBAL_WATCHDOG_TIMEOUT_MS, init_app(), init_pins(), app_ctx_t::local_config, LOG_LEVEL_DEBUG, LOG_PLAIN, app_ctx_t::need_prompt, V24_CONFIG_T::polarities, rx_clock_init(), V24_POLARITIES_T::rx_polarities, tx_clock_init(), app_ctx_t::tx_queue, app_ctx_t::tx_queue_buffer, tx_queue_init(), USB_ENUMERATION_DELAY_MS, app_ctx_t::v24_config, V24_DTR, V24_RXC, V24_TXC_DCE, w5500_debug_status(), w5500_driver_init(), w5500_open_udp_socket(), and WATCHDOG_DISABLED_FOR_DEBUGGING.
