<?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 Microcontrollers中的主题 Re: Dynamic pin assignment for serial port on Kinetis running MQX 3.8.1</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Dynamic-pin-assignment-for-serial-port-on-Kinetis-running-MQX-3/m-p/218650#M3892</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately there is no way to do that without modifying the MQX code. &lt;/P&gt;&lt;P&gt;One thing you can do is to add a new option in the ioctl of the driver you want to use.&lt;/P&gt;&lt;P&gt;You have to modify the uint_32 _kuart_polled_ioctl function in the serl_pol_kuart.c and add the command or option to change the pins to be used. Similar way as you modify the baud-rate, parity and other parameters. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Other way is to modify directly to the registers in the application, just like in a bareboard project.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 18 Feb 2013 20:52:38 GMT</pubDate>
    <dc:creator>alejandrolozan1</dc:creator>
    <dc:date>2013-02-18T20:52:38Z</dc:date>
    <item>
      <title>Dynamic pin assignment for serial port on Kinetis running MQX 3.8.1</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Dynamic-pin-assignment-for-serial-port-on-Kinetis-running-MQX-3/m-p/218649#M3891</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the file, init_gpio.c, there is a function, _bsp_serial_io_init() that is used to initialize the hardware pins used by each UART device. The port&amp;amp;pins are hard-coded to a port and mux assignment via a switch statement with no parameters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On my rev 1 board I want to use Port XYZ Alt N, but on my Rev 2 board I want to use Port PDQ Alt M. I want my CPU to discover what board type I'm running on and use the correct pins for that board. How can I do this at run-time if the function wants them to be hard-coded in the library?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Oct 2012 18:08:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Dynamic-pin-assignment-for-serial-port-on-Kinetis-running-MQX-3/m-p/218649#M3891</guid>
      <dc:creator>Jeronimo479</dc:creator>
      <dc:date>2012-10-15T18:08:29Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic pin assignment for serial port on Kinetis running MQX 3.8.1</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Dynamic-pin-assignment-for-serial-port-on-Kinetis-running-MQX-3/m-p/218650#M3892</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately there is no way to do that without modifying the MQX code. &lt;/P&gt;&lt;P&gt;One thing you can do is to add a new option in the ioctl of the driver you want to use.&lt;/P&gt;&lt;P&gt;You have to modify the uint_32 _kuart_polled_ioctl function in the serl_pol_kuart.c and add the command or option to change the pins to be used. Similar way as you modify the baud-rate, parity and other parameters. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Other way is to modify directly to the registers in the application, just like in a bareboard project.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Feb 2013 20:52:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Dynamic-pin-assignment-for-serial-port-on-Kinetis-running-MQX-3/m-p/218650#M3892</guid>
      <dc:creator>alejandrolozan1</dc:creator>
      <dc:date>2013-02-18T20:52:38Z</dc:date>
    </item>
  </channel>
</rss>

