w806如何關閉uart的讀寫中斷?
wm_uart.h中找到了相關的宏
#define __HAL_UART_DISABLE_IT(__HANDLE__, __INTERRUPT__) ((__HANDLE__)->Instance->INTM |= __INTERRUPT__)
沒有查到__INTERRUPT__應該如何寫?
wm_uart.c中查到了關閉寫的實現函數
static HAL_StatusTypeDef UART_EndTransmit_IT(UART_HandleTypeDef *huart)
{
if (huart->TxXferCount == 0)
{
__HAL_UART_DISABLE_IT(huart, UART_INTM_TL | UART_INTM_TEMPT);
huart->gState = HAL_UART_STATE_READY;
HAL_UART_TxCpltCallback(huart);
}
return HAL_OK;
}
具體中斷該怎麼寫,有沒有地方可以查到?