diff options
| author | noroadsleft <18669334+noroadsleft@users.noreply.github.com> | 2018-09-23 18:47:43 -0700 |
|---|---|---|
| committer | Drashna Jaelre <drashna@live.com> | 2018-09-23 18:47:43 -0700 |
| commit | 07d317ab8877f935768e8798c1560242e3687847 (patch) | |
| tree | 3034df6b48d7bf9fb853f57edd331122ccd8fcf8 | |
| parent | ce057ea47448d0df2a05efa419f61563649a5821 (diff) | |
| download | qmk_firmware-07d317ab8877f935768e8798c1560242e3687847.tar.gz qmk_firmware-07d317ab8877f935768e8798c1560242e3687847.zip | |
Keyboard: Crkbd: move I2C and Serial defines to keyboard's config.h (#3970)
* Crkbd: move I2C and Serial defines to keyboard's config.h
per @drashna on Discord
* Crkbd: remove misleading comment re: I2C and Serial
USE_I2C and USE_SERIAL are usually a "one or the other"-type deal, but this keyboard uses both.
| -rw-r--r-- | keyboards/crkbd/config.h | 3 | ||||
| -rw-r--r-- | keyboards/crkbd/keymaps/default/config.h | 4 | ||||
| -rw-r--r-- | keyboards/crkbd/keymaps/like_jis/config.h | 4 |
3 files changed, 3 insertions, 8 deletions
diff --git a/keyboards/crkbd/config.h b/keyboards/crkbd/config.h index 64fee7545..4357a218d 100644 --- a/keyboards/crkbd/config.h +++ b/keyboards/crkbd/config.h | |||
| @@ -21,6 +21,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 21 | #include "config_common.h" | 21 | #include "config_common.h" |
| 22 | #include <serial_config.h> | 22 | #include <serial_config.h> |
| 23 | 23 | ||
| 24 | #define USE_I2C | ||
| 25 | #define USE_SERIAL | ||
| 26 | |||
| 24 | #ifdef USE_Link_Time_Optimization | 27 | #ifdef USE_Link_Time_Optimization |
| 25 | // LTO has issues with macros (action_get_macro) and "functions" (fn_actions), | 28 | // LTO has issues with macros (action_get_macro) and "functions" (fn_actions), |
| 26 | // so just disable them | 29 | // so just disable them |
diff --git a/keyboards/crkbd/keymaps/default/config.h b/keyboards/crkbd/keymaps/default/config.h index c573530f7..644e81365 100644 --- a/keyboards/crkbd/keymaps/default/config.h +++ b/keyboards/crkbd/keymaps/default/config.h | |||
| @@ -20,10 +20,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 20 | 20 | ||
| 21 | #pragma once | 21 | #pragma once |
| 22 | 22 | ||
| 23 | /* Use I2C or Serial */ | ||
| 24 | |||
| 25 | #define USE_I2C | ||
| 26 | #define USE_SERIAL | ||
| 27 | //#define USE_MATRIX_I2C | 23 | //#define USE_MATRIX_I2C |
| 28 | 24 | ||
| 29 | /* Select hand configuration */ | 25 | /* Select hand configuration */ |
diff --git a/keyboards/crkbd/keymaps/like_jis/config.h b/keyboards/crkbd/keymaps/like_jis/config.h index 4c31cc779..0e2960a93 100644 --- a/keyboards/crkbd/keymaps/like_jis/config.h +++ b/keyboards/crkbd/keymaps/like_jis/config.h | |||
| @@ -20,10 +20,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 20 | 20 | ||
| 21 | #pragma once | 21 | #pragma once |
| 22 | 22 | ||
| 23 | /* Use I2C or Serial */ | ||
| 24 | |||
| 25 | #define USE_I2C | ||
| 26 | #define USE_SERIAL | ||
| 27 | //#define USE_MATRIX_I2C | 23 | //#define USE_MATRIX_I2C |
| 28 | 24 | ||
| 29 | /* Select hand configuration */ | 25 | /* Select hand configuration */ |
