Nordic stack and drivers for the mbed BLE API

Fork of nRF51822 by Nordic Semiconductor

Committer:
todotani
Date:
Fri Sep 05 14:20:55 2014 +0000
Revision:
61:214f61f4d5f8
Parent:
37:c29c330d942c
BLE_Health_Thermometer for mbed HRM1017 with BLE library 0.1.0

Who changed what in which revision?

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