use of undeclared identifier ‘MF522_RST_CLK’

use of undeclared identifier ‘MF522_RST_CLK’

`

#include "RC522.h"
#include "usart3.h"
#include "stm32f10x.h"                  // Device header
#include "delay.h"

uint8_t UID[4],Temp[4];

uint8_t UI0[4]={0xFF,0xFF,0xFF,0xFF};             //卡0ID号
uint8_t UI1[4]={0xFF,0xFF,0xFF,0xFF};             //卡1ID号
uint8_t UI2[4]={0xFF,0xFF,0xFF,0xFF};            //卡2ID号
uint8_t UI3[4]={0xFF,0xFF,0xFF,0xFF};            //卡3ID号

void PcdInit ()
{
      GPIO_InitTypeDef  GPIO_InitStructure;
 RCC_APB2PeriphClockCmd(RCC_APB2Periph_GPIOA | RCC_APB2Periph_GPIOB| RCC_APB2Periph_GPIOC,ENABLE);    
      /* Enable the GPIO Clock */
      RCC_APB2PeriphClockCmd(MF522_RST_CLK, ENABLE);
 
      /* Configure the GPIO pin */
      GPIO_InitStructure.GPIO_Pin = MF522_RST_PIN;
      GPIO_InitStructure.GPIO_Mode = GPIO_Mode_Out_PP;
      GPIO_InitStructure.GPIO_Speed = GPIO_Speed_2MHz;
 
      GPIO_Init(MF522_RST_PORT, &GPIO_InitStructure);
 
      /* Enable the GPIO Clock */
      RCC_APB2PeriphClockCmd(MF522_MISO_CLK, ENABLE);
 
      /* Configure the GPIO pin */
      GPIO_InitStructure.GPIO_Pin = MF522_MISO_PIN;
      GPIO_InitStructure.GPIO_Mode = GPIO_Mode_IN_FLOATING;
      GPIO_InitStructure.GPIO_Speed = GPIO_Speed_2MHz;
 
      GPIO_Init(MF522_MISO_PORT, &GPIO_InitStructure);
 
      /* Enable the GPIO Clock */
      RCC_APB2PeriphClockCmd(MF522_MOSI_CLK, ENABLE);
 
      /* Configure the GPIO pin */
      GPIO_InitStructure.GPIO_Pin = MF522_MOSI_PIN;
      GPIO_InitStructure.GPIO_Mode = GPIO_Mode_Out_PP;
      GPIO_InitStructure.GPIO_Speed = GPIO_Speed_2MHz;
 
      GPIO_Init(MF522_MOSI_PORT, &GPIO_InitStructure);
 
      /* Enable the GPIO Clock */
      RCC_APB2PeriphClockCmd(MF522_SCK_CLK, ENABLE);
 
      /* Configure the GPIO pin */
      GPIO_InitStructure.GPIO_Pin = MF522_SCK_PIN;
      GPIO_InitStructure.GPIO_Mode = GPIO_Mode_Out_PP;
      GPIO_InitStructure.GPIO_Speed = GPIO_Speed_2MHz;
 
      GPIO_Init(MF522_SCK_PORT, &GPIO_InitStructure);
 
      /* Enable the GPIO Clock */
      RCC_APB2PeriphClockCmd(MF522_NSS_CLK, ENABLE);
 
      /* Configure the GPIO pin */
      GPIO_InitStructure.GPIO_Pin = MF522_NSS_PIN;
      GPIO_InitStructure.GPIO_Mode = GPIO_Mode_Out_PP;
      GPIO_InitStructure.GPIO_Speed = GPIO_Speed_2MHz;
 
      GPIO_Init(MF522_NSS_PORT, &GPIO_InitStructure);
}
 

根据提升说的是你没有定义MF522_RST_CLK这个标识符,你右键看能不能跳转,不能的话可能头文件没有包含,或者移植时漏掉了东西。