|
|
@ -29,7 +29,7 @@ |
|
|
/*----------------------------------------------*
|
|
|
/*----------------------------------------------*
|
|
|
* 外部函数原型说明 * |
|
|
* 外部函数原型说明 * |
|
|
*----------------------------------------------*/ |
|
|
*----------------------------------------------*/ |
|
|
|
|
|
extern TComCtrl *g_ptUartCtrl; |
|
|
/*----------------------------------------------*
|
|
|
/*----------------------------------------------*
|
|
|
* 内部函数原型说明 * |
|
|
* 内部函数原型说明 * |
|
|
*----------------------------------------------*/ |
|
|
*----------------------------------------------*/ |
|
|
@ -127,7 +127,6 @@ int FDCAN2_Send(char *_pBuffer, uint32_t _iSize) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
#ifndef CONFIG_UART_IT_IDLEDMA |
|
|
#ifndef CONFIG_UART_IT_IDLEDMA |
|
|
extern TComCtrl *g_ptUartCtrl; |
|
|
|
|
|
void HAL_UART_RxCpltCallback(UART_HandleTypeDef *huart) |
|
|
void HAL_UART_RxCpltCallback(UART_HandleTypeDef *huart) |
|
|
{ |
|
|
{ |
|
|
if (huart->Instance == USART1) |
|
|
if (huart->Instance == USART1) |
|
|
@ -226,36 +225,6 @@ void Read_RS485_1(void *argument) |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
void SendAll_Task(void *argument) |
|
|
|
|
|
{ |
|
|
|
|
|
while(1) |
|
|
|
|
|
{ |
|
|
|
|
|
rd_ComSendProc(g_ptRS485_1); |
|
|
|
|
|
Rd_Delay(1); |
|
|
|
|
|
#ifdef USE_PRINT |
|
|
|
|
|
rd_ComSendProc(g_ptUartCtrl); |
|
|
|
|
|
#else |
|
|
|
|
|
rd_ComSendProc(g_ptRS485_2); |
|
|
|
|
|
#endif |
|
|
|
|
|
Rd_Delay(1); |
|
|
|
|
|
rd_ComSendProc(g_ptRS485_3); |
|
|
|
|
|
Rd_Delay(1); |
|
|
|
|
|
rd_ComSendProc(g_ptRS485_4); |
|
|
|
|
|
Rd_Delay(1); |
|
|
|
|
|
rd_ComSendProc(g_ptLTE_7S0); |
|
|
|
|
|
Rd_Delay(1); |
|
|
|
|
|
rd_ComSendProc(g_ptE28_SBUS); |
|
|
|
|
|
Rd_Delay(1); |
|
|
|
|
|
rd_ComSendProc(g_ptInterCall); |
|
|
|
|
|
Rd_Delay(1); |
|
|
|
|
|
rd_ComSendProc(g_ptFDCAN1); |
|
|
|
|
|
Rd_Delay(1); |
|
|
|
|
|
rd_ComSendProc(g_ptFDCAN2); |
|
|
|
|
|
Rd_Delay(1); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
extern void RBcore_Init(void); |
|
|
|
|
|
extern void MotorInit(void); |
|
|
extern void MotorInit(void); |
|
|
extern void MotorMgr_ParseResponse(uint8_t ucMotorID, const uint8_t *pucData, uint32_t uiLen); |
|
|
extern void MotorMgr_ParseResponse(uint8_t ucMotorID, const uint8_t *pucData, uint32_t uiLen); |
|
|
|
|
|
|
|
|
|