Browse Source

Update usb.c

configure usb_mtp also from usb.c
teensy4-core
WMXZ-EU 4 years ago
parent
commit
b8992a8c00
No account linked to committer's email address
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      teensy4/usb.c

+ 4
- 0
teensy4/usb.c View File

#include "usb_touch.h" #include "usb_touch.h"
#include "usb_midi.h" #include "usb_midi.h"
#include "usb_audio.h" #include "usb_audio.h"
#include "usb_mtp.h"
#include "core_pins.h" // for delay() #include "core_pins.h" // for delay()
#include "avr/pgmspace.h" #include "avr/pgmspace.h"
#include <string.h> #include <string.h>
#if defined(AUDIO_INTERFACE) #if defined(AUDIO_INTERFACE)
usb_audio_configure(); usb_audio_configure();
#endif #endif
#if defined(MTP_INTERFACE)
usb_mtp_configure();
#endif
#if defined(EXPERIMENTAL_INTERFACE) #if defined(EXPERIMENTAL_INTERFACE)
endpoint_queue_head[2].unused1 = (uint32_t)experimental_buffer; endpoint_queue_head[2].unused1 = (uint32_t)experimental_buffer;
#endif #endif

Loading…
Cancel
Save