* Allow reset behavior to have a type property. * Add `bootloader` node that triggers DFU UF2 bootloader mode using the AdaFruit nrf52 bootloader.
19 lines
330 B
Text
19 lines
330 B
Text
#include <dt-bindings/zmk/reset.h>
|
|
|
|
/ {
|
|
behaviors {
|
|
reset: behavior_reset {
|
|
compatible = "zmk,behavior-reset";
|
|
label = "RESET";
|
|
#binding-cells = <0>;
|
|
};
|
|
|
|
bootloader: behavior_reset_dfu {
|
|
compatible = "zmk,behavior-reset";
|
|
label = "BOOTLOADER_RESET";
|
|
type = <RST_UF2>;
|
|
#binding-cells = <0>;
|
|
};
|
|
};
|
|
};
|