Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: hello SerialTestv11 SerialTestv12 Sierpinski ... more
Diff: TARGET_NUCLEO_F302R8/stm32f3xx_hal_gpio.h
- Revision:
- 123:b0220dba8be7
- Parent:
- 122:f9eeca106725
--- a/TARGET_NUCLEO_F302R8/stm32f3xx_hal_gpio.h Thu Jul 07 14:34:11 2016 +0100
+++ b/TARGET_NUCLEO_F302R8/stm32f3xx_hal_gpio.h Fri Aug 12 13:04:35 2016 +0200
@@ -2,8 +2,8 @@
******************************************************************************
* @file stm32f3xx_hal_gpio.h
* @author MCD Application Team
- * @version V1.2.1
- * @date 29-April-2015
+ * @version V1.3.0
+ * @date 01-July-2016
* @brief Header file of GPIO HAL module.
******************************************************************************
* @attention
@@ -229,7 +229,8 @@
*/
#define IS_GPIO_PIN_ACTION(ACTION) (((ACTION) == GPIO_PIN_RESET) || ((ACTION) == GPIO_PIN_SET))
-#define IS_GPIO_PIN(__PIN__) (((__PIN__) & GPIO_PIN_MASK) != (uint32_t)0x00)
+#define IS_GPIO_PIN(__PIN__) ((((__PIN__) & GPIO_PIN_MASK) != (uint32_t)0x00) &&\
+ (((__PIN__) & ~GPIO_PIN_MASK) == (uint32_t)0x00))
#define IS_GPIO_MODE(__MODE__) (((__MODE__) == GPIO_MODE_INPUT) ||\
((__MODE__) == GPIO_MODE_OUTPUT_PP) ||\


