Repository navigation
KINETIS: Add USBx_CTL_RESUME to the KL27Zxxx header - #461
Draft
shubham0x13 wants to merge 1 commit into
Draft
shubham0x13 wants to merge 1 commit into
shubham0x13 wants to merge 1 commit into
Conversation
usb_lld_wakeup_host() uses USBx_CTL_RESUME, which kl25z.h and kl26z.h define but kl27zxxx.h did not, so KL27Zxxx builds with HAL_USE_USB failed to compile. Use the same value as kl26z.h.
shubham0x13
force-pushed
the
kinetis-kl27-usbx-ctl-resume
branch
from
November 4, 2026 16:34
0d41eb5 to
5b04d19
Compare
shubham0x13
marked this pull request as draft
November 19, 2026 06:49
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
USBx_CTL_RESUME, used byusb_lld_wakeup_host(), is not defined inkl27zxxx.h, so KL27Zxxx builds withHAL_USE_USBenabled fail to compile. It is defined the same way inkl26z.h.kl27zxx.h(KL27Z32/64) is not changed: its reference manual lists bit 2 ofUSBx_CTLas reserved.Tested:
testhal/KINETIS/KL27Z/BLINKwithHAL_USE_USBset toTRUEfails before and builds after.tools/chbuild.shpasses ontesthal/KINETISanddemos/KINETIS.Found while using the KL27Zxxx device for an NXP MCXC243 board: its reference manual has the bit (bit 2 of
USBx_CTL) and USB remote wakeup works on hardware.