# Understanding priority levels of ISR and FreeRTOS APIs

**URL:** <https://forums.freertos.org/t/understanding-priority-levels-of-isr-and-freertos-apis/10453>\
**Category:** Kernel\
**Created:** [August 9, 2020, 9:04pm UTC](https://forums.freertos.org/t/understanding-priority-levels-of-isr-and-freertos-apis/10453 "2020-08-09T21:04:36Z")\
**Posts on this page:** 1\
**Showing post:** 16

<div class="post-metadata">

**Author:** ![aggarg](https://d3iykfbgfh8zhg.cloudfront.net/user_avatar/forums.freertos.org/aggarg/32/4245_2.png) [@aggarg](https://forums.freertos.org/u/aggarg)\
**Post date:** [August 10, 2020, 3:11pm UTC](https://forums.freertos.org/t/understanding-priority-levels-of-isr-and-freertos-apis/10453/16 "2020-08-10T15:11:36Z")

</div>

A pictorial representation, if that helps:

```auto

            Logical Numerical
           Priorities Priorities
           +--------+ +-------+ ^
           | | | | |
           | | | | |
           | | | | | Not masked by FreeRTOS kernel
           | Higher | | Lower | | ( FreeRTOS APIs can not be
           | | | | | called from these ISRs. )
           | | | | |
           | | | | v
           +--------+ +-------+ <---------------- configMAX_SYSCALL_INTERRUPT_PRIORITY
           | | | | ^
           | | | | |
           | | | | |
           | | | | |
           | | | | |
           | | | | |
           | | | | |
           | Lower | |Higher | | Masked by FreeRTOS Kernel
           | | | | | ( FreeRTOS APIs can be
           | | | | | called from these ISRs. ) 
           | | | | |
           | | | | |
           | | | | |
           | | | | |
           | | | | |
           | | | | |
           +--------+ +-------+ v

```

So in terms of NUMERICAL PRIORITIES, if `configMAX_SYSCALL_INTERRUPT_PRIORITY == 4`, then 4, 5, 6 and above are masked during critical sections.

Thanks.

---

_[View the full topic](https://forums.freertos.org/t/understanding-priority-levels-of-isr-and-freertos-apis/10453)._
