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];