资源简介

基于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个文件信息

评论

共有 条评论