Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stm32fxx family hal #465

Closed
wants to merge 9 commits into from
Closed

Conversation

findlayfeng
Copy link
Contributor

stm32f102 stm32f103 general code
stm32f105 stm32f107 need to modify the contents of usbd
The last commit added stm32f103xb_bl and stm32f103xe_bl

This PR merged #456 #457
This is an alternative solution to #133 #178 #257

This header file defines gpio and pin,
but is included in many places that are not needed.
Because these places need to introduce cmsis_core,
and because cmsis_core depends on the IRQn_Type definition of soc,
the cmsis_core header file cannot be directly imported in the corresponding place.
So modify the response of the .yaml file with the --preinclude parameter
to globally include the definition of the soc containing the cmsis_core header file.
"#include "IO_Config.h"" is safely removed.
Added only where gpio and pin definitions are needed

Signed-off-by: Findlay Feng <i@fengch.me>
Remove "extern"

Signed-off-by: Findlay Feng <i@fengch.me>
Some header files in rtos are duplicated in the definitions
in the standard c header file,
and there are warnings when repeating the inclusion.
Added #undef to eliminate warnings

Signed-off-by: Findlay Feng <i@fengch.me>
Use python2 if multiple versions of python are installed

Signed-off-by: Findlay Feng <i@fengch.me>
When using static __inline to define a function in armcc,
a file-related symbol is generated.
If it is the same file name,
it is possible to generate duplicate definition errors.
Weakly defined files have a very high probability of being replaced by files of the same file name,
resulting in symbol conflicts during the linking process.

Signed-off-by: Findlay Feng <i@fengch.me>
In the stm32f1 family stm32f102 stm32f103 stm32f105 stm32f107 series
has usb fs can be used when rom and ram are satisfied

Signed-off-by: Findlay Feng <i@fengch.me>
Signed-off-by: Findlay Feng <i@fengch.me>
1.Add stm32f103xb
2.Add stm32f103xe

Signed-off-by: Findlay Feng <i@fengch.me>
@findlayfeng
Copy link
Contributor Author

findlayfeng commented Jul 30, 2018

The code is for the entire series, culling or weakly defining some settings that need to be specified.
I only tested the MSD and left a lot of "todo".
If this change is feasible, I will perfect it.
In the branch https://github.com/findlayfeng/DAPLink/tree/stm32f103zet6_mini_core I demonstrated how to complete a specific if

@brianesquilona
Copy link
Contributor

#257 was merged instead because of complete implementation. This PR will be closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants