forked from qmk/qmk_firmware
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'qmk/develop' into develop
* qmk/develop: Fix right half of Nyquist in 4x12 mode having row shifted up by one (qmk#14914) Pteron36 Refactor (qmk#14904) Initial USB2422 driver (qmk#14835) Split out arm_atsam shift register logic (qmk#14848) Fix ccache default (qmk#14906) Move USE_CCACHE logic to common location (qmk#14899)
- Loading branch information
Showing
30 changed files
with
734 additions
and
417 deletions.
There are no files selected for viewing
216 changes: 108 additions & 108 deletions
216
tmk_core/protocol/arm_atsam/usb/usb2422.h → drivers/usb2422.c
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
/* Copyright 2021 QMK | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
#pragma once | ||
|
||
#include <stdbool.h> | ||
|
||
#ifndef USB2422_ADDRESS | ||
# define USB2422_ADDRESS 0x58 | ||
#endif | ||
|
||
#ifndef USB2422_VENDOR_ID | ||
# define USB2422_VENDOR_ID 0xFEED | ||
#endif | ||
#ifndef USB2422_PRODUCT_ID | ||
# define USB2422_PRODUCT_ID 0x0001 | ||
#endif | ||
#ifndef USB2422_DEVICE_VER | ||
# define USB2422_DEVICE_VER 0x0001 | ||
#endif | ||
|
||
#ifndef USB2422_MANUFACTURER | ||
# define USB2422_MANUFACTURER "QMK" | ||
#endif | ||
#ifndef USB2422_PRODUCT | ||
# define USB2422_PRODUCT "QMK Hub" | ||
#endif | ||
|
||
/** \brief Initialises the dependent subsystems */ | ||
void USB2422_init(void); | ||
|
||
/** \brief Push configuration to the USB2422 device */ | ||
void USB2422_configure(void); | ||
|
||
/** \brief Reset the chip (RESET_N) | ||
* | ||
* NOTE: | ||
* Depends on a valid USB2422_RESET_PIN configuration | ||
*/ | ||
void USB2422_reset(void); | ||
|
||
/** \brief Indicates the USB state of the hub (SUSP_IND) | ||
* | ||
* NOTE: | ||
* Depends on a valid USB2422_ACTIVE_PIN configuration | ||
*/ | ||
bool USB2422_active(void); |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,95 @@ | ||
{ | ||
"keyboard_name": "Pteron36", | ||
"url": "", | ||
"maintainer": "Harshit Goel", | ||
"maintainer": "harshitgoel96", | ||
"layouts": { | ||
"LAYOUT_split_3x5_3": { | ||
"layout": [{"x":2, "y":0}, {"x":12.5, "y":0}, {"x":1, "y":0.5}, {"x":3, "y":0.5}, {"x":11.5, "y":0.5}, {"x":13.5, "y":0.5}, {"x":4, "y":0.75}, {"x":10.5, "y":0.75}, {"x":0, "y":1}, {"x":2, "y":1}, {"x":12.5, "y":1}, {"x":14.5, "y":1}, {"x":1, "y":1.5}, {"x":3, "y":1.5}, {"x":11.5, "y":1.5}, {"x":13.5, "y":1.5}, {"x":4, "y":1.75}, {"x":10.5, "y":1.75}, {"x":0, "y":2}, {"x":2, "y":2}, {"x":12.5, "y":2}, {"x":14.5, "y":2}, {"x":1, "y":2.5}, {"x":3, "y":2.5}, {"x":11.5, "y":2.5}, {"x":13.5, "y":2.5}, {"x":4, "y":2.75}, {"x":10.5, "y":2.75}, {"x":0, "y":3}, {"x":14.5, "y":3}, {"x":4, "y":4}, {"x":5, "y":4}, {"x":6, "y":4}, {"x":8.5, "y":4}, {"x":9.5, "y":4}, {"x":10.5, "y":4}] | ||
"layout": [ | ||
{"x":0, "y":1}, | ||
{"x":1, "y":0.5}, | ||
{"x":2, "y":0}, | ||
{"x":3, "y":0.5}, | ||
{"x":4, "y":0.75}, | ||
{"x":10, "y":0.75}, | ||
{"x":11, "y":0.5}, | ||
{"x":12, "y":0}, | ||
{"x":13, "y":0.5}, | ||
{"x":14, "y":1}, | ||
|
||
{"x":0, "y":2}, | ||
{"x":1, "y":1.5}, | ||
{"x":2, "y":1}, | ||
{"x":3, "y":1.5}, | ||
{"x":4, "y":1.75}, | ||
{"x":10, "y":1.75}, | ||
{"x":11, "y":1.5}, | ||
{"x":12, "y":1}, | ||
{"x":13, "y":1.5}, | ||
{"x":14, "y":2}, | ||
|
||
{"x":0, "y":3}, | ||
{"x":1, "y":2.5}, | ||
{"x":2, "y":2}, | ||
{"x":3, "y":2.5}, | ||
{"x":4, "y":2.75}, | ||
{"x":10, "y":2.75}, | ||
{"x":11, "y":2.5}, | ||
{"x":12, "y":2}, | ||
{"x":13, "y":2.5}, | ||
{"x":14, "y":3}, | ||
|
||
{"x":4, "y":4}, | ||
{"x":5, "y":4}, | ||
{"x":6, "y":4}, | ||
{"x":8, "y":4}, | ||
{"x":9, "y":4}, | ||
{"x":10, "y":4} | ||
] | ||
}, | ||
"LAYOUT_split_3x5_3_encoder": { | ||
"layout": [{"x":2, "y":0}, {"x":12.5, "y":0}, {"x":1, "y":0.5}, {"x":3, "y":0.5}, {"x":11.5, "y":0.5}, {"x":13.5, "y":0.5}, {"x":4, "y":0.75}, {"x":10.5, "y":0.75}, {"x":0, "y":1}, {"x":2, "y":1}, {"x":12.5, "y":1}, {"x":14.5, "y":1}, {"x":1, "y":1.5}, {"x":3, "y":1.5}, {"x":11.5, "y":1.5}, {"x":13.5, "y":1.5}, {"x":4, "y":1.75}, {"x":10.5, "y":1.75}, {"x":0, "y":2}, {"x":2, "y":2}, {"x":12.5, "y":2}, {"x":14.5, "y":2}, {"x":1, "y":2.5}, {"x":3, "y":2.5}, {"x":11.5, "y":2.5}, {"x":13.5, "y":2.5}, {"x":4, "y":2.75}, {"label":"enc1", "x":5.5, "y":2.75}, {"label":"enc2", "x":9, "y":2.75}, {"x":10.5, "y":2.75}, {"x":0, "y":3}, {"x":14.5, "y":3}, {"x":4, "y":4}, {"x":5, "y":4}, {"x":6, "y":4}, {"x":8.5, "y":4}, {"x":9.5, "y":4}, {"x":10.5, "y":4}] | ||
"layout": [ | ||
{"x":0, "y":1}, | ||
{"x":1, "y":0.5}, | ||
{"x":2, "y":0}, | ||
{"x":3, "y":0.5}, | ||
{"x":4, "y":0.75}, | ||
{"x":10, "y":0.75}, | ||
{"x":11, "y":0.5}, | ||
{"x":12, "y":0}, | ||
{"x":13, "y":0.5}, | ||
{"x":14, "y":1}, | ||
|
||
{"x":0, "y":2}, | ||
{"x":1, "y":1.5}, | ||
{"x":2, "y":1}, | ||
{"x":3, "y":1.5}, | ||
{"x":4, "y":1.75}, | ||
{"x":10, "y":1.75}, | ||
{"x":11, "y":1.5}, | ||
{"x":12, "y":1}, | ||
{"x":13, "y":1.5}, | ||
{"x":14, "y":2}, | ||
|
||
{"x":0, "y":3}, | ||
{"x":1, "y":2.5}, | ||
{"x":2, "y":2}, | ||
{"x":3, "y":2.5}, | ||
{"x":4, "y":2.75}, | ||
{"label":"enc1", "x":5.5, "y":2.75}, | ||
{"label":"enc2", "x":8.5, "y":2.75}, | ||
{"x":10, "y":2.75}, | ||
{"x":11, "y":2.5}, | ||
{"x":12, "y":2}, | ||
{"x":13, "y":2.5}, | ||
{"x":14, "y":3}, | ||
|
||
{"x":4, "y":4}, | ||
{"x":5, "y":4}, | ||
{"x":6, "y":4}, | ||
{"x":8, "y":4}, | ||
{"x":9, "y":4}, | ||
{"x":10, "y":4} | ||
] | ||
} | ||
} | ||
} |
This file contains 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
Oops, something went wrong.