テスト用です。

Dependencies:   mbed

Committer:
jksoft
Date:
Tue Oct 11 11:09:42 2016 +0000
Revision:
0:8468a4403fea
SB??ver;

Who changed what in which revision?

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