diff --git a/users/halcyon_modules/config.h b/users/halcyon_modules/config.h index 96f3279c..55499ca3 100644 --- a/users/halcyon_modules/config.h +++ b/users/halcyon_modules/config.h @@ -5,13 +5,6 @@ #define SPLIT_TRANSACTION_IDS_KB MODULE_SYNC -#include_next - -#undef RP_PWM_USE_PWM5 -#define RP_PWM_USE_PWM5 TRUE - -#define HAL_USE_PWM TRUE - #define SPLIT_POINTING_ENABLE #define POINTING_DEVICE_COMBINED @@ -21,8 +14,6 @@ #define BACKLIGHT_LEVELS 10 #define BACKLIGHT_PWM_CHANNEL RP2040_PWM_CHANNEL_B -#include_next - //// Keyboard redefines // Always the same diff --git a/users/halcyon_modules/halconf.h b/users/halcyon_modules/halconf.h new file mode 100644 index 00000000..296d308b --- /dev/null +++ b/users/halcyon_modules/halconf.h @@ -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 diff --git a/users/halcyon_modules/mcuconf.h b/users/halcyon_modules/mcuconf.h new file mode 100644 index 00000000..28af3d98 --- /dev/null +++ b/users/halcyon_modules/mcuconf.h @@ -0,0 +1,9 @@ +// Copyright 2024 splitkb.com (support@splitkb.com) +// SPDX-License-Identifier: GPL-2.0-or-later + +#pragma once + +#include_next + +#undef RP_PWM_USE_PWM5 +#define RP_PWM_USE_PWM5 TRUE diff --git a/users/halcyon_modules/rules.mk b/users/halcyon_modules/rules.mk index f2c356dc..9e55fe36 100644 --- a/users/halcyon_modules/rules.mk +++ b/users/halcyon_modules/rules.mk @@ -11,6 +11,8 @@ QUANTUM_PAINTER_DRIVERS += st7789_spi surface BACKLIGHT_ENABLE = yes BACKLIGHT_DRIVER = pwm +HALCONFDIR += $(USER_PATH)/halconf.h + ifdef HLC_ENCODER include $(USER_PATH)/hlc_encoder/rules.mk endif