BLE_Nano nRF51 Central heart rate

Committer:
FranKP2138
Date:
Thu May 26 10:12:27 2016 +0000
Revision:
0:2b9b5764efb5
RedBearLab BLE_Nano Central role for heart rate

Who changed what in which revision?

UserRevisionLine numberNew contents of line
FranKP2138 0:2b9b5764efb5 1 /* Copyright (c) 2015, Nordic Semiconductor ASA
FranKP2138 0:2b9b5764efb5 2 * All rights reserved.
FranKP2138 0:2b9b5764efb5 3 *
FranKP2138 0:2b9b5764efb5 4 * Redistribution and use in source and binary forms, with or without
FranKP2138 0:2b9b5764efb5 5 * modification, are permitted provided that the following conditions are met:
FranKP2138 0:2b9b5764efb5 6 *
FranKP2138 0:2b9b5764efb5 7 * * Redistributions of source code must retain the above copyright notice, this
FranKP2138 0:2b9b5764efb5 8 * list of conditions and the following disclaimer.
FranKP2138 0:2b9b5764efb5 9 *
FranKP2138 0:2b9b5764efb5 10 * * Redistributions in binary form must reproduce the above copyright notice,
FranKP2138 0:2b9b5764efb5 11 * this list of conditions and the following disclaimer in the documentation
FranKP2138 0:2b9b5764efb5 12 * and/or other materials provided with the distribution.
FranKP2138 0:2b9b5764efb5 13 *
FranKP2138 0:2b9b5764efb5 14 * * Neither the name of Nordic Semiconductor ASA nor the names of its
FranKP2138 0:2b9b5764efb5 15 * contributors may be used to endorse or promote products derived from
FranKP2138 0:2b9b5764efb5 16 * this software without specific prior written permission.
FranKP2138 0:2b9b5764efb5 17 *
FranKP2138 0:2b9b5764efb5 18 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
FranKP2138 0:2b9b5764efb5 19 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
FranKP2138 0:2b9b5764efb5 20 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
FranKP2138 0:2b9b5764efb5 21 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FranKP2138 0:2b9b5764efb5 22 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
FranKP2138 0:2b9b5764efb5 23 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
FranKP2138 0:2b9b5764efb5 24 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
FranKP2138 0:2b9b5764efb5 25 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
FranKP2138 0:2b9b5764efb5 26 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
FranKP2138 0:2b9b5764efb5 27 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
FranKP2138 0:2b9b5764efb5 28 *
FranKP2138 0:2b9b5764efb5 29 */
FranKP2138 0:2b9b5764efb5 30
FranKP2138 0:2b9b5764efb5 31 #ifndef SYSTEM_NRF51_H
FranKP2138 0:2b9b5764efb5 32 #define SYSTEM_NRF51_H
FranKP2138 0:2b9b5764efb5 33
FranKP2138 0:2b9b5764efb5 34 #ifdef __cplusplus
FranKP2138 0:2b9b5764efb5 35 extern "C" {
FranKP2138 0:2b9b5764efb5 36 #endif
FranKP2138 0:2b9b5764efb5 37
FranKP2138 0:2b9b5764efb5 38 #include <stdint.h>
FranKP2138 0:2b9b5764efb5 39
FranKP2138 0:2b9b5764efb5 40
FranKP2138 0:2b9b5764efb5 41 extern uint32_t SystemCoreClock; /*!< System Clock Frequency (Core Clock) */
FranKP2138 0:2b9b5764efb5 42
FranKP2138 0:2b9b5764efb5 43 /**
FranKP2138 0:2b9b5764efb5 44 * Initialize the system
FranKP2138 0:2b9b5764efb5 45 *
FranKP2138 0:2b9b5764efb5 46 * @param none
FranKP2138 0:2b9b5764efb5 47 * @return none
FranKP2138 0:2b9b5764efb5 48 *
FranKP2138 0:2b9b5764efb5 49 * @brief Setup the microcontroller system.
FranKP2138 0:2b9b5764efb5 50 * Initialize the System and update the SystemCoreClock variable.
FranKP2138 0:2b9b5764efb5 51 */
FranKP2138 0:2b9b5764efb5 52 extern void SystemInit (void);
FranKP2138 0:2b9b5764efb5 53
FranKP2138 0:2b9b5764efb5 54 /**
FranKP2138 0:2b9b5764efb5 55 * Update SystemCoreClock variable
FranKP2138 0:2b9b5764efb5 56 *
FranKP2138 0:2b9b5764efb5 57 * @param none
FranKP2138 0:2b9b5764efb5 58 * @return none
FranKP2138 0:2b9b5764efb5 59 *
FranKP2138 0:2b9b5764efb5 60 * @brief Updates the SystemCoreClock with current core Clock
FranKP2138 0:2b9b5764efb5 61 * retrieved from cpu registers.
FranKP2138 0:2b9b5764efb5 62 */
FranKP2138 0:2b9b5764efb5 63 extern void SystemCoreClockUpdate (void);
FranKP2138 0:2b9b5764efb5 64
FranKP2138 0:2b9b5764efb5 65 #ifdef __cplusplus
FranKP2138 0:2b9b5764efb5 66 }
FranKP2138 0:2b9b5764efb5 67 #endif
FranKP2138 0:2b9b5764efb5 68
FranKP2138 0:2b9b5764efb5 69 #endif /* SYSTEM_NRF51_H */
FranKP2138 0:2b9b5764efb5 70