aboutsummaryrefslogtreecommitdiff
path: root/keyboards/mt40
diff options
context:
space:
mode:
authorRyan <fauxpark@gmail.com>2021-09-01 19:03:14 +1000
committerGitHub <noreply@github.com>2021-09-01 19:03:14 +1000
commit41c50bb653b840c595fb31541729d892f68666e6 (patch)
treeba05c7c9654f7be1104b20f3195dd2cf288e004e /keyboards/mt40
parent971d36bb9ea37962c57733e5f7c0c24e5a6cebeb (diff)
downloadqmk_firmware-41c50bb653b840c595fb31541729d892f68666e6.tar.gz
qmk_firmware-41c50bb653b840c595fb31541729d892f68666e6.zip
Change keyboard level include guards to `pragma once` (#14248)
* Change keyboard level include guards to `pragma once` And clean up a lot of layout macros * Oops * Remove dangling endif
Diffstat (limited to 'keyboards/mt40')
-rw-r--r--keyboards/mt40/config.h5
-rw-r--r--keyboards/mt40/mt40.h29
2 files changed, 15 insertions, 19 deletions
diff --git a/keyboards/mt40/config.h b/keyboards/mt40/config.h
index 8e04fe38c..8a968dc3b 100644
--- a/keyboards/mt40/config.h
+++ b/keyboards/mt40/config.h
@@ -15,8 +15,7 @@ You should have received a copy of the GNU General Public License
15along with this program. If not, see <http://www.gnu.org/licenses/>. 15along with this program. If not, see <http://www.gnu.org/licenses/>.
16*/ 16*/
17 17
18#ifndef CONFIG_H 18#pragma once
19#define CONFIG_H
20 19
21#include "config_common.h" 20#include "config_common.h"
22 21
@@ -165,5 +164,3 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
165//#define NO_ACTION_ONESHOT 164//#define NO_ACTION_ONESHOT
166//#define NO_ACTION_MACRO 165//#define NO_ACTION_MACRO
167//#define NO_ACTION_FUNCTION 166//#define NO_ACTION_FUNCTION
168
169#endif
diff --git a/keyboards/mt40/mt40.h b/keyboards/mt40/mt40.h
index c202d5f6c..e5892ea67 100644
--- a/keyboards/mt40/mt40.h
+++ b/keyboards/mt40/mt40.h
@@ -13,31 +13,30 @@
13 * You should have received a copy of the GNU General Public License 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/>. 14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */ 15 */
16#ifndef MT40_H 16
17#define MT40_H 17#pragma once
18 18
19#include "quantum.h" 19#include "quantum.h"
20 20
21#define KC_NO
21 22
22// This a shortcut to help you visually see your layout. 23// This a shortcut to help you visually see your layout.
23// The following is an example using the Planck MIT layout 24// The following is an example using the Planck MIT layout
24// The first section contains all of the arguments 25// The first section contains all of the arguments
25// The second converts the arguments into a two-dimensional array 26// The second converts the arguments into a two-dimensional array
26#define LAYOUT_planck_mit( \ 27#define LAYOUT_planck_mit( \
27 K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, \ 28 k40, k31, k32, k33, k34, k35, k52, k5C, k6C, k62, k3A, k4E, \
28 K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, \ 29 k30, k21, k22, k23, k24, k25, k53, k5D, k6D, k63, k2A, k2B, \
29 K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, \ 30 k10, k11, k12, k13, k14, k15, k54, k5E, k6E, k64, k1A, k66, \
30 K30, K31, K32, K33, K34, K35, K37, K38, K39, K3A, K3B \ 31 k20, k00, k01, k02, k04, k05, k0B, k56, k58, k57, k59 \
31) { \ 32) { \
32 { K31, K32, K33, KC_NO, K34, K35, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, K37, KC_NO, KC_NO, KC_NO }, \ 33 { k00, k01, k02, XXX, k04, k05, XXX, XXX, XXX, XXX, XXX, k0B, XXX, XXX, XXX }, \
33 { K20, K21, K22, K23, K24, K25, KC_NO, KC_NO, KC_NO, KC_NO, K2A, KC_NO, KC_NO, KC_NO, KC_NO }, \ 34 { k10, k11, k12, k13, k14, k15, XXX, XXX, XXX, XXX, k1A, XXX, XXX, XXX, XXX }, \
34 { K30, K11, K12, K13, K14, K15, KC_NO, KC_NO, KC_NO, KC_NO, K1A, K1B, KC_NO, KC_NO, KC_NO }, \ 35 { k20, k21, k22, k23, k24, k25, XXX, XXX, XXX, XXX, k2A, k2B, XXX, XXX, XXX }, \
35 { K10, K01, K02, K03, K04, K05, KC_NO, KC_NO, KC_NO, KC_NO, K0A, KC_NO, KC_NO, KC_NO, KC_NO }, \ 36 { k30, k31, k32, k33, k34, k35, XXX, XXX, XXX, XXX, k3A, XXX, XXX, XXX, XXX }, \
36 { K00, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, K0B }, \ 37 { k40, XXX, XXX, XXX, XXX, XXX, XXX, XXX, XXX, XXX, XXX, XXX, XXX, XXX, k4E }, \
37 { KC_NO, KC_NO, K06, K16, K26, K35, K38, K3A, K39, K3B, KC_NO, KC_NO, K07, K17, K27 }, \ 38 { XXX, XXX, k52, k53, k54, k05, k56, k57, k58, k59, XXX, XXX, k5C, k5D, k5E }, \
38 { KC_NO, KC_NO, K09, K19, K29, KC_NO, K2B, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, K08, K18, K28 } \ 39 { XXX, XXX, k62, k63, k64, XXX, k66, XXX, XXX, XXX, XXX, XXX, k6C, k6D, k6E } \
39} 40}
40 41
41#define LAYOUT LAYOUT_planck_mit 42#define LAYOUT LAYOUT_planck_mit
42
43#endif