mbed library sources

Dependents:   Nucleo_blink_led

Fork of mbed-src by mbed official

Committer:
mbed_official
Date:
Tue Apr 07 06:45:07 2015 +0100
Revision:
501:36015dec7d16
Synchronized with git revision 40d3a79298f37284b863f90e33e261986340964e

Full URL: https://github.com/mbedmicro/mbed/commit/40d3a79298f37284b863f90e33e261986340964e/

fixes #984: updating to v7.1 of the Nordic SDK.

Who changed what in which revision?

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