mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-18 12:28:09 +00:00
feat(core): add STM32CubeU5 submodule
[no changelog]
This commit is contained in:
parent
4c40cb279c
commit
937b7d34d0
3
.gitmodules
vendored
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
|
||||
|
@ -158,7 +158,6 @@ env.Replace(
|
||||
'embed/models',
|
||||
'embed/trezorhal',
|
||||
'embed/extmod/modtrezorui',
|
||||
'vendor/micropython/lib/cmsis/inc',
|
||||
'vendor/nanopb',
|
||||
] + CPPPATH_MOD + PATH_HAL,
|
||||
CPPDEFINES=[
|
||||
|
@ -150,7 +150,6 @@ env.Replace(
|
||||
'embed/models',
|
||||
'embed/trezorhal',
|
||||
'embed/extmod/modtrezorui',
|
||||
'vendor/micropython/lib/cmsis/inc',
|
||||
'vendor/nanopb',
|
||||
] + CPPPATH_MOD + PATH_HAL,
|
||||
CPPDEFINES=[
|
||||
|
@ -448,7 +448,6 @@ env.Replace(
|
||||
'embed/trezorhal',
|
||||
'embed/extmod/modtrezorui',
|
||||
'vendor/micropython',
|
||||
'vendor/micropython/lib/cmsis/inc',
|
||||
] + CPPPATH_MOD + PATH_HAL,
|
||||
CPPDEFINES=[
|
||||
'FIRMWARE',
|
||||
|
@ -150,7 +150,6 @@ env.Replace(
|
||||
'embed/models',
|
||||
'embed/trezorhal',
|
||||
'embed/extmod/modtrezorui',
|
||||
'vendor/micropython/lib/cmsis/inc',
|
||||
] + CPPPATH_MOD + PATH_HAL,
|
||||
CPPDEFINES=[
|
||||
'TREZOR_PRODTEST',
|
||||
|
@ -118,7 +118,6 @@ env.Replace(
|
||||
'embed/models',
|
||||
'embed/trezorhal',
|
||||
'embed/extmod/modtrezorui',
|
||||
'vendor/micropython/lib/cmsis/inc',
|
||||
] + CPPPATH_MOD + PATH_HAL,
|
||||
CPPDEFINES=[
|
||||
'TREZOR_MODEL_'+TREZOR_MODEL,
|
||||
|
@ -123,7 +123,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);
|
||||
|
||||
|
@ -10,6 +10,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",
|
||||
]
|
||||
@ -68,6 +69,7 @@ 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>;"
|
||||
"-DFLASH_BLOCK_WORDS=1;"
|
||||
"-DFLASH_BIT_ACCESS=1"
|
||||
|
1
core/vendor/stm32cube-u5
vendored
Symbolic link
1
core/vendor/stm32cube-u5
vendored
Symbolic link
@ -0,0 +1 @@
|
||||
../../vendor/stm32cube-u5
|
1
vendor/stm32cube-u5
vendored
Submodule
1
vendor/stm32cube-u5
vendored
Submodule
@ -0,0 +1 @@
|
||||
Subproject commit 7942fc4ea05026e4e9ce72d680f704e9433bce42
|
Loading…
Reference in New Issue
Block a user