diff options
author | Takeshi ISHII <2170248+mtei@users.noreply.github.com> | 2022-02-22 01:30:49 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-21 08:30:49 -0800 |
commit | c204c735af9fc5bf2438ca4fedfc8914529d660e (patch) | |
tree | 4fbe2d0d5da4a80272303c65d1859f59bc76c82b /keyboards/helix/pico/pico.h | |
parent | f30f963a0b6ccaa151fe83dd8302fa1f6829086e (diff) | |
download | qmk_firmware-c204c735af9fc5bf2438ca4fedfc8914529d660e.tar.gz qmk_firmware-c204c735af9fc5bf2438ca4fedfc8914529d660e.zip |
Helix/pico move to split_common (#16418)
Diffstat (limited to 'keyboards/helix/pico/pico.h')
-rw-r--r-- | keyboards/helix/pico/pico.h | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/keyboards/helix/pico/pico.h b/keyboards/helix/pico/pico.h index 5fa5f7295..3e51d54d8 100644 --- a/keyboards/helix/pico/pico.h +++ b/keyboards/helix/pico/pico.h | |||
@@ -1,12 +1,22 @@ | |||
1 | /* Copyright 2018 MakotoKurauchi | ||
2 | * | ||
3 | * This program is free software: you can redistribute it and/or modify | ||
4 | * it under the terms of the GNU General Public License as published by | ||
5 | * the Free Software Foundation, either version 2 of the License, or | ||
6 | * (at your option) any later version. | ||
7 | * | ||
8 | * This program is distributed in the hope that it will be useful, | ||
9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
11 | * GNU General Public License for more details. | ||
12 | * | ||
13 | * You should have received a copy of the GNU General Public License | ||
14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
15 | */ | ||
1 | #pragma once | 16 | #pragma once |
2 | 17 | ||
3 | #include "helix.h" | 18 | #include "helix.h" |
4 | 19 | ||
5 | #ifndef SPLIT_KEYBOARD | ||
6 | extern bool is_helix_master(void); | ||
7 | #define is_keyboard_master() is_helix_master() | ||
8 | #endif | ||
9 | |||
10 | // Each keymap.c should use is_keyboard_master() instead of 'is_master', 'has_usb()'. | 20 | // Each keymap.c should use is_keyboard_master() instead of 'is_master', 'has_usb()'. |
11 | // But keep 'is_master' for a while for backwards compatibility | 21 | // But keep 'is_master' for a while for backwards compatibility |
12 | // for the old keymap.c. | 22 | // for the old keymap.c. |