diff options
| author | hathach <[email protected]> | 2021-01-27 13:04:38 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2021-01-27 13:04:38 +0700 |
| commit | c3c4f65fea69c7db53c9834cf426a831dc28f2eb (patch) | |
| tree | af1a6b5eccbe9b315b0fea58944f3b920b797a42 /src | |
| parent | 40870f9037126b2ec63993963c2b1373974ed92c (diff) | |
wrap rp2040_usb around opt mcu
Diffstat (limited to 'src')
| -rw-r--r-- | src/portable/raspberrypi/rp2040/rp2040_usb.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/portable/raspberrypi/rp2040/rp2040_usb.c b/src/portable/raspberrypi/rp2040/rp2040_usb.c index a44607e99..5c536e314 100644 --- a/src/portable/raspberrypi/rp2040/rp2040_usb.c +++ b/src/portable/raspberrypi/rp2040/rp2040_usb.c @@ -24,10 +24,13 @@ * This file is part of the TinyUSB stack. */ +#include "tusb_option.h" + +#if CFG_TUSB_MCU == OPT_MCU_RP2040 + #include <stdlib.h> #include "rp2040_usb.h" #include "hardware/clocks.h" -#include "tusb_option.h" // Direction strings for debug const char *ep_dir_string[] = { @@ -277,3 +280,4 @@ void _hw_endpoint_xfer(struct hw_endpoint *ep, uint8_t *buffer, uint16_t total_l } } +#endif |
