基于STM32F4的小兵与大炮游戏
在stm32f4 的板子上实现的一个小时候玩的游戏,五个按键控制,一个选中按键,4个方向控制。开机可以选择使用角色,算法比较简单。
代码片段和文件信息
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2013-12-08 22:22 led-f4x-game
目录 0 2013-11-30 14:48 led-f4x-gameMDK
文件 198921 2013-08-20 20:12 led-f4x-gameMDKProj.htm
文件 696 2013-08-20 20:12 led-f4x-gameMDKProj.lnp
文件 186628 2013-08-20 20:12 led-f4x-gameMDKProj.map
文件 41921 2013-08-20 20:39 led-f4x-gameMDKProj.plg
文件 479 2013-08-20 18:55 led-f4x-gameMDKProj.sct
文件 2714 2013-08-20 20:12 led-f4x-gameMDKProj.tra
文件 77723 2013-09-03 10:13 led-f4x-gameMDKProj.uvgui.cuiwensi
文件 77725 2013-09-02 16:16 led-f4x-gameMDKProj.uvgui_cuiwensi.bak
文件 22775 2013-09-03 10:13 led-f4x-gameMDKProj.uvopt
文件 21022 2013-09-02 10:49 led-f4x-gameMDKProj.uvproj
文件 25059 2013-08-20 19:17 led-f4x-gameMDKProj_uvopt.bak
文件 22882 2013-08-20 19:17 led-f4x-gameMDKProj_uvproj.bak
文件 0 2013-08-20 18:46 led-f4x-gameMDKstartup_stm32f40xx.lst
文件 77768 2013-08-20 20:05 led-f4x-gameMDKstartup_stm32f4xx.lst
文件 62 2013-09-02 12:17 led-f4x-gameMDK删除.bat
目录 0 2013-11-30 14:48 led-f4x-gameSTM32F4-Discovery
文件 129125 2011-10-28 10:31 led-f4x-gameSTM32F4-DiscoveryMCD-ST Image SW License Agreement 19Jul2011 v0.1.pdf
文件 13081 2011-10-28 10:31 led-f4x-gameSTM32F4-DiscoveryRelease_Notes.html
文件 6956 2011-10-28 10:31 led-f4x-gameSTM32F4-DiscoverylibPDMFilter_GCC.a
文件 8880 2011-10-28 10:31 led-f4x-gameSTM32F4-DiscoverylibPDMFilter_IAR.a
文件 6476 2011-10-28 10:31 led-f4x-gameSTM32F4-DiscoverylibPDMFilter_Keil.lib
文件 2864 2011-10-28 10:31 led-f4x-gameSTM32F4-Discoverypdm_filter.h
文件 7323 2013-08-14 17:22 led-f4x-gameSTM32F4-Discoverystm32f4_discovery.c
文件 4233 2013-08-01 18:00 led-f4x-gameSTM32F4-Discoverystm32f4_discovery.h
文件 61290 2011-10-28 10:31 led-f4x-gameSTM32F4-Discoverystm32f4_discovery_audio_codec.c
文件 12874 2011-10-28 10:31 led-f4x-gameSTM32F4-Discoverystm32f4_discovery_audio_codec.h
文件 16096 2013-08-03 09:30 led-f4x-gameSTM32F4-Discoverystm32f4_discovery_lis302dl.c
文件 32363 2013-08-01 19:30 led-f4x-gameSTM32F4-Discoverystm32f4_discovery_lis302dl.h
目录 0 2013-11-30 14:48 led-f4x-gameThird_Party
............此处省略189个文件信息
/**
******************************************************************************
* @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-gameMDK
文件 198921 2013-08-20 20:12 led-f4x-gameMDKProj.htm
文件 696 2013-08-20 20:12 led-f4x-gameMDKProj.lnp
文件 186628 2013-08-20 20:12 led-f4x-gameMDKProj.map
文件 41921 2013-08-20 20:39 led-f4x-gameMDKProj.plg
文件 479 2013-08-20 18:55 led-f4x-gameMDKProj.sct
文件 2714 2013-08-20 20:12 led-f4x-gameMDKProj.tra
文件 77723 2013-09-03 10:13 led-f4x-gameMDKProj.uvgui.cuiwensi
文件 77725 2013-09-02 16:16 led-f4x-gameMDKProj.uvgui_cuiwensi.bak
文件 22775 2013-09-03 10:13 led-f4x-gameMDKProj.uvopt
文件 21022 2013-09-02 10:49 led-f4x-gameMDKProj.uvproj
文件 25059 2013-08-20 19:17 led-f4x-gameMDKProj_uvopt.bak
文件 22882 2013-08-20 19:17 led-f4x-gameMDKProj_uvproj.bak
文件 0 2013-08-20 18:46 led-f4x-gameMDKstartup_stm32f40xx.lst
文件 77768 2013-08-20 20:05 led-f4x-gameMDKstartup_stm32f4xx.lst
文件 62 2013-09-02 12:17 led-f4x-gameMDK删除.bat
目录 0 2013-11-30 14:48 led-f4x-gameSTM32F4-Discovery
文件 129125 2011-10-28 10:31 led-f4x-gameSTM32F4-DiscoveryMCD-ST Image SW License Agreement 19Jul2011 v0.1.pdf
文件 13081 2011-10-28 10:31 led-f4x-gameSTM32F4-DiscoveryRelease_Notes.html
文件 6956 2011-10-28 10:31 led-f4x-gameSTM32F4-DiscoverylibPDMFilter_GCC.a
文件 8880 2011-10-28 10:31 led-f4x-gameSTM32F4-DiscoverylibPDMFilter_IAR.a
文件 6476 2011-10-28 10:31 led-f4x-gameSTM32F4-DiscoverylibPDMFilter_Keil.lib
文件 2864 2011-10-28 10:31 led-f4x-gameSTM32F4-Discoverypdm_filter.h
文件 7323 2013-08-14 17:22 led-f4x-gameSTM32F4-Discoverystm32f4_discovery.c
文件 4233 2013-08-01 18:00 led-f4x-gameSTM32F4-Discoverystm32f4_discovery.h
文件 61290 2011-10-28 10:31 led-f4x-gameSTM32F4-Discoverystm32f4_discovery_audio_codec.c
文件 12874 2011-10-28 10:31 led-f4x-gameSTM32F4-Discoverystm32f4_discovery_audio_codec.h
文件 16096 2013-08-03 09:30 led-f4x-gameSTM32F4-Discoverystm32f4_discovery_lis302dl.c
文件 32363 2013-08-01 19:30 led-f4x-gameSTM32F4-Discoverystm32f4_discovery_lis302dl.h
目录 0 2013-11-30 14:48 led-f4x-gameThird_Party
............此处省略189个文件信息
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。
评论列表(条)