资源简介
在stm32f4 的板子上实现的一个小时候玩的游戏,五个按键控制,一个选中按键,4个方向控制。开机可以选择使用角色,算法比较简单。
代码片段和文件信息
/**
******************************************************************************
* @file stm32f4xx_adc.c
* @author MCD Application Team
* @version V1.1.0
* @date 11-January-2013
* @brief This file provides firmware functions to manage the following
* functionalities of the Analog to Digital Convertor (ADC) peripheral:
* + Initialization and Configuration (in addition to ADC multi mode
* selection)
* + Analog Watchdog configuration
* + Temperature Sensor & Vrefint (Voltage Reference internal) & VBAT
* management
* + Regular Channels Configuration
* + Regular Channels DMA Configuration
* + Injected channels Configuration
* + Interrupts and flags management
*
@verbatim
===============================================================================
##### How to use this driver #####
===============================================================================
[..]
(#) Enable the ADC interface clock using
RCC_APB2PeriphClockCmd(RCC_APB2Periph_ADCx ENABLE);
(#) ADC pins configuration
(++) Enable the clock for the ADC GPIOs using the following function:
RCC_AHB1PeriphClockCmd(RCC_AHB1Periph_GPIOx ENABLE);
(++) Configure these ADC pins in analog mode using GPIO_Init();
(#) Configure the ADC Prescaler conversion resolution and data
alignment using the ADC_Init() function.
(#) Activate the ADC peripheral using ADC_Cmd() function.
*** Regular channels group configuration ***
============================================
[..]
(+) To configure the ADC regular channels group features use
ADC_Init() and ADC_RegularChannelConfig() functions.
(+) To activate the continuous mode use the ADC_continuousModeCmd()
function.
(+) To configurate and activate the Discontinuous mode use the
ADC_DiscModeChannelCountConfig() and ADC_DiscModeCmd() functions.
(+) To read the ADC converted values use the ADC_GetConversionValue()
function.
*** Multi mode ADCs Regular channels configuration ***
======================================================
[..]
(+) Refer to “Regular channels group configuration“ description to
configure the ADC1 ADC2 and ADC3 regular channels.
(+) Select the Multi mode ADC regular channels features (dual or
triple mode) using ADC_CommonInit() function and configure
the DMA mode using ADC_MultiModeDMARequestAfterLastTransferCmd()
functions.
(+) Read the ADCs converted values using the
ADC_GetMultiModeConversionValue() function.
*** DMA for Regular channels group features configuration ***
===========
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2013-12-08 22:22 led-f4x-game\
目录 0 2013-11-30 14:48 led-f4x-game\MDK\
文件 198921 2013-08-20 20:12 led-f4x-game\MDK\Proj.htm
文件 696 2013-08-20 20:12 led-f4x-game\MDK\Proj.lnp
文件 186628 2013-08-20 20:12 led-f4x-game\MDK\Proj.map
文件 41921 2013-08-20 20:39 led-f4x-game\MDK\Proj.plg
文件 479 2013-08-20 18:55 led-f4x-game\MDK\Proj.sct
文件 2714 2013-08-20 20:12 led-f4x-game\MDK\Proj.tra
文件 77723 2013-09-03 10:13 led-f4x-game\MDK\Proj.uvgui.cuiwensi
文件 77725 2013-09-02 16:16 led-f4x-game\MDK\Proj.uvgui_cuiwensi.bak
文件 22775 2013-09-03 10:13 led-f4x-game\MDK\Proj.uvopt
文件 21022 2013-09-02 10:49 led-f4x-game\MDK\Proj.uvproj
文件 25059 2013-08-20 19:17 led-f4x-game\MDK\Proj_uvopt.bak
文件 22882 2013-08-20 19:17 led-f4x-game\MDK\Proj_uvproj.bak
文件 0 2013-08-20 18:46 led-f4x-game\MDK\startup_stm32f40xx.lst
文件 77768 2013-08-20 20:05 led-f4x-game\MDK\startup_stm32f4xx.lst
文件 62 2013-09-02 12:17 led-f4x-game\MDK\删除.bat
目录 0 2013-11-30 14:48 led-f4x-game\STM32F4-Discovery\
文件 129125 2011-10-28 10:31 led-f4x-game\STM32F4-Discovery\MCD-ST Image SW License Agreement 19Jul2011 v0.1.pdf
文件 13081 2011-10-28 10:31 led-f4x-game\STM32F4-Discovery\Release_Notes.html
文件 6956 2011-10-28 10:31 led-f4x-game\STM32F4-Discovery\libPDMFilter_GCC.a
文件 8880 2011-10-28 10:31 led-f4x-game\STM32F4-Discovery\libPDMFilter_IAR.a
文件 6476 2011-10-28 10:31 led-f4x-game\STM32F4-Discovery\libPDMFilter_Keil.lib
文件 2864 2011-10-28 10:31 led-f4x-game\STM32F4-Discovery\pdm_filter.h
文件 7323 2013-08-14 17:22 led-f4x-game\STM32F4-Discovery\stm32f4_discovery.c
文件 4233 2013-08-01 18:00 led-f4x-game\STM32F4-Discovery\stm32f4_discovery.h
文件 61290 2011-10-28 10:31 led-f4x-game\STM32F4-Discovery\stm32f4_discovery_audio_codec.c
文件 12874 2011-10-28 10:31 led-f4x-game\STM32F4-Discovery\stm32f4_discovery_audio_codec.h
文件 16096 2013-08-03 09:30 led-f4x-game\STM32F4-Discovery\stm32f4_discovery_lis302dl.c
文件 32363 2013-08-01 19:30 led-f4x-game\STM32F4-Discovery\stm32f4_discovery_lis302dl.h
目录 0 2013-11-30 14:48 led-f4x-game\Third_Party\
............此处省略189个文件信息
- 上一篇:funcode——黄金矿工
- 下一篇:expect在Windows下的安装与使用
相关资源
- keil.Jansson.1.0.0.pack
- OLED驱动STM32
- stm32 5路循迹智能小车资料,可遥控
- STM32F103VET6驱动HC-SR04.rar
- 旋钮编码器STM32F407
- stm32 407ad7606 程序开fa
- 基于STM32的简易脉搏计的设计
- AS608指纹模块和ESP8266wifi模块在STM32f
- STM32 RFID RC522 模拟SPI 读写卡程序
- stm32单片机实现心电图采样以及显示
- 基于stm32的hmc5983和mpu6500的驱动程序
- STM32F091多串口程序
- 通过串口控制呼吸灯的频率
- STM32快递箱程序密码界面+舵机开锁+称
-
stm32 keil用jli
nk4.40驱动 - stm32f103 编码器测试程序
- ADF4351控制代码
- stm32 42相步进电机驱动完整工程
- 基于stm32f103和OV7725的监控拍照计数显
- STM32F103步进电机、压力传感器、温湿
- STM32F1控制六自由度机器人 程序源码,
- 基于stm32的仿生机械手程序-基础
- STM32F103 驱动四路MAX6675 采集温度 LC
- stm32f1 直流电机控制
- 18位8通道AD7608驱动程序.rar
- stm32I读写AT24c02IIC通讯
- STM32F407 USB 自定义HID实现代码
- 最新最全1.8寸tft液晶屏st7735资料及其
- 烟雾检测报警装置资料
- STM32F103无刷直流电机的转速闭环.zip
评论
共有 条评论