-
-
Notifications
You must be signed in to change notification settings - Fork 40k
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
Added SPI_SCK_PAL_CURRENT_LEVEL configuration #15389
Conversation
Retargeted to |
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.
LEVEL
, not LEVE
?
|
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.
Not 100% sure why this would need to be configurable
@@ -63,6 +63,14 @@ | |||
# endif | |||
#endif | |||
|
|||
#ifndef SPI_SCK_PAL_CURRENT_LEVEL | |||
# if defined(WB32F3G71xx) |
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.
The whole point of platforms/chibios/chibios_config.h
is so this doesnt happen
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.
This still needs resolving, and should be implemented per the existing examples within chibios_config.h
.
ChibiOS/ChibiOS-Contrib#309 has been merged. |
Should there be some progress in this PR? |
We are not updating chibios or chibios-contrib this cycle, so no, its still on hold. |
I believe this is mostly waiting on #16251 now. That and for a matching update for chibios-contrib. |
Could this PR be merged as soon as possible? I have a keyboard and need it. I see that Chibios-contrib has been updated. |
Even if it's merged today, it will be merged to develop, and won't hit master until the next breaking changes cycle (end of may, I believe). That said:
is there a specific reason for needing this? |
This is because the default IO configuration is the lowest driving capacity. If the resistance used in the circuit design of some SPI devices is too large, the driving capacity will be insufficient and normal communication will not be possible. |
With the merger now in place, customers will be able to develop keyboards based on the Develop branch and merge into the Master branch in May. |
I think this PR needs some progress, it has been 5 months. These additions do not affect the overall architecture of the application. |
I would argue they do, given its an additional abstraction that is now in place. An abstraction that personally I don't think is correct for the direction of QMK. If this needs to be configurable is still potentially in question, given the USB config in contrib hard codes the value https://github.com/ChibiOS/ChibiOS-Contrib/blob/chibios-21.11.x/os/hal/ports/WB32/WB32F3G71xx/hal_lld.c#L345. As for timeframes, I would say resolving comments and not actually changing anything for them is what is partially slowing this down overall. |
@zvecr Please help me review whether the current handling is feasible. Thank you. |
Thank you for your contribution! |
@wb-Joy can you try the alternate solution #17650 please? |
Description
Depends on ChibiOS/ChibiOS-Contrib#309 and subsequent update of the submodule.
The SCK pin of WB32F371XX MCU needs to increase the driving current when using SPI, so add this code.
Types of Changes
Issues Fixed or Closed by This PR
Checklist