Remove UNUSED_PINS
(#17931)
This commit is contained in:
@@ -41,7 +41,7 @@
|
||||
|
||||
// These pins are not broken out, and cannot be used normally.
|
||||
// They are set as output and pulled high, by default
|
||||
#define UNUSED_PINS \
|
||||
#define UNUSABLE_PINS \
|
||||
{ B4, D6, F1, F5, F6, F7 }
|
||||
|
||||
/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
|
||||
|
@@ -199,8 +199,8 @@ void keyboard_pre_init_kb(void) {
|
||||
* pathways to ground. If you're messing with this, know this: driving ANY
|
||||
* of these pins high will cause a short. On the MCU. Ka-blooey.
|
||||
*/
|
||||
#ifdef UNUSED_PINS
|
||||
const pin_t unused_pins[] = UNUSED_PINS;
|
||||
#ifdef UNUSABLE_PINS
|
||||
const pin_t unused_pins[] = UNUSABLE_PINS;
|
||||
|
||||
for (uint8_t i = 0; i < (sizeof(unused_pins) / sizeof(pin_t)); i++) {
|
||||
setPinOutput(unused_pins[i]);
|
||||
|
@@ -35,7 +35,7 @@
|
||||
|
||||
// These pins are not broken out, and cannot be used normally.
|
||||
// They are set as output and pulled high, by default
|
||||
#define UNUSED_PINS \
|
||||
#define UNUSABLE_PINS \
|
||||
{ D1, D3, B4, B6, B7, D6, C7, F6, F5, F3, F7 }
|
||||
|
||||
// If board has a debug LED, you can enable it by defining this
|
||||
|
@@ -35,7 +35,7 @@
|
||||
|
||||
// These pins are not broken out, and cannot be used normally.
|
||||
// They are set as output and pulled high, by default
|
||||
#define UNUSED_PINS \
|
||||
#define UNUSABLE_PINS \
|
||||
{ D1, D3, B4, B7, D6, C7, F6, F5, F3, F7 }
|
||||
|
||||
// If board has a debug LED, you can enable it by defining this
|
||||
|
@@ -204,8 +204,8 @@ void keyboard_pre_init_kb(void) {
|
||||
* pathways to ground. If you're messing with this, know this: driving ANY
|
||||
* of these pins high will cause a short. On the MCU. Ka-blooey.
|
||||
*/
|
||||
#ifdef UNUSED_PINS
|
||||
const pin_t unused_pins[] = UNUSED_PINS;
|
||||
#ifdef UNUSABLE_PINS
|
||||
const pin_t unused_pins[] = UNUSABLE_PINS;
|
||||
|
||||
for (uint8_t i = 0; i < (sizeof(unused_pins) / sizeof(pin_t)); i++) {
|
||||
setPinOutput(unused_pins[i]);
|
||||
|
@@ -36,5 +36,5 @@
|
||||
|
||||
// These pins are not broken out, and cannot be used normally.
|
||||
// They are set as output and pulled high, by default
|
||||
#define UNUSED_PINS \
|
||||
#define UNUSABLE_PINS \
|
||||
{ B5, C7, D0, D1, D3, D5, D6, F1, F3, F5, F6, F7 }
|
||||
|
@@ -36,5 +36,5 @@
|
||||
|
||||
// These pins are not broken out, and cannot be used normally.
|
||||
// They are set as output and pulled high, by default
|
||||
#define UNUSED_PINS \
|
||||
#define UNUSABLE_PINS \
|
||||
{ B5, C7, D0, D1, D3, D5, D6, F1, F3, F5, F6, F7 }
|
||||
|
@@ -200,8 +200,8 @@ void keyboard_pre_init_kb(void) {
|
||||
* pathways to ground. If you're messing with this, know this: driving ANY
|
||||
* of these pins high will cause a short. On the MCU. Ka-blooey.
|
||||
*/
|
||||
#ifdef UNUSED_PINS
|
||||
const pin_t unused_pins[] = UNUSED_PINS;
|
||||
#ifdef UNUSABLE_PINS
|
||||
const pin_t unused_pins[] = UNUSABLE_PINS;
|
||||
|
||||
for (uint8_t i = 0; i < (sizeof(unused_pins) / sizeof(pin_t)); i++) {
|
||||
setPinOutput(unused_pins[i]);
|
||||
|
@@ -33,5 +33,5 @@
|
||||
|
||||
// These pins are not broken out, and cannot be used normally.
|
||||
// They are set as output and pulled high, by default
|
||||
#define UNUSED_PINS \
|
||||
#define UNUSABLE_PINS \
|
||||
{ B5, B6, C7, D0, D1, D2, D3, D4, D5, D6, D7, E6, F1, F3, F5, F6, F7 }
|
||||
|
@@ -86,8 +86,8 @@ void keyboard_pre_init_kb(void) {
|
||||
* pathways to ground. If you're messing with this, know this: driving ANY
|
||||
* of these pins high will cause a short. On the MCU. Ka-blooey.
|
||||
*/
|
||||
#ifdef UNUSED_PINS
|
||||
const pin_t unused_pins[] = UNUSED_PINS;
|
||||
#ifdef UNUSABLE_PINS
|
||||
const pin_t unused_pins[] = UNUSABLE_PINS;
|
||||
|
||||
for (uint8_t i = 0; i < (sizeof(unused_pins) / sizeof(pin_t)); i++) {
|
||||
setPinOutput(unused_pins[i]);
|
||||
|
Reference in New Issue
Block a user