From b31179acbed72f60fb24fa24d54727993b8ea2dc Mon Sep 17 00:00:00 2001 From: feelfree69 Date: Mon, 13 Apr 2026 19:14:24 +0200 Subject: [PATCH] move extern declaration for port_names to trl837x_common.h --- cmd_parser.h | 1 - httpd/page_impl.c | 1 - rtl837x_common.h | 2 ++ 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd_parser.h b/cmd_parser.h index f35b2e8..dff8cf8 100644 --- a/cmd_parser.h +++ b/cmd_parser.h @@ -7,7 +7,6 @@ extern __xdata uint8_t cmd_buffer[CMD_BUF_SIZE]; extern __xdata uint8_t cmd_available; -extern __xdata char port_names[9][PORT_NAME_SIZE]; uint8_t cmd_tokenize(void) __banked; void cmd_parser(void) __banked; diff --git a/httpd/page_impl.c b/httpd/page_impl.c index b259221..270ddb3 100644 --- a/httpd/page_impl.c +++ b/httpd/page_impl.c @@ -13,7 +13,6 @@ #include "version.h" #include "machine.h" #include "page_impl.h" -#include "cmd_parser.h" // #define DEBUG #include "debug.h" diff --git a/rtl837x_common.h b/rtl837x_common.h index be03429..293c755 100644 --- a/rtl837x_common.h +++ b/rtl837x_common.h @@ -98,6 +98,8 @@ struct flash_region_t { uint16_t len; }; +extern __xdata char port_names[9][PORT_NAME_SIZE]; + extern __xdata uint8_t uip_buf[UIP_CONF_BUFFER_SIZE+2]; extern __xdata struct uip_eth_addr uip_ethaddr;