#ifndef APP_RUNTIME_H #define APP_RUNTIME_H #include #include "FreeRTOS.h" #include "queue.h" #include "semphr.h" #include "task.h" #include "config.h" #ifdef __cplusplus extern "C" { #endif extern QueueHandle_t xTcpRxQueue; extern QueueHandle_t xConfigQueue; extern QueueHandle_t xLinkTxQueues[CONFIG_LINK_COUNT]; extern SemaphoreHandle_t xNetSemaphore; extern TaskHandle_t xUartRxTaskHandle; extern TaskHandle_t xConfigTaskHandle; extern volatile BaseType_t g_netif_ready; extern volatile uint32_t g_netif_phase; extern volatile int32_t g_netif_add_err; extern volatile int32_t g_netif_set_default_err; extern volatile int32_t g_netif_set_link_down_err; extern volatile int32_t g_netif_set_up_err; extern volatile int32_t g_netif_init_ok; extern volatile uint32_t g_eth_poll_count; extern volatile uint32_t g_eth_isr_pr_count; extern volatile uint32_t g_eth_rx_count; extern volatile uint32_t g_eth_rx_drop_count; extern volatile uint32_t g_eth_tx_count; extern volatile uint32_t g_eth_link_up_count; extern volatile uint32_t g_eth_link_down_count; extern volatile uint32_t g_eth_last_isr; extern volatile uint32_t g_eth_last_nsr; extern volatile uint32_t g_eth_last_mrcmdx; extern volatile uint32_t g_eth_last_mrcmdx1; extern volatile uint32_t g_eth_last_mrrl; extern volatile uint32_t g_eth_last_mrrh; extern volatile uint32_t g_eth_last_bcastcr; extern volatile uint32_t g_eth_last_mar7; extern volatile uint32_t g_eth_last_nsr_rxrdy; extern volatile uint32_t g_eth_last_rx_ready; extern volatile uint32_t g_eth_last_rx_status; extern volatile uint32_t g_eth_last_rx_len; extern volatile uint32_t g_eth_last_rx_head0; extern volatile uint32_t g_eth_last_rx_head1; extern volatile uint32_t g_eth_last_rx_head2; extern volatile uint32_t g_eth_last_rx_head3; extern volatile uint32_t g_eth_last_rx_fail_stage; extern volatile uint32_t g_eth_rx_gate_ok_count; extern volatile uint32_t g_eth_rx_fallback_ok_count; extern volatile uint32_t g_eth_rx_fallback_reject_count; extern volatile uint32_t g_eth_probe_attempted; extern volatile uint32_t g_eth_probe_head0; extern volatile uint32_t g_eth_probe_head1; extern volatile uint32_t g_eth_probe_head2; extern volatile uint32_t g_eth_probe_head3; extern volatile uint32_t g_eth_probe_rx_status; extern volatile uint32_t g_eth_probe_rx_len; extern volatile uint8_t g_eth_probe_dump[32]; extern volatile uint32_t g_eth_probe_drop_count; extern volatile uint32_t g_eth_reprobe_head0; extern volatile uint32_t g_eth_reprobe_head1; extern volatile uint32_t g_eth_reprobe_head2; extern volatile uint32_t g_eth_reprobe_head3; extern volatile uint32_t g_eth_reprobe_rx_status; extern volatile uint32_t g_eth_reprobe_rx_len; extern volatile uint32_t g_eth_input_ok_count; extern volatile uint32_t g_eth_input_err_count; extern volatile int32_t g_eth_last_input_err; extern volatile uint32_t g_eth_last_frame_len; extern volatile uint8_t g_eth_last_frame_head[14]; extern volatile uint32_t g_eth_tx_probe_count; extern volatile uint32_t g_eth_last_tx_len; extern volatile uint8_t g_eth_last_tx_head[14]; extern volatile uint32_t g_eth_last_tcr_after; extern volatile uint32_t g_eth_last_nsr_after; extern volatile uint32_t g_eth_last_tsra; extern volatile uint32_t g_eth_last_tsrb; extern volatile uint32_t g_eth_last_txpll_rb; extern volatile uint32_t g_eth_last_txplh_rb; extern volatile uint32_t g_eth_arp_rx_count; extern volatile uint32_t g_eth_arp_tx_count; extern volatile uint32_t g_eth_arp_rx_op; extern volatile uint32_t g_eth_arp_tx_op; extern volatile uint8_t g_eth_local_ip[4]; extern volatile uint8_t g_eth_local_mac[6]; extern volatile uint8_t g_eth_arp_rx_sha[6]; extern volatile uint8_t g_eth_arp_rx_spa[4]; extern volatile uint8_t g_eth_arp_rx_tha[6]; extern volatile uint8_t g_eth_arp_rx_tpa[4]; extern volatile uint8_t g_eth_arp_tx_sha[6]; extern volatile uint8_t g_eth_arp_tx_spa[4]; extern volatile uint8_t g_eth_arp_tx_tha[6]; extern volatile uint8_t g_eth_arp_tx_tpa[4]; extern volatile uint32_t g_eth_lwip_arp_seen_count; extern volatile uint32_t g_eth_lwip_arp_opcode; extern volatile uint32_t g_eth_lwip_arp_for_us; extern volatile uint32_t g_eth_lwip_arp_from_us; extern volatile uint8_t g_eth_lwip_arp_sip[4]; extern volatile uint8_t g_eth_lwip_arp_dip[4]; extern volatile uint32_t g_eth_lwip_eth_seen_count; extern volatile uint32_t g_eth_lwip_eth_last_type; extern volatile uint32_t g_eth_lwip_eth_last_len; extern volatile uint32_t g_eth_lwip_eth_arp_case_count; #ifdef __cplusplus } #endif #endif