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/fc660c | |
| 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/fc660c')
| -rw-r--r-- | keyboards/fc660c/actuation_point.h | 5 | ||||
| -rw-r--r-- | keyboards/fc660c/config.h | 5 | ||||
| -rw-r--r-- | keyboards/fc660c/fc660c.h | 41 | ||||
| -rw-r--r-- | keyboards/fc660c/i2c.h | 5 |
4 files changed, 16 insertions, 40 deletions
diff --git a/keyboards/fc660c/actuation_point.h b/keyboards/fc660c/actuation_point.h index f7066d92c..e02832186 100644 --- a/keyboards/fc660c/actuation_point.h +++ b/keyboards/fc660c/actuation_point.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 ACTUATION_POINT_H | 18 | #pragma once |
| 19 | #define ACTUATION_POINT_H | ||
| 20 | 19 | ||
| 21 | #include <stdint.h> | 20 | #include <stdint.h> |
| 22 | 21 | ||
| @@ -28,5 +27,3 @@ void actuation_point_down(void); | |||
| 28 | 27 | ||
| 29 | // be careful with this. | 28 | // be careful with this. |
| 30 | void adjust_actuation_point(int offset); | 29 | void adjust_actuation_point(int offset); |
| 31 | |||
| 32 | #endif | ||
diff --git a/keyboards/fc660c/config.h b/keyboards/fc660c/config.h index e979daf33..460881cb1 100644 --- a/keyboards/fc660c/config.h +++ b/keyboards/fc660c/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 | ||
| @@ -80,5 +79,3 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 80 | // test all keys before further adjustment. | 79 | // test all keys before further adjustment. |
| 81 | // this should probably stay in the range +/-5. | 80 | // this should probably stay in the range +/-5. |
| 82 | // #define ACTUATION_DEPTH_ADJUSTMENT 0 | 81 | // #define ACTUATION_DEPTH_ADJUSTMENT 0 |
| 83 | |||
| 84 | #endif | ||
diff --git a/keyboards/fc660c/fc660c.h b/keyboards/fc660c/fc660c.h index e3621570d..fca02dc0e 100644 --- a/keyboards/fc660c/fc660c.h +++ b/keyboards/fc660c/fc660c.h | |||
| @@ -14,38 +14,23 @@ GNU General Public License for more details. | |||
| 14 | You should have received a copy of the GNU General Public License | 14 | 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 | #ifndef FC660C_H | 17 | |
| 18 | #define FC660C_H | 18 | #pragma once |
| 19 | 19 | ||
| 20 | #include "quantum.h" | 20 | #include "quantum.h" |
| 21 | 21 | ||
| 22 | #define XXX KC_NO | ||
| 22 | 23 | ||
| 23 | #define LAYOUT( \ | 24 | #define LAYOUT( \ |
| 24 | K13, K10, K11, K12, K14, K16, K17, K15, K1B, K18, K19, K1A, K1C, K1E, K1F, \ | 25 | k13, k10, k11, k12, k14, k16, k17, k15, k1B, k18, k19, k1A, k1C, k1E, k1F, \ |
| 25 | K03, K00, K01, K02, K04, K06, K07, K05, K0B, K08, K09, K0A, K0C, K0E, K0F, \ | 26 | k03, k00, k01, k02, k04, k06, k07, k05, k0B, k08, k09, k0A, k0C, k0E, k0F, \ |
| 26 | K43, K40, K41, K42, K44, K46, K47, K45, K4B, K48, K49, K4A, K4E, \ | 27 | k43, k40, k41, k42, k44, k46, k47, k45, k4B, k48, k49, k4A, k4E, \ |
| 27 | K33, K31, K32, K34, K36, K37, K35, K3B, K38, K39, K3A, K3C, K3D, \ | 28 | k33, k31, k32, k34, k36, k37, k35, k3B, k38, k39, k3A, k3C, k3D, \ |
| 28 | K23, K21, K22, K27, K28, K2A, K2C, K2E, K2D, K2F \ | 29 | k23, k21, k22, k27, k28, k2A, k2C, k2E, k2D, k2F \ |
| 29 | ) { \ | 30 | ) { \ |
| 30 | { K00, K01, K02, K03, K04, K05, K06, K07, \ | 31 | { k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0A, k0B, k0C, XXX, k0E, k0F }, \ |
| 31 | K08, K09, K0A, K0B, K0C, KC_NO, K0E, K0F }, \ | 32 | { k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k1A, k1B, k1C, XXX, k1E, k1F }, \ |
| 32 | { K10, K11, K12, K13, K14, K15, K16, K17, \ | 33 | { XXX, k21, k22, k23, XXX, XXX, XXX, k27, k28, XXX, k2A, XXX, k2C, k2D, k2E, k2F }, \ |
| 33 | K18, K19, K1A, K1B, K1C, KC_NO, K1E, K1F }, \ | 34 | { XXX, k31, k32, k33, k34, k35, k36, k37, k38, k39, k3A, k3B, k3C, k3D, XXX, XXX }, \ |
| 34 | { KC_NO, K21, K22, K23, KC_NO, KC_NO, KC_NO, K27, \ | 35 | { k40, k41, k42, k43, k44, k45, k46, k47, k48, k49, k4A, k4B, XXX, XXX, k4E, XXX } \ |
| 35 | K28, KC_NO, K2A, KC_NO, K2C, K2D, K2E, K2F }, \ | ||
| 36 | { KC_NO, K31, K32, K33, K34, K35, K36, K37, \ | ||
| 37 | K38, K39, K3A, K3B, K3C, K3D, KC_NO, KC_NO }, \ | ||
| 38 | { K40, K41, K42, K43, K44, K45, K46, K47, \ | ||
| 39 | K48, K49, K4A, K4B, KC_NO, KC_NO, K4E, KC_NO } \ | ||
| 40 | } | 36 | } |
| 41 | /* | ||
| 42 | KEYMAP( | ||
| 43 | _______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______, _______, | ||
| 44 | _______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______, _______, | ||
| 45 | _______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______, _______, | ||
| 46 | _______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______, _______, | ||
| 47 | _______,_______,_______, _______, _______,_______,_______, _______,_______,_______ | ||
| 48 | ) | ||
| 49 | */ | ||
| 50 | |||
| 51 | #endif | ||
diff --git a/keyboards/fc660c/i2c.h b/keyboards/fc660c/i2c.h index c15b6bc50..8910e70f1 100644 --- a/keyboards/fc660c/i2c.h +++ b/keyboards/fc660c/i2c.h | |||
| @@ -1,5 +1,4 @@ | |||
| 1 | #ifndef I2C_H | 1 | #pragma once |
| 2 | #define I2C_H | ||
| 3 | 2 | ||
| 4 | #include <stdint.h> | 3 | #include <stdint.h> |
| 5 | 4 | ||
| @@ -45,5 +44,3 @@ extern unsigned char i2c_readNak(void); | |||
| 45 | extern unsigned char i2c_read(unsigned char ack); | 44 | extern unsigned char i2c_read(unsigned char ack); |
| 46 | 45 | ||
| 47 | #define i2c_read(ack) (ack) ? i2c_readAck() : i2c_readNak(); | 46 | #define i2c_read(ack) (ack) ? i2c_readAck() : i2c_readNak(); |
| 48 | |||
| 49 | #endif | ||
