Nordic stack and drivers for the mbed BLE API
Fork of nRF51822 by
TARGET_MCU_NRF51822/sdk/source/softdevice/s130/headers/nrf_error_soc.h@640:c90ae1400bf2, 2016-09-14 (annotated)
- Committer:
- Vincent Coubard
- Date:
- Wed Sep 14 14:39:43 2016 +0100
- Revision:
- 640:c90ae1400bf2
Sync with bdab10dc0f90748b6989c8b577771bb403ca6bd8 from ARMmbed/mbed-os.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Vincent Coubard |
640:c90ae1400bf2 | 1 | /* |
Vincent Coubard |
640:c90ae1400bf2 | 2 | * Copyright (c) Nordic Semiconductor ASA |
Vincent Coubard |
640:c90ae1400bf2 | 3 | * All rights reserved. |
Vincent Coubard |
640:c90ae1400bf2 | 4 | * |
Vincent Coubard |
640:c90ae1400bf2 | 5 | * Redistribution and use in source and binary forms, with or without modification, |
Vincent Coubard |
640:c90ae1400bf2 | 6 | * are permitted provided that the following conditions are met: |
Vincent Coubard |
640:c90ae1400bf2 | 7 | * |
Vincent Coubard |
640:c90ae1400bf2 | 8 | * 1. Redistributions of source code must retain the above copyright notice, this |
Vincent Coubard |
640:c90ae1400bf2 | 9 | * list of conditions and the following disclaimer. |
Vincent Coubard |
640:c90ae1400bf2 | 10 | * |
Vincent Coubard |
640:c90ae1400bf2 | 11 | * 2. Redistributions in binary form must reproduce the above copyright notice, this |
Vincent Coubard |
640:c90ae1400bf2 | 12 | * list of conditions and the following disclaimer in the documentation and/or |
Vincent Coubard |
640:c90ae1400bf2 | 13 | * other materials provided with the distribution. |
Vincent Coubard |
640:c90ae1400bf2 | 14 | * |
Vincent Coubard |
640:c90ae1400bf2 | 15 | * 3. Neither the name of Nordic Semiconductor ASA nor the names of other |
Vincent Coubard |
640:c90ae1400bf2 | 16 | * contributors to this software may be used to endorse or promote products |
Vincent Coubard |
640:c90ae1400bf2 | 17 | * derived from this software without specific prior written permission. |
Vincent Coubard |
640:c90ae1400bf2 | 18 | * |
Vincent Coubard |
640:c90ae1400bf2 | 19 | * |
Vincent Coubard |
640:c90ae1400bf2 | 20 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND |
Vincent Coubard |
640:c90ae1400bf2 | 21 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED |
Vincent Coubard |
640:c90ae1400bf2 | 22 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
Vincent Coubard |
640:c90ae1400bf2 | 23 | * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR |
Vincent Coubard |
640:c90ae1400bf2 | 24 | * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES |
Vincent Coubard |
640:c90ae1400bf2 | 25 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; |
Vincent Coubard |
640:c90ae1400bf2 | 26 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON |
Vincent Coubard |
640:c90ae1400bf2 | 27 | * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
Vincent Coubard |
640:c90ae1400bf2 | 28 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS |
Vincent Coubard |
640:c90ae1400bf2 | 29 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
Vincent Coubard |
640:c90ae1400bf2 | 30 | * |
Vincent Coubard |
640:c90ae1400bf2 | 31 | */ |
Vincent Coubard |
640:c90ae1400bf2 | 32 | /** |
Vincent Coubard |
640:c90ae1400bf2 | 33 | @addtogroup nrf_soc_api |
Vincent Coubard |
640:c90ae1400bf2 | 34 | @{ |
Vincent Coubard |
640:c90ae1400bf2 | 35 | @defgroup nrf_soc_error SoC Library Error Codes |
Vincent Coubard |
640:c90ae1400bf2 | 36 | @{ |
Vincent Coubard |
640:c90ae1400bf2 | 37 | |
Vincent Coubard |
640:c90ae1400bf2 | 38 | @brief Error definitions for the SoC library |
Vincent Coubard |
640:c90ae1400bf2 | 39 | |
Vincent Coubard |
640:c90ae1400bf2 | 40 | */ |
Vincent Coubard |
640:c90ae1400bf2 | 41 | |
Vincent Coubard |
640:c90ae1400bf2 | 42 | /* Header guard */ |
Vincent Coubard |
640:c90ae1400bf2 | 43 | #ifndef NRF_ERROR_SOC_H__ |
Vincent Coubard |
640:c90ae1400bf2 | 44 | #define NRF_ERROR_SOC_H__ |
Vincent Coubard |
640:c90ae1400bf2 | 45 | |
Vincent Coubard |
640:c90ae1400bf2 | 46 | #include "nrf_error.h" |
Vincent Coubard |
640:c90ae1400bf2 | 47 | |
Vincent Coubard |
640:c90ae1400bf2 | 48 | /* Mutex Errors */ |
Vincent Coubard |
640:c90ae1400bf2 | 49 | #define NRF_ERROR_SOC_MUTEX_ALREADY_TAKEN (NRF_ERROR_SOC_BASE_NUM + 0) ///< Mutex already taken |
Vincent Coubard |
640:c90ae1400bf2 | 50 | |
Vincent Coubard |
640:c90ae1400bf2 | 51 | /* NVIC errors */ |
Vincent Coubard |
640:c90ae1400bf2 | 52 | #define NRF_ERROR_SOC_NVIC_INTERRUPT_NOT_AVAILABLE (NRF_ERROR_SOC_BASE_NUM + 1) ///< NVIC interrupt not available |
Vincent Coubard |
640:c90ae1400bf2 | 53 | #define NRF_ERROR_SOC_NVIC_INTERRUPT_PRIORITY_NOT_ALLOWED (NRF_ERROR_SOC_BASE_NUM + 2) ///< NVIC interrupt priority not allowed |
Vincent Coubard |
640:c90ae1400bf2 | 54 | #define NRF_ERROR_SOC_NVIC_SHOULD_NOT_RETURN (NRF_ERROR_SOC_BASE_NUM + 3) ///< NVIC should not return |
Vincent Coubard |
640:c90ae1400bf2 | 55 | |
Vincent Coubard |
640:c90ae1400bf2 | 56 | /* Power errors */ |
Vincent Coubard |
640:c90ae1400bf2 | 57 | #define NRF_ERROR_SOC_POWER_MODE_UNKNOWN (NRF_ERROR_SOC_BASE_NUM + 4) ///< Power mode unknown |
Vincent Coubard |
640:c90ae1400bf2 | 58 | #define NRF_ERROR_SOC_POWER_POF_THRESHOLD_UNKNOWN (NRF_ERROR_SOC_BASE_NUM + 5) ///< Power POF threshold unknown |
Vincent Coubard |
640:c90ae1400bf2 | 59 | #define NRF_ERROR_SOC_POWER_OFF_SHOULD_NOT_RETURN (NRF_ERROR_SOC_BASE_NUM + 6) ///< Power off should not return |
Vincent Coubard |
640:c90ae1400bf2 | 60 | |
Vincent Coubard |
640:c90ae1400bf2 | 61 | /* Rand errors */ |
Vincent Coubard |
640:c90ae1400bf2 | 62 | #define NRF_ERROR_SOC_RAND_NOT_ENOUGH_VALUES (NRF_ERROR_SOC_BASE_NUM + 7) ///< RAND not enough values |
Vincent Coubard |
640:c90ae1400bf2 | 63 | |
Vincent Coubard |
640:c90ae1400bf2 | 64 | /* PPI errors */ |
Vincent Coubard |
640:c90ae1400bf2 | 65 | #define NRF_ERROR_SOC_PPI_INVALID_CHANNEL (NRF_ERROR_SOC_BASE_NUM + 8) ///< Invalid PPI Channel |
Vincent Coubard |
640:c90ae1400bf2 | 66 | #define NRF_ERROR_SOC_PPI_INVALID_GROUP (NRF_ERROR_SOC_BASE_NUM + 9) ///< Invalid PPI Group |
Vincent Coubard |
640:c90ae1400bf2 | 67 | |
Vincent Coubard |
640:c90ae1400bf2 | 68 | #endif // NRF_ERROR_SOC_H__ |
Vincent Coubard |
640:c90ae1400bf2 | 69 | /** |
Vincent Coubard |
640:c90ae1400bf2 | 70 | @} |
Vincent Coubard |
640:c90ae1400bf2 | 71 | @} |
Vincent Coubard |
640:c90ae1400bf2 | 72 | */ |