Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit b8b01c1

Browse filesBrowse files
committed
update to dcd ip3511 to add work-around for lpc54628 usb hs errata USB.1 and USB.2
msc is mounted, but device couldn't work reliably and got constant reset due to other errata probably.
1 parent 6d877c3 commit b8b01c1
Copy full SHA for b8b01c1

File tree

Expand file treeCollapse file tree

6 files changed

+170
-120
lines changed
Filter options
Expand file treeCollapse file tree

6 files changed

+170
-120
lines changed

‎.idea/cmake.xml

Copy file name to clipboardExpand all lines: .idea/cmake.xml
+3-1Lines changed: 3 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎hw/bsp/lpc54/family.c

Copy file name to clipboardExpand all lines: hw/bsp/lpc54/family.c
+2-4Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,13 +70,11 @@
7070
//--------------------------------------------------------------------+
7171
// Forward USB interrupt events to TinyUSB IRQ Handler
7272
//--------------------------------------------------------------------+
73-
void USB0_IRQHandler(void)
74-
{
73+
void USB0_IRQHandler(void) {
7574
tud_int_handler(0);
7675
}
7776

78-
void USB1_IRQHandler(void)
79-
{
77+
void USB1_IRQHandler(void) {
8078
tud_int_handler(1);
8179
}
8280

‎hw/bsp/lpc54/family.cmake

Copy file name to clipboardExpand all lines: hw/bsp/lpc54/family.cmake
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ function(add_board_target BOARD_TARGET)
5959
BOARD_TUD_MAX_SPEED=OPT_MODE_FULL_SPEED
6060
BOARD_TUH_MAX_SPEED=OPT_MODE_HIGH_SPEED
6161
CFG_TUH_MEM_SECTION=__attribute__\(\(section\(\"m_usb_global\"\)\)\)
62+
#CFG_TUD_MEM_SECTION=__attribute__\(\(section\(\"m_usb_global\"\)\)\)
6263
)
6364
endif ()
6465

‎src/common/tusb_common.h

Copy file name to clipboardExpand all lines: src/common/tusb_common.h
+3-2Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,11 +159,12 @@ TU_ATTR_ALWAYS_INLINE static inline uint16_t tu_max16 (uint16_t x, uint16_t y) {
159159
TU_ATTR_ALWAYS_INLINE static inline uint32_t tu_max32 (uint32_t x, uint32_t y) { return (x > y) ? x : y; }
160160

161161
//------------- Align -------------//
162-
TU_ATTR_ALWAYS_INLINE static inline uint32_t tu_align(uint32_t value, uint32_t alignment)
163-
{
162+
TU_ATTR_ALWAYS_INLINE static inline uint32_t tu_align(uint32_t value, uint32_t alignment) {
164163
return value & ((uint32_t) ~(alignment-1));
165164
}
166165

166+
TU_ATTR_ALWAYS_INLINE static inline uint32_t tu_align4 (uint32_t value) { return (value & 0xFFFFFFFCUL); }
167+
TU_ATTR_ALWAYS_INLINE static inline uint32_t tu_align8 (uint32_t value) { return (value & 0xFFFFFFF8UL); }
167168
TU_ATTR_ALWAYS_INLINE static inline uint32_t tu_align16 (uint32_t value) { return (value & 0xFFFFFFF0UL); }
168169
TU_ATTR_ALWAYS_INLINE static inline uint32_t tu_align32 (uint32_t value) { return (value & 0xFFFFFFE0UL); }
169170
TU_ATTR_ALWAYS_INLINE static inline uint32_t tu_align4k (uint32_t value) { return (value & 0xFFFFF000UL); }

‎src/common/tusb_mcu.h

Copy file name to clipboardExpand all lines: src/common/tusb_mcu.h
+6-2Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@
5858
// NXP
5959
//--------------------------------------------------------------------+
6060
#if TU_CHECK_MCU(OPT_MCU_LPC11UXX, OPT_MCU_LPC13XX, OPT_MCU_LPC15XX)
61+
#define TUP_USBIP_IP3511
6162
#define TUP_DCD_ENDPOINT_MAX 5
6263

6364
#elif TU_CHECK_MCU(OPT_MCU_LPC175X_6X, OPT_MCU_LPC177X_8X, OPT_MCU_LPC40XX)
@@ -66,14 +67,17 @@
6667
#define TUP_OHCI_RHPORTS 2
6768

6869
#elif TU_CHECK_MCU(OPT_MCU_LPC51UXX)
70+
#define TUP_USBIP_IP3511
6971
#define TUP_DCD_ENDPOINT_MAX 5
7072

71-
#elif TU_CHECK_MCU(OPT_MCU_LPC54XXX)
73+
#elif TU_CHECK_MCU(OPT_MCU_LPC54)
7274
// TODO USB0 has 5, USB1 has 6
75+
#define TUP_USBIP_IP3511
7376
#define TUP_DCD_ENDPOINT_MAX 6
7477

75-
#elif TU_CHECK_MCU(OPT_MCU_LPC55XX)
78+
#elif TU_CHECK_MCU(OPT_MCU_LPC55)
7679
// TODO USB0 has 5, USB1 has 6
80+
#define TUP_USBIP_IP3511
7781
#define TUP_DCD_ENDPOINT_MAX 6
7882

7983
#elif TU_CHECK_MCU(OPT_MCU_LPC18XX, OPT_MCU_LPC43XX)

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.