<?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 Re: How to add functions to generated files in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/How-to-add-functions-to-generated-files/m-p/1591004#M51474</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;After you use Peripherals Configuration tools to set the peripheral, the tools will generate corresponding code for the peripheral as peripherals.c and peripherals.h, you have to update or copy the two file to your project and add any function in your project.&lt;/P&gt;
&lt;P&gt;Hope it can help you&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;XiangJun Rong&lt;/P&gt;</description>
    <pubDate>Wed, 01 Feb 2023 05:31:56 GMT</pubDate>
    <dc:creator>xiangjun_rong</dc:creator>
    <dc:date>2023-02-01T05:31:56Z</dc:date>
    <item>
      <title>How to add functions to generated files</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/How-to-add-functions-to-generated-files/m-p/1590740#M51464</link>
      <description>&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;I developed a software that use USB0 Virtual COM communication using peripherarls configurator.&lt;/P&gt;&lt;P&gt;Now I would like to know the number of received data from USB port.&lt;/P&gt;&lt;P&gt;So I added the following routine&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;uint32_t dataSize()
{
    return s_recvSize;
}&lt;/LI-CODE&gt;&lt;P&gt;because s_recvSize is static.&lt;/P&gt;&lt;P&gt;Unfortunately every time I add a new peripheral to the code the tool rewrite all generated files so the added routine (dataSIze) desappears from the project.&lt;/P&gt;&lt;P&gt;Did you have a similar problem ?&lt;/P&gt;&lt;P&gt;How did you fixed it ?&lt;/P&gt;&lt;P&gt;Thank you very much for your help and cooperation&lt;/P&gt;&lt;P&gt;best regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How did you fixed it ?&lt;/P&gt;&lt;P&gt;Thank you very much for your help and cooperation&lt;/P&gt;&lt;P&gt;best regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jan 2023 17:20:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/How-to-add-functions-to-generated-files/m-p/1590740#M51464</guid>
      <dc:creator>_Ferrari_</dc:creator>
      <dc:date>2023-01-31T17:20:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to add functions to generated files</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/How-to-add-functions-to-generated-files/m-p/1591004#M51474</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;After you use Peripherals Configuration tools to set the peripheral, the tools will generate corresponding code for the peripheral as peripherals.c and peripherals.h, you have to update or copy the two file to your project and add any function in your project.&lt;/P&gt;
&lt;P&gt;Hope it can help you&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;XiangJun Rong&lt;/P&gt;</description>
      <pubDate>Wed, 01 Feb 2023 05:31:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/How-to-add-functions-to-generated-files/m-p/1591004#M51474</guid>
      <dc:creator>xiangjun_rong</dc:creator>
      <dc:date>2023-02-01T05:31:56Z</dc:date>
    </item>
  </channel>
</rss>

