Skip to content

Commit 7d66a3e

Browse files
committed
merge n6 and h7rs (same config)
1 parent 2e231a7 commit 7d66a3e

File tree

2 files changed

+3
-12
lines changed

2 files changed

+3
-12
lines changed

src/common/tusb_mcu.h

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@
312312
#define TUP_USBIP_FSDEV_STM32
313313
#define TUP_DCD_ENDPOINT_MAX 8
314314

315-
#elif TU_CHECK_MCU(OPT_MCU_STM32H7RS)
315+
#elif TU_CHECK_MCU(OPT_MCU_STM32H7RS, OPT_MCU_STM32N6)
316316
#define TUP_USBIP_DWC2
317317
#define TUP_USBIP_DWC2_STM32
318318

@@ -322,15 +322,6 @@
322322
// MCU with on-chip HS Phy
323323
#define TUP_RHPORT_HIGHSPEED 1
324324

325-
#elif TU_CHECK_MCU(OPT_MCU_STM32N6)
326-
#define TUP_USBIP_DWC2
327-
#define TUP_USBIP_DWC2_STM32
328-
329-
#define TUP_DCD_ENDPOINT_MAX 9
330-
331-
// MCU with on-chip HS Phy
332-
#define TUP_RHPORT_HIGHSPEED 2
333-
334325
//--------------------------------------------------------------------+
335326
// Sony
336327
//--------------------------------------------------------------------+

src/portable/synopsys/dwc2/dwc2_stm32.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,8 @@ extern "C" {
7979

8080
#elif CFG_TUSB_MCU == OPT_MCU_STM32N6
8181
#include "stm32n6xx.h"
82-
#define EP_MAX_FS 6
83-
#define EP_FIFO_SIZE_FS 1280
82+
#define EP_MAX_FS 9
83+
#define EP_FIFO_SIZE_FS 4096
8484

8585
#define EP_MAX_HS 9
8686
#define EP_FIFO_SIZE_HS 4096

0 commit comments

Comments
 (0)