forked from kofal.net/zmk
feat(behaviors): Add &bootloader behavior.
* Allow reset behavior to have a type property. * Add `bootloader` node that triggers DFU UF2 bootloader mode using the AdaFruit nrf52 bootloader.
This commit is contained in:
12
app/include/dt-bindings/zmk/reset.h
Normal file
12
app/include/dt-bindings/zmk/reset.h
Normal file
@@ -0,0 +1,12 @@
|
||||
/*
|
||||
* Copyright (c) 2020 Peter Johanson <peter@peterjohanson.com>
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*/
|
||||
|
||||
#define RST_WARM 0x00
|
||||
#define RST_COLD 0x01
|
||||
|
||||
// AdaFruit nrf52 Bootloader Specific. See https://github.com/adafruit/Adafruit_nRF52_Bootloader/blob/d6b28e66053eea467166f44875e3c7ec741cb471/src/main.c#L107
|
||||
|
||||
#define RST_UF2 0x57
|
||||
Reference in New Issue
Block a user