Example application for the STMicroelectronics X-NUCLEO-NFC05A1

Dependencies:   RFAL ST25R3911 BSP05

X-NUCLEO-NFC05A1 NFC Card Reader Expansion Board Firmware Package

Introduction

This firmware package includes Components Device Drivers, Board Support Package and example applications for STMicroelectronics X-NUCLEO-NFC05A1 NFC Card Reader Expansion Board based on the ST25R3911B.

Example Application

This program gives the user the possibility to read the URI information written on the expansion board. The LEDs will blink for few seconds to indicate that the board is initializing. As soon as it finishes, the device is ready to communicate with external NFC devices. LED6 will blink until an NFC device is close to it and ready to read the URI value.

Tested Platforms

This firmware has been tested on STM32 NUCLEO-F401RE

Committer:
DiegoOstuni
Date:
Thu Nov 14 14:57:00 2019 +0000
Revision:
3:9a152c93d7a2
Parent:
1:86504e1ac6b1
Example application for the STMicroelectronics X-NUCLEO-NFC05A1

Who changed what in which revision?

UserRevisionLine numberNew contents of line
DiegoOstuni 1:86504e1ac6b1 1 /**
DiegoOstuni 1:86504e1ac6b1 2 ******************************************************************************
DiegoOstuni 1:86504e1ac6b1 3 * File Name : main.h
DiegoOstuni 1:86504e1ac6b1 4 * Description : This file contains the common defines of the application
DiegoOstuni 1:86504e1ac6b1 5 ******************************************************************************
DiegoOstuni 1:86504e1ac6b1 6 *
DiegoOstuni 1:86504e1ac6b1 7 * COPYRIGHT(c) 2017 STMicroelectronics
DiegoOstuni 1:86504e1ac6b1 8 *
DiegoOstuni 1:86504e1ac6b1 9 * Redistribution and use in source and binary forms, with or without modification,
DiegoOstuni 1:86504e1ac6b1 10 * are permitted provided that the following conditions are met:
DiegoOstuni 1:86504e1ac6b1 11 * 1. Redistributions of source code must retain the above copyright notice,
DiegoOstuni 1:86504e1ac6b1 12 * this list of conditions and the following disclaimer.
DiegoOstuni 1:86504e1ac6b1 13 * 2. Redistributions in binary form must reproduce the above copyright notice,
DiegoOstuni 1:86504e1ac6b1 14 * this list of conditions and the following disclaimer in the documentation
DiegoOstuni 1:86504e1ac6b1 15 * and/or other materials provided with the distribution.
DiegoOstuni 1:86504e1ac6b1 16 * 3. Neither the name of STMicroelectronics nor the names of its contributors
DiegoOstuni 1:86504e1ac6b1 17 * may be used to endorse or promote products derived from this software
DiegoOstuni 1:86504e1ac6b1 18 * without specific prior written permission.
DiegoOstuni 1:86504e1ac6b1 19 *
DiegoOstuni 1:86504e1ac6b1 20 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
DiegoOstuni 1:86504e1ac6b1 21 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
DiegoOstuni 1:86504e1ac6b1 22 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DiegoOstuni 1:86504e1ac6b1 23 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
DiegoOstuni 1:86504e1ac6b1 24 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DiegoOstuni 1:86504e1ac6b1 25 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
DiegoOstuni 1:86504e1ac6b1 26 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
DiegoOstuni 1:86504e1ac6b1 27 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
DiegoOstuni 1:86504e1ac6b1 28 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
DiegoOstuni 1:86504e1ac6b1 29 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
DiegoOstuni 1:86504e1ac6b1 30 *
DiegoOstuni 1:86504e1ac6b1 31 ******************************************************************************
DiegoOstuni 1:86504e1ac6b1 32 */
DiegoOstuni 1:86504e1ac6b1 33
DiegoOstuni 1:86504e1ac6b1 34 /*! \file
DiegoOstuni 1:86504e1ac6b1 35 *
DiegoOstuni 1:86504e1ac6b1 36 * \author
DiegoOstuni 1:86504e1ac6b1 37 *
DiegoOstuni 1:86504e1ac6b1 38 * \brief This file contains the common defines of the application.
DiegoOstuni 1:86504e1ac6b1 39 *
DiegoOstuni 1:86504e1ac6b1 40 */
DiegoOstuni 1:86504e1ac6b1 41
DiegoOstuni 1:86504e1ac6b1 42 /* Define to prevent recursive inclusion -------------------------------------*/
DiegoOstuni 1:86504e1ac6b1 43 #ifndef __MAIN_H
DiegoOstuni 1:86504e1ac6b1 44 #define __MAIN_H
DiegoOstuni 1:86504e1ac6b1 45 /* Includes ------------------------------------------------------------------*/
DiegoOstuni 1:86504e1ac6b1 46
DiegoOstuni 1:86504e1ac6b1 47 /* USER CODE BEGIN Includes */
DiegoOstuni 1:86504e1ac6b1 48
DiegoOstuni 1:86504e1ac6b1 49 /* USER CODE END Includes */
DiegoOstuni 1:86504e1ac6b1 50
DiegoOstuni 1:86504e1ac6b1 51 /* Private define ------------------------------------------------------------*/
DiegoOstuni 1:86504e1ac6b1 52
DiegoOstuni 1:86504e1ac6b1 53 #define B1_Pin GPIO_PIN_13
DiegoOstuni 1:86504e1ac6b1 54 #define B1_GPIO_Port GPIOC
DiegoOstuni 1:86504e1ac6b1 55 #define IRQ_3911_Pin GPIO_PIN_0
DiegoOstuni 1:86504e1ac6b1 56 #define IRQ_3911_GPIO_Port GPIOA
DiegoOstuni 1:86504e1ac6b1 57 #define LED_F_Pin GPIO_PIN_1
DiegoOstuni 1:86504e1ac6b1 58 #define LED_F_GPIO_Port GPIOA
DiegoOstuni 1:86504e1ac6b1 59 #define LED_B_Pin GPIO_PIN_4
DiegoOstuni 1:86504e1ac6b1 60 #define LED_B_GPIO_Port GPIOA
DiegoOstuni 1:86504e1ac6b1 61 #define LED_A_Pin GPIO_PIN_0
DiegoOstuni 1:86504e1ac6b1 62 #define LED_A_GPIO_Port GPIOB
DiegoOstuni 1:86504e1ac6b1 63 #define LED_FIELD_Pin GPIO_PIN_8
DiegoOstuni 1:86504e1ac6b1 64 #define LED_FIELD_GPIO_Port GPIOA
DiegoOstuni 1:86504e1ac6b1 65 #define TMS_Pin GPIO_PIN_13
DiegoOstuni 1:86504e1ac6b1 66 #define TMS_GPIO_Port GPIOA
DiegoOstuni 1:86504e1ac6b1 67 #define TCK_Pin GPIO_PIN_14
DiegoOstuni 1:86504e1ac6b1 68 #define TCK_GPIO_Port GPIOA
DiegoOstuni 1:86504e1ac6b1 69 #define SWO_Pin GPIO_PIN_3
DiegoOstuni 1:86504e1ac6b1 70 #define SWO_GPIO_Port GPIOB
DiegoOstuni 1:86504e1ac6b1 71 #define LED_V_Pin GPIO_PIN_4
DiegoOstuni 1:86504e1ac6b1 72 #define LED_V_GPIO_Port GPIOB
DiegoOstuni 1:86504e1ac6b1 73 #define LED_AP2P_Pin GPIO_PIN_5
DiegoOstuni 1:86504e1ac6b1 74 #define LED_AP2P_GPIO_Port GPIOB
DiegoOstuni 1:86504e1ac6b1 75 #define SPI1_CS_Pin GPIO_PIN_6
DiegoOstuni 1:86504e1ac6b1 76 #define SPI1_CS_GPIO_Port GPIOB
DiegoOstuni 1:86504e1ac6b1 77 /* USER CODE BEGIN Private defines */
DiegoOstuni 1:86504e1ac6b1 78
DiegoOstuni 1:86504e1ac6b1 79 /* USER CODE END Private defines */
DiegoOstuni 1:86504e1ac6b1 80
DiegoOstuni 1:86504e1ac6b1 81 /**
DiegoOstuni 1:86504e1ac6b1 82 * @}
DiegoOstuni 1:86504e1ac6b1 83 */
DiegoOstuni 1:86504e1ac6b1 84
DiegoOstuni 1:86504e1ac6b1 85 /**
DiegoOstuni 1:86504e1ac6b1 86 * @}
DiegoOstuni 1:86504e1ac6b1 87 */
DiegoOstuni 1:86504e1ac6b1 88
DiegoOstuni 1:86504e1ac6b1 89 #endif /* __MAIN_H */
DiegoOstuni 1:86504e1ac6b1 90 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/