summaryrefslogtreecommitdiff
path: root/quantum/split_common/post_config.h
diff options
context:
space:
mode:
authorFlorian Didron <fdidron@users.noreply.github.com>2019-04-23 08:46:07 +0900
committerGitHub <noreply@github.com>2019-04-23 08:46:07 +0900
commitd22fda3ca4e2c6fd82f1275ee2f59882371a1794 (patch)
treef6b0142e8eb195418110dd86e7622c679d3766e9 /quantum/split_common/post_config.h
parent9f180afb25e2831f6640539b6ab1a3806abe6cee (diff)
parentff2838d2dd288537a8bf48d02872e8223b3ff7a3 (diff)
Merge branch 'master' into mouse_keys
Diffstat (limited to 'quantum/split_common/post_config.h')
-rw-r--r--quantum/split_common/post_config.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/quantum/split_common/post_config.h b/quantum/split_common/post_config.h
new file mode 100644
index 0000000000..0e59df3d06
--- /dev/null
+++ b/quantum/split_common/post_config.h
@@ -0,0 +1,15 @@
+#if defined(USE_I2C) || defined(EH)
+ // When using I2C, using rgblight implicitly involves split support.
+ #if defined(RGBLIGHT_ENABLE) && !defined(RGBLIGHT_SPLIT)
+ #define RGBLIGHT_SPLIT
+ #endif
+
+#else // use serial
+ // When using serial, the user must define RGBLIGHT_SPLIT explicitly
+ // in config.h as needed.
+ // see quantum/rgblight_post_config.h
+ #if defined(RGBLIGHT_ENABLE) && defined(RGBLIGHT_SPLIT)
+ // When using serial and RGBLIGHT_SPLIT need separate transaction
+ #define SERIAL_USE_MULTI_TRANSACTION
+ #endif
+#endif