3 * Copyright (c) 2019 Nordic Semiconductor ASA
5 * SPDX-License-Identifier: LicenseRef-BSD-5-Clause-Nordic
8 #include <power/reboot.h>
9 //#include <logging/log.h>
10 //LOG_MODULE_DECLARE(cc310_platform);
12 #include "nrf_cc310_platform_abort.h"
15 /** @brief Definition of abort function used for Zephyr
17 static void abort_function(char const * const reason)
19 //LOG_ERR("Reason: %s", reason);
21 //LOG_ERR("Rebooting");
22 sys_reboot(SYS_REBOOT_WARM);
30 /** @brief Definition of abort API to set in nrf_cc310_platform
32 static const nrf_cc310_platform_abort_apis_t apis =
35 .abort_fn = abort_function,
38 /** @brief Function to initialize the nrf_cc310_platform abort APIs.
40 void nrf_cc310_platform_abort_init(void)
42 nrf_cc310_platform_set_abort(&apis);