diff options
| author | Ryan <fauxpark@gmail.com> | 2021-09-01 19:03:14 +1000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-09-01 19:03:14 +1000 |
| commit | 41c50bb653b840c595fb31541729d892f68666e6 (patch) | |
| tree | ba05c7c9654f7be1104b20f3195dd2cf288e004e /keyboards/handwired/promethium | |
| parent | 971d36bb9ea37962c57733e5f7c0c24e5a6cebeb (diff) | |
| download | qmk_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/handwired/promethium')
| -rw-r--r-- | keyboards/handwired/promethium/promethium.h | 36 |
1 files changed, 17 insertions, 19 deletions
diff --git a/keyboards/handwired/promethium/promethium.h b/keyboards/handwired/promethium/promethium.h index f35e5429b..c4c90176b 100644 --- a/keyboards/handwired/promethium/promethium.h +++ b/keyboards/handwired/promethium/promethium.h | |||
| @@ -1,5 +1,4 @@ | |||
| 1 | #ifndef PROMETHIUM_H | 1 | #pragma once |
| 2 | #define PROMETHIUM_H | ||
| 3 | 2 | ||
| 4 | #include <stdint.h> | 3 | #include <stdint.h> |
| 5 | 4 | ||
| @@ -7,23 +6,22 @@ void battery_poll(uint8_t level); | |||
| 7 | void led_set_kb(uint8_t usb_led); | 6 | void led_set_kb(uint8_t usb_led); |
| 8 | void led_set_user(uint8_t usb_led); | 7 | void led_set_user(uint8_t usb_led); |
| 9 | 8 | ||
| 9 | #define XXX KC_NO | ||
| 10 | |||
| 10 | #define LAYOUT( \ | 11 | #define LAYOUT( \ |
| 11 | k11, k12, k13, k14, k15, k16, k17, k18, k19, k1a, k1b, k1c, \ | 12 | k00, k01, k02, k03, k04, k05, k40, k41, k42, k43, k44, k45, \ |
| 12 | k21, k22, k23, k24, k25, k26, k27, k28, k29, k2a, k2b, k2c, \ | 13 | k10, k11, k12, k13, k14, k15, k50, k51, k52, k53, k54, k55, \ |
| 13 | k31, k32, k33, k34, k35, k36, k37, k38, k39, k3a, k3b, k3c, \ | 14 | k20, k21, k22, k23, k24, k25, k60, k61, k62, k63, k64, k65, \ |
| 14 | k41, k42, k43, k44, k45, k46, k47, k48, k49, k4a, k4b, k4c, \ | 15 | k30, k31, k32, k33, k34, k35, k70, k71, k72, k73, k74, k75, \ |
| 15 | tp1, tp2, tp3 \ | 16 | tp1, tp2, tp3 \ |
| 16 | ) \ | 17 | ) { \ |
| 17 | { \ | 18 | { k00, k01, k02, k03, k04, k05 }, \ |
| 18 | {k11, k12, k13, k14, k15, k16}, \ | 19 | { k10, k11, k12, k13, k14, k15 }, \ |
| 19 | {k21, k22, k23, k24, k25, k26}, \ | 20 | { k20, k21, k22, k23, k24, k25 }, \ |
| 20 | {k31, k32, k33, k34, k35, k36}, \ | 21 | { k30, k31, k32, k33, k34, k35 }, \ |
| 21 | {k41, k42, k43, k44, k45, k46}, \ | 22 | { k40, k41, k42, k43, k44, k45 }, \ |
| 22 | {k17, k18, k19, k1a, k1b, k1c}, \ | 23 | { k50, k51, k52, k53, k54, k55 }, \ |
| 23 | {k27, k28, k29, k2a, k2b, k2c}, \ | 24 | { k60, k61, k62, k63, k64, k65 }, \ |
| 24 | {k37, k38, k39, k3a, k3b, k3c}, \ | 25 | { k70, k71, k72, k73, k74, k75 }, \ |
| 25 | {k47, k48, k49, k4a, k4b, k4c}, \ | 26 | { tp1, tp2, tp3, XXX, XXX, XXX } \ |
| 26 | {tp1, tp2, tp3, KC_NO, KC_NO, KC_NO} \ | ||
| 27 | } | 27 | } |
| 28 | |||
| 29 | #endif | ||
