#ifndef __USER_SPI_H_
#define __USER_SPI_H_

#ifdef __cplusplus
 extern "C" {
#endif
#include <stdio.h>
#include <stdlib.h>
#include "define.h"

#define USER_NFC_SPI_RCC_ENABLE 							RCC_APB2PeriphClockCmd(RCC_APB2Periph_SPI1, ENABLE);

#define USER_NFC_SPI										SPI1

#define USER_NFC_MOSI_GPIO									GPIOA
#define USER_NFC_MOSI_PIN									GPIO_Pin_7

#define USER_NFC_MISO_GPIO									GPIOA
#define USER_NFC_MISO_PIN									GPIO_Pin_6

#define USER_NFC_SCLK_GPIO									GPIOA
#define USER_NFC_SCLK_PIN									GPIO_Pin_5


void user_spi_Init(void);
uint8_t SPI_ReadWriteByte(uint8_t TxData);

#ifdef __cplusplus
}
#endif

#endif /* __USER_NFC_H_ */
