Skip to content
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

Add support for Model M USB C Controller #7393

Merged
merged 28 commits into from
Nov 20, 2019
Merged

Conversation

ashpil
Copy link
Contributor

@ashpil ashpil commented Nov 17, 2019

Description

Types of Changes

  • Core
  • Bugfix
  • New feature
  • Enhancement/optimization
  • Keyboard (addition or update)
  • Keymap/layout/userspace (addition or update)
  • Documentation

Issues Fixed or Closed by This PR

Checklist

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • I have tested the changes and verified that they work and don't break anything (as well as I can manage).

keyboards/ashpil/modelm_usbc/rules.mk Outdated Show resolved Hide resolved
keyboards/ashpil/modelm_usbc/rules.mk Outdated Show resolved Hide resolved
keyboards/ashpil/modelm_usbc/rules.mk Outdated Show resolved Hide resolved
keyboards/ashpil/modelm_usbc/rules.mk Outdated Show resolved Hide resolved
keyboards/ashpil/modelm_usbc/rules.mk Outdated Show resolved Hide resolved
keyboards/ashpil/modelm_usbc/modelm_usbc.c Outdated Show resolved Hide resolved
keyboards/ashpil/modelm_usbc/modelm_usbc.c Outdated Show resolved Hide resolved
keyboards/ashpil/modelm_usbc/keymaps/default/keymap.c Outdated Show resolved Hide resolved
keyboards/ashpil/modelm_usbc/keymaps/ashpil/keymap.c Outdated Show resolved Hide resolved
keyboards/ashpil/modelm_usbc/keymaps/default/config.h Outdated Show resolved Hide resolved
@fauxpark fauxpark requested a review from a team November 17, 2019 23:32
keyboards/ashpil/modelm_usbc/config.h Outdated Show resolved Hide resolved
@ashpil
Copy link
Contributor Author

ashpil commented Nov 18, 2019

That should be it! Fixed all the stuff. Thanks for the review you guys, I'm really inexperienced with C and basically was following templates, so the code looks so much better now.

Copy link
Member

@noroadsleft noroadsleft left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Default keymap needs COMBO_COUNT and COMBO_TERM defined in keyboards/ashpil/modelm_usbc/keymaps/default/config.h. Without those defines the keymap doesn't compile.

(Aside: We should maybe do something about this in core.)

@ashpil
Copy link
Contributor Author

ashpil commented Nov 18, 2019

Default keymap needs COMBO_COUNT and COMBO_TERM defined in keyboards/ashpil/modelm_usbc/keymaps/default/config.h. Without those defines the keymap doesn't compile.

(Aside: We should maybe do something about this in core.)

Just got rid of the combo in the default keymap to fix that. I think it's better to keep default simple.

keyboards/ashpil/modelm_usbc/rules.mk Outdated Show resolved Hide resolved
keyboards/ashpil/modelm_usbc/rules.mk Outdated Show resolved Hide resolved
@fauxpark
Copy link
Member

fauxpark commented Nov 18, 2019

It may be a good idea to turn on Bootmagic Lite in the rules.mk, as now the default keymap has no easily accessible way to reset the board.

Also, this might be better placed in converter/ like the original.

@ashpil
Copy link
Contributor Author

ashpil commented Nov 18, 2019

Also, this might be better placed in converter/ like the original.

Is there a set definition anywhere on what exactly belongs in converter/ ? Because I was surprised the original went there in the first place- as it's not a converter, it's a replacement. Rather than converting from PS/2 to USB, it's directly starting in USB. Converter would be a misnomer.

@ashpil
Copy link
Contributor Author

ashpil commented Nov 18, 2019

It may be a good idea to turn on Bootmagic Lite in the rules.mk, as now the default keymap has no easily accessible way to reset the board.

Decided to just add the reset combo back to the default keymap. Seems simpler than doing bootmagic.

keyboards/ashpil/modelm_usbc/config.h Show resolved Hide resolved
keyboards/ashpil/modelm_usbc/rules.mk Outdated Show resolved Hide resolved
keyboards/ashpil/modelm_usbc/README.md Outdated Show resolved Hide resolved
keyboards/ashpil/modelm_usbc/modelm_usbc.h Outdated Show resolved Hide resolved
@ashpil ashpil requested a review from zvecr November 19, 2019 05:34
keyboards/ashpil/modelm_usbc/keymaps/default/keymap.c Outdated Show resolved Hide resolved
keyboards/ashpil/modelm_usbc/keymaps/default/keymap.c Outdated Show resolved Hide resolved
keyboards/ashpil/modelm_usbc/keymaps/default/keymap.c Outdated Show resolved Hide resolved
keyboards/ashpil/modelm_usbc/keymaps/ashpil/keymap.c Outdated Show resolved Hide resolved
keyboards/ashpil/modelm_usbc/info.json Outdated Show resolved Hide resolved
@ashpil
Copy link
Contributor Author

ashpil commented Nov 20, 2019

Sweet, done! Thanks for helping make this so much better.

keyboards/ashpil/modelm_usbc/info.json Outdated Show resolved Hide resolved
keyboards/ashpil/modelm_usbc/info.json Outdated Show resolved Hide resolved
keyboards/ashpil/modelm_usbc/info.json Outdated Show resolved Hide resolved
@ashpil ashpil requested a review from noroadsleft November 20, 2019 05:05
Copy link
Member

@noroadsleft noroadsleft left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay this should be the very last things. If I find anything else wrong after this I'll fix it in another PR.

keyboards/ashpil/modelm_usbc/info.json Outdated Show resolved Hide resolved
keyboards/ashpil/modelm_usbc/info.json Outdated Show resolved Hide resolved
ashpil and others added 2 commits November 19, 2019 21:26
Copy link
Member

@noroadsleft noroadsleft left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉

@noroadsleft
Copy link
Member

Thanks!

@noroadsleft noroadsleft merged commit acd02e4 into qmk:master Nov 20, 2019
ripxorip pushed a commit to ripxorip/qmk_firmware that referenced this pull request Dec 3, 2019
* added usb c model m

* added readme

* Update keyboards/ashpil/modelm_usbc/rules.mk

* Update keyboards/ashpil/modelm_usbc/rules.mk

* Update keyboards/ashpil/modelm_usbc/rules.mk

* Update keyboards/ashpil/modelm_usbc/rules.mk

* Update keyboards/ashpil/modelm_usbc/rules.mk

* Update keyboards/ashpil/modelm_usbc/rules.mk

* cleaned up code

* removed combo from keymap

* added reset to default

* Update keyboards/ashpil/modelm_usbc/rules.mk

* bootmagic and simplifying default

* Update rules.mk

* removed duplicates

* updated readme

* Update keyboards/ashpil/modelm_usbc/README.md

* Update modelm_usbc.h

* Update keyboards/ashpil/modelm_usbc/keymaps/default/keymap.c

* Update keyboards/ashpil/modelm_usbc/keymaps/default/keymap.c

* Update keyboards/ashpil/modelm_usbc/keymaps/default/keymap.c

* full support for either ANSI or ISO

* Update keyboards/ashpil/modelm_usbc/info.json

* Update keyboards/ashpil/modelm_usbc/info.json

* Update keyboards/ashpil/modelm_usbc/info.json

* Resize the ISO Enter key

* ANSI Enter and Left Shift keys resize
patrl pushed a commit to patrl/qmk_firmware that referenced this pull request Dec 29, 2019
* added usb c model m

* added readme

* Update keyboards/ashpil/modelm_usbc/rules.mk

* Update keyboards/ashpil/modelm_usbc/rules.mk

* Update keyboards/ashpil/modelm_usbc/rules.mk

* Update keyboards/ashpil/modelm_usbc/rules.mk

* Update keyboards/ashpil/modelm_usbc/rules.mk

* Update keyboards/ashpil/modelm_usbc/rules.mk

* cleaned up code

* removed combo from keymap

* added reset to default

* Update keyboards/ashpil/modelm_usbc/rules.mk

* bootmagic and simplifying default

* Update rules.mk

* removed duplicates

* updated readme

* Update keyboards/ashpil/modelm_usbc/README.md

* Update modelm_usbc.h

* Update keyboards/ashpil/modelm_usbc/keymaps/default/keymap.c

* Update keyboards/ashpil/modelm_usbc/keymaps/default/keymap.c

* Update keyboards/ashpil/modelm_usbc/keymaps/default/keymap.c

* full support for either ANSI or ISO

* Update keyboards/ashpil/modelm_usbc/info.json

* Update keyboards/ashpil/modelm_usbc/info.json

* Update keyboards/ashpil/modelm_usbc/info.json

* Resize the ISO Enter key

* ANSI Enter and Left Shift keys resize
HokieGeek pushed a commit to HokieGeek/qmk_firmware that referenced this pull request Feb 21, 2020
* added usb c model m

* added readme

* Update keyboards/ashpil/modelm_usbc/rules.mk

* Update keyboards/ashpil/modelm_usbc/rules.mk

* Update keyboards/ashpil/modelm_usbc/rules.mk

* Update keyboards/ashpil/modelm_usbc/rules.mk

* Update keyboards/ashpil/modelm_usbc/rules.mk

* Update keyboards/ashpil/modelm_usbc/rules.mk

* cleaned up code

* removed combo from keymap

* added reset to default

* Update keyboards/ashpil/modelm_usbc/rules.mk

* bootmagic and simplifying default

* Update rules.mk

* removed duplicates

* updated readme

* Update keyboards/ashpil/modelm_usbc/README.md

* Update modelm_usbc.h

* Update keyboards/ashpil/modelm_usbc/keymaps/default/keymap.c

* Update keyboards/ashpil/modelm_usbc/keymaps/default/keymap.c

* Update keyboards/ashpil/modelm_usbc/keymaps/default/keymap.c

* full support for either ANSI or ISO

* Update keyboards/ashpil/modelm_usbc/info.json

* Update keyboards/ashpil/modelm_usbc/info.json

* Update keyboards/ashpil/modelm_usbc/info.json

* Resize the ISO Enter key

* ANSI Enter and Left Shift keys resize
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants