From 503049cdae41af9e3b71a27746a3fa3df4ecd654 Mon Sep 17 00:00:00 2001 From: Stanislav Date: Fri, 12 Apr 2024 16:21:26 +0300 Subject: [PATCH] change structure, because functions in rp2040.c did not works properly. i was need access to keymap array. --- keyboards/handwired/set_st/rp2040/{rp2040.c => extra.h} | 1 - keyboards/handwired/set_st/rp2040/keymaps/default/keymap.c | 3 +++ keyboards/handwired/set_st/rp2040/keymaps/via/keymap.c | 5 ++++- 3 files changed, 7 insertions(+), 2 deletions(-) rename keyboards/handwired/set_st/rp2040/{rp2040.c => extra.h} (99%) diff --git a/keyboards/handwired/set_st/rp2040/rp2040.c b/keyboards/handwired/set_st/rp2040/extra.h similarity index 99% rename from keyboards/handwired/set_st/rp2040/rp2040.c rename to keyboards/handwired/set_st/rp2040/extra.h index ed8701ce24b..b1471c1bfc0 100644 --- a/keyboards/handwired/set_st/rp2040/rp2040.c +++ b/keyboards/handwired/set_st/rp2040/extra.h @@ -15,7 +15,6 @@ */ #include QMK_KEYBOARD_H -#include "keymap.c" #ifdef OLED_ENABLE diff --git a/keyboards/handwired/set_st/rp2040/keymaps/default/keymap.c b/keyboards/handwired/set_st/rp2040/keymaps/default/keymap.c index 900a910393e..f6d7f15575e 100644 --- a/keyboards/handwired/set_st/rp2040/keymaps/default/keymap.c +++ b/keyboards/handwired/set_st/rp2040/keymaps/default/keymap.c @@ -14,6 +14,7 @@ * along with this program. If not, see . */ + #include QMK_KEYBOARD_H enum keycodes { @@ -66,3 +67,5 @@ const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][NUM_DIRECTIONS] = { [LIGHT] = { ENCODER_CCW_CW(_______, _______) } }; #endif + +#include "extra.h" \ No newline at end of file diff --git a/keyboards/handwired/set_st/rp2040/keymaps/via/keymap.c b/keyboards/handwired/set_st/rp2040/keymaps/via/keymap.c index fcf3373fdcf..f6d7f15575e 100644 --- a/keyboards/handwired/set_st/rp2040/keymaps/via/keymap.c +++ b/keyboards/handwired/set_st/rp2040/keymaps/via/keymap.c @@ -14,6 +14,7 @@ * along with this program. If not, see . */ + #include QMK_KEYBOARD_H enum keycodes { @@ -65,4 +66,6 @@ const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][NUM_DIRECTIONS] = { [MEDIA] = { ENCODER_CCW_CW(_______, _______) }, [LIGHT] = { ENCODER_CCW_CW(_______, _______) } }; -#endif \ No newline at end of file +#endif + +#include "extra.h" \ No newline at end of file