= {,};Р2520_Source_ShortAddr[2] = {,};Р2520_Source_IEEEAddr[8] = {0x12,0x34,0x56,0x7c,,,,};Р2520_Destination_PANID[2] = {,};Р2520_Destination_ShortAddr[2] = {,};Р2520_Destination_IEEEAddr[8] = {0x12,0x34,0x56,0x7c,,,,};Р//******************************************************************************Р//系统初始化Р//******************************************************************************Рvoid InitSys()Р{Р P1DIR |= BIT0; // ACLK set out to pinsР P1SEL |= BIT0;Р P3DIR |= BIT4; // SMCLK set out to pinsР P3SEL |= BIT4;Р while(BAKCTL & LOCKIO) // Unlock XT1 pins for operationР BAKCTL &= ~(LOCKIO);Р UCSCTL6 &= ~(XT1OFF); // XT1 OnР UCSCTL6 |= XCAP_3; // Internal load capР // Loop until XT1 fault flag is clearedР doР {Р UCSCTL7 &= ~(XT2OFFG + XT1LFOFFG + DCOFFG);Р // Clear XT2,XT1,DCO fault flags