Remember, in FreeRTOS, higher numeric priority means higher task priority.
In FreeRTOS, priority numbers start at 0 (lowest) and go up to configMAX_PRIORITIES - 1 (highest). So priority 3 is higher than priority 1.
Check the allowed range of priorities based on configMAX_PRIORITIES.
FreeRTOS only allows priorities from 0 up to configMAX_PRIORITIES - 1. Trying to use a priority outside this range results in failure or priority being capped.
Think about scheduler state and preemption settings.
If the scheduler is not started or preemption is disabled, higher priority tasks will not preempt running lower priority tasks.
Consider how task priorities affect scheduling and preemption.
FreeRTOS assigns higher numeric values to higher priorities, so higher priority tasks preempt lower ones, helping to reduce priority inversion.
Remember how FreeRTOS counts priority levels starting from zero.
FreeRTOS priority levels start at 0 and go up to configMAX_PRIORITIES - 1, so with 7, priorities are 0 to 6, totaling 7 levels.