资源简介
在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下的安装与使用
相关资源
- stm32f407上的两个can发送和接收例程
- STM32 led 时钟
- STM32 2.4G通信例程
- 直流无刷电机方波驱动 stm32 例程代码
- STM32中文资料
- STM32蓝牙和串口程序
- STM32f103超声波模块例程
- stm32f103c8t6 4 oled.rar
- stm32f030 IAP Demo(原创)
- STM32基于rt_thread操作系统的SDHC卡文件
- NRF24L01实现51与STM32双向通讯
- STM32F103 串口程序(完整版)
- stm32 ds18b20 温度传感器 测试通过
- stm32官方例程
- STM32F103定时器中断程序
- [免费]基于stm32f103ze 的OLED驱动代码
- STM32F103RBT6驱动UC1698控制芯片的160160黑
- STM32F103 DS18B20 V3.5.0固件库驱动程序工
- STM32定时器使用入门。看了这个程序会
- SIM908 SDIO FSMC STM32 FIFO
- STM32F103 CC2500完整驱动(模拟SPI)
- AD7606采集程序
- stm32 用SPI 方式读写 SDHC
- stm32通过DMA方式采集ADC数据
- 意法半导体STM全系列微控制器STM32ST
- 基于STM32芯片的SX1278 驱动 LORA.rar
- STM32的PCB封装库,以及原理图库,48
- SX1280.rar
- STM32 DS3231驱动.zip
- STM32F103C8T6+NRF24l01无线通信
评论
共有 条评论