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/chimera_ls | |
| 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/chimera_ls')
| -rw-r--r-- | keyboards/chimera_ls/chimera_ls.h | 28 | ||||
| -rw-r--r-- | keyboards/chimera_ls/config.h | 5 |
2 files changed, 14 insertions, 19 deletions
diff --git a/keyboards/chimera_ls/chimera_ls.h b/keyboards/chimera_ls/chimera_ls.h index 45c91acc3..7d67d573d 100644 --- a/keyboards/chimera_ls/chimera_ls.h +++ b/keyboards/chimera_ls/chimera_ls.h | |||
| @@ -1,5 +1,4 @@ | |||
| 1 | #ifndef CHIMERA_LETS_SPLIT_H | 1 | #pragma once |
| 2 | #define CHIMERA_LETS_SPLIT_H | ||
| 3 | 2 | ||
| 4 | #include "quantum.h" | 3 | #include "quantum.h" |
| 5 | 4 | ||
| @@ -43,22 +42,21 @@ | |||
| 43 | #define set_led_white PORTF |= (1<<LED_B) | (1<<LED_R) | (1<<LED_G) | 42 | #define set_led_white PORTF |= (1<<LED_B) | (1<<LED_R) | (1<<LED_G) |
| 44 | */ | 43 | */ |
| 45 | 44 | ||
| 45 | #define XXX KC_NO | ||
| 46 | |||
| 46 | // This a shortcut to help you visually see your layout. | 47 | // This a shortcut to help you visually see your layout. |
| 47 | // The first section contains all of the arguements | 48 | // The first section contains all of the arguements |
| 48 | // The second converts the arguments into a two-dimensional array | 49 | // The second converts the arguments into a two-dimensional array |
| 49 | 50 | ||
| 50 | #define LAYOUT_ortho_4x12( \ | 51 | #define LAYOUT_ortho_4x12( \ |
| 51 | k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k10, k11, \ | 52 | k08, k48, k29, k47, k46, k45, k40, k41, k42, k24, k43, k03, \ |
| 52 | k12, k13, k14, k15, k16, k17, k18, k19, k20, k21, k22, k23, \ | 53 | k09, k19, k37, k36, k35, k39, k34, k30, k31, k32, k14, k04, \ |
| 53 | k24, k25, k26, k27, k28, k29, k30, k31, k32, k33, k34, k35, \ | 54 | k18, k07, k27, k26, k15, k25, k20, k10, k21, k22, k02, k13, \ |
| 54 | k36, k37, k38, k39, k40, k41, k42, k43, k44, k45, k46, k47 \ | 55 | k28, k17, k06, k16, k05, k38, k33, k00, k11, k01, k12, k23 \ |
| 55 | ) { \ | 56 | ) { \ |
| 56 | { k43, k45, k34, k11, k23, k40, k38, k25, k00, k12 }, \ | 57 | { k00, k01, k02, k03, k04, k05, k06, k07, k08, k09 }, \ |
| 57 | { k31, k44, k46, k35, k22, k28, k39, k37, k24, k13 }, \ | 58 | { k10, k11, k12, k13, k14, k15, k16, k17, k18, k19 }, \ |
| 58 | { k30, k32, k33, k47, k09, k29, k27, k26, k36, k02 }, \ | 59 | { k20, k21, k22, k23, k24, k25, k26, k27, k28, k29 }, \ |
| 59 | { k19, k20, k21, k42, k18, k16, k15, k14, k41, k17 }, \ | 60 | { k30, k31, k32, k33, k34, k35, k36, k37, k38, k39 }, \ |
| 60 | { k06, k07, k08, k10, KC_NO, k05, k04, k03, k01, KC_NO } \ | 61 | { k40, k41, k42, k43, XXX, k45, k46, k47, k48, XXX } \ |
| 61 | } | 62 | } |
| 62 | |||
| 63 | |||
| 64 | #endif | ||
diff --git a/keyboards/chimera_ls/config.h b/keyboards/chimera_ls/config.h index d9c14a3fc..2eb028471 100644 --- a/keyboards/chimera_ls/config.h +++ b/keyboards/chimera_ls/config.h | |||
| @@ -15,8 +15,7 @@ You should have received a copy of the GNU General Public License | |||
| 15 | along with this program. If not, see <http://www.gnu.org/licenses/>. | 15 | along 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 | ||
| @@ -66,5 +65,3 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 66 | UCSR1B = _BV(TXEN1) | _BV(RXEN1); \ | 65 | UCSR1B = _BV(TXEN1) | _BV(RXEN1); \ |
| 67 | /* 8-bit data */ \ | 66 | /* 8-bit data */ \ |
| 68 | UCSR1C = _BV(UCSZ11) | _BV(UCSZ10); | 67 | UCSR1C = _BV(UCSZ11) | _BV(UCSZ10); |
| 69 | |||
| 70 | #endif | ||
