资源简介
工程代码,源代码
软件平台:cubemx mdk
硬件平台:stm32f103rct6 ICM20602
代码片段和文件信息
/**
******************************************************************************
* @file : main.c
* @brief : Main program body
******************************************************************************
** This notice applies to any and all portions of this file
* that are not between comment pairs USER CODE BEGIN and
* USER CODE END. Other portions of this file whether
* inserted by the user or by software development tools
* are owned by their respective copyright owners.
*
* COPYRIGHT(c) 2019 STMicroelectronics
*
* Redistribution and use in source and binary forms with or without modification
* are permitted provided that the following conditions are met:
* 1. Redistributions of source code must retain the above copyright notice
* this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright notice
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
* 3. Neither the name of STMicroelectronics nor the names of its contributors
* may be used to endorse or promote products derived from this software
* without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS “AS IS“
* AND ANY EXPRESS OR IMPLIED WARRANTIES INCLUDING BUT NOT LIMITED TO THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
* FOR ANY DIRECT INDIRECT INCIDENTAL SPECIAL EXEMPLARY OR CONSEQUENTIAL
* DAMAGES (INCLUDING BUT NOT LIMITED TO PROCUREMENT OF SUBSTITUTE GOODS OR
* SERVICES; LOSS OF USE DATA OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
* CAUSED AND ON ANY THEORY OF LIABILITY WHETHER IN CONTRACT STRICT LIABILITY
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
******************************************************************************
*/
/* Includes ------------------------------------------------------------------*/
#include “main.h“
#include “stm32f1xx_hal.h“
/* USER CODE BEGIN Includes */
#include “stdio.h“
#include “icm20602.h“
/* USER CODE END Includes */
/* Private variables ---------------------------------------------------------*/
SPI_HandleTypeDef hspi2;
UART_HandleTypeDef huart1;
/* USER CODE BEGIN PV */
/* Private variables ---------------------------------------------------------*/
/* USER CODE END PV */
/* Private function prototypes -----------------------------------------------*/
void SystemClock_Config(void);
static void MX_GPIO_Init(void);
static void MX_SPI2_Init(void);
static void MX_USART1_UART_Init(void);
/* USER CODE BEGIN PFP */
相关资源
- stm32 SD卡 fat系统 串口控制台
- 串口控制台代码stm32
- isd 4004 stm32
- stm32+fatfs+SDIO读写TF卡
- Stm32 CAN通讯
- ros_client(stm32)
- stm32 在RAM中调试,已测试通过
- 基于stm32的一级倒立摆
- 基于战舰STM32的1602液晶驱动程序+ds1
- STM32F4三轴磁场GY_271模块调试
- TI杯电子设计大赛LDC1000STM32驱动
- STM32L系列标准库工程模板
- GY-53 资料:STM32 51
- 带UCOS操作系统的STM32平衡车PWM
- stm32f407 IAP
- stm32移植protobufnanopb-0.3.8-windows-x86操作
- FU6818 HALL FOC_20180521_DEMO_客户程序_V1.
- stm32的IAP与APP相互转换程序
- 基于STM32的SI4463代码
- stm32 DMA+ADC 三通道电压连续采样
- MINI_STM32示波器
- STM32-WG.rar
- stm32f103zet6上移植ucosii 只要cortex m3内
- STM32-串口能显示-超声波测距SR04 - LC
- 基于stm32采集16位的ads1118
- stm32_j1939程序
- STM32平台GPS定位器源码
- HALCON_实用教程与案例分析.pdf
- 基于战舰V3的篮球计分器
- STM32F103mini-MLX90614工程文件
评论
共有 条评论