<?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>MQX Software Solutions中的主题 Re: MQX 3.8 Disable UART</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-3-8-Disable-UART/m-p/1346221#M18678</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;I would suggest you use I/O control commands.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;IO_IOCTL_SERIAL_CLEAR_STAT :&amp;nbsp; Clear the statistics.&lt;/P&gt;
&lt;P&gt;IO_IOCTL_SERIAL_SET_BAUD:&amp;nbsp; &amp;nbsp; &amp;nbsp; Set the BAUD rate.&lt;/P&gt;
&lt;P&gt;IO_IOCTL_SERIAL_DISABLE_RX:&amp;nbsp; &amp;nbsp;Disable or enable UART receiver.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;P&gt;Daniel&lt;/P&gt;</description>
    <pubDate>Sun, 26 Sep 2021 06:10:22 GMT</pubDate>
    <dc:creator>danielchen</dc:creator>
    <dc:date>2021-09-26T06:10:22Z</dc:date>
    <item>
      <title>MQX 3.8 Disable UART</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-3-8-Disable-UART/m-p/1345882#M18677</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;With MQX 3.8.&lt;/P&gt;&lt;P&gt;We are using the macro BSPCFG_ENABLE_TTYA and the API function _mcf54xx_uart_serial_polled_install to configure the UART and use it as the default interface for the Shell and the standard IO functions. This works just fine. Now we want to enable/disable the uart at runtime. We have tried disabling the UART,&lt;/P&gt;&lt;P&gt;- writing directly to the peripheral registers,&lt;/P&gt;&lt;P&gt;- using _io_set_handle(IO_PROC_STDOUT(or IN), gs_NullDrv) (as suggested in the forum)&lt;/P&gt;&lt;P&gt;- or with _io_fclose().&lt;/P&gt;&lt;P&gt;Either MQX crashes or the UART does not get disabled. What would be the right way to disable and re-enable the UART?&lt;/P&gt;</description>
      <pubDate>Fri, 24 Sep 2021 13:11:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-3-8-Disable-UART/m-p/1345882#M18677</guid>
      <dc:creator>AA7</dc:creator>
      <dc:date>2021-09-24T13:11:51Z</dc:date>
    </item>
    <item>
      <title>Re: MQX 3.8 Disable UART</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-3-8-Disable-UART/m-p/1346221#M18678</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;I would suggest you use I/O control commands.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;IO_IOCTL_SERIAL_CLEAR_STAT :&amp;nbsp; Clear the statistics.&lt;/P&gt;
&lt;P&gt;IO_IOCTL_SERIAL_SET_BAUD:&amp;nbsp; &amp;nbsp; &amp;nbsp; Set the BAUD rate.&lt;/P&gt;
&lt;P&gt;IO_IOCTL_SERIAL_DISABLE_RX:&amp;nbsp; &amp;nbsp;Disable or enable UART receiver.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;P&gt;Daniel&lt;/P&gt;</description>
      <pubDate>Sun, 26 Sep 2021 06:10:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-3-8-Disable-UART/m-p/1346221#M18678</guid>
      <dc:creator>danielchen</dc:creator>
      <dc:date>2021-09-26T06:10:22Z</dc:date>
    </item>
    <item>
      <title>Re: MQX 3.8 Disable UART</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-3-8-Disable-UART/m-p/1346808#M18680</link>
      <description>&lt;P&gt;I am getting IO_ERROR_INVALID_IOCTL_CMD, is it possible&amp;nbsp;IO_IOCTL_SERIAL_DISABLE_RX is not implemented in MQX 3.8?&lt;/P&gt;</description>
      <pubDate>Mon, 27 Sep 2021 12:44:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-3-8-Disable-UART/m-p/1346808#M18680</guid>
      <dc:creator>AA7</dc:creator>
      <dc:date>2021-09-27T12:44:52Z</dc:date>
    </item>
    <item>
      <title>Re: MQX 3.8 Disable UART</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-3-8-Disable-UART/m-p/1346977#M18681</link>
      <description>&lt;P&gt;Sorry I only have MQX 4.2 installed on my PC.&lt;/P&gt;
&lt;P&gt;Please refer to the implement in MQX 4.2&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;serial.h&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;#define IO_IOCTL_SERIAL_DISABLE_RX _IO(IO_TYPE_SERIAL,0x17)&lt;BR /&gt;#define IO_IOCTL_SERIAL_WAIT_FOR_TC _IO(IO_TYPE_SERIAL,0x18)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;sel_pol_kuart.c&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;case IO_IOCTL_SERIAL_DISABLE_RX:&lt;BR /&gt;if( *(bool *)param_ptr == TRUE )&lt;BR /&gt;{&lt;BR /&gt;/* disable receiver */&lt;BR /&gt;sci_ptr-&amp;gt;C2 &amp;amp;=~UART_C2_RE_MASK;&lt;BR /&gt;}&lt;BR /&gt;else&lt;BR /&gt;{&lt;BR /&gt;/* enable receiver */&lt;BR /&gt;sci_ptr-&amp;gt;C2 |= UART_C2_RE_MASK;&lt;BR /&gt;}&lt;BR /&gt;break;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;P&gt;Daniel&lt;/P&gt;</description>
      <pubDate>Mon, 27 Sep 2021 15:32:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-3-8-Disable-UART/m-p/1346977#M18681</guid>
      <dc:creator>danielchen</dc:creator>
      <dc:date>2021-09-27T15:32:17Z</dc:date>
    </item>
    <item>
      <title>Re: MQX 3.8 Disable UART</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-3-8-Disable-UART/m-p/1347547#M18682</link>
      <description>&lt;P&gt;I ported the code to 3.8 and is all ok. Thanks for your help.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Sep 2021 11:16:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-3-8-Disable-UART/m-p/1347547#M18682</guid>
      <dc:creator>AA7</dc:creator>
      <dc:date>2021-09-28T11:16:23Z</dc:date>
    </item>
  </channel>
</rss>

