summaryrefslogtreecommitdiffstats
path: root/quantum/dip_switch.c
diff options
context:
space:
mode:
authorJoel Challis <git@zvecr.com>2022-11-04 11:54:35 +0000
committerGitHub <noreply@github.com>2022-11-04 11:54:35 +0000
commitea98aa8e5ef8bebac52a76ad22ddd22e6d7f289e (patch)
tree8246ef1793ed09df336860d317881a99146dc685 /quantum/dip_switch.c
parent8213eb7fbb979ee20c5394f1281713b76bde86e5 (diff)
Reduce includes for dip_switch header (#18951)
Diffstat (limited to 'quantum/dip_switch.c')
-rw-r--r--quantum/dip_switch.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/quantum/dip_switch.c b/quantum/dip_switch.c
index e180cfccdf..6e254578d1 100644
--- a/quantum/dip_switch.c
+++ b/quantum/dip_switch.c
@@ -16,14 +16,16 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
+#include <string.h> // for memcpy
+
#include "dip_switch.h"
+#include "gpio.h"
+#include "util.h"
+
#ifdef SPLIT_KEYBOARD
# include "split_common/split_util.h"
#endif
-// for memcpy
-#include <string.h>
-
#if !defined(DIP_SWITCH_PINS) && !defined(DIP_SWITCH_MATRIX_GRID)
# error "Either DIP_SWITCH_PINS or DIP_SWITCH_MATRIX_GRID must be defined."
#endif