-
-
Notifications
You must be signed in to change notification settings - Fork 40.1k
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
support a new MCU:FS026. add a new keyboard:essemi/fs026. #23392
Conversation
Half of my review comments on the previous PR still apply. |
Also, why are things ES32 as well as FS026? Should the MCU actually be called ES32FS026, much like this? Why are you using ES32 if it's been renamed? |
The MCU library I am using comes from ES32_SDK. |
The reason for QMK CI Build failure is that ChibiOS Contrib has not been updated to the latest version. next step: add a corresponding test board under keyboards/handwired/onekey? |
@tzarc Is it convenient to update ChibiOS Contrib? (FS026 merged into ChibiOS Contrib last week) |
CI disabled until we update ChibiOS-Contrib -- #23405. |
When will the ChibiOS-Contrib be updated approximately? |
Already done. |
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.
After everything has been applied, the only changes in this PR should be under keyboards/essemi
. No other files need to be modified at this stage.
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.
More changes.
keyboards/essemi/fs026/mcuconf.h
Outdated
#define ES32_PWM_USE_TIM1 FALSE | ||
#define ES32_PWM_USE_TIM2 FALSE | ||
#define ES32_PWM_USE_TIM3 FALSE | ||
#define ES32_PWM_USE_TIM4 FALSE |
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.
These are written as TIM1...TIM4, but the backlight is called GP16C4T2.
The defines don't match https://github.com/ChibiOS/ChibiOS-Contrib/blob/chibios-21.11.x/os/hal/ports/ES32/LLD/TIMv1/hal_pwm_lld.h
Please fix up this file so that ALL item names are actually correct, not just the PWM ones.
What modifications are needed? |
Your |
If the MCU driver currently only supports GPIO, USB, and PWM functions. Is this okay? In the future, improve MCU drivers. |
This is what a normal Note that it includes all peripheral types. This is the expectation, even if they're not yet implemented in ChibiOS-Contrib. I understand you've only implemented the bare minimum in the base layer, but we don't want to be modifying and adapting these files every time you onboard a new peripheral. As it stands the only peripheral you have added is PWM, so technically the default should be that USB and GPIO are disabled and your keyboard shouldn't work. As such, we'll assume you've misconfigured your code in ChibiOS-Contrib if they're working without being configured. Might be best fixing that up -- peripherals should be disabled by default in the base layer. |
OK.I will add all peripherals in mcuconf. h. |
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
Please stop pinging tzarc, and take note of the message we use on Discord.
|
ok |
Thank you for your contribution! |
Thank you for your contribution! |
support a new MCU:FS026.
add a new keyboard:essemi/fs026.
Need to update ChibiOS-Contrib(Merged PR:ChibiOS/ChibiOS-Contrib#397)
Description
Types of Changes
Issues Fixed or Closed by This PR
Checklist