forked from flipperdevices/flipperzero-firmware
-
-
Notifications
You must be signed in to change notification settings - Fork 546
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #320 from Hish15/P2H/develop_H5
Integration of H5 family
- Loading branch information
Showing
10 changed files
with
2,042 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
set(STM32_H5_TYPES | ||
H503xx H562xx H563xx H573xx | ||
) | ||
|
||
set(STM32_H5_TYPE_MATCH | ||
"H503.." "H562.." "H563.." "H573.." | ||
) | ||
set(STM32_H5_RAM_SIZES | ||
32K 640K 640K 640K | ||
) | ||
set(STM32_H5_CCRAM_SIZES | ||
0K 0K 0K 0K | ||
) | ||
|
||
stm32_util_create_family_targets(H5) | ||
|
||
target_compile_options(STM32::H5 INTERFACE | ||
-mcpu=cortex-m33 -mfloat-abi=hard -mfpu=fpv5-sp-d16 -mthumb | ||
) | ||
|
||
target_link_options(STM32::H5 INTERFACE | ||
-mcpu=cortex-m33 -mfloat-abi=hard -mfpu=fpv5-sp-d16 -mthumb | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# Supporting new families | ||
|
||
## Write device file | ||
|
||
a file <family>.cmake must be added to the folder cmake/stm32 | ||
This file containes the differents devices and the regex used to parse them. | ||
It also give information on the RAM and CCRAM available | ||
|
||
## Add family to list of know families | ||
|
||
Update the list `STM32_SUPPORTED_FAMILIES_LONG_NAME` located in the cmake/stm32/common.cmake file | ||
|
||
## Add devices to list of devices in devices.cmake | ||
|
||
Add all known devices to the list of all devices | ||
|
||
## Update cube, cmsis and hal version in utilities.cmake | ||
|
||
The versions to use can be found as follow: | ||
- Cube version : a valid tag from the repo https://github.com/STMicroelectronics/STM32Cube${FAMILY} | ||
- Cmsis version : a valid tag from the repo https://github.com/STMicroelectronics/cmsis_device_${FAMILY_L} | ||
- Hal version : a valid tag from the repo https://github.com/STMicroelectronics/stm32${FAMILY_L}xx_hal_driver | ||
|
||
## Add family to CI | ||
|
||
Add the file stm32${FAMILY_L}xx_hal_conf.h file to the root folder of each test. (A template is provided in the corresponding HAL) | ||
Update the cmake.yml workflow file to include the new family |
Oops, something went wrong.