Zigbee 如何通过W5500联入以太网

有谁用过CC2530的SPI,通过W5500联以太网?
P1_3 ------ RST
P1_4-------CS
p1_5 ------CLK
p1_6 ----MOSI
p1_7 -----MISO

WIZ_SPI_Init(){

CLKCONCMD = 0x80; while (CLKCONSTA != 0x80); // 32MHz
PERCFG |= 0x02; // PERCFG.U1CFG = 1
P1SEL |= 0xE0; // P1_7, P1_6, and P1_5 are peripherals

P1SEL &= ~0x10; // P1_4 is GPIO (SSN) SPI_CS
P1DIR |= 0x10; // SSN is set as output

// Set baud rate to max (system clock frequency / 8)
U1BAUD = 0x00; // BAUD_M = 0
U1GCR |= 0x11; // BAUD_E = 17

U1CSR &= ~0xA0; // SPI Master Mode

// Configure phase, polarity, and bit order
U1GCR &= ~0xC0; // CPOL = CPHA = 0
U1GCR |= 0x20; // ORDER = 1

P1SEL &= ~0x08; // P1_3 is GPIO (SSN)
P1DIR |= 0x08; // P1_3 is set as output
}

以下是主调用:
WIZ_SPI_Init();

Load_Net_Parameters(); //装载网络参数

W5500_Hardware_Reset(); //硬件复位W5500
W5500_Initialization(); //W5500初始货配置
W5500_Socket_Set(); //W5500端口初始化配置
W5500_Interrupt_Process(); //W5500中断处理程序框架

但是ping不通,有没有知问题在那里?

https://blog.csdn.net/u010935076/article/details/50569010