For now, this just clears BLE bonds, but it can be updated in the future to handle clearing all settings.
24 lines
489 B
C
24 lines
489 B
C
/*
|
|
* Copyright (c) 2023 The ZMK Contributors
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <zephyr/toolchain.h>
|
|
#include <dt-bindings/zmk/reset.h>
|
|
|
|
/**
|
|
* Reboot the system.
|
|
* @param type A ZMK_RESET_* value indicating how to reboot.
|
|
*/
|
|
FUNC_NORETURN void zmk_reset(int type);
|
|
|
|
/**
|
|
* Clear all persistent settings.
|
|
*
|
|
* This should typically be followed by a call to zmk_reset() to ensure that
|
|
* all subsystems are properly reset.
|
|
*/
|
|
void zmk_reset_settings(void);
|