nochanges
Dependents: BLE_Acceleration_Statejudging
Fork of nRF51822 by
Diff: nordic/nrf-sdk/app_common/app_error.h
- Revision:
- 65:98215c4f3a25
- Parent:
- 49:c941433e0eb0
diff -r 5d5f5cbc7c79 -r 98215c4f3a25 nordic/nrf-sdk/app_common/app_error.h --- a/nordic/nrf-sdk/app_common/app_error.h Mon Sep 08 15:45:22 2014 +0000 +++ b/nordic/nrf-sdk/app_common/app_error.h Mon Sep 08 17:21:46 2014 +0100 @@ -1,5 +1,6 @@ /* Copyright (c) 2013 Nordic Semiconductor. All Rights Reserved. * + * The information contained herein is property of Nordic Semiconductor ASA. * Terms and conditions of usage are described in detail in NORDIC * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT. * @@ -8,7 +9,7 @@ * the file. * */ - + /** @file * * @defgroup app_error Common application error handler @@ -29,11 +30,11 @@ extern "C" { #endif -/**@brief Function for error handling, which is called when an error has occurred. +/**@brief Function for error handling, which is called when an error has occurred. * * @param[in] error_code Error code supplied to the handler. * @param[in] line_num Line number where the handler is called. - * @param[in] p_file_name Pointer to the file name. + * @param[in] p_file_name Pointer to the file name. */ void app_error_handler(uint32_t error_code, uint32_t line_num, const uint8_t * p_file_name); @@ -41,7 +42,7 @@ } #endif -/**@brief Macro for calling error handler function. +/**@brief Macro for calling error handler function. * * @param[in] ERR_CODE Error code supplied to the error handler. */ @@ -51,10 +52,10 @@ app_error_handler((ERR_CODE), __LINE__, (uint8_t*) __FILE__); \ } while (0) -/**@brief Macro for calling error handler function if supplied error code any other than NRF_SUCCESS. +/**@brief Macro for calling error handler function if supplied error code any other than NRF_SUCCESS. * * @param[in] ERR_CODE Error code supplied to the error handler. - */ + */ #define APP_ERROR_CHECK(ERR_CODE) \ do \ { \ @@ -63,12 +64,12 @@ { \ APP_ERROR_HANDLER(LOCAL_ERR_CODE); \ } \ - } while (0) - -/**@brief Macro for calling error handler function if supplied boolean value is false. + } while (0) + +/**@brief Macro for calling error handler function if supplied boolean value is false. * * @param[in] BOOLEAN_VALUE Boolean value to be evaluated. - */ + */ #define APP_ERROR_CHECK_BOOL(BOOLEAN_VALUE) \ do \ { \ @@ -77,7 +78,7 @@ { \ APP_ERROR_HANDLER(0); \ } \ - } while (0) + } while (0) #endif // APP_ERROR_H__