summaryrefslogtreecommitdiff
path: root/tinyusb
diff options
context:
space:
mode:
Diffstat (limited to 'tinyusb')
-rw-r--r--tinyusb/portable/nordic/nrf5x/dcd_nrf5x.c4
-rw-r--r--tinyusb/portable/nordic/nrf5x/hal_nrf5x.c4
2 files changed, 8 insertions, 0 deletions
diff --git a/tinyusb/portable/nordic/nrf5x/dcd_nrf5x.c b/tinyusb/portable/nordic/nrf5x/dcd_nrf5x.c
index ecb896c8f..a57427d6b 100644
--- a/tinyusb/portable/nordic/nrf5x/dcd_nrf5x.c
+++ b/tinyusb/portable/nordic/nrf5x/dcd_nrf5x.c
@@ -34,6 +34,8 @@
*/
/**************************************************************************/
+#ifdef NRF52840_XXAA
+
// TODO remove
#include "nrf.h"
#include "nrf_power.h"
@@ -648,3 +650,5 @@ void USBD_IRQHandler(void)
}
}
+
+#endif
diff --git a/tinyusb/portable/nordic/nrf5x/hal_nrf5x.c b/tinyusb/portable/nordic/nrf5x/hal_nrf5x.c
index 2264dadfc..145f1bf5d 100644
--- a/tinyusb/portable/nordic/nrf5x/hal_nrf5x.c
+++ b/tinyusb/portable/nordic/nrf5x/hal_nrf5x.c
@@ -34,6 +34,8 @@
*/
/**************************************************************************/
+#ifdef NRF52840_XXAA
+
#include <stdbool.h>
#include "nrf.h"
#include "nrf_gpio.h"
@@ -98,3 +100,5 @@ void tusb_hal_dbg_breakpoint(void)
}
#endif
}
+
+#endif