RFAL library for the STMicroelectronics X-NUCLEO-NFC05A1
Embed:
(wiki syntax)
Show/hide line numbers
platform1.h
Go to the documentation of this file.
00001 00002 /****************************************************************************** 00003 * @attention 00004 * 00005 * <h2><center>© COPYRIGHT 2016 STMicroelectronics</center></h2> 00006 * 00007 * Licensed under ST MYLIBERTY SOFTWARE LICENSE AGREEMENT (the "License"); 00008 * You may not use this file except in compliance with the License. 00009 * You may obtain a copy of the License at: 00010 * 00011 * http://www.st.com/myliberty 00012 * 00013 * Unless required by applicable law or agreed to in writing, software 00014 * distributed under the License is distributed on an "AS IS" BASIS, 00015 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, 00016 * AND SPECIFICALLY DISCLAIMING THE IMPLIED WARRANTIES OF MERCHANTABILITY, 00017 * FITNESS FOR A PARTICULAR PURPOSE, AND NON-INFRINGEMENT. 00018 * See the License for the specific language governing permissions and 00019 * limitations under the License. 00020 * 00021 ******************************************************************************/ 00022 /*! \file 00023 * 00024 * \author 00025 * 00026 * \brief Platform header file. Defining platform independent functionality. 00027 * 00028 */ 00029 00030 00031 /* 00032 * PROJECT: 00033 * $Revision: $ 00034 * LANGUAGE: ISO C99 00035 */ 00036 00037 /*! \file platform.h 00038 * 00039 * \author Gustavo Patricio 00040 * 00041 * \brief Platform specific definition layer 00042 * 00043 * This should contain all platform and hardware specifics such as 00044 * GPIO assignment, system resources, locks, IRQs, etc 00045 * 00046 * Each distinct platform/system/board must provide this definitions 00047 * for all SW layers to use 00048 * 00049 */ 00050 00051 #ifndef PLATFORM1_H 00052 #define PLATFORM1_H 00053 00054 /* 00055 ****************************************************************************** 00056 * INCLUDES 00057 ****************************************************************************** 00058 */ 00059 /*#if defined(STM32L476xx) 00060 #include "stm32l4xx_hal.h" 00061 #elif defined(STM32F401xE) 00062 */ 00063 #include "stm32f4xx_hal.h" 00064 /*#else 00065 //#include "stm32l0xx_hal.h" 00066 #endif 00067 */ 00068 00069 #include "stdint.h" 00070 #include "stdbool.h" 00071 #include "limits.h" 00072 #include "timer1.h" 00073 #include "main.h" 00074 #include "logger.h" 00075 #include "mbed.h" 00076 00077 00078 /* 00079 ****************************************************************************** 00080 * GLOBAL DEFINES 00081 ****************************************************************************** 00082 */ 00083 00084 /* 00085 ****************************************************************************** 00086 * GLOBAL MACROS 00087 ****************************************************************************** 00088 */ 00089 00090 00091 #define platformIrqST25R3911SetCallback( cb ) 00092 00093 00094 #define platformIrqST25R3916SetCallback( cb ) 00095 00096 #define platformTimerCreate( t ) timerCalculateTimer(t) /*!< Create a timer with the given time (ms) */ 00097 #define platformTimerIsExpired( timer ) timerIsExpired(timer) /*!< Checks if the given timer is expired */ 00098 #define platformDelay( t ) HAL_Delay( t ) /*!< Performs a delay for the given time (ms) */ 00099 00100 #define platformGetSysTick() HAL_GetTick() /*!< Get System Tick ( 1 tick = 1 ms) */ 00101 00102 00103 00104 /* 00105 ****************************************************************************** 00106 * RFAL FEATURES CONFIGURATION 00107 ****************************************************************************** 00108 */ 00109 00110 #define RFAL_FEATURE_NFCA true /*!< Enable/Disable RFAL support for NFC-A (ISO14443A) */ 00111 #define RFAL_FEATURE_NFCB true /*!< Enable/Disable RFAL support for NFC-B (ISO14443B) */ 00112 #define RFAL_FEATURE_NFCF true /*!< Enable/Disable RFAL support for NFC-F (FeliCa) */ 00113 #define RFAL_FEATURE_NFCV true /*!< Enable/Disable RFAL support for NFC-V (ISO15693) */ 00114 #define RFAL_FEATURE_T1T true /*!< Enable/Disable RFAL support for T1T (Topaz) */ 00115 #define RFAL_FEATURE_ST25TB true /*!< Enable/Disable RFAL support for ST25TB */ 00116 #define RFAL_FEATURE_DYNAMIC_ANALOG_CONFIG false /*!< Enable/Disable Analog Configs to be dynamically updated (RAM) */ 00117 #define RFAL_FEATURE_DYNAMIC_POWER false /*!< Enable/Disable RFAL dynamic power support */ 00118 #define RFAL_FEATURE_ISO_DEP true /*!< Enable/Disable RFAL support for ISO-DEP (ISO14443-4) */ 00119 #define RFAL_FEATURE_NFC_DEP true /*!< Enable/Disable RFAL support for NFC-DEP (NFCIP1/P2P) */ 00120 00121 00122 #define RFAL_FEATURE_ISO_DEP_IBLOCK_MAX_LEN 256 /*!< ISO-DEP I-Block max length. Please use values as defined by rfalIsoDepFSx */ 00123 #define RFAL_FEATURE_ISO_DEP_APDU_MAX_LEN 1024 /*!< ISO-DEP APDU max length. Please use multiples of I-Block max length */ 00124 00125 #endif /* PLATFORM1_H */ 00126 00127
Generated on Sat Jul 16 2022 13:00:53 by
1.7.2