@@ -666,18 +666,10 @@ __attribute__((section(".non_0_wait"))) uint8_t BLV_PC_WriteRegister_DataDeal(ui
/*<2A> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> */
if ( g_pc_test . link_port = = 0x00 )
{
# if (USE_CORE_TYPE == 1) //ʹ <EFBFBD> <EFBFBD> C1F<EFBFBD> <EFBFBD> <EFBFBD> İ <EFBFBD>
MCU485_SendString_0 ( back_data , temp_len ) ; //<2F> <> <EFBFBD> <EFBFBD> 0
# elif (USE_CORE_TYPE == 2) //ʹ <> <CAB9> C1<43> <31> <EFBFBD> İ<EFBFBD> -- DEBUG
UART0_SendString ( back_data , temp_len ) ; //<2F> <> <EFBFBD> <EFBFBD> 0
# endif
MCU485_SendString_0 ( back_data , temp_len ) ; //<2F> <> <EFBFBD> <EFBFBD> 0
} else if ( g_pc_test . link_port = = 0x01 )
{
# if (USE_CORE_TYPE == 1) //ʹ <> <CAB9> C1F<31> <46> <EFBFBD> İ<EFBFBD> -- DEBUG
UART1_SendString ( back_data , temp_len ) ; //<2F> <> <EFBFBD> <EFBFBD> 1
# elif (USE_CORE_TYPE == 2) //ʹ <> <CAB9> C1<43> <31> <EFBFBD> İ<EFBFBD>
MCU485_SendString_1 ( back_data , temp_len ) ; //<2F> <> <EFBFBD> <EFBFBD> 1
# endif
UART1_SendString ( back_data , temp_len ) ; //<2F> <> <EFBFBD> <EFBFBD> 1
} else if ( g_pc_test . link_port = = 0x02 )
{
MCU485_SendString_2 ( back_data , temp_len ) ; //<2F> <> <EFBFBD> <EFBFBD> 2
@@ -800,34 +792,13 @@ __attribute__((section(".non_0_wait"))) uint8_t BLV_PC_Testing_DataDeal(uint32_t
back_data [ PKT2_PARA ] = 0x01 ; //<2F> <> <EFBFBD> óɹ<C3B3>
back_data [ PKT2_CHKSUM ] = Data_CheckSum ( back_data , temp_len ) ;
// /*<2A> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> */
// if(g_pc_test.link_port == 0x00)
// {
// UART0_SendString(back_data,temp_len); //<2F> <> <EFBFBD> <EFBFBD> 0
// }else if(g_pc_test.link_port == 0x01)
// {
// MCU485_SendString_1(back_data,temp_len); //<2F> <> <EFBFBD> <EFBFBD> 1
// }else if(g_pc_test.link_port == 0x02)
// {
// MCU485_SendString_2(back_data,temp_len); //<2F> <> <EFBFBD> <EFBFBD> 2
// }else {
// return 0xF0;
// }
/*<2A> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> */
if ( g_pc_test . link_port = = 0x00 )
{
# if (USE_CORE_TYPE == 1) //ʹ <EFBFBD> <EFBFBD> C1F<EFBFBD> <EFBFBD> <EFBFBD> İ <EFBFBD>
MCU485_SendString_0 ( back_data , temp_len ) ; //<2F> <> <EFBFBD> <EFBFBD> 0
# elif (USE_CORE_TYPE == 2) //ʹ <> <CAB9> C1<43> <31> <EFBFBD> İ<EFBFBD> -- DEBUG
UART0_SendString ( back_data , temp_len ) ; //<2F> <> <EFBFBD> <EFBFBD> 0
# endif
MCU485_SendString_0 ( back_data , temp_len ) ; //<2F> <> <EFBFBD> <EFBFBD> 0
} else if ( g_pc_test . link_port = = 0x01 )
{
# if (USE_CORE_TYPE == 1) //ʹ <> <CAB9> C1F<31> <46> <EFBFBD> İ<EFBFBD> -- DEBUG
UART1_SendString ( back_data , temp_len ) ; //<2F> <> <EFBFBD> <EFBFBD> 1
# elif (USE_CORE_TYPE == 2) //ʹ <> <CAB9> C1<43> <31> <EFBFBD> İ<EFBFBD>
MCU485_SendString_1 ( back_data , temp_len ) ; //<2F> <> <EFBFBD> <EFBFBD> 1
# endif
UART1_SendString ( back_data , temp_len ) ; //<2F> <> <EFBFBD> <EFBFBD> 1
} else if ( g_pc_test . link_port = = 0x02 )
{
MCU485_SendString_2 ( back_data , temp_len ) ; //<2F> <> <EFBFBD> <EFBFBD> 2
@@ -885,18 +856,10 @@ __attribute__((section(".non_0_wait"))) uint8_t BLV_PC_Testing_DataDeal(uint32_t
/*<2A> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> */
if ( g_pc_test . link_port = = 0x00 )
{
# if (USE_CORE_TYPE == 1) //ʹ <EFBFBD> <EFBFBD> C1F<EFBFBD> <EFBFBD> <EFBFBD> İ <EFBFBD>
MCU485_SendString_0 ( back_data , temp_len ) ; //<2F> <> <EFBFBD> <EFBFBD> 0
# elif (USE_CORE_TYPE == 2) //ʹ <> <CAB9> C1<43> <31> <EFBFBD> İ<EFBFBD> -- DEBUG
UART0_SendString ( back_data , temp_len ) ; //<2F> <> <EFBFBD> <EFBFBD> 0
# endif
MCU485_SendString_0 ( back_data , temp_len ) ; //<2F> <> <EFBFBD> <EFBFBD> 0
} else if ( g_pc_test . link_port = = 0x01 )
{
# if (USE_CORE_TYPE == 1) //ʹ <> <CAB9> C1F<31> <46> <EFBFBD> İ<EFBFBD> -- DEBUG
UART1_SendString ( back_data , temp_len ) ; //<2F> <> <EFBFBD> <EFBFBD> 1
# elif (USE_CORE_TYPE == 2) //ʹ <> <CAB9> C1<43> <31> <EFBFBD> İ<EFBFBD>
MCU485_SendString_1 ( back_data , temp_len ) ; //<2F> <> <EFBFBD> <EFBFBD> 1
# endif
UART1_SendString ( back_data , temp_len ) ; //<2F> <> <EFBFBD> <EFBFBD> 1
} else if ( g_pc_test . link_port = = 0x02 )
{
MCU485_SendString_2 ( back_data , temp_len ) ; //<2F> <> <EFBFBD> <EFBFBD> 2
@@ -936,24 +899,15 @@ __attribute__((section(".non_0_wait"))) uint8_t BLV_PC_Testing_Data_Reported(uin
send_buff [ PKT2_PARA + 3 + i ] = SRAM_Read_Byte ( data_addr + i ) ;
}
send_buff [ PKT2_CHKSUM ] = Data_CheckSum ( send_buff , send_buff [ PKT2_LEN ] ) ;
/*<2A> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> */
if ( g_pc_test . link_port = = 0x00 )
{
# if (USE_CORE_TYPE == 1) //ʹ <EFBFBD> <EFBFBD> C1F<EFBFBD> <EFBFBD> <EFBFBD> İ <EFBFBD>
MCU485_SendString_0 ( send_buff , send_buff [ PKT2_LEN ] ) ; //<2F> <> <EFBFBD> <EFBFBD> 0
# elif (USE_CORE_TYPE == 2) //ʹ <> <CAB9> C1<43> <31> <EFBFBD> İ<EFBFBD> -- DEBUG
UART0_SendString ( send_buff , send_buff [ PKT2_LEN ] ) ; //<2F> <> <EFBFBD> <EFBFBD> 0
# endif
MCU485_SendString_0 ( send_buff , send_buff [ PKT2_LEN ] ) ; //<2F> <> <EFBFBD> <EFBFBD> 0
} else if ( g_pc_test . link_port = = 0x01 )
{
# if (USE_CORE_TYPE == 1) //ʹ <EFBFBD> <EFBFBD> C1F<EFBFBD> <EFBFBD> <EFBFBD> İ<EFBFBD> -- DEBUG
UART1_SendString ( send_buff , send_buff [ PKT2_LEN ] ) ; //<2F> <> <EFBFBD> <EFBFBD> 1
# elif (USE_CORE_TYPE == 2) //ʹ <> <CAB9> C1<43> <31> <EFBFBD> İ<EFBFBD>
MCU485_SendString_1 ( send_buff , send_buff [ PKT2_LEN ] ) ; //<2F> <> <EFBFBD> <EFBFBD> 1
# endif
UART1_SendString ( send_buff , send_buff [ PKT2_LEN ] ) ; //<2F> <> <EFBFBD> <EFBFBD> 1
} else if ( g_pc_test . link_port = = 0x02 )
{
MCU485_SendString_2 ( send_buff , send_buff [ PKT2_LEN ] ) ; //<2F> <> <EFBFBD> <EFBFBD> 2
@@ -989,24 +943,15 @@ __attribute__((section(".non_0_wait"))) uint8_t BLV_PC_Testing_Data_Reported2(ui
send_buff [ PKT2_PARA + 3 + i ] = data_buff [ i ] ;
}
send_buff [ PKT2_CHKSUM ] = Data_CheckSum ( send_buff , send_buff [ PKT2_LEN ] ) ;
/*<2A> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> */
if ( g_pc_test . link_port = = 0x00 )
{
# if (USE_CORE_TYPE == 1) //ʹ <EFBFBD> <EFBFBD> C1F<EFBFBD> <EFBFBD> <EFBFBD> İ <EFBFBD>
MCU485_SendString_0 ( send_buff , send_buff [ PKT2_LEN ] ) ; //<2F> <> <EFBFBD> <EFBFBD> 0
# elif (USE_CORE_TYPE == 2) //ʹ <> <CAB9> C1<43> <31> <EFBFBD> İ<EFBFBD> -- DEBUG
UART0_SendString ( send_buff , send_buff [ PKT2_LEN ] ) ; //<2F> <> <EFBFBD> <EFBFBD> 0
# endif
MCU485_SendString_0 ( send_buff , send_buff [ PKT2_LEN ] ) ; //<2F> <> <EFBFBD> <EFBFBD> 0
} else if ( g_pc_test . link_port = = 0x01 )
{
# if (USE_CORE_TYPE == 1) //ʹ <EFBFBD> <EFBFBD> C1F<EFBFBD> <EFBFBD> <EFBFBD> İ<EFBFBD> -- DEBUG
UART1_SendString ( send_buff , send_buff [ PKT2_LEN ] ) ; //<2F> <> <EFBFBD> <EFBFBD> 1
# elif (USE_CORE_TYPE == 2) //ʹ <> <CAB9> C1<43> <31> <EFBFBD> İ<EFBFBD>
MCU485_SendString_1 ( send_buff , send_buff [ PKT2_LEN ] ) ; //<2F> <> <EFBFBD> <EFBFBD> 1
# endif
UART1_SendString ( send_buff , send_buff [ PKT2_LEN ] ) ; //<2F> <> <EFBFBD> <EFBFBD> 1
} else if ( g_pc_test . link_port = = 0x02 )
{
MCU485_SendString_2 ( send_buff , send_buff [ PKT2_LEN ] ) ; //<2F> <> <EFBFBD> <EFBFBD> 2
@@ -1027,12 +972,8 @@ __attribute__((section(".non_0_wait"))) uint8_t BLV_PC_TEST_TOUR_DATASEND(void)
{
send_buff [ i ] = i ;
}
# if (USE_CORE_TYPE == 1) //ʹ <> <CAB9> C1F<31> <46> <EFBFBD> İ<EFBFBD>
MCU485_SendString_0 ( send_buff , 10 ) ; //<2F> <> <EFBFBD> <EFBFBD> 0
# elif (USE_CORE_TYPE == 2) //ʹ <> <CAB9> C1<43> <31> <EFBFBD> İ<EFBFBD>
MCU485_SendString_1 ( send_buff , 10 ) ; //<2F> <> <EFBFBD> <EFBFBD> 1
# endif //USE_CORE_TYPE == CORE_TYPE_C1F
MCU485_SendString_0 ( send_buff , 10 ) ; //<2F> <> <EFBFBD> <EFBFBD> 0
return 0 ;
}
@@ -1091,18 +1032,10 @@ __attribute__((section(".non_0_wait"))) uint8_t BLV_PC_TEST_TOUR_ACKSend(uint8_t
/*<2A> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> */
if ( g_pc_test . link_port = = 0x00 )
{
# if (USE_CORE_TYPE == 1) //ʹ <EFBFBD> <EFBFBD> C1F<EFBFBD> <EFBFBD> <EFBFBD> İ <EFBFBD>
MCU485_SendString_0 ( send_buff , send_buff [ PKT2_LEN ] ) ; //<2F> <> <EFBFBD> <EFBFBD> 0
# elif (USE_CORE_TYPE == 2) //ʹ <> <CAB9> C1<43> <31> <EFBFBD> İ<EFBFBD> -- DEBUG
UART0_SendString ( send_buff , send_buff [ PKT2_LEN ] ) ; //<2F> <> <EFBFBD> <EFBFBD> 0
# endif
MCU485_SendString_0 ( send_buff , send_buff [ PKT2_LEN ] ) ; //<2F> <> <EFBFBD> <EFBFBD> 0
} else if ( g_pc_test . link_port = = 0x01 )
{
# if (USE_CORE_TYPE == 1) //ʹ <EFBFBD> <EFBFBD> C1F<EFBFBD> <EFBFBD> <EFBFBD> İ<EFBFBD> -- DEBUG
UART1_SendString ( send_buff , send_buff [ PKT2_LEN ] ) ; //<2F> <> <EFBFBD> <EFBFBD> 1
# elif (USE_CORE_TYPE == 2) //ʹ <> <CAB9> C1<43> <31> <EFBFBD> İ<EFBFBD>
MCU485_SendString_1 ( send_buff , send_buff [ PKT2_LEN ] ) ; //<2F> <> <EFBFBD> <EFBFBD> 1
# endif
UART1_SendString ( send_buff , send_buff [ PKT2_LEN ] ) ; //<2F> <> <EFBFBD> <EFBFBD> 1
} else if ( g_pc_test . link_port = = 0x02 )
{
MCU485_SendString_2 ( send_buff , send_buff [ PKT2_LEN ] ) ; //<2F> <> <EFBFBD> <EFBFBD> 2
@@ -1165,18 +1098,10 @@ __attribute__((section(".non_0_wait"))) uint8_t BLV_PC_SET_MCU_Revision_Data_Rep
/*<2A> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> */
if ( g_pc_test . link_port = = 0x00 )
{
# if (USE_CORE_TYPE == 1) //ʹ <EFBFBD> <EFBFBD> C1F<EFBFBD> <EFBFBD> <EFBFBD> İ <EFBFBD>
MCU485_SendString_0 ( send_buff , send_buff [ PKT2_LEN ] ) ; //<2F> <> <EFBFBD> <EFBFBD> 0
# elif (USE_CORE_TYPE == 2) //ʹ <> <CAB9> C1<43> <31> <EFBFBD> İ<EFBFBD> -- DEBUG
UART0_SendString ( send_buff , send_buff [ PKT2_LEN ] ) ; //<2F> <> <EFBFBD> <EFBFBD> 0
# endif
MCU485_SendString_0 ( send_buff , send_buff [ PKT2_LEN ] ) ; //<2F> <> <EFBFBD> <EFBFBD> 0
} else if ( g_pc_test . link_port = = 0x01 )
{
# if (USE_CORE_TYPE == 1) //ʹ <EFBFBD> <EFBFBD> C1F<EFBFBD> <EFBFBD> <EFBFBD> İ<EFBFBD> -- DEBUG
UART1_SendString ( send_buff , send_buff [ PKT2_LEN ] ) ; //<2F> <> <EFBFBD> <EFBFBD> 1
# elif (USE_CORE_TYPE == 2) //ʹ <> <CAB9> C1<43> <31> <EFBFBD> İ<EFBFBD>
MCU485_SendString_1 ( send_buff , send_buff [ PKT2_LEN ] ) ; //<2F> <> <EFBFBD> <EFBFBD> 1
# endif
UART1_SendString ( send_buff , send_buff [ PKT2_LEN ] ) ; //<2F> <> <EFBFBD> <EFBFBD> 1
} else if ( g_pc_test . link_port = = 0x02 )
{
MCU485_SendString_2 ( send_buff , send_buff [ PKT2_LEN ] ) ; //<2F> <> <EFBFBD> <EFBFBD> 2
@@ -1218,18 +1143,10 @@ __attribute__((section(".non_0_wait"))) uint8_t BLV_PC_READ_MCU_Revision_Data_Re
/*<2A> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> */
if ( g_pc_test . link_port = = 0x00 )
{
# if (USE_CORE_TYPE == 1) //ʹ <EFBFBD> <EFBFBD> C1F<EFBFBD> <EFBFBD> <EFBFBD> İ <EFBFBD>
MCU485_SendString_0 ( send_buff , send_buff [ PKT2_LEN ] ) ; //<2F> <> <EFBFBD> <EFBFBD> 0
# elif (USE_CORE_TYPE == 2) //ʹ <> <CAB9> C1<43> <31> <EFBFBD> İ<EFBFBD> -- DEBUG
UART0_SendString ( send_buff , send_buff [ PKT2_LEN ] ) ; //<2F> <> <EFBFBD> <EFBFBD> 0
# endif
MCU485_SendString_0 ( send_buff , send_buff [ PKT2_LEN ] ) ; //<2F> <> <EFBFBD> <EFBFBD> 0
} else if ( g_pc_test . link_port = = 0x01 )
{
# if (USE_CORE_TYPE == 1) //ʹ <EFBFBD> <EFBFBD> C1F<EFBFBD> <EFBFBD> <EFBFBD> İ<EFBFBD> -- DEBUG
UART1_SendString ( send_buff , send_buff [ PKT2_LEN ] ) ; //<2F> <> <EFBFBD> <EFBFBD> 1
# elif (USE_CORE_TYPE == 2) //ʹ <> <CAB9> C1<43> <31> <EFBFBD> İ<EFBFBD>
MCU485_SendString_1 ( send_buff , send_buff [ PKT2_LEN ] ) ; //<2F> <> <EFBFBD> <EFBFBD> 1
# endif
UART1_SendString ( send_buff , send_buff [ PKT2_LEN ] ) ; //<2F> <> <EFBFBD> <EFBFBD> 1
} else if ( g_pc_test . link_port = = 0x02 )
{
MCU485_SendString_2 ( send_buff , send_buff [ PKT2_LEN ] ) ; //<2F> <> <EFBFBD> <EFBFBD> 2
@@ -1307,18 +1224,10 @@ __attribute__((section(".non_0_wait"))) uint8_t BLV_PC_READ_RCU_Data_Reported(ui
/*<2A> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> */
if ( g_pc_test . link_port = = 0x00 )
{
# if (USE_CORE_TYPE == 1) //ʹ <EFBFBD> <EFBFBD> C1F<EFBFBD> <EFBFBD> <EFBFBD> İ <EFBFBD>
MCU485_SendString_0 ( send_buff , send_buff [ PKT2_LEN ] ) ; //<2F> <> <EFBFBD> <EFBFBD> 0
# elif (USE_CORE_TYPE == 2) //ʹ <> <CAB9> C1<43> <31> <EFBFBD> İ<EFBFBD> -- DEBUG
UART0_SendString ( send_buff , send_buff [ PKT2_LEN ] ) ; //<2F> <> <EFBFBD> <EFBFBD> 0
# endif
MCU485_SendString_0 ( send_buff , send_buff [ PKT2_LEN ] ) ; //<2F> <> <EFBFBD> <EFBFBD> 0
} else if ( g_pc_test . link_port = = 0x01 )
{
# if (USE_CORE_TYPE == 1) //ʹ <EFBFBD> <EFBFBD> C1F<EFBFBD> <EFBFBD> <EFBFBD> İ<EFBFBD> -- DEBUG
UART1_SendString ( send_buff , send_buff [ PKT2_LEN ] ) ; //<2F> <> <EFBFBD> <EFBFBD> 1
# elif (USE_CORE_TYPE == 2) //ʹ <> <CAB9> C1<43> <31> <EFBFBD> İ<EFBFBD>
MCU485_SendString_1 ( send_buff , send_buff [ PKT2_LEN ] ) ; //<2F> <> <EFBFBD> <EFBFBD> 1
# endif
UART1_SendString ( send_buff , send_buff [ PKT2_LEN ] ) ; //<2F> <> <EFBFBD> <EFBFBD> 1
} else if ( g_pc_test . link_port = = 0x02 )
{
MCU485_SendString_2 ( send_buff , send_buff [ PKT2_LEN ] ) ; //<2F> <> <EFBFBD> <EFBFBD> 2
@@ -1403,18 +1312,10 @@ __attribute__((section(".non_0_wait"))) uint8_t BLV_PC_READ_RCU_VERSION_Reported
/*<2A> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> */
if ( g_pc_test . link_port = = 0x00 )
{
# if (USE_CORE_TYPE == 1) //ʹ <EFBFBD> <EFBFBD> C1F<EFBFBD> <EFBFBD> <EFBFBD> İ <EFBFBD>
MCU485_SendString_0 ( send_buff , send_buff [ PKT2_LEN ] ) ; //<2F> <> <EFBFBD> <EFBFBD> 0
# elif (USE_CORE_TYPE == 2) //ʹ <> <CAB9> C1<43> <31> <EFBFBD> İ<EFBFBD> -- DEBUG
UART0_SendString ( send_buff , send_buff [ PKT2_LEN ] ) ; //<2F> <> <EFBFBD> <EFBFBD> 0
# endif
MCU485_SendString_0 ( send_buff , send_buff [ PKT2_LEN ] ) ; //<2F> <> <EFBFBD> <EFBFBD> 0
} else if ( g_pc_test . link_port = = 0x01 )
{
# if (USE_CORE_TYPE == 1) //ʹ <EFBFBD> <EFBFBD> C1F<EFBFBD> <EFBFBD> <EFBFBD> İ<EFBFBD> -- DEBUG
UART1_SendString ( send_buff , send_buff [ PKT2_LEN ] ) ; //<2F> <> <EFBFBD> <EFBFBD> 1
# elif (USE_CORE_TYPE == 2) //ʹ <> <CAB9> C1<43> <31> <EFBFBD> İ<EFBFBD>
MCU485_SendString_1 ( send_buff , send_buff [ PKT2_LEN ] ) ; //<2F> <> <EFBFBD> <EFBFBD> 1
# endif
UART1_SendString ( send_buff , send_buff [ PKT2_LEN ] ) ; //<2F> <> <EFBFBD> <EFBFBD> 1
} else if ( g_pc_test . link_port = = 0x02 )
{
MCU485_SendString_2 ( send_buff , send_buff [ PKT2_LEN ] ) ; //<2F> <> <EFBFBD> <EFBFBD> 2
@@ -1525,18 +1426,10 @@ __attribute__((section(".non_0_wait"))) uint8_t BLV_PC_READ_Device_Data_Reported
/*<2A> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> */
if ( g_pc_test . link_port = = 0x00 )
{
# if (USE_CORE_TYPE == 1) //ʹ <EFBFBD> <EFBFBD> C1F<EFBFBD> <EFBFBD> <EFBFBD> İ <EFBFBD>
MCU485_SendString_0 ( send_buff , send_buff [ PKT2_LEN ] ) ; //<2F> <> <EFBFBD> <EFBFBD> 0
# elif (USE_CORE_TYPE == 2) //ʹ <> <CAB9> C1<43> <31> <EFBFBD> İ<EFBFBD> -- DEBUG
UART0_SendString ( send_buff , send_buff [ PKT2_LEN ] ) ; //<2F> <> <EFBFBD> <EFBFBD> 0
# endif
MCU485_SendString_0 ( send_buff , send_buff [ PKT2_LEN ] ) ; //<2F> <> <EFBFBD> <EFBFBD> 0
} else if ( g_pc_test . link_port = = 0x01 )
{
# if (USE_CORE_TYPE == 1) //ʹ <EFBFBD> <EFBFBD> C1F<EFBFBD> <EFBFBD> <EFBFBD> İ<EFBFBD> -- DEBUG
UART1_SendString ( send_buff , send_buff [ PKT2_LEN ] ) ; //<2F> <> <EFBFBD> <EFBFBD> 1
# elif (USE_CORE_TYPE == 2) //ʹ <> <CAB9> C1<43> <31> <EFBFBD> İ<EFBFBD>
MCU485_SendString_1 ( send_buff , send_buff [ PKT2_LEN ] ) ; //<2F> <> <EFBFBD> <EFBFBD> 1
# endif
UART1_SendString ( send_buff , send_buff [ PKT2_LEN ] ) ; //<2F> <> <EFBFBD> <EFBFBD> 1
} else if ( g_pc_test . link_port = = 0x02 )
{
MCU485_SendString_2 ( send_buff , send_buff [ PKT2_LEN ] ) ; //<2F> <> <EFBFBD> <EFBFBD> 2
@@ -1549,7 +1442,6 @@ __attribute__((section(".non_0_wait"))) uint8_t BLV_PC_READ_Device_Data_Reported
__attribute__ ( ( section ( " .non_0_wait " ) ) ) uint8_t SyncTime_DATA_Processing ( uint32_t data_addr , uint16_t data_len )
{
// uint32_t utc_tick = 0;
uint16_t temp_len = 0x09 ;
uint8_t temp = 0 ;
uint32_t device_listaddr = 0 ;
@@ -1558,20 +1450,13 @@ __attribute__((section(".non_0_wait"))) uint8_t SyncTime_DATA_Processing(uint32_
memset ( ack_buff , 0 , temp_len ) ;
set_time . year = SRAM_Read_Byte ( data_addr + PKT2_PARA ) ;
set_time . month = SRAM_Read_Byte ( data_addr + PKT2_PARA + 1 ) ;
set_time . day = SRAM_Read_Byte ( data_addr + PKT2_PARA + 2 ) ;
set_time . hour = SRAM_Read_Byte ( data_addr + PKT2_PARA + 3 ) ;
set_time . minute = SRAM_Read_Byte ( data_addr + PKT2_PARA + 4 ) ;
set_time . second = SRAM_Read_Byte ( data_addr + PKT2_PARA + 5 ) ;
set_time . week = SRAM_Read_Byte ( data_addr + PKT2_PARA + 6 ) ;
temp = RTC_WriteDate ( set_time ) ;
//<2F> ҵ<EFBFBD> CSIO <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD>
@@ -1583,11 +1468,6 @@ __attribute__((section(".non_0_wait"))) uint8_t SyncTime_DATA_Processing(uint32_
}
}
// /*UTCʱ<43> <CAB1> */
// utc_tick = RTC_Conversion_To_Unix(&set_time);
// Unix_Conversion_To_RTC(&set_time,utc_tick);
/*<2A> ظ<EFBFBD> <D8B8> <EFBFBD> <EFBFBD> ݴ<EFBFBD> <DDB4> <EFBFBD> */
ack_buff [ PKT2_ADD_FM ] = 0x00 ; //<2F> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ַ
ack_buff [ PKT2_TYPE ] = g_pc_test . DevSendSN ;
@@ -1603,35 +1483,12 @@ __attribute__((section(".non_0_wait"))) uint8_t SyncTime_DATA_Processing(uint32_
ack_buff [ PKT2_CHKSUM ] = Data_CheckSum ( ack_buff , temp_len ) ;
/*<2A> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> */
if ( g_pc_test . link_port = = 0x00 )
{
UART0 _SendString( ack_buff , temp_len ) ; //<2F> <> <EFBFBD> <EFBFBD> 0
MCU485 _SendString_0 ( ack_buff , temp_len ) ; //<2F> <> <EFBFBD> <EFBFBD> 0
} else if ( g_pc_test . link_port = = 0x01 )
{
MCU485 _SendString_1 ( ack_buff , temp_len ) ; //<2F> <> <EFBFBD> <EFBFBD> 1
} else if ( g_pc_test . link_port = = 0x02 )
{
MCU485_SendString_2 ( ack_buff , temp_len ) ; //<2F> <> <EFBFBD> <EFBFBD> 2
} else {
return 0xF0 ;
}
/*<2A> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> */
if ( g_pc_test . link_port = = 0x00 )
{
# if (USE_CORE_TYPE == 1) //ʹ <> <CAB9> C1F<31> <46> <EFBFBD> İ<EFBFBD>
MCU485_SendString_0 ( ack_buff , temp_len ) ; //<2F> <> <EFBFBD> <EFBFBD> 0
# elif (USE_CORE_TYPE == 2) //ʹ <> <CAB9> C1<43> <31> <EFBFBD> İ<EFBFBD> -- DEBUG
UART0_SendString ( ack_buff , temp_len ) ; //<2F> <> <EFBFBD> <EFBFBD> 0
# endif
} else if ( g_pc_test . link_port = = 0x01 )
{
# if (USE_CORE_TYPE == 1) //ʹ <> <CAB9> C1F<31> <46> <EFBFBD> İ<EFBFBD> -- DEBUG
UART1_SendString ( ack_buff , temp_len ) ; //<2F> <> <EFBFBD> <EFBFBD> 1
# elif (USE_CORE_TYPE == 2) //ʹ <> <CAB9> C1<43> <31> <EFBFBD> İ<EFBFBD>
MCU485_SendString_1 ( ack_buff , temp_len ) ; //<2F> <> <EFBFBD> <EFBFBD> 1
# endif
UART1 _SendString( ack_buff , temp_len ) ; //<2F> <> <EFBFBD> <EFBFBD> 1
} else if ( g_pc_test . link_port = = 0x02 )
{
MCU485_SendString_2 ( ack_buff , temp_len ) ; //<2F> <> <EFBFBD> <EFBFBD> 2
@@ -1671,18 +1528,10 @@ __attribute__((section(".non_0_wait"))) uint16_t QueryTime_Relay_DATA_Packaging(
/*<2A> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> */
if ( g_pc_test . link_port = = 0x00 )
{
# if (USE_CORE_TYPE == 1) //ʹ <EFBFBD> <EFBFBD> C1F<EFBFBD> <EFBFBD> <EFBFBD> İ <EFBFBD>
MCU485_SendString_0 ( ack_buff , temp_len ) ; //<2F> <> <EFBFBD> <EFBFBD> 0
# elif (USE_CORE_TYPE == 2) //ʹ <> <CAB9> C1<43> <31> <EFBFBD> İ<EFBFBD> -- DEBUG
UART0_SendString ( ack_buff , temp_len ) ; //<2F> <> <EFBFBD> <EFBFBD> 0
# endif
MCU485_SendString_0 ( ack_buff , temp_len ) ; //<2F> <> <EFBFBD> <EFBFBD> 0
} else if ( g_pc_test . link_port = = 0x01 )
{
# if (USE_CORE_TYPE == 1) //ʹ <> <CAB9> C1F<31> <46> <EFBFBD> İ<EFBFBD> -- DEBUG
UART1_SendString ( ack_buff , temp_len ) ; //<2F> <> <EFBFBD> <EFBFBD> 1
# elif (USE_CORE_TYPE == 2) //ʹ <> <CAB9> C1<43> <31> <EFBFBD> İ<EFBFBD>
MCU485_SendString_1 ( ack_buff , temp_len ) ; //<2F> <> <EFBFBD> <EFBFBD> 1
# endif
UART1_SendString ( ack_buff , temp_len ) ; //<2F> <> <EFBFBD> <EFBFBD> 1
} else if ( g_pc_test . link_port = = 0x02 )
{
MCU485_SendString_2 ( ack_buff , temp_len ) ; //<2F> <> <EFBFBD> <EFBFBD> 2
@@ -1715,18 +1564,10 @@ __attribute__((section(".non_0_wait"))) uint8_t TEST_GPIO_Relay_Fail(void)
/*<2A> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> */
if ( g_pc_test . link_port = = 0x00 )
{
# if (USE_CORE_TYPE == 1) //ʹ <EFBFBD> <EFBFBD> C1F<EFBFBD> <EFBFBD> <EFBFBD> İ <EFBFBD>
MCU485_SendString_0 ( ack_buff , temp_len ) ; //<2F> <> <EFBFBD> <EFBFBD> 0
# elif (USE_CORE_TYPE == 2) //ʹ <> <CAB9> C1<43> <31> <EFBFBD> İ<EFBFBD> -- DEBUG
UART0_SendString ( ack_buff , temp_len ) ; //<2F> <> <EFBFBD> <EFBFBD> 0
# endif
MCU485_SendString_0 ( ack_buff , temp_len ) ; //<2F> <> <EFBFBD> <EFBFBD> 0
} else if ( g_pc_test . link_port = = 0x01 )
{
# if (USE_CORE_TYPE == 1) //ʹ <EFBFBD> <EFBFBD> C1F<EFBFBD> <EFBFBD> <EFBFBD> İ<EFBFBD> -- DEBUG
UART1_SendString ( ack_buff , temp_len ) ; //<2F> <> <EFBFBD> <EFBFBD> 1
# elif (USE_CORE_TYPE == 2) //ʹ <> <CAB9> C1<43> <31> <EFBFBD> İ<EFBFBD>
MCU485_SendString_1 ( ack_buff , temp_len ) ; //<2F> <> <EFBFBD> <EFBFBD> 1
# endif
UART1_SendString ( ack_buff , temp_len ) ; //<2F> <> <EFBFBD> <EFBFBD> 1
} else if ( g_pc_test . link_port = = 0x02 )
{
MCU485_SendString_2 ( ack_buff , temp_len ) ; //<2F> <> <EFBFBD> <EFBFBD> 2