]> git.sur5r.net Git - openocd/blobdiff - src/jtag/drivers/stlink_usb.c
target/armv7m_trace: Use prefix for enums
[openocd] / src / jtag / drivers / stlink_usb.c
index 01f94713102edc29c68ed13467e00b3bc771c5d8..d9ca53e29cb77ecce334ef0db42da8e05305508e 100644 (file)
@@ -2199,7 +2199,8 @@ int stlink_config_trace(void *handle, bool enabled, enum tpiu_pin_protocol pin_p
 {
        struct stlink_usb_handle_s *h = handle;
 
-       if (enabled && (h->jtag_api < 2 || pin_protocol != ASYNC_UART)) {
+       if (enabled && (h->jtag_api < 2 ||
+                       pin_protocol != TPIU_PIN_PROTOCOL_ASYNC_UART)) {
                LOG_ERROR("The attached ST-LINK version doesn't support this trace mode");
                return ERROR_FAIL;
        }