iOSのBLEコントローラアプリ「RCBController」と接続し、コントローラの操作を取得するサンプルプログラムです。 mbed HRM1017で動作を確認しています。 2014.08.20時点でのBLEライブラリに対応しました。
Fork of BLE_RCBController by
HRM1017/nordic/nrf-sdk/ble/ble_debug_assert_handler.h@4:ebda47d22091, 2014-08-20 (annotated)
- Committer:
- jksoft
- Date:
- Wed Aug 20 13:41:01 2014 +0000
- Revision:
- 4:ebda47d22091
- Parent:
- nRF51822/nordic/nrf-sdk/ble/ble_debug_assert_handler.h@1:48f6e08a3ac2
?????????
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
jksoft | 1:48f6e08a3ac2 | 1 | /* Copyright (c) 2013 Nordic Semiconductor. All Rights Reserved. |
jksoft | 1:48f6e08a3ac2 | 2 | * |
jksoft | 1:48f6e08a3ac2 | 3 | * The information contained herein is property of Nordic Semiconductor ASA. |
jksoft | 1:48f6e08a3ac2 | 4 | * Terms and conditions of usage are described in detail in NORDIC |
jksoft | 1:48f6e08a3ac2 | 5 | * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT. |
jksoft | 1:48f6e08a3ac2 | 6 | * |
jksoft | 1:48f6e08a3ac2 | 7 | * Licensees are granted free, non-transferable use of the information. NO |
jksoft | 1:48f6e08a3ac2 | 8 | * WARRANTY of ANY KIND is provided. This heading must NOT be removed from |
jksoft | 1:48f6e08a3ac2 | 9 | * the file. |
jksoft | 1:48f6e08a3ac2 | 10 | * |
jksoft | 1:48f6e08a3ac2 | 11 | */ |
jksoft | 1:48f6e08a3ac2 | 12 | |
jksoft | 1:48f6e08a3ac2 | 13 | /** @file |
jksoft | 1:48f6e08a3ac2 | 14 | * |
jksoft | 1:48f6e08a3ac2 | 15 | * @defgroup ble_debug_assert_handler Assert Handler for debug purposes. |
jksoft | 1:48f6e08a3ac2 | 16 | * @{ |
jksoft | 1:48f6e08a3ac2 | 17 | * @ingroup ble_sdk_lib |
jksoft | 1:48f6e08a3ac2 | 18 | * @brief Module for handling of assert during application development when debugging. |
jksoft | 1:48f6e08a3ac2 | 19 | * |
jksoft | 1:48f6e08a3ac2 | 20 | * @details This module may be used during development of an application to facilitate debugging. |
jksoft | 1:48f6e08a3ac2 | 21 | * It contains a function to write file name, line number and the Stack Memory to flash. |
jksoft | 1:48f6e08a3ac2 | 22 | * This module is ONLY for debugging purposes and must never be used in final product. |
jksoft | 1:48f6e08a3ac2 | 23 | * |
jksoft | 1:48f6e08a3ac2 | 24 | */ |
jksoft | 1:48f6e08a3ac2 | 25 | |
jksoft | 1:48f6e08a3ac2 | 26 | #ifndef BLE_DEBUG_ASSERT_HANDLER_H__ |
jksoft | 1:48f6e08a3ac2 | 27 | #define BLE_DEBUG_ASSERT_HANDLER_H__ |
jksoft | 1:48f6e08a3ac2 | 28 | |
jksoft | 1:48f6e08a3ac2 | 29 | #include <stdint.h> |
jksoft | 1:48f6e08a3ac2 | 30 | |
jksoft | 1:48f6e08a3ac2 | 31 | /**@brief Function for handling the Debug assert, which can be called from an error handler. |
jksoft | 1:48f6e08a3ac2 | 32 | * To be used only for debugging purposes. |
jksoft | 1:48f6e08a3ac2 | 33 | * |
jksoft | 1:48f6e08a3ac2 | 34 | *@details This code will copy the filename and line number into local variables for them to always |
jksoft | 1:48f6e08a3ac2 | 35 | * be accessible in Keil debugger. The function will also write the ARM Cortex-M0 stack |
jksoft | 1:48f6e08a3ac2 | 36 | * memory into flash where it can be retrieved and manually un-winded in order to |
jksoft | 1:48f6e08a3ac2 | 37 | * back-trace the location where the error ocured.<br> |
jksoft | 1:48f6e08a3ac2 | 38 | * @warning <b>ALL INTERRUPTS WILL BE DISABLED.</b> |
jksoft | 1:48f6e08a3ac2 | 39 | * |
jksoft | 1:48f6e08a3ac2 | 40 | * @note This function will never return but loop forever for debug purposes. |
jksoft | 1:48f6e08a3ac2 | 41 | * |
jksoft | 1:48f6e08a3ac2 | 42 | * @param[in] error_code Error code supplied to the handler. |
jksoft | 1:48f6e08a3ac2 | 43 | * @param[in] line_num Line number where the original handler is called. |
jksoft | 1:48f6e08a3ac2 | 44 | * @param[in] p_file_name Pointer to the file name. |
jksoft | 1:48f6e08a3ac2 | 45 | */ |
jksoft | 1:48f6e08a3ac2 | 46 | void ble_debug_assert_handler(uint32_t error_code, uint32_t line_num, const uint8_t * p_file_name); |
jksoft | 1:48f6e08a3ac2 | 47 | |
jksoft | 1:48f6e08a3ac2 | 48 | #endif /* BLE_DEBUG_ASSERT_HANDLER_H__ */ |