mbed(SerialHalfDuplex入り)

Fork of mbed by mbed official

Committer:
bogdanm
Date:
Fri Jul 25 09:46:51 2014 +0100
Revision:
87:6213f644d804
Parent:
TARGET_NRF51822/TARGET_NORDIC/TARGET_NRF51822/Lib/s110_nrf51822_6_0_0/s110_nrf51822_6.0.0_API/include/nrf_error.h@82:6473597d706e
Release 87 of the mbed library

Main changes:

- error.h renamed to mbed_error.h to avoid name clashes
- upgraded to V7 of the nRF51822 soft-device 110
- New targets: HRM107
- Improved test infrastructure
- Bug fixes on various targets

Who changed what in which revision?

UserRevisionLine numberNew contents of line
bogdanm 82:6473597d706e 1 /*
bogdanm 82:6473597d706e 2 * Copyright (c) 2012 Nordic Semiconductor. All Rights Reserved.
bogdanm 82:6473597d706e 3 *
bogdanm 82:6473597d706e 4 * The information contained herein is confidential property of Nordic Semiconductor. The use,
bogdanm 82:6473597d706e 5 * copying, transfer or disclosure of such information is prohibited except by express written
bogdanm 82:6473597d706e 6 * agreement with Nordic Semiconductor.
bogdanm 82:6473597d706e 7 *
bogdanm 82:6473597d706e 8 */
bogdanm 82:6473597d706e 9 /**
bogdanm 82:6473597d706e 10 @defgroup nrf_error SoftDevice Global Error Codes
bogdanm 82:6473597d706e 11 @{
bogdanm 82:6473597d706e 12
bogdanm 82:6473597d706e 13 @brief Global Error definitions
bogdanm 82:6473597d706e 14 */
bogdanm 82:6473597d706e 15
bogdanm 82:6473597d706e 16 /* Header guard */
bogdanm 82:6473597d706e 17 #ifndef NRF_ERROR_H__
bogdanm 82:6473597d706e 18 #define NRF_ERROR_H__
bogdanm 82:6473597d706e 19
bogdanm 82:6473597d706e 20 /** @defgroup NRF_ERRORS_BASE Error Codes Base number definitions
bogdanm 82:6473597d706e 21 * @{ */
bogdanm 82:6473597d706e 22 #define NRF_ERROR_BASE_NUM (0x0) ///< Global error base
bogdanm 82:6473597d706e 23 #define NRF_ERROR_SDM_BASE_NUM (0x1000) ///< SDM error base
bogdanm 82:6473597d706e 24 #define NRF_ERROR_SOC_BASE_NUM (0x2000) ///< SoC error base
bogdanm 82:6473597d706e 25 #define NRF_ERROR_STK_BASE_NUM (0x3000) ///< STK error base
bogdanm 82:6473597d706e 26 /** @} */
bogdanm 82:6473597d706e 27
bogdanm 82:6473597d706e 28 #define NRF_SUCCESS (NRF_ERROR_BASE_NUM + 0) ///< Successful command
bogdanm 82:6473597d706e 29 #define NRF_ERROR_SVC_HANDLER_MISSING (NRF_ERROR_BASE_NUM + 1) ///< SVC handler is missing
bogdanm 82:6473597d706e 30 #define NRF_ERROR_SOFTDEVICE_NOT_ENABLED (NRF_ERROR_BASE_NUM + 2) ///< SoftDevice has not been enabled
bogdanm 82:6473597d706e 31 #define NRF_ERROR_INTERNAL (NRF_ERROR_BASE_NUM + 3) ///< Internal Error
bogdanm 82:6473597d706e 32 #define NRF_ERROR_NO_MEM (NRF_ERROR_BASE_NUM + 4) ///< No Memory for operation
bogdanm 82:6473597d706e 33 #define NRF_ERROR_NOT_FOUND (NRF_ERROR_BASE_NUM + 5) ///< Not found
bogdanm 82:6473597d706e 34 #define NRF_ERROR_NOT_SUPPORTED (NRF_ERROR_BASE_NUM + 6) ///< Not supported
bogdanm 82:6473597d706e 35 #define NRF_ERROR_INVALID_PARAM (NRF_ERROR_BASE_NUM + 7) ///< Invalid Parameter
bogdanm 82:6473597d706e 36 #define NRF_ERROR_INVALID_STATE (NRF_ERROR_BASE_NUM + 8) ///< Invalid state, operation disallowed in this state
bogdanm 82:6473597d706e 37 #define NRF_ERROR_INVALID_LENGTH (NRF_ERROR_BASE_NUM + 9) ///< Invalid Length
bogdanm 82:6473597d706e 38 #define NRF_ERROR_INVALID_FLAGS (NRF_ERROR_BASE_NUM + 10) ///< Invalid Flags
bogdanm 82:6473597d706e 39 #define NRF_ERROR_INVALID_DATA (NRF_ERROR_BASE_NUM + 11) ///< Invalid Data
bogdanm 82:6473597d706e 40 #define NRF_ERROR_DATA_SIZE (NRF_ERROR_BASE_NUM + 12) ///< Data size exceeds limit
bogdanm 82:6473597d706e 41 #define NRF_ERROR_TIMEOUT (NRF_ERROR_BASE_NUM + 13) ///< Operation timed out
bogdanm 82:6473597d706e 42 #define NRF_ERROR_NULL (NRF_ERROR_BASE_NUM + 14) ///< Null Pointer
bogdanm 82:6473597d706e 43 #define NRF_ERROR_FORBIDDEN (NRF_ERROR_BASE_NUM + 15) ///< Forbidden Operation
bogdanm 82:6473597d706e 44 #define NRF_ERROR_INVALID_ADDR (NRF_ERROR_BASE_NUM + 16) ///< Bad Memory Address
bogdanm 82:6473597d706e 45 #define NRF_ERROR_BUSY (NRF_ERROR_BASE_NUM + 17) ///< Busy
bogdanm 82:6473597d706e 46
bogdanm 82:6473597d706e 47 #endif // NRF_ERROR_H__
bogdanm 82:6473597d706e 48
bogdanm 82:6473597d706e 49 /**
bogdanm 82:6473597d706e 50 @}
bogdanm 82:6473597d706e 51 */