Hi,
With MQX 3.8.
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,
- writing directly to the peripheral registers,
- using _io_set_handle(IO_PROC_STDOUT(or IN), gs_NullDrv) (as suggested in the forum)
- or with _io_fclose().
Either MQX crashes or the UART does not get disabled. What would be the right way to disable and re-enable the UART?