diff --git a/keyboards/redragon/k556/chconf.h b/keyboards/redragon/k556/chconf.h index f3f9152c3453..ae5883386353 100644 --- a/keyboards/redragon/k556/chconf.h +++ b/keyboards/redragon/k556/chconf.h @@ -13,10 +13,11 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ - #pragma once -#include_next +#define CH_CFG_OPTIMIZE_SPEED FALSE + +#define CH_CFG_USE_CONDVARS_TIMEOUT FALSE #undef CH_CFG_ST_TIMEDELTA #define CH_CFG_ST_TIMEDELTA 0 @@ -25,3 +26,4 @@ #undef CH_CFG_ST_FREQUENCY #define CH_CFG_ST_FREQUENCY 10000 +#include_next diff --git a/keyboards/redragon/k556/config.h b/keyboards/redragon/k556/config.h index d076ed1a88fc..037aeda406ee 100644 --- a/keyboards/redragon/k556/config.h +++ b/keyboards/redragon/k556/config.h @@ -37,14 +37,21 @@ #define MATRIX_ROW_PINS { C15, D11, D10, D9, D8, D7 } /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ -#define DEBOUNCE 5 -#define QMK_KEYS_PER_SCAN 12 +#define DEBOUNCE 2 +#define QMK_KEYS_PER_SCAN 8 +#define USB_POLLING_INTERVAL_MS 1 #define REGISTER_MULTIPLE_KEYEVENTS_ENABLE #define DEBUG_MATRIX_SCAN_RATE + +/* Board and GPIO setup */ #define MATRIX_UNSELECT_DRIVE_HIGH -#define MATRIX_IO_DELAY 1 -/* Enable NKRO - Up to 248 keys at the same time. */ -#define FORCE_NKRO +#define MATRIX_IO_DELAY 0 +#define GPIO_INPUT_PIN_DELAY 0 +#define MATRIX_HAS_GHOST +#define SELECT_SOFT_SERIAL_SPEED 0 + +/* RGB MODE FOR CONSISTENT 1000HZ SCANRATE */ +#define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_SPLASH /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ //#define LOCKING_SUPPORT_ENABLE @@ -91,7 +98,7 @@ /* RGB Reactive Effects Toggle */ #define RGB_MATRIX_FRAMEBUFFER_EFFECTS #define RGB_MATRIX_KEYPRESSES -//#define RGB_MATRIX_KEYRELEASES +#define RGB_MATRIX_KEYRELEASES /* RGB Reactive Effects */ #define ENABLE_RGB_MATRIX_SOLID_REACTIVE_SIMPLE diff --git a/keyboards/redragon/k556/rules.mk b/keyboards/redragon/k556/rules.mk index 54324a00e252..8f21f5d7b759 100644 --- a/keyboards/redragon/k556/rules.mk +++ b/keyboards/redragon/k556/rules.mk @@ -9,7 +9,6 @@ MCU = SN32F248BF # comment out to disable the options. # REGISTER_MULTIPLE_KEYEVENTS_ENABLE = yes -DEBOUNCE_TYPE = sym_defer_g LTO_ENABLE = no BACKLIGHT_ENABLE = no MAGIC_ENABLE = yes @@ -20,7 +19,7 @@ EXTRAKEY_ENABLE = yes # Audio control and System control CONSOLE_ENABLE = yes # Console for debug COMMAND_ENABLE = no # Commands for debug and configuration SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend -NKRO_ENABLE = yes # USB Nkey Rollover +NKRO_ENABLE = no # USB Nkey Rollover AUDIO_ENABLE = no RGBLIGHT_ENABLE = no SERIAL_LINK_ENABLE = no diff --git a/platforms/chibios/boards/SN_SN32F240B/board/board.mk b/platforms/chibios/boards/SN_SN32F240B/board/board.mk index 8a1e0b6370de..b3cf15dd678c 100644 --- a/platforms/chibios/boards/SN_SN32F240B/board/board.mk +++ b/platforms/chibios/boards/SN_SN32F240B/board/board.mk @@ -5,7 +5,7 @@ BOARDSRC = $(CHIBIOS_CONTRIB)/os/hal/boards/SN_SN32F240B/board.c BOARDINC = $(CHIBIOS_CONTRIB)/os/hal/boards/SN_SN32F240B # Optimize for speed -OPT = 1 +OPT = 2 # Enter lower-power sleep mode when on the ChibiOS idle thread OPT_DEFS += -DCORTEX_ENABLE_WFI_IDLE=TRUE # Shave some extra bytes