Skip to content

Commit e405817

Browse files
authored
Merge pull request hathach#2269 from hathach/add-in_isr-to-hcd_int_hanlder
Add in isr to hcd int hanlder
2 parents 56c6d2f + 68c4009 commit e405817

File tree

42 files changed

+452
-333
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+452
-333
lines changed

.github/workflows/build_arm.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
- 'broadcom_32bit'
3737
- 'kinetis_k32l2'
3838
- 'lpc11 lpc13 lpc15 lpc17'
39-
- 'lpc51 lpc54'
39+
- 'lpc51'
4040
- 'mm32 msp432e4'
4141
- 'samd11 same5x saml2x'
4242
- 'stm32f2 stm32f3'

.github/workflows/cmake_arm.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
- 'imxrt'
3737
- 'kinetis_kl'
3838
- 'lpc18 lpc40 lpc43'
39-
- 'lpc55'
39+
- 'lpc54 lpc55'
4040
- 'mcx'
4141
- 'nrf'
4242
- 'ra'

examples/host/bare_api/only.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
mcu:KINETIS_KL
12
mcu:LPC175X_6X
23
mcu:LPC177X_8X
34
mcu:LPC18XX

examples/host/cdc_msc_hid/only.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
mcu:KINETIS_KL
12
mcu:LPC175X_6X
23
mcu:LPC177X_8X
34
mcu:LPC18XX

examples/host/hid_controller/only.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
mcu:KINETIS_KL
12
mcu:LPC175X_6X
23
mcu:LPC177X_8X
34
mcu:LPC18XX

examples/host/msc_file_explorer/only.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
mcu:KINETIS_KL
12
mcu:LPC175X_6X
23
mcu:LPC177X_8X
34
mcu:LPC18XX

hw/bsp/family_support.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ if (NOT FAMILY STREQUAL rp2040)
4040
# enable LTO if supported skip rp2040
4141
include(CheckIPOSupported)
4242
check_ipo_supported(RESULT IPO_SUPPORTED)
43+
cmake_print_variables(IPO_SUPPORTED)
4344
if (IPO_SUPPORTED)
4445
set(CMAKE_INTERPROCEDURAL_OPTIMIZATION TRUE)
4546
endif()

hw/bsp/imxrt/family.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ void USB_OTG1_IRQHandler(void)
188188
#endif
189189

190190
#if PORT_SUPPORT_HOST(0)
191-
tuh_int_handler(0);
191+
tuh_int_handler(0, true);
192192
#endif
193193
}
194194

@@ -199,7 +199,7 @@ void USB_OTG2_IRQHandler(void)
199199
#endif
200200

201201
#if PORT_SUPPORT_HOST(1)
202-
tuh_int_handler(1);
202+
tuh_int_handler(1, true);
203203
#endif
204204
}
205205

hw/bsp/kinetis_kl/family.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
void USB0_IRQHandler(void)
4040
{
4141
#if CFG_TUH_ENABLED
42-
tuh_int_handler(0);
42+
tuh_int_handler(0, true);
4343
#endif
4444
#if CFG_TUD_ENABLED
4545
tud_int_handler(0);

hw/bsp/kinetis_kl/family.cmake

Lines changed: 37 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -22,48 +22,47 @@ set(FAMILY_MCUS KINETIS_KL CACHE INTERNAL "")
2222
#------------------------------------
2323
# only need to be built ONCE for all examples
2424
function(add_board_target BOARD_TARGET)
25-
if (NOT TARGET ${BOARD_TARGET})
26-
add_library(${BOARD_TARGET} STATIC
27-
${SDK_DIR}/drivers/gpio/fsl_gpio.c
28-
${SDK_DIR}/drivers/lpsci/fsl_lpsci.c
29-
${SDK_DIR}/drivers/uart/fsl_uart.c
30-
${SDK_DIR}/devices/${MCU_VARIANT}/drivers/fsl_clock.c
31-
${SDK_DIR}/devices/${MCU_VARIANT}/system_${MCU_VARIANT}.c
32-
)
33-
target_compile_definitions(${BOARD_TARGET} PUBLIC
34-
)
35-
target_include_directories(${BOARD_TARGET} PUBLIC
36-
${CMSIS_DIR}/CMSIS/Core/Include
37-
${SDK_DIR}/devices/${MCU_VARIANT}
38-
${SDK_DIR}/devices/${MCU_VARIANT}/drivers
39-
${SDK_DIR}/drivers/common
40-
${SDK_DIR}/drivers/gpio
41-
${SDK_DIR}/drivers/lpsci
42-
${SDK_DIR}/drivers/port
43-
${SDK_DIR}/drivers/smc
44-
${SDK_DIR}/drivers/uart
45-
)
25+
if (TARGET ${BOARD_TARGET})
26+
return()
27+
endif ()
4628

47-
update_board(${BOARD_TARGET})
29+
add_library(${BOARD_TARGET} STATIC
30+
${SDK_DIR}/drivers/gpio/fsl_gpio.c
31+
${SDK_DIR}/drivers/lpsci/fsl_lpsci.c
32+
${SDK_DIR}/drivers/uart/fsl_uart.c
33+
${SDK_DIR}/devices/${MCU_VARIANT}/drivers/fsl_clock.c
34+
${SDK_DIR}/devices/${MCU_VARIANT}/system_${MCU_VARIANT}.c
35+
)
36+
target_compile_definitions(${BOARD_TARGET} PUBLIC
37+
)
38+
target_include_directories(${BOARD_TARGET} PUBLIC
39+
${CMSIS_DIR}/CMSIS/Core/Include
40+
${SDK_DIR}/devices/${MCU_VARIANT}
41+
${SDK_DIR}/devices/${MCU_VARIANT}/drivers
42+
${SDK_DIR}/drivers/common
43+
${SDK_DIR}/drivers/gpio
44+
${SDK_DIR}/drivers/lpsci
45+
${SDK_DIR}/drivers/port
46+
${SDK_DIR}/drivers/smc
47+
${SDK_DIR}/drivers/uart
48+
)
49+
update_board(${BOARD_TARGET})
4850

49-
# LD_FILE and STARTUP_FILE can be defined in board.cmake
51+
# LD_FILE and STARTUP_FILE can be defined in board.cmake
52+
target_sources(${BOARD_TARGET} PUBLIC
53+
${STARTUP_FILE_${CMAKE_C_COMPILER_ID}}
54+
)
5055

51-
target_sources(${BOARD_TARGET} PUBLIC
52-
${STARTUP_FILE_${CMAKE_C_COMPILER_ID}}
56+
if (CMAKE_C_COMPILER_ID STREQUAL "GNU")
57+
target_link_options(${BOARD_TARGET} PUBLIC
58+
"LINKER:--script=${LD_FILE_GNU}"
59+
# nanolib
60+
--specs=nosys.specs --specs=nano.specs
61+
)
62+
elseif (CMAKE_C_COMPILER_ID STREQUAL "IAR")
63+
target_link_options(${BOARD_TARGET} PUBLIC
64+
"LINKER:--config=${LD_FILE_IAR}"
5365
)
54-
55-
if (CMAKE_C_COMPILER_ID STREQUAL "GNU")
56-
target_link_options(${BOARD_TARGET} PUBLIC
57-
"LINKER:--script=${LD_FILE_GNU}"
58-
# nanolib
59-
--specs=nosys.specs
60-
--specs=nano.specs
61-
)
62-
elseif (CMAKE_C_COMPILER_ID STREQUAL "IAR")
63-
target_link_options(${BOARD_TARGET} PUBLIC
64-
"LINKER:--config=${LD_FILE_IAR}"
65-
)
66-
endif ()
6766
endif ()
6867
endfunction()
6968

0 commit comments

Comments
 (0)