<?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>LPC Microcontrollers中的主题 Re: User Manual UM10430 - ROM API description errors</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/User-Manual-UM10430-ROM-API-description-errors/m-p/525041#M7677</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Daniel Widyanto on Tue Oct 02 20:32:01 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi fcarlo,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;Thanks for your feedback. If you need more info to develop your own USB class handler based on USBD ROM, you can check USBD ROM online documentation at &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.lpcware.com%2Fcontent%2Fnxpfile%2Fusb-device-rom-stack-api" rel="nofollow" target="_blank"&gt;http://www.lpcware.com/content/nxpfile/usb-device-rom-stack-api&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;FYI, this page is very useful to init and getting started with your custom USB class handler based on USBD ROM: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fdocs.lpcware.com%2Fusbromlib%2Fv1.0%2F_page__developing_with_u_s_b_d.html" rel="nofollow" target="_blank"&gt;http://docs.lpcware.com/usbromlib/v1.0/_page__developing_with_u_s_b_d.html&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;For RegisterEpHandler, yes it's suppose to register interrupt handler for any of the physical endpoints (not just EP0). I'll notify the documentation people to fix it. For USBD_API_INIT_PARAM definition, you can take a look at &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fdocs.lpcware.com%2Fusbromlib%2Fv1.0%2Fmw__usbd__core_8h_source.html" rel="nofollow" target="_blank"&gt;http://docs.lpcware.com/usbromlib/v1.0/mw__usbd__core_8h_source.html&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm not sure where to download these files yet, but I'll posted it here once I got some info&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 18:13:59 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T18:13:59Z</dc:date>
    <item>
      <title>User Manual UM10430 - ROM API description errors</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/User-Manual-UM10430-ROM-API-description-errors/m-p/525040#M7676</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by fcarlo on Thu Sep 27 00:51:01 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I would like to ask if there could be some errors in the LPC185x User Manual (Rev. 1.6):&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;----------&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;#1 pag.613&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;----------&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;RegisterEpHandler&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Function to register interrupt/event handler for the requested endpoint with USB device stack.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The application layer uses this function to register the custom class's EP0 handler. The stack calls&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;all the registered class handlers on any EP0&amp;nbsp; event before going through default handling of the&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;event. This gives the class handlers to implement class specific request handlers and also to&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;override the default stack handling for a particular event targeted to the interface. Check&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;USB_EP_HANDLER_T for more details on how the callback function should be implemented.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;hUsbHandle to the USB device stack.ep_indexClass specific EP0 handler function. pfnClass&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;specific EP0 handler function. dataPointer to the data which will be passed when callback function&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;is called by the stack.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Parameters:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1. hUsb = Handle to the USB device stack.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. ep_index = Class specific EP0 handler function.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3. pfn = Class specific EP0 handler function.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;4. data = Pointer to the data which will be passed when callback function is called by the stack.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As far I can understand, there is something wrong in the description.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I think that the function above should be used to register the interrupt handler of ANY endpoint (passing ep_index parameter), not only for the EP0!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;----------&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;#2 pag.600&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;----------&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;USBD_API_INIT_PARAM&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;pad0 uint8_tuint8_t USBD_API_INIT_PARAM::pad0[3][3]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Looking at the "usbd_core.h" found in the CMSIS library, the above structure is not defined in the typedef struct USBD_API_INIT_PARAM { ... }&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there someone that could confirm if there could be something wrong or if I am missing something?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:13:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/User-Manual-UM10430-ROM-API-description-errors/m-p/525040#M7676</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:13:58Z</dc:date>
    </item>
    <item>
      <title>Re: User Manual UM10430 - ROM API description errors</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/User-Manual-UM10430-ROM-API-description-errors/m-p/525041#M7677</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Daniel Widyanto on Tue Oct 02 20:32:01 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi fcarlo,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;Thanks for your feedback. If you need more info to develop your own USB class handler based on USBD ROM, you can check USBD ROM online documentation at &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.lpcware.com%2Fcontent%2Fnxpfile%2Fusb-device-rom-stack-api" rel="nofollow" target="_blank"&gt;http://www.lpcware.com/content/nxpfile/usb-device-rom-stack-api&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;FYI, this page is very useful to init and getting started with your custom USB class handler based on USBD ROM: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fdocs.lpcware.com%2Fusbromlib%2Fv1.0%2F_page__developing_with_u_s_b_d.html" rel="nofollow" target="_blank"&gt;http://docs.lpcware.com/usbromlib/v1.0/_page__developing_with_u_s_b_d.html&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;For RegisterEpHandler, yes it's suppose to register interrupt handler for any of the physical endpoints (not just EP0). I'll notify the documentation people to fix it. For USBD_API_INIT_PARAM definition, you can take a look at &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fdocs.lpcware.com%2Fusbromlib%2Fv1.0%2Fmw__usbd__core_8h_source.html" rel="nofollow" target="_blank"&gt;http://docs.lpcware.com/usbromlib/v1.0/mw__usbd__core_8h_source.html&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm not sure where to download these files yet, but I'll posted it here once I got some info&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:13:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/User-Manual-UM10430-ROM-API-description-errors/m-p/525041#M7677</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:13:59Z</dc:date>
    </item>
    <item>
      <title>Re: User Manual UM10430 - ROM API description errors</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/User-Manual-UM10430-ROM-API-description-errors/m-p/525042#M7678</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by fcarlo on Wed Oct 03 01:51:48 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi Daniel,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm quite confused now, because I have three different options from which I can choose from:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1) UM10430 (rev 1.6): pag 600 - USBD_API_INIT_PARAM&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; pad0 uint8_tuint8_t USBD_API_INIT_PARAM::pad0[3][3]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2) Online doc&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fdocs.lpcware.com%2Fusbromlib%2Fv1.0%2Fmw__usbd__core_8h_source.html" rel="nofollow" target="_blank"&gt;http://docs.lpcware.com/usbromlib/v1.0/mw__usbd__core_8h_source.html&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; uint8_t pad0[3];&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;3) Latest CMSIS library available ($Id: usbd_core.h 7348 2011-05-10 23:30:39Z usb10131 $)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; \lpc18xx\lpc18xx\ ... \usbd\usbd_core.h&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; any "pad0" field found in the defined USBD_API_INIT_PARAM structure.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Which one of these is correct?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there any difference of the ROM API programmed into the different silicon revisions? (I have "Rev. A" parts only).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:14:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/User-Manual-UM10430-ROM-API-description-errors/m-p/525042#M7678</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:14:00Z</dc:date>
    </item>
  </channel>
</rss>

