Fork of the official mbed C/C SDK provides the software platform and libraries to build your applications for RenBED.
Dependents: 1-RenBuggyTimed RenBED_RGB RenBED_RGB_PWM RenBED_RGB
Fork of mbed by
TARGET_NRF51822/nrf_error_soc.h@80:8e73be2a2ac1, 2014-02-21 (annotated)
- Committer:
- emilmont
- Date:
- Fri Feb 21 12:21:39 2014 +0000
- Revision:
- 80:8e73be2a2ac1
First alpha release for the NRF51822 target (to be tested in the online IDE)
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
emilmont | 80:8e73be2a2ac1 | 1 | /* |
emilmont | 80:8e73be2a2ac1 | 2 | * Copyright (c) 2012 Nordic Semiconductor. All Rights Reserved. |
emilmont | 80:8e73be2a2ac1 | 3 | * |
emilmont | 80:8e73be2a2ac1 | 4 | * The information contained herein is confidential property of Nordic Semiconductor. The use, |
emilmont | 80:8e73be2a2ac1 | 5 | * copying, transfer or disclosure of such information is prohibited except by express written |
emilmont | 80:8e73be2a2ac1 | 6 | * agreement with Nordic Semiconductor. |
emilmont | 80:8e73be2a2ac1 | 7 | * |
emilmont | 80:8e73be2a2ac1 | 8 | */ |
emilmont | 80:8e73be2a2ac1 | 9 | /** |
emilmont | 80:8e73be2a2ac1 | 10 | @addtogroup nrf_soc_api |
emilmont | 80:8e73be2a2ac1 | 11 | @{ |
emilmont | 80:8e73be2a2ac1 | 12 | @defgroup nrf_soc_error SoC Library Error Codes |
emilmont | 80:8e73be2a2ac1 | 13 | @{ |
emilmont | 80:8e73be2a2ac1 | 14 | |
emilmont | 80:8e73be2a2ac1 | 15 | @brief Error definitions for the SoC library |
emilmont | 80:8e73be2a2ac1 | 16 | |
emilmont | 80:8e73be2a2ac1 | 17 | */ |
emilmont | 80:8e73be2a2ac1 | 18 | |
emilmont | 80:8e73be2a2ac1 | 19 | /* Header guard */ |
emilmont | 80:8e73be2a2ac1 | 20 | #ifndef NRF_ERROR_SOC_H__ |
emilmont | 80:8e73be2a2ac1 | 21 | #define NRF_ERROR_SOC_H__ |
emilmont | 80:8e73be2a2ac1 | 22 | |
emilmont | 80:8e73be2a2ac1 | 23 | #include "nrf_error.h" |
emilmont | 80:8e73be2a2ac1 | 24 | |
emilmont | 80:8e73be2a2ac1 | 25 | /* Mutex Errors */ |
emilmont | 80:8e73be2a2ac1 | 26 | #define NRF_ERROR_SOC_MUTEX_ALREADY_TAKEN (NRF_ERROR_SOC_BASE_NUM + 0) ///< Mutex already taken |
emilmont | 80:8e73be2a2ac1 | 27 | |
emilmont | 80:8e73be2a2ac1 | 28 | /* NVIC errors */ |
emilmont | 80:8e73be2a2ac1 | 29 | #define NRF_ERROR_SOC_NVIC_INTERRUPT_NOT_AVAILABLE (NRF_ERROR_SOC_BASE_NUM + 1) ///< NVIC interrupt not available |
emilmont | 80:8e73be2a2ac1 | 30 | #define NRF_ERROR_SOC_NVIC_INTERRUPT_PRIORITY_NOT_ALLOWED (NRF_ERROR_SOC_BASE_NUM + 2) ///< NVIC interrupt priority not allowed |
emilmont | 80:8e73be2a2ac1 | 31 | #define NRF_ERROR_SOC_NVIC_SHOULD_NOT_RETURN (NRF_ERROR_SOC_BASE_NUM + 3) ///< NVIC should not return |
emilmont | 80:8e73be2a2ac1 | 32 | |
emilmont | 80:8e73be2a2ac1 | 33 | /* Power errors */ |
emilmont | 80:8e73be2a2ac1 | 34 | #define NRF_ERROR_SOC_POWER_MODE_UNKNOWN (NRF_ERROR_SOC_BASE_NUM + 4) ///< Power mode unknown |
emilmont | 80:8e73be2a2ac1 | 35 | #define NRF_ERROR_SOC_POWER_POF_THRESHOLD_UNKNOWN (NRF_ERROR_SOC_BASE_NUM + 5) ///< Power POF threshold unknown |
emilmont | 80:8e73be2a2ac1 | 36 | #define NRF_ERROR_SOC_POWER_OFF_SHOULD_NOT_RETURN (NRF_ERROR_SOC_BASE_NUM + 6) ///< Power off should not return |
emilmont | 80:8e73be2a2ac1 | 37 | |
emilmont | 80:8e73be2a2ac1 | 38 | /* Rand errors */ |
emilmont | 80:8e73be2a2ac1 | 39 | #define NRF_ERROR_SOC_RAND_NOT_ENOUGH_VALUES (NRF_ERROR_SOC_BASE_NUM + 7) ///< RAND not enough values |
emilmont | 80:8e73be2a2ac1 | 40 | |
emilmont | 80:8e73be2a2ac1 | 41 | /* PPI errors */ |
emilmont | 80:8e73be2a2ac1 | 42 | #define NRF_ERROR_SOC_PPI_INVALID_CHANNEL (NRF_ERROR_SOC_BASE_NUM + 8) ///< Invalid PPI Channel |
emilmont | 80:8e73be2a2ac1 | 43 | #define NRF_ERROR_SOC_PPI_INVALID_GROUP (NRF_ERROR_SOC_BASE_NUM + 9) ///< Invalid PPI Group |
emilmont | 80:8e73be2a2ac1 | 44 | |
emilmont | 80:8e73be2a2ac1 | 45 | #endif // NRF_ERROR_SOC_H__ |
emilmont | 80:8e73be2a2ac1 | 46 | /** |
emilmont | 80:8e73be2a2ac1 | 47 | @} |
emilmont | 80:8e73be2a2ac1 | 48 | @} |
emilmont | 80:8e73be2a2ac1 | 49 | */ |