<?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>Kinetis Software Development KitのトピックIs USB_DeviceCdcVcomCallback() inside an interrupt routine?</title>
    <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Is-USB-DeviceCdcVcomCallback-inside-an-interrupt-routine/m-p/485114#M4244</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The situation is that I'm am adapting the example in C:\KSDK2\boards\frdmk22f\usb_examples\usb_device_cdc_vcom to run with/under FreeRTOS. As it is written, the background routine polls for input. What I'd like to do is link the background routine to the callback() routine with a semaphore to indicate that data is ready to be read.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, inside the callback() routine, should I use the xSemaphhoreGiveFromISR() or the xSemaphhoreGive() routine?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 Apr 2016 20:51:55 GMT</pubDate>
    <dc:creator>davepfaltzgraff</dc:creator>
    <dc:date>2016-04-27T20:51:55Z</dc:date>
    <item>
      <title>Is USB_DeviceCdcVcomCallback() inside an interrupt routine?</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Is-USB-DeviceCdcVcomCallback-inside-an-interrupt-routine/m-p/485114#M4244</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The situation is that I'm am adapting the example in C:\KSDK2\boards\frdmk22f\usb_examples\usb_device_cdc_vcom to run with/under FreeRTOS. As it is written, the background routine polls for input. What I'd like to do is link the background routine to the callback() routine with a semaphore to indicate that data is ready to be read.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, inside the callback() routine, should I use the xSemaphhoreGiveFromISR() or the xSemaphhoreGive() routine?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Apr 2016 20:51:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Is-USB-DeviceCdcVcomCallback-inside-an-interrupt-routine/m-p/485114#M4244</guid>
      <dc:creator>davepfaltzgraff</dc:creator>
      <dc:date>2016-04-27T20:51:55Z</dc:date>
    </item>
    <item>
      <title>Re: Is USB_DeviceCdcVcomCallback() inside an interrupt routine?</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Is-USB-DeviceCdcVcomCallback-inside-an-interrupt-routine/m-p/485115#M4245</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi David, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is highly recommended to use&lt;STRONG&gt; xSemaphhoreGiveFromISR()&lt;/STRONG&gt; instead of xSemaphhoreGive().&lt;/P&gt;&lt;P&gt;If you use xSemaphhoreGive() you could get in trouble because of race conditions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps.&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Iva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 May 2016 11:40:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Is-USB-DeviceCdcVcomCallback-inside-an-interrupt-routine/m-p/485115#M4245</guid>
      <dc:creator>ivadorazinova</dc:creator>
      <dc:date>2016-05-09T11:40:50Z</dc:date>
    </item>
  </channel>
</rss>

