-
大小: 608KB文件类型: .zip金币: 1下载: 0 次发布日期: 2021-06-13
- 语言: 其他
- 标签: stm32 stm32f103c8t mpu6050 dmp mpu6050dmp
资源简介
cubemx生成hal库的f103c8t6工程,通过IIC读取mpu6050,通过dmp计算欧拉角,通过串口1(波特率15200)打印出数据,目前只打印pitch,可以自己修改,引脚信息可以自己在cubemx看。其中IIC驱动移植于野火,可以通过修改四个宏定义实现引脚更换,mpu6050和dmp移植于原子。已经测试可以使用,有问题欢迎交流!
代码片段和文件信息
/**
******************************************************************************
* @file stm32f1xx_hal.c
* @author MCD Application Team
* @brief HAL module driver.
* This is the common part of the HAL initialization
*
@verbatim
==============================================================================
##### How to use this driver #####
==============================================================================
[..]
The common HAL driver contains a set of generic and common APIs that can be
used by the PPP peripheral drivers and the user to start using the HAL.
[..]
The HAL contains two APIs‘ categories:
(+) Common HAL APIs
(+) Services HAL APIs
@endverbatim
******************************************************************************
* @attention
*
* © Copyright (c) 2016 STMicroelectronics.
* All rights reserved.
*
* This software component is licensed by ST under BSD 3-Clause license
* the “License“; You may not use this file except in compliance with the
* License. You may obtain a copy of the License at:
* opensource.org/licenses/BSD-3-Clause
*
******************************************************************************
*/
/* Includes ------------------------------------------------------------------*/
#include “stm32f1xx_hal.h“
/** @addtogroup STM32F1xx_HAL_Driver
* @{
*/
/** @defgroup HAL HAL
* @brief HAL module driver.
* @{
*/
#ifdef HAL_MODULE_ENABLED
/* Private typedef -----------------------------------------------------------*/
/* Private define ------------------------------------------------------------*/
/** @defgroup HAL_Private_Constants HAL Private Constants
* @{
*/
/**
* @brief STM32F1xx HAL Driver version number V1.1.4
*/
#define __STM32F1xx_HAL_VERSION_MAIN (0x01U) /*!< [31:24] main version */
#define __STM32F1xx_HAL_VERSION_SUB1 (0x01U) /*!< [23:16] sub1 version */
#define __STM32F1xx_HAL_VERSION_SUB2 (0x04U) /*!< [15:8] sub2 version */
#define __STM32F1xx_HAL_VERSION_RC (0x00U) /*!< [7:0] release candidate */
#define __STM32F1xx_HAL_VERSION ((__STM32F1xx_HAL_VERSION_MAIN << 24)\
|(__STM32F1xx_HAL_VERSION_SUB1 << 16)\
|(__STM32F1xx_HAL_VERSION_SUB2 << 8 )\
|(__STM32F1xx_HAL_VERSION_RC))
#define IDCODE_DEVID_MASK 0x00000FFFU
/**
* @}
*/
/* Private macro -------------------------------------------------------------*/
/* Private variables ---------------------------------------------------------*/
/** @defgroup HAL_Private_Variables HAL Private Variables
* @{
*/
__IO uint32_t uwTick;
uint32_t uwTickPrio = (1UL << __NVIC_PRIO_BITS); /* Invalid PRIO */
HAL_TickFreqTypeDef uwTickFreq = HAL_TI
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2020-08-04 10:43 MPU6050_DMP\
文件 6061 2020-08-04 08:36 MPU6050_DMP\.mxproject
目录 0 2020-08-03 23:19 MPU6050_DMP\Drivers\
目录 0 2020-08-04 08:36 MPU6050_DMP\Drivers\CMSIS\
目录 0 2020-08-03 23:19 MPU6050_DMP\Drivers\CMSIS\Device\
目录 0 2020-08-03 23:19 MPU6050_DMP\Drivers\CMSIS\Device\ST\
目录 0 2020-08-04 08:36 MPU6050_DMP\Drivers\CMSIS\Device\ST\STM32F1xx\
目录 0 2020-08-04 08:36 MPU6050_DMP\Drivers\CMSIS\Device\ST\STM32F1xx\Include\
文件 853289 2020-05-16 11:03 MPU6050_DMP\Drivers\CMSIS\Device\ST\STM32F1xx\Include\stm32f103xb.h
文件 7481 2020-05-16 11:03 MPU6050_DMP\Drivers\CMSIS\Device\ST\STM32F1xx\Include\stm32f1xx.h
文件 2029 2020-05-16 11:03 MPU6050_DMP\Drivers\CMSIS\Device\ST\STM32F1xx\Include\system_stm32f1xx.h
目录 0 2020-08-04 08:36 MPU6050_DMP\Drivers\CMSIS\Device\ST\STM32F1xx\Source\
目录 0 2020-08-04 08:36 MPU6050_DMP\Drivers\CMSIS\Device\ST\STM32F1xx\Source\Templates\
目录 0 2020-08-04 08:36 MPU6050_DMP\Drivers\CMSIS\Include\
文件 28208 2020-05-16 11:03 MPU6050_DMP\Drivers\CMSIS\Include\cmsis_armcc.h
文件 56497 2020-05-16 11:03 MPU6050_DMP\Drivers\CMSIS\Include\cmsis_armclang.h
文件 9014 2020-05-16 11:03 MPU6050_DMP\Drivers\CMSIS\Include\cmsis_compiler.h
文件 62344 2020-05-16 11:03 MPU6050_DMP\Drivers\CMSIS\Include\cmsis_gcc.h
文件 28414 2020-05-16 11:03 MPU6050_DMP\Drivers\CMSIS\Include\cmsis_iccarm.h
文件 1716 2020-05-16 11:03 MPU6050_DMP\Drivers\CMSIS\Include\cmsis_version.h
文件 97995 2020-05-16 11:03 MPU6050_DMP\Drivers\CMSIS\Include\core_armv8mbl.h
文件 168914 2020-05-16 11:03 MPU6050_DMP\Drivers\CMSIS\Include\core_armv8mml.h
文件 42208 2020-05-16 11:03 MPU6050_DMP\Drivers\CMSIS\Include\core_cm0.h
文件 50464 2020-05-16 11:03 MPU6050_DMP\Drivers\CMSIS\Include\core_cm0plus.h
文件 43456 2020-05-16 11:03 MPU6050_DMP\Drivers\CMSIS\Include\core_cm1.h
文件 104628 2020-05-16 11:03 MPU6050_DMP\Drivers\CMSIS\Include\core_cm23.h
文件 111854 2020-05-16 11:03 MPU6050_DMP\Drivers\CMSIS\Include\core_cm3.h
文件 175600 2020-05-16 11:03 MPU6050_DMP\Drivers\CMSIS\Include\core_cm33.h
文件 123607 2020-05-16 11:03 MPU6050_DMP\Drivers\CMSIS\Include\core_cm4.h
文件 148588 2020-05-16 11:03 MPU6050_DMP\Drivers\CMSIS\Include\core_cm7.h
文件 47249 2020-05-16 11:03 MPU6050_DMP\Drivers\CMSIS\Include\core_sc000.h
............此处省略78个文件信息
相关资源
- 基于STM32实现的简易电子琴
- STM32F207中文数据手册
- STM32F407W5500
- Flymcu(STM32)
- nRF24LE1与nRF24L01通讯程序
- 基于51单片机的MPU6050程序
- stm32内部结构图
- STM32 多通道 不同频率 可变频 pwm输出
- STM32一步一步教你点亮流水灯
- STM32F103ZET6 AD10封装库
- STM32F10x标准固件函数库V3.6.1
- STM32F AT24c02软件驱动程序
- Proteus8.9 仿真STM32407ZGT6系列基础模板
- STM32通过GPRS(SIM7600CE模块)进行IAP远
- STC8+MPU6050+BMP280飞控原理图
- 遥控器S.BUS信号解析转发到CAN源码
- STM32 ADC采样和滤波
- stm32 isp工具支持rts,cts控制复位
- STM32F411RCT6最小系统原理图
- IAR下stm32程序
- stm32f103的AD7091驱动程序
- stm32f103系列spi连接rc522的rfid读卡程序
- STM32CubeMX 实验03 通用定时器2定时中断
- 单片机控制继电器模块电路原理图,
- STM32_EC20
- MAG3110代码基于stm32
- OV7725摄像头液晶颜色识别
- 基于STM32F407的OTM8009液晶显示驱动
- 基于STM32的GPS定位接收显示
- TM1640实现两根数据线控制8x16点阵
评论
共有 条评论