Example application for the STMicroelectronics X-NUCLEO-NFC05A1

Dependencies:   RFAL ST25R3911 BSP05

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers main.h Source File

main.h

Go to the documentation of this file.
00001 /**
00002   ******************************************************************************
00003   * File Name          : main.h
00004   * Description        : This file contains the common defines of the application
00005   ******************************************************************************
00006   *
00007   * COPYRIGHT(c) 2017 STMicroelectronics
00008   *
00009   * Redistribution and use in source and binary forms, with or without modification,
00010   * are permitted provided that the following conditions are met:
00011   *   1. Redistributions of source code must retain the above copyright notice,
00012   *      this list of conditions and the following disclaimer.
00013   *   2. Redistributions in binary form must reproduce the above copyright notice,
00014   *      this list of conditions and the following disclaimer in the documentation
00015   *      and/or other materials provided with the distribution.
00016   *   3. Neither the name of STMicroelectronics nor the names of its contributors
00017   *      may be used to endorse or promote products derived from this software
00018   *      without specific prior written permission.
00019   *
00020   * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
00021   * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
00022   * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
00023   * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
00024   * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
00025   * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
00026   * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
00027   * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
00028   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
00029   * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
00030   *
00031   ******************************************************************************
00032   */
00033 
00034   /*! \file
00035  *
00036  *  \author
00037  *
00038  *  \brief This file contains the common defines of the application.
00039  *
00040  */
00041 
00042 /* Define to prevent recursive inclusion -------------------------------------*/
00043 #ifndef __MAIN_H
00044 #define __MAIN_H
00045   /* Includes ------------------------------------------------------------------*/
00046 
00047 /* USER CODE BEGIN Includes */
00048 
00049 /* USER CODE END Includes */
00050 
00051 /* Private define ------------------------------------------------------------*/
00052 
00053 #define B1_Pin GPIO_PIN_13
00054 #define B1_GPIO_Port GPIOC
00055 #define IRQ_3911_Pin GPIO_PIN_0
00056 #define IRQ_3911_GPIO_Port GPIOA
00057 #define LED_F_Pin GPIO_PIN_1
00058 #define LED_F_GPIO_Port GPIOA
00059 #define LED_B_Pin GPIO_PIN_4
00060 #define LED_B_GPIO_Port GPIOA
00061 #define LED_A_Pin GPIO_PIN_0
00062 #define LED_A_GPIO_Port GPIOB
00063 #define LED_FIELD_Pin GPIO_PIN_8
00064 #define LED_FIELD_GPIO_Port GPIOA
00065 #define TMS_Pin GPIO_PIN_13
00066 #define TMS_GPIO_Port GPIOA
00067 #define TCK_Pin GPIO_PIN_14
00068 #define TCK_GPIO_Port GPIOA
00069 #define SWO_Pin GPIO_PIN_3
00070 #define SWO_GPIO_Port GPIOB
00071 #define LED_V_Pin GPIO_PIN_4
00072 #define LED_V_GPIO_Port GPIOB
00073 #define LED_AP2P_Pin GPIO_PIN_5
00074 #define LED_AP2P_GPIO_Port GPIOB
00075 #define SPI1_CS_Pin GPIO_PIN_6
00076 #define SPI1_CS_GPIO_Port GPIOB
00077 /* USER CODE BEGIN Private defines */
00078 
00079 /* USER CODE END Private defines */
00080 
00081 /**
00082   * @}
00083   */
00084 
00085 /**
00086   * @}
00087 */
00088 
00089 #endif /* __MAIN_H */
00090 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/