File tree Expand file tree Collapse file tree 6 files changed +170
-120
lines changed
Filter options
Expand file tree Collapse file tree 6 files changed +170
-120
lines changed
Original file line number Diff line number Diff line change 70
70
//--------------------------------------------------------------------+
71
71
// Forward USB interrupt events to TinyUSB IRQ Handler
72
72
//--------------------------------------------------------------------+
73
- void USB0_IRQHandler (void )
74
- {
73
+ void USB0_IRQHandler (void ) {
75
74
tud_int_handler (0 );
76
75
}
77
76
78
- void USB1_IRQHandler (void )
79
- {
77
+ void USB1_IRQHandler (void ) {
80
78
tud_int_handler (1 );
81
79
}
82
80
Original file line number Diff line number Diff line change @@ -59,6 +59,7 @@ function(add_board_target BOARD_TARGET)
59
59
BOARD_TUD_MAX_SPEED=OPT_MODE_FULL_SPEED
60
60
BOARD_TUH_MAX_SPEED=OPT_MODE_HIGH_SPEED
61
61
CFG_TUH_MEM_SECTION=__attribute__\(\(section\(\"m_usb_global\"\)\)\)
62
+ #CFG_TUD_MEM_SECTION=__attribute__\(\(section\(\"m_usb_global\"\)\)\)
62
63
)
63
64
endif ()
64
65
Original file line number Diff line number Diff line change @@ -159,11 +159,12 @@ TU_ATTR_ALWAYS_INLINE static inline uint16_t tu_max16 (uint16_t x, uint16_t y) {
159
159
TU_ATTR_ALWAYS_INLINE static inline uint32_t tu_max32 (uint32_t x , uint32_t y ) { return (x > y ) ? x : y ; }
160
160
161
161
//------------- 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 ) {
164
163
return value & ((uint32_t ) ~(alignment - 1 ));
165
164
}
166
165
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 ); }
167
168
TU_ATTR_ALWAYS_INLINE static inline uint32_t tu_align16 (uint32_t value ) { return (value & 0xFFFFFFF0UL ); }
168
169
TU_ATTR_ALWAYS_INLINE static inline uint32_t tu_align32 (uint32_t value ) { return (value & 0xFFFFFFE0UL ); }
169
170
TU_ATTR_ALWAYS_INLINE static inline uint32_t tu_align4k (uint32_t value ) { return (value & 0xFFFFF000UL ); }
Original file line number Diff line number Diff line change 58
58
// NXP
59
59
//--------------------------------------------------------------------+
60
60
#if TU_CHECK_MCU (OPT_MCU_LPC11UXX , OPT_MCU_LPC13XX , OPT_MCU_LPC15XX )
61
+ #define TUP_USBIP_IP3511
61
62
#define TUP_DCD_ENDPOINT_MAX 5
62
63
63
64
#elif TU_CHECK_MCU (OPT_MCU_LPC175X_6X , OPT_MCU_LPC177X_8X , OPT_MCU_LPC40XX )
66
67
#define TUP_OHCI_RHPORTS 2
67
68
68
69
#elif TU_CHECK_MCU (OPT_MCU_LPC51UXX )
70
+ #define TUP_USBIP_IP3511
69
71
#define TUP_DCD_ENDPOINT_MAX 5
70
72
71
- #elif TU_CHECK_MCU (OPT_MCU_LPC54XXX )
73
+ #elif TU_CHECK_MCU (OPT_MCU_LPC54 )
72
74
// TODO USB0 has 5, USB1 has 6
75
+ #define TUP_USBIP_IP3511
73
76
#define TUP_DCD_ENDPOINT_MAX 6
74
77
75
- #elif TU_CHECK_MCU (OPT_MCU_LPC55XX )
78
+ #elif TU_CHECK_MCU (OPT_MCU_LPC55 )
76
79
// TODO USB0 has 5, USB1 has 6
80
+ #define TUP_USBIP_IP3511
77
81
#define TUP_DCD_ENDPOINT_MAX 6
78
82
79
83
#elif TU_CHECK_MCU (OPT_MCU_LPC18XX , OPT_MCU_LPC43XX )
You can’t perform that action at this time.
0 commit comments