Contains the BSP driver for the B-L475E-IOT01 board.

Dependents:   mbed-os-example-ble-Thermometer DISCO_L475VG_IOT01-Telegram-BOT DISCO_L475VG_IOT01-sche_cheveux DISCO_L475VG_IOT01-QSPI_FLASH_FILE_SYSTEM ... more

https://os.mbed.com/platforms/ST-Discovery-L475E-IOT01A/

Revision:
5:0c70bc6d2dc0
Parent:
4:137bb367ba50
Child:
6:9dfa42666f03
--- a/Drivers/BSP/B-L475E-IOT01/stm32l475e_iot01.h	Fri Apr 14 13:09:54 2017 +0200
+++ b/Drivers/BSP/B-L475E-IOT01/stm32l475e_iot01.h	Tue May 02 16:56:17 2017 +0200
@@ -2,8 +2,8 @@
   ******************************************************************************
   * @file    stm32l475e_iot01.h
   * @author  MCD Application Team
-  * @version V1.0.0
-  * @date    17-March-2017
+  * @version V1.1.0
+  * @date    21-April-2017
   * @brief   STM32L475E IOT01 board support package
   ******************************************************************************
   * @attention
@@ -73,8 +73,8 @@
   */
 typedef enum 
 {
-DISCO_LED2 = 0,
-DISCO_LED_GREEN = DISCO_LED2,
+  DISCO_LED2 = 0,
+  DISCO_LED_GREEN = DISCO_LED2,
 }Led_TypeDef;
 
 
@@ -134,6 +134,15 @@
 #define USER_BUTTON_GPIO_CLK_DISABLE()    __HAL_RCC_GPIOC_CLK_DISABLE()
 #define USER_BUTTON_EXTI_IRQn             EXTI15_10_IRQn
 
+/**
+  * @brief  NFC Gpio PINs
+  */
+#define NFC_GPIO_GPO_PIN                         GPIO_PIN_4
+#define NFC_GPIO_GPO_PIN_PORT                    GPIOE
+#define NFC_GPIO_RFDISABLE_PIN                   GPIO_PIN_2
+#define NFC_GPIO_RFDISABLE_PIN_PORT              GPIOE  
+#define NFC_GPIO_CLK_ENABLE()                    __HAL_RCC_GPIOE_CLK_ENABLE();
+#define NFC_GPIO_CLK_DISABLE()                   __HAL_RCC_GPIOE_CLK_DISABLE();
 
 
 #define COMn                              ((uint8_t)1)
@@ -218,6 +227,16 @@
 /* HTS221 Sensor hardware I2C address */ 
 #define TSENSOR_I2C_ADDRESS     HTS221_I2C_ADDRESS
 #endif
+
+/* NFC I2C address and specific config parameters */
+#define M24SR_I2C_ADDR             (uint8_t)  0xAC /*!< M24SR address */
+#define NFC_I2C_STATUS_SUCCESS     (uint16_t) 0x0000
+#define NFC_I2C_ERROR_TIMEOUT      (uint16_t) 0x0011
+#define NFC_I2C_TIMEOUT_STD        (uint32_t) 8 /* I2C Time out (ms), used to call Transmit/Receive HAL functions */
+#define NFC_I2C_TIMEOUT_MAX        (uint32_t) 200 /* I2C Time out (ms), this is the maximum time needed by M24SR to complete any command */
+#define NFC_I2C_TRIALS             (uint32_t) 1 /* In case M24SR will reply ACK failed allow to perform retry before returning error (HAL option not used) */
+
+
 /**
   * @}
   */