Fork of the official mbed C/C SDK provides the software platform and libraries to build your applications for RenBED.

Dependents:   1-RenBuggyTimed RenBED_RGB RenBED_RGB_PWM RenBED_RGB

Fork of mbed by mbed official

Committer:
elijahorr
Date:
Thu Apr 14 07:28:54 2016 +0000
Revision:
121:672067c3ada4
Parent:
101:7cff1c4259d7
.

Who changed what in which revision?

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