资源简介
基于STM32F103的贪吃蛇游戏,主程序每句代码都有注释,自己写的,可供参考(百为STM32开发板可以直接下载运行)

代码片段和文件信息
/**************************************************************************//**
* @file core_cm3.c
* @brief CMSIS Cortex-M3 Core Peripheral Access layer Source File
* @version V1.30
* @date 30. October 2009
*
* @note
* Copyright (C) 2009 ARM Limited. All rights reserved.
*
* @par
* ARM Limited (ARM) is supplying this software for use with Cortex-M
* processor based microcontrollers. This file can be freely distributed
* within development tools that are supporting such ARM based processors.
*
* @par
* THIS SOFTWARE IS PROVIDED “AS IS“. NO WARRANTIES WHETHER EXPRESS IMPLIED
* OR STATUTORY INCLUDING BUT NOT LIMITED TO IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE.
* ARM SHALL NOT IN ANY CIRCUMSTANCES BE LIABLE FOR SPECIAL INCIDENTAL OR
* CONSEQUENTIAL DAMAGES FOR ANY REASON WHATSOEVER.
*
******************************************************************************/
#include
/* define compiler specific symbols */
#if defined ( __CC_ARM )
#define __ASM __asm /*!< asm keyword for ARM Compiler */
#define __INLINE __inline /*!< inline keyword for ARM Compiler */
#elif defined ( __ICCARM__ )
#define __ASM __asm /*!< asm keyword for IAR Compiler */
#define __INLINE inline /*!< inline keyword for IAR Compiler. Only avaiable in High optimization mode! */
#elif defined ( __GNUC__ )
#define __ASM __asm /*!< asm keyword for GNU Compiler */
#define __INLINE inline /*!< inline keyword for GNU Compiler */
#elif defined ( __TASKING__ )
#define __ASM __asm /*!< asm keyword for TASKING Compiler */
#define __INLINE inline /*!< inline keyword for TASKING Compiler */
#endif
/* ################### Compiler specific Intrinsics ########################### */
#if defined ( __CC_ARM ) /*------------------RealView Compiler -----------------*/
/* ARM armcc specific functions */
/**
* @brief Return the Process Stack Pointer
*
* @return ProcessStackPointer
*
* Return the actual process stack pointer
*/
__ASM uint32_t __get_PSP(void)
{
mrs r0 psp
bx lr
}
/**
* @brief Set the Process Stack Pointer
*
* @param topOfProcStack Process Stack Pointer
*
* Assign the value ProcessStackPointer to the MSP
* (process stack pointer) Cortex processor register
*/
__ASM void __set_PSP(uint32_t topOfProcStack)
{
msr psp r0
bx lr
}
/**
* @brief Return the Main Stack Pointer
*
* @return Main Stack Pointer
*
* Return the curren
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 17273 2010-06-07 10:25 35 贪吃蛇\CORE\core_cm3.c
文件 85714 2011-02-09 14:59 35 贪吃蛇\CORE\core_cm3.h
文件 15503 2011-03-10 10:52 35 贪吃蛇\CORE\startup_stm32f10x_hd.s
文件 3989 2013-08-25 18:44 35 贪吃蛇\HARDWARE\ad9850\ad9850.c
文件 1543 2013-08-24 11:05 35 贪吃蛇\HARDWARE\ad9850\AD9850.h
文件 2158 2013-11-08 11:31 35 贪吃蛇\HARDWARE\adc\adc.c
文件 147 2013-07-20 16:58 35 贪吃蛇\HARDWARE\adc\adc.h
文件 1089 2013-07-21 12:17 35 贪吃蛇\HARDWARE\dac\dac.c
文件 118 2013-07-21 11:05 35 贪吃蛇\HARDWARE\dac\dac.h
文件 1605 2013-07-23 10:28 35 贪吃蛇\HARDWARE\dma\dma.c
文件 199 2013-07-22 15:04 35 贪吃蛇\HARDWARE\dma\dma.h
文件 2744 2013-07-15 13:16 35 贪吃蛇\HARDWARE\exti\exti.c
文件 90 2013-07-15 13:06 35 贪吃蛇\HARDWARE\exti\exti.h
文件 5629 2013-07-29 15:09 35 贪吃蛇\HARDWARE\fft\fft.c
文件 391 2012-02-28 14:20 35 贪吃蛇\HARDWARE\fft\fft.h
文件 706 2013-11-08 11:25 35 贪吃蛇\HARDWARE\gamestick\gamestick.c
文件 421 2013-09-21 10:29 35 贪吃蛇\HARDWARE\gamestick\gamestick.h
文件 581 2013-07-15 15:14 35 贪吃蛇\HARDWARE\iwdg\iwdg.c
文件 123 2013-07-15 15:14 35 贪吃蛇\HARDWARE\iwdg\iwdg.h
文件 1222 2013-07-14 15:55 35 贪吃蛇\HARDWARE\key\key.c
文件 327 2013-07-14 16:14 35 贪吃蛇\HARDWARE\key\key.h
文件 482 2013-07-14 14:18 35 贪吃蛇\HARDWARE\led\led.c
文件 174 2013-07-14 14:18 35 贪吃蛇\HARDWARE\led\led.h
文件 47292 2011-03-29 16:25 35 贪吃蛇\HARDWARE\tft\fonts.c
文件 2302 2013-07-18 13:08 35 贪吃蛇\HARDWARE\tft\fonts.h
文件 3507 2013-03-13 00:08 35 贪吃蛇\HARDWARE\tft\linear.c
文件 22864 2011-03-29 16:25 35 贪吃蛇\HARDWARE\tft\stm3210e_eval.c
文件 11895 2011-03-29 16:25 35 贪吃蛇\HARDWARE\tft\stm3210e_eval.h
文件 43642 2013-11-04 11:09 35 贪吃蛇\HARDWARE\tft\stm3210e_eval_lcd.c
文件 13584 2013-08-18 09:57 35 贪吃蛇\HARDWARE\tft\stm3210e_eval_lcd.h
............此处省略257个文件信息
- 上一篇:区块链:技术驱动金融pdf文件
- 下一篇:近程高精度脉冲激光测距系统的研究
相关资源
- 基于stm32f103ve的程序——跑马灯实验
- 基于STM32RCT6的步进电机驱动程序
- flash3.0小游戏
- stm32f407上的两个can发送和接收例程
- Scrach 欢乐狙击手.sb2
- STM32 led 时钟
- STM32 2.4G通信例程
- 直流无刷电机方波驱动 stm32 例程代码
- 贪吃蛇源代码.fla
- STM32中文资料
- STM32蓝牙和串口程序
- STM32f103超声波模块例程
- stm32f103c8t6 4 oled.rar
- stm32f030 IAP Demo(原创)
- linux应用层的华容道游戏源代码
- 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)
评论
共有 条评论