资源简介
K5环境+STM32+MPU6050+卡尔曼滤波源码,卡尔曼滤波版本,而是使用MPU6050内部的dmp直接得到四元素进而计算欧拉角的用例,
代码片段和文件信息
/**************************************************************************//**
* @file core_cm3.c
* @brief CMSIS Cortex-M3 Core Peripheral Access layer Source File
* @version V1.30
* @date 30. October 2009
*
* @note
* Copyright (C) 2009 ARM Limited. All rights reserved.
*
* @par
* ARM Limited (ARM) is supplying this software for use with Cortex-M
* processor based microcontrollers. This file can be freely distributed
* within development tools that are supporting such ARM based processors.
*
* @par
* THIS SOFTWARE IS PROVIDED “AS IS“. NO WARRANTIES WHETHER EXPRESS IMPLIED
* OR STATUTORY INCLUDING BUT NOT LIMITED TO IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE.
* ARM SHALL NOT IN ANY CIRCUMSTANCES BE LIABLE FOR SPECIAL INCIDENTAL OR
* CONSEQUENTIAL DAMAGES FOR ANY REASON WHATSOEVER.
*
******************************************************************************/
#include
/* define compiler specific symbols */
#if defined ( __CC_ARM )
#define __ASM __asm /*!< asm keyword for ARM Compiler */
#define __INLINE __inline /*!< inline keyword for ARM Compiler */
#elif defined ( __ICCARM__ )
#define __ASM __asm /*!< asm keyword for IAR Compiler */
#define __INLINE inline /*!< inline keyword for IAR Compiler. Only avaiable in High optimization mode! */
#elif defined ( __GNUC__ )
#define __ASM __asm /*!< asm keyword for GNU Compiler */
#define __INLINE inline /*!< inline keyword for GNU Compiler */
#elif defined ( __TASKING__ )
#define __ASM __asm /*!< asm keyword for TASKING Compiler */
#define __INLINE inline /*!< inline keyword for TASKING Compiler */
#endif
/* ################### Compiler specific Intrinsics ########################### */
#if defined ( __CC_ARM ) /*------------------RealView Compiler -----------------*/
/* ARM armcc specific functions */
/**
* @brief Return the Process Stack Pointer
*
* @return ProcessStackPointer
*
* Return the actual process stack pointer
*/
__ASM uint32_t __get_PSP(void)
{
mrs r0 psp
bx lr
}
/**
* @brief Set the Process Stack Pointer
*
* @param topOfProcStack Process Stack Pointer
*
* Assign the value ProcessStackPointer to the MSP
* (process stack pointer) Cortex processor register
*/
__ASM void __set_PSP(uint32_t topOfProcStack)
{
msr psp r0
bx lr
}
/**
* @brief Return the Main Stack Pointer
*
* @return Main Stack Pointer
*
* Return the curren
- 上一篇:QQ PC版Emoji表情包
- 下一篇:广州2000年街道地图和人口数据shp文件
相关资源
- 安卓手机发送短信最简源码Demo
- STL源码剖析(高清).pdf
- CHowtoProgram源码习题答案.zip
- SURF算法及源码详解
- GNU MAKE源码
- 组态软件源码
- 仿百度百科网站源码
- Delphi ORC 运动物体 / 监控识别 源码
- snort源码分析(基于snort的入侵检测系
- stm32移植uCosIIV2.86源码
- OpenCV 现实高斯金字塔的源码,非常经
- 叫号语音平台源码
- PiggyXP完成端口(CompletionPort)详解
- 精典源码Delphi068:腾龙医药管理信息
- Delphi界面设计器源码..rar
- Delphi甘特图,甘特图控件源码及应用
- 51单片机-30个程序源码+原理图
- 酒店管理
- 暴风雪公司*.MPQ文件查看器(带源码)
- 污水排放监测系统
- 海洋科技网站管理系统
- 邮件收发
- mapx5.02开发手册
- vue-2.5.17 js 源码库文件等
- 传智播客贴吧源码
- TI的太阳能控制器方案带源码
- Unity3d 第三人称射击源码
- WIFI视频小车WF-103Rb安卓源码和下位机
- ios仿微信源码
- flash game development by example源码
评论
共有 条评论