本文整理汇总了C++中HAL_UART_IRQHandler函数的典型用法代码示例。如果您正苦于以下问题:C++ HAL_UART_IRQHandler函数的具体用法?C++ HAL_UART_IRQHandler怎么用?C++ HAL_UART_IRQHandler使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了HAL_UART_IRQHandler函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: UART4_IRQHandler
/**
* @brief This function handles UART4 global interrupt.
*/
void UART4_IRQHandler(void)
{
/* USER CODE BEGIN UART4_IRQn 0 */
/* USER CODE END UART4_IRQn 0 */
HAL_UART_IRQHandler(&huart4);
/* USER CODE BEGIN UART4_IRQn 1 */
/* USER CODE END UART4_IRQn 1 */
}
示例2: USART3_IRQHandler
/**
* @brief This function handles USART3 global interrupt.
*/
void USART3_IRQHandler(void)
{
/* USER CODE BEGIN USART3_IRQn 0 */
/* USER CODE END USART3_IRQn 0 */
HAL_UART_IRQHandler(&huart3);
/* USER CODE BEGIN USART3_IRQn 1 */
/* USER CODE END USART3_IRQn 1 */
}
示例3: UART4_IRQHandler
/**
* @brief This function handles UART4 global interrupt.
*/
void UART4_IRQHandler(void)
{
/* USER CODE BEGIN UART4_IRQn 0 */
SEGGER_SYSVIEW_RecordEnterISR();
HAL_GPS_UART_IRQHandler(&huart4);
/* USER CODE END UART4_IRQn 0 */
HAL_UART_IRQHandler(&huart4);
/* USER CODE BEGIN UART4_IRQn 1 */
SEGGER_SYSVIEW_RecordEnterISR();
/* USER CODE END UART4_IRQn 1 */
}
示例4: USART2_IRQHandler
/**
* @brief This function handles USART2 global interrupt.
*/
void USART2_IRQHandler(void)
{
/* USER CODE BEGIN USART2_IRQn 0 */
SEGGER_SYSVIEW_RecordEnterISR();
HAL_ADCS_UART_IRQHandler(&huart2);
/* USER CODE END USART2_IRQn 0 */
HAL_UART_IRQHandler(&huart2);
/* USER CODE BEGIN USART2_IRQn 1 */
SEGGER_SYSVIEW_RecordEnterISR();
/* USER CODE END USART2_IRQn 1 */
}
示例5: USART6_IRQHandler
/**
* @brief This function handles USART6 global interrupt.
*/
void USART6_IRQHandler(void)
{
/* USER CODE BEGIN USART6_IRQn 0 */
/* USER CODE END USART6_IRQn 0 */
HAL_NVIC_ClearPendingIRQ(USART6_IRQn);
HAL_UART_IRQHandler(&huart6);
/* USER CODE BEGIN USART6_IRQn 1 */
/* USER CODE END USART6_IRQn 1 */
}
示例6: USART1_IRQHandler
void USART1_IRQHandler(void)
{
portBASE_TYPE xHigherPriorityTaskWoken = pdFALSE;
HAL_UART_IRQHandler(&huart1);
/* If lHigherPriorityTaskWoken is now equal to pdTRUE, then a context
switch should be performed before the interrupt exists. That ensures the
unblocked (higher priority) task is returned to immediately. */
portEND_SWITCHING_ISR( xHigherPriorityTaskWoken );
}
示例7: UART4_IRQHandler
void UART4_IRQHandler(void)
{
HAL_UART_IRQHandler(&huart4);
HAL_UART_Receive_IT( &huart4 , string , 154);
if( (string[0] == 'm') && (string[152] == 'n') ){
HAL_GPIO_WritePin( GPIOD , GPIO_PIN_13 , GPIO_PIN_SET );
HAL_GPIO_WritePin( GPIOD , GPIO_PIN_14 , GPIO_PIN_RESET );
HAL_GPIO_WritePin( GPIOD , GPIO_PIN_12 , GPIO_PIN_RESET );
}else if( (string[0] == 'M') && (string[152] == 'N') ){
HAL_GPIO_WritePin( GPIOD , GPIO_PIN_14 , GPIO_PIN_SET );
HAL_GPIO_WritePin( GPIOD , GPIO_PIN_13 , GPIO_PIN_RESET );
HAL_GPIO_WritePin( GPIOD , GPIO_PIN_12 , GPIO_PIN_RESET );
}else{
HAL_GPIO_WritePin( GPIOD , GPIO_PIN_12 , GPIO_PIN_SET );
HAL_GPIO_WritePin( GPIOD , GPIO_PIN_13 , GPIO_PIN_RESET );
HAL_GPIO_WritePin( GPIOD , GPIO_PIN_14 , GPIO_PIN_RESET );
}
HAL_UART_IRQHandler(&huart4);
}
示例8: USART1_IRQHandler
/**
* @brief This function handles USART1 global interrupt.
*/
void USART1_IRQHandler(void)
{
trace_puts("Run into USART1_IRQHandler!");
/* USER CODE BEGIN USART1_IRQn 0 */
/* USER CODE END USART1_IRQn 0 */
HAL_UART_IRQHandler(&huart1);
/* USER CODE BEGIN USART1_IRQn 1 */
/* USER CODE END USART1_IRQn 1 */
}
示例9: USART3_8_IRQHandler
void USART3_8_IRQHandler(void)
{
if (__HAL_GET_PENDING_IT(HAL_ITLINE_USART3)!= RESET)
{
HAL_UART_IRQHandler(&UartHandle[USART3_INDEX]);
}
if (__HAL_GET_PENDING_IT(HAL_ITLINE_USART4)!= RESET)
{
HAL_UART_IRQHandler(&UartHandle[USART4_INDEX]);
}
if (__HAL_GET_PENDING_IT(HAL_ITLINE_USART5)!= RESET)
{
HAL_UART_IRQHandler(&UartHandle[USART5_INDEX]);
}
if (__HAL_GET_PENDING_IT(HAL_ITLINE_USART6)!= RESET)
{
HAL_UART_IRQHandler(&UartHandle[USART6_INDEX]);
}
if (__HAL_GET_PENDING_IT(HAL_ITLINE_USART7)!= RESET)
{
HAL_UART_IRQHandler(&UartHandle[USART7_INDEX]);
}
if (__HAL_GET_PENDING_IT(HAL_ITLINE_USART8)!= RESET)
{
HAL_UART_IRQHandler(&UartHandle[USART8_INDEX]);
}
}
示例10: USART3_8_IRQHandler
/**
* @brief This function handles UART3_8 interrupt request.
* @param None
* @retval None
* @Note This function is redefined in "main.h" and related to DMA
* used for USART data transmission
*/
void USART3_8_IRQHandler(void)
{
uint32_t pendingIT = SYSCFG->IT_LINE_SR[USART3_8_IRQn];
if((pendingIT & SYSCFG_ITLINE29_SR_USART3_GLB)!= RESET)
{
HAL_UART_IRQHandler(&UartHandle[USART3_INDEX]);
}
if((pendingIT & SYSCFG_ITLINE29_SR_USART4_GLB)!= RESET)
{
HAL_UART_IRQHandler(&UartHandle[USART4_INDEX]);
}
if((pendingIT & SYSCFG_ITLINE29_SR_USART5_GLB)!= RESET)
{
HAL_UART_IRQHandler(&UartHandle[USART5_INDEX]);
}
if((pendingIT & SYSCFG_ITLINE29_SR_USART6_GLB)!= RESET)
{
HAL_UART_IRQHandler(&UartHandle[USART6_INDEX]);
}
if((pendingIT & SYSCFG_ITLINE29_SR_USART7_GLB)!= RESET)
{
HAL_UART_IRQHandler(&UartHandle[USART7_INDEX]);
}
if((pendingIT & SYSCFG_ITLINE29_SR_USART8_GLB)!= RESET)
{
HAL_UART_IRQHandler(&UartHandle[USART8_INDEX]);
}
}
示例11: USART3_8_IRQHandler
/**
* @brief This function handles USART3 to USART8 global interrupts / USART3 wake-up interrupt through EXTI line 28.
*/
void USART3_8_IRQHandler(void)
{
portBASE_TYPE xHigherPriorityTaskWoken = pdFALSE;
#if (HO01R1 || HO02R0 || HO01R2 || HO02R1 || PO01R0 || PO02R0 || HO01R3 || HO02R2)
HAL_UART_IRQHandler(&huart3);
#endif
#if (HO01R1 || HO02R0 || HO01R2 || HO02R1 || PO01R0 || PO02R0 || HO01R3 || HO02R2)
HAL_UART_IRQHandler(&huart4);
#endif
#if (HO01R1 || HO02R0 || HO01R2 || HO02R1 || PO01R0 || PO02R0)
HAL_UART_IRQHandler(&huart5);
#endif
#if (HO01R2 || HO02R1)
HAL_UART_IRQHandler(&huart6);
#endif
#if (HO01R1 || HO02R0 || HO01R3 || HO02R2)
HAL_UART_IRQHandler(&huart7);
#endif
#if (HO01R1 || HO02R0 || PO01R0 || PO02R0 || HO01R3 || HO02R2)
HAL_UART_IRQHandler(&huart8);
#endif
/* If lHigherPriorityTaskWoken is now equal to pdTRUE, then a context
switch should be performed before the interrupt exists. That ensures the
unblocked (higher priority) task is returned to immediately. */
portEND_SWITCHING_ISR( xHigherPriorityTaskWoken );
}
示例12: USART1_IRQHandler
/**
* @brief This function handles USART1 global interrupt.
*/
void USART1_IRQHandler(void)
{
/* USER CODE BEGIN USART1_IRQn 0 */
/* USER CODE END USART1_IRQn 0 */
HAL_UART_IRQHandler(&huart1);
/* USER CODE BEGIN USART1_IRQn 1 */
HAL_GPIO_WritePin( GPIOG, GPIO_PIN_13, GPIO_PIN_SET);
for(uint32_t i=0;i<100000;i++){}
HAL_GPIO_WritePin( GPIOG, GPIO_PIN_13, GPIO_PIN_RESET);
// HAL_UART_Receive_IT(&huart1, receiveBuffer, 1);
/* USER CODE END USART1_IRQn 1 */
}
示例13: USART1_IRQHandler
/**
* @brief This function handles UART interrupt request.
* @param None
* @retval None
*/
void USART1_IRQHandler(void)
{
/* Check if it's a RX interrupt */
uint32_t tmp_flag = 0, tmp_it_source = 0;
tmp_flag = __HAL_UART_GET_FLAG(&UART_Handle, UART_FLAG_RXNE);
tmp_it_source = __HAL_UART_GET_IT_SOURCE(&UART_Handle, UART_IT_RXNE);
if ((tmp_flag != RESET) && (tmp_it_source != RESET))
{
UART1_DataReceivedHandler();
}
/* Otherwise call the HAL IRQ handler */
else
HAL_UART_IRQHandler(&UART_Handle);
}
示例14: USART2_IRQHandler
/**
* @brief This function handles USART2 global interrupt.
*/
void USART2_IRQHandler(void)
{
/* USER CODE BEGIN USART2_IRQn 0 */
#if 1
if(__HAL_UART_GET_FLAG(&huart2, UART_FLAG_IDLE) && __HAL_UART_GET_IT_SOURCE(&huart2, UART_IT_IDLE))
{
__HAL_UART_CLEAR_IDLEFLAG(&huart2);
ESP8266_RecvCallback(RECV_IDLE);
}
#else
/* USER CODE END USART2_IRQn 0 */
HAL_UART_IRQHandler(&huart2);
/* USER CODE BEGIN USART2_IRQn 1 */
#endif
/* USER CODE END USART2_IRQn 1 */
}
示例15: USART1_IRQHandler
/**
* @brief This function handles USART1 global interrupt / USART1 wake-up interrupt through EXTI line 25.
*/
void USART1_IRQHandler(void)
{
/* USER CODE BEGIN USART1_IRQn 0 */
if(__HAL_UART_GET_IT_SOURCE(&huart1, UART_IT_RXNE)!= RESET)
{
prvvUARTRxISR();
}
if(__HAL_UART_GET_IT_SOURCE(&huart1, UART_IT_TXE)!= RESET)
{
prvvUARTTxReadyISR();
}
/* USER CODE END USART1_IRQn 0 */
HAL_UART_IRQHandler(&huart1);
/* USER CODE BEGIN USART1_IRQn 1 */
/* USER CODE END USART1_IRQn 1 */
}