forked from forks/qmk_firmware
ebb512db82
* Clean up `DEBOUNCE` in config.h, 0-9 * Clean up `DEBOUNCE` in config.h, A * Clean up `DEBOUNCE` in config.h, B * Clean up `DEBOUNCE` in config.h, C * Clean up `DEBOUNCE` in config.h, D * Clean up `DEBOUNCE` in config.h, E * Clean up `DEBOUNCE` in config.h, F * Clean up `DEBOUNCE` in config.h, G * Clean up `DEBOUNCE` in config.h, H * Clean up `DEBOUNCE` in config.h, handwired * Clean up `DEBOUNCE` in config.h, I * Clean up `DEBOUNCE` in config.h, J * Clean up `DEBOUNCE` in config.h, K * Clean up `DEBOUNCE` in config.h, L * Clean up `DEBOUNCE` in config.h, M * Clean up `DEBOUNCE` in config.h, N * Clean up `DEBOUNCE` in config.h, O * Clean up `DEBOUNCE` in config.h, P * Clean up `DEBOUNCE` in config.h, Q * Clean up `DEBOUNCE` in config.h, R * Clean up `DEBOUNCE` in config.h, S * Clean up `DEBOUNCE` in config.h, T * Clean up `DEBOUNCE` in config.h, U * Clean up `DEBOUNCE` in config.h, V * Clean up `DEBOUNCE` in config.h, W * Clean up `DEBOUNCE` in config.h, X * Clean up `DEBOUNCE` in config.h, Y * Clean up `DEBOUNCE` in config.h, Z * Remove default debounce from info.json * Migrate non-default debounce to info.json
52 lines
1.2 KiB
C
52 lines
1.2 KiB
C
// Copyright 2021 Christoph Rehmann (crehmann)
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
#pragma once
|
|
|
|
/* key matrix size */
|
|
/* Rows are doubled up */
|
|
#define MATRIX_ROWS 8
|
|
#define MATRIX_COLS 6
|
|
|
|
// wiring
|
|
#define MATRIX_ROW_PINS \
|
|
{ F4, F5, F6, F7 }
|
|
#define MATRIX_COL_PINS \
|
|
{ B1, B3, B2, B6, B5, B4}
|
|
|
|
/* COL2ROW, ROW2COL*/
|
|
#define DIODE_DIRECTION COL2ROW
|
|
|
|
/*
|
|
* Split Keyboard specific options, make sure you have 'SPLIT_KEYBOARD = yes' in your rules.mk, and define SOFT_SERIAL_PIN.
|
|
*/
|
|
#define SOFT_SERIAL_PIN D2
|
|
|
|
/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
|
|
#define LOCKING_SUPPORT_ENABLE
|
|
/* Locking resynchronize hack */
|
|
#define LOCKING_RESYNC_ENABLE
|
|
|
|
#ifdef OLED_ENABLE
|
|
#define OLED_DISPLAY_128X32
|
|
#define SPLIT_OLED_ENABLE
|
|
#endif
|
|
|
|
#ifdef PS2_DRIVER_INTERRUPT
|
|
#define PS2_CLOCK_PIN E6
|
|
#define PS2_DATA_PIN D7
|
|
|
|
#define PS2_INT_INIT() do { \
|
|
EICRB |= ((1<<ISC61) | \
|
|
(0<<ISC60)); \
|
|
} while (0)
|
|
#define PS2_INT_ON() do { \
|
|
EIMSK |= (1<<INT6); \
|
|
} while (0)
|
|
#define PS2_INT_OFF() do { \
|
|
EIMSK &= ~(1<<INT6); \
|
|
} while (0)
|
|
#define PS2_INT_VECT INT6_vect
|
|
#define PS2_MOUSE_ROTATE 270 /* Compensate for East-facing device orientation. */
|
|
#endif
|