Browse Source

fix:编译问题

alienwalker 4 years ago
parent
commit
a98147e4ec
1 changed files with 2 additions and 0 deletions
  1. 2 0
      bsp/air105/hal/core_uart.c

+ 2 - 0
bsp/air105/hal/core_uart.c

@@ -320,9 +320,11 @@ void Uart_DeInit(uint8_t UartID)
     {
     	PM_SetHardwareRunFlag(PM_HW_UART_0 + UartID, 0);
     }
+#ifdef __BUILD_OS__
 	OS_DeInitBuffer(&prvUart[UartID].TxBuf);
 	OS_DeInitBuffer(&prvUart[UartID].TxCacheBuf);
 	OS_DeInitBuffer(&prvUart[UartID].RxBuf);
+#endif
 }
 
 int Uart_DMATxInit(uint8_t UartID, uint8_t Stream, uint32_t Channel)