1
0
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:
cepetr 2024-05-28 10:00:41 +02:00 committed by cepetr
parent f5d35da635
commit 8e429b0352
37 changed files with 51 additions and 63 deletions

View File

@ -0,0 +1 @@
../stm32f4/usb

View File

@ -1 +0,0 @@
../stm32f4/usb.c

View File

@ -1 +0,0 @@
../stm32f4/usb_hid-impl.h

View File

@ -1 +0,0 @@
../stm32f4/usb_vcp-impl.h

View File

@ -1 +0,0 @@
../stm32f4/usb_webusb-impl.h

View File

@ -1 +0,0 @@
../stm32f4/usbd_conf.c

View File

@ -1 +0,0 @@
../stm32f4/usbd_conf.h

View File

@ -1 +0,0 @@
../stm32f4/usbd_core.c

View File

@ -1 +0,0 @@
../stm32f4/usbd_core.h

View File

@ -1 +0,0 @@
../stm32f4/usbd_ctlreq.c

View File

@ -1 +0,0 @@
../stm32f4/usbd_ctlreq.h

View File

@ -1 +0,0 @@
../stm32f4/usbd_def.h

View File

@ -1 +0,0 @@
../stm32f4/usbd_ioreq.c

View File

@ -1 +0,0 @@
../stm32f4/usbd_ioreq.h

View File

@ -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")

View File

@ -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")

View File

@ -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")

View File

@ -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")

View File

@ -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")

View File

@ -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")

View File

@ -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")

View File

@ -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")

View File

@ -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")

View File

@ -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")