最新revisionだとなんかerrorになるので、暫定的に rev 111にrevert。ごめんなさい。こういうときどういうふうにcommitすればいいのか分からなかったので。

Dependents:   MiniSteer_BLE

Fork of BLE_API by Bluetooth Low Energy

Committer:
Rohit Grover
Date:
Thu Jul 24 15:35:04 2014 +0100
Revision:
107:bd10367dfd1c
Parent:
106:a20be740075d
Child:
109:8559a2da6f41
adding another error instance to blecommon.h

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Rohit Grover 106:a20be740075d 1 /* mbed Microcontroller Library
Rohit Grover 106:a20be740075d 2 * Copyright (c) 2006-2013 ARM Limited
Rohit Grover 106:a20be740075d 3 *
Rohit Grover 106:a20be740075d 4 * Licensed under the Apache License, Version 2.0 (the "License");
Rohit Grover 106:a20be740075d 5 * you may not use this file except in compliance with the License.
Rohit Grover 106:a20be740075d 6 * You may obtain a copy of the License at
Rohit Grover 106:a20be740075d 7 *
Rohit Grover 106:a20be740075d 8 * http://www.apache.org/licenses/LICENSE-2.0
Rohit Grover 106:a20be740075d 9 *
Rohit Grover 106:a20be740075d 10 * Unless required by applicable law or agreed to in writing, software
Rohit Grover 106:a20be740075d 11 * distributed under the License is distributed on an "AS IS" BASIS,
Rohit Grover 106:a20be740075d 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
Rohit Grover 106:a20be740075d 13 * See the License for the specific language governing permissions and
Rohit Grover 106:a20be740075d 14 * limitations under the License.
Rohit Grover 106:a20be740075d 15 */
Rohit Grover 106:a20be740075d 16
Rohit Grover 106:a20be740075d 17 #ifndef __BLE_COMMON_H__
Rohit Grover 106:a20be740075d 18 #define __BLE_COMMON_H__
Rohit Grover 106:a20be740075d 19
Rohit Grover 106:a20be740075d 20 #define NRF51
Rohit Grover 106:a20be740075d 21 #define DEBUG_NRF_USER
Rohit Grover 106:a20be740075d 22 #define BLE_STACK_SUPPORT_REQD
Rohit Grover 106:a20be740075d 23 #define BOARD_PCA10001
Rohit Grover 106:a20be740075d 24
Rohit Grover 106:a20be740075d 25 #ifdef __cplusplus
Rohit Grover 106:a20be740075d 26 extern "C" {
Rohit Grover 106:a20be740075d 27 #endif
Rohit Grover 106:a20be740075d 28
Rohit Grover 106:a20be740075d 29 #include <stdint.h>
Rohit Grover 106:a20be740075d 30
Rohit Grover 106:a20be740075d 31 /**************************************************************************/
Rohit Grover 106:a20be740075d 32 /*!
Rohit Grover 106:a20be740075d 33 \brief Error codes for the BLE API
Rohit Grover 106:a20be740075d 34 */
Rohit Grover 106:a20be740075d 35 /**************************************************************************/
Rohit Grover 106:a20be740075d 36 typedef enum ble_error_e
Rohit Grover 106:a20be740075d 37 {
Rohit Grover 106:a20be740075d 38 BLE_ERROR_NONE = 0, /**< No error */
Rohit Grover 107:bd10367dfd1c 39 BLE_ERROR_BUFFER_OVERFLOW = 1, /**< The requested action would cause a buffer overflow and has been aborted */
Rohit Grover 107:bd10367dfd1c 40 BLE_ERROR_NOT_IMPLEMENTED = 2, /**< Requested a feature that isn't yet implement or isn't supported by the target HW */
Rohit Grover 107:bd10367dfd1c 41 BLE_ERROR_PARAM_OUT_OF_RANGE = 3, /**< One of the supplied parameters is outside the valid range */
Rohit Grover 107:bd10367dfd1c 42 BLE_STACK_BUSY = 4, /**< The stack is busy */
Rohit Grover 106:a20be740075d 43 } ble_error_t;
Rohit Grover 106:a20be740075d 44
Rohit Grover 106:a20be740075d 45 #ifdef __cplusplus
Rohit Grover 106:a20be740075d 46 }
Rohit Grover 106:a20be740075d 47 #endif
Rohit Grover 106:a20be740075d 48
Rohit Grover 106:a20be740075d 49 #endif // ifndef __BLE_COMMON_H__