//³õʼ»¯LSM6DSLµÄIO¿ÚvoidLSM6DSL_Init(void){ uint8_tDevice_ID;GPIO_InitTypeDef GPIO_InitStructure;RCC_AHB1PeriphClockCmd(RCC_AHB1Periph_GPIOG,ENABLE);//ʹÄÜGPIOGʱÖÓ//GPIOI7ÍÆÍìÊä³ö GPIO_InitStructure.GPIO_Pin=GPIO_Pin_7; GPIO_InitStructure.GPIO_Mode=GPIO_Mode_OUT;//ÆÕͨÊä³öģʽ GPIO_InitStructure.GPIO_OType=GPIO_OType_PP;//ÍÆÍìÊä³ö GPIO_InitStructure.GPIO_Speed=GPIO_Speed_100MHz;//100MHz GPIO_InitStructure.GPIO_PuPd=GPIO_PuPd_UP; GPIO_Init(GPIOG,&GPIO_InitStructure);//³õʼ»¯PG7 LSM6DSL_SPI_Init();-IMDN开发者社群-imdn.cn"> //³õʼ»¯LSM6DSLµÄIO¿ÚvoidLSM6DSL_Init(void){ uint8_tDevice_ID;GPIO_InitTypeDef GPIO_InitStructure;RCC_AHB1PeriphClockCmd(RCC_AHB1Periph_GPIOG,ENABLE);//ʹÄÜGPIOGʱÖÓ//GPIOI7ÍÆÍìÊä³ö GPIO_InitStructure.GPIO_Pin=GPIO_Pin_7; GPIO_InitStructure.GPIO_Mode=GPIO_Mode_OUT;//ÆÕͨÊä³öģʽ GPIO_InitStructure.GPIO_OType=GPIO_OType_PP;//ÍÆÍìÊä³ö GPIO_InitStructure.GPIO_Speed=GPIO_Speed_100MHz;//100MHz GPIO_InitStructure.GPIO_PuPd=GPIO_PuPd_UP; GPIO_Init(GPIOG,&GPIO_InitStructure);//³õʼ»¯PG7 LSM6DSL_SPI_Init(); - IMDN开发者社群-imdn.cn">
登录
首页 » c » lsm6dsl

lsm6dsl

于 2022-02-16 发布 文件大小:5.99 MB
0 85
下载积分: 2 下载次数: 1

代码说明:

lsm6dsl基于stm32f407的开发,详细代码, /* Includes ------------------------------------------------------------------*/ #include "lsm6dsl.h" #include "spi.h" #include "usart.h" #include "delay.h" #include //³õʼ»¯LSM6DSLµÄIO¿Ú void LSM6DSL_Init(void) {   uint8_t Device_ID; GPIO_InitTypeDef  GPIO_InitStructure; RCC_AHB1PeriphClockCmd(RCC_AHB1Periph_GPIOG, ENABLE);//ʹÄÜGPIOGʱÖÓ //GPIOI7ÍÆÍìÊä³ö   GPIO_InitStructure.GPIO_Pin = GPIO_Pin_7;   GPIO_InitStructure.GPIO_Mode = GPIO_Mode_OUT;//ÆÕͨÊä³öģʽ   GPIO_InitStructure.GPIO_OType = GPIO_OType_PP;//ÍÆÍìÊä³ö   GPIO_InitStructure.GPIO_Speed = GPIO_Speed_100MHz;//100MHz   GPIO_InitStructure.GPIO_PuPd = GPIO_PuPd_UP;   GPIO_Init(GPIOG, &GPIO_InitStructure);//³õʼ»¯PG7   LSM6DSL_SPI_Init();

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • MATLAB-for-solving-differential
    MATLAB解微分方程;遗传算法工具箱;laplace偏微分方程求解;(MATLAB for solving differential equations genetic algorithm toolbox laplace partial differential equations )
    2013-03-17 22:42:56下载
    积分:1
  • 基于C、C++ 的五子棋实现代码
    基于C、C++ 的五子棋实现代码 基于C、C++ 的五子棋实现代码 基于C、C++ 的五子棋实现代码 基于C、C++ 的五子棋实现代码 基于C、C++ 的五子棋实现代码 基于C、C++ 的五子棋实现代码
    2022-04-20 16:21:54下载
    积分:1
  • Unity socket通信
    Unity socket通信
    2021-05-06下载
    积分:1
  • btree
    说明:  b树的c++代码实现,用于数据结构的学习(C++ code implementation of B-tree)
    2019-02-24 19:27:11下载
    积分:1
  • UHF超高频蓝牙读写器
    UFF超高频蓝牙读写器程序,包含源码 ap描述,整个开发文档,使用手册,使用文档,开发实例。
    2023-06-12 17:30:04下载
    积分:1
  • DS18B20数字温度传感器
    说明:  使用STM32F103 32位芯片配置以及控制DC18B20传感器(Using STM32F103 32 bit chip to configure DS18B20 and control DC18B20 sensor)
    2020-06-23 16:20:02下载
    积分:1
  • evaporation-condensation
    在Fluent仿真水蒸气凝结及蒸发需要利用Fluent 水雾消散UDF(evaporation-condensation)
    2020-12-02 20:29:26下载
    积分:1
  • 记忆迷宫
    实现了基于51单片机的智能小车,并完成了走迷宫(The intelligent car based on 51 single chip microcomputer is realized, and the labyrinth is completed)
    2017-06-10 17:19:47下载
    积分:1
  • SBASrc
    使用CMakeList重新组织的SBA,即稀疏矩阵光束法平差算法,希望对大家有用(Use CMakeList reorganize the SBA, namely sparse matrix bundle adjustment algorithm, we hope to useful)
    2014-02-15 14:34:03下载
    积分:1
  • IEC_65870_101
    串口101协议  * @file    readme.txt    * @author  MCD Application Team   * @version V1.2.0   * @date    09-November-2015   * @brief   Description of the USB Host MSC example   ******************************************************************************   *   * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License");   * You may not use this file except in compliance with the License.   * You may obtain a copy of the License at:   *   *        http://www.st.com/software_license_agreement_liberty_v2   *   * Unless required by applicable law or agreed to in writing, software    * distributed under the License is distributed on an "AS IS" BASIS,    * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either expres
    2022-01-22 13:37:22下载
    积分:1
  • 696518资源总数
  • 105901会员总数
  • 40今日下载