Update FreeRTOS configuration and enhance upper computer AI documentation
- Increased total heap size in FreeRTOSConfig.h from 10000 to 18000. - Modified stack sizes for various tasks in freertos.c to improve performance: - initTask: 128 to 256 - CarCtrlTask: 256 to 1024 - timerTask: 512 to 1024 - sr04Task: 128 to 512 - rc522Task: 128 to 512 - Added comprehensive upper computer AI guide for TCP client implementation, detailing protocol contracts, command sets, telemetry, architecture requirements, and error handling strategies. - Introduced a Python web upper computer AI guide with a recommended tech stack and project structure. - Created a Chinese version of the upper computer AI guide for local developers. - Updated STM32 project configuration to reflect new task stack sizes and heap settings. - Adjusted configuration files for various tools to ensure compatibility with the new project structure.
This commit is contained in:
@@ -21,8 +21,11 @@ HAL_StatusTypeDef ESP12F_TCP_SendMessage(const char *data) {
|
||||
return HAL_ERROR; // 数据为空
|
||||
}
|
||||
|
||||
// 启动 DMA 传输
|
||||
return HAL_UART_Transmit_DMA(&huart1, (uint8_t *)data, size);
|
||||
/*
|
||||
* 这里使用阻塞发送而不是 DMA:协议帧很短,且发送缓冲区通常来自局部变量。
|
||||
* 使用 DMA 会引入发送缓冲区生命周期问题,容易导致反馈丢失或数据不稳定。
|
||||
*/
|
||||
return HAL_UART_Transmit(&huart1, (uint8_t *)data, size, 50U);
|
||||
}
|
||||
|
||||
/* External DMA handle */
|
||||
|
||||
Reference in New Issue
Block a user