Switch ISR semaphore release to normal semaphore release
This commit is contained in:
+1
-3
@@ -85,9 +85,7 @@ void HAL_UART_TxCpltCallback(UART_HandleTypeDef *huart)
|
|||||||
{
|
{
|
||||||
if (huart->Instance == USART1)
|
if (huart->Instance == USART1)
|
||||||
{
|
{
|
||||||
BaseType_t xHigherPriorityTaskWoken = pdFALSE;
|
osSemaphoreRelease(xUARTDMASemaphore);
|
||||||
osSemaphoreReleaseFromISR(xUARTDMASemaphore, &xHigherPriorityTaskWoken);
|
|
||||||
portYIELD_FROM_ISR(xHigherPriorityTaskWoken);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/* END HAL_UART_TxCpltCallback */
|
/* END HAL_UART_TxCpltCallback */
|
||||||
|
|||||||
Reference in New Issue
Block a user