feat(core): add STM32CubeU5 submodule

[no changelog]
pull/3402/head
cepetr 8 months ago committed by tychovrahe
parent ccdb7d0560
commit d5953824cc

3
.gitmodules vendored

@ -21,3 +21,6 @@
[submodule "vendor/fido2-tests"]
path = vendor/fido2-tests
url = https://github.com/trezor/fido2-tests.git
[submodule "vendor/stm32cube-u5"]
path = vendor/stm32cube-u5
url = https://github.com/STMicroelectronics/STM32CubeU5.git

@ -156,7 +156,6 @@ env.Replace(
'embed/models',
'embed/trezorhal',
'embed/extmod/modtrezorui',
'vendor/micropython/lib/cmsis/inc',
'vendor/nanopb',
] + CPPPATH_MOD + PATH_HAL,
CPPDEFINES=[

@ -148,7 +148,6 @@ env.Replace(
'embed/models',
'embed/trezorhal',
'embed/extmod/modtrezorui',
'vendor/micropython/lib/cmsis/inc',
'vendor/nanopb',
] + CPPPATH_MOD + PATH_HAL,
CPPDEFINES=[

@ -442,7 +442,6 @@ env.Replace(
'embed/trezorhal',
'embed/extmod/modtrezorui',
'vendor/micropython',
'vendor/micropython/lib/cmsis/inc',
] + CPPPATH_MOD + PATH_HAL,
CPPDEFINES=[
'FIRMWARE',

@ -146,7 +146,6 @@ env.Replace(
'embed/models',
'embed/trezorhal',
'embed/extmod/modtrezorui',
'vendor/micropython/lib/cmsis/inc',
] + CPPPATH_MOD + PATH_HAL,
CPPDEFINES=[
'TREZOR_PRODTEST',

@ -116,7 +116,6 @@ env.Replace(
'embed/models',
'embed/trezorhal',
'embed/extmod/modtrezorui',
'vendor/micropython/lib/cmsis/inc',
] + CPPPATH_MOD + PATH_HAL,
CPPDEFINES=[
'TREZOR_MODEL_'+TREZOR_MODEL,

@ -103,7 +103,6 @@ fn prepare_bindings() -> bindgen::Builder {
clang_args.push("-nostdinc");
clang_args.push("-I../firmware");
clang_args.push("-I../../build/firmware");
clang_args.push("-I../../vendor/micropython/lib/cmsis/inc");
clang_args.push("-DUSE_HAL_DRIVER");
bindings = bindings.clang_args(&clang_args);

@ -8,6 +8,7 @@ def stm32f4_common_files(env, defines, sources, paths):
paths += [
"embed/trezorhal/stm32f4",
"vendor/micropython/lib/cmsis/inc",
"vendor/micropython/lib/stm32lib/STM32F4xx_HAL_Driver/Inc",
"vendor/micropython/lib/stm32lib/CMSIS/STM32F4xx/Include",
]
@ -65,5 +66,6 @@ def stm32f4_common_files(env, defines, sources, paths):
"-I../trezorhal/stm32f4;"
"-I../../vendor/micropython/lib/stm32lib/STM32F4xx_HAL_Driver/Inc;"
"-I../../vendor/micropython/lib/stm32lib/CMSIS/STM32F4xx/Include;"
"-I../../vendor/micropython/lib/cmsis/inc;"
"-DSTM32_HAL_H=<stm32f4xx.h>"
)

@ -0,0 +1 @@
../../vendor/stm32cube-u5

@ -0,0 +1 @@
Subproject commit 7942fc4ea05026e4e9ce72d680f704e9433bce42
Loading…
Cancel
Save