//³õʼ»¯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 127
下载积分: 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 个回复

  • ix2476
    IX2476 Tuner PLL IC Control driver for Linux. IC included in STB6000 tuner or F7VZ0194 tuner.
    2015-02-01 05:02:28下载
    积分:1
  • windows下gsteamer的使用
    接收视频,解码,播放。程序有一点bug,仅限win7下操作。有什么问题,可以私聊我,或者邮箱。谢谢。 接收视频,解码,播放。
    2022-04-16 09:44:43下载
    积分:1
  • NRF2401and8051
    基于NRF2401与单片机的的通信-NRF2401与8051单片机配合完成数据的收发并附带电路图(protues格式)以及电子报告(doc格式)(Microcontroller Based NRF2401 and communication-NRF2401 and 8051 with the completion of the data transceiver and comes with schematics (protues format) and electronic report (doc format))
    2010-05-08 01:54:22下载
    积分:1
  • huatesetu
    说明:  利用vc画图,特点是可以画一些有特殊效果的几何图像(use vc drawing, painting features can be some special effects of geometric images)
    2006-04-14 11:39:57下载
    积分:1
  • C#程序开发范例宝典 图书光盘附带源码 第16章
    C#程序开发范例宝典 图书光盘附带源码 第16章-C# Program development paradigm Baodian Book CD-ROM attached to source Chapter 16
    2022-10-14 23:50:03下载
    积分:1
  • hanf
    校园导航系统应用程序,内容详细,有说明。(Campus navigation system applications, and detailed, with instructions.)
    2011-10-18 19:09:37下载
    积分:1
  • AE影像处理及分类代码
    提到分类,我们很容易就想到了专业的遥感软件 ENVI ,或者ERDAS 等。ArcGIS Engine 对影像分类也提供了支持,在空间分析的OMD (对象模型 图)我们可以看到其实现。重要接口-IMultivariateOp遥感影像处理和分类的ArcGIS Engine开发实现。其中包括卷积运算,最大似然分类,众数滤波等。
    2023-08-30 12:25:03下载
    积分:1
  • 24to256
    BMP24位位图量化成256色BMP图,本程序彩八叉树颜色量化。(BMP24-bit quantization into a 256-color bitmap BMP map, this program color octree color quantization.)
    2021-04-01 22:59:08下载
    积分:1
  • industrial-strength
    eBook - Industrial Strength C++ - Visual C++ guide
    2014-02-02 13:03:09下载
    积分:1
  • RollDiceOnline
    说明:  程序实现了一个简单的网络版的掷骰子,一个服务器端,另一个客户端。(Program implements a simple network version of the dice, a server-side, another client.)
    2011-03-02 17:14:29下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载