# taskENTER\_CRITICAL/taskEXIT\_CRITICAL & PIC32

**URL:** <https://forums.freertos.org/t/taskenter-critical-taskexit-critical-pic32/1733>\
**Category:** Kernel\
**Created:** [November 13, 2008, 4:53pm UTC](https://forums.freertos.org/t/taskenter-critical-taskexit-critical-pic32/1733 "2008-11-13T16:53:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://d2v6vdsk2p900z.cloudfront.net/original/1X/7fc8fdb729c645aab5b20282bbe34e57cb407be6.jpeg) [@system](https://forums.freertos.org/u/system)\
**Post date:** [November 13, 2008, 4:53pm UTC](https://forums.freertos.org/t/taskenter-critical-taskexit-critical-pic32/1733/1 "2008-11-13T16:53:04Z")

</div>

**[akhe](https://sourceforge.net/u/akhe/)** wrote on [Thursday, November 13, 2008](https://sourceforge.net/p/freertos/discussion/382005/thread/4e0344d8/#8b9a):

Is’t taskENTER\_CRITICAL/taskEXIT\_CRITICAL available in the PIC32 port? If not why?

Cheers  
/Ake

---

<div class="post-metadata">

**Author:** ![rtel](https://d3iykfbgfh8zhg.cloudfront.net/user_avatar/forums.freertos.org/rtel/32/31_2.png) [@rtel](https://forums.freertos.org/u/rtel)\
**Post date:** [November 13, 2008, 6:23pm UTC](https://forums.freertos.org/t/taskenter-critical-taskexit-critical-pic32/1733/2 "2008-11-13T18:23:57Z")

</div>

**[rtel](https://sourceforge.net/u/rtel/)** wrote on [Thursday, November 13, 2008](https://sourceforge.net/p/freertos/discussion/382005/thread/4e0344d8/#8b9a/1c45):

taskENTER\_CRITICAL() and taskEXIT\_CRITICAL() are in task.h, which is outside of the port layer, so they must be included.&nbsp; They normally just call their equivalents in the port layer in any case.

The macros are also called from all over the place in both the kernel code and demo application, so yes they are definitely included.&nbsp;

What is the problem you have having?

Regards.

---

<div class="post-metadata">

**Author:** ![system](https://d2v6vdsk2p900z.cloudfront.net/original/1X/7fc8fdb729c645aab5b20282bbe34e57cb407be6.jpeg) [@system](https://forums.freertos.org/u/system)\
**Post date:** [November 13, 2008, 7:24pm UTC](https://forums.freertos.org/t/taskenter-critical-taskexit-critical-pic32/1733/3 "2008-11-13T19:24:03Z")

</div>

**[akhe](https://sourceforge.net/u/akhe/)** wrote on [Thursday, November 13, 2008](https://sourceforge.net/p/freertos/discussion/382005/thread/4e0344d8/#8b9a/1c45/32a0):

Was just a typo in my code.&nbsp; Sorry for bothering you guys!

I will sit in a corner with a silly little hat on the rest of the night now,… 😉

Cheers  
/Ake
