The official Mbed 2 C/C++ SDK provides the software platform and libraries to build your applications.

Dependents:   hello SerialTestv11 SerialTestv12 Sierpinski ... more

mbed 2

This is the mbed 2 library. If you'd like to learn about Mbed OS please see the mbed-os docs.

Committer:
Kojto
Date:
Wed Jul 19 16:46:19 2017 +0100
Revision:
147:a97add6d7e64
Parent:
128:9bcdf88f62b0
Release 147 of the mbed library.

Who changed what in which revision?

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