资源简介

功 能:寻卡 参数说明: req_code[IN]:寻卡方式 0x52 = 寻感应区内所有符合14443A标准的卡 0x26 = 寻未进入休眠状态的卡 pTagType[OUT]:卡片类型代码 0x4400 = Mifare_UltraLight 0x0400 = Mifare_One(S50) 0x0200 = Mifare_One(S70) 0x0800 = Mifare_Pro 0x0403 = Mifare_ProX 0x4403 = Mifare_DESFire 返 回: 成功返回MI_OK int PcdRequest(unsigned char req_code,unsigned char *pTagType) *入口参数:要通过SPI发送的数据 *出口参数:从SPI收到的数据 *功能描述:SPI数据收发底层驱动函数(接收数据时入口参数要为0) // 锁门失败清除标志 sys.cCloseError = no; do { cTemp = 20; while((DoorOpenMark() == yes) && cTemp) { MotorO(); cTemp // 开门失败 需要锁门 while((DoorCloseMark() == yes) && cTemp) { MotorC(); cTemp--; } if(cTemp != 20) { MotorC(); MotorC(); MotorC(); MotorC(); } Motor_Init();

资源截图

代码片段和文件信息

/**************************************************************************//**
 * @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

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件        497  2013-09-27 11:10  FM1715读取TypeA和TypeB\Jlink Regs CM3.txt

     文件     180410  2015-11-22 14:47  FM1715读取TypeA和TypeB\JlinkLog.txt

     文件        573  2013-08-06 00:55  FM1715读取TypeA和TypeB\JlinkSettings.ini

     文件        399  2011-04-23 10:24  FM1715读取TypeA和TypeB\keilkilll.bat

     文件     187189  2016-02-20 16:22  FM1715读取TypeA和TypeB\List\RFID.map

     文件      50415  2016-01-25 16:25  FM1715读取TypeA和TypeB\List\startup_stm32f10x_md.lst

     文件     330904  2016-01-25 16:24  FM1715读取TypeA和TypeB\Obj\adc.crf

     文件       1759  2016-01-25 16:24  FM1715读取TypeA和TypeB\Obj\adc.d

     文件     358836  2016-01-25 16:24  FM1715读取TypeA和TypeB\Obj\adc.o

     文件        384  2016-01-25 16:24  FM1715读取TypeA和TypeB\Obj\adc.__i

     文件       3599  2016-01-25 16:25  FM1715读取TypeA和TypeB\Obj\core_cm3.crf

     文件        120  2016-01-25 16:25  FM1715读取TypeA和TypeB\Obj\core_cm3.d

     文件      10504  2016-01-25 16:25  FM1715读取TypeA和TypeB\Obj\core_cm3.o

     文件        417  2016-01-25 16:25  FM1715读取TypeA和TypeB\Obj\core_cm3.__i

     文件     330315  2016-01-25 16:24  FM1715读取TypeA和TypeB\Obj\delay.crf

     文件       1823  2016-01-25 16:24  FM1715读取TypeA和TypeB\Obj\delay.d

     文件     355576  2016-01-25 16:24  FM1715读取TypeA和TypeB\Obj\delay.o

     文件     348022  2016-01-30 15:25  FM1715读取TypeA和TypeB\Obj\flash.crf

     文件       2120  2016-01-30 15:25  FM1715读取TypeA和TypeB\Obj\flash.d

     文件     376740  2016-01-30 15:25  FM1715读取TypeA和TypeB\Obj\flash.o

     文件        392  2016-01-30 15:25  FM1715读取TypeA和TypeB\Obj\flash.__i

     文件     352419  2016-01-30 15:25  FM1715读取TypeA和TypeB\Obj\fm17xx.crf

     文件       2205  2016-01-30 15:25  FM1715读取TypeA和TypeB\Obj\fm17xx.d

     文件     397092  2016-01-30 15:25  FM1715读取TypeA和TypeB\Obj\fm17xx.o

     文件        396  2016-01-30 15:25  FM1715读取TypeA和TypeB\Obj\fm17xx.__i

     文件     348665  2016-01-30 15:26  FM1715读取TypeA和TypeB\Obj\gpio.crf

     文件       2082  2016-01-30 15:26  FM1715读取TypeA和TypeB\Obj\gpio.d

     文件     371816  2016-01-30 15:26  FM1715读取TypeA和TypeB\Obj\gpio.o

     文件        388  2016-01-30 15:26  FM1715读取TypeA和TypeB\Obj\gpio.__i

     文件     348794  2016-01-30 15:25  FM1715读取TypeA和TypeB\Obj\iso14443a.crf

............此处省略253个文件信息

评论

共有 条评论