-
-
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
development question: pin abstraction layer and Teensy 4.x #13052
Comments
Just spitballing..... would it be worth adding a new platform under |
Main rationale being things like the Proton-C being defined as the Pro Micro pinout when using |
Also, kinda dodgy and I don't recommend it... but Errr, disregard, my brain totally skipped the |
Tightly coupling the pin definitions to the platform of the keyboard sounds good to me. That should give us enough flexibility to deal with all pin naming schemes. There already is https://github.com/ChibiOS/ChibiOS-Contrib/blob/chibios-20.3.x/os/hal/boards/PJRC_TEENSY_4_1/board.h, which already defines the LINE_PIN0 .. LINE_PIN54 macros. I’m assuming you are suggesting a new What should this naming scheme be? T4_1 .. T4_54? Would it be okay to modify the allowed pin names as I did in kinx-project@791dc61, or do we want to avoid that? I’m not super familar with all the different includes and build system configuration that QMK uses, so I appreciate your guidance on this! Thanks! |
@tzarc friendly ping for the questions in my previous comment? :) Thanks! |
So we now have the Thanks, |
Will ping @qmk/collaborators internally and see how we'd like to proceed. Sorry for the holdup. |
So after some discussion we're okay with allowing for The link to the validation modifications is almost fine as-is, however the suggestion would be to split it out into a separate entry in the "oneOf" section, so that there's an explicit rule rather than piggybacking off the existing one. |
Thanks for following up! PR #13247 sent |
Currently, in
tmk_core/common/chibios/pin_defs.h
, we have a bunch of defines like these:These correspond to the pin names from the schematic (excerpt):
On the Teensy 4.x (NXP
MIMXRT1062
), however, the GPIO blocks are namedGPIO1
toGPIO9
(numbers instead of letters).Worse, the pin names no longer follow the PT… scheme, and seem all over the place:
Parts of QMK seem to require pin names to follow the
<letter><digits>
format, e.g.:qmk_firmware/lib/python/qmk/info.py
Line 146 in 6bafefa
This requirement wasn’t as strict when I started development of my
kint41
controller, but has gotten stricter over the time, to the point where I can’t rebase my changes onto current QMKdevelop
because of the pin naming.What is the desired solution for pin naming with the Teensy 4.x?
Thanks
The text was updated successfully, but these errors were encountered: