hathach 8 年之前
父節點
當前提交
0c09269fd4

+ 0 - 5
examples/device/nrf52840/segger/nrf52840.emProject

@@ -70,11 +70,6 @@
       <folder Name="mcu">
         <folder Name="nordic">
           <folder Name="nrf52">
-            <folder Name="tusb_port">
-              <file file_name="../../../../hw/mcu/nordic/nrf52/tusb_port/hal_nrf52.c" />
-              <file file_name="../../../../hw/mcu/nordic/nrf52/tusb_port/dcd_nrf52.c" />
-              <file file_name="../../../../hw/mcu/nordic/nrf52/tusb_port/dcd_nrf52.h" />
-            </folder>
             <folder Name="sdk">
               <file file_name="../../../../hw/mcu/nordic/nrf52/sdk/sdk_config.h" />
               <folder

+ 4 - 0
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

+ 4 - 0
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