usb_descriptors.h 514 B

1234567891011121314151617181920212223242526
  1. /*
  2. * SPDX-FileCopyrightText: 2020-2022 Espressif Systems (Shanghai) CO LTD
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. */
  6. #pragma once
  7. #include "tusb.h"
  8. #include "tinyusb_types.h"
  9. #ifdef __cplusplus
  10. extern "C" {
  11. #endif
  12. #define _PID_MAP(itf, n) ((CFG_TUD_##itf) << (n))
  13. extern tusb_desc_device_t descriptor_tinyusb;
  14. extern tusb_desc_strarray_device_t descriptor_str_tinyusb;
  15. extern tusb_desc_device_t descriptor_kconfig;
  16. extern tusb_desc_strarray_device_t descriptor_str_kconfig;
  17. #ifdef __cplusplus
  18. }
  19. #endif