资源简介

采用STM32F103为主控读取ICM20948陀螺仪的欧拉角,采用invs的标准库读取数据。输出的欧拉角用串口直接输出!

资源截图

代码片段和文件信息

/**************************************************************************//**
 * @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

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2020-01-08 09:03  ICM20948_STM32F103_V1\
     目录           0  2020-01-08 09:03  ICM20948_STM32F103_V1\CORE\
     文件       17297  2019-04-26 14:43  ICM20948_STM32F103_V1\CORE\core_cm3.c
     文件       85714  2019-04-26 14:45  ICM20948_STM32F103_V1\CORE\core_cm3.h
     文件       15503  2011-03-10 10:52  ICM20948_STM32F103_V1\CORE\startup_stm32f10x_hd.s
     目录           0  2020-01-08 09:48  ICM20948_STM32F103_V1\DeviceSupport\
     目录           0  2020-01-08 09:49  ICM20948_STM32F103_V1\DeviceSupport\inc\
     文件         333  2019-04-08 18:46  ICM20948_STM32F103_V1\DeviceSupport\inc\board_st_discovery.h
     文件        1245  2020-01-08 09:49  ICM20948_STM32F103_V1\DeviceSupport\inc\can.h
     文件        1254  2020-01-08 09:07  ICM20948_STM32F103_V1\DeviceSupport\inc\gpio.h
     文件        1768  2020-01-08 09:40  ICM20948_STM32F103_V1\DeviceSupport\inc\i2c.h
     文件         809  2020-01-08 09:11  ICM20948_STM32F103_V1\DeviceSupport\inc\led.h
     目录           0  2020-01-08 10:09  ICM20948_STM32F103_V1\DeviceSupport\src\
     文件        1352  2020-01-08 10:09  ICM20948_STM32F103_V1\DeviceSupport\src\board-st_discovery.c
     文件        7787  2020-01-08 10:06  ICM20948_STM32F103_V1\DeviceSupport\src\can.c
     文件        3016  2020-01-08 09:07  ICM20948_STM32F103_V1\DeviceSupport\src\gpio.c
     文件        6837  2020-01-08 09:32  ICM20948_STM32F103_V1\DeviceSupport\src\i2c.c
     文件         843  2020-01-08 09:12  ICM20948_STM32F103_V1\DeviceSupport\src\led.c
     目录           0  2020-01-08 09:36  ICM20948_STM32F103_V1\ICM_20948\
     目录           0  2020-01-08 09:03  ICM20948_STM32F103_V1\ICM_20948\Mems\
     目录           0  2020-01-08 09:03  ICM20948_STM32F103_V1\ICM_20948\Mems\common\
     文件        1199  2019-04-26 15:41  ICM20948_STM32F103_V1\ICM_20948\Mems\common\inv_mems_drv_hook.c
     文件        2818  2019-04-26 14:40  ICM20948_STM32F103_V1\ICM_20948\Mems\common\inv_mems_drv_hook.h
     文件        1396  2019-04-26 14:46  ICM20948_STM32F103_V1\ICM_20948\Mems\common\mltypes.h
     目录           0  2020-01-08 09:03  ICM20948_STM32F103_V1\ICM_20948\Mems\dmp3\
     文件       16848  2019-04-26 14:38  ICM20948_STM32F103_V1\ICM_20948\Mems\dmp3\dmp3Default_20608D.c
     文件        1662  2016-11-03 06:53  ICM20948_STM32F103_V1\ICM_20948\Mems\dmp3\dmp3Default_20608D.h
     文件       21658  2016-11-03 06:53  ICM20948_STM32F103_V1\ICM_20948\Mems\dmp3\dmp3Default_20608D.txt
     文件       18187  2019-04-26 14:38  ICM20948_STM32F103_V1\ICM_20948\Mems\dmp3\inv_mems_interface_mapping.c
     文件       10218  2019-04-26 14:43  ICM20948_STM32F103_V1\ICM_20948\Mems\dmp3\inv_mems_interface_mapping.h
     目录           0  2020-01-08 09:03  ICM20948_STM32F103_V1\ICM_20948\Mems\dmp3a\
............此处省略137个文件信息

评论

共有 条评论