1 // Copyright 2020 Espressif Systems (Shanghai) PTE LTD
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 //     http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14 
15 #pragma once
16 
17 #include <stdint.h>
18 #include <stdbool.h>
19 #include "soc/usb_pins.h"
20 #include "soc/gpio_sig_map.h"
21 #include "soc/usb_reg.h"
22 #include "soc/usb_types.h"
23 #include "soc/usb_struct.h"
24 #include "soc/usb_wrap_reg.h"
25 #include "soc/usb_wrap_struct.h"
26 
27 /**
28  * @brief A pin descriptor for init
29  */
30 typedef struct {
31     const int pin;
32     const int func;
33     const bool is_output;
34     const int ext_phy_only;
35 } usb_iopin_dsc_t;
36 
37 extern const usb_iopin_dsc_t usb_periph_iopins[];
38