}/* De-Initialize the DMA channel associated to transmission process */if(huart->hdmatx !=0) {HAL_DMA_DeInit(huart->hdmatx); }/*##-4- Disable the NVIC for DMA ###*/HAL_NVIC_DisableIRQ(USARTx_DMA_TX_IRQn); HAL_NVIC_DisableIRQ(USARTx_DMA_RX_IRQn); } 开发者ID:pierreroth64,项...