<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic The difference between INT_SYS_DisableIRQGlobal and taskENTER_CRITICAL in S32K</title>
    <link>https://community.nxp.com/t5/S32K/The-difference-between-INT-SYS-DisableIRQGlobal-and-taskENTER/m-p/1094840#M8003</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi experts,&lt;/P&gt;&lt;P&gt;I noticed the SDK supply two function: INT_SYS_DisableIRQGlobal and taskENTER_CRITICAL. They all disable interrupt. What is the difference? &lt;BR /&gt;And also the INT_SYS_EnableIRQGlobal and taskEXIT_CRITICAL?&lt;BR /&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 14 Apr 2020 08:11:12 GMT</pubDate>
    <dc:creator>赵子成</dc:creator>
    <dc:date>2020-04-14T08:11:12Z</dc:date>
    <item>
      <title>The difference between INT_SYS_DisableIRQGlobal and taskENTER_CRITICAL</title>
      <link>https://community.nxp.com/t5/S32K/The-difference-between-INT-SYS-DisableIRQGlobal-and-taskENTER/m-p/1094840#M8003</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi experts,&lt;/P&gt;&lt;P&gt;I noticed the SDK supply two function: INT_SYS_DisableIRQGlobal and taskENTER_CRITICAL. They all disable interrupt. What is the difference? &lt;BR /&gt;And also the INT_SYS_EnableIRQGlobal and taskEXIT_CRITICAL?&lt;BR /&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Apr 2020 08:11:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/The-difference-between-INT-SYS-DisableIRQGlobal-and-taskENTER/m-p/1094840#M8003</guid>
      <dc:creator>赵子成</dc:creator>
      <dc:date>2020-04-14T08:11:12Z</dc:date>
    </item>
    <item>
      <title>Re: The difference between INT_SYS_DisableIRQGlobal and taskENTER_CRITICAL</title>
      <link>https://community.nxp.com/t5/S32K/The-difference-between-INT-SYS-DisableIRQGlobal-and-taskENTER/m-p/1094841#M8004</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="background: white;"&gt;Hello,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INT_SYS_DisableIRQGlobal&amp;nbsp;/&amp;nbsp;INT_SYS_EnableIRQGlobal&amp;nbsp;functions are included in SDK and will disable/enable the global interrupt by calling the core API. These functions are also available without using FreeRTOS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The macros below are FreeRTOS macros.&lt;/P&gt;&lt;P&gt;taskENTER_CRITICAL&amp;nbsp;/taskEXIT_CRITICAL and taskDISABLE_INTERRUPTS/taskENABLE_INTERRUPTS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The big difference is:&lt;/P&gt;&lt;P&gt;"Calls to taskENTER_CRITICAL() and taskEXIT_CRITICAL() are designed to nest. Therefore, a critical section will only be exited when one call to taskEXIT_CRITICAL() has been executed for every preceding call to taskENTER_CRITICAL()."&lt;/P&gt;&lt;P&gt;For more detail see this link:&amp;nbsp;&lt;A class="link-titled" href="https://www.freertos.org/taskENTER_CRITICAL_taskEXIT_CRITICAL.html" title="https://www.freertos.org/taskENTER_CRITICAL_taskEXIT_CRITICAL.html"&gt;This page describes the FreeRTOS taskENTER_CRITICAL() and taskEXIT_CRITICAL() API macros&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, this question on FreeRTOS forum was discussed:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.freertos.org/FreeRTOS_Support_Forum_Archive/July_2010/freertos_difference_between_taskENTER_CRITICAL_and_tas_3778920.html" title="https://www.freertos.org/FreeRTOS_Support_Forum_Archive/July_2010/freertos_difference_between_taskENTER_CRITICAL_and_tas_3778920.html"&gt;difference between taskENTER_CRITICAL and tas - FreeRTOS&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it helps.&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Diana&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2020 07:16:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/The-difference-between-INT-SYS-DisableIRQGlobal-and-taskENTER/m-p/1094841#M8004</guid>
      <dc:creator>dianabatrlova</dc:creator>
      <dc:date>2020-04-15T07:16:26Z</dc:date>
    </item>
  </channel>
</rss>

