qmk_firmware

QMK firmware for my keyboards (Corne, Sweep Ferris) and trackball (Ploopy Adept)
Log | Files | Refs | Submodules | LICENSE

_pin_defs.h (1051B)


      1 // Copyright 2022 customMK
      2 // SPDX-License-Identifier: GPL-2.0-or-later
      3 
      4 #pragma once
      5 
      6 // Left side (front)
      7 #define D3 PAL_LINE(GPIOB, 7)
      8 #define D2 PAL_LINE(GPIOA, 15)
      9 //      GND
     10 //      GND
     11 #define D1 PAL_LINE(GPIOB, 9)
     12 #define D0 PAL_LINE(GPIOB, 6)
     13 #define D4 PAL_LINE(GPIOA, 4)
     14 #define C6 PAL_LINE(GPIOB, 8)
     15 #define D7 PAL_LINE(GPIOA, 3)
     16 #define E6 PAL_LINE(GPIOB, 10)
     17 #define B4 PAL_LINE(GPIOA, 8)
     18 #define B5 PAL_LINE(GPIOB, 0)
     19 
     20 // Right side (front)
     21 //      RAW
     22 //      GND
     23 //      RESET
     24 //      VCC
     25 #define F4 PAL_LINE(GPIOA, 7)
     26 #define F5 PAL_LINE(GPIOA, 6)
     27 #define F6 PAL_LINE(GPIOA, 5)
     28 #define F7 PAL_LINE(GPIOA, 1)
     29 #define B1 PAL_LINE(GPIOB, 13)
     30 #define B3 PAL_LINE(GPIOB, 14)
     31 #define B2 PAL_LINE(GPIOB, 15)
     32 #define B6 PAL_LINE(GPIOB, 1)
     33 
     34 // LEDs (only D5/B2 uses an actual LED)
     35 // Setting both RX and TX LEDs to the same pin as there
     36 // is only one LED availble
     37 // If this is undesirable, either B0 or B5 can be redefined by
     38 // using #undef and #define to change its assignment
     39 #define B0 PAL_LINE(GPIOB, 2)
     40 #define D5 PAL_LINE(GPIOB, 2)