刚刚接触FreeRTOS,想问一下大家。
portYIELD_FROM_ISR()这个函数是在哪里定义的?
为什么我在FreeRTOS7.3.0中找不到这个函数据的定义呢?
在工程中引用了这个函数会提示未定义。
在网上看了个贴子,看别人用了这个函数,复制到我的工程中时,提示未定义
void USART1_IRQHandler(void) { static BaseType_t xHigherPriorityTaskWoken; if(USART_GetITStatus(USART1, USART_IT_RXNE) != RESET) { RxBuffer[RxCounter++] = USART_ReceiveData(USART1); if (RxCounter > 2 && RxBuffer[RxCounter-2] == '\r' && RxBuffer[RxCounter-1] == '\n') { // 在中断中发送信号量 xSemaphoreGiveFromISR( xSemaphore, &xHigherPriorityTaskWoken ); } } portYIELD_FROM_ISR( xHigherPriorityTaskWoken ); } |