usb_periph.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  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. #pragma once
  15. #include <stdint.h>
  16. #include <stdbool.h>
  17. #include "soc/usb_pins.h"
  18. #include "soc/gpio_sig_map.h"
  19. #include "soc/usb_reg.h"
  20. #include "soc/usb_types.h"
  21. #include "soc/usb_struct.h"
  22. #include "soc/usb_wrap_reg.h"
  23. #include "soc/usb_wrap_struct.h"
  24. /**
  25. * @brief A pin descriptor for init
  26. */
  27. typedef struct {
  28. const int pin;
  29. const int func;
  30. const bool is_output;
  31. const int ext_phy_only;
  32. } usb_iopin_dsc_t;
  33. extern const usb_iopin_dsc_t usb_periph_iopins[];