forked from mirrors/qmk_firmware
Reduce includes for dip_switch header (#18951)
This commit is contained in:
parent
8213eb7fbb
commit
ea98aa8e5e
2 changed files with 7 additions and 4 deletions
|
@ -16,14 +16,16 @@
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <string.h> // for memcpy
|
||||||
|
|
||||||
#include "dip_switch.h"
|
#include "dip_switch.h"
|
||||||
|
#include "gpio.h"
|
||||||
|
#include "util.h"
|
||||||
|
|
||||||
#ifdef SPLIT_KEYBOARD
|
#ifdef SPLIT_KEYBOARD
|
||||||
# include "split_common/split_util.h"
|
# include "split_common/split_util.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// for memcpy
|
|
||||||
#include <string.h>
|
|
||||||
|
|
||||||
#if !defined(DIP_SWITCH_PINS) && !defined(DIP_SWITCH_MATRIX_GRID)
|
#if !defined(DIP_SWITCH_PINS) && !defined(DIP_SWITCH_MATRIX_GRID)
|
||||||
# error "Either DIP_SWITCH_PINS or DIP_SWITCH_MATRIX_GRID must be defined."
|
# error "Either DIP_SWITCH_PINS or DIP_SWITCH_MATRIX_GRID must be defined."
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -18,7 +18,8 @@
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "quantum.h"
|
#include <stdbool.h>
|
||||||
|
#include <stdint.h>
|
||||||
|
|
||||||
bool dip_switch_update_kb(uint8_t index, bool active);
|
bool dip_switch_update_kb(uint8_t index, bool active);
|
||||||
bool dip_switch_update_user(uint8_t index, bool active);
|
bool dip_switch_update_user(uint8_t index, bool active);
|
||||||
|
|
Loading…
Reference in a new issue