ВходНаше всё Теги codebook 无线电组件 Поиск Опросы Закон Пятница
18 апреля
1510421 Топик полностью
Mty1 (07.04.2025 00:40, просмотров: 140) ответил klen на не верно.
Благодарю. По поводу yeld(); - нашел TaskYeld? это не оно? 

https://www.freertos.org/Documentation/02-Kernel/04-API-references/04-RTOS-kernel-control/00-Kernel-control#taskyield


taskYIELD
task. h
taskYIELD() is used to request a context switch to another task. However, if there are no other tasks at a higher or equal priority to the task that calls taskYIELD() then the RTOS scheduler will simply select the task that called taskYIELD() to run again.
If configUSE_PREEMPTION is set to 1 then the RTOS scheduler will always be running the highest priority task that is able to run, so calling taskYIELD() will never result in a switch to a higher priority task.