Originally from Donal's blog article. http://mbed.org/users/donalm/code/BLE_Health_Thermometer_Blog/ Changed low freq. clock source from XTAL to IRC.

Dependents:   BLE_Health_Thermometer_IRC BLE_RCBController_micono_test BLE_konashi_PIO_test BLE_ADT7410_TMP102_Sample ... more

Fork of BLE_API_Native_blog by Donal Morrissey

Committer:
ytsuboi
Date:
Wed Jun 11 15:15:30 2014 +0000
Revision:
19:d84e7516652b
Parent:
0:4c3097c65247
Changed Low freq. clock source from XTAL to IRC

Who changed what in which revision?

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