Parcourir la source

蓝牙优化!仍存在串口接收错误问题,但应用层调用时序基本完善,换电这边应答只需300ms一次即可

CHENJIE-PC\QiXiang_CHENJIE il y a 3 ans
Parent
commit
cee4726e14

+ 1 - 1
Project_Settings/Debugger/S32K144_BLE_Debug_FLASH_PNE.launch

@@ -216,5 +216,5 @@
 </listAttribute>
 <stringAttribute key="org.eclipse.dsf.launch.MEMORY_BLOCKS" value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;memoryBlockExpressionList context=&quot;reserved-for-future-use&quot;/&gt;&#13;&#10;"/>
 <stringAttribute key="process_factory_id" value="org.eclipse.cdt.dsf.gdb.GdbProcessFactory"/>
-<stringAttribute key="saved_expressions&lt;seperator&gt;Unknown" value="0x1fff9a1c,0x1fffc0008,0x1fffc008,0x1fffc048,0x1fffb880,0x1fff9f29,0x1fff9e85,0x1fff81c8,0x1fff8290"/>
+<stringAttribute key="saved_expressions&lt;seperator&gt;Unknown" value="0x1fff9a1c,0x1fffc0008,0x1fffc008,0x1fffc048,0x1fffb880,0x1fff9f29,0x1fff9e85,0x1fff81c8,0x1fff8290,0x1fff99fc,0x1fffbfd8,0x1fffa2a4"/>
 </launchConfiguration>

+ 1 - 2
src/hal_adapter.c

@@ -165,7 +165,7 @@ UINT8 UartTramsit(UINT8 *pSend, UINT32 sendLen, UINT8 *pRead, UINT32 readLen, UI
 
      if ((UART_STATUS_NO_ERROR != Uart_TransmitStatus))
      {
-         Uart_Abort(transChannel, UART_SEND);
+         //Uart_Abort(transChannel, UART_SEND);
          retVal = E_NOT_OK;
      }
      else
@@ -215,7 +215,6 @@ UINT8 UartTramsit(UINT8 *pSend, UINT32 sendLen, UINT8 *pRead, UINT32 readLen, UI
      {
          Uart_ReceiveStatus = Uart_GetStatus(recvChannel, &T_bytesRemaining, UART_RECEIVE);
          vTaskDelay(pdMS_TO_TICKS(1));
-
      } while ((UART_STATUS_NO_ERROR != Uart_ReceiveStatus)&& 0<T_timeout--);
      if ((UART_STATUS_NO_ERROR != Uart_ReceiveStatus))
      {