b84d29c384
* Use lesser-known DT features to skip behaviors not referenced in the user keymap * Update the behaviors to skip code if no nodes found. * Remove some empty config/data structs where unused in behaviors.
24 lines
450 B
Text
24 lines
450 B
Text
/*
|
|
* Copyright (c) 2020 The ZMK Contributors
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*/
|
|
|
|
#include <dt-bindings/zmk/reset.h>
|
|
|
|
/ {
|
|
behaviors {
|
|
/omit-if-no-ref/ reset: behavior_reset {
|
|
compatible = "zmk,behavior-reset";
|
|
label = "RESET";
|
|
#binding-cells = <0>;
|
|
};
|
|
|
|
/omit-if-no-ref/ bootloader: behavior_reset_dfu {
|
|
compatible = "zmk,behavior-reset";
|
|
label = "BOOTLOADER_RESET";
|
|
type = <RST_UF2>;
|
|
#binding-cells = <0>;
|
|
};
|
|
};
|
|
};
|