瀏覽代碼

Update usb.c

configure usb_mtp also from usb.c
main
WMXZ-EU 4 年之前
父節點
當前提交
b8992a8c00
No account linked to committer's email address
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. +4
    -0
      teensy4/usb.c

+ 4
- 0
teensy4/usb.c 查看文件

@@ -11,6 +11,7 @@
#include "usb_touch.h"
#include "usb_midi.h"
#include "usb_audio.h"
#include "usb_mtp.h"
#include "core_pins.h" // for delay()
#include "avr/pgmspace.h"
#include <string.h>
@@ -461,6 +462,9 @@ static void endpoint0_setup(uint64_t setupdata)
#if defined(AUDIO_INTERFACE)
usb_audio_configure();
#endif
#if defined(MTP_INTERFACE)
usb_mtp_configure();
#endif
#if defined(EXPERIMENTAL_INTERFACE)
endpoint_queue_head[2].unused1 = (uint32_t)experimental_buffer;
#endif

Loading…
取消
儲存