From 7b30d040e7b3d0531c7cd974b45a00d681f30fd0 Mon Sep 17 00:00:00 2001 From: "Ben V. Brown" Date: Sun, 10 Jul 2022 20:12:48 +1000 Subject: [PATCH] Fix QC 0.6V D- --- source/Core/BSP/Magic/QC_GPIO.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/source/Core/BSP/Magic/QC_GPIO.cpp b/source/Core/BSP/Magic/QC_GPIO.cpp index 02862c5a..644c5ac6 100644 --- a/source/Core/BSP/Magic/QC_GPIO.cpp +++ b/source/Core/BSP/Magic/QC_GPIO.cpp @@ -15,8 +15,8 @@ void QC_DPlusZero_Six() { gpio_write(QC_DP_LOW_Pin, 0); } void QC_DNegZero_Six() { - gpio_write(QC_DM_HIGH_Pin, 1); - gpio_write(QC_DM_LOW_Pin, 0); + gpio_write(QC_DM_HIGH_Pin, 0); + gpio_write(QC_DM_LOW_Pin, 1); } void QC_DPlusThree_Three() { // pull up D+ @@ -40,8 +40,11 @@ void QC_Init_GPIO() { // Setup any GPIO into the right states for QC // D+ pulldown as output gpio_set_mode(QC_DP_LOW_Pin, GPIO_OUTPUT_MODE); + gpio_write(QC_DP_LOW_Pin, 0); // Make two D- pins floating - QC_DM_PullDown(); + gpio_set_mode(USB_DM_Pin, GPIO_INPUT_MODE); + gpio_set_mode(QC_DM_LOW_Pin, GPIO_INPUT_MODE); + gpio_set_mode(QC_DM_HIGH_Pin, GPIO_INPUT_MODE); } void QC_Post_Probe_En() { // Make two D- pins outputs