[WIP] Refactor CTPC logic to allow future converters #16598
Draft
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.
Description
Initial steps at supporting additional converters.
Overall goals
pin_defs.h
from becoming a dumping groundPIN_COMPATIBLE = promicro
and rules to only allow CTPC when compatiblemake xd48pro CTPC=yes
PIN_COMPATIBLE
- Remove converter assumption that everything is a promicro #20330common_features.mk
andconvert_to_proton_c.mk
config.h
/rules.mk
config defaultingallow more shorthand along the lines ofCTPC = yes
?qmk info -f json -kb <keyboard> -km <keymap_with_convert_to>
shows pre-converted info (incorrect mcu/bootloader/protocol/etc)Notes
Include path is not consistent enough to have the same header name for converted pin defsHow to infer the conversion makefile if locatedplatforms/chibios/boards/QMK_PROTON_C
?Types of Changes
Issues Fixed or Closed by This PR
Checklist