【E126】STM32F4 Discovery SPI加速计示例

2021-08-15 17:03:26      索炜达电子      468     

项目编号:E126

文件大小:481K

源码说明:带中文注释

开发环境:C编译

简要概述:

使用SPI接口在STM32F4发现板上访问LIS3DSH加速计的简单实现。当电路板朝其方向倾斜时,电路板上的四个LED点亮。如果出现错误,所有LED都会亮起。

要设置时钟,请在MAIN.H中设置适当的常数,默认值为168MHz。

【E126】STM32F4 Discovery SPI加速计示例

文件列表:

目录│文件列表:

 └ stm32f4-discovery-SPI

    │ stm32f4_SPI_example.uvoptx

    │ stm32f4_SPI_example.uvprojx

    ├ inc

    │  │ common.h

    │  │ main.h

    │  └ stm32f4xx_it.h

    ├ lib

    │  └ CMSIS

    │     │ CMSIS_END_USER_LICENCE_AGREEMENT.pdf

    │     │ CMSIS_END_USER_LICENCE_AGREEMENT.rtf

    │     │ index.html

    │     │ Thumbs.db

    │     ├ Device

    │     │  └ ST

    │     │     └ STM32F4xx

    │     │        │ Release_Notes.html

    │     │        ├ Include

    │     │        │  │ stm32f407xx.h

    │     │        │  └ system_stm32f4xx.h

    │     │        └ Source

    │     │           └ Templates

    │     │              └ arm

    │     │                 └ startup_stm32f407xx.s

    │     └ Include

    │        │ arm_common_tables.h

    │        │ arm_const_structs.h

    │        │ arm_math.h

    │        │ cmsis_armcc.h

    │        │ cmsis_armcc_V6.h

    │        │ cmsis_gcc.h

    │        │ core_cm0.h

    │        │ core_cm0plus.h

    │        │ core_cm3.h

    │        │ core_cm4.h

    │        │ core_cm7.h

    │        │ core_cmFunc.h

    │        │ core_cmInstr.h

    │        │ core_cmSimd.h

    │        │ core_sc000.h

    │        └ core_sc300.h

    └ src

       │ main.c

       └ stm32f4xx_it.c

TAG加速计
  • 6 次
  • 1 分