更新modbus,更新rtthread

This commit is contained in:
2023-12-15 01:08:04 +08:00
parent d14d2c5c95
commit a9be43d98e
6611 changed files with 2112557 additions and 262317 deletions

View File

@@ -62,14 +62,16 @@ void bsp_IDLEUART::callback_UART(void){
bsp_IDLEUART::bsp_IDLEUART(UART_HandleTypeDef *huart,TIM_HandleTypeDef *htim):bsp_PrintArt_STM32(huart){
bsp_IDLEUART::huart=huart;
bsp_IDLEUART::htim=htim;
len=0;
buff=(u8*)malloc(128);
bsp_IDLEUART::len=0;
buff=(u8*)bsp_malloc(128);
bsp_IDLEUART::lenmax=128;
buffhead=buff;}
//----------------------------------------------------------------------------------------------------
bsp_IDLEUART::bsp_IDLEUART(UART_HandleTypeDef *huart,TIM_HandleTypeDef *htim,u32 len):bsp_PrintArt_STM32(huart){
bsp_IDLEUART::huart=huart;
bsp_IDLEUART::htim=htim;
len=0;
buff=(u8*)malloc(len);
bsp_IDLEUART::len=0;
buff=(u8*)bsp_malloc(len);
bsp_IDLEUART::lenmax=len;
buffhead=buff;}
//////////////////////////////////////////////////////////////////////////////////////////////////////