mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-01-03 03:50:58 +00:00
chore(core): optimize flash usage - SD card on U5
[no changelog]
This commit is contained in:
parent
f83e33399f
commit
5e4e398f64
4083
core/embed/trezorhal/stm32u5/stm32u5xx_hal_sd.c
Normal file
4083
core/embed/trezorhal/stm32u5/stm32u5xx_hal_sd.c
Normal file
File diff suppressed because it is too large
Load Diff
@ -38,13 +38,11 @@ def stm32u5_common_files(env, defines, sources, paths):
|
||||
"vendor/stm32cube-u5/Drivers/STM32U5xx_HAL_Driver/Src/stm32u5xx_hal_rcc.c",
|
||||
"vendor/stm32cube-u5/Drivers/STM32U5xx_HAL_Driver/Src/stm32u5xx_hal_rcc_ex.c",
|
||||
"vendor/stm32cube-u5/Drivers/STM32U5xx_HAL_Driver/Src/stm32u5xx_hal_rtc.c",
|
||||
"vendor/stm32cube-u5/Drivers/STM32U5xx_HAL_Driver/Src/stm32u5xx_hal_sd.c",
|
||||
"vendor/stm32cube-u5/Drivers/STM32U5xx_HAL_Driver/Src/stm32u5xx_hal_spi.c",
|
||||
"vendor/stm32cube-u5/Drivers/STM32U5xx_HAL_Driver/Src/stm32u5xx_hal_sram.c",
|
||||
"vendor/stm32cube-u5/Drivers/STM32U5xx_HAL_Driver/Src/stm32u5xx_hal_tim.c",
|
||||
"vendor/stm32cube-u5/Drivers/STM32U5xx_HAL_Driver/Src/stm32u5xx_hal_tim_ex.c",
|
||||
"vendor/stm32cube-u5/Drivers/STM32U5xx_HAL_Driver/Src/stm32u5xx_ll_fmc.c",
|
||||
"vendor/stm32cube-u5/Drivers/STM32U5xx_HAL_Driver/Src/stm32u5xx_ll_sdmmc.c",
|
||||
]
|
||||
|
||||
sources += [
|
||||
|
@ -60,9 +60,13 @@ def configure(
|
||||
|
||||
if "sd_card" in features_wanted:
|
||||
sources += ["embed/trezorhal/stm32u5/sdcard.c"]
|
||||
sources += ["embed/trezorhal/stm32u5/stm32u5xx_hal_sd.c"]
|
||||
sources += ["embed/extmod/modtrezorio/ff.c"]
|
||||
sources += ["embed/extmod/modtrezorio/ffunicode.c"]
|
||||
features_available.append("sd_card")
|
||||
sources += [
|
||||
"vendor/stm32cube-u5/Drivers/STM32U5xx_HAL_Driver/Src/stm32u5xx_ll_sdmmc.c"
|
||||
]
|
||||
|
||||
if "sbu" in features_wanted:
|
||||
sources += ["embed/trezorhal/stm32u5/sbu.c"]
|
||||
|
Loading…
Reference in New Issue
Block a user