You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by je...@apache.org on 2022/08/17 13:22:03 UTC

[mynewt-core] branch master updated: tinyusb/synopsys: Add RHPORT1 configuration option

This is an automated email from the ASF dual-hosted git repository.

jerzy pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-core.git


The following commit(s) were added to refs/heads/master by this push:
     new 2c67bf221 tinyusb/synopsys: Add RHPORT1 configuration option
2c67bf221 is described below

commit 2c67bf221673606ef4ed4ecc00d8fde9ee81f0be
Author: Jerzy Kasenberg <je...@codecoup.pl>
AuthorDate: Wed Aug 3 08:38:00 2022 +0200

    tinyusb/synopsys: Add RHPORT1 configuration option
    
    Recent changes in TinyUSB headers require CFG_TUSB_RHPORT1_MODE
    to be present in synopsys based chips (STMF4, STMF7).
    It used to be defined in TinyUSB if not present.
    So far mynewt implementation does not use second USB port
    so it's safe to just define CFG_TUSB_RHPORT1_MODE the same way
    it used to be defined in TinyUSB repository to satisfy
    build.
---
 hw/usb/tinyusb/synopsys/include/tusb_hw.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/hw/usb/tinyusb/synopsys/include/tusb_hw.h b/hw/usb/tinyusb/synopsys/include/tusb_hw.h
index 014d526ec..33137f500 100755
--- a/hw/usb/tinyusb/synopsys/include/tusb_hw.h
+++ b/hw/usb/tinyusb/synopsys/include/tusb_hw.h
@@ -24,6 +24,10 @@
 
 #define CFG_TUSB_RHPORT0_SPEED  OPT_MODE_FULL_SPEED
 
+#ifndef CFG_TUSB_RHPORT1_MODE
+#define CFG_TUSB_RHPORT1_MODE   OPT_MODE_NONE
+#endif
+
 #if MYNEWT_VAL(MCU_STM32F4)
 #define CFG_TUSB_MCU OPT_MCU_STM32F4
 #elif MYNEWT_VAL(MCU_STM32F7)