Detailed description
In this PR we address a bug found by Esden when trying to use BMPv3's UARTs for some debugging. The nature of the issue means that the TX/RX auto-swapping logic was interfering with the active UART tracking, thus we transform that auto-swapping logic into a monitor command for a little less automation, but this then allows BMPv3 to correctly pick up that the BMDU UART is active and route traffic through to the target serial interface.
Tested with a STM32F410 Nucleo. Need to do further testing for the active UART tracking and swapping, but in principal it's working correctly now.
Your checklist for this pull request
Closing issues
<!-- Filling this template is mandatory -->
## Detailed description
In this PR we address a bug found by Esden when trying to use BMPv3's UARTs for some debugging. The nature of the issue means that the TX/RX auto-swapping logic was interfering with the active UART tracking, thus we transform that auto-swapping logic into a monitor command for a little less automation, but this then allows BMPv3 to correctly pick up that the BMDU UART is active and route traffic through to the target serial interface.
Tested with a STM32F410 Nucleo. Need to do further testing for the active UART tracking and swapping, but in principal it's working correctly now.
## Your checklist for this pull request
* [x] I've read the [Code of Conduct](https://codeberg.org/blackmagic-debug/blackmagic/src/CODE_OF_CONDUCT.md)
* [x] I've read the [guidelines for contributing](https://codeberg.org/blackmagic-debug/blackmagic/src/CONTRIBUTING.md) to this repository
* [x] It builds for hardware native (see [Building the firmware](https://codeberg.org/blackmagic-debug/blackmagic?tab=readme-ov-file#building-the-firmware))
* [x] It builds as BMDA (see [Building the BMDA](https://codeberg.org/blackmagic-debug/blackmagic?tab=readme-ov-file#building-black-magic-debug-app))
* [x] I've tested it to the best of my ability
* [x] My commit messages provide a useful short description of what the commits do
## Closing issues
<!-- put "fixes #XXXX" here to auto-close the issue(s) that your PR fixes (if any). -->