native: Enable uart on HW >=V3 when debugging.
We were disabling the UART on all Hardware V1 and newer, as V1 and V2 had the SWD pins connected to the UART pins. Since V3 this is not the case any more so we can keep the UART enabled when an SWD debugger is connected to the BMP.
This commit is contained in:
parent
7cacdab98e
commit
253a12f014
|
@ -225,9 +225,11 @@ void platform_init(void)
|
|||
platform_timing_init();
|
||||
cdcacm_init();
|
||||
|
||||
/* On mini hardware, UART and SWD share connector pins.
|
||||
/* On hardware version 1 and 2, UART and SWD share connector pins.
|
||||
* Don't enable UART if we're being debugged. */
|
||||
if ((platform_hwversion() == 0) || !(SCS_DEMCR & SCS_DEMCR_TRCENA))
|
||||
if (platform_hwversion() == 0 ||
|
||||
platform_hwversion() >= 3 ||
|
||||
!(SCS_DEMCR & SCS_DEMCR_TRCENA))
|
||||
usbuart_init();
|
||||
|
||||
setup_vbus_irq();
|
||||
|
|
Loading…
Reference in New Issue