From 96977b5d88b2906dc23413733426123249ed21bb Mon Sep 17 00:00:00 2001 From: logicog Date: Sat, 6 Dec 2025 17:39:52 +0100 Subject: [PATCH] Move rtl_tag structure definition to common inlude --- rtl837x_common.h | 9 +++++++++ rtl837x_stp.c | 10 ---------- 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/rtl837x_common.h b/rtl837x_common.h index 038849a..eb7e99e 100644 --- a/rtl837x_common.h +++ b/rtl837x_common.h @@ -70,6 +70,15 @@ struct flash_region_t { extern __xdata uint8_t uip_buf[UIP_CONF_BUFFER_SIZE+2]; +// 8899 04 0000 20 0004 +struct rtl_tag { + uint16_t tag; + uint8_t version; + uint16_t dummy; + uint8_t flag; + uint16_t pmask; +}; + // Headers for calls in the common code area (HOME/BANK0) void print_string(__code char *p); diff --git a/rtl837x_stp.c b/rtl837x_stp.c index 54207e4..3aca109 100644 --- a/rtl837x_stp.c +++ b/rtl837x_stp.c @@ -35,16 +35,6 @@ __xdata uint16_t port_timers[10]; __xdata uint16_t port_hello[10]; -// 8899 04 0000 20 0004 -struct rtl_tag { - uint16_t tag; - uint8_t version; - uint16_t dummy; - uint8_t flag; - uint16_t pmask; -}; - - struct stp_pkt { uint8_t stp_addr[6]; uint8_t src_addr[6];