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;
}
具体中断该怎么写, 有没有地方可以查到?