Update TinyUSB

This commit is contained in:
me-no-dev
2020-07-01 23:45:42 +03:00
parent c6c3be12b9
commit c9ae74f012
8 changed files with 86 additions and 87 deletions

View File

@ -17,7 +17,6 @@
#include <string.h>
#include "usb_descriptors.h"
#if CONFIG_USB_USE_BUILTIN_DESCRIPTORS
/* A combination of interfaces must have a unique product id, since PC will save device driver after the first plug.
* Same VID/PID with different interface e.g MSC (first), then CDC (later) will possibly cause system error on PC.

View File

@ -11,19 +11,20 @@
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
#pragma once
#ifdef __cplusplus
extern "C" {
#endif
#pragma once
#include "tusb.h"
#define _PID_MAP(itf, n) ((CFG_TUD_##itf) << (n))
#define USB_ESPRESSIF_VID 0x303A
#if CONFIG_USB_USE_BUILTIN_DESCRIPTORS
#define _PID_MAP(itf, n) ((CFG_TUD_##itf) << (n))
#define USB_STRING_DESCRIPTOR_ARRAY_SIZE 10
typedef char *tusb_desc_strarray_device_t[USB_STRING_DESCRIPTOR_ARRAY_SIZE];
@ -32,6 +33,7 @@ extern tusb_desc_strarray_device_t descriptor_str_tinyusb;
extern tusb_desc_device_t descriptor_kconfig;
extern tusb_desc_strarray_device_t descriptor_str_kconfig;
#endif /* CONFIG_USB_USE_BUILTIN_DESCRIPTORS */
#ifdef __cplusplus
}