changed low freq. clock source to IRC

Dependents:   BLE_ANCS_SDAPI_IRC

Fork of nRF51822 by Nordic Semiconductor

Committer:
ytsuboi
Date:
Sun Jul 06 13:08:48 2014 +0000
Revision:
37:8c9bf3bea9db
Parent:
0:eff01767de02
changed low freq. clock to IRC

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 #include "nordic_global.h"
bogdanm 0:eff01767de02 31
bogdanm 0:eff01767de02 32 /**@brief Function for handling the Debug assert, which can be called from an error handler.
bogdanm 0:eff01767de02 33 * To be used only for debugging purposes.
bogdanm 0:eff01767de02 34 *
bogdanm 0:eff01767de02 35 *@details This code will copy the filename and line number into local variables for them to always
bogdanm 0:eff01767de02 36 * be accessible in Keil debugger. The function will also write the ARM Cortex-M0 stack
bogdanm 0:eff01767de02 37 * memory into flash where it can be retrieved and manually un-winded in order to
bogdanm 0:eff01767de02 38 * back-trace the location where the error ocured.<br>
bogdanm 0:eff01767de02 39 * @warning <b>ALL INTERRUPTS WILL BE DISABLED.</b>
bogdanm 0:eff01767de02 40 *
bogdanm 0:eff01767de02 41 * @note This function will never return but loop forever for debug purposes.
bogdanm 0:eff01767de02 42 *
bogdanm 0:eff01767de02 43 * @param[in] error_code Error code supplied to the handler.
bogdanm 0:eff01767de02 44 * @param[in] line_num Line number where the original handler is called.
bogdanm 0:eff01767de02 45 * @param[in] p_file_name Pointer to the file name.
bogdanm 0:eff01767de02 46 */
bogdanm 0:eff01767de02 47 void ble_debug_assert_handler(uint32_t error_code, uint32_t line_num, const uint8_t * p_file_name);
bogdanm 0:eff01767de02 48
bogdanm 0:eff01767de02 49 #endif /* BLE_DEBUG_ASSERT_HANDLER_H__ */