-
Notifications
You must be signed in to change notification settings - Fork 3k
STM32: can_api.c files factorization #3737
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
Conversation
410b13b to
3bcd827
Compare
LMESTM
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
targets/TARGET_STM/can_api.c
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could we use
#if defined(TARGET_STM32F0)
..
#else
rather than the family list ?
Or maybe a specific property name that can be defined in can_device.h files ?
In case a new family is added, this would not require a change here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good idea. I'll put a "#else" instead of this big list.
|
If Travis doesn't merge with master you'll need to rebase this to get the fix that had to do with USB and STM folder renames. |
|
retest uvisor |
2b089e1 to
d1911db
Compare
|
Rebased. |
|
/morph test-nightly |
Result: FAILUREYour command has finished executing! Here's what you wrote!
OutputBuild failed! |
|
NUCLEO_F207ZG fails, all 3 toolchains: |
|
Hi @bcostm, you can also view detailed results by clicking on the |
|
I have removed the can_api.c file which was still present in the TARGET_STM32F2 folder. I think this is the root cause of this error. But I don't understand why I don't have this error myself when I build this target ? This is why I didn't see it before. I rebased again also. |
|
/morph test-nightly |
Result: SUCCESSYour command has finished executing! Here's what you wrote!
OutputAll builds and test passed! |
|
Hi all, I can supply a patch for this PR or issue a separate one, whatever's less work. |
@svogl Please send separate patch |
targets/TARGET_STM/can_api.c
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please fix formatting { as it was?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am confused now. I thought the correct coding style was to have the { at the end of the function name ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, it is not. There are still some leftovers in the code base, we are trying to fix those.
Create can_device.h files to define specific code for the STM32 family
a8b6d2a to
30565cb
Compare
|
retest uvisor |
|
/morph test |
Result: SUCCESSYour command has finished executing! Here's what you wrote!
OutputAll builds and test passed! |
|
Cool, |
Description
This PR factorize the can_api.c files which were present in all TARGET_STM32Fx folders.
Changes:
This will also update the can_filter function for all STM32 devices. It has been done previously only for F0 devices (PR #2988)
Status
READY
Migrations
If this PR changes any APIs or behaviors, give a short description of what API users should do when this PR is merged.
NO
Related PRs
#2988
Todos
CC @martinjaeger @mgiaco