Use hal/mcu conf

This commit is contained in:
VeyPatch 2024-12-24 13:55:29 +01:00
commit b21425c33a
4 changed files with 19 additions and 9 deletions

View file

@ -5,13 +5,6 @@
#define SPLIT_TRANSACTION_IDS_KB MODULE_SYNC #define SPLIT_TRANSACTION_IDS_KB MODULE_SYNC
#include_next <mcuconf.h>
#undef RP_PWM_USE_PWM5
#define RP_PWM_USE_PWM5 TRUE
#define HAL_USE_PWM TRUE
#define SPLIT_POINTING_ENABLE #define SPLIT_POINTING_ENABLE
#define POINTING_DEVICE_COMBINED #define POINTING_DEVICE_COMBINED
@ -21,8 +14,6 @@
#define BACKLIGHT_LEVELS 10 #define BACKLIGHT_LEVELS 10
#define BACKLIGHT_PWM_CHANNEL RP2040_PWM_CHANNEL_B #define BACKLIGHT_PWM_CHANNEL RP2040_PWM_CHANNEL_B
#include_next <halconf.h>
//// Keyboard redefines //// Keyboard redefines
// Always the same // Always the same

View file

@ -0,0 +1,8 @@
// Copyright 2024 splitkb.com (support@splitkb.com)
// SPDX-License-Identifier: GPL-2.0-or-later
#pragma once
#define HAL_USE_PWM TRUE
#include_next <halconf.h>

View file

@ -0,0 +1,9 @@
// Copyright 2024 splitkb.com (support@splitkb.com)
// SPDX-License-Identifier: GPL-2.0-or-later
#pragma once
#include_next <mcuconf.h>
#undef RP_PWM_USE_PWM5
#define RP_PWM_USE_PWM5 TRUE

View file

@ -11,6 +11,8 @@ QUANTUM_PAINTER_DRIVERS += st7789_spi surface
BACKLIGHT_ENABLE = yes BACKLIGHT_ENABLE = yes
BACKLIGHT_DRIVER = pwm BACKLIGHT_DRIVER = pwm
HALCONFDIR += $(USER_PATH)/halconf.h
ifdef HLC_ENCODER ifdef HLC_ENCODER
include $(USER_PATH)/hlc_encoder/rules.mk include $(USER_PATH)/hlc_encoder/rules.mk
endif endif