<?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>MCUXpresso Config Tools中的主题 Possibility to add an additional code generator?</title>
    <link>https://community.nxp.com/t5/MCUXpresso-Config-Tools/Possibility-to-add-an-additional-code-generator/m-p/1978927#M1872</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was wondering whether it is possible to generate additional .c/.h files with the MCUXpresso Config Tool?&lt;/P&gt;&lt;P&gt;So what I have in mind, the MCUXpresso Config Tool already generates very nice pin_mux.h header files including all the symbols for PORTs and GPIOs. E.g. for the GPIO where my red LED is connected to:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;#define BOARD_INITPINS_LED_RED_GPIO GPIO0&amp;nbsp;&amp;nbsp;/*!&amp;lt;@brief GPIO peripheral base pointer */&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;With that I would like to generate an additional header file containing same symbols as in pin_mux.h, but with a typecast:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;#define LED_RED_PORT (GPIO::Port*)BOARD_INITPINS_LED_RED_GPIO&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;I fear MCUXpresso Config Tool isn't that flexible. But what do you think, are there any other good approaches/tools to generate such header files each time I run the code generator in&amp;nbsp;MCUXpresso Config Tool?&lt;/P&gt;&lt;P&gt;Best,&lt;BR /&gt;THE0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 22 Oct 2024 07:31:51 GMT</pubDate>
    <dc:creator>The0</dc:creator>
    <dc:date>2024-10-22T07:31:51Z</dc:date>
    <item>
      <title>Possibility to add an additional code generator?</title>
      <link>https://community.nxp.com/t5/MCUXpresso-Config-Tools/Possibility-to-add-an-additional-code-generator/m-p/1978927#M1872</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was wondering whether it is possible to generate additional .c/.h files with the MCUXpresso Config Tool?&lt;/P&gt;&lt;P&gt;So what I have in mind, the MCUXpresso Config Tool already generates very nice pin_mux.h header files including all the symbols for PORTs and GPIOs. E.g. for the GPIO where my red LED is connected to:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;#define BOARD_INITPINS_LED_RED_GPIO GPIO0&amp;nbsp;&amp;nbsp;/*!&amp;lt;@brief GPIO peripheral base pointer */&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;With that I would like to generate an additional header file containing same symbols as in pin_mux.h, but with a typecast:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;#define LED_RED_PORT (GPIO::Port*)BOARD_INITPINS_LED_RED_GPIO&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;I fear MCUXpresso Config Tool isn't that flexible. But what do you think, are there any other good approaches/tools to generate such header files each time I run the code generator in&amp;nbsp;MCUXpresso Config Tool?&lt;/P&gt;&lt;P&gt;Best,&lt;BR /&gt;THE0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Oct 2024 07:31:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-Config-Tools/Possibility-to-add-an-additional-code-generator/m-p/1978927#M1872</guid>
      <dc:creator>The0</dc:creator>
      <dc:date>2024-10-22T07:31:51Z</dc:date>
    </item>
    <item>
      <title>Re: Possibility to add an additional code generator?</title>
      <link>https://community.nxp.com/t5/MCUXpresso-Config-Tools/Possibility-to-add-an-additional-code-generator/m-p/1980032#M1873</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/242345"&gt;@The0&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You’re right that the MCUXpresso Config Tool doesn’t have built-in flexibility to generate additional customized .c or .h files with the kind of modifications you’re describing, such as adding typecasts or additional symbols based on the ones in pin_mux.h. However, you can still achieve this by setting up a custom post-processing script that runs after the code generation.&lt;/P&gt;
&lt;P&gt;After running the MCUXpresso Config Tool, use a script (Python, Bash, etc.) to read the generated pin_mux.h file, extract the relevant symbols, and create your additional header file (custom_pin_mux.h or similar).&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Hang&lt;/P&gt;</description>
      <pubDate>Wed, 23 Oct 2024 08:55:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-Config-Tools/Possibility-to-add-an-additional-code-generator/m-p/1980032#M1873</guid>
      <dc:creator>Harry_Zhang</dc:creator>
      <dc:date>2024-10-23T08:55:19Z</dc:date>
    </item>
    <item>
      <title>Re: Possibility to add an additional code generator?</title>
      <link>https://community.nxp.com/t5/MCUXpresso-Config-Tools/Possibility-to-add-an-additional-code-generator/m-p/1980038#M1874</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/229957"&gt;@Harry_Zhang&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thank you very much for your feedback. I think the approach using a post-processing script should work well.&lt;/P&gt;&lt;P&gt;BR&lt;BR /&gt;The0&lt;/P&gt;</description>
      <pubDate>Wed, 23 Oct 2024 09:04:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-Config-Tools/Possibility-to-add-an-additional-code-generator/m-p/1980038#M1874</guid>
      <dc:creator>The0</dc:creator>
      <dc:date>2024-10-23T09:04:20Z</dc:date>
    </item>
  </channel>
</rss>

