File tree Expand file tree Collapse file tree 1 file changed +9
-7
lines changed
components/tinyusb/port/esp32s2/src Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change 12
12
// See the License for the specific language governing permissions and
13
13
// limitations under the License.
14
14
15
- #include "tinyusb.h"
15
+ #include "driver/gpio.h"
16
+ #include "driver/periph_ctrl.h"
17
+ #include "esp_rom_gpio.h"
18
+ #include "hal/gpio_ll.h"
16
19
#include "hal/usb_hal.h"
17
- #include "soc/usb_periph.h"
18
20
#include "soc/gpio_periph.h"
19
- #include "hal/gpio_ll.h"
20
- #include "esp_rom_gpio.h"
21
- #include "driver/periph_ctrl.h"
22
- #include "driver/gpio.h"
21
+ #include "soc/usb_periph.h"
22
+ #include "tinyusb.h"
23
23
24
24
static void configure_pins (usb_hal_context_t * usb )
25
25
{
@@ -34,7 +34,9 @@ static void configure_pins(usb_hal_context_t *usb)
34
34
esp_rom_gpio_connect_out_signal (iopin -> pin , iopin -> func , false, false);
35
35
} else {
36
36
esp_rom_gpio_connect_in_signal (iopin -> pin , iopin -> func , false);
37
- gpio_ll_input_enable (& GPIO , iopin -> pin );
37
+ if ((iopin -> pin != GPIO_MATRIX_CONST_ZERO_INPUT ) && (iopin -> pin != GPIO_MATRIX_CONST_ONE_INPUT )) {
38
+ gpio_ll_input_enable (& GPIO , iopin -> pin );
39
+ }
38
40
}
39
41
esp_rom_gpio_pad_unhold (iopin -> pin );
40
42
}
You can’t perform that action at this time.
0 commit comments