Yihui Xiong / Seeed_nRF51822_MPU9250

Dependencies:   eMPL_MPU

Fork of Seeed_Tiny_BLE_Flash by Darren Huang

Committer:
yihui
Date:
Thu Dec 10 08:00:18 2015 +0000
Revision:
5:9b240c1d5251
get 9dof data from mpu9250

Who changed what in which revision?

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