<?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>S32KのトピックRe: OSIF_MutexLock in ISR</title>
    <link>https://community.nxp.com/t5/S32K/OSIF-MutexLock-in-ISR/m-p/1026428#M6387</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This functions can't be used&amp;nbsp;in an ISR, you need to use the functions&amp;nbsp;xSemaphoreGiveFromISR to release the semaphore, also I will suggest to not use lock functions in an ISR since the IRQ needs to be the shortest possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The usual approach is to use a semaphore/mutex take in the task to lock a peripheral or coordinate the tasks and use the give in the ISR to release the peripheral.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Alexis Andalon&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 01 Apr 2020 16:19:22 GMT</pubDate>
    <dc:creator>Alexis_A</dc:creator>
    <dc:date>2020-04-01T16:19:22Z</dc:date>
    <item>
      <title>OSIF_MutexLock in ISR</title>
      <link>https://community.nxp.com/t5/S32K/OSIF-MutexLock-in-ISR/m-p/1026427#M6386</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, everyone,&lt;/P&gt;&lt;P&gt;I use the SDK 3.0.0, Can I use the API&amp;nbsp;OSIF_MutexLock and&amp;nbsp;OSIF_MutexUnlock in ISR.&lt;/P&gt;&lt;P&gt;If not, how can I lock and unlock the shared resource in ISR?&lt;/P&gt;&lt;P&gt;Thanks very much.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Mar 2020 05:48:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/OSIF-MutexLock-in-ISR/m-p/1026427#M6386</guid>
      <dc:creator>赵子成</dc:creator>
      <dc:date>2020-03-27T05:48:10Z</dc:date>
    </item>
    <item>
      <title>Re: OSIF_MutexLock in ISR</title>
      <link>https://community.nxp.com/t5/S32K/OSIF-MutexLock-in-ISR/m-p/1026428#M6387</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This functions can't be used&amp;nbsp;in an ISR, you need to use the functions&amp;nbsp;xSemaphoreGiveFromISR to release the semaphore, also I will suggest to not use lock functions in an ISR since the IRQ needs to be the shortest possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The usual approach is to use a semaphore/mutex take in the task to lock a peripheral or coordinate the tasks and use the give in the ISR to release the peripheral.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Alexis Andalon&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Apr 2020 16:19:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/OSIF-MutexLock-in-ISR/m-p/1026428#M6387</guid>
      <dc:creator>Alexis_A</dc:creator>
      <dc:date>2020-04-01T16:19:22Z</dc:date>
    </item>
  </channel>
</rss>

