Yutaka Yoshida / Mbed 2 deprecated BLE_WallbotBLE_Challenge_byYUTAKA

Dependencies:   mbed

Fork of BLE_WallbotBLE_Challenge_byYUTAKA by keisuke Yoshida

Committer:
Dyotty
Date:
Mon Jun 18 06:18:04 2018 +0000
Revision:
10:d443aea353a2
Parent:
0:76dfa9657d9d
6/18

Who changed what in which revision?

UserRevisionLine numberNew contents of line
jksoft 0:76dfa9657d9d 1 /* Copyright (c) 2013 Nordic Semiconductor. All Rights Reserved.
jksoft 0:76dfa9657d9d 2 *
jksoft 0:76dfa9657d9d 3 * The information contained herein is property of Nordic Semiconductor ASA.
jksoft 0:76dfa9657d9d 4 * Terms and conditions of usage are described in detail in NORDIC
jksoft 0:76dfa9657d9d 5 * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
jksoft 0:76dfa9657d9d 6 *
jksoft 0:76dfa9657d9d 7 * Licensees are granted free, non-transferable use of the information. NO
jksoft 0:76dfa9657d9d 8 * WARRANTY of ANY KIND is provided. This heading must NOT be removed from
jksoft 0:76dfa9657d9d 9 * the file.
jksoft 0:76dfa9657d9d 10 *
jksoft 0:76dfa9657d9d 11 */
jksoft 0:76dfa9657d9d 12
jksoft 0:76dfa9657d9d 13 /** @file
jksoft 0:76dfa9657d9d 14 *
jksoft 0:76dfa9657d9d 15 * @defgroup ble_debug_assert_handler Assert Handler for debug purposes.
jksoft 0:76dfa9657d9d 16 * @{
jksoft 0:76dfa9657d9d 17 * @ingroup ble_sdk_lib
jksoft 0:76dfa9657d9d 18 * @brief Module for handling of assert during application development when debugging.
jksoft 0:76dfa9657d9d 19 *
jksoft 0:76dfa9657d9d 20 * @details This module may be used during development of an application to facilitate debugging.
jksoft 0:76dfa9657d9d 21 * It contains a function to write file name, line number and the Stack Memory to flash.
jksoft 0:76dfa9657d9d 22 * This module is ONLY for debugging purposes and must never be used in final product.
jksoft 0:76dfa9657d9d 23 *
jksoft 0:76dfa9657d9d 24 */
jksoft 0:76dfa9657d9d 25
jksoft 0:76dfa9657d9d 26 #ifndef BLE_DEBUG_ASSERT_HANDLER_H__
jksoft 0:76dfa9657d9d 27 #define BLE_DEBUG_ASSERT_HANDLER_H__
jksoft 0:76dfa9657d9d 28
jksoft 0:76dfa9657d9d 29 #include <stdint.h>
jksoft 0:76dfa9657d9d 30
jksoft 0:76dfa9657d9d 31 /**@brief Function for handling the Debug assert, which can be called from an error handler.
jksoft 0:76dfa9657d9d 32 * To be used only for debugging purposes.
jksoft 0:76dfa9657d9d 33 *
jksoft 0:76dfa9657d9d 34 *@details This code will copy the filename and line number into local variables for them to always
jksoft 0:76dfa9657d9d 35 * be accessible in Keil debugger. The function will also write the ARM Cortex-M0 stack
jksoft 0:76dfa9657d9d 36 * memory into flash where it can be retrieved and manually un-winded in order to
jksoft 0:76dfa9657d9d 37 * back-trace the location where the error ocured.<br>
jksoft 0:76dfa9657d9d 38 * @warning <b>ALL INTERRUPTS WILL BE DISABLED.</b>
jksoft 0:76dfa9657d9d 39 *
jksoft 0:76dfa9657d9d 40 * @note This function will never return but loop forever for debug purposes.
jksoft 0:76dfa9657d9d 41 *
jksoft 0:76dfa9657d9d 42 * @param[in] error_code Error code supplied to the handler.
jksoft 0:76dfa9657d9d 43 * @param[in] line_num Line number where the original handler is called.
jksoft 0:76dfa9657d9d 44 * @param[in] p_file_name Pointer to the file name.
jksoft 0:76dfa9657d9d 45 */
jksoft 0:76dfa9657d9d 46 void ble_debug_assert_handler(uint32_t error_code, uint32_t line_num, const uint8_t * p_file_name);
jksoft 0:76dfa9657d9d 47
jksoft 0:76dfa9657d9d 48 #endif /* BLE_DEBUG_ASSERT_HANDLER_H__ */