mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-21 13:58:08 +00:00
refactor(core/embed): move usb driver to its own folder
[no changelog]
This commit is contained in:
parent
f5d35da635
commit
8e429b0352
1
core/embed/trezorhal/stm32u5/usb
Symbolic link
1
core/embed/trezorhal/stm32u5/usb
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
../stm32f4/usb
|
@ -1 +0,0 @@
|
|||||||
../stm32f4/usb.c
|
|
@ -1 +0,0 @@
|
|||||||
../stm32f4/usb_hid-impl.h
|
|
@ -1 +0,0 @@
|
|||||||
../stm32f4/usb_vcp-impl.h
|
|
@ -1 +0,0 @@
|
|||||||
../stm32f4/usb_webusb-impl.h
|
|
@ -1 +0,0 @@
|
|||||||
../stm32f4/usbd_conf.c
|
|
@ -1 +0,0 @@
|
|||||||
../stm32f4/usbd_conf.h
|
|
@ -1 +0,0 @@
|
|||||||
../stm32f4/usbd_core.c
|
|
@ -1 +0,0 @@
|
|||||||
../stm32f4/usbd_core.h
|
|
@ -1 +0,0 @@
|
|||||||
../stm32f4/usbd_ctlreq.c
|
|
@ -1 +0,0 @@
|
|||||||
../stm32f4/usbd_ctlreq.h
|
|
@ -1 +0,0 @@
|
|||||||
../stm32f4/usbd_def.h
|
|
@ -1 +0,0 @@
|
|||||||
../stm32f4/usbd_ioreq.c
|
|
@ -1 +0,0 @@
|
|||||||
../stm32f4/usbd_ioreq.h
|
|
@ -76,11 +76,11 @@ def configure(
|
|||||||
|
|
||||||
if "usb" in features_wanted:
|
if "usb" in features_wanted:
|
||||||
sources += [
|
sources += [
|
||||||
"embed/trezorhal/stm32f4/usb.c",
|
"embed/trezorhal/stm32f4/usb/usb.c",
|
||||||
"embed/trezorhal/stm32f4/usbd_conf.c",
|
"embed/trezorhal/stm32f4/usb/usbd_conf.c",
|
||||||
"embed/trezorhal/stm32f4/usbd_core.c",
|
"embed/trezorhal/stm32f4/usb/usbd_core.c",
|
||||||
"embed/trezorhal/stm32f4/usbd_ctlreq.c",
|
"embed/trezorhal/stm32f4/usb/usbd_ctlreq.c",
|
||||||
"embed/trezorhal/stm32f4/usbd_ioreq.c",
|
"embed/trezorhal/stm32f4/usb/usbd_ioreq.c",
|
||||||
"vendor/micropython/lib/stm32lib/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.c",
|
"vendor/micropython/lib/stm32lib/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.c",
|
||||||
]
|
]
|
||||||
features_available.append("usb")
|
features_available.append("usb")
|
||||||
|
@ -82,11 +82,11 @@ def configure(
|
|||||||
|
|
||||||
if "usb" in features_wanted:
|
if "usb" in features_wanted:
|
||||||
sources += [
|
sources += [
|
||||||
"embed/trezorhal/stm32u5/usb.c",
|
"embed/trezorhal/stm32u5/usb/usb.c",
|
||||||
"embed/trezorhal/stm32u5/usbd_conf.c",
|
"embed/trezorhal/stm32u5/usb/usbd_conf.c",
|
||||||
"embed/trezorhal/stm32u5/usbd_core.c",
|
"embed/trezorhal/stm32u5/usb/usbd_core.c",
|
||||||
"embed/trezorhal/stm32u5/usbd_ctlreq.c",
|
"embed/trezorhal/stm32u5/usb/usbd_ctlreq.c",
|
||||||
"embed/trezorhal/stm32u5/usbd_ioreq.c",
|
"embed/trezorhal/stm32u5/usb/usbd_ioreq.c",
|
||||||
"vendor/stm32u5xx_hal_driver/Src/stm32u5xx_ll_usb.c",
|
"vendor/stm32u5xx_hal_driver/Src/stm32u5xx_ll_usb.c",
|
||||||
]
|
]
|
||||||
features_available.append("usb")
|
features_available.append("usb")
|
||||||
|
@ -42,11 +42,11 @@ def configure(
|
|||||||
|
|
||||||
if "usb" in features_wanted:
|
if "usb" in features_wanted:
|
||||||
sources += [
|
sources += [
|
||||||
"embed/trezorhal/stm32f4/usb.c",
|
"embed/trezorhal/stm32f4/usb/usb.c",
|
||||||
"embed/trezorhal/stm32f4/usbd_conf.c",
|
"embed/trezorhal/stm32f4/usb/usbd_conf.c",
|
||||||
"embed/trezorhal/stm32f4/usbd_core.c",
|
"embed/trezorhal/stm32f4/usb/usbd_core.c",
|
||||||
"embed/trezorhal/stm32f4/usbd_ctlreq.c",
|
"embed/trezorhal/stm32f4/usb/usbd_ctlreq.c",
|
||||||
"embed/trezorhal/stm32f4/usbd_ioreq.c",
|
"embed/trezorhal/stm32f4/usb/usbd_ioreq.c",
|
||||||
"vendor/micropython/lib/stm32lib/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.c",
|
"vendor/micropython/lib/stm32lib/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.c",
|
||||||
]
|
]
|
||||||
features_available.append("usb")
|
features_available.append("usb")
|
||||||
|
@ -65,11 +65,11 @@ def configure(
|
|||||||
]
|
]
|
||||||
if "usb" in features_wanted:
|
if "usb" in features_wanted:
|
||||||
sources += [
|
sources += [
|
||||||
"embed/trezorhal/stm32f4/usb.c",
|
"embed/trezorhal/stm32f4/usb/usb.c",
|
||||||
"embed/trezorhal/stm32f4/usbd_conf.c",
|
"embed/trezorhal/stm32f4/usb/usbd_conf.c",
|
||||||
"embed/trezorhal/stm32f4/usbd_core.c",
|
"embed/trezorhal/stm32f4/usb/usbd_core.c",
|
||||||
"embed/trezorhal/stm32f4/usbd_ctlreq.c",
|
"embed/trezorhal/stm32f4/usb/usbd_ctlreq.c",
|
||||||
"embed/trezorhal/stm32f4/usbd_ioreq.c",
|
"embed/trezorhal/stm32f4/usb/usbd_ioreq.c",
|
||||||
"vendor/micropython/lib/stm32lib/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.c",
|
"vendor/micropython/lib/stm32lib/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.c",
|
||||||
]
|
]
|
||||||
features_available.append("usb")
|
features_available.append("usb")
|
||||||
|
@ -62,11 +62,11 @@ def configure(
|
|||||||
|
|
||||||
if "usb" in features_wanted:
|
if "usb" in features_wanted:
|
||||||
sources += [
|
sources += [
|
||||||
"embed/trezorhal/stm32f4/usb.c",
|
"embed/trezorhal/stm32f4/usb/usb.c",
|
||||||
"embed/trezorhal/stm32f4/usbd_conf.c",
|
"embed/trezorhal/stm32f4/usb/usbd_conf.c",
|
||||||
"embed/trezorhal/stm32f4/usbd_core.c",
|
"embed/trezorhal/stm32f4/usb/usbd_core.c",
|
||||||
"embed/trezorhal/stm32f4/usbd_ctlreq.c",
|
"embed/trezorhal/stm32f4/usb/usbd_ctlreq.c",
|
||||||
"embed/trezorhal/stm32f4/usbd_ioreq.c",
|
"embed/trezorhal/stm32f4/usb/usbd_ioreq.c",
|
||||||
"vendor/micropython/lib/stm32lib/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.c",
|
"vendor/micropython/lib/stm32lib/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.c",
|
||||||
]
|
]
|
||||||
features_available.append("usb")
|
features_available.append("usb")
|
||||||
|
@ -58,11 +58,11 @@ def configure(
|
|||||||
|
|
||||||
if "usb" in features_wanted:
|
if "usb" in features_wanted:
|
||||||
sources += [
|
sources += [
|
||||||
"embed/trezorhal/stm32f4/usb.c",
|
"embed/trezorhal/stm32f4/usb/usb.c",
|
||||||
"embed/trezorhal/stm32f4/usbd_conf.c",
|
"embed/trezorhal/stm32f4/usb/usbd_conf.c",
|
||||||
"embed/trezorhal/stm32f4/usbd_core.c",
|
"embed/trezorhal/stm32f4/usb/usbd_core.c",
|
||||||
"embed/trezorhal/stm32f4/usbd_ctlreq.c",
|
"embed/trezorhal/stm32f4/usb/usbd_ctlreq.c",
|
||||||
"embed/trezorhal/stm32f4/usbd_ioreq.c",
|
"embed/trezorhal/stm32f4/usb/usbd_ioreq.c",
|
||||||
"vendor/micropython/lib/stm32lib/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.c",
|
"vendor/micropython/lib/stm32lib/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.c",
|
||||||
]
|
]
|
||||||
features_available.append("usb")
|
features_available.append("usb")
|
||||||
|
@ -58,11 +58,11 @@ def configure(
|
|||||||
|
|
||||||
if "usb" in features_wanted:
|
if "usb" in features_wanted:
|
||||||
sources += [
|
sources += [
|
||||||
"embed/trezorhal/stm32f4/usb.c",
|
"embed/trezorhal/stm32f4/usb/usb.c",
|
||||||
"embed/trezorhal/stm32f4/usbd_conf.c",
|
"embed/trezorhal/stm32f4/usb/usbd_conf.c",
|
||||||
"embed/trezorhal/stm32f4/usbd_core.c",
|
"embed/trezorhal/stm32f4/usb/usbd_core.c",
|
||||||
"embed/trezorhal/stm32f4/usbd_ctlreq.c",
|
"embed/trezorhal/stm32f4/usb/usbd_ctlreq.c",
|
||||||
"embed/trezorhal/stm32f4/usbd_ioreq.c",
|
"embed/trezorhal/stm32f4/usb/usbd_ioreq.c",
|
||||||
"vendor/micropython/lib/stm32lib/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.c",
|
"vendor/micropython/lib/stm32lib/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.c",
|
||||||
]
|
]
|
||||||
features_available.append("usb")
|
features_available.append("usb")
|
||||||
|
@ -100,11 +100,11 @@ def configure(
|
|||||||
|
|
||||||
if "usb" in features_wanted:
|
if "usb" in features_wanted:
|
||||||
sources += [
|
sources += [
|
||||||
"embed/trezorhal/stm32f4/usb.c",
|
"embed/trezorhal/stm32f4/usb/usb.c",
|
||||||
"embed/trezorhal/stm32f4/usbd_conf.c",
|
"embed/trezorhal/stm32f4/usb/usbd_conf.c",
|
||||||
"embed/trezorhal/stm32f4/usbd_core.c",
|
"embed/trezorhal/stm32f4/usb/usbd_core.c",
|
||||||
"embed/trezorhal/stm32f4/usbd_ctlreq.c",
|
"embed/trezorhal/stm32f4/usb/usbd_ctlreq.c",
|
||||||
"embed/trezorhal/stm32f4/usbd_ioreq.c",
|
"embed/trezorhal/stm32f4/usb/usbd_ioreq.c",
|
||||||
"vendor/micropython/lib/stm32lib/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.c",
|
"vendor/micropython/lib/stm32lib/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.c",
|
||||||
]
|
]
|
||||||
features_available.append("usb")
|
features_available.append("usb")
|
||||||
|
@ -100,11 +100,11 @@ def configure(
|
|||||||
|
|
||||||
if "usb" in features_wanted:
|
if "usb" in features_wanted:
|
||||||
sources += [
|
sources += [
|
||||||
"embed/trezorhal/stm32u5/usb.c",
|
"embed/trezorhal/stm32u5/usb/usb.c",
|
||||||
"embed/trezorhal/stm32u5/usbd_conf.c",
|
"embed/trezorhal/stm32u5/usb/usbd_conf.c",
|
||||||
"embed/trezorhal/stm32u5/usbd_core.c",
|
"embed/trezorhal/stm32u5/usb/usbd_core.c",
|
||||||
"embed/trezorhal/stm32u5/usbd_ctlreq.c",
|
"embed/trezorhal/stm32u5/usb/usbd_ctlreq.c",
|
||||||
"embed/trezorhal/stm32u5/usbd_ioreq.c",
|
"embed/trezorhal/stm32u5/usb/usbd_ioreq.c",
|
||||||
"vendor/stm32u5xx_hal_driver/Src/stm32u5xx_ll_usb.c",
|
"vendor/stm32u5xx_hal_driver/Src/stm32u5xx_ll_usb.c",
|
||||||
]
|
]
|
||||||
features_available.append("usb")
|
features_available.append("usb")
|
||||||
|
@ -102,11 +102,11 @@ def configure(
|
|||||||
|
|
||||||
if "usb" in features_wanted:
|
if "usb" in features_wanted:
|
||||||
sources += [
|
sources += [
|
||||||
"embed/trezorhal/stm32u5/usb.c",
|
"embed/trezorhal/stm32u5/usb/usb.c",
|
||||||
"embed/trezorhal/stm32u5/usbd_conf.c",
|
"embed/trezorhal/stm32u5/usb/usbd_conf.c",
|
||||||
"embed/trezorhal/stm32u5/usbd_core.c",
|
"embed/trezorhal/stm32u5/usb/usbd_core.c",
|
||||||
"embed/trezorhal/stm32u5/usbd_ctlreq.c",
|
"embed/trezorhal/stm32u5/usb/usbd_ctlreq.c",
|
||||||
"embed/trezorhal/stm32u5/usbd_ioreq.c",
|
"embed/trezorhal/stm32u5/usb/usbd_ioreq.c",
|
||||||
"vendor/stm32u5xx_hal_driver/Src/stm32u5xx_ll_usb.c",
|
"vendor/stm32u5xx_hal_driver/Src/stm32u5xx_ll_usb.c",
|
||||||
]
|
]
|
||||||
features_available.append("usb")
|
features_available.append("usb")
|
||||||
|
Loading…
Reference in New Issue
Block a user